:root {
  --bg: #07030d;
  --bg-2: #120821;
  --panel: rgba(22, 10, 38, 0.72);
  --line: rgba(177, 76, 255, 0.35);
  --purple: #b14cff;
  --purple-deep: #5a189a;
  --green: #39ff14;
  --green-soft: #a6ff8f;
  --orange: #ff7a1a;
  --orange-hot: #ffae42;
  --red: #ff2d55;
  --text: #ece4ff;
  --muted: #a99bc7;
  --display: 'Creepster', 'Chiller', fantasy;
  --body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --type: 'Special Elite', 'Courier New', monospace;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
.c-green { color: var(--green); }
.c-orange { color: var(--orange); }
.c-purple { color: var(--purple); }
.center { text-align: center; }

/* ---------------- atmosphere ---------------- */
.atmo { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-a { width: 60vmax; height: 60vmax; left: -20vmax; top: -15vmax; background: radial-gradient(circle, #5a189a, transparent 65%); animation: breathe 14s ease-in-out infinite; }
.glow-b { width: 55vmax; height: 55vmax; right: -20vmax; bottom: -20vmax; background: radial-gradient(circle, #1f6b12, transparent 65%); opacity: .35; animation: breathe 18s ease-in-out infinite reverse; }
@keyframes breathe { 50% { transform: scale(1.15) translate(3vmax, 2vmax); } }
.moon {
  position: absolute; top: 7vh; right: 8vw; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd27a, #ff7a1a 55%, #a33b00 100%);
  box-shadow: 0 0 60px 10px rgba(255, 122, 26, .45), 0 0 160px 40px rgba(255, 122, 26, .18);
  opacity: .8;
}
.moon::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 70% 60%, rgba(120, 40, 0, .35) 0 10%, transparent 11%), radial-gradient(circle at 40% 70%, rgba(120, 40, 0, .3) 0 7%, transparent 8%); }
.fog { position: absolute; left: -50%; width: 200%; height: 45vh; bottom: -10vh; opacity: .35;
  background: radial-gradient(ellipse at 20% 50%, rgba(200, 180, 255, .18), transparent 40%), radial-gradient(ellipse at 60% 60%, rgba(160, 255, 160, .10), transparent 45%), radial-gradient(ellipse at 85% 40%, rgba(200, 180, 255, .15), transparent 40%);
  filter: blur(20px); animation: drift 40s linear infinite; }
.fog-2 { bottom: -20vh; opacity: .25; animation-duration: 65s; animation-direction: reverse; }
@keyframes drift { to { transform: translateX(25%); } }
.bats .bat { position: absolute; width: 46px; fill: #000; filter: drop-shadow(0 0 6px rgba(177, 76, 255, .7)); animation: fly 22s linear infinite; }
.bat.b1 { top: 18vh; animation-delay: -4s; }
.bat.b2 { top: 30vh; width: 30px; animation-duration: 28s; animation-delay: -15s; }
.bat.b3 { top: 12vh; width: 36px; animation-duration: 34s; animation-delay: -24s; }
@keyframes fly {
  0% { transform: translate(-10vw, 0) scaleY(1); }
  10% { transform: translate(5vw, -3vh) scaleY(.4); }
  20% { transform: translate(18vw, 2vh) scaleY(1); }
  35% { transform: translate(40vw, -4vh) scaleY(.4); }
  50% { transform: translate(60vw, 3vh) scaleY(1); }
  70% { transform: translate(85vw, -2vh) scaleY(.4); }
  100% { transform: translate(115vw, 1vh) scaleY(1); }
}
.slime { position: absolute; top: 0; left: 0; width: 100%; height: 46px; fill: var(--green); filter: drop-shadow(0 0 10px rgba(57, 255, 20, .7)); opacity: .9; }
.grain { position: absolute; inset: -50%; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-5%,3%); } 40% { transform: translate(4%,-6%); } 60% { transform: translate(-3%,5%); } 80% { transform: translate(6%,2%); } }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .75) 100%); }

