/* Daily Deity: an oracle engine of the ancient heavens.
   A star-console of ancient make: bronze astrolabe rings turning in deep space, obsidian shutter-plates engraved with
   the letters of the Greek alphabet, instrument cells that glow aether-cyan (a match) and solar amber (close).
   The clue words stay plain; the machine is the frame, not the vocabulary. One dark world by design. */
:root {
  color-scheme: dark;
  --void: #04060c;
  --void-2: #0a0f1c;
  --room: #1b2a55;                 /* the nebula's tint; becomes the answer's gallery room on a win */
  --ink: #ece4cf;
  --ink-dim: #a3a9b8;
  --ink-faint: #6d7486;
  --bronze: #b08d57;
  --bronze-hi: #e7c98f;
  --bronze-lo: #5a4424;
  --aether: #5fe4d0;               /* a match */
  --aether-ink: #dffcf6;
  --sun: #ffbf5e;                  /* close */
  --sun-ink: #fff1d9;
  --panel: rgb(12 17 30 / .78);
  --line: rgb(176 141 87 / .32);
  --display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --ui: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --text: 'EB Garamond', Garamond, Georgia, serif;
  --gutter: clamp(14px, 2.6vw, 44px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); }
body {
  margin: 0; min-height: 100svh; color: var(--ink); font-family: var(--ui); font-size: 17px; line-height: 1.5;
  background:
    radial-gradient(ellipse 70% 55% at 28% 38%, color-mix(in srgb, var(--room) 55%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 12%, rgb(95 228 208 / .07), transparent 70%),
    radial-gradient(ellipse 60% 45% at 70% 95%, rgb(255 191 94 / .06), transparent 70%),
    var(--void);
  background-attachment: fixed;
  transition: background 1.6s ease;
}
/* the star field */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .9;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 34%, #cfe 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 72%, #ffe9c4 50%, transparent 51%), radial-gradient(1px 1px at 88% 81%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 9%, #dfe 50%, transparent 51%), radial-gradient(1px 1px at 22% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 47%, #ffe 50%, transparent 51%), radial-gradient(1.5px 1.5px at 64% 63%, #cff 50%, transparent 51%);
  background-size: 420px 420px, 380px 380px, 520px 520px, 460px 460px, 350px 350px, 400px 400px, 480px 480px, 560px 560px;
}
a { color: inherit; text-decoration-color: rgb(231 201 143 / .6); text-underline-offset: 3px; }
a:hover { color: var(--bronze-hi); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--aether); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.loading { padding: 20vh var(--gutter); text-align: center; color: var(--ink-dim); letter-spacing: .12em; text-transform: uppercase; font-size: 14px; }
.eyebrow, .c-k, .t-k, .sig-k { font-family: var(--ui); text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; font-weight: 500; color: var(--ink-faint); }

