/* Leonida Vice Roleplay · edition 5 · homepage
   The artwork runs edge to edge and each section melts into the next. */

.roles, .guide { padding-block: clamp(56px, 7.2vw, 104px); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
summary .i, .svc-more .i { transition: rotate var(--reveal) var(--ease); }
details[open] > summary .i, .svc-more[aria-expanded="true"] .i { rotate: 45deg; }

/* ---------- Cover ---------- */
.hero { position: relative; isolation: isolate; display: grid; align-items: end; overflow: hidden; min-height: min(100svh, 920px); background: var(--night); color: var(--night-ink); }
.hero-art { position: absolute; inset: 0; z-index: -3; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }      /* patrol: keeps the officer's face and the light bar */
.hero-art img[data-art="moonlit-causeway"] { object-position: 50% 26%; }                        /* keeps the crescent and both towers */
.hero-fade { position: absolute; inset: 0; background: no-repeat center / cover; opacity: 0; pointer-events: none; }
/* Shade for the type, then the plate dissolves into the page below. */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(0deg, var(--paper) 0, color-mix(in srgb, var(--paper) 60%, transparent) 7%, transparent 22%), linear-gradient(90deg, rgb(var(--shade) / .86), rgb(var(--shade) / .6) 26%, rgb(var(--shade) / .12) 50%, transparent 64%); }
.hero-frond { position: absolute; z-index: -1; top: -5%; left: -3%; width: min(40vw, 560px); aspect-ratio: 4 / 3; background: var(--frond) no-repeat 0 0 / contain; scale: -1 1; opacity: .92; pointer-events: none; translate: var(--drift-x, 0) var(--drift-y, 0); transition: translate .5s ease-out; }
.hero-copy { padding-block: 120px clamp(120px, 15vh, 180px); }
.hero h1 { font-size: clamp(4.75rem, 12vw, 11.5rem); line-height: .82; text-shadow: .028em .028em 0 rgb(var(--shade) / .5); }
.hero h1 span { display: block; color: var(--glow); }
.hero-line { margin-top: clamp(18px, 2vw, 28px); max-width: 31ch; font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.42; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(22px, 2.4vw, 32px); }
.hero-actions .link { display: inline-flex; align-items: center; min-height: 44px; }
.motion-toggle { position: absolute; right: var(--margin); bottom: clamp(120px, 15vh, 180px); display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px 6px 10px; border-radius: 99px; background: rgb(var(--shade) / .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .8125rem; font-weight: 600; }
.motion-toggle .i:nth-of-type(2), .motion-toggle[aria-pressed="true"] .i:nth-of-type(1) { display: none; }
.motion-toggle[aria-pressed="true"] .i:nth-of-type(2) { display: block; }
@media (max-width: 1100px) {
  .hero-art img { object-position: 70% 10%; }
  .hero-art img[data-art="moonlit-causeway"] { object-position: 78% 24%; }
}
@media (max-width: 700px) {
  .hero { min-height: min(100svh, 760px); }
  .hero-art img { object-position: 76% 6%; }
  .hero-art img[data-art="moonlit-causeway"] { object-position: 80% 20%; }
  .hero::before { background: linear-gradient(0deg, var(--paper) 0, rgb(var(--shade) / .9) 14%, rgb(var(--shade) / .8) 36%, rgb(var(--shade) / .25) 56%, transparent 66%); }
  .hero-frond { display: none; }
  .hero-copy { padding-block: 0 84px; }
  .hero h1 { font-size: clamp(4.25rem, 21vw, 5.5rem); }
  .motion-toggle { top: calc(var(--header) + 12px); bottom: auto; right: 14px; padding: 6px 10px; }
  .motion-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 560px) {
  /* The 2:3 portrait plates are already cut around the face and the crescent. */
  .hero-art img, .hero-art img[data-art="moonlit-causeway"] { object-position: 50% 0; }
}

/* ---------- Roles: five posters ---------- */
.roles { padding-top: clamp(8px, 2vw, 32px); padding-bottom: 0; }
.roles-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(24px, 3vw, 40px); }
.roles-head h2 { font-size: clamp(3rem, 7vw, 6.5rem); }
.role-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
#role-status { font-size: .9375rem; color: var(--ink-soft); }

