/* A theme-specific illustrated dashboard header and distinct control languages. */
.theme-world {
  --world-sun: #f8d477;
  --world-land: #a9c79c;
  --world-land2: #749879;
  --world-leaf: #46785a;
  --world-water: #68bfc9;
  --world-water2: #3b96a8;
  --world-foam: #c7eef0;
  --world-planet: #8e78dd;
  --world-planet2: #324976;
  --world-star: #f8d982;
  --world-line: #7196ad;
  --world-signal: #388bc0;
  --world-device: #e9f5fb;
  --world-glass: #bce9f3;
  --world-ink: #493747;
  --world-character: #bd5e91;
  --world-skin: #ffd9c8;
  --world-hair: #472a58;
  --world-paper: #fff9e9;
  --world-building: #657587;
  --world-window: #ffe497;
  --world-tile1: #e95a63;
  --world-tile2: #36aaa2;
  --world-tile3: #5279d1;
  --world-tile4: #e2ad39;
  --world-badge: var(--color-primary);
  --world-badge-ink: var(--color-primary-contrast);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 158px;
  overflow: hidden;
  margin: 0 0 26px;
  padding: 23px 26px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  color: var(--color-text);
  background: linear-gradient(110deg, var(--color-surface) 0%, color-mix(in srgb, var(--color-accent) 74%, var(--color-surface)) 100%);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--color-primary) 9%, transparent);
}

.theme-world::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .35;
  background: radial-gradient(ellipse at 82% 12%, color-mix(in srgb, var(--color-primary) 20%, transparent), transparent 38%);
}

.world-copy {
  position: relative;
  z-index: 2;
  max-width: 58%;
}

.world-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-primary);
  font: 700 9px var(--font-mono);
  letter-spacing: 1px;
}

.world-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 13%, transparent);
}

.world-copy h2 {
  margin: 8px 0 3px;
  font: 800 clamp(21px, 3vw, 30px)/1.1 var(--font-heading);
  letter-spacing: -1px;
}

.world-copy h2 span {
  color: var(--color-primary);
}

.world-copy p {
  margin: 5px 0 13px;
  color: var(--color-muted);
  font-size: 11px;
}

.world-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.world-actions button {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 10px;
  font-weight: 700;
  transition: transform .15s, background .15s;
}

.world-actions button:hover {
  transform: translateY(-2px);
  background: var(--color-accent);
}

.world-actions b {
  color: var(--color-primary);
  font-size: 13px;
}

.world-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 55%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: .96;
  pointer-events: none;
}

.world-art svg {
  width: 100%;
  height: 100%;
  max-height: 158px;
}

.world-index {
  position: absolute;
  right: 15px;
  bottom: 9px;
  color: var(--color-muted);
  font: 500 8px var(--font-mono);
  letter-spacing: .7px;
  opacity: .7;
}

.world-index i {
  color: var(--color-primary);
  font-style: normal;
}

/* Each family receives its own visual vocabulary; content remains accessible. */
.world-anime {
  --world-character: #d75591;
  --world-hair: #713a86;
  --world-star: #f19fc8;
  --world-badge: #bf3f80;
  border-radius: 24px 8px 24px 8px;
}

.world-anime .world-actions button {
  border-radius: 7px 14px 7px 14px;
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--color-primary) 18%, transparent);
}

