/* 9PM Presents — public site. Brand identity: 8-bit pixels, pastel neon on night, the rubber ducky.
   Fonts are self-hosted (SIL OFL, see static/fonts). No external fonts or frameworks. */
@font-face { font-family: "Press Start 2P"; src: url("../fonts/PressStart2P.woff") format("woff"); font-display: swap; }
@font-face { font-family: "VT323"; src: url("../fonts/VT323.woff") format("woff"); font-display: swap; }
:root {
  /* Brand identity: neon pastel on night. */
  --night: #0e0b1f;
  --deep: #1a1533;
  --bubblegum: #ffb3ff;
  --peach: #ffd6a5;
  --lemon: #fff39c;
  --sky-p: #a5d8ff;
  --lavender: #c7b3ff;
  --neon-pink: #ff6ec7;
  --lime: #8cff6e;
  --bg: var(--night);
  --surface: var(--deep);
  --surface-2: #251d48;
  --line: #3b2f6b;
  --text: #f7f2ff;
  --muted: #b4a9d9;
  --duck: #ffe45c;
  --pink: var(--bubblegum);
  --lilac: var(--lavender);
  --mint: #b6ffea;
  --sky: var(--sky-p);
  --err: #ff7a9c;
  --ok: #b6ffea;
  --pill: var(--lemon);
  --pill-ink: #1a1533;
  --radius: 16px;
  --tap: 46px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --term: "VT323", ui-monospace, monospace;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 8px 16px 40px; }