.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--night); }
.tile { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(460px, 46vw, 680px); overflow: hidden; color: #fff; background: var(--night); }
.tile-lead, .mosaic[data-count="1"] .tile, .mosaic[data-count="3"] .tile:first-child { grid-column: 1 / -1; }
.tile picture { display: contents; }
.tile > img, .tile picture img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 25%); transition: scale .9s var(--ease); }
.tile:hover > img, .tile:hover picture img, .tile:focus-within > img, .tile:focus-within picture img { scale: 1.035; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(var(--shade) / .94) 0, rgb(var(--shade) / .7) 26%, rgb(var(--shade) / .12) 52%, transparent 64%); transition: background-color var(--reveal); }
.tile.open::before { background-color: rgb(var(--shade) / .55); }
.tile-body { display: grid; gap: 12px; min-width: 0; padding: clamp(22px, 3.4vw, 52px) var(--margin); max-width: 44rem; }
.tile h3 { font-size: clamp(3rem, 5.6vw, 5.25rem); text-shadow: .03em .03em 0 rgb(var(--shade) / .55); }
.tile-deck { max-width: 46ch; font-size: 1.0625rem; color: rgb(255 255 255 / .9); }
.tile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tile-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 99px; background: rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-weight: 650; text-decoration: none; transition: background var(--reveal), color var(--reveal); }
.tile-links a:hover { background: var(--glow); color: var(--glow-ink); }
.tile-also { font-size: .9375rem; color: rgb(255 255 255 / .82); }
.tile-also a { font-weight: 650; text-underline-offset: .2em; }
.tile-also a:hover { color: var(--glow); }
.tile :focus-visible { outline-color: var(--glow); }
.svc-more { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 44px; font-weight: 650; color: rgb(255 255 255 / .85); }
.svc-more:hover { color: var(--glow); }
.svc-panel { max-width: 56ch; color: rgb(255 255 255 / .92); }
/* Police: the officer holds the left of the plate, so the type sits on the right. */
.tile-lead { min-height: clamp(520px, 48vw, 720px); align-items: center; justify-items: end; }
.tile-lead::before { background: linear-gradient(270deg, rgb(var(--shade) / .93) 0, rgb(var(--shade) / .8) 30%, rgb(var(--shade) / .2) 54%, transparent 66%); }
.tile-lead .tile-body { width: min(44rem, 50%); }
@media (max-width: 820px) {
  .roles-head h2 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .mosaic { grid-template-columns: 1fr; }
  .tile h3 { font-size: clamp(2.5rem, 12.5vw, 3.5rem); overflow-wrap: anywhere; }
  .tile, .tile-lead { min-height: 540px; align-items: end; justify-items: stretch; }
  .tile-lead::before { background: linear-gradient(0deg, rgb(var(--shade) / .95) 0, rgb(var(--shade) / .82) 46%, rgb(var(--shade) / .15) 70%, transparent 80%); }
  .tile-lead { min-height: 660px; --pos: 14% 0; }
  .tile-lead .tile-body { width: auto; }
  .tile-lead picture img { height: 62%; }
}

