:root {
  color-scheme: dark;
  --plum: #24124b;
  --plum-deep: #190c35;
  --lavender: #9d80f4;
  --coral: #f36c67;
  --teal: #35b9ad;
  --gold: #f4c956;
  --paper: #fbf9ff;
  --ink: #24124b;
  --muted: #796b91;
  --line: #e7e0f2;
  font-family: "Avenir Next", "Trebuchet MS", Arial, sans-serif;
  font-synthesis: none;
  background: var(--plum);
  color: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
button, input, a, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
input:focus-visible { outline: 3px solid #7346df; outline-offset: 2px; }
button:disabled { opacity: .48; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
svg, img { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

.topbar {
  max-width: 1440px; margin: auto; padding: 27px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-size: 20px; font-weight: 650; letter-spacing: -.6px; white-space: nowrap; }
.brand b { font-weight: 450; color: #c8b8ee; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 10px); gap: 3px; margin-right: 4px; transform: rotate(-9deg); }
.brand-mark i { width: 10px; height: 10px; border-radius: 2px; background: var(--coral); }
.brand-mark i:nth-child(2) { background: var(--gold); }
.brand-mark i:nth-child(3) { background: var(--teal); }
.brand-mark i:nth-child(4) { background: var(--lavender); }
.top-actions { display: flex; align-items: center; gap: 18px; }
.quiet { background: transparent; color: inherit; border: 1px solid #786293; border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 700; }
.quiet:hover { background: #ffffff12; }
.connection { color: #c8b8ee; font-size: 12px; }
.connection:empty { display: none; }

#app { max-width: 1336px; margin: auto; padding: 24px 44px 60px; min-height: calc(100vh - 166px); }
footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1336px; margin: auto; padding: 20px 44px 26px; color: #bdaed6; font-size: 12px; border-top: 1px solid #ffffff13; }
.home { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center; min-height: 620px; padding: 20px 0; }
.hero { position: relative; }
.kicker { color: #d8cdf0; font-size: 15px; font-weight: 650; margin-bottom: 24px; }
.hero h1 { font-size: clamp(64px, 7.2vw, 104px); letter-spacing: -.065em; line-height: .95; font-weight: 850; margin-bottom: 24px; }
.hero-line { display: block; }
.hero-line:last-child { color: var(--gold); }
.lede { color: #d7cbea; max-width: 440px; font-size: 18px; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid #705d92; border-radius: 999px; color: #ded4ef; font-size: 12px; font-weight: 700; }
.hero-art { position: relative; height: 150px; max-width: 420px; margin-top: 30px; }
.art-ring { position: absolute; width: 118px; height: 118px; border: 21px solid var(--lavender); border-radius: 50%; left: 12px; top: 8px; border-right-color: #b7a0fb; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 32px; line-height: 1; font-weight: 850; }
.art-ring span { display: block; margin-top: 4px; font-size: 10px; font-weight: 650; }
.art-plus { position: absolute; top: 14px; left: 164px; width: 85px; height: 85px; color: var(--teal); font-size: 110px; line-height: .7; font-weight: 900; transform: rotate(12deg); }
.art-card { position: absolute; left: 253px; top: 38px; background: var(--coral); color: var(--plum); border-radius: 13px; padding: 16px 23px; transform: rotate(-10deg); font-size: 29px; font-weight: 900; box-shadow: 0 7px 0 #190c35; }
.art-score { position: absolute; left: 111px; bottom: 0; color: var(--plum); background: var(--gold); border: 4px solid var(--plum); border-radius: 999px; padding: 7px 20px; font-size: 17px; font-weight: 850; transform: rotate(5deg); }

.panel { color-scheme: light; color: var(--ink); background: var(--paper); border-radius: 24px; padding: 30px; }
.join-panel { padding: 34px; box-shadow: 10px 12px 0 #190c35; }
.panel h2 { margin-bottom: 12px; font-size: 30px; letter-spacing: -1px; }
.panel h3 { font-size: 21px; letter-spacing: -.5px; margin-bottom: 12px; }
.field { display: grid; gap: 7px; margin: 17px 0; }
.field label, label.field { font-weight: 750; font-size: 13px; }
.field input:not([type=checkbox]), .field select { width: 100%; border: 2px solid #dfd7eb; background: #fff; color: var(--ink); border-radius: 11px; min-height: 50px; padding: 11px 14px; font-size: 17px; }
.field input::placeholder { color: #978ba8; }
.field input[name=room], .field input[name=code] { letter-spacing: 3px; font-weight: 800; text-transform: uppercase; }
.field input[type=checkbox] { accent-color: #7041db; width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; }
label:has(input[type=checkbox]) { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; font-weight: 500; }
.check-label { margin: 20px 0 18px; }
.check-label input[type=checkbox] { accent-color: #7041db; width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; }
.button { border: 0; border-radius: 12px; min-height: 48px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 15px; text-decoration: none; transition: transform .12s ease, filter .12s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.04); }
.button:active:not(:disabled) { transform: translateY(1px); }
.primary { background: var(--gold); color: var(--plum); box-shadow: 0 4px 0 #bc922b; }
.panel .primary { background: var(--plum); color: #fff; box-shadow: 0 4px 0 #9d80f4; }
.secondary { background: #efebf7; color: var(--plum); box-shadow: 0 3px 0 #d3c8e8; }
.danger { background: #f9e1e2; color: #98272c; box-shadow: none; }
.wide { width: 100%; }
.subtle { color: #c8b8ee; font-size: 14px; line-height: 1.6; }
.hint { font-size: 12px; line-height: 1.55; color: #c8b8ee; margin: 16px 0 0; }
.panel .subtle, .panel .hint, .ticket .subtle, .ticket .hint { color: var(--muted); }
.error { background: #fff0ef; border-left: 4px solid #b92e3c; color: #8a1725; padding: 12px; border-radius: 7px; font-size: 14px; }
.error:empty { display: none; }
.panel hr { border: 0; border-top: 1px solid var(--line); margin: 25px 0; }
.store-links { display: flex; gap: 9px; flex-wrap: wrap; margin: 15px 0; }
.store-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: white; background: #24124b; border-radius: 9px; padding: 11px 15px; font-size: 13px; font-weight: 750; text-decoration: none; }
.store-link:hover { background: #47306d; }
.store-link[aria-disabled=true] { background: #ece6f4; color: #796b91; }

.room-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin: 0 0 24px; }
.room-code { font-weight: 850; font-size: 21px; letter-spacing: 3px; }
.room-code small { display: block; font-size: 11px; letter-spacing: 0; color: #c8b8ee; font-weight: 500; margin-bottom: 1px; }
.badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; font-size: 12px; font-weight: 750; padding: 6px 12px; background: #ffffff12; color: #e2d8f4; }
.panel .badge { background: #ebe5f6; color: #634c88; }
.lobby-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.lobby-title { font-size: clamp(40px, 5vw, 65px); letter-spacing: -.055em; margin-bottom: 16px; }
.roster { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; min-height: 48px; }
.player-chip { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); background: #eae2fa; padding: 7px 13px 7px 7px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.player-chip:nth-child(3n+2) { background: #d7f1eb; }
.player-chip:nth-child(3n) { background: #fae9bb; }
.player-chip small { display: block; color: #594675; font-size: 10px; line-height: 1.4; font-weight: 550; }
.avatar { display: inline-flex; flex: 0 0 30px; align-items: center; justify-content: center; background: #ffffff9c; border-radius: 50%; width: 30px; height: 30px; font-size: 13px; font-weight: 850; }
.share-box { text-align: center; background: #eee8fb; border-radius: 16px; padding: 22px; margin-bottom: 20px; }
.share-box h3 { margin-bottom: 16px; }
.share-box .room-code { font-size: 30px; letter-spacing: 5px; margin: 12px 0; }
.qr { padding: 12px; background: white; border-radius: 12px; width: fit-content; max-width: 100%; margin: 0 auto 14px; }
.qr svg, .qr img { width: 196px; height: auto; image-rendering: crisp-edges; }
.host-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 24px; }
.host-controls .button { flex-grow: 1; }
.tickets { margin-top: 24px; }
.tickets summary { cursor: pointer; font-size: 15px; font-weight: 750; padding: 16px 0; }
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ticket { background: #f2edf9; color: var(--ink); border: 1px solid #e1d6ef; border-radius: 12px; padding: 15px; font-size: 12px; overflow-wrap: anywhere; }
.ticket strong { display: block; font-size: 15px; margin-bottom: 7px; }
.ticket .qr svg, .ticket .qr img { width: 120px; }
.ticket .button { font-size: 12px; padding: 8px 10px; min-height: 36px; width: 100%; margin-top: 9px; }
.checkin { background: #f3eefb; border-radius: 14px; margin: 20px 0; padding: 18px; }
.checkin-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #dfd6ed; }
.checkin-row:last-child { border-bottom: 0; padding-bottom: 0; }
.checkin-row .button { min-height: 36px; padding: 8px 12px; font-size: 12px; flex-shrink: 0; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.question-panel { border-radius: 24px; }
.question-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.progress-label { color: var(--muted); font-size: 14px; font-weight: 750; }
.timer { --progress: 100%; width: 83px; height: 83px; flex: 0 0 83px; padding: 6px; background: conic-gradient(var(--coral) var(--progress), #eae4f3 0); border-radius: 50%; }
.timer-inner { display: flex; align-items: center; justify-content: center; height: 100%; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 30px; line-height: 1; font-weight: 850; font-variant-numeric: tabular-nums; }
.timer.urgent { background: conic-gradient(#c72a40 var(--progress), #eae4f3 0); }
.question-text { color: var(--ink); font-size: clamp(21px, 2.7vw, 33px); line-height: 1.3; letter-spacing: -.7px; font-weight: 750; margin: 10px 0 26px; max-width: 80ch; }
.question-panel > img, .explanation img { margin: 20px auto; max-height: 360px; object-fit: contain; border-radius: 8px; }
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.answer { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 91px; border: 3px solid transparent; border-bottom: 6px solid #00000022; border-radius: 13px; padding: 16px; text-align: left; color: var(--plum); font-size: 16px; line-height: 1.4; font-weight: 700; transition: transform .12s ease, filter .12s ease; }
.answer:last-child:nth-child(odd) { grid-column: 1 / -1; }
.answer:not(:disabled):hover { transform: translateY(-3px); filter: brightness(1.06); }
.answer:not(:disabled):active { transform: translateY(2px); }
.answer:disabled { opacity: 1; }
.letter { display: inline-flex; flex: 0 0 31px; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 8px; color: var(--plum); background: #ffffff65; font-size: 15px; font-weight: 900; }
.answer-text { overflow-wrap: anywhere; }
.tone-0 { background: var(--coral); }
.tone-1 { background: #ad95f2; }
.tone-2 { background: var(--teal); }
.tone-3 { background: var(--gold); }
.tone-4 { background: #76bde6; }
.tone-5 { background: #e7a5d0; }
.answer.selected { border: 3px solid var(--plum); border-bottom-width: 6px; box-shadow: 0 0 0 3px white, 0 0 0 5px var(--plum); }
.answer.correct { border-color: #116d54; background: #9be3cb; }
.answer.correct .letter { background: #116d54; color: white; }
.answer.wrong { border-color: #a32537; background: #f5c4c7; }
.answer.wrong .letter { background: #a32537; color: white; }
.answer.muted { background: #eee9f5; color: #9486a8; border-bottom-color: #e2d9ec; }
.answer.muted .letter { color: #9586aa; }
.locked { margin: 22px 0 0; padding: 12px 16px; background: #eee8fa; color: #5b3c8b; border-radius: 11px; font-size: 15px; font-weight: 750; text-align: center; }
.result-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 17px 20px; margin: 0 0 22px; border-radius: 13px; font-weight: 850; font-size: 20px; animation: result-in .3s ease-out; }
.result-banner.success { background: #cff1e3; color: #126c53; }
.result-banner.miss { background: #f9e7ce; color: #885518; }
.result-banner small { font-size: 14px; font-weight: 650; }
.explanation { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.65; white-space: pre-line; }
.explanation h3 { font-size: 19px; margin-bottom: 11px; }
.source { color: #897b9c; font-size: 11px; margin-top: 13px; }
.leaderboard { padding: 24px; }
.leaderboard h2, .leaderboard h3 { font-size: 21px; margin-bottom: 20px; }
.board-row { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 13px; }
.board-row:last-child { border-bottom: 0; }
.rank { width: 24px; height: 24px; border-radius: 7px; text-align: center; line-height: 24px; background: #eee7f7; color: #7c669c; font-size: 12px; font-weight: 800; }
.board-row:first-of-type .rank { background: var(--gold); color: var(--plum); }
.board-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.board-score { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 850; }
.board-row.you { background: #ede6fb; border-radius: 8px; padding: 0 7px; margin: 3px -7px; border-bottom-color: transparent; }
.ready-screen { text-align: center; padding: 65px 20px; min-height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ready-screen h1, .ready-screen h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -2px; margin: 0 0 20px; }
.countdown-number { font-size: clamp(100px, 20vw, 190px); line-height: 1; font-weight: 900; letter-spacing: -.07em; color: var(--gold); font-variant-numeric: tabular-nums; }
.ready-screen p { color: #d3c4e7; margin-top: 20px; }

.final-screen { max-width: 950px; margin: auto; text-align: center; }
.final-title { font-size: clamp(45px, 7vw, 78px); font-weight: 850; letter-spacing: -.06em; margin-bottom: 12px; }
.final-screen > p { color: #d6cae9; }
.final-screen .leaderboard { text-align: left; max-width: 680px; margin: 30px auto; }
.podium { display: flex; justify-content: center; align-items: end; gap: 14px; max-width: 680px; margin: 45px auto 35px; }
.podium-place { position: relative; width: 31%; background: #a98ae8; color: var(--ink); border-radius: 20px 20px 5px 5px; padding: 27px 15px; min-height: 160px; display: flex; flex-direction: column; justify-content: center; }
.podium-place > b, .podium-place > strong:first-child, .podium-rank { font-size: 43px; font-weight: 900; line-height: 1; margin-bottom: 15px; }
.podium-1 { background: var(--gold); min-height: 230px; order: 2; }
.podium-2 { background: #b19bf0; min-height: 190px; order: 1; }
.podium-3 { background: var(--coral); order: 3; }
.podium-name { font-size: 18px; font-weight: 850; overflow-wrap: anywhere; line-height: 1.25; }
.podium-score { font-size: 14px; margin-top: 8px; font-weight: 650; }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 15px); background: var(--paper); color: var(--ink); padding: 14px 22px; border-radius: 13px; box-shadow: 0 8px 36px #10052255; max-width: calc(100vw - 32px); width: max-content; opacity: 0; pointer-events: none; z-index: 20; font-size: 14px; font-weight: 700; transition: opacity .18s, transform .18s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.loading { color: #d5c9e9; padding: 100px 20px; text-align: center; font-size: 21px; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 15; }
.confetti i { position: absolute; left: calc(var(--x, 50) * 1%); top: -25px; width: 11px; height: 18px; background: var(--gold); animation: fall 2.8s calc(var(--delay, 0) * 1s) ease-in both; }
.confetti i:nth-child(3n) { background: var(--coral); }
.confetti i:nth-child(3n+1) { background: var(--teal); width: 14px; height: 14px; border-radius: 50%; }
.confetti i:nth-child(4n) { background: var(--lavender); }
.print-tickets { display: none; }
@keyframes fall { to { transform: translate3d(55px, 105vh, 0) rotate(650deg); } }
@keyframes result-in { from { transform: scale(.97); opacity: .5; } to { transform: scale(1); opacity: 1; } }

@media (min-width: 1500px) {
  #app { max-width: 1500px; }
  .game-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .question-text { font-size: 36px; }
  .answer { min-height: 110px; font-size: 20px; }
}
@media (max-width: 1000px) {
  .topbar { padding-inline: 28px; }
  #app { padding-inline: 28px; }
  footer { padding-inline: 28px; }
  .home { gap: 35px; }
  .hero h1 { font-size: 72px; }
  .hero-art { transform-origin: left center; transform: scale(.85); }
  .join-panel { padding: 27px; }
  .game-layout { grid-template-columns: minmax(0, 1fr) 235px; gap: 17px; }
  .question-panel { padding: 24px; }
  .leaderboard { padding: 20px; }
  .answer { font-size: 14px; padding: 13px; gap: 10px; }
  .lobby-grid { grid-template-columns: 1.1fr .9fr; }
}
@media (max-width: 760px) {
  .topbar { padding: 20px; }
  .brand { font-size: 17px; }
  .top-actions { gap: 10px; }
  .connection { max-width: 90px; font-size: 10px; }
  .quiet { font-size: 11px; padding: 6px 10px; }
  #app { padding: 15px 20px 40px; }
  footer { padding: 18px 20px; font-size: 11px; }
  footer span { text-align: right; }
  .home { grid-template-columns: 1fr; gap: 32px; min-height: auto; padding-top: 8px; }
  .hero h1 { font-size: clamp(60px, 12vw, 88px); max-width: 650px; }
  .kicker { margin-bottom: 19px; font-size: 13px; }
  .lede { font-size: 16px; max-width: 530px; margin-bottom: 0; }
  .hero-art { display: none; }
  .chips { margin: 22px 0 0; }
  .join-panel { box-shadow: 6px 7px 0 #190c35; }
  .lobby-grid, .game-layout { grid-template-columns: 1fr; gap: 20px; }
  .lobby-title { font-size: 43px; }
  .room-bar { margin-bottom: 18px; }
  .panel { padding: 24px; border-radius: 20px; }
  .question-panel { padding: 22px; }
  .question-text { font-size: 24px; line-height: 1.35; margin-bottom: 22px; }
  .timer { width: 71px; height: 71px; flex-basis: 71px; padding: 5px; }
  .timer-inner { font-size: 27px; }
  .answers { gap: 11px; }
  .answer { font-size: 15px; padding: 13px; }
  .letter { width: 27px; height: 27px; flex-basis: 27px; font-size: 13px; }
  .leaderboard { padding: 23px; }
  .board-row { min-height: 45px; font-size: 14px; }
  .board-score { font-size: 14px; }
  .ready-screen { min-height: 420px; }
  .podium { gap: 9px; margin-top: 35px; }
  .podium-place { padding: 20px 10px; border-radius: 15px 15px 4px 4px; }
  .podium-name { font-size: 15px; }
  .podium-score { font-size: 12px; }
}
@media (max-width: 480px) {
  .topbar { padding: 18px 16px; }
  .brand { font-size: 15px; gap: 5px; }
  .brand-mark { grid-template-columns: repeat(2, 8px); margin-right: 2px; }
  .brand-mark i { width: 8px; height: 8px; }
  #app { padding: 14px 16px 34px; }
  .connection { display: none; }
  .hero h1 { font-size: clamp(58px, 14.5vw, 70px); }
  .hero .lede { font-size: 15px; }
  .chip { font-size: 11px; padding: 5px 10px; }
  .panel { padding: 21px; }
  .panel h2 { font-size: 26px; }
  .room-code { font-size: 19px; }
  .badge { font-size: 11px; padding: 5px 10px; }
  .question-panel { padding: 18px; }
  .question-top { gap: 12px; margin-bottom: 10px; }
  .question-text { font-size: 20px; letter-spacing: -.35px; }
  .answers { grid-template-columns: 1fr; gap: 10px; }
  .answer { min-height: 68px; font-size: 15px; padding: 13px; border-radius: 11px; }
  .answer:last-child:nth-child(odd) { grid-column: auto; }
  .answer.selected { box-shadow: 0 0 0 2px white, 0 0 0 4px var(--plum); }
  .timer { width: 65px; height: 65px; flex-basis: 65px; }
  .timer-inner { font-size: 25px; }
  .host-controls .button { width: 100%; }
  .checkin-row { flex-wrap: wrap; gap: 9px; font-size: 13px; }
  .checkin-row > strong { flex-basis: 100%; }
  .checkin-row .button { flex: 1; max-width: none; }
  .store-link { flex-grow: 1; padding: 10px 12px; font-size: 12px; }
  .result-banner { font-size: 18px; padding: 14px; }
  .result-banner small { font-size: 12px; }
  .explanation { font-size: 14px; }
  .podium-place { min-height: 145px; }
  .podium-1 { min-height: 210px; }
  .podium-2 { min-height: 175px; }
  footer { flex-direction: column; gap: 3px; padding-inline: 16px; }
  footer span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .confetti { display: none; }
}
@media print {
  :root, body { background: white; color: black; }
  body * { visibility: hidden; }
  .print-tickets, .print-tickets * { visibility: visible; }
  .print-tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: absolute; inset: 0 auto auto 0; width: 100%; padding: 12px; }
  .print-tickets .ticket { break-inside: avoid; color: black; background: white; text-align: center; border: 1px dashed #777; border-radius: 0; padding: 12px; }
  .print-tickets .qr { margin-bottom: 5px; padding: 0; }
  .print-tickets .qr svg, .print-tickets .qr img { width: 125px; }
  .print-tickets .button { display: none; }
  @page { margin: 10mm; }
}