/* ---------------- layout ---------------- */
#app { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 56px 16px 48px; min-height: 100vh; }
.screen { display: none; animation: rise .5s ease both; }
.screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.kicker { margin: 0; font-size: .8125rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.title {
  font-family: var(--display); font-weight: 400; margin: .1em 0 .15em; line-height: .95;
  font-size: clamp(2.6rem, 9vw, 6rem); color: var(--green);
  text-shadow: 0 0 6px rgba(57, 255, 20, .9), 0 0 22px rgba(57, 255, 20, .6), 0 0 60px rgba(177, 76, 255, .6), 3px 3px 0 var(--purple-deep);
}
.flicker { animation: flicker 6s infinite; }
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: .35; text-shadow: none; }
}
.hero { text-align: center; padding: 2vh 0 10px; }
.welcome { font-size: 1.15rem; margin: .4em 0; }
.welcome strong { color: var(--orange-hot); }
#btn-rename { padding: .25em .7em; font-size: .85rem; vertical-align: middle; }
.name-card {
  max-width: 480px; margin: 14px auto 6px; padding: 18px; border-radius: var(--radius); text-align: center;
  background: var(--panel); border: 1px solid var(--green); box-shadow: 0 0 28px rgba(57, 255, 20, .25); animation: rise .4s ease both;
}
.name-card[hidden] { display: none; }
.name-card label { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--green); margin-bottom: 10px; text-shadow: 0 0 12px rgba(57, 255, 20, .5); }
.name-row { display: flex; gap: 10px; }
.name-row input {
  flex: 1; min-width: 0; padding: .7em 1em; border-radius: 999px; border: 1px solid var(--line); background: rgba(7, 3, 13, .8);
  color: var(--text); font: inherit; font-size: 1rem; outline: none;
}
.name-row input:focus { border-color: var(--green); box-shadow: 0 0 14px rgba(57, 255, 20, .4); }
.btn-link { margin-top: 10px; background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .875rem; }
.sub { color: var(--muted); max-width: 640px; margin: .5em auto 1.2em; }