/* ---------- Locations: one stage ---------- */
.places { position: relative; isolation: isolate; display: grid; min-height: clamp(520px, 46vw, 700px); border-top: 3px solid var(--night); overflow: hidden; background: var(--night); color: #fff; }
.place-art { position: absolute; inset: 0; z-index: -2; }
.place-art picture { display: contents; }
.place-art img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 55%); }
.place-fade { position: absolute; inset: 0; background: no-repeat center / cover; opacity: 0; pointer-events: none; }
.places::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(var(--shade) / .88) 0, rgb(var(--shade) / .6) 24%, rgb(var(--shade) / .08) 46%, transparent 56%), linear-gradient(0deg, rgb(var(--shade) / .7), transparent 34%); }
.place-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 24px 48px; align-items: end; padding-block: clamp(40px, 5vw, 72px); }
.place-pick h2 { margin-bottom: 14px; font-size: 1rem; font-weight: 650; color: rgb(255 255 255 / .8); }
.place-tabs { display: grid; justify-items: start; }
.place-tabs button { font: 800 clamp(2.5rem, 4.6vw, 4.25rem)/1.02 var(--display); font-synthesis: none; text-transform: uppercase; text-align: left; color: rgb(255 255 255 / .46); text-shadow: .03em .03em 0 rgb(var(--shade) / .45); transition: color var(--reveal), translate var(--reveal); }
.place-tabs button:hover { color: rgb(255 255 255 / .85); }
.place-tabs button[aria-pressed="true"] { color: var(--glow); translate: 10px 0; }
.places :focus-visible { outline-color: var(--glow); }
.place-note { padding: 20px 24px; border-radius: 22px; background: rgb(var(--shade) / .5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
#place-blurb { font-size: 1.0625rem; }
.place-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; font-size: .875rem; color: rgb(255 255 255 / .75); }
.place-meta a { text-underline-offset: .2em; }
@media (max-width: 820px) {
  .places { min-height: 0; }
  .place-art { position: relative; aspect-ratio: 4 / 3; z-index: 0; }
  .places::before { content: none; }
  .place-art img { object-position: var(--pos-phone, 60% 50%); }
  .place-layout { grid-template-columns: 1fr; padding-block: 24px 40px; }
  .place-tabs { grid-template-columns: 1fr 1fr; gap: 2px 16px; }
  .place-tabs button { font-size: clamp(1.375rem, 7vw, 2.5rem); min-height: 44px; }
  .place-tabs button[aria-pressed="true"] { translate: none; }
  .place-note { padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Daylight keeps its sunrise across the image. The shading follows the width
   of the names so a long location stays legible on every illustration. */
:root[data-theme="daylight"] .places {
  --place-label: #fff5e9;
  --place-active: #ffbb83;
}
:root[data-theme="daylight"] .place-pick h2 { color: var(--place-label); }
:root[data-theme="daylight"] .place-tabs button {
  color: var(--place-label);
  text-shadow: none;
  padding-inline-start: .22em;
  border-inline-start: 3px solid transparent;
}
:root[data-theme="daylight"] .place-tabs button:hover { text-decoration: underline; text-decoration-thickness: .05em; text-underline-offset: .07em; }
:root[data-theme="daylight"] .place-tabs button[aria-pressed="true"] {
  color: var(--place-active);
  border-color: currentColor;
  translate: none;
}
:root[data-theme="daylight"] .place-note {
  position: relative;
  color: var(--ink);
  background: var(--card);
  border-top: 3px solid var(--glow);
  border-radius: 3px;
  padding: clamp(16px, 2vw, 24px);
}
:root[data-theme="daylight"] .place-meta { color: var(--ink-soft); }
:root[data-theme="daylight"] .place-meta a { color: var(--spot); }
:root[data-theme="daylight"] .place-note :focus-visible { outline-color: var(--spot); }
@media (min-width: 821px) {
  :root[data-theme="daylight"] .place-pick { position: relative; isolation: isolate; width: max-content; max-width: 100%; }
  :root[data-theme="daylight"] .place-pick::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    --feather: clamp(4rem, 12vw, 14rem);
    inset: -100vh calc(-1rem - var(--feather)) -100vh -100vw;
    background: linear-gradient(to left, transparent, rgb(36 20 32 / .84) var(--feather), rgb(36 20 32 / .92));
  }
}
@media (max-width: 820px) {
  :root[data-theme="daylight"] .places { background: var(--paper); --place-label: var(--ink); --place-active: #963522; }
  :root[data-theme="daylight"] .place-tabs button:focus-visible { outline-color: var(--spot); }
}

/* ---------- Launch plan ---------- */
.launch { position: relative; isolation: isolate; overflow: hidden; border-top: 3px solid var(--night); background: var(--night); color: #fff; padding-block: clamp(64px, 8vw, 120px); }
.launch-art { position: absolute; inset: 0; z-index: -2; }
.launch-art picture { display: contents; }
.launch-art img { width: 100%; height: 100%; object-fit: cover; object-position: 0 22%; }      /* port-shift: the supervisor holds the left */
.launch-art figcaption { position: absolute; left: var(--margin); bottom: 20px; font-size: .875rem; color: rgb(255 255 255 / .8); }
.launch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgb(var(--shade) / .95) 0, rgb(var(--shade) / .86) 38%, rgb(var(--shade) / .25) 60%, transparent 72%); }
.launch .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.launch-copy { grid-column: 2; }
.launch-copy .lead { margin-top: 16px; color: rgb(255 255 255 / .86); }
.launch .link { text-decoration-color: var(--glow); }
.launch-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.launch .link:hover { color: var(--glow); }
.launch :focus-visible { outline-color: var(--glow); }
.stages { margin: 36px 0 28px 7px; }
.stages > li { position: relative; padding: 0 0 36px 32px; border-left: 2px dashed rgb(255 255 255 / .35); }
.stages > li:last-child { padding-bottom: 0; border-left-color: transparent; }
.stages > li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--glow); }
.stages > li:last-child::before { background: none; box-shadow: inset 0 0 0 3px var(--glow); }
.stages .tag { background: var(--glow); color: var(--glow-ink); }
.stages .tag.outline { background: none; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); }
.stages h3 { margin: 12px 0 6px; font-size: 1.625rem; line-height: 1.2; letter-spacing: -.015em; }
.stages p { max-width: 58ch; color: rgb(255 255 255 / .9); }
.economy-plan { max-width: 58ch; margin-bottom: 28px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .45); }
.economy-plan h3 { font-size: 1.375rem; margin-bottom: 6px; }
.loop { margin-top: 14px; max-width: 58ch; border-radius: 18px; background: rgb(255 255 255 / .12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding-inline: 18px; }
.loop summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-weight: 650; }
.loop ol { counter-reset: step; display: grid; gap: 8px; margin-bottom: 12px; }
.loop ol li { counter-increment: step; position: relative; padding-left: 1.6em; }
.loop ol li::before { content: counter(step); position: absolute; left: 0; font-weight: 750; color: var(--glow); }
.loop > p { padding-bottom: 16px; }
@media (max-width: 900px) {
  .launch { padding-top: 0; }
  .launch-art { position: relative; aspect-ratio: 16 / 10; z-index: 0; }
  .launch-art img { object-position: 30% 22%; }
  .launch-art figcaption { bottom: 10px; }
  .launch::before { content: none; }
  .launch .wrap { grid-template-columns: 1fr; padding-top: 32px; }
  .launch-copy { grid-column: 1; }
}

