/* games.gpeake.com: "arcade carpet" theme.
   Display: Bungee (marquee signage). Body: Chakra Petch. Numbers & code: JetBrains Mono. */

@font-face { font-family: 'Bungee'; src: url('/static/fonts/bungee-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('/static/fonts/chakra-petch-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('/static/fonts/chakra-petch-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('/static/fonts/chakra-petch-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('/static/fonts/chakra-petch-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/static/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/static/fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #0b0a12;
  --ink-2: #110f1c;
  --panel: #161325;
  --panel-2: #1d1930;
  --line: #2c2745;
  --line-2: #3d3660;
  --text: #efeaff;
  --dim: #948cb4;
  --coin: #ffd23f;
  --hot: #ff3d7f;
  --zap: #3df5ff;
  --lime: #9dff3d;
  --danger: #ff5a4f;
  --display: 'Bungee', 'Impact', sans-serif;
  --body: 'Chakra Petch', 'Trebuchet MS', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --radius: 14px;
  --shadow-hard: 6px 6px 0 var(--hot);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 70% at 50% -10%, #2a1747 0%, transparent 60%),
    radial-gradient(80% 60% at 100% 100%, #0c2b3a 0%, transparent 60%),
    var(--ink);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  display: flex;
  flex-direction: column;
}
/* The carpet. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('/static/carpet.svg') 0 0 / 240px 240px;
  opacity: 0.16;
  pointer-events: none;
}
/* CRT scanlines over everything except the play page. */
body:not(.play)::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
  z-index: 50;
}

a { color: var(--zap); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coin); }
code, pre, kbd { font-family: var(--mono); font-size: 0.88em; }
code { background: rgba(61, 245, 255, 0.08); color: #bff9ff; padding: 0.1em 0.38em; border-radius: 5px; }
.dim { color: var(--dim); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--coin); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; padding: 28px 0 64px; flex: 1; }
.wrap.narrow { width: min(640px, 100% - 40px); }

/* ---------- type ---------- */
.kicker { font: 600 13px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.22em; color: var(--hot); margin: 0 0 10px; }
.marquee {
  font: 400 clamp(3.4rem, 11vw, 8.4rem)/0.9 var(--display);
  margin: 0 0 18px;
  color: var(--coin);
  text-shadow: 4px 4px 0 var(--hot), 8px 8px 0 rgba(61, 245, 255, 0.35);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.marquee span { color: transparent; -webkit-text-stroke: 2px var(--zap); text-shadow: none; }
.marquee.small { font-size: clamp(2.1rem, 5.4vw, 3.6rem); text-shadow: 3px 3px 0 var(--hot); }
.marquee.small span { -webkit-text-stroke-width: 1.5px; }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: #d5cdf5; max-width: 40ch; margin: 0 0 20px; }
.section-title {
  font: 400 22px/1.1 var(--display); margin: 44px 0 18px; display: flex; align-items: center; gap: 12px;
  color: var(--text); letter-spacing: 0.01em;
}
.section-title::after { content: ''; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.section-title .count {
  font: 600 14px var(--mono); color: var(--ink); background: var(--zap); padding: 2px 9px; border-radius: 999px;
}
.slug { font: 400 13px var(--mono); color: var(--dim); }
.crumb { display: inline-block; margin-bottom: 18px; font-weight: 600; text-decoration: none; }
.empty { color: var(--dim); border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 30px; text-align: center; }

/* ---------- buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 14px/1 var(--body); text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none;
  color: var(--ink); background: var(--coin); border: 2px solid var(--ink); border-radius: 10px;
  padding: 12px 18px; cursor: pointer; box-shadow: 4px 4px 0 var(--hot);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--hot); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--hot); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.small { padding: 8px 12px; font-size: 12px; box-shadow: 3px 3px 0 var(--hot); }
.btn.big { padding: 16px 26px; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); box-shadow: 3px 3px 0 var(--line); }
.btn.ghost:hover { color: var(--coin); border-color: var(--coin); }
.btn.danger { background: var(--danger); color: #1a0505; box-shadow: 3px 3px 0 #6d1111; }

.badge {
  display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.16em;
  padding: 6px 9px; border-radius: 6px; border: 1px solid currentColor;
}
.badge.open { color: var(--lime); background: rgba(157, 255, 61, 0.08); }
.badge.closed { color: var(--dim); }

/* ---------- home (the whole public site) ---------- */
.hero-title {
  font-size: clamp(2.2rem, 9.5vw, 6.6rem); white-space: nowrap; margin: 30px 0 8px;
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-title a { color: inherit; text-decoration: none; }

.tickets { display: grid; gap: 18px; margin-top: 30px; }
details.ticket {
  display: block; color: var(--text);
  background: linear-gradient(100deg, var(--panel-2), var(--panel)); border: 2px solid var(--line-2); border-radius: var(--radius);
  position: relative; transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.ticket:nth-child(2) { animation-delay: 0.07s; }
.ticket:nth-child(3) { animation-delay: 0.14s; }
.ticket:nth-child(4) { animation-delay: 0.21s; }
.ticket:nth-child(n + 5) { animation-delay: 0.28s; }
details.ticket > summary { display: grid; grid-template-columns: 1fr 150px; cursor: pointer; list-style: none; }
details.ticket > summary::-webkit-details-marker { display: none; }
details.ticket:not([open]):hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--hot); border-color: var(--coin); }
details.ticket.closed:not([open]):hover { box-shadow: 8px 8px 0 var(--line-2); }
details.ticket[open] { border-color: var(--coin); box-shadow: 8px 8px 0 var(--hot); }
details.ticket[open].closed { box-shadow: 8px 8px 0 var(--line-2); }
.ticket-main { padding: 22px 26px; min-width: 0; }
.ticket-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; }
.ticket h2 { font: 400 clamp(22px, 3vw, 30px)/1.1 var(--display); margin: 0; overflow-wrap: anywhere; }
.ticket.open h2 { color: var(--coin); }
.ticket-main p { margin: 0; color: #cfc7ef; }
.ticket-stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-left: 3px dashed var(--line-2); position: relative;
}
/* Punched notches where the stub tears off. */
.ticket-stub::before, .ticket-stub::after {
  content: ''; position: absolute; left: -12px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--line-2);
}
.ticket-stub::before { top: -11px; clip-path: inset(50% 0 0 0); }
.ticket-stub::after { bottom: -11px; clip-path: inset(0 0 50% 0); }
details.ticket[open] .ticket-stub::after { display: none; }
details.ticket:hover .ticket-stub::before, details.ticket:hover .ticket-stub::after, details.ticket[open] .ticket-stub::before { border-color: var(--coin); }
.ticket-stub strong { font: 600 44px/1 var(--mono); color: var(--zap); text-shadow: 0 0 14px rgba(61, 245, 255, 0.55); }
.ticket-stub span { font: 600 11px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }

/* ---------- an expanded jam ---------- */
.jam-body { border-top: 3px dashed var(--line-2); padding: 0 26px 28px; cursor: auto; animation: rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.jam-body .section-title { margin: 28px 0 14px; }
.agent-line { margin: 0 0 18px; }
.agent-copy {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; border: 0; background: none; cursor: pointer;
  font: 600 14px var(--mono); letter-spacing: 0.04em; color: var(--zap);
}
.agent-copy [data-label] { text-decoration: underline dashed; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.agent-copy svg { transform: translateY(-1px); }
.agent-copy:hover { color: var(--coin); }
.agent-copy.copied { color: var(--lime); }
.agent-copy.copied [data-label] { text-decoration: none; }

.panel { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.panel h3 { font: 400 15px var(--display); margin: 0 0 8px; color: var(--zap); letter-spacing: 0.02em; }
.panel p { margin: 0 0 8px; font-size: 15px; }
.panel p:last-child { margin-bottom: 0; }
.warn { color: var(--coin); font-weight: 600; }

.prose { font-size: 17px; max-width: 72ch; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 1.6em 0 0.5em; letter-spacing: 0.01em; }
.prose h2 { font-size: 26px; color: var(--coin); }
.prose h3 { font-size: 20px; color: var(--zap); }
.prose h4, .prose h5, .prose h6 { font-size: 16px; color: var(--hot); }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre { margin: 0 0 1em; }
.prose ul { list-style: none; padding-left: 1.4em; }
.prose ul li { position: relative; }
.prose ul li::before { content: '▸'; position: absolute; left: -1.2em; color: var(--hot); }
.prose ol { padding-left: 1.6em; }
.prose ol li::marker { color: var(--hot); font-family: var(--mono); font-weight: 600; }
.prose li { margin: 0.25em 0; }
.prose strong { color: #fff; }
.prose em { color: #e6dcff; }
.prose blockquote { border-left: 4px solid var(--zap); padding: 4px 0 4px 16px; color: #d7d0f3; background: rgba(61, 245, 255, 0.04); }
.prose pre { background: #07060c; border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: #d8f4ff; }
.prose hr { border: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); margin: 2em 0; }

.cabinets { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.cabinet {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: linear-gradient(to bottom, var(--panel-2), var(--panel)); border: 2px solid var(--line-2); border-radius: 18px; padding: 12px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cabinet:nth-child(2) { animation-delay: 0.05s; }
.cabinet:nth-child(3) { animation-delay: 0.1s; }
.cabinet:nth-child(4) { animation-delay: 0.15s; }
.cabinet:nth-child(n + 5) { animation-delay: 0.2s; }
.cabinet:hover { color: var(--text); transform: translateY(-5px); border-color: var(--zap); box-shadow: 0 14px 0 -6px var(--hot), 0 0 34px rgba(61, 245, 255, 0.18); }
.screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #05040a;
  box-shadow: inset 0 0 0 3px #05040a, 0 0 0 2px var(--line);
}
.screen img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease, filter 0.3s ease; }
.screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.45));
}
.play-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.9); opacity: 0; z-index: 1;
  font: 400 18px var(--display); color: var(--ink); background: var(--coin); padding: 8px 16px; border-radius: 8px; box-shadow: 4px 4px 0 var(--hot);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.cabinet:hover .play-hint, .cabinet:focus-visible .play-hint { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cabinet:hover .screen img { transform: scale(1.04); filter: saturate(1.2) brightness(0.8); }
.cab-body { padding: 14px 6px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cab-body h3 { font: 400 19px/1.15 var(--display); margin: 0; overflow-wrap: anywhere; }
.cab-body .by { margin: 0; color: var(--hot); font-weight: 600; font-size: 15px; }
.cab-body .desc { margin: 4px 0 0; color: #cdc5ec; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cab-body .meta { margin: auto 0 0; padding-top: 10px; display: flex; gap: 10px; font: 400 12px var(--mono); color: var(--dim); }
.cab-body .meta span { color: var(--zap); }
.waiting { margin-top: 18px; font-family: var(--mono); font-size: 13px; }

/* ---------- 404 / gates ---------- */
.gameover, .gate { text-align: center; padding: 70px 0 40px; }
.gameover h1 { font: 400 clamp(3rem, 10vw, 6rem)/1 var(--display); color: var(--hot); text-shadow: 4px 4px 0 var(--ink-2), 0 0 30px rgba(255, 61, 127, 0.6); margin: 0 0 12px; animation: flicker 3s infinite; }
.gate .marquee { margin-bottom: 22px; }
.gate p { max-width: 50ch; margin: 0 auto 16px; }
.error { color: var(--danger); font-weight: 600; }

/* ---------- play page ---------- */
body.play { height: 100dvh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: #000; }
body.play::before { opacity: 0.08; }
.playbar {
  display: flex; align-items: center; gap: 16px; padding: 8px 14px; min-height: 52px;
  background: var(--ink-2); border-bottom: 2px solid var(--line); position: relative; z-index: 2;
}
.playbar .back {
  display: inline-flex; gap: 6px; align-items: center; color: var(--dim); text-decoration: none; font-weight: 600; font-size: 14px;
  max-width: 28vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px;
}
.playbar .back:hover { color: var(--coin); border-color: var(--coin); }
.playbar .back span { overflow: hidden; text-overflow: ellipsis; }
.playtitle { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1; }
.playtitle h1 { font: 400 19px/1.1 var(--display); margin: 0; color: var(--coin); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playtitle .by { color: var(--hot); font-weight: 600; font-size: 14px; white-space: nowrap; }
.ver { font: 600 12px var(--mono); color: var(--zap); border: 1px solid rgba(61, 245, 255, 0.4); border-radius: 6px; padding: 4px 7px; }
.stage { min-height: 0; position: relative; background: #000; }
.stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 10; display: flex; align-items: center; gap: 12px;
  background: var(--panel-2); color: var(--text); border: 2px solid var(--coin); border-radius: 12px; padding: 12px 12px 12px 16px;
  box-shadow: 6px 6px 0 var(--hot), 0 10px 40px rgba(0, 0, 0, 0.6); font-weight: 600; font-size: 15px;
  animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.toast .x { background: none; border: 0; color: var(--dim); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.toast .x:hover { color: var(--text); }

/* ---------- admin ---------- */
.devbar { font: 600 12px var(--mono); letter-spacing: 0.08em; color: var(--ink); background: repeating-linear-gradient(45deg, var(--coin) 0 14px, #ffbf00 14px 28px); padding: 8px 14px; border-radius: 8px; margin: 0 0 22px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.admin-head .marquee { margin-bottom: 6px; }
.title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.admin-head .title-row .marquee { margin: 0; }
.section-title.first { margin-top: 8px; }
details.new-jam { margin-top: 18px; }
details.new-jam > summary { list-style: none; }
details.new-jam > summary::-webkit-details-marker { display: none; }
details.new-jam[open] > summary { display: none; }
details.new-jam .form-panel { margin-top: 0; }
form.signout { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 40px; }
form.inline { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
table.grid th { text-align: left; font: 600 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); padding: 12px 14px; background: var(--ink-2); border-bottom: 2px solid var(--line); }
table.grid td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tbody tr:hover td { background: rgba(255, 210, 63, 0.03); }
td.actions { text-align: right; white-space: nowrap; }
td.actions form { display: inline; margin: 0; }
td.actions .btn { margin: 2px 0 2px 6px; }
.form-panel { margin-top: 40px; padding: 4px 24px 24px; }
.form-panel .section-title { margin-top: 22px; }
form.stack { display: grid; gap: 16px; }
form.stack label, .inline-form > label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: #ddd5fb; }
form.stack label small { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--dim); font-size: 13px; }
input[type='text'], input:not([type]), textarea {
  font: 400 16px/1.45 var(--body); color: var(--text); background: #0a0912; border: 2px solid var(--line-2); border-radius: 10px; padding: 10px 12px; width: 100%;
}
textarea { font-family: var(--mono); font-size: 14px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--zap); box-shadow: 0 0 0 3px rgba(61, 245, 255, 0.18); }
fieldset.radios { border: 2px solid var(--line-2); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 10px 14px 12px; margin: 0; }
fieldset.radios legend { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; padding: 0 6px; }
fieldset.radios label { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 15px; }
input[type='radio'] { accent-color: var(--coin); width: 18px; height: 18px; }
form.stack > .btn { justify-self: start; }
.inline-form { display: grid; gap: 6px; margin-top: 18px; }
.inline-row { display: flex; align-items: center; gap: 14px; }
.inline-row input { flex: 1; min-width: 0; }
.inline-row .btn { flex: none; }
.alert { border: 2px solid var(--danger); background: rgba(255, 90, 79, 0.08); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.flash { display: inline-block; font: 600 13px var(--mono); color: var(--ink); background: var(--lime); padding: 8px 12px; border-radius: 8px; margin: 18px 0 0; }
.reveal { margin-top: 26px; border-color: var(--coin); box-shadow: 8px 8px 0 var(--hot); animation: rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.reveal h2 { font: 400 22px var(--display); margin: 0 0 14px; }
.reveal h2 .dim { font: 400 14px var(--mono); margin-left: 6px; }
.keybox { display: flex; align-items: stretch; gap: 10px; margin: 0 0 14px; }
.keybox code, .keybox pre {
  flex: 1; margin: 0; font: 600 15px/1.5 var(--mono); color: var(--coin); background: #07060c; border: 2px dashed var(--coin); border-radius: 10px;
  padding: 12px 14px; overflow-x: auto; white-space: pre; user-select: all;
}
.keybox .btn { align-self: center; }
.panel.danger { margin-top: 40px; border-color: rgba(255, 90, 79, 0.4); padding: 4px 24px 24px; }
.panel.danger .section-title { margin-top: 22px; color: var(--danger); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: 0.4; } 95% { opacity: 1; } 97% { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  table.grid { display: block; overflow-x: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  details.ticket > summary { grid-template-columns: 1fr 92px; }
  .jam-body { padding: 0 16px 20px; }
  .ticket-main { padding: 18px; }
  .ticket-stub strong { font-size: 32px; }
  .playtitle .by, .playbar .back span { display: none; }
  .keybox { flex-direction: column; }
}