a { color: var(--sky); }
img, video { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 850; }
h2 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--duck); color: #000; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* ---------- header & nav (mockup: big title, row of text tabs) ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(0,0,0,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #15131f; padding-top: env(safe-area-inset-top); }
.head-row { max-width: 1240px; margin: 0 auto; padding: 12px 16px 4px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: var(--tap); }
.brand .duck { width: 34px; height: 32px; image-rendering: pixelated; animation: bob 1.6s steps(2) infinite; }
.head-row .spacer { flex: 1; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.avatar-link { display: inline-flex; border-radius: 50%; }
.nav { max-width: 1240px; margin: 0 auto; padding: 0 8px 8px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 650; font-size: 17px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: none; box-shadow: inset 0 -3px 0 var(--duck); border-radius: 0; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .brand .duck, .hero .duck-big, .px-loader i { animation: none !important; } .flyer-link { transition: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: 650 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .08s steps(2), box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.btn:hover { border-color: var(--lilac); }
.btn:active { transform: translateY(2px); }
.btn.pill { background: var(--pill); color: var(--pill-ink); border-color: var(--pill); }
.btn.pill:hover { box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--pink); }
.btn.duck { background: var(--duck); color: #1b1600; border-color: var(--duck); box-shadow: 0 4px 0 #b9891a; }
.btn.duck:active { box-shadow: 0 2px 0 #b9891a; transform: translateY(2px); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--err); border-color: rgba(255,122,143,.45); background: transparent; }
.btn.small { min-height: 36px; padding: 0 13px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.linkish { background: none; border: 0; padding: 0; color: var(--sky); font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- hero ---------- */
.hero { display: flex; align-items: center; gap: 18px; padding: 10px 0 18px; }
.hero .duck-big { width: 64px; height: 60px; image-rendering: pixelated; flex-shrink: 0; animation: bob 1.6s steps(2) infinite; }
.hero p { color: var(--muted); margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0 14px; }
.section-head h1, .section-head h2 { margin: 0; }
.pixel-rule { height: 4px; margin: 26px 0; background: repeating-linear-gradient(90deg, var(--duck) 0 8px, transparent 8px 12px, var(--pink) 12px 20px,
  transparent 20px 24px, var(--lilac) 24px 32px, transparent 32px 36px, var(--mint) 36px 44px, transparent 44px 48px); opacity: .7; }

/* ---------- flyer wall ---------- */
.flyers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; list-style: none; margin: 0; padding: 0; align-items: start; }
@media (min-width: 720px) { .flyers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 1100px) { .flyers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flyer-card { display: flex; flex-direction: column; gap: 10px; }
.flyer-link { display: block; border-radius: var(--radius); overflow: hidden; background: #0b0a12; transition: transform .12s steps(3), box-shadow .2s; position: relative; }
.flyer-link:hover, .flyer-link:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--lilac), 0 10px 30px rgba(185,165,255,.25); outline: none; }
/* width/height attributes give each flyer its own aspect ratio; contain = never crop the artwork */
/* Every flyer on the walls shows in the same portrait frame (4:5), filling it; the event page shows the full flyer. */
.flyer-link img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; background: #0b0a12; }
.flyer-meta { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.flyer-meta strong { color: var(--text); font-weight: 650; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 750; border: 1px solid var(--line); color: var(--muted); }
.badge.past { color: var(--lilac); border-color: rgba(185,165,255,.4); }
.badge.live { color: var(--mint); border-color: rgba(143,240,208,.4); }
.badge.closed { color: var(--err); border-color: rgba(255,122,143,.4); }
.flyer-tag { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.72); }

/* ---------- empty / cards / forms ---------- */
.empty { text-align: center; padding: 40px 16px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty img { width: 56px; height: 52px; image-rendering: pixelated; display: block; margin: 0 auto 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.narrow { max-width: 460px; margin: 4vh auto 0; }
.medium { max-width: 760px; margin: 0 auto; }
label { display: block; font-weight: 650; font-size: 14px; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: var(--tap); padding: 11px 14px; font: 16px var(--font); color: var(--text); background: #06050b;
  border: 2px solid var(--line); border-radius: 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--lilac); outline: none; }
textarea { min-height: 100px; resize: vertical; }
.hint { color: var(--muted); font-size: 13px; margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 15px; margin: 12px 0; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--duck); flex-shrink: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.flash { padding: 12px 16px; border-radius: 14px; margin: 8px 0 14px; border: 2px solid var(--line); background: var(--surface); }
.flash.success { border-color: rgba(143,240,208,.5); }
.flash.error { border-color: rgba(255,122,143,.6); color: #ffd0d8; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
fieldset { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { margin: 0; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; }
.radio-row input { accent-color: var(--duck); width: 18px; height: 18px; }
.radio-row label:has(input:checked) { border-color: var(--duck); }

/* ---------- avatars ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex-shrink: 0; display: inline-grid; place-items: center;
  font-weight: 800; color: var(--duck); font-size: 15px; text-transform: uppercase; overflow: hidden; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.lg { width: 96px; height: 96px; font-size: 32px; border: 3px solid var(--duck); }

/* ---------- event page ---------- */
.event-layout { display: grid; gap: 22px; }
@media (min-width: 860px) { .event-layout { grid-template-columns: minmax(280px, 420px) 1fr; align-items: start; } .event-flyer { position: sticky; top: 120px; } }
.event-flyer img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.att-form { display: flex; gap: 8px; flex-wrap: wrap; }
.att-form .btn[aria-pressed="true"] { border-color: var(--duck); color: var(--duck); }
.people { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0; }
.people a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface-2); font-size: 14px; }

/* ---------- profile ---------- */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.profile-head h1 { margin: 0; }
.handle { color: var(--muted); }
.mini-flyers { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.mini-flyers a { display: block; color: var(--text); text-decoration: none; font-size: 12px; }
.mini-flyers img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 4px; background: #0b0a12; }
details.card > summary { cursor: pointer; font-weight: 700; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: "▸ "; color: var(--duck); }
details.card[open] > summary::before { content: "▾ "; }

/* ---------- chat ---------- */
body.chat-page main { max-width: 860px; padding: 0; display: flex; flex-direction: column; }
body.chat-page .site-foot { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #15131f; background: #05040a; }
.chat-head img.thumb { width: 42px; height: 54px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.chat-head .title { flex: 1; min-width: 0; }
.chat-head h1 { font-size: 17px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .sub { font-size: 13px; color: var(--muted); }
.chat-tools { display: flex; gap: 6px; }
.chat-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 12px 8px; overscroll-behavior: contain; }
.msg { display: flex; gap: 10px; padding: 6px 4px; border-radius: 12px; position: relative; }
.msg:hover { background: #0b0a14; }
.msg .body { min-width: 0; flex: 1; }
.msg .who { font-size: 14px; font-weight: 750; color: var(--text); text-decoration: none; }
.msg .who.me { color: var(--duck); }
.msg time { font-size: 12px; color: var(--muted); margin-left: 6px; }
.msg .text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0 0; }
.msg .text.deleted { color: var(--muted); font-style: italic; }
.msg .media { margin-top: 6px; max-width: min(360px, 100%); border-radius: 14px; overflow: hidden; background: #0b0a12; display: block; }
.msg .media img, .msg .media video { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; background: #000; }
.msg .processing { padding: 14px; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.msg .more { opacity: 0; position: absolute; right: 6px; top: 4px; }
.msg:hover .more, .msg:focus-within .more { opacity: 1; }
@media (hover: none) { .msg .more { opacity: .7; } }
.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.reactions button { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 2px 9px; font-size: 14px; cursor: pointer; min-height: 30px; }
.reactions button.mine { border-color: var(--duck); background: #2b2508; }
.typing { min-height: 22px; padding: 0 16px; font-size: 13px; color: var(--muted); }
.composer { border-top: 1px solid #15131f; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #05040a; position: sticky; bottom: 0; }
.composer form { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: var(--tap); height: var(--tap); max-height: 140px; resize: none; border-radius: 22px; padding: 11px 16px; }
.icon-btn { width: var(--tap); height: var(--tap); flex-shrink: 0; display: inline-grid; place-items: center; border-radius: 50%; border: 2px solid var(--line);
  background: var(--surface-2); color: var(--text); font-size: 19px; cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--lilac); }
.icon-btn.send { background: var(--duck); color: #1b1600; border-color: var(--duck); }
.attach-preview { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.attach-preview img, .attach-preview video { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; flex: 1; }
.progress > span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--duck) 0 6px, var(--pink) 6px 12px); transition: width .1s steps(4); }
.emoji-palette { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 0 0; }
.emoji-palette button { font-size: 22px; width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.closed-note, .join-panel { text-align: center; padding: 26px 16px; }
.join-panel img { width: 72px; height: 68px; image-rendering: pixelated; }
.load-older { display: block; margin: 0 auto 10px; }
dialog { background: var(--surface); color: var(--text); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; width: min(420px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.7); }
.sheet-actions { display: grid; gap: 8px; }
.sheet-actions .reaction-row { display: flex; justify-content: space-between; gap: 4px; }
.sheet-actions .reaction-row button { font-size: 24px; flex: 1; height: 50px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); cursor: pointer; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.gallery a { display: block; position: relative; border-radius: 12px; overflow: hidden; background: #0b0a12; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .play { position: absolute; inset: auto 6px 6px auto; background: rgba(0,0,0,.7); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.member-list { list-style: none; padding: 0; margin: 0; }
.member-list li a { display: flex; gap: 12px; align-items: center; padding: 8px 4px; color: var(--text); text-decoration: none; border-radius: 12px; }
.member-list li a:hover { background: var(--surface-2); }

/* pixel loader */
.px-loader { display: inline-flex; gap: 3px; }
.px-loader i { width: 6px; height: 6px; background: var(--duck); animation: blink 1s steps(2) infinite; }
.px-loader i:nth-child(2) { animation-delay: .2s; background: var(--pink); }
.px-loader i:nth-child(3) { animation-delay: .4s; background: var(--mint); }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- moderation ---------- */
.report { border-left: 4px solid var(--pink); }
.snap { background: #06050b; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-top: 0; }
.table-wrap { overflow-x: auto; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; }
.tabs a { padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); color: var(--muted); text-decoration: none; white-space: nowrap; font-weight: 650; font-size: 14px; }
.tabs a[aria-current="page"] { border-color: var(--duck); color: var(--text); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid #15131f; padding: 26px 16px calc(26px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
.site-foot .inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { color: var(--muted); }
.site-foot a.staff-link { color: var(--text); font-weight: 650; }
.pager { display: flex; justify-content: center; gap: 10px; margin: 24px 0 0; }
form.inline { display: inline; }
.list-reset { list-style: none; margin: 0; padding: 0; }
.leave-row { padding: 6px 16px 12px; text-align: center; }
.snap-img { max-width: 220px; border-radius: 10px; margin-top: 6px; display: block; }

/* fixes after phone review */
[hidden] { display: none !important; }
.brand { min-width: 0; flex-shrink: 1; }
.head-actions .btn { white-space: nowrap; }
@media (max-width: 420px) { .brand .duck { width: 28px; height: 26px; } .head-actions .btn.small { padding: 0 11px; min-height: 34px; font-size: 13px; } }
.msg .more { width: 34px; height: 34px; font-size: 16px; border-width: 1px; }
@media (max-width: 719px) { body.chat-page .nav { display: none; } }

/* ---------- phases 5-7 ---------- */
.pill-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #1a0010; font-size: 12px; font-weight: 800; vertical-align: 2px; }
.bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; font-size: 19px; }
.bell:hover { background: var(--surface-2); }
.bell-dot { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #1a0010; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.person { display: flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none; min-width: 0; padding: 6px 0; }
.person:hover strong { color: var(--duck); }
.search-row { display: flex; gap: 8px; margin: 0 0 16px; }
.member-list > li { padding: 4px 0; border-top: 1px solid var(--line); }
.member-list > li:first-child { border-top: 0; }
.push-prompt { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; margin: 8px 0 14px; border-radius: 14px; border: 2px solid var(--duck); background: #1a1708; }
.push-prompt p { flex-basis: 100%; margin: 0; }
.inbox a { display: flex; gap: 12px; align-items: center; padding: 10px 4px; color: var(--text); text-decoration: none; border-radius: 12px; }
.inbox a:hover { background: var(--surface-2); }
.inbox .main { flex: 1; min-width: 0; }
.inbox .preview { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox .unread .preview { color: var(--text); font-weight: 650; }
.dm { display: flex; flex-direction: column; align-items: flex-start; margin: 4px 0; }
.dm.mine { align-items: flex-end; }
.dm .bubble { max-width: min(80%, 520px); padding: 9px 13px; border-radius: 18px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; position: relative; }
.dm.mine .bubble { background: var(--lilac); color: #120b2a; }
.dm .bubble.deleted { background: none; border: 1px dashed var(--line); color: var(--muted); font-style: italic; }
.dm .media { margin-top: 4px; max-width: min(300px, 80vw); border-radius: 16px; overflow: hidden; background: #000; }
.dm .media img, .dm .media video { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.dm .meta { font-size: 11px; color: var(--muted); margin: 2px 6px 0; }
.dm .act { background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; padding: 2px 6px; }
.receipt { font-size: 11px; color: var(--muted); text-align: right; margin: 2px 6px 6px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; list-style: none; padding: 0; margin: 0; }
.gallery-grid a { display: block; position: relative; aspect-ratio: 1; background: #0b0a12; overflow: hidden; border-radius: 6px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-grid .tag { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.65); border-radius: 999px; padding: 1px 7px; font-size: 11px; color: #fff; }
.gallery-grid .proc { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 12px; }
.post-media { display: grid; gap: 8px; }
.post-media img, .post-media video { width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #000; border-radius: 14px; display: block; }
.post-actions { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.like-btn[aria-pressed="true"] { border-color: var(--pink); color: var(--pink); }
.comment { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.comment .body { flex: 1; min-width: 0; }
.comment .text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0; }
.replies { margin-left: 46px; }
.replies .comment { border-top: 0; padding: 6px 0; }
.comment-tools { display: flex; gap: 10px; font-size: 12px; }
.comment-tools details { display: inline; }
.notif a { display: flex; gap: 12px; align-items: center; padding: 10px 6px; color: var(--text); text-decoration: none; border-radius: 12px; }
.notif a:hover { background: var(--surface-2); }
.notif .unread { background: #14122a; }
.toggle-list label { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); margin: 0; font-weight: 600; }
.toggle-list input { width: 22px; height: 22px; accent-color: var(--duck); }
.dm-menu { position: relative; }
.dm-menu summary { list-style: none; }
.dm-menu summary::-webkit-details-marker { display: none; }
.dm-menu-body { position: absolute; right: 0; top: 52px; z-index: 40; width: 240px; display: grid; gap: 8px; }
.chat-head .icon-btn { text-decoration: none; }
/* 8-bit "people in chat" counter on each flyer's top-right corner */
.px-count { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 5px 3px;
  font-family: var(--pixel); font-size: 10px; line-height: 1; color: #1a1533; background: var(--lemon, #fff27a);
  box-shadow: 2px 0 0 #1a1533, -2px 0 0 #1a1533, 0 2px 0 #1a1533, 0 -2px 0 #1a1533, 3px 3px 0 var(--pink, #ff6ec7);
  image-rendering: pixelated; -webkit-font-smoothing: none; white-space: nowrap; z-index: 1; }
.px-count svg { display: block; }
.chat-tool { display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--text); min-width: 52px; }
.chat-tool:hover .icon-btn, .chat-tool:focus-visible .icon-btn { border-color: var(--lilac); }
.chat-tool .tool-label { font-family: var(--pixel); font-size: 7px; line-height: 1.2; letter-spacing: 0; text-transform: uppercase;
  color: var(--lemon, var(--duck)); white-space: nowrap; image-rendering: pixelated; -webkit-font-smoothing: none; }
@media (max-width: 560px) {
  /* Phones: the labelled buttons get their own row under the show title. */
  .chat-head { flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; }
  .chat-tools { flex-basis: 100%; justify-content: space-around; gap: 4px; padding-top: 2px; }
  .chat-tool .tool-label { font-size: 8px; }
}

.gallery-grid .tag-left { right: auto; left: 6px; }
.push-prompt { padding: 10px 12px; font-size: 14px; gap: 8px; }
.push-prompt .btn.small { min-height: 32px; }
body.chat-page .push-prompt { display: none !important; }

/* ---------- the duck (tap it 5 times in a row) ---------- */
.duck-btn { background: none; border: 0; padding: 4px; margin: -4px; cursor: pointer; border-radius: 12px; flex-shrink: 0; line-height: 0;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.duck-btn:focus-visible { outline: 3px solid var(--duck); outline-offset: 2px; }
.duck-btn.tap .duck-big { animation: duck-tap .18s steps(2); }
@keyframes duck-tap { 50% { transform: translateY(-5px) scale(1.06); } }
.duck-btn.charge-1 .duck-big { filter: drop-shadow(0 0 2px rgba(255,59,59,.45)); }
.duck-btn.charge-2 .duck-big { filter: drop-shadow(0 0 4px rgba(255,59,59,.6)); }
.duck-btn.charge-3 .duck-big { filter: drop-shadow(0 0 7px rgba(255,59,59,.75)); }
.duck-btn.charge-4 .duck-big { filter: drop-shadow(0 0 10px rgba(255,40,40,.95)); animation: duck-shiver .12s steps(2) infinite; }
@keyframes duck-shiver { 50% { transform: translateX(1px); } }
.duck-btn.firing .duck-big { filter: drop-shadow(0 0 14px #ff2b2b) brightness(1.15); animation: none; }

.laser-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.laser { position: absolute; height: 6px; border-radius: 6px; transform-origin: 0 50%;
  background: linear-gradient(90deg, #fff 0, #ffd1d1 6%, #ff3b3b 20%, #ff1e56 100%);
  box-shadow: 0 0 6px 2px rgba(255,40,40,.9), 0 0 18px 6px rgba(255,30,80,.55);
  animation: laser-fire 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.laser.thin { height: 4px; animation-delay: .04s; }
@keyframes laser-fire {
  0% { transform: translateY(-50%) rotate(var(--a)) scaleX(0); opacity: 1; }
  18% { transform: translateY(-50%) rotate(var(--a)) scaleX(1); opacity: 1; }
  70% { transform: translateY(-50%) rotate(var(--a)) scaleX(1) scaleY(1.3); opacity: 1; }
  100% { transform: translateY(-50%) rotate(var(--a)) scaleX(1) scaleY(.2); opacity: 0; } }
.laser-glint { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, #ff3b3b 55%, transparent 70%); animation: glint 1.1s ease-out forwards; }
@keyframes glint { 0% { transform: scale(.3); opacity: 1; } 25% { transform: scale(1.6); } 100% { transform: scale(.6); opacity: 0; } }
.laser-flash { position: absolute; inset: 0; background: rgba(255,40,40,.16); animation: flash .5s steps(4) forwards; }
@keyframes flash { to { opacity: 0; } }
body.laser-shake main { animation: shake .45s steps(6); }
@keyframes shake { 20% { transform: translate(-3px, 1px); } 40% { transform: translate(3px, -2px); } 60% { transform: translate(-2px, 2px); } 80% { transform: translate(2px, -1px); } }
@media (prefers-reduced-motion: reduce) {
  .duck-btn.tap .duck-big, .duck-btn.charge-4 .duck-big { animation: none; }
  .laser, .laser-glint { animation: laser-calm .9s linear forwards; }
  .laser { transform: translateY(-50%) rotate(var(--a)); }
  @keyframes laser-calm { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
  body.laser-shake main { animation: none; }
}

/* ---------- background duck rain (admin toggle) ---------- */
.duck-rain { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.duck-rain canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.duck-rain-trail { opacity: .6; }
.duck-rain-sprites { opacity: .9; }
@media (prefers-reduced-motion: reduce) { .duck-rain { display: none; } }

/* ---------- admin control panel ---------- */
.admin-panel fieldset.seg { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.admin-panel fieldset.seg legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.seg-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--line);
  border-radius: 999px; cursor: pointer; font-weight: 650; background: var(--surface-2); }
.seg-opt input { accent-color: var(--duck); width: 18px; height: 18px; margin: 0; }
.seg-opt:has(input:checked) { border-color: var(--duck); color: var(--duck); }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* ---------- Every Show Anywhere ---------- */
.page-intro { display: flex; gap: 16px; align-items: center; margin: 8px 0 18px; }
.page-intro h1 { margin: 0; }
.any-day { margin-bottom: 18px; }
.any-date { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--duck); margin: 0 0 8px; position: sticky; top: 108px; background: rgba(0,0,0,.85); padding: 6px 0; z-index: 2; }
.any-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.any-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.any-main { min-width: 0; flex: 1 1 260px; }
.any-title { font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.any-title:hover { text-decoration: underline; }
.any-artists { margin: 2px 0 4px; font-weight: 600; color: var(--muted); }
.any-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.any-src { color: var(--muted); }
.any-credit { margin-top: 20px; }
/* Every Show Anywhere: other promoters' shows, kept visibly apart from 9PM's own */
.listed-note { border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 14px; color: var(--muted); margin: 8px 0 14px; }
.listed-note strong { color: var(--text); }
.listed-show { max-width: 640px; }
.listed-tag { flex: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; text-decoration: none; }
.any-card.has-img { display: grid; grid-template-columns: 96px 1fr; gap: 12px 14px; align-items: start; }
.any-card.has-img .any-actions { grid-column: 2; }
.any-flyer img { display: block; width: 96px; height: 120px; object-fit: cover; border-radius: 8px; background: var(--line); }
.listed-flyer { margin: 0 0 14px; max-width: 360px; }
.listed-flyer img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.listed-flyer figcaption { margin-top: 4px; }
@media (max-width: 520px) { .any-card.has-img { grid-template-columns: 72px 1fr; } .any-flyer img { width: 72px; height: 90px; } .any-card.has-img .any-actions { grid-column: 1 / -1; } }
@media (min-width: 721px) { .any-card.has-img { grid-template-columns: 96px 1fr auto; align-items: center; } .any-card.has-img .any-actions { grid-column: 3; } }
/* Admin dashboard */
.dash-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; position: sticky; top: 104px; z-index: 3; background: rgba(0,0,0,.88); padding: 6px 0; }
.dash-nav a { font-size: 13px; font-weight: 700; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; }
.dash-nav a:hover { border-color: var(--duck); }
.dash-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #000; font-size: 11px; text-align: center; }
.dash { scroll-margin-top: 150px; margin-bottom: 16px; }
.dash h2 { margin-top: 0; }
.dash h3 { font-size: 15px; margin: 16px 0 8px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dash-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: rgba(255,255,255,.02); }
.dash-tile.warn { border-color: var(--duck); }
.dash-tile.alert { border-color: var(--pink); }
.dash-num { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-label { font-size: 13px; font-weight: 700; margin-top: 2px; }
.dash-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dash-chart { margin: 14px 0 0; }
.dash-chart svg { display: block; width: 100%; height: 64px; }
.dash-chart .bar { fill: var(--duck); }
.dash-chart .bar.zero { fill: var(--line); }
.dash-chart figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 3px; }
.table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-table th, .dash-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dash-table td { font-variant-numeric: tabular-nums; }
.dash-table thead th { font-size: 12px; color: var(--muted); }
.dash-rank { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.dash-settings-h { margin-top: 28px; scroll-margin-top: 150px; }
/* QR tickets */
.tix { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 120px; }
.tix h2 { margin-top: 0; }
.tix-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.tix-tier { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tix-tier.off { opacity: .6; }
.tix-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tix-qty { width: 72px; flex: none; }
.tix-soon { flex: none; text-align: right; }
.tix-event { margin-bottom: 14px; }
.tix-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tix-card { display: flex; gap: 12px; align-items: center; }
.tix-qr { display: block; width: 112px; flex: none; background: #fff; border-radius: 8px; }
.tix-card.used .tix-qr, .ticket-qr.used { opacity: .35; }
.qr-svg { display: block; width: 100%; height: auto; }
.ticket-full { max-width: 420px; margin: 0 auto; text-align: center; }
.ticket-qr { background: #fff; border-radius: 14px; padding: 6px; margin: 14px auto; max-width: 360px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.tix-transfer { text-align: left; max-width: 420px; margin: 14px auto; }
/* Admin "view as member" banner */
.view-as-bar { position: sticky; top: 0; z-index: 100; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center;
  background: #3a2a00; color: #ffd84d; border-bottom: 2px solid var(--duck); padding: 8px 12px; font-size: 14px; }
.verify-strip { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: center; padding: 8px 12px;
  background: rgba(255, 216, 77, .08); border-bottom: 1px solid var(--line); font-size: 14px; }
form.inline { display: inline; }


/* ================= Brand identity (Nov 2026) =================
   Press Start 2P: headings, brand, buttons. VT323: nav, labels, meta, data.
   Long reading text (descriptions, chat, DMs) stays in the system font so it stays easy to read. */
body { background: var(--night); }
h1, h2 { font-family: var(--pixel); font-weight: 400; letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(1.05rem, 3.4vw, 1.6rem); color: var(--text); text-shadow: 3px 3px 0 #3b1f5c; }
h2 { font-size: clamp(.8rem, 2.4vw, 1rem); color: var(--lemon); }
h3 { font-family: var(--term); font-weight: 400; font-size: 1.5rem; letter-spacing: .02em; }
.muted, .hint, .flyer-meta, .handle, .kv dt, .badge, .tiny, .small, label, .table th, .site-foot, time, .typing, .dm .meta, .receipt { font-family: var(--term); }
.muted, .hint, .flyer-meta, .handle { font-size: 1.15em; line-height: 1.25; }
.flyer-meta { font-size: 18px; }
.small { font-size: 19px; }
.tiny { font-size: 18px; }
label { font-size: 19px; font-weight: 400; letter-spacing: .02em; color: var(--lavender); }
.hint { font-size: 17px; }
.table { font-family: var(--term); font-size: 19px; }
.table th { font-size: 16px; color: var(--lavender); }
.site-foot { font-size: 20px; }
p.muted, .prose, .msg .text, .dm .bubble, .comment .text, .card p.muted { font-family: var(--font); font-size: 15px; line-height: 1.5; }

/* header */
.site-head { background: rgba(14,11,31,.9); border-bottom: 2px solid var(--line); box-shadow: 0 2px 0 rgba(255,110,199,.18); }
.brand .duck { width: 46px; height: 36px; image-rendering: auto; }
.nav a { font-family: var(--term); font-size: 23px; font-weight: 400; letter-spacing: .02em; padding: 6px 10px; }
.nav a[aria-current="page"] { color: var(--lemon); box-shadow: inset 0 -4px 0 var(--lemon); }
.nav a:hover { color: var(--bubblegum); }

/* buttons: chunky pixel buttons — Primary lemon, Secondary pink, Accent mint, Ghost dashed lavender */
.btn { font-family: var(--pixel); font-weight: 400; font-size: 11px; line-height: 1.3; letter-spacing: .02em; border-radius: 10px;
  border: 3px solid #120d26; background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 2px var(--line), 0 4px 0 2px #08061a; text-align: center; }
.btn:hover { border-color: #120d26; box-shadow: 0 0 0 2px var(--lavender), 0 4px 0 2px #08061a; }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 2px var(--lavender), 0 1px 0 2px #08061a; }
.btn.duck, .btn.primary { background: var(--lemon); color: #1a1533; border-color: #1a1533; box-shadow: 0 0 0 2px #ffe45c, 0 4px 0 2px #b9891a; }
.btn.duck:hover, .btn.primary:hover { background: #fff7b8; box-shadow: 0 0 0 2px #ffe45c, 0 4px 0 2px #b9891a, 0 0 18px rgba(255,243,156,.35); }
.btn.duck:active, .btn.primary:active { box-shadow: 0 0 0 2px #ffe45c, 0 1px 0 2px #b9891a; }
.btn.pill, .btn.secondary { background: var(--bubblegum); color: #2a0b2a; border-color: #1a1533; box-shadow: 0 0 0 2px var(--neon-pink), 0 4px 0 2px #a8357f; }
.btn.pill:hover, .btn.secondary:hover { background: #ffc8ff; box-shadow: 0 0 0 2px var(--neon-pink), 0 4px 0 2px #a8357f, 0 0 18px rgba(255,110,199,.35); }
.btn.accent { background: var(--mint); color: #0d2a24; border-color: #1a1533; box-shadow: 0 0 0 2px #6fe8c7, 0 4px 0 2px #2f8f78; }
.btn.ghost { background: transparent; color: var(--lavender); border: 2px dashed var(--lavender); box-shadow: none; }
.btn.ghost:hover { background: rgba(199,179,255,.1); box-shadow: none; }
.btn.ghost:active { box-shadow: none; }
.btn.danger { background: transparent; color: var(--err); border: 2px solid rgba(255,122,156,.6); box-shadow: none; }
.btn.small { font-size: 9px; min-height: 36px; padding: 0 12px; }
.linkish { font-family: var(--term); font-size: 1.15em; }
@media (max-width: 420px) { .head-actions .btn.small { font-size: 8px; padding: 0 9px; } .brand .duck { width: 38px; height: 30px; } }

/* hero with the full logo lockup */
.hero-brand { flex-direction: column; text-align: center; gap: 6px; padding: 6px 0 22px; }
.hero-brand .duck-btn { margin: 0 auto; }
.hero .hero-duck { width: clamp(140px, 30vw, 210px); height: auto; image-rendering: auto; animation: bob 1.6s steps(2) infinite; }
.hero-wordmark { display: inline-flex; gap: .5em; align-items: baseline; justify-content: center; white-space: nowrap; font-family: var(--pixel); font-size: clamp(11px, 3.1vw, 17px); line-height: 1; margin: 2px 0 4px; }
.hero-brand h1 { margin-top: 6px; }
.hero .duck-big:not(.hero-duck) { width: 80px; height: 64px; image-rendering: auto; }
.duck-btn.firing .hero-duck { filter: drop-shadow(0 0 14px #ff2b2b) brightness(1.1); }
.pixel-rule { background: repeating-linear-gradient(90deg, var(--lemon) 0 8px, transparent 8px 12px, var(--bubblegum) 12px 20px,
  transparent 20px 24px, var(--lavender) 24px 32px, transparent 32px 36px, var(--mint) 36px 44px, transparent 44px 48px, var(--sky-p) 48px 56px, transparent 56px 60px); opacity: .85; }

/* cards & panels: rounded neon frames */
.card, dialog { background: linear-gradient(180deg, rgba(37,29,72,.92), rgba(26,21,51,.92)); border: 2px solid var(--line);
  box-shadow: 0 0 0 1px rgba(199,179,255,.12), 0 0 22px rgba(199,179,255,.08); }
.card h2:first-child { margin-top: 0; }
.empty { border: 2px dashed var(--lavender); background: rgba(26,21,51,.6); font-family: var(--term); font-size: 20px; }
.empty img { width: 90px; height: 72px; image-rendering: auto; }
.empty strong { font-family: var(--pixel); font-weight: 400; font-size: 12px; color: var(--lemon); display: block; margin-bottom: 8px; }
.join-panel img { width: 90px; height: 72px; image-rendering: auto; }
.flyer-link { border: 2px solid var(--line); background: var(--deep); }
.flyer-link:hover, .flyer-link:focus-visible { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--bubblegum), 0 10px 30px rgba(255,110,199,.3); }
.flyer-meta strong { font-family: var(--term); font-weight: 400; color: var(--lemon); font-size: 1.1em; }
.badge { font-weight: 400; font-size: 16px; border-width: 2px; border-radius: 8px; padding: 1px 8px; }
.flyer-tag { background: rgba(14,11,31,.85); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea { background: #0a0818; border-color: var(--line); border-radius: 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--bubblegum); box-shadow: 0 0 0 3px rgba(255,179,255,.18); }
:focus-visible { outline-color: var(--mint); }
.flash { font-family: var(--term); font-size: 20px; background: var(--deep); }
.flash.success { border-color: var(--mint); }
.flash.error { border-color: var(--neon-pink); color: #ffd6ec; }
.tabs a, .radio-row label { font-family: var(--term); font-size: 20px; font-weight: 400; border-radius: 10px; }
.tabs a[aria-current="page"] { border-color: var(--lemon); color: var(--lemon); }
.pill-count, .bell-dot { background: var(--neon-pink); color: #fff; font-family: var(--term); font-size: 15px; font-weight: 400; }
.avatar { color: var(--lemon); background: var(--surface-2); font-family: var(--pixel); font-weight: 400; font-size: 11px; }
.avatar.lg { border-color: var(--lemon); font-size: 24px; }
.dm.mine .bubble { background: var(--lavender); color: #1a1533; }
.msg .who { font-family: var(--term); font-size: 19px; font-weight: 400; }
.msg .who.me { color: var(--lemon); }
.icon-btn.send { background: var(--lemon); border-color: var(--lemon); color: #1a1533; }
.chat-head, .composer { background: rgba(14,11,31,.95); border-color: var(--line); }
.chat-head h1 { font-size: 12px; }
.site-foot { border-top: 2px solid var(--line); background: linear-gradient(180deg, transparent, rgba(255,110,199,.06)); }
.site-foot a.staff-link { color: var(--lemon); }
.view-as-bar { font-family: var(--term); font-size: 19px; }


/* ---------- mobile layout (phones) ---------- */
@media (max-width: 640px) {
  .head-row { padding: 10px 12px 2px; gap: 8px; }
  .brand { gap: 7px; }
  .brand .duck { width: 40px; height: 32px; }
  .nav { padding: 0 4px 6px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .nav a { font-size: 21px; padding: 6px 9px; min-height: 40px; }
  main { padding: 6px 12px 32px; }
  .hero-brand { padding: 2px 0 14px; }
  .hero .hero-duck { width: clamp(120px, 34vw, 160px); }
  .hero p { font-size: 15px; }
  .flyers { gap: 18px 12px; }
  .flyer-card { gap: 8px; }
  .flyer-meta { font-size: 17px; }
  .event-flyer img { border-radius: 14px; }
  .event-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
  .event-actions .btn { width: 100%; min-height: 50px; font-size: 11px; }
  .att-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
  .att-form .btn { width: 100%; min-height: 44px; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { margin-top: 8px; font-size: 16px; color: var(--lavender); }
  .kv dd { font-size: 16px; }
  .card { padding: 14px; }
  .section-head { flex-wrap: wrap; }
  .form-actions .btn { flex: 1 1 auto; }
  .site-foot { padding-top: 20px; }
  .site-foot nav { gap: 6px 14px; }
}
@media (max-width: 360px) { .flyers { grid-template-columns: 1fr; } .flyer-card .btn.flyer-chat { font-size: 10px; } }

/* ---------- admin tools menu (one compact button instead of two) ---------- */
.staff-menu { position: relative; }
.staff-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; cursor: pointer;
  border: 2px dashed var(--lavender); border-radius: 10px; color: var(--lavender); font-family: var(--pixel); font-size: 9px; -webkit-tap-highlight-color: transparent; }
.staff-menu > summary::-webkit-details-marker { display: none; }
.staff-menu > summary span[aria-hidden] { font-size: 15px; font-family: var(--font); }
.staff-menu[open] > summary, .staff-menu > summary:hover { background: rgba(199,179,255,.12); }
.staff-menu-body { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; display: grid; padding: 6px;
  background: var(--deep); border: 2px solid var(--lavender); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.55), 0 0 18px rgba(199,179,255,.15); }
.staff-menu-body a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--text); text-decoration: none;
  font-family: var(--term); font-size: 21px; }
.staff-menu-body a:hover, .staff-menu-body a:focus-visible { background: var(--surface-2); color: var(--lemon); }
@media (max-width: 640px) {
  .staff-menu > summary { padding: 0; width: 40px; justify-content: center; }
  .staff-menu-label { display: none; }
  .head-actions { gap: 6px; }
}

/* ---------- admin dashboard (brand pass) ---------- */
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 10px; }
.admin-head h1 { margin: 0; }
.dash-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; top: 118px; gap: 6px; margin: 0 -16px 12px; padding: 8px 16px;
  background: rgba(14,11,31,.94); border-bottom: 2px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dash-nav::-webkit-scrollbar { display: none; }
.dash-nav a { flex-shrink: 0; font-family: var(--term); font-size: 20px; font-weight: 400; padding: 2px 12px; min-height: 36px; display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid var(--line); border-radius: 10px; background: var(--deep); color: var(--lavender); }
.dash-nav a:hover, .dash-nav a:focus-visible { border-color: var(--lemon); color: var(--lemon); }
.dash-badge { background: var(--neon-pink); color: #fff; font-family: var(--term); font-size: 15px; }
.dash { scroll-margin-top: 180px; }
.dash h2 { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 2px dashed var(--line); margin-bottom: 12px; }
.dash h3 { font-family: var(--pixel); font-size: 10px; color: var(--sky-p); margin: 18px 0 8px; }
.dash-grid { gap: 8px; }
.dash-tile { border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(14,11,31,.55); }
.dash-tile.warn { border-color: var(--lemon); }
.dash-tile.alert { border-color: var(--neon-pink); box-shadow: 0 0 12px rgba(255,110,199,.2); }
.dash-num { font-family: var(--term); font-weight: 400; font-size: 40px; line-height: 1; color: var(--lemon); }
.dash-label { font-family: var(--term); font-weight: 400; font-size: 19px; line-height: 1.15; color: var(--text); margin-top: 4px; }
.dash-sub { font-family: var(--term); font-size: 16px; line-height: 1.2; color: var(--muted); }
.dash p.small.muted, .admin-panel p.small.muted { font-size: 14px; }
.dash-chart { padding: 10px 10px 6px; border: 2px solid var(--line); border-radius: 12px; background: rgba(14,11,31,.55); }
.dash-chart .bar { fill: var(--lemon); }
.dash-chart figcaption { font-family: var(--term); font-size: 16px; }
.dash-table { font-family: var(--term); font-size: 18px; }
.dash-table thead th { font-size: 15px; color: var(--lavender); }
.dash-table td a { color: var(--sky-p); }
.dash-rank { font-family: var(--term); font-size: 18px; }
.dash-settings-h { font-size: 14px; }
.admin-panel h3 { font-family: var(--pixel); font-size: 11px; color: var(--lemon); line-height: 1.5; }
.admin-panel fieldset.seg legend { font-family: var(--term); font-weight: 400; font-size: 20px; color: var(--lavender); }
@media (max-width: 640px) {
  .dash-nav { top: 108px; margin: 0 -12px 10px; padding: 8px 12px; }
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-num { font-size: 34px; }
  .dash-label { font-size: 17px; }
  .dash .card, .card.dash { padding: 12px; }
  .dash-table th, .dash-table td { padding: 6px 5px; }
}

/* ---------- 9PM PRESENTS in our own 8-pixel bold font (img/wordmark-8px.svg), pastel neon hue scroll ---------- */
.px-wordmark { display: inline-block; flex-shrink: 0; height: 24px; aspect-ratio: 80 / 8; vertical-align: middle;
  filter: drop-shadow(0 2px 0 #08061a) drop-shadow(2px 0 0 #08061a); }
.px-wordmark-fill { display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, #ffb3ff, #ffd6a5, #fff39c, #b6ffea, #a5d8ff, #c7b3ff, #ff6ec7, #ffb3ff) 0 0 / 200% 100% repeat-x;
  -webkit-mask: url("../img/wordmark-8px.svg") center / 100% 100% no-repeat; mask: url("../img/wordmark-8px.svg") center / 100% 100% no-repeat;
  animation: px-hue-scroll 6s linear infinite; }
@keyframes px-hue-scroll { from { background-position: 0 0; } to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .px-wordmark-fill { animation: none; } }
@media (max-width: 640px) { .brand .px-wordmark { height: 16px; } }
@media (max-width: 420px) { .brand .px-wordmark { height: 14px; } .brand .duck { width: 36px; height: 29px; }
  .head-actions .btn.small { padding: 0 8px; min-height: 34px; } }
@media (max-width: 370px) { .brand .px-wordmark { height: 12px; } }
.hero-wordmark.px-wordmark { display: block; margin: 6px auto 8px; height: 32px; }
@media (max-width: 640px) { .hero-wordmark.px-wordmark { height: 24px; } }

/* ---------- night sky (behind everything): gradient, stars on a canvas (js/sky.js), the grid on top ---------- */
.sky { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, #05040c 0%, #0a0820 30%, #101547 70%, #1c2a78 100%); }

.sky::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background-image: linear-gradient(rgba(199,179,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(199,179,255,.045) 1px, transparent 1px);
  background-size: 32px 32px; }
.sky-stars { position: absolute; inset: 0; z-index: 1; image-rendering: pixelated; }

/* ---------- show names: big, yellow, pixel shadow ---------- */
.flyer-meta a { text-decoration: none; }
.flyer-meta strong { display: block; margin-bottom: 4px; font-family: var(--term); font-weight: 400; font-size: 27px; line-height: .95;
  text-transform: uppercase; letter-spacing: .02em; color: var(--lemon); text-shadow: 2px 2px 0 #3b1f5c, 0 0 12px rgba(255,243,156,.35);
  overflow-wrap: anywhere; }
.flyer-meta a:hover strong, .flyer-meta a:focus-visible strong { color: var(--bubblegum); text-shadow: 2px 2px 0 #3b1f5c, 0 0 14px rgba(255,110,199,.5); }
.event-layout h1, .listed-title { color: var(--lemon); font-size: clamp(1.25rem, 4.4vw, 2rem); text-shadow: 3px 3px 0 #3b1f5c, 0 0 18px rgba(255,243,156,.35); }
@media (max-width: 640px) { .flyer-meta strong { font-size: 23px; } }

/* ---------- My Tickets: cute cards + big "Show at the door" button ---------- */
.tix-event h2 a { color: var(--lemon); text-decoration: none; }
.tix-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tix-card { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 14px;
  background: rgba(14,11,31,.6); border: 2px solid var(--line); }
.tix-card.used { border-color: rgba(140,255,110,.5); }
.tix-qr { border: 3px solid var(--lavender); padding: 4px; }
.tix-card-body { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.tix-tier-name { font-family: var(--term); font-weight: 400; font-size: 24px; line-height: 1; color: var(--lemon); }
.tix-transfer-link { color: var(--lavender); }
.door-btn { grid-column: 1 / -1; position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 0 18px;
  border-radius: 14px; border: 3px solid #1a1533; text-decoration: none; color: #1a1533; font-family: var(--pixel); font-size: 13px; line-height: 1.3; text-align: center;
  background: linear-gradient(90deg, #ffb3ff, #ffd6a5, #fff39c, #b6ffea, #a5d8ff, #c7b3ff, #ff6ec7, #ffb3ff) 0 0 / 300% 100%;
  box-shadow: 0 0 0 2px #ff6ec7, 0 6px 0 2px #6b2a8f, 0 0 26px rgba(255,110,199,.45);
  animation: door-hue 5s linear infinite, door-bounce 2.4s steps(2) infinite; -webkit-tap-highlight-color: transparent; }
.door-btn:hover { filter: brightness(1.06); }
.door-btn:active { transform: translateY(4px); box-shadow: 0 0 0 2px #ff6ec7, 0 2px 0 2px #6b2a8f; animation-play-state: paused; }
.door-btn-icon { font-size: 28px; font-family: var(--font); }
@keyframes door-hue { to { background-position: 300% 0; } }
@keyframes door-bounce { 0%, 80%, 100% { translate: 0 0; } 90% { translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) { .door-btn { animation: none; } }

/* ---------- full-screen ticket: a pixel ticket stub ---------- */
.ticket-full { max-width: 440px; }
.ticket-stub { position: relative; margin: 54px 10px 14px; padding: 58px 18px 18px; border-radius: 20px; text-align: center;
  background: linear-gradient(180deg, #251d48, #1a1533); border: 3px solid #120d26;
  box-shadow: 0 0 0 3px var(--lavender), 0 0 0 6px #120d26, 0 0 0 8px var(--bubblegum), 0 0 40px rgba(255,110,199,.25); }
.ticket-duck { position: absolute; left: 50%; top: -48px; width: 110px; height: auto; transform: translateX(-50%); animation: bob 1.6s steps(2) infinite;
  filter: drop-shadow(0 4px 0 #08061a); }
.ticket-kicker { margin: 0; font-family: var(--pixel); font-size: 10px; letter-spacing: .1em; color: var(--mint); text-transform: uppercase; }
.ticket-title { margin: 8px 0 6px; color: var(--lemon); font-size: clamp(1.05rem, 5vw, 1.4rem); text-shadow: 3px 3px 0 #3b1f5c, 0 0 16px rgba(255,243,156,.35); }
.ticket-when { margin: 0; font-family: var(--term); font-size: 21px; line-height: 1.15; color: var(--sky-p); }
.ticket-perf { height: 0; margin: 16px -18px; border-top: 3px dashed var(--line); position: relative; }
.ticket-perf::before, .ticket-perf::after { content: ""; position: absolute; top: -14px; width: 24px; height: 24px; border-radius: 50%; background: var(--night);
  border: 3px solid var(--lavender); }
.ticket-perf::before { left: -16px; } .ticket-perf::after { right: -16px; }
.ticket-qr { position: relative; margin: 6px auto 12px; padding: 10px; border-radius: 16px; background: #fff; max-width: 330px;
  box-shadow: 0 0 0 4px #1a1533, 0 0 0 7px var(--mint), 0 0 0 10px #1a1533; }
.ticket-qr.used { opacity: 1; }
.ticket-qr.used .qr-svg { opacity: .25; }
.ticket-qr-done { position: absolute; inset: 0; display: none; place-items: center; }
.ticket-qr.used .ticket-qr-done { display: grid; }
.ticket-qr-done img { width: 40%; height: auto; image-rendering: pixelated; }
.ticket-holder { margin: 4px 0; font-family: var(--term); font-size: 22px; }
.ticket-holder strong { font-weight: 400; color: var(--bubblegum); }
.ticket-code { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.ticket-state .badge { font-size: 18px; }
.ticket-stub.used { box-shadow: 0 0 0 3px var(--lime), 0 0 0 6px #120d26, 0 0 0 8px var(--mint), 0 0 40px rgba(140,255,110,.3); }

/* ---------- duck pop-up with a green check (ticket scanned) ---------- */
.duck-pop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(8,6,26,.72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: pop-fade .2s ease-out; }
.duck-pop[hidden] { display: none; }
.duck-pop-card { position: relative; width: min(360px, 100%); padding: 26px 20px 20px; text-align: center; border-radius: 22px;
  background: linear-gradient(180deg, #251d48, #1a1533); box-shadow: 0 0 0 3px var(--lime), 0 0 0 6px #120d26, 0 0 0 9px var(--mint), 0 0 60px rgba(140,255,110,.45); }
.duck-pop-rays { position: absolute; left: 50%; top: 92px; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255,243,156,.22) 0 12deg, transparent 12deg 30deg); animation: rays-spin 8s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 35%, transparent 70%); mask: radial-gradient(circle, #000 35%, transparent 70%); }
.duck-pop-duck { position: relative; width: 200px; height: auto; animation: duck-pop-in .55s cubic-bezier(.2,1.6,.4,1) both, bob 1.6s steps(2) .6s infinite;
  filter: drop-shadow(0 6px 0 #08061a); }
.duck-pop-check { position: absolute; left: 50%; top: 104px; width: 84px; height: 84px; margin-left: 46px; image-rendering: pixelated;
  animation: check-pop .45s steps(4) .25s both; filter: drop-shadow(0 4px 0 #08061a); }
.duck-pop-title { margin: 10px 0 4px; font-family: var(--pixel); font-size: 20px; color: var(--lime); text-shadow: 3px 3px 0 #1d4a14; }
.duck-pop-sub { margin: 0 0 14px; font-family: var(--term); font-size: 22px; color: var(--text); }
@keyframes pop-fade { from { opacity: 0; } }
@keyframes duck-pop-in { 0% { transform: translateY(60px) scale(.3); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes check-pop { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes rays-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .duck-pop, .duck-pop-duck, .duck-pop-check, .duck-pop-rays, .ticket-duck { animation: none; } }

/* Join Chat Room under flyers: ghost style (dashed lavender) */
.flyer-card .btn.flyer-chat { width: 100%; min-height: 46px; font-size: clamp(9px, 2.4vw, 11px); white-space: nowrap; }
@media (max-width: 640px) { .flyer-card .btn.flyer-chat { font-size: 8.5px; min-height: 42px; padding: 0 6px; letter-spacing: 0; } }

/* ---------- How it works ---------- */
.how-hero { padding-bottom: 10px; }
.how-hero p { color: var(--muted); }
.how-strip { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: how; }
.how-strip li { counter-increment: how; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; text-align: center; border-radius: 14px;
  background: rgba(26,21,51,.85); border: 2px solid var(--line); }
.how-strip li::before { content: counter(how); font-family: var(--pixel); font-size: 10px; color: var(--lavender); }
.how-strip span { font-size: 26px; }
.how-strip strong { font-family: var(--term); font-weight: 400; font-size: 19px; line-height: 1; color: var(--lemon); }
.how-card { margin-bottom: 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(37,29,72,.92), rgba(26,21,51,.92)); border: 2px solid var(--line); }
.how-card[open] { border-color: var(--lavender); box-shadow: 0 0 22px rgba(199,179,255,.12); }
.how-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 56px;
  font-family: var(--pixel); font-size: 12px; line-height: 1.5; color: var(--lemon); }
.how-card > summary::-webkit-details-marker { display: none; }
.how-card > summary::after { content: "+"; margin-left: auto; font-family: var(--pixel); color: var(--bubblegum); }
.how-card[open] > summary::after { content: "–"; }
.how-ic { font-size: 24px; font-family: var(--font); }
.how-steps { list-style: none; margin: 0; padding: 0 16px 16px; counter-reset: st; display: grid; gap: 10px; }
.how-steps li { counter-increment: st; position: relative; padding-left: 40px; font-size: 15px; line-height: 1.5; }
.how-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
  background: var(--lemon); color: #1a1533; font-family: var(--pixel); font-size: 10px; box-shadow: 0 3px 0 #b9891a; }
.how-steps strong { color: var(--bubblegum); }
.how-foot { margin-top: 18px; text-align: center; font-size: 14px; }
@media (max-width: 520px) { .how-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .how-card > summary { font-size: 10px; } }

/* show page: not on sale yet / external tickets credit */
.on-sale-soon { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 2px dashed var(--lemon);
  color: var(--lemon); font-family: var(--term); font-size: 22px; }
.tickets-by { align-self: center; font-family: var(--term); font-size: 17px; color: var(--muted); }
@media (max-width: 640px) { .on-sale-soon { width: 100%; justify-content: center; } .tickets-by { text-align: center; } }
.door-paid-art { position: relative; display: inline-block; }
.door-paid-check { position: absolute; right: -18px; bottom: 6px; width: 72px; height: 72px; image-rendering: pixelated; filter: drop-shadow(0 4px 0 #08061a); }


/* ---------- chat room fills the phone screen: header, messages (scroll), composer pinned to the bottom ---------- */
body.chat-page { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.chat-page main { flex: 1 1 auto; min-height: 0; width: 100%; }
body.chat-page main > :not(.chat-scroll) { flex: none; }
body.chat-page .composer { position: static; padding-bottom: 8px; }
body.chat-page .typing:empty { display: none; }
body.chat-page .leave-row { padding: 2px 12px calc(6px + env(safe-area-inset-bottom)); margin: 0; text-align: center; }

/* ---------- Ducky's Lost & Found tip: JRPG dialog in the brand kit (DJ Ducky, deep purple, lavender, pastel neon) ---------- */
.jrpg { position: fixed; left: 50%; bottom: 140px; z-index: 60; width: min(560px, calc(100% - 20px)); transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 10px; animation: jrpg-in .3s steps(4) both; }
.jrpg[hidden] { display: none; }
.jrpg-portrait { position: relative; flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 22px;
  background: linear-gradient(145deg, var(--bubblegum), var(--lavender) 55%, var(--sky-p));
  border: 3px solid #08061a; box-shadow: 0 0 0 2px var(--lemon), 4px 4px 0 2px #08061a; }
.jrpg-portrait img { width: 84px; height: auto; image-rendering: pixelated; filter: drop-shadow(2px 2px 0 #08061a); animation: jrpg-bob 1s steps(2) infinite; }
.jrpg-spark { position: absolute; font-size: 14px; line-height: 1; color: var(--lemon); text-shadow: 1px 1px 0 #08061a; animation: jrpg-blink 1.2s steps(2) infinite; }
.jrpg-spark.s1 { top: -9px; right: -7px; } .jrpg-spark.s2 { bottom: 8px; left: -8px; font-size: 10px; animation-delay: .6s; }
.jrpg-box { position: relative; flex: 1; min-width: 0; padding: 18px 14px 12px; color: var(--text); border-radius: 16px;
  background: radial-gradient(circle at 92% 0%, rgba(255,179,255,.18), transparent 45%), linear-gradient(180deg, #251d48, #1a1533);
  border: 3px solid var(--lavender); box-shadow: 0 0 0 3px #08061a, 5px 5px 0 3px #08061a, inset 0 0 0 2px rgba(199,179,255,.25); }
.jrpg-box::before { content: ""; position: absolute; left: -12px; bottom: 26px; border: 9px solid transparent; border-right-color: var(--lavender); }
.jrpg-name { position: absolute; top: -14px; left: 12px; margin: 0; padding: 5px 10px 4px; font-family: var(--pixel); font-size: 9px; line-height: 1;
  text-transform: uppercase; letter-spacing: .06em; color: #1a1533; background: var(--bubblegum); border: 2px solid #08061a; border-radius: 6px;
  box-shadow: 2px 2px 0 #08061a; }
.jrpg-text { margin: 0; min-height: 3.6em; font-family: var(--pixel); font-size: 10px; line-height: 1.9; color: #fff; text-shadow: 2px 2px 0 #08061a; overflow-wrap: anywhere; }
.jrpg-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.jrpg-choices[hidden] { display: none; }
.jrpg-choice { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; font-family: var(--pixel); font-size: 9px; line-height: 1.2;
  text-decoration: none; border-radius: 10px; cursor: pointer; }
.jrpg-choice.primary { color: #1a1533; background: var(--lemon); border: 2px solid #08061a; box-shadow: 0 0 0 2px var(--lemon), 3px 3px 0 2px #08061a; }
.jrpg-choice.ghost { color: var(--lavender); background: transparent; border: 2px dashed var(--lavender); }
.jrpg-choice:active { transform: translateY(2px); }
.jrpg-choice:focus-visible { outline: 3px solid var(--sky-p); outline-offset: 3px; }
.jrpg-next { position: absolute; right: 12px; bottom: 8px; font-size: 10px; color: var(--lemon); animation: jrpg-blink .8s steps(2) infinite; }
.jrpg:not(.typing) .jrpg-next { display: none; }
@keyframes jrpg-in { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes jrpg-bob { 50% { transform: translateY(-3px); } }
@keyframes jrpg-blink { 50% { opacity: 0; } }
@media (max-width: 420px) {
  .jrpg { gap: 8px; }
  .jrpg-portrait { width: 72px; height: 72px; border-radius: 18px; }
  .jrpg-portrait img { width: 62px; }
  .jrpg-text { font-size: 9px; }
  .jrpg-choice { padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) { .jrpg, .jrpg-portrait img, .jrpg-next, .jrpg-spark { animation: none; } }

/* ---------- Lost & Found board (brand kit: Ducky, neon pastel on night, pixel type, chunky pixel shadows) ---------- */
.lf { max-width: 760px; margin: 0 auto; }
.lf-hero { position: relative; display: flex; gap: 14px; align-items: center; padding: 18px; margin-bottom: 12px; border-radius: 18px;
  background: radial-gradient(circle at 18% 30%, rgba(255,179,255,.28), transparent 55%), linear-gradient(135deg, #251d48, #1a1533 60%, #12102a);
  border: 3px solid #08061a; box-shadow: 0 0 0 2px var(--lavender), 6px 6px 0 2px #08061a; overflow: hidden; }
.lf-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px;
  background: linear-gradient(90deg, var(--bubblegum), var(--peach), var(--lemon), var(--mint), var(--sky-p), var(--lavender)); }
.lf-mascot { flex: none; width: 112px; height: 112px; image-rendering: pixelated; filter: drop-shadow(4px 4px 0 #08061a); animation: lf-bob 1.2s steps(2) infinite; }
.lf-hero-text { min-width: 0; }
.lf-kicker { margin: 0; font-family: var(--term); font-size: 20px; color: var(--mint); letter-spacing: .08em; text-transform: uppercase; }
.lf-title { margin: 2px 0 10px; font-family: var(--pixel); font-size: clamp(20px, 6vw, 34px); line-height: 1.15; letter-spacing: 0;
  background: linear-gradient(180deg, var(--bubblegum) 0 45%, var(--lavender) 45% 75%, var(--sky-p) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lf-title .amp { -webkit-text-fill-color: var(--lemon); color: var(--lemon); }
.lf-say { position: relative; margin: 0; padding: 10px 12px; font-family: var(--term); font-size: 20px; line-height: 1.15; color: #1a1533;
  background: #fff; border: 3px solid #08061a; border-radius: 4px; box-shadow: 3px 3px 0 #08061a; }
.lf-say::before { content: ""; position: absolute; left: -11px; top: 14px; border: 8px solid transparent; border-right-color: #08061a; }
.lf-say-name { display: block; margin-bottom: 2px; font-family: var(--pixel); font-size: 9px; color: var(--neon-pink); text-transform: uppercase; }
.lf-rules { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
.lf-rules li { padding: 4px 10px; font-family: var(--term); font-size: 17px; line-height: 1; text-transform: uppercase; letter-spacing: .04em;
  color: var(--lavender); border: 2px solid var(--lavender); border-radius: 999px; background: rgba(199,179,255,.08); }
.lf-down { padding: 10px 14px; border: 2px dashed var(--err); border-radius: 12px; color: var(--err); font-family: var(--term); font-size: 20px; }
.lf-board { padding: 14px 10px; border-radius: 18px; background: rgba(14,11,31,.72); border: 2px solid var(--line); min-height: 220px; }
.lf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lf-day { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-family: var(--term); font-size: 18px; color: var(--muted); letter-spacing: .1em; }
.lf-day::before, .lf-day::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.lf-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; }
.lf-msg.is-mine { flex-direction: row-reverse; align-self: flex-end; }
.lf-ava { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-family: var(--pixel); font-size: 13px;
  color: #1a1533; background: var(--lavender); border: 2px solid #08061a; box-shadow: 2px 2px 0 #08061a; }
.lf-msg.is-staff .lf-ava { background: var(--mint); }
.lf-msg.is-mine .lf-ava { background: var(--lemon); }
.lf-ava img { width: 32px; height: 30px; image-rendering: pixelated; }
.lf-bubble { min-width: 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface-2);
  border: 2px solid var(--lavender); box-shadow: 3px 3px 0 #08061a; }
.lf-msg.is-staff .lf-bubble { border-color: var(--mint); background: linear-gradient(180deg, rgba(182,255,234,.12), rgba(182,255,234,.04)), var(--surface-2); }
.lf-msg.is-mine .lf-bubble { border-color: var(--lemon); border-radius: 16px 16px 4px 16px; background: linear-gradient(180deg, rgba(255,243,156,.12), rgba(255,243,156,.03)), var(--surface-2); }
.lf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 4px; }
.lf-who { font-family: var(--term); font-size: 20px; line-height: 1; color: var(--text); }
.lf-msg.is-staff .lf-who { color: var(--mint); }
.lf-meta time { font-family: var(--term); font-size: 17px; color: var(--muted); }
.lf-chip { display: inline-block; padding: 3px 6px 2px; font-family: var(--pixel); font-size: 8px; line-height: 1; text-transform: uppercase;
  color: #1a1533; border: 2px solid #08061a; border-radius: 4px; }
.lf-chip.staff { background: var(--mint); }
.lf-chip.lost { background: var(--neon-pink); }
.lf-chip.found { background: var(--lime); }
.lf-text { margin: 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.lf-photo img { display: block; max-width: 100%; max-height: 320px; margin-top: 8px; border-radius: 10px; border: 2px solid #08061a; box-shadow: 3px 3px 0 #08061a; }
.lf-remove { margin-top: 6px; }
.lf-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 10px; text-align: center; }
.lf-empty img { image-rendering: pixelated; animation: lf-bob 1.2s steps(2) infinite; }
.lf-empty-title { margin: 0; font-family: var(--pixel); font-size: 12px; color: var(--lemon); }
.lf-compose, .lf-gate { position: sticky; bottom: 0; margin-top: 14px; padding: 12px; border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #251d48, #1a1533); border: 2px solid var(--lavender); border-bottom: 0; box-shadow: 0 -6px 18px rgba(8,6,26,.6);
  padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.lf-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 10px; padding: 0; border: 0; }
.lf-kind label { margin: 0; cursor: pointer; }
.lf-kind input { position: absolute; opacity: 0; pointer-events: none; }
.lf-kind span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 8px; font-family: var(--pixel); font-size: 9px; line-height: 1.3;
  text-align: center; text-transform: uppercase; color: var(--muted); border: 2px solid var(--line); border-radius: 10px; background: rgba(14,11,31,.6); }
.lf-kind input:checked + span { color: #1a1533; border-color: #08061a; box-shadow: 3px 3px 0 #08061a; }
.lf-kind input[value="lost"]:checked + span { background: var(--bubblegum); }
.lf-kind input[value="found"]:checked + span { background: var(--lime); }
.lf-kind input:focus-visible + span { outline: 3px solid var(--sky-p); outline-offset: 2px; }
.lf-quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.lf-q { flex: none; min-height: 34px; padding: 0 12px; font-family: var(--term); font-size: 19px; line-height: 1; color: var(--text);
  background: rgba(165,216,255,.08); border: 2px solid var(--sky-p); border-radius: 999px; cursor: pointer; }
.lf-q:active { transform: translateY(2px); }
.lf-input { display: flex; gap: 8px; align-items: flex-end; }
.lf-input textarea { flex: 1; min-width: 0; min-height: 52px; max-height: 160px; resize: none; border-radius: 14px; }
.lf-send { flex: none; min-height: 52px; }
.lf-compose .tiny { margin: 8px 2px 0; }
.lf-gate { text-align: center; }
.lf-gate p { margin: 0 0 10px; font-family: var(--term); font-size: 20px; }
.lf-gate-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
@keyframes lf-bob { 50% { transform: translateY(-3px); } }
@media (max-width: 480px) {
  .lf-hero { padding: 14px; gap: 10px; align-items: flex-start; }
  .lf-mascot { width: 76px; height: 76px; }
  .lf-say { font-size: 18px; }
  .lf-msg { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .lf-mascot, .lf-empty img { animation: none; } }
.jrpg-safe .jrpg-box { border-color: var(--peach); }
.jrpg-safe .jrpg-box::before { border-right-color: var(--peach); }
.jrpg-safe .jrpg-name { background: var(--peach); }
.jrpg-safe .jrpg-portrait { box-shadow: 0 0 0 2px var(--peach), 4px 4px 0 2px #08061a; }
.jrpg-foot { margin: 10px 0 0; font-family: var(--term); font-size: 17px; line-height: 1.1; color: var(--mint); }
.jrpg.typing .jrpg-foot { visibility: hidden; }

/* ---------------------------------------------------------------- ID pre-verify pass — brand kit */
.pvp { --ink: #08061a; max-width: 460px; margin: 0 auto; padding: 0 10px; }
.pvp-back { margin: 0 0 10px; font-family: var(--term); font-size: 20px; }
.pvp-back a { color: var(--mint); text-decoration: none; }
.pvp-card { position: relative; padding: 16px 14px 14px; border-radius: 22px; overflow: hidden; text-align: center;
  background: radial-gradient(circle at 18% 18%, rgba(255,179,255,.28), transparent 55%), linear-gradient(160deg, #251d48, var(--deep) 60%, #12102a);
  border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--lavender), 6px 6px 0 2px var(--ink); }
.pvp-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--bubblegum), var(--peach), var(--lemon), var(--mint), var(--sky-p), var(--lavender)); }
.pvp-verified .pvp-card { box-shadow: 0 0 0 4px var(--lime), 0 0 0 7px var(--ink), 0 0 0 9px var(--mint), 6px 6px 0 9px var(--ink), 0 0 50px rgba(140,255,110,.4); }
.pvp-new .pvp-card { box-shadow: 0 0 0 2px var(--lavender), 6px 6px 0 2px var(--ink); filter: saturate(.85); }
.pvp-rejected .pvp-card { box-shadow: 0 0 0 4px var(--neon-pink), 6px 6px 0 4px var(--ink); }
.pvp-head, .pvp-hero { display: flex; align-items: center; gap: 12px; text-align: left; }
.pvp-duck { flex: none; width: 76px; height: auto; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 var(--ink)); animation: pvp-bob 1.2s steps(2) infinite; }
.pvp-kicker { margin: 0; font-family: var(--term); font-size: 19px; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.pvp-name, .pvp-title { margin: 2px 0 0; font-family: var(--pixel); font-size: clamp(16px, 5.2vw, 22px); line-height: 1.25; color: var(--lemon); text-shadow: 3px 3px 0 var(--ink); }
.pvp-spark { position: absolute; color: var(--lemon); text-shadow: 1px 1px 0 var(--ink); animation: pvp-blink 1.2s steps(2) infinite; }
.pvp-spark.a { top: 14px; right: 16px; font-size: 18px; } .pvp-spark.b { top: 42px; right: 42px; font-size: 11px; animation-delay: .6s; }

.pvp-status { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; padding: 10px 12px; border-radius: 14px; text-align: left;
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); color: var(--night); }
.pvp-status img { flex: none; image-rendering: pixelated; filter: drop-shadow(2px 2px 0 var(--ink)); }
.pvp-status-k { margin: 0; font-family: var(--pixel); font-size: clamp(14px, 4.6vw, 19px); line-height: 1.2; text-transform: uppercase; }
.pvp-status-s { margin: 3px 0 0; font-family: var(--term); font-size: 19px; line-height: 1.1; }
.pvp-status.ok { background: var(--lime); }
.pvp-status.new { background: transparent; color: var(--lavender); border: 3px dashed var(--lavender); box-shadow: none; }
.pvp-status.no { background: var(--neon-pink); color: #fff; text-shadow: 2px 2px 0 var(--ink); }
.pvp-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; font-family: var(--pixel); font-size: 20px;
  border: 3px solid currentColor; }

.pvp-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pvp-photos figure { position: relative; margin: 0; padding: 5px; border-radius: 14px; background: #05040c; border: 3px solid var(--ink); }
.pvp-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; border-radius: 9px; display: block; }
.pvp-photos figcaption { position: absolute; left: 10px; top: 10px; padding: 3px 7px 1px; border-radius: 6px; font-family: var(--pixel); font-size: 8px;
  background: var(--lemon); color: var(--night); border: 2px solid var(--ink); }
.pvp-verified .pvp-photos figure { box-shadow: 0 0 0 3px var(--lime); }
.pvp-new .pvp-photos figure { box-shadow: 0 0 0 2px var(--lavender); }
.pvp-photos img.pvp-ok { aspect-ratio: auto; border-radius: 0; background: none; position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; image-rendering: pixelated; filter: drop-shadow(2px 2px 0 var(--ink)); }
.pvp-perf { margin: 14px -14px; border-top: 3px dashed var(--line); }
.pvp-qr { background: #fff; border-radius: 16px; padding: 10px; margin: 0 auto; max-width: 280px; border: 3px solid var(--ink); }
.pvp-qr svg { width: 100%; height: auto; display: block; }
.pvp-verified .pvp-qr { box-shadow: 0 0 0 4px var(--lime); }
.pvp-code { margin: 8px 0 0; font-family: var(--term); font-size: 20px; letter-spacing: .08em; color: var(--muted); }
.pvp-tip { margin: 14px 0; text-align: center; font-family: var(--term); font-size: 19px; color: var(--muted); }
.pvp-more summary { cursor: pointer; font-weight: 700; }

.pvp-hero { position: relative; padding: 14px; margin-bottom: 12px; border-radius: 18px; border: 3px solid var(--ink);
  background: radial-gradient(circle at 15% 35%, rgba(255,179,255,.3), transparent 55%), linear-gradient(135deg, #251d48, var(--deep) 60%, #12102a);
  box-shadow: 0 0 0 2px var(--lavender), 5px 5px 0 2px var(--ink); }
.pvp-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.pvp-steps li { display: flex; align-items: center; gap: 10px; font-family: var(--term); font-size: 21px; line-height: 1.1; }
.pvp-steps b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-family: var(--pixel); font-size: 11px; font-weight: 400;
  background: var(--lemon); color: var(--night); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.pvp-chip { padding: 2px 8px 0; border-radius: 999px; background: var(--lime); color: var(--night); border: 2px solid var(--ink); }
.pvp-shots { display: grid; gap: 8px; }
.pvp-shot { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; cursor: pointer;
  border: 2px dashed var(--lavender); background: rgba(199,179,255,.06); }
.pvp-shot-ic { grid-row: span 2; font-size: 28px; }
.pvp-shot-t { font-family: var(--pixel); font-size: 11px; color: var(--lemon); }
.pvp-shot-h { font-family: var(--term); font-size: 18px; color: var(--muted); }
@keyframes pvp-bob { 50% { transform: translateY(-3px); } }
@keyframes pvp-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pvp-duck, .pvp-spark { animation: none; } }

/* Optional text opt-in on the ticket form (unchecked by default; consent isn't required to buy). */
.tix-optin { display: grid; gap: 6px; margin: 4px 0 12px; font-size: 13px; }
.tix-optin .check { display: flex; gap: 8px; align-items: flex-start; }
.tix-optin .check input { margin-top: 3px; flex: none; }
.tix-optin input[type="tel"] { max-width: 260px; }

/* ---------- levels & ducky (9PM Ducky Evolution Kit palette) ---------- */
:root { --kit-gold: #ffd64a; --kit-blush: #ffb6c1; --kit-pink: #ff6ec7; --kit-lilac: #c7b3ff; --kit-mint: #6fffea; --kit-sky: #a5d8ff; --kit-lime: #bcff66; --kit-night: #0e0b1f; }
.ducky { flex: none; display: block; object-fit: contain; }
.ducky-stage { display: inline-block; filter: drop-shadow(0 0 14px rgba(199,179,255,.35)); }
.ducky-stage .ducky { animation: duck-idle 2.4s steps(2) infinite; }
@keyframes duck-idle { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3%); } }
@keyframes twinkle { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.ducky-locked { filter: brightness(0) invert(18%) sepia(40%) hue-rotate(220deg); opacity: .75; }
.level-card { display: flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; border-color: rgba(199,179,255,.35); }
.level-card.link:hover { border-color: var(--kit-pink); }
.level-info { flex: 1; min-width: 0; }
.level-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.lv-badge { display: inline-block; padding: 2px 9px; border-radius: 6px; background: var(--kit-gold); color: #1b1600; font-weight: 800; font-size: 13px; box-shadow: 0 2px 0 #b9891a; }
.lv-badge.big { font-size: 16px; padding: 4px 12px; }
.xp-bar { display: block; width: 100%; height: 14px; border-radius: 999px; background: var(--kit-night); border: 2px solid rgba(199,179,255,.5); margin: 8px 0; overflow: hidden; }
.level-hero { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; border: 2px solid rgba(199,179,255,.45); box-shadow: 0 0 0 4px rgba(255,110,199,.08); }
.level-hero h1 { margin: 0 0 6px; color: var(--kit-gold); text-shadow: 0 3px 0 var(--kit-pink); }
.kit-kicker { margin: 0; color: var(--kit-lilac); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.rarity-line { margin: 0 0 6px; color: var(--kit-lilac); font-weight: 750; }
.stars { letter-spacing: 1px; white-space: nowrap; }
.stars .on { color: var(--kit-gold); }
.stars .off { color: rgba(199,179,255,.25); }
.evolve-next { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; }
.evolve-chip { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--kit-gold); color: #1b1600; font-weight: 900; letter-spacing: .04em; border: 2px solid #1b1600; box-shadow: 0 3px 0 var(--kit-pink); }
.lv-chip { display: inline-flex; align-items: center; gap: 2px; padding: 1px 8px 1px 2px; border-radius: 999px; border: 1px solid rgba(199,179,255,.45); color: var(--text); font-weight: 800; font-size: 12px; text-decoration: none; }
.lv-chip:hover { border-color: var(--kit-pink); }
.evo-flow, .skin-grid, .rarity-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.evo-flow { grid-template-columns: repeat(4, 1fr); }
.skin-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); margin-top: 12px; }
.rarity-legend { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; font-size: 14px; }
.rarity-legend li { white-space: nowrap; }
.rarity-legend li { opacity: .55; } .rarity-legend li.got { opacity: 1; }
.evo-flow li, .skin-grid li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 10px 4px; border: 2px solid rgba(199,179,255,.25); border-radius: 12px; background: rgba(14,11,31,.55); }
.evo-flow li:not(:nth-child(4n+1))::before { content: "›"; position: absolute; left: -11px; top: 30px; color: var(--kit-lilac); font-weight: 900; font-size: 22px; line-height: 1; }
.evo-flow li.now, .skin-grid li.now { border-color: var(--kit-gold); box-shadow: 0 0 0 2px rgba(255,214,74,.25), 0 0 18px rgba(255,110,199,.25); }
.evo-flow li.locked strong, .skin-grid li.locked strong { color: var(--muted); }
.skin-grid li.r5.got { border-color: rgba(255,214,74,.55); }
.skin-grid li.r6.got { border-color: rgba(255,110,199,.6); box-shadow: 0 0 14px rgba(199,179,255,.3); }
.skin-grid form { margin: 0; }
.stars.mythic .on { color: var(--kit-pink); text-shadow: 0 0 6px rgba(255,110,199,.6); }
.ducky-duckascent:not(.ducky-locked) { filter: drop-shadow(0 0 6px rgba(255,214,74,.55)); }
.ducky-duckarchon:not(.ducky-locked) { filter: drop-shadow(0 0 4px rgba(199,179,255,.5)); }
@media (max-width: 560px) {
  .evo-flow { grid-template-columns: repeat(2, 1fr); }
  .evo-flow li::before { display: none; }
}
.admin-ducks { display: flex; gap: 6px; flex-wrap: wrap; }
.xp-table { width: 100%; border-collapse: collapse; }
.xp-table th, .xp-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.xp-table td { white-space: nowrap; text-align: right; }
.xp-table thead th:not(:first-child) { text-align: right; }
.xp-table tbody th { font-weight: 650; }
.xp-table tbody th .small { display: block; font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .ducky-stage .ducky { animation: none; } }

/* ---------- ducky emojis in chat ---------- */
.ducky-inline { display: inline-block; width: 28px; height: 28px; vertical-align: -7px; margin: 0 1px; object-fit: contain; }
.msg .text.jumbo .ducky-inline { width: 64px; height: 64px; vertical-align: middle; }
.ducky-emojis { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); max-height: 300px; overflow-y: auto; }
.ducky-emojis-tier { flex-basis: 100%; margin: 6px 0 0; font-size: 12px; font-weight: 750; color: var(--kit-lilac); }
.ducky-emojis-tier.locked { color: var(--muted); }
.ducky-emojis-head { flex-basis: 100%; display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.emoji-palette .ducky-emoji, .ducky-emoji { position: relative; width: 46px; height: 46px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.ducky-emoji.locked { cursor: default; opacity: .7; }

/* Ducky Duel card on a chat message (the battle screen itself is css/duel.css) */
.duel-card { margin-top: 6px; max-width: 360px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--lemon);
  background: linear-gradient(var(--surface-2), var(--deep)); box-shadow: 3px 3px 0 #3b1f5c; }
.duel-card .dc-title { font-family: var(--pixel); font-size: 10px; color: var(--lemon); margin: 0 0 6px; }
.duel-card .dc-team { display: flex; gap: 6px; }
.duel-card .dc-team img { width: 56px; height: 56px; object-fit: contain; }
.duel-card .dc-status { font-size: 14px; color: var(--muted); margin: 4px 0 8px; }
.duel-card .dc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.duel-card.done { border-color: var(--line); }

/* Show-alerts sign-up card (My Level, Settings, event pages) */
.alerts-card { border-color: var(--lemon); background: linear-gradient(135deg, rgba(255,110,199,.14), rgba(255,243,156,.08)), linear-gradient(var(--surface-2), var(--deep)); }
.alerts-head { display: flex; align-items: center; gap: 12px; }
.alerts-head h2 { margin: 0; }
.alerts-perks { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.alerts-rows { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 8px; }
.alerts-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 2px dashed var(--lavender); border-radius: 12px; }
.alerts-row .btn { width: 100%; }
.stars.vip-tag { font-family: var(--pixel); font-size: 9px; color: #1b1600; background: linear-gradient(90deg, #ffd64a, #ff6ec7); padding: 2px 6px; border-radius: 5px; }
.presale-note { display: block; margin: 8px 0; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--lemon); background: rgba(255,243,156,.08); }
.duel-line { margin: 8px 0; } .duel-title { padding: 1px 7px; border-radius: 6px; font-family: var(--pixel); font-size: 9px; color: #1b1600; background: linear-gradient(90deg, #ffd64a, #ff6ec7); }
.duel-promo { display: flex; flex-direction: column; gap: 4px; border-color: var(--lemon); }
.pet-line { margin: 8px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .pet-line form { display: inline; }

/* ---------- home page polish (v1.23): compact hero, month headings, ticket button, status tags ---------- */
/* The header already carries the duck + wordmark, so the home hero is one compact row and the flyers start higher. */
.hero-compact { flex-direction: row; justify-content: center; text-align: left; gap: 16px; padding: 4px 0 14px; }
.hero-compact .duck-btn { margin: 0; }
.hero.hero-compact .hero-duck { width: clamp(72px, 16vw, 104px); }
.hero-compact h1 { margin: 0 0 4px; }
@media (max-width: 640px) { .hero-compact { gap: 12px; padding: 0 0 10px; } .hero.hero-compact .hero-duck { width: 68px; } }

.month-head { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; font-size: 12px; }
.month-head:first-of-type { margin-top: 6px; }
.month-head::after { content: ""; flex: 1; height: 4px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 12px); }

/* While a flyer loads, its frame shows the card gradient with a dim duck instead of a black box. */
.flyer-link { background: linear-gradient(180deg, var(--surface-2), var(--deep)); }
.flyer-link::before { content: ""; position: absolute; inset: 0; background: url("../img/duck-dj.png") center / 34% auto no-repeat; opacity: .22; }
.flyer-link img { position: relative; background: none; }

.flyer-card .btn.flyer-tix { width: 100%; min-height: 46px; font-size: clamp(9px, 2.4vw, 11px); white-space: nowrap; }
@media (max-width: 640px) { .flyer-card .btn.flyer-tix { font-size: 8.5px; min-height: 42px; padding: 0 6px; letter-spacing: 0; } }
@media (max-width: 360px) { .flyer-card .btn.flyer-tix { font-size: 10px; } }

.show-tag { display: inline-flex; align-items: center; padding: 2px 8px 1px; border-radius: 8px; border: 2px solid var(--pill-ink);
  font-family: var(--term); font-size: 18px; line-height: 1.1; text-transform: uppercase; letter-spacing: .03em; color: var(--pill-ink);
  background: var(--mint); box-shadow: 3px 3px 0 rgba(14,11,31,.7); z-index: 1; }
.show-tag.hot { background: var(--neon-pink); }
.show-tag.week { background: var(--peach); }
.show-tag.soon { background: var(--sky); }
.show-tag.new { background: var(--mint); }
@media (max-width: 640px) { .show-tag { font-size: 15px; padding: 1px 6px 0; } .px-count-label { display: none; } }

.join-card .hatch-line { margin: 16px 0 10px; color: var(--muted); font-family: var(--term); font-size: 20px; }
.join-card .hatch-line strong { color: var(--lemon); font-weight: 400; }
.hatch-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.hatch-flow li { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-family: var(--term); font-size: 15px; color: var(--muted); min-width: 0; }
.hatch-flow .ducky { width: 100%; max-width: 56px; height: auto; }
.hatch-flow span { overflow-wrap: anywhere; }
@media (max-width: 640px) { .hatch-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; } }

.foot-venue { flex-basis: 100%; margin: 0; }

/* ---------- v1.24: prices on cards, venue card, perks, mood, stamps, flock, recap, venue screen ---------- */
.flyer-price { display: block; margin-top: 2px; color: var(--mint); }
.show-tag.out { background: var(--muted); }
.foot-links { flex-basis: 100%; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.venue-card .kv { margin: 0; }
.info-field { display: grid; gap: 4px; }
.info-field > span { display: flex; align-items: center; gap: 6px; }
.info-field input { width: 100%; }

.ducky-mood { margin: 10px 0 0; font-family: var(--term); font-size: 20px; color: var(--muted); }
.ducky-mood strong { color: var(--lemon); font-weight: 400; }
.mood-sleepy strong { color: var(--lavender); }
.mood-hyped strong { color: var(--neon-pink); }
.level-actions { margin-top: 12px; flex-wrap: wrap; }
.perk-list, .flock-list, .recap-stats, .ticket-perks, .screen-board, .screen-shows ul { list-style: none; margin: 0; padding: 0; }
.perk-list { display: grid; gap: 8px; }
.perk-list li { display: flex; align-items: center; gap: 10px; }
.perk-list strong { color: var(--lemon); margin-right: 6px; }
.evo-perk { font-family: var(--term); font-size: 15px; line-height: 1.1; color: var(--mint); overflow-wrap: anywhere; }
.evo-flow li.locked .evo-perk { color: var(--muted); }
.ticket-perks { margin: 8px 0; display: grid; gap: 4px; font-family: var(--term); font-size: 19px; }
.ticket-perks strong { color: var(--pill-ink); background: var(--mint); padding: 0 6px; border-radius: 6px; font-weight: 400; margin-right: 4px; }
.stamp-list a, .stamp-blank { font-family: var(--term); font-size: 16px; line-height: 1.1; overflow-wrap: anywhere; }
.stamp-blank { display: block; color: var(--text); }
.stamp-art { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; margin-bottom: 4px; border-radius: 10px; border: 2px dashed var(--line); font-size: 30px; }

.flock { margin: 10px 0; padding: 10px 12px; border: 2px dashed var(--lavender); border-radius: 12px; background: rgba(26,21,51,.6); }
.flock-line { margin: 0 0 8px; font-family: var(--term); font-size: 20px; }
.flock-line strong { color: var(--lemon); font-weight: 400; }
.flock-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.flock-list a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text); text-decoration: none; font-family: var(--term); font-size: 16px; max-width: 84px; text-align: center; overflow-wrap: anywhere; }

.recap-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.recap-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.recap-stats li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; text-align: center; border: 2px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--deep)); font-family: var(--term); font-size: 19px; color: var(--muted); }
.recap-stats strong { font-family: var(--pixel); font-weight: 400; font-size: 22px; color: var(--lemon); }

.screen-page { overflow: hidden; }
.screen { max-width: none; padding: 3vh 3vw; }
.screen-head { display: flex; align-items: center; justify-content: center; gap: 2vw; margin-bottom: 3vh; }
.screen-head img { height: 9vh; width: auto; }
.screen-head .px-wordmark { height: 6vh; }
.screen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2vw; align-items: start; }
.screen h2 { font-size: clamp(14px, 1.5vw, 26px); }
.screen-board li { display: flex; align-items: baseline; gap: 1vw; padding: .8vh 0; border-bottom: 2px dashed var(--line); font-family: var(--term); font-size: clamp(22px, 2.4vw, 44px); }
.screen-board .rank { min-width: 2.2em; }
.screen-board .who { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-board .wl { color: var(--lemon); }
.screen-shows ul { display: grid; gap: 1.2vh; }
.screen-shows li { display: flex; align-items: center; gap: 1vw; font-family: var(--term); font-size: clamp(18px, 1.8vw, 32px); color: var(--muted); }
.screen-shows li img { width: 4.5vw; min-width: 48px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.screen-shows li strong { display: block; color: var(--lemon); font-weight: 400; text-transform: uppercase; }
.screen-cta { margin: 2vh 0 0; font-family: var(--term); font-size: clamp(18px, 1.8vw, 32px); }
.screen-cta strong { color: var(--lemon); font-weight: 400; }