/* ---------- Player guide ---------- */
.guide { background: linear-gradient(var(--paper), var(--paper-sunk) 40%); }
.guide .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter) clamp(32px, 6vw, 96px); align-items: start; }
.guide-intro .lead { margin-top: 16px; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.guide-entries { display: grid; gap: 8px; }
.guide-entries details { border-radius: 22px; background: var(--card); padding-inline: 24px; transition: box-shadow var(--reveal); }
.guide-entries details[open] { box-shadow: 0 14px 40px rgb(var(--shade) / .1); }
.guide-entries summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; font-size: 1.1875rem; font-weight: 700; }
.guide-entries summary:hover { color: var(--spot); }
.guide-entries p { max-width: var(--measure); padding-bottom: 18px; }
@media (max-width: 820px) { .guide .wrap { grid-template-columns: 1fr; } }

/* ---------- Brand studio ---------- */
.studio-dialog { width: min(100vw - 32px, 760px); }
.studio-poster { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 8; overflow: hidden; background: var(--night); }
.studio-back { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); }
.studio-mark { position: relative; width: min(58%, 340px); max-height: 72%; object-fit: contain; filter: drop-shadow(0 8px 18px rgb(0 0 0 / .45)); }
.studio-mark[data-form="lv"], .studio-mark[data-form="roundel"] { width: min(30%, 170px); }
.studio-dialog .dialog-body { display: grid; gap: 16px; justify-items: start; }
.studio-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
@media (max-width: 640px) { .studio-controls { grid-template-columns: 1fr; } }
