/* A Fated Roll: Emma's branding (night-sky velvet, purple and teal nebula, silver hairlines and filigree,
   Cinzel Decorative, Montserrat, Lora) with aged parchment kept as the page. */
@font-face { font-family: "Mr Dafoe"; src: url(/fonts/mr-dafoe-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Quicksand; src: url(/fonts/quicksand-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Quicksand; src: url(/fonts/quicksand-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Quicksand; src: url(/fonts/quicksand-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url(/fonts/cinzel-decorative-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url(/fonts/cinzel-decorative-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Cinzel; src: url(/fonts/cinzel-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Cinzel; src: url(/fonts/cinzel-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/fonts/montserrat-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/fonts/montserrat-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Lora; src: url(/fonts/lora-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Lora; src: url(/fonts/lora-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Lora; src: url(/fonts/lora-latin-600-normal.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: Lora; src: url(/fonts/lora-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --night: #061e16; --night-2: #0a2a20; --night-3: #0c392a;
  --purple: #523678; --lilac: #d1b8ff; --mint: #e8f1ee; --teal: #a5d8db; --silver: #c9d3d8;
  --gold: #d1b8ff; --gold-hi: #e4d6ff; --ember: #d1b8ff; --candle: #f4efff; /* "gold" is the accent: the brand's lilac */
  --parch: #ecdcb4; --parch-2: #dfc88f; --parch-edge: #b5955a;
  --ink: #2a1b0e; --ink-soft: #5a4229; --light: #e8f1ee; --light-soft: #a9c4be;
  --deco: "Cinzel Decorative", Cinzel, Georgia, serif; /* the show's name and the characters' names */
  --script: Cinzel, "Cinzel Decorative", Georgia, serif; /* headings: the same family without the swash capitals, which made "THE" read as a typo */
  --head: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif; /* labels, buttons, eyebrows */
  --sans: Lora, Georgia, "Times New Roman", serif; /* body copy */
  --c: #8a6cc0; /* the default "character" colour: a purple that reads on both the night and the parchment */
  --mini: 0px; /* height of the docked player; set by the player */
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.55; color: var(--light);
  background: var(--night); min-height: 100vh; overflow-x: hidden; padding-bottom: calc(var(--mini) + env(safe-area-inset-bottom, 0px));
}
body::before { /* soft purple and teal nebula over deep velvet green */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(900px 560px at 50% -10%, rgba(82, 54, 120, .55), transparent 70%), radial-gradient(700px 520px at 108% 38%, rgba(165, 216, 219, .12), transparent 70%), radial-gradient(800px 620px at -12% 82%, rgba(82, 54, 120, .35), transparent 70%), linear-gradient(#071f17, #04130e);
}
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url(/img/stars.svg) 0 0 / 600px; opacity: .55; } /* constellations and stardust */
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: #ffffff; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: .01em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ----- header ----- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 6px 12px 6px 16px; background: linear-gradient(rgba(6, 30, 22, .96), rgba(6, 30, 22, .84)); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(201, 211, 216, .35); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--deco); font-weight: 700; font-size: 21px; line-height: 1; color: var(--mint); text-decoration: none; margin-right: auto; padding: 4px 0; text-shadow: 0 0 14px rgba(209, 184, 255, .5); white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(201, 211, 216, .6), 0 0 14px rgba(209, 184, 255, .45); }
.nav { display: none; gap: 2px; }
.nav a { color: var(--light); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: .04em; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-hi); background: rgba(209, 184, 255, .12); }
.menu-btn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; background: transparent; border: 1px solid rgba(201, 211, 216, .55); color: var(--gold-hi); border-radius: 10px; cursor: pointer; font: inherit; font-family: var(--head); font-weight: 700; padding: 0 12px; }
.sheet { position: fixed; inset: 58px 0 0 0; z-index: 29; background: rgba(5, 24, 18, .97); padding: 18px 20px 120px; display: none; overflow: auto; }
.sheet.open { display: block; }
.sheet a { display: flex; align-items: center; min-height: 56px; font-family: var(--script); font-weight: 700; font-size: 26px; color: var(--light); text-decoration: none; border-bottom: 1px solid rgba(201, 211, 216, .22); }
.sheet a[aria-current="page"] { color: var(--gold-hi); }
@media (min-width: 860px) { .nav { display: flex; } .menu-btn { display: none; } .sheet { display: none !important; } }

/* ----- layout ----- */
main { display: block; outline: none; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.section { padding: 34px 0; }
.eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: .26em; font-size: 12px; font-weight: 700; color: var(--teal); margin: 0 0 8px; }
.h-script { font-family: var(--script); font-weight: 700; font-size: clamp(28px, 7.4vw, 48px); line-height: 1.12; color: var(--mint); margin: 0 0 .4em; text-shadow: 0 2px 18px rgba(209, 184, 255, .45); }
.muted { color: var(--light-soft); }
.lead { font-size: 19px; }

/* ----- buttons ----- */
.btn { --b: var(--gold); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--b); background: transparent; color: var(--gold-hi); font: inherit; font-family: var(--head); font-weight: 700; font-size: 16px; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: rgba(209, 184, 255, .16); color: #ffffff; }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(#e6dbff, #d1b8ff 55%, #b598ec); color: #24133d; border-color: #f1ebff; box-shadow: 0 4px 18px rgba(209, 184, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn.primary:hover { filter: brightness(1.06); color: #24133d; }
.btn.small { min-height: 44px; padding: 6px 14px; font-size: 15px; }
.btn.danger { --b: #e0796d; color: #ffb4aa; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ----- parchment ----- */
.parch { position: relative; isolation: isolate; color: var(--ink); padding: 46px 24px 40px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55)); }
.parch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/img/paper.svg), url(/img/runes-ink.svg), linear-gradient(135deg, #f0e1bb, #e2cd97 60%, #d4b878); background-size: 400px, 420px, auto; background-blend-mode: multiply, normal, normal; box-shadow: inset 0 0 40px rgba(120, 80, 20, .45);
  -webkit-mask: url(/img/torn-top.svg) top / 400px 14px repeat-x, linear-gradient(#000, #000) center / 100% calc(100% - 26px) no-repeat, url(/img/torn-bottom.svg) bottom / 400px 14px repeat-x;
  mask: url(/img/torn-top.svg) top / 400px 14px repeat-x, linear-gradient(#000, #000) center / 100% calc(100% - 26px) no-repeat, url(/img/torn-bottom.svg) bottom / 400px 14px repeat-x; }
.parch::after { /* a fine hairline with filigree corners */
  content: ""; position: absolute; inset: 20px 10px; pointer-events: none; z-index: -1; border: 1px solid rgba(82, 54, 120, .45);
  background: url(/img/filigree-tl.svg) top left / 34px no-repeat, url(/img/filigree-tr.svg) top right / 34px no-repeat, url(/img/filigree-bl.svg) bottom left / 34px no-repeat, url(/img/filigree-br.svg) bottom right / 34px no-repeat; }
.parch h2, .parch h3 { color: var(--ink); }
.parch .h-script { color: color-mix(in srgb, var(--c) 55%, #1a0f05); text-shadow: none; }
.parch .eyebrow { color: color-mix(in srgb, var(--c) 60%, #3a2410); }
.parch a { color: color-mix(in srgb, var(--c) 55%, #1a0f05); }
.parch .muted { color: var(--ink-soft); }
.parch .btn { --b: var(--ink); color: var(--ink); }
.parch .btn:hover { background: rgba(42, 27, 14, .1); }
.parch .btn.primary { color: #24133d; --b: #523678; }

/* ----- hero ----- */
.hero { position: relative; text-align: center; padding: 26px 0 30px; overflow: hidden; }
.hero canvas.embers { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero .inner { position: relative; }
.hero .badge { font-family: var(--head); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin: 0 0 6px; }
.hero .emblem { display: block; width: clamp(150px, 46vw, 300px); height: auto; aspect-ratio: 1; margin: 0 auto 2px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(201, 211, 216, .5), 0 0 60px rgba(209, 184, 255, .35), 0 0 120px rgba(165, 216, 219, .15); }
.hero h1 { font-family: var(--deco); font-weight: 700; font-size: clamp(30px, 8.6vw, 64px); line-height: 1.05; margin: 6px 0 0; color: var(--mint); text-shadow: 0 0 26px rgba(209, 184, 255, .6), 0 2px 0 rgba(0, 0, 0, .5); }
.hero .sub { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .42em; font-size: clamp(12px, 3.4vw, 18px); color: var(--teal); margin: 4px 0 12px; }
.hero .logline { max-width: 34em; margin: 0 auto 18px; font-size: 18px; color: var(--light); }
.hero .row { justify-content: center; }
.play-d20 { display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; cursor: pointer; color: var(--gold-hi); font: inherit; font-family: var(--head); font-weight: 700; font-size: 18px; padding: 4px 10px 4px 4px; min-height: 64px; border-radius: 999px; }
.play-d20 .die { position: relative; width: 64px; height: 66px; display: grid; place-items: center; filter: drop-shadow(0 0 16px rgba(209, 184, 255, .7)); transition: transform .6s cubic-bezier(.2, 1.4, .3, 1); }
.play-d20 .die img { position: absolute; inset: 0; width: 100%; height: 100%; }
.play-d20 .die svg { position: relative; width: 26px; height: 26px; fill: var(--ink); margin-left: 3px; }
.play-d20:hover .die, .play-d20.rolling .die { transform: rotate(360deg) scale(1.08); }
.play-d20 small { display: block; font-family: var(--sans); font-weight: 400; color: var(--light-soft); font-size: 13px; }
.play-d20 span { text-align: left; line-height: 1.2; }

/* ----- cards (characters) ----- */
.grid { display: grid; gap: 18px; }
.grid.chars { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.char-card { --c: var(--gold); display: block; text-decoration: none; color: var(--light); background: linear-gradient(#0d2c22, #06190f); border: 1px solid color-mix(in srgb, var(--c) 55%, var(--silver)); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); transition: transform .2s, box-shadow .2s; }
.char-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, .6), 0 0 24px color-mix(in srgb, var(--c) 35%, transparent); color: var(--light); }
.char-card .pic { aspect-ratio: 4 / 5; background: #000; position: relative; }
.char-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.char-card .body { padding: 12px 14px 14px; }
.char-card h3 { font-family: var(--deco); font-weight: 700; font-size: 22px; padding: 2px 0; color: color-mix(in srgb, var(--c) 45%, #fff); margin: 0; }
.char-card .voice { font-family: var(--head); font-weight: 500; font-size: 13px; color: var(--light-soft); }
.standin { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 40%, #000), #04130e 75%); }
.standin .parch-mini { width: 86%; aspect-ratio: 4 / 5.2; background: url(/img/paper.svg), linear-gradient(135deg, #efe0ba, #d8c08a); background-blend-mode: multiply; color: var(--ink); border-radius: 6px; padding: 14px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 70%, #000) inset, 0 10px 24px rgba(0, 0, 0, .6); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.standin .parch-mini b { font-family: var(--deco); font-weight: 700; font-size: 26px; line-height: 1; color: color-mix(in srgb, var(--c) 60%, #1a0f05); }
.standin .parch-mini span { font-size: 13px; font-weight: 700; }
.standin svg { width: 56px; height: 56px; margin: 0 auto 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 11px; border-radius: 999px; font-family: var(--head); font-size: 12px; font-weight: 700; background: rgba(209, 184, 255, .12); color: var(--gold-hi); border: 1px solid rgba(201, 211, 216, .45); }
.parch .chip { background: rgba(42, 27, 14, .08); color: var(--ink); border-color: rgba(42, 27, 14, .35); }
.chip.dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 7px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; margin: 0 -16px 22px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
@media (min-width: 860px) { .carousel { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0 0 28px; padding: 4px 0; gap: 18px; } .carousel .char-card { flex: none; } }
.carousel .char-card { flex: 0 0 min(64vw, 240px); scroll-snap-align: start; }

/* ----- character page ----- */
.char-page { --c: var(--gold); display: grid; gap: 22px; }
.char-page .card-img { border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .6), 0 0 40px color-mix(in srgb, var(--c) 30%, transparent); align-self: start; position: relative; aspect-ratio: 4 / 5; background: #000; }
.char-page .card-img img { width: 100%; height: 100%; display: block; }
@media (min-width: 760px) { .char-page { grid-template-columns: minmax(280px, 420px) 1fr; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.stats li { border: 1.5px solid color-mix(in srgb, var(--c) 60%, #000); border-radius: 10px; text-align: center; padding: 6px 4px; background: rgba(42, 27, 14, .06); }
.stats b { display: block; font-size: 22px; line-height: 1.1; }
.stats span { font-family: var(--head); font-size: 12px; letter-spacing: .1em; font-weight: 700; color: var(--ink-soft); }
.quote { font-family: var(--sans); font-style: italic; font-size: clamp(22px, 5vw, 30px); line-height: 1.3; margin: 10px 0 16px; color: color-mix(in srgb, var(--c) 55%, #1a0f05); }
dl.facts { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
dl.facts dt { font-family: var(--head); font-size: 15px; font-weight: 700; color: var(--ink-soft); }
dl.facts dd { margin: 0; }

/* ----- songs ----- */
.act-tabs { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.act-title { font-family: var(--script); font-size: 30px; color: var(--mint); margin: 22px 0 8px; font-weight: 700; text-shadow: 0 0 18px rgba(209, 184, 255, .4); }
.song-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.song-row { --c: var(--gold); display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; background: linear-gradient(rgba(16, 52, 40, .92), rgba(7, 28, 21, .92)); border: 1px solid rgba(201, 211, 216, .28); border-left: 4px solid var(--c); border-radius: 12px; padding: 8px 10px 8px 8px; }
.song-row .play { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--c); background: rgba(0, 0, 0, .3); color: color-mix(in srgb, var(--c) 40%, #fff); display: grid; place-items: center; cursor: pointer; padding: 0; }
.song-row .play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }
.song-row .play[disabled] { opacity: .4; cursor: default; }
.song-row .info { min-width: 0; }
.song-row .info a { color: var(--light); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 17px; display: block; padding: 2px 0; }
.song-row .info a:hover { color: var(--gold-hi); }
.song-row .meta { font-size: 14px; color: var(--light-soft); display: block; }
.song-row .len { font-size: 14px; color: var(--light-soft); font-variant-numeric: tabular-nums; }
.status { display: inline-block; font-family: var(--head); font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid; margin-top: 3px; }
.status.ai { color: #e4d6ff; border-color: #8a6cc0; background: rgba(209, 184, 255, .1); }
.status.cast { color: #a9e6a1; border-color: #3f7a3a; background: rgba(63, 138, 58, .15); }
.status.inst, .status.none { color: #c9d3d8; border-color: #5d6f6a; background: rgba(255, 255, 255, .05); }
.status.soon { color: #bfe9eb; border-color: #4f8f93; background: rgba(165, 216, 219, .1); }
.song-page .lyrics-box { margin-top: 18px; }

/* lyrics text */
.lyrics { font-size: 18px; line-height: 1.55; }
.lyrics .stanza { margin: 0 0 1.1em; }
.lyrics .speaker { font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; display: block; margin-top: .2em; color: color-mix(in srgb, var(--c) 60%, #2a1b0e); }
.lyrics .dir { font-style: italic; color: var(--ink-soft); display: block; }
.lyrics .ln { display: block; }

/* ----- sound / story ----- */
.prose p { max-width: 42em; }
.motifs { display: grid; gap: 12px; margin: 14px 0; }
.motif { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.note { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px; font-weight: 700; background: rgba(42, 27, 14, .08); border: 1.5px solid rgba(42, 27, 14, .45); font-variant-numeric: tabular-nums; }
.palette { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.palette .parch { padding: 22px 18px; }

/* ----- forms ----- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > label, .field > .lab, legend { font-family: var(--head); font-weight: 700; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--ink-soft); }
.field .err { color: #8f1d12; font-weight: 700; font-size: 15px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-weight: 500; color: var(--ink); background: #fbf3dc; border: 2px solid #a98a4c; border-radius: 10px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #8a5a00; outline-offset: 1px; border-color: #6b4a1c; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 6px 0; cursor: pointer; }
.check input { width: 26px; height: 26px; flex: none; margin: 0; accent-color: #8a5a00; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.role-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.role-pick label { display: flex; gap: 8px; align-items: center; min-height: 48px; padding: 6px 12px; border: 2px solid #a98a4c; border-radius: 10px; background: #fbf3dc; cursor: pointer; font-weight: 700; }
.role-pick label:has(input:checked) { background: color-mix(in srgb, var(--c, #b9b9f2) 25%, #fbf3dc); border-color: #6b4a1c; }
.role-pick input { width: 22px; height: 22px; accent-color: #6b4a1c; margin: 0; }
.drop { border: 2px dashed #8a6f3a; border-radius: 12px; padding: 18px; text-align: center; background: rgba(255, 255, 255, .25); }
.progress { height: 12px; border-radius: 999px; background: rgba(42, 27, 14, .18); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8a6cc0, #d1b8ff); transition: width .2s; }
.banner { padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.banner.ok { background: #d7ebc4; color: #1d3a10; border: 2px solid #4b7f33; }
.banner.bad { background: #f6d6cf; color: #6b150b; border: 2px solid #b0402f; }
.banner.info { background: rgba(209, 184, 255, .16); color: inherit; border: 2px solid rgba(209, 184, 255, .55); }

/* ----- footer ----- */
.foot { padding: 36px 16px 30px; text-align: center; color: var(--light-soft); font-size: 14px; border-top: 1px solid rgba(201, 211, 216, .28); margin-top: 30px; }
.foot .script { font-family: var(--deco); font-size: 22px; font-weight: 700; color: var(--mint); display: block; margin-bottom: 4px; }
.foot .emblem { width: 72px; height: 72px; border-radius: 50%; display: block; margin: 0 auto 8px; box-shadow: 0 0 0 1px rgba(201, 211, 216, .5), 0 0 24px rgba(209, 184, 255, .35); }
.foot a { color: var(--light-soft); }

/* ----- the d20 divider ----- */
.rule { display: flex; align-items: center; gap: 14px; margin: 8px 0; color: var(--gold); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 211, 216, .7), transparent); }
.rule img { width: 26px; opacity: .9; }

/* ----- mini player ----- */
.mini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(rgba(10, 40, 30, .97), rgba(4, 19, 14, .99)); border-top: 2px solid var(--c, var(--gold)); box-shadow: 0 -8px 30px rgba(0, 0, 0, .6); display: none; }
.mini.show { display: block; }
.mini .bar { position: absolute; left: 0; top: -2px; height: 2px; background: var(--gold-hi); width: 0; }
.mini .inner { width: min(1080px, 100%); margin: 0 auto; display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; }
.mini .art { width: 48px; height: 48px; border-radius: 10px; background: radial-gradient(circle, color-mix(in srgb, var(--c, #b9b9f2) 80%, #fff), color-mix(in srgb, var(--c, #b9b9f2) 50%, #000)); display: grid; place-items: center; border: 0; cursor: pointer; padding: 0; }
.mini .art img { width: 30px; }
.mini .what { min-width: 0; text-align: left; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 4px 0; }
.mini .what b { display: block; font-family: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .what small { display: block; color: var(--light-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .ctl { display: flex; gap: 2px; }
.iconbtn { width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--light); cursor: pointer; padding: 0; }
.iconbtn:hover { background: rgba(209, 184, 255, .16); color: var(--gold-hi); }
.iconbtn svg { width: 24px; height: 24px; fill: currentColor; }
.iconbtn.big { width: 68px; height: 68px; background: linear-gradient(#e6dbff, #b598ec); color: #24133d; box-shadow: 0 4px 24px rgba(209, 184, 255, .5); }
.iconbtn.big svg { width: 32px; height: 32px; }
.iconbtn.big:hover { color: #24133d; filter: brightness(1.07); background: linear-gradient(#e6dbff, #b598ec); }

/* ----- full player ----- */
.full { position: fixed; inset: 0; z-index: 60; display: none; flex-direction: column; background: #04130e; color: var(--light); }
.full.open { display: flex; }
.full canvas.vis { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.full .shade { position: absolute; inset: 0; background: linear-gradient(rgba(3, 14, 10, .55), rgba(3, 14, 10, 0) 22%, rgba(3, 14, 10, 0) 45%, rgba(3, 14, 10, .85) 100%); pointer-events: none; }
.full .head { position: relative; display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 0 14px; }
.full .head .ttl { flex: 1; min-width: 0; text-align: center; }
.full .head .ttl b { display: block; font-family: var(--script); font-weight: 700; font-size: 22px; line-height: 1.05; color: var(--gold-hi); text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
.full .head .ttl small { color: var(--light); text-shadow: 0 1px 8px #000; }
.full .lyric-stage { position: relative; flex: 1; margin-top: 30vh; min-height: 0; display: grid; align-content: end; padding: 0 20px 6px; text-align: center; overflow: hidden; }
.full .lyric-scroll { max-height: 100%; overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth; mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); padding: 14% 0; }
.full .lyric-scroll::-webkit-scrollbar { display: none; }
.full .l { display: block; font-size: 21px; line-height: 1.35; margin: 4px 0; color: rgba(232, 241, 238, .55); transition: color .25s, transform .25s, text-shadow .25s; text-shadow: 0 1px 8px #000; }
.full .l.sp { font-family: var(--head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin-top: 16px; color: rgba(165, 216, 219, .85); }
.full .l.dir { font-style: italic; font-size: 16px; }
.full .l.now { color: #fff; font-weight: 700; text-shadow: 0 0 18px var(--c), 0 2px 10px #000; }
.full .l.seekable { cursor: pointer; }
.full .l.seekable:hover { color: #fff; }
.full .l.seekable:focus-visible { outline: 2px solid var(--c, gold); outline-offset: 2px; border-radius: 4px; }
.full .l.past { color: rgba(232, 241, 238, .35); }
.full .plain { color: rgba(232, 241, 238, .85); }
.full .controls { position: relative; padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, rgba(3, 14, 10, .9) 30%); }
.full .seek { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--light-soft); }
.full input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.full input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c) var(--p, 0%), rgba(255, 255, 255, .22) var(--p, 0%)); }
.full input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.full input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--c); }
.full input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--mint); border: 3px solid var(--c); }
.full input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--mint); border: 3px solid var(--c); }
.full .btns { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 2px; }
.full .tone-note { text-align: center; font-size: 14px; color: var(--gold-hi); margin: 0 0 4px; position: relative; }
.toast { position: fixed; left: 50%; bottom: calc(var(--mini) + 24px); transform: translateX(-50%); z-index: 90; background: var(--gold-hi); color: #24133d; font-family: var(--head); font-weight: 700; padding: 10px 18px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); max-width: 92vw; }

/* ----- misc ----- */
.loading { padding: 40px 0; text-align: center; color: var(--light-soft); }
.notfound { text-align: center; padding: 60px 0; }
.two { display: grid; gap: 18px; }
@media (min-width: 800px) { .two { grid-template-columns: 1fr 1fr; } .parch { padding: 50px 44px 44px; } }
.role-hero { display: flex; gap: 14px; align-items: center; }
.role-hero img { width: 64px; border-radius: 8px; }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .full .lyric-scroll { scroll-behavior: auto; }
}

[hidden] { display: none !important; }

/* The player's seek bar: no box around it when focused; the thumb shows the focus instead. */
.full input[type=range]:focus, .full input[type=range]:focus-visible { outline: none; border: 0; }
.full input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(209, 184, 255, .5); }
.full input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(209, 184, 255, .5); }