/* ---------------- buttons ---------------- */
.btn {
  border: 1px solid var(--line); background: rgba(30, 12, 52, .7); border-radius: 999px;
  padding: .7em 1.2em; font-weight: 700; letter-spacing: .02em; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  backdrop-filter: blur(6px);
}
.btn:hover { transform: translateY(-2px); border-color: var(--purple); box-shadow: 0 0 18px rgba(177, 76, 255, .45); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-slime { background: linear-gradient(180deg, #5dff3c, #1fa80a); color: #061400; border-color: transparent; box-shadow: 0 0 18px rgba(57, 255, 20, .55), inset 0 -3px 0 rgba(0, 0, 0, .25); }
.btn-slime:hover { box-shadow: 0 0 30px rgba(57, 255, 20, .85), inset 0 -3px 0 rgba(0, 0, 0, .25); border-color: transparent; }
.btn-pumpkin { background: linear-gradient(180deg, #ffae42, #e2560b); color: #1b0700; border-color: transparent; box-shadow: 0 0 18px rgba(255, 122, 26, .55), inset 0 -3px 0 rgba(0, 0, 0, .25); }
.btn-pumpkin:hover { box-shadow: 0 0 30px rgba(255, 122, 26, .85), inset 0 -3px 0 rgba(0, 0, 0, .25); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-small, .btn-back { padding: .45em .95em; font-size: .9rem; }
.btn-icon { padding: .55em .8em; }

/* ---------------- ballot ---------------- */
.nights { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; margin-top: 18px; }
.night {
  position: relative; border-radius: var(--radius); padding: 20px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 20px 50px rgba(0, 0, 0, .5), inset 0 0 40px rgba(90, 24, 154, .25);
  backdrop-filter: blur(8px); overflow: hidden;
}
.night::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--purple), var(--green), var(--orange)); }
.night h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; margin: 0; letter-spacing: .03em; color: var(--orange); text-shadow: 0 0 14px rgba(255, 122, 26, .6); }
.night .closed-tag { display: inline-block; margin-left: 8px; font-size: .8125rem; padding: 2px 8px; border-radius: 99px; background: var(--red); color: #fff; vertical-align: middle; font-family: var(--body); }
.slot { margin-top: 16px; padding: 14px; border-radius: 14px; background: rgba(7, 3, 13, .55); border: 1px dashed rgba(177, 76, 255, .3); display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.slot.voted { border-style: solid; border-color: rgba(57, 255, 20, .5); box-shadow: inset 0 0 24px rgba(57, 255, 20, .08); }
.slot-time { font-weight: 700; color: var(--green); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; }
.slot.adult .slot-time { color: var(--orange); }
.slot-label { font-weight: 700; }
.slot-pick { color: var(--muted); font-size: .92rem; }
.slot-pick b { color: var(--text); }
.slot-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.slot-actions .btn { flex: 1 1 140px; padding: .6em .9em; font-size: .95rem; }
.mini-poster { width: 64px; aspect-ratio: 2 / 3; border-radius: 8px; display: grid; place-items: center; font-size: 30px; border: 1px solid rgba(255, 255, 255, .08); }
.mini-poster.empty { background: repeating-linear-gradient(45deg, rgba(177, 76, 255, .12) 0 6px, transparent 6px 12px); color: var(--muted); font-size: 22px; }
.ballot-extras { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------------- bars ---------------- */
.bar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.bar-title { flex: 1; min-width: 0; }
.bar-title h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 5vw, 2.6rem); color: var(--green); text-shadow: 0 0 14px rgba(57, 255, 20, .55); line-height: 1.05; }

/* ---------------- posters ---------------- */
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; padding-bottom: 110px; }
.poster {
  --a: var(--purple); --b: #1a0b2e;
  position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; text-align: left; padding: 0;
  border: 1px solid rgba(255, 255, 255, .08); background: radial-gradient(120% 80% at 50% 25%, color-mix(in srgb, var(--a) 35%, transparent), transparent 60%), linear-gradient(180deg, var(--b), #05020a 85%);
  transition: transform .25s, box-shadow .25s, border-color .25s; isolation: isolate;
}
.poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .08) 45%, transparent 60%); transform: translateX(-100%); transition: transform .6s; }
.poster:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 0 24px color-mix(in srgb, var(--a) 60%, transparent); border-color: var(--a); }
.poster:hover::after { transform: translateX(100%); }
.poster .glyph { position: absolute; top: 14%; left: 0; right: 0; text-align: center; font-size: 56px; filter: drop-shadow(0 0 14px var(--a)); transition: transform .3s; }
.poster:hover .glyph { transform: scale(1.12) rotate(-6deg); }
.poster .p-title { position: absolute; left: 10px; right: 10px; bottom: 30px; font-family: var(--display); font-size: 1.25rem; line-height: 1.05; color: #fff; text-shadow: 0 0 10px var(--a), 2px 2px 0 #000; }
.poster .p-meta { position: absolute; left: 10px; right: 10px; bottom: 9px; font-size: .8125rem; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.rating { border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; font-weight: 700; color: var(--text); }
.poster.selected { border-color: var(--green); box-shadow: 0 0 0 2px var(--green), 0 0 30px rgba(57, 255, 20, .6); }
.poster.selected::before { content: '✓'; position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #041000; font-weight: 700; }
.poster.locked { filter: grayscale(1) brightness(.45); }
.poster.locked .glyph { filter: blur(3px); }
.poster .tag { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: .8125rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(0, 0, 0, .6); border: 1px solid var(--a); letter-spacing: .06em; text-transform: uppercase; }

.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; padding-bottom: 120px; }
.pick {
  --a: var(--purple); --b: #1a0b2e;
  display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px; border-radius: 16px; cursor: pointer; text-align: left;
  background: linear-gradient(135deg, color-mix(in srgb, var(--b) 70%, transparent), rgba(7, 3, 13, .85) 60%);
  border: 1px solid color-mix(in srgb, var(--a) 30%, transparent); position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pick:hover, .pick:focus-visible { transform: translateY(-3px); border-color: var(--a); box-shadow: 0 0 22px color-mix(in srgb, var(--a) 45%, transparent); outline: none; }
.pick.selected { border-color: var(--green); box-shadow: 0 0 0 2px var(--green), 0 0 30px rgba(57, 255, 20, .5); }
.pick.selected::after { content: '✓'; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #041000; font-weight: 700; }
.pick-art {
  aspect-ratio: 2 / 3; border-radius: 10px; display: grid; place-items: center; align-self: start;
  background: radial-gradient(120% 80% at 50% 30%, color-mix(in srgb, var(--a) 40%, transparent), transparent 65%), linear-gradient(180deg, var(--b), #05020a);
  border: 1px solid rgba(255, 255, 255, .08);
}
.pick-art .glyph { font-size: 52px; filter: drop-shadow(0 0 14px var(--a)); transition: transform .3s; }
.pick:hover .pick-art .glyph { transform: scale(1.1) rotate(-6deg); }
.pick-body { min-width: 0; }
.pick-title { margin: 0 34px 4px 0; font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.05; color: #fff; text-shadow: 0 0 12px var(--a), 2px 2px 0 #000; }
.pick-meta { font-size: .9rem; color: var(--muted); margin-bottom: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pick-blurb { margin: 0 0 8px; font-size: .95rem; line-height: 1.5; color: var(--text); }
.pick-link { font-size: .9rem; font-weight: 700; color: var(--a); text-decoration: none; }
.pick-link:hover { text-decoration: underline; }
.confirm-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 150%); z-index: 5; width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-radius: 999px;
  background: rgba(12, 5, 22, .92); border: 1px solid var(--green); box-shadow: 0 0 30px rgba(57, 255, 20, .35); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), opacity .25s;
}
.confirm-bar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.confirm-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- game ---------------- */
#screen-game .bar { justify-content: space-between; }
.hud { display: flex; gap: 14px; font-weight: 700; flex-wrap: wrap; justify-content: center; }
.hud-level { color: var(--purple); }
.hud-candles { color: var(--orange-hot); }
.hud-lives { color: var(--red); letter-spacing: 2px; }
.game-wrap { position: relative; margin: 0 auto; width: fit-content; max-width: 100%; }
#game { display: block; border-radius: 14px; background: #05020a; box-shadow: 0 0 0 1px var(--line), 0 0 40px rgba(177, 76, 255, .3); touch-action: none; }
.overlay { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 20px; border-radius: 14px; background: rgba(5, 2, 10, .82); backdrop-filter: blur(3px); }
.overlay.show { display: grid; animation: rise .35s ease both; }
.overlay h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 7vw, 3.4rem); margin: 0 0 .2em; color: var(--green); text-shadow: 0 0 18px rgba(57, 255, 20, .7); line-height: 1; }
.overlay h2.bad { color: var(--red); text-shadow: 0 0 18px rgba(255, 45, 85, .7); }
.overlay p { color: var(--muted); max-width: 420px; margin: .4em auto 1em; }
.overlay .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.legend { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: .9rem; margin-bottom: 14px; color: var(--text); }
.dpad { display: none; grid-template-columns: repeat(3, 62px); grid-template-rows: repeat(2, 56px); gap: 8px; justify-content: center; margin: 16px auto 0; user-select: none; -webkit-user-select: none; }
.dpad button { border-radius: 14px; border: 1px solid var(--line); background: rgba(30, 12, 52, .8); font-size: 1.3rem; touch-action: none; }
.dpad button.held { background: var(--purple-deep); box-shadow: 0 0 16px rgba(177, 76, 255, .7); }
.dpad [data-dir=up] { grid-column: 2; grid-row: 1; }
.dpad [data-dir=left] { grid-column: 1; grid-row: 2; }
.dpad [data-dir=down] { grid-column: 2; grid-row: 2; }
.dpad [data-dir=right] { grid-column: 3; grid-row: 2; }
@media (hover: none), (pointer: coarse) { .dpad { display: grid; } }
.hint { text-align: center; color: var(--muted); font-size: .85rem; }
.shake { animation: shake .35s; }
@keyframes shake { 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-4px, -2px); } 80% { transform: translate(3px, 2px); } }