.world-space {
  --world-planet: #9775e9;
  --world-planet2: #355b91;
  --world-star: #f2d685;
  --world-badge: #8b69df;
  border-radius: 30px;
  background: radial-gradient(ellipse at 80% 50%, #51397740, transparent 54%), linear-gradient(110deg, #11152a, #25203f);
  color: #f5f1ff;
}

.world-space .world-copy p,
.world-space .world-index {
  color: #c2b8dc;
}

.world-space .world-actions button {
  border-color: #ffffff30;
  border-radius: 50%;
  background: #ffffff12;
  color: #f5f1ff;
}

.world-world {
  background: linear-gradient(110deg, #f5f9ed, #e4f0dc);
}

.world-nature {
  --world-land: #a9c79c;
  --world-land2: #6f9d76;
  --world-leaf: #38764d;
  --world-water: #63b8bd;
  border-radius: 24px 7px 24px 7px;
}

.world-water {
  --world-water: #4daabc;
  --world-water2: #277d96;
  --world-foam: #d8f4ed;
  --world-sun: #ffe3a0;
  background: linear-gradient(110deg, #f3fcfc, #d9f0f2);
  border-radius: 40px 12px;
}

.world-land {
  --world-sun: #f7bf6b;
  --world-land: #ce956c;
  --world-land2: #9c705d;
  background: linear-gradient(110deg, #fff5e2, #f4dfca);
}

.world-tech {
  --world-line: #5bb4db;
  --world-signal: #087fce;
  --world-device: #122e43;
  --world-glass: #1f5269;
  --world-badge: #087fce;
  font-family: var(--font-mono);
  border-radius: 5px;
  background-color: #edf8ff;
  background-image: linear-gradient(#087fce0c 1px, transparent 1px), linear-gradient(90deg, #087fce0c 1px, transparent 1px);
  background-size: 18px 18px;
}

.world-tech .world-actions button {
  border-radius: 5px;
}

.world-science {
  --world-line: #7696d1;
  --world-signal: #3179d1;
  --world-planet: #89d4cb;
}

.world-care {
  --world-signal: #16a99c;
  --world-paper: #eafffc;
}

.world-hero {
  --world-signal: #f1ca4b;
  --world-device: #2885d7;
  --world-character: #264f9b;
  --world-hair: #292c38;
  border-radius: 8px 28px;
  background: linear-gradient(120deg, #fff9e9, #e7efff);
}

.world-hero .world-actions button {
  border-radius: 7px;
  border-bottom-width: 3px;
}

.world-horror {
  --world-land: #3d3031;
  --world-moon: #d9c7b7;
  --world-building: #20191d;
  --world-fog: #8e7774;
  --world-signal: #bd4347;
  color: #f5e8e8;
  background: radial-gradient(ellipse at 80% 15%, #7c293540, transparent 38%), linear-gradient(110deg, #171315, #2a2022);
}

.world-horror .world-copy p,
.world-horror .world-index {
  color: #c1aeb0;
}

.world-horror .world-actions button {
  border-color: #66464a;
  background: #2a2022;
  color: #f8eeee;
  border-radius: 3px;
}

.world-tiles {
  --world-line: #364155;
  --world-badge: #a7ff4f;
  --world-badge-ink: #15210d;
}

.world-tiles .world-actions button {
  border-radius: 3px;
  box-shadow: inset 0 -3px #0002;
}

.world-arcade {
  --world-device: #30314e;
  --world-line: #50e7c5;
  --world-signal: #55f0cf;
  --world-planet: #fd4cba;
  color: #f1efff;
  background: linear-gradient(115deg, #17112d, #2b1d49);
}

.world-arcade .world-copy p,
.world-arcade .world-index {
  color: #c0b8dc;
}

.world-arcade .world-actions button {
  border-color: #584779;
  color: #f6f1ff;
  background: #ffffff10;
  border-radius: 5px;
  box-shadow: 0 0 14px #55f0cf28;
}

.world-paper {
  --world-paper: #fffaf0;
  --world-line: #d9c6a8;
  --world-signal: #ad5e36;
}

.world-paper .world-actions button {
  border-radius: 4px;
}

.world-retro {
  --world-device: #423d37;
  --world-line: #887f6c;
  --world-glass: #d5d7a2;
  --world-signal: #bc5838;
  font-family: var(--font-mono);
  background: repeating-linear-gradient(0deg, #00000006 0 1px, transparent 1px 4px), linear-gradient(110deg, #fff4dc, #f1e3c5);
}

.world-city {
  --world-building: #637d91;
  --world-window: #ffe18a;
  --world-line: #93aabd;
  --world-signal: #df754e;
}

.world-transit {
  --world-device: #e8f4fb;
  --world-glass: #b9e5f4;
  --world-line: #3c739d;
  --world-ink: #273f54;
  --world-signal: #e4a931;
}

.world-windows {
  --world-device: #ffffffbd;
  --world-line: #ffffff;
  --world-signal: #0878d4;
  border-radius: 18px;
  backdrop-filter: blur(15px);
  background: linear-gradient(110deg, #dbeafa, #b8d9f3);
}

.world-windows .world-actions button {
  border-radius: 9px;
  box-shadow: 0 3px 9px #17476b18;
}

.world-abstract {
  --world-signal: #9c68dd;
  --world-planet: #f4a4bb;
  --world-land: #6f8dd9;
}

.world-iconic {
  --world-signal: #cf3d52;
  --world-paper: #fff;
}

.world-minimal,
.world-minimalicon,
.world-textonly,
.world-micro {
  min-height: 116px;
  box-shadow: none;
  background: var(--color-surface);
}

.world-minimal .world-art svg {
  opacity: .22;
}

.world-minimalicon .world-art svg {
  width: 35%;
}

.world-largeicon .world-art svg {
  width: 58%;
}

.world-textonly .world-art {
  display: none;
}

.world-textonly .world-copy {
  max-width: 100%;
}

.world-textonly .world-actions button {
  border: 0;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  background: transparent;
}

.world-micro {
  min-height: 104px;
  padding: 15px 20px;
  border-radius: 8px;
}

.world-micro .world-copy h2 {
  font-size: 21px;
}

.world-highcontrast {
  border: 3px solid var(--color-text);
  box-shadow: 5px 5px 0 var(--color-text);
}

.world-highcontrast .world-actions button {
  border: 2px solid var(--color-text);
  border-radius: 4px;
}

.world-dark {
  background: linear-gradient(110deg, #202733, #303b4a);
  color: #eef2f8;
}

.world-dark .world-copy p,
.world-dark .world-index {
  color: #c0cad8;
}

.world-dark .world-actions button {
  color: #eef2f8;
  background: #ffffff12;
  border-color: #ffffff35;
}

.world-science .world-actions button {
  border-radius: 6px;
  font-family: var(--font-mono);
}

.world-theme-mood-galaxy {
  border-radius: 50px;
}

/* Distinct per-theme signature details beyond the shared palette. */
body[data-mood="anime"] .theme-world {
  --world-badge: #bf3f80;
}

body[data-mood="galaxy"] .theme-world {
  --world-planet: #a784f6;
}

body[data-mood="waterfall"] .theme-world {
  --world-water: #56b7ce;
}

body[data-mood="beach"] .theme-world {
  --world-water: #2fa5b2;
  --world-sun: #ffd17d;
}

body[data-mood="forest"] .theme-world {
  --world-land: #738f67;
  --world-land2: #476e50;
}

body[data-mood="sakura"] .theme-world {
  --world-leaf: #dc85aa;
  --world-sun: #f4aac9;
}

body[data-mood="doctor"] .theme-world {
  --world-signal: #078c87;
}

body[data-mood="teacher"] .theme-world {
  --world-paper: #fff7dd;
  --world-signal: #a7601e;
}

body[data-mood="programmer"] .theme-world,
body[data-mood="hacker"] .theme-world {
  --world-device: #101d18;
  --world-line: #43bf78;
  --world-signal: #70ff7a;
  color: #e2f3e9;
  background: #101a16;
}

body[data-mood="wizard"] .theme-world {
  --world-star: #d7b7ff;
  --world-signal: #b58cff;
}

body[data-mood="villain"] .theme-world {
  --world-signal: #ca4561;
  --world-character: #54263d;
}

body[data-mood="horror"] .theme-world,
body[data-mood="zombie"] .theme-world,
body[data-mood="apocalypse"] .theme-world,
body[data-mood="cod"] .theme-world {
  border-color: #554044;
}

body[data-mood="bolt"] .theme-world {
  --world-signal: #f4c928;
}

body[data-mood="atoms"] .theme-world {
  --world-signal: #168f89;
}

body[data-mood="maths"] .theme-world {
  --world-signal: #625bd4;
}

body[data-mood="home"] .theme-world {
  --world-land: #c5d6aa;
}

body[data-mood="village"] .theme-world {
  --world-land: #bac78b;
}

body[data-mood="city"] .theme-world,
body[data-mood="town"] .theme-world {
  --world-building: #6b8296;
}

body[data-mood="train"] .theme-world,
body[data-mood="bus"] .theme-world,
body[data-mood="car"] .theme-world {
  --world-signal: #e2a635;
}

body[data-mood="rocket"] .theme-world {
  --world-planet: #ef8b45;
}

body[data-mood="moon"] .theme-world {
  --world-planet: #c4bfdb;
  --world-star: #f3eed2;
}

body[data-mood="samurai"] .theme-world,
body[data-mood="mortalkombat"] .theme-world {
  --world-signal: #d84c43;
}

body[data-mood="ninja"] .theme-world {
  --world-signal: #62c7a3;
}

body[data-mood="minecraft"] .theme-world {
  --world-tile1: #62a748;
  --world-tile2: #805d42;
  --world-tile3: #7f9e4f;
  --world-tile4: #5887a1;
}

body[data-mood="roblox"] .theme-world {
  --world-tile1: #dc4741;
  --world-tile2: #4d83d1;
  --world-tile3: #f2c642;
  --world-tile4: #43a86f;
}

body[data-mood="retrobw"] .theme-world {
  filter: grayscale(1);
}

body[data-mood="nokia"] .theme-world {
  display: none;
}

@media(max-width:640px) {
  .theme-world {
    min-height: 145px;
    padding: 18px 16px;
    margin-bottom: 19px;
  }

  .world-copy {
    max-width: 72%;
  }

  .world-copy p {
    max-width: 250px;
    font-size: 10px;
  }

  .world-art {
    width: 53%;
    opacity: .68;
  }

  .world-art svg {
    max-height: 140px;
  }

  .world-index {
    display: none;
  }

  .world-actions button {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 9px;
  }

  .world-minimal,
  .world-minimalicon,
  .world-textonly,
  .world-micro {
    min-height: 100px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .world-actions button {
    transition: none;
  }
}

/* Guard the illustrated theme header at compact preview widths. */
@media (max-width: 390px) {
  .theme-world:not(.experience) {
    padding: 15px 13px;
  }

  .world-copy {
    max-width: 78%;
    min-width: 0;
  }

  .world-copy h2 {
    font-size: clamp(19px, 6vw, 25px);
    overflow-wrap: anywhere;
  }

  .world-actions {
    max-width: 100%;
    gap: 5px;
  }

  .world-actions button {
    min-width: 0;
    padding-inline: 7px;
    font-size: 9px;
  }

  .world-art {
    width: 48%;
  }
}