/* ------------------------------------------------------------------ console header */
.top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); background: linear-gradient(rgb(4 6 12 / .85), rgb(4 6 12 / .55)); }
.top::after { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--aether), transparent); opacity: .45; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--display); font-size: clamp(24px, 2.2vw, 32px); letter-spacing: .22em; color: var(--bronze-hi); line-height: 1; }
.brand-sub { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint); }
.top-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.top-nav button, .top-nav a {
  background: rgb(255 255 255 / .02); border: 1px solid var(--line); padding: 6px 12px; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; color: var(--ink); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.top-nav button:hover, .top-nav a:hover { border-color: var(--aether); color: var(--aether-ink); background: rgb(95 228 208 / .08); }
.top-nav .count { color: var(--aether); margin-left: 4px; }
@media (max-width: 640px) { .brand-sub, .to-gallery { display: none; } .top-nav button { padding: 5px 9px; font-size: 12px; letter-spacing: .08em; } }

/* ------------------------------------------------------------------ layout */
.app { display: grid; gap: 28px clamp(28px, 4vw, 72px); padding: 22px var(--gutter) 40px; max-width: 1600px; margin: 0 auto; }
@media (min-width: 980px) { .app { grid-template-columns: minmax(360px, 40%) minmax(0, 1fr); align-items: start; } .stage { position: sticky; top: 14px; } }
.stage { display: grid; justify-items: center; text-align: center; position: relative; }
.stage-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 10px; }
.stage-head .no { font-family: var(--display); font-size: 17px; letter-spacing: .14em; color: var(--bronze-hi); }
.stage-head .date { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.stage-head a { font-size: 13px; letter-spacing: .08em; }

/* the viewport: the plate in a bronze bezel, with the astrolabe turning behind it */
.viewport { position: relative; display: grid; place-items: center; padding: 26px; isolation: isolate; }
.orrery { position: absolute; z-index: -1; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; opacity: .75; }
.orrery .ring-a { transform-origin: 500px 500px; animation: turn 320s linear infinite; }
.orrery .ring-b { transform-origin: 500px 500px; animation: turn 200s linear infinite reverse; }
.orrery .ring-c { transform-origin: 500px 500px; animation: turn 90s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.lens { position: relative; margin: 0; }
.bezel {
  position: relative; display: block; padding: 7px;
  background: linear-gradient(145deg, #3b2c14 0%, #b08d57 18%, #5a4424 40%, #e7c98f 62%, #4a3718 100%);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .7), inset 0 0 0 1px rgb(255 240 200 / .3), 0 0 60px rgb(95 228 208 / .12), 0 30px 60px -20px rgb(0 0 0 / .9);
}
.bezel img { display: block; height: min(56vh, 600px); width: auto; aspect-ratio: 3 / 4; background: #0b0f1a; }
@media (max-width: 979px) { .bezel img { height: auto; width: min(52vw, 330px); } .viewport { padding: 16px; } }
/* scanlines over the plate, faint */
.scan { position: absolute; inset: 7px; pointer-events: none; background: repeating-linear-gradient(0deg, rgb(95 228 208 / .035) 0 1px, transparent 1px 4px); mix-blend-mode: screen; }
/* targeting brackets at the corners */
.brackets i { position: absolute; width: 26px; height: 26px; border: 2px solid var(--aether); opacity: .8; filter: drop-shadow(0 0 4px rgb(95 228 208 / .6)); }
.brackets i:nth-child(1) { left: -14px; top: -14px; border-right: 0; border-bottom: 0; }
.brackets i:nth-child(2) { right: -14px; top: -14px; border-left: 0; border-bottom: 0; }
.brackets i:nth-child(3) { left: -14px; bottom: -14px; border-right: 0; border-top: 0; }
.brackets i:nth-child(4) { right: -14px; bottom: -14px; border-left: 0; border-top: 0; }
/* the veil: twenty obsidian shutter-plates, each engraved with a letter */
.veil { position: absolute; inset: 7px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(5, 1fr); overflow: hidden; }
.veil i {
  position: relative; display: grid; place-items: center; margin: -0.5px; font-style: normal;
  font-family: var(--text); font-size: clamp(18px, 2vw, 30px); color: rgb(231 201 143 / .45); text-shadow: 0 0 10px rgb(231 201 143 / .25);
  background: radial-gradient(circle at 50% 40%, #1a2233, #0b0f19 70%);
  box-shadow: inset 0 0 0 1px rgb(176 141 87 / .28), inset 0 0 18px rgb(0 0 0 / .8);
  transition: transform .9s cubic-bezier(.6, 0, .2, 1), opacity .9s ease, filter .9s ease;
}
.veil i::after { content: ''; position: absolute; inset: 0; border: 1px solid rgb(95 228 208 / .08); }
.veil i.up { transform: perspective(500px) rotateX(75deg) translateY(-30%); opacity: 0; filter: brightness(2.2); }
.veil-q { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .6s ease; }
.veil-q span { font-family: var(--display); font-size: clamp(56px, 8vw, 120px); color: var(--bronze-hi); text-shadow: 0 0 24px rgb(231 201 143 / .5), 0 0 60px rgb(95 228 208 / .25); }
.veil.touched .veil-q { opacity: 0; }

/* the veil meter */
.signal { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.segs { display: flex; gap: 3px; }
.segs i { width: 9px; height: 12px; background: var(--bronze-lo); box-shadow: inset 0 0 0 1px rgb(231 201 143 / .25); transform: skewX(-18deg); }
.segs i.off { background: var(--aether); box-shadow: 0 0 8px rgb(95 228 208 / .7); }
.sig-v { font-size: 13px; letter-spacing: .1em; color: var(--ink-dim); font-variant-numeric: tabular-nums; }

.caption { margin: 16px 0 0; display: grid; gap: 2px; max-width: 32em; color: var(--ink-dim); font-family: var(--text); font-style: italic; font-size: 19px; }
.c-name { font-family: var(--display); font-style: normal; font-size: clamp(26px, 2.2vw, 36px); color: var(--ink); letter-spacing: .06em; text-shadow: 0 0 20px rgb(231 201 143 / .3); }
.c-label { font-size: 17px; }
.say { font-family: var(--text); font-style: normal; font-variant: small-caps; letter-spacing: .06em; color: var(--ink-dim); }
.say b { font-weight: 600; color: var(--sun); }
.say .hy { opacity: .5; }

/* hints and counter */
.hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.hint { background: rgb(255 255 255 / .02); border: 1px solid var(--line); padding: 7px 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.hint span { text-transform: none; letter-spacing: 0; color: var(--ink-faint); margin-left: 6px; }
.hint:disabled { cursor: default; opacity: .6; }
.hint:disabled::before { content: '\25cc  '; color: var(--ink-faint); }
.hint:not(:disabled):hover { border-color: var(--sun); background: rgb(255 191 94 / .08); }
.hint.used { border-color: rgb(255 191 94 / .35); color: var(--sun); }
.hint-out { max-width: 32em; }
.hint-out p { margin: 12px 0 0; font-family: var(--text); font-size: 19px; }
.hint-out .t-k { display: block; margin-bottom: 2px; color: var(--sun); }
.redact { background: var(--ink-dim); color: var(--ink-dim); border-radius: 1px; letter-spacing: -.1em; }
.blank { display: inline-block; border-bottom: 2px solid var(--sun); margin: 0 1px; }
.syl { color: var(--ink-dim); font-style: italic; }
.counter { margin: 14px 0 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.giveup { background: none; border: 0; border-bottom: 1px solid var(--line); padding: 0; margin-left: 12px; color: var(--ink-faint); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.giveup:hover { color: var(--sun); }

/* the end: verdict, the claimed trophy, links */
.end { margin-top: 16px; display: grid; justify-items: center; gap: 12px; }
.verdict { margin: 0; font-family: var(--display); font-size: 22px; letter-spacing: .12em; color: var(--aether); text-shadow: 0 0 18px rgb(95 228 208 / .4); }
.verdict.lost { color: var(--sun); text-shadow: 0 0 18px rgb(255 191 94 / .35); }
.claimed { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border: 1px solid rgb(95 228 208 / .5); background: rgb(95 228 208 / .06); text-align: left; cursor: pointer; }
.claimed:hover { background: rgb(95 228 208 / .12); }
.claimed .medal { width: 54px; }
.claimed b { display: block; font-family: var(--display); font-weight: 400; letter-spacing: .06em; font-size: 16px; color: var(--aether-ink); }
.claimed span { font-size: 13px; color: var(--ink-dim); }
.end-links, .end-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 0; }
.primary, .share {
  display: inline-block; background: linear-gradient(180deg, #e7c98f, #b08d57); color: #1a1208; border: 0; padding: 9px 18px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; font-weight: 600;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.primary:hover, .share:hover { filter: brightness(1.12); color: #1a1208; }
.ghost { background: rgb(255 255 255 / .02); border: 1px solid var(--line); padding: 8px 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.ghost:hover { border-color: var(--aether); color: var(--aether-ink); }
.yesterday { margin: 0; font-size: 14px; color: var(--ink-dim); }

/* ------------------------------------------------------------------ invocation (search) */
.search { position: relative; z-index: 5; }
.search .eyebrow { display: block; margin-bottom: 6px; }
.prompt { position: relative; display: flex; align-items: center; border: 1px solid rgb(95 228 208 / .45); background: rgb(4 8 16 / .8); box-shadow: 0 0 24px rgb(95 228 208 / .08), inset 0 0 20px rgb(95 228 208 / .05); }
.prompt::before { content: '\203a'; padding: 0 4px 0 16px; font-size: 26px; color: var(--aether); line-height: 1; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: clamp(19px, 1.5vw, 23px); letter-spacing: .04em; color: var(--ink); background: transparent; border: 0; padding: 12px 14px 12px 6px; }
.search input::placeholder { color: var(--ink-faint); }
.search input:focus { outline: none; }
.prompt:focus-within { border-color: var(--aether); box-shadow: 0 0 0 1px var(--aether), 0 0 30px rgb(95 228 208 / .2); }
.search input:disabled { opacity: .7; }
#options { position: absolute; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none; background: #070b15; border: 1px solid rgb(95 228 208 / .45); box-shadow: 0 18px 40px rgb(0 0 0 / .7); max-height: 60vh; overflow: auto; }
#options li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 16px; cursor: pointer; }
#options li[aria-selected] { background: rgb(95 228 208 / .12); box-shadow: inset 3px 0 0 var(--aether); }
.o-name { font-family: var(--display); font-size: 18px; letter-spacing: .04em; }
.o-culture { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--aether); opacity: .8; }
.o-none { color: var(--ink-dim); cursor: default !important; }

/* ------------------------------------------------------------------ panels: readings and observations */
.panelx { position: relative; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.panelx::before, .panelx::after { content: ''; position: absolute; width: 12px; height: 12px; border: 1px solid var(--bronze-hi); opacity: .7; }
.panelx::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.panelx::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.known { margin-top: 16px; padding: 14px 18px 16px; }
.known h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--ui); font-weight: 500; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--aether); }
.known h2::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--aether); box-shadow: 0 0 10px var(--aether); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.known-empty { margin: 0; font-family: var(--text); font-style: italic; font-size: 18px; color: var(--ink-dim); }
.kws { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 20px; }
.kw .t-v { display: block; font-size: 16px; color: var(--ink-faint); }
.kw.on .t-v { color: var(--ink); }
.kw.on .t-k { color: var(--aether); }
.legend { display: grid; grid-template-columns: 1fr .9fr .75fr 1.7fr 2fr; gap: 8px; margin: 14px 0 10px; }
.legend-key { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink-dim); }

.guesses { display: grid; gap: 14px; margin-top: 16px; }
.guess { padding: 12px 14px 14px; }
.guess header { display: grid; grid-template-columns: auto auto 1fr; column-gap: 12px; align-items: center; margin-bottom: 10px; }
.g-no { font-size: 12px; letter-spacing: .16em; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.medal { display: block; width: 40px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; padding: 2px; background: linear-gradient(145deg, #5a4424, #e7c98f 45%, #5a4424); box-shadow: 0 0 0 1px rgb(0 0 0 / .6); }
.medal img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 50%; }
.medal.empty { background: var(--bronze-lo); }
.guess h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: .05em; line-height: 1.15; }
.g-where { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

/* instrument cells */
.tiles { display: grid; grid-template-columns: 1fr 1fr .85fr 1.6fr 1.9fr; gap: 8px; }
.cell, .lg { position: relative; display: grid; align-content: start; gap: 3px; min-height: 80px; padding: 9px 10px; border: 1px solid rgb(176 141 87 / .22); background: rgb(255 255 255 / .025); }
.lg { min-height: 50px; }
.cell .c-v { font-size: 16.5px; line-height: 1.25; color: var(--ink-dim); }
.cell .c-k { padding-right: 16px; letter-spacing: .1em; font-size: 11px; }
.cell .c-s { position: absolute; right: 8px; top: 6px; font-size: 13px; color: var(--ink-faint); }
.cell small { display: inline-block; margin-top: 2px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.cell small.dir { font-weight: 600; letter-spacing: .14em; }
.cell.hit, .lg.hit { border-color: rgb(95 228 208 / .75); background: linear-gradient(180deg, rgb(95 228 208 / .2), rgb(95 228 208 / .06)); box-shadow: inset 0 0 18px rgb(95 228 208 / .12), 0 0 16px rgb(95 228 208 / .12); }
.cell.hit .c-v, .cell.hit .c-s, .cell.hit .c-k, .lg.hit { color: var(--aether-ink); }
.cell.near, .lg.near { border-color: rgb(255 191 94 / .75); background: linear-gradient(180deg, rgb(255 191 94 / .18), rgb(255 191 94 / .05)); box-shadow: inset 0 0 18px rgb(255 191 94 / .1), 0 0 16px rgb(255 191 94 / .1); }
.cell.near .c-v, .cell.near .c-s, .cell.near .c-k, .lg.near { color: var(--sun-ink); }
.lg { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.chip { font-size: 13px; padding: 1px 8px; border: 1px solid rgb(255 255 255 / .12); color: var(--ink-faint); }
.chip.on { border-color: var(--aether); color: var(--aether-ink); background: rgb(95 228 208 / .16); box-shadow: 0 0 10px rgb(95 228 208 / .2); }
.known .chip.on { display: inline-block; margin: 2px 4px 0 0; }
.avs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 5px; margin-top: 4px; }
.av { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 3px 6px 3px 3px; border: 1px solid rgb(255 255 255 / .1); min-width: 0; }
.av img, .av-empty { grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; display: block; background: #0b0f1a; box-shadow: 0 0 0 1px var(--bronze-lo); }
.av-name { font-size: 12.5px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-dim); }
.av-role { font-size: 10.5px; letter-spacing: .04em; color: var(--ink-faint); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av.hit { border-color: var(--aether); background: rgb(95 228 208 / .16); box-shadow: 0 0 10px rgb(95 228 208 / .25); }
.av.hit .av-name, .av.hit .av-role { color: var(--aether-ink); }
.av.near { border-color: var(--sun); background: rgb(255 191 94 / .14); }
.av.near .av-name, .av.near .av-role { color: var(--sun-ink); }
.av-more, .av-none { align-self: center; font-size: 13px; color: var(--ink-faint); }
.banner { margin: 10px 0 0; padding: 8px 12px; font-size: 15px; letter-spacing: .02em; border-left: 3px solid var(--aether); background: rgb(95 228 208 / .1); color: var(--aether-ink); }
.guess.win { border-color: var(--aether); box-shadow: 0 0 0 1px var(--aether), 0 0 40px rgb(95 228 208 / .2); }
@media (max-width: 760px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .cell.themes, .cell.kin { grid-column: 1 / -1; min-height: 0; }
  .cell { min-height: 68px; padding: 8px; }
  .cell .c-v { font-size: 15.5px; }
}
/* cells come online one by one on the newest observation */
.guess.fresh .cell, .guess.fresh .banner { animation: online .6s cubic-bezier(.3, .7, .3, 1) both; }
.guess.fresh .cell:nth-child(2) { animation-delay: .12s; } .guess.fresh .cell:nth-child(3) { animation-delay: .24s; }
.guess.fresh .cell:nth-child(4) { animation-delay: .36s; } .guess.fresh .cell:nth-child(5) { animation-delay: .48s; }
.guess.fresh .banner { animation-delay: .62s; }
@keyframes online { 0% { opacity: 0; filter: brightness(3) blur(2px); transform: scaleY(.2); } 60% { opacity: 1; filter: brightness(1.6); } 100% { opacity: 1; filter: none; transform: none; } }

/* ------------------------------------------------------------------ dialogs */
dialog { width: min(580px, 100% - 28px); max-height: min(88vh, 920px); padding: clamp(20px, 3vw, 34px); background: #070b15; color: var(--ink); border: 1px solid rgb(95 228 208 / .35); box-shadow: 0 0 0 1px rgb(0 0 0 / .8), 0 0 60px rgb(95 228 208 / .12), 0 30px 80px rgb(0 0 0 / .8); }
dialog::backdrop { background: rgb(2 4 8 / .78); backdrop-filter: blur(4px); }
dialog h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .12em; color: var(--bronze-hi); }
dialog h3 { margin: 20px 0 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--aether); font-weight: 500; }
dialog p { margin: 0 0 12px; font-family: var(--text); font-size: 18px; }
.close { float: right; }
.close button { background: none; border: 1px solid var(--line); padding: 4px 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.close button:hover { border-color: var(--aether); }
.rules { margin: 0 0 14px; display: grid; gap: 10px; }
.rules dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--aether); }
.rules dd { margin: 0; font-family: var(--text); font-size: 17.5px; }
.k { padding: 0 7px; border: 1px solid; font-family: var(--ui); font-size: .85em; }
.k.hit { border-color: var(--aether); color: var(--aether-ink); background: rgb(95 228 208 / .16); }
.k.near { border-color: var(--sun); color: var(--sun-ink); background: rgb(255 191 94 / .14); }
.k.miss { border-color: rgb(255 255 255 / .2); color: var(--ink-dim); }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.nums b { display: block; font-family: var(--display); font-size: 32px; font-weight: 400; color: var(--aether); text-shadow: 0 0 16px rgb(95 228 208 / .35); }
.nums span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.dist { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.dist li { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 8px; font-size: 13px; }
.bar { display: block; width: var(--w); min-width: 24px; padding: 1px 6px; text-align: right; background: rgb(255 255 255 / .06); color: var(--ink-dim); }
.dist li.mine .bar { background: rgb(95 228 208 / .3); color: var(--aether-ink); box-shadow: 0 0 10px rgb(95 228 208 / .3); }
.next { margin-top: 16px !important; text-align: center; font-family: var(--ui) !important; font-size: 13px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.next b { font-family: var(--display); color: var(--ink); font-weight: 400; margin-left: 6px; letter-spacing: .08em; font-size: 18px; }
.days { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; max-height: 55vh; overflow: auto; }
.days li { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; padding: 6px 4px; border-bottom: 1px solid rgb(255 255 255 / .06); font-size: 14px; }
.days li[aria-current] { background: rgb(95 228 208 / .08); }
.days a { font-family: var(--display); letter-spacing: .06em; }
.days span { color: var(--ink-dim); }
.days em { font-style: normal; color: var(--aether); font-size: 13px; }

/* ------------------------------------------------------------------ the pantheon: your trophies */
dialog.wide { width: min(1180px, 100% - 28px); }
.p-sum { font-family: var(--ui) !important; font-size: 13px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.p-sum b { color: var(--aether); font-weight: 500; font-size: 15px; }
.trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 22px 18px; margin-top: 18px; }
.trophy { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 10px 12px; background: linear-gradient(180deg, rgb(255 255 255 / .03), rgb(0 0 0 / .2)); border: 1px solid var(--line); text-align: center; }
.trophy:hover { border-color: var(--aether); box-shadow: 0 0 24px rgb(95 228 208 / .15); }
.plaque { position: relative; display: block; width: 100%; max-width: 132px; padding: 5px; background: linear-gradient(145deg, #3b2c14, #b08d57 20%, #5a4424 42%, #e7c98f 64%, #4a3718); box-shadow: 0 12px 20px -10px rgb(0 0 0 / .9), 0 0 0 1px rgb(0 0 0 / .6); }
.plaque img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: #0b0f1a; }
.plaque::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 64%; height: 9px; transform: translateX(-50%); background: linear-gradient(180deg, #5a4424, #2a1f0e); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.t-name { margin-top: 10px; font-family: var(--display); font-size: 16px; letter-spacing: .05em; line-height: 1.15; }
.t-meta { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.badge { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 1px 6px; border: 1px solid var(--aether); color: var(--aether-ink); background: rgb(95 228 208 / .1); }
.badge.sun { border-color: var(--sun); color: var(--sun-ink); background: rgb(255 191 94 / .1); }
/* ranks: the titles of those who spoke with the gods */
.rank-now { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 6px; padding: 14px 18px; border: 1px solid rgb(95 228 208 / .4); background: linear-gradient(90deg, rgb(95 228 208 / .08), transparent 70%); }
.rank-seal { width: 58px; height: 58px; filter: drop-shadow(0 0 10px rgb(95 228 208 / .35)); }
.rank-now > div { display: grid; gap: 3px; }
.rank-title { font-family: var(--display); font-size: clamp(24px, 2.2vw, 32px); letter-spacing: .1em; color: var(--aether-ink); text-shadow: 0 0 18px rgb(95 228 208 / .35); line-height: 1.1; }
.rank-desc { font-family: var(--text); font-style: italic; font-size: 17px; color: var(--ink-dim); }
.progress { display: block; height: 6px; margin-top: 8px; max-width: 420px; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(176 141 87 / .25); }
.progress i { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--bronze), var(--aether)); box-shadow: 0 0 10px rgb(95 228 208 / .6); }
.rank-next { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.rank-next b { color: var(--aether); font-weight: 500; }
.ranks { display: grid; grid-template-columns: repeat(8, 1fr); margin: 18px 0 8px; padding: 0; list-style: none; }
.rank { position: relative; display: grid; justify-items: center; gap: 2px; padding-top: 22px; text-align: center; }
.rank::before { content: ''; position: absolute; top: 8px; left: -50%; right: 50%; height: 1px; background: var(--line); }
.rank:first-child::before { display: none; }
.rank.got::before { background: var(--aether); box-shadow: 0 0 6px rgb(95 228 208 / .6); }
.rank i { position: absolute; top: 2px; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--bronze); background: var(--void); z-index: 1; }
.rank.got i { background: var(--aether); border-color: var(--aether); box-shadow: 0 0 10px var(--aether); }
.rank.now i { width: 17px; height: 17px; top: 0; box-shadow: 0 0 0 3px rgb(95 228 208 / .25), 0 0 16px var(--aether); }
.rank b { font-family: var(--display); font-weight: 400; font-size: 13px; letter-spacing: .05em; color: var(--ink-faint); }
.rank.got b { color: var(--ink); }
.rank.now b { color: var(--aether-ink); }
.rank span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 640px) { .ranks { grid-template-columns: repeat(4, 1fr); row-gap: 14px; } .rank:nth-child(5)::before { display: none; } .rank-now { grid-template-columns: 1fr; } .rank-seal { display: none; } }
.p-empty { padding: 30px 0 10px; text-align: center; }
.p-empty .plaque { margin: 0 auto 18px; max-width: 120px; opacity: .5; }
.p-empty .plaque span { display: grid; place-items: center; aspect-ratio: 3 / 4; background: #0b0f1a; font-family: var(--display); font-size: 42px; color: var(--bronze); }
.t-detail { display: grid; gap: 16px 28px; margin-top: 18px; align-items: start; }
@media (min-width: 760px) { .t-detail { grid-template-columns: auto 1fr; } }
.t-detail .bezel img { height: min(58vh, 520px); }
.t-detail .c-name { display: block; }
.t-back { margin-bottom: 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); margin: 0; padding: 10px 18px; background: #0b1322; border: 1px solid var(--aether); color: var(--aether-ink); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 50; box-shadow: 0 0 20px rgb(95 228 208 / .25); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.foot { padding: 20px var(--gutter) 34px; text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.foot a { color: var(--ink-dim); }

@media (max-width: 979px) {
  /* block flow, not grid: a sticky element in a grid can only travel within its own cell */
  .app { display: block; }
  .stage { margin-bottom: 18px; }
  .board { display: contents; }
  .app .search { position: sticky; top: 0; z-index: 20; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter);
    background: rgb(4 6 12 / .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .search .eyebrow { display: none; }
  .known { margin-top: 12px; }
  .legend { grid-template-columns: repeat(3, 1fr); } .lg:nth-child(n+4) { grid-column: span 3; min-height: 34px; }
  .orrery { width: 170%; }
}
@media (max-width: 640px) { dialog h2 { font-size: 21px; letter-spacing: .08em; padding-right: 76px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