/* ---------------- ending ---------------- */
#screen-ending { --a: var(--green); position: relative; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ending { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; text-align: center; padding-top: 2vh; }
.ending-poster { width: 180px; margin: 18px auto 10px; }
.ending-poster .poster { width: 100%; animation: summon 1.4s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes summon { from { opacity: 0; transform: scale(.6) rotate(-8deg); filter: blur(10px) brightness(3); } }
.ending-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 8vw, 4.4rem); margin: .1em 0 0; line-height: 1; color: var(--a); text-shadow: 0 0 20px var(--a), 3px 3px 0 #000; animation: rise .8s .5s both; }
.ending-tagline { font-style: italic; color: var(--muted); margin: .4em 0 1.2em; animation: rise .8s .8s both; }
.ending-text { font-family: var(--type); font-size: 1.12rem; line-height: 1.7; text-align: left; background: rgba(5, 2, 10, .7); border: 1px solid color-mix(in srgb, var(--a) 45%, transparent); border-radius: 14px; padding: 18px 20px; min-height: 8em; box-shadow: inset 0 0 30px color-mix(in srgb, var(--a) 12%, transparent); white-space: pre-line; }
.ending-text .caret { display: inline-block; width: .55em; height: 1.1em; background: var(--a); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ending-about { margin-top: 16px; text-align: left; color: var(--muted); font-size: .95rem; animation: rise .8s 1.2s both; }
.ending-about .facts { color: var(--text); font-weight: 700; margin-bottom: 4px; }
.ending-about a { color: var(--a); }
.poster .info {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: italic 700 .85rem Georgia, serif; color: #fff; text-decoration: none; background: rgba(0, 0, 0, .55); border: 1px solid var(--a); transition: background .2s;
}
.poster .info:hover { background: var(--a); color: #000; }
.poster.selected .info { right: 42px; }
.btn small { font-size: .8125rem; font-weight: 500; }
.ending-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ---------------- gallery ---------------- */
.gallery-group h3 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; color: var(--orange); margin: 22px 0 10px; text-shadow: 0 0 12px rgba(255, 122, 26, .5); }
#gallery .posters { padding-bottom: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
#gallery .poster .glyph { font-size: 44px; }
#gallery .poster .p-title { font-size: 1.05rem; }

/* ---------------- misc ---------------- */
.loader, .sealed { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 12px; color: var(--muted); }
.loader-eye { width: 70px; height: 34px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle, #000 0 22%, var(--orange) 24% 40%, #fff3 42%); box-shadow: 0 0 30px var(--orange); animation: blinkeye 2.4s infinite; }
@keyframes blinkeye { 0%, 90%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.05); } }
.toast { position: fixed; left: 50%; top: 20px; transform: translate(-50%, -160%); z-index: 20; padding: 10px 18px; border-radius: 999px; background: rgba(12, 5, 22, .95); border: 1px solid var(--orange); box-shadow: 0 0 24px rgba(255, 122, 26, .45); transition: transform .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 560px) {
  #app { padding-top: 46px; }
  .moon { width: 70px; height: 70px; top: 5vh; right: 5vw; }
  .nights { grid-template-columns: 1fr; }
  .posters { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pick { grid-template-columns: 76px 1fr; gap: 12px; padding: 12px; }
  .pick-art .glyph { font-size: 38px; }
  .pick-title { font-size: 1.35rem; }
  .poster .glyph { font-size: 46px; }
  .hud { gap: 10px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
