@font-face {
  font-family: 'Classic Digital';
  src: url('/classic/digital.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --white: #fff;
  --gold: #ffd65b;
  --brown: #542209;
  --muted: #f2dbc5;
  --silver: linear-gradient(#fff 0%, #f5f4f2 48%, #e1dfdc 100%);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  padding: 1px 16px;
  background: #e3e6e9;
  color: var(--white);
  font: 14px/1.4 Arial, Helvetica, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button, input, a, summary { outline-offset: 3px; }
:focus-visible { outline: 3px solid #ffd75d; }
button svg { width: 20px; height: 20px; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: #ffe397; color: #381908; }

.classic-cabinet {
  position: relative;
  isolation: isolate;
  max-width: 900px;
  margin: 20px auto;
  overflow: hidden;
  border: 1px solid #4e2a1c;
  border-radius: 9px;
  background: #ad501f url('/classic/wood.jpg') center top / cover;
  box-shadow: 0 3px 12px #1e110a40, 0 16px 42px #1e110a22;
}
.stage-curtain {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 44px;
  width: 88px;
  opacity: .7;
  background: url('/classic/curtain.svg') left top / 100% 100% no-repeat;
  pointer-events: none;
}
.stage-curtain.left { left: 0; }
.stage-curtain.right { right: 0; transform: scaleX(-1); }
.is-match .stage-curtain, .is-lobby .stage-curtain, .is-finished .stage-curtain { display: none; }
.site-header {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 45px;
  padding: 0 20px;
  border-bottom: 1px solid #54220a80;
  background: #54210d65;
  text-shadow: 0 1px 1px #4a1e0e;
}
.brand { display: inline-flex; align-items: baseline; gap: 3px; text-decoration: none; font-weight: 700; }
.brand-hundred, .brand-one { font-size: 23px; line-height: 1; }
.brand-k { font-size: 13px; font-weight: 400; }
.header-label { font-size: 12px; color: #f3ddc8; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
}
.icon-button:hover { border-color: #ffffff45; background: #0002; }
.quiet-button { min-height: 44px; padding: 9px 3px; border: 0; background: none; font-size: 13px; text-shadow: inherit; }
.quiet-button:hover { text-decoration: underline; text-underline-offset: 3px; }
#app { position: relative; padding: 0 28px; outline: none; }
.site-footer {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 44px;
  padding: 0 18px 0 0;
  border-top: 1px solid #888;
  background: linear-gradient(#303030, #171717);
  box-shadow: 0 -3px 0 #54281380;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 1px 1px #000;
}
.site-footer > :first-child {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 123px;
  padding: 3px 18px;
  border-left: 3px solid #dcc261;
  border-right: 3px solid #ad7d05;
  background: linear-gradient(110deg, #f4d66d, #fff1a0 29%, #dfb737 67%, #ffe792);
  box-shadow: inset 0 1px 0 #fff4b5;
  color: #9d7c12;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 1px #fff8b3;
  text-decoration: none;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer button { min-height: 44px; border: 0; background: none; font-size: 13px; padding: 10px 0; }
.footer-nav { display: flex; align-items: center; gap: 28px; }
.site-footer > :last-child { margin-left: auto; }
.eyebrow { display: block; color: #efd8c0; font-size: 10px; letter-spacing: .8px; }

.landing { width: 100%; max-width: 400px; margin: auto; padding: 15px 0 25px; }
.hero { text-align: center; padding: 12px 20px 17px; }
.classic-logo { display: flex; justify-content: center; gap: 5px; margin: 0 auto 9px; }
.classic-logo > span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 104px;
  border: 1px solid #cfcfcf;
  border-radius: 11px;
  background: linear-gradient(#f7f7f7 0%, #f7f7f7 49%, #e1e1e1 50%, #f8f8f8 56%, #f4f4f4 100%);
  box-shadow: 0 4px 7px #381b0a80, inset 0 1px 1px #fff;
  color: #454545;
  font: 700 91px/1 Arial, sans-serif;
  text-shadow: 0 1px 0 #fff;
}
.classic-logo > span::after { content: ''; position: absolute; top: 50%; left: -1px; right: -1px; height: 1px; background: #747474; box-shadow: 0 2px 2px #fff; }
.hero h1 { font-size: 29px; line-height: 1.15; font-weight: 700; text-shadow: 1px 2px 2px #4c230a; }
.entry-panel {
  padding: 21px 24px 18px;
  border: 1px solid #562709ad;
  border-radius: 8px;
  background: #5e280c38;
  box-shadow: inset 0 1px 5px #54200666, 0 1px 0 #f7b97070;
  text-shadow: 0 1px 1px #51230c;
}
.entry-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 18px; padding: 4px; border: 1px solid #55260d; border-radius: 9px; background: #3e1c0c55; }
.entry-tab { min-height: 44px; padding: 7px 5px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 12px; text-shadow: 0 1px 1px #411907; }
.entry-tab[aria-selected='true'] { border-color: #ded7cc; background: var(--silver); box-shadow: 0 1px 3px #38180540; color: #4b2b1a; font-weight: 700; text-shadow: 0 1px 0 #fff; }
.entry-tab:hover { background-color: #fff1; }
.entry-title { font-size: 20px; font-weight: 400; text-align: center; }
.entry-description { margin: 8px auto 19px; font-size: 12px; line-height: 1.45; color: #f5e7d6; text-align: center; }
.form-field { margin-bottom: 16px; }
.field-label { display: block; margin-bottom: 6px; font-size: 13px; }
.input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #787878;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 1px 2px #0002;
  color: #171717;
  font-size: 16px;
  line-height: 1.4;
  text-shadow: none;
}
.input::placeholder { color: #858585; }
.input:focus { border-color: #7baff4; outline: 2px solid #8abaed; outline-offset: 0; box-shadow: 0 0 4px #1263d3; }
.input:disabled { background: #e6e6e6; color: #777; }
.code-input { font-family: 'Courier New', monospace; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid #929292;
  border-radius: 7px;
  background: var(--silver);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px #45190055;
  color: #141414;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 400;
  text-shadow: 0 1px 0 #fff;
}
.button:hover:not(:disabled) { background: linear-gradient(#fff, #fff 38%, #e8e8e8); border-color: #c4c4c4; }
.button:active:not(:disabled) { background: linear-gradient(#bdbdbd, #e7e7e7); box-shadow: inset 0 1px 3px #3335; }
.button:disabled { background: linear-gradient(#ddd, #c7c7c7); color: #676767; text-shadow: 0 1px 0 #eee; opacity: .9; }
.button-primary, .button-secondary { background: var(--silver); }
.full-width { width: 100%; }
.entry-panel .button-primary { min-height: 48px; font-size: 17px; }
.entry-footnote { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 15px; font-size: 11px; color: #f1dac2; }
.entry-footnote svg { width: 12px; height: 12px; }
.connection-status { margin-top: 9px; color: #ffe895; text-align: center; font-size: 11px; }
.connection-status.online { display: none; }

.page-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; margin-bottom: 10px; }
.room-tag { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #f3ddc6; text-shadow: 0 1px 1px #642c13; }
.room-tag b { font: 700 13px/1 'Courier New', monospace; letter-spacing: 1px; color: #fff; }
.room-leave { min-height: 44px; padding: 7px 0 7px 12px; border: 0; background: none; font-size: 12px; text-shadow: 0 1px 1px #642c13; }
.room-leave:hover { text-decoration: underline; }
.room-leave span { display: none; }
.lobby { max-width: 580px; margin: auto; padding-bottom: 32px; text-shadow: 0 1px 1px #54230d; }
.lobby-heading { padding: 9px 0 0; text-align: center; }
.lobby-heading .eyebrow { margin-bottom: 10px; }
.lobby-heading h1 { font-size: 28px; font-weight: 400; line-height: 1.2; }
.lobby-heading p { max-width: 420px; margin: 12px auto 0; font-size: 13px; }
.invite-bar { display: flex; align-items: center; gap: 18px; margin: 20px 0; padding: 18px; border: 1px solid #562709a6; border-radius: 9px; background: #5e280c2e; box-shadow: inset 0 1px 4px #54200645, 0 1px 0 #f7b97065; }
.invite-bar > div { min-width: 0; }
.invite-details { flex: 1; }
.invite-actions { display: flex; flex-direction: column; gap: 7px; width: 210px; flex-shrink: 0; }
.invite-copy-label { font-size: 10px; color: #f2d9bd; }
.invite-code { margin-top: 4px; font: 700 32px/1.2 'Courier New', monospace; letter-spacing: 4px; }
.invite-link { max-width: 300px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #f2d9bd; }
.invite-bar .button { width: 100%; margin: 0; flex-shrink: 0; padding: 9px 10px; font-size: 12px; white-space: nowrap; }
.invite-bar .copy-invitation { border-color: #e6c9a45c; background: #4e240d42; box-shadow: none; color: #fff3e6; text-shadow: 0 1px 1px #54230d; }
.invite-bar .copy-invitation:hover { background: #4e240d80; }
.lobby-players { display: grid; grid-template-columns: 1fr 32px 1fr; align-items: center; gap: 10px; margin-bottom: 24px; }
.lobby-player { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 14px 8px; }
.avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  overflow: hidden;
  border: 4px solid #6d321887;
  border-radius: 5px;
  background: #d8c8b7 url('/classic/avatar.svg') center / cover no-repeat;
  box-shadow: 0 1px 0 #e8b78970, inset 0 0 0 1px #0002;
  color: #7b5e49;
  font-size: 36px;
  line-height: 1;
  text-shadow: none;
}
.avatar svg { width: 100%; height: 100%; display: block; }
.avatar-initial { position: absolute; right: 1px; bottom: 1px; display: flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 2px 4px; border: 1px solid #b3bac0; border-radius: 3px; background: #eef1f3; color: #40515c; font-size: 13px; font-weight: 700; }
.avatar.me { background-color: #ded1c0; }
.avatar.empty { background: #68341466; border-style: dashed; color: #d5ae87; box-shadow: none; }
.avatar.empty .avatar-initial { position: static; border: 0; background: transparent; color: #e8c69e; font-size: 28px; }
.lobby-player-name { max-width: 100%; margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.player-status { margin-top: 5px; font-size: 11px; color: #ead2b8; text-align: center; }
.player-status.ready { color: #fff0a0; }
.versus { font-size: 14px; text-align: center; color: #f3d4b4; }
.lobby-bottom { max-width: 350px; margin: auto; text-align: center; }
.lobby-bottom button[data-action='ready'] {
  width: 112px;
  min-height: 112px;
  padding: 15px 9px;
  border: 0;
  border-radius: 50%;
  background: transparent url('/classic/start-button.png') center / contain no-repeat;
  box-shadow: 0 3px 5px #28110880;
  color: #fff;
  font-size: 20px;
  text-shadow: 0 1px 1px #660000;
}
.lobby-bottom button[data-action='ready']:hover:not(:disabled) { background: transparent url('/classic/start-button.png') center / contain no-repeat; filter: brightness(1.12); }
.lobby-bottom button[data-action='ready']:active:not(:disabled) { background: transparent url('/classic/start-button.png') center / contain no-repeat; filter: brightness(.9); box-shadow: 0 1px 2px #281108; transform: translateY(1px); }
.lobby-bottom button[data-action='ready']:disabled { filter: saturate(.4) brightness(.82); box-shadow: 0 1px 3px #28110860; font-size: 16px; color: #fff; }
.lobby-bottom button[data-action='ready'] > span[aria-hidden] { display: none; }
.lobby-bottom p, .ready-hint { margin-top: 13px; color: #f0dac3; font-size: 12px; line-height: 1.5; }

.game-shell { max-width: 790px; margin: auto; padding-bottom: 25px; text-shadow: 0 1px 1px #5d260c; }
.game-shell .page-topline { min-height: 33px; margin-bottom: 1px; }
.round-steps { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 29px; margin-bottom: 8px; }
.round-step { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #eed4b8; white-space: nowrap; }
.round-step.active { color: #fff; font-weight: 700; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1px solid #cf9b66; border-radius: 3px; font-size: 10px; }
.round-step.active .step-num { background: #6e2c0dad; border-color: #ffe5aa; }
.round-step.done .step-num { color: #ffe47d; }
.round-step-line { width: 17px; height: 1px; background: #efc69d80; }
.question-block { margin: 7px auto 18px; text-align: center; }
.question-kicker { margin-bottom: 7px; font-size: 9px; letter-spacing: .5px; color: #f0d4b5; }
.question-title { max-width: 760px; margin: auto; font-size: 30px; font-weight: 400; line-height: 1.2; text-shadow: 0 2px 1px #723d1c; overflow-wrap: anywhere; }
.game-layout { display: grid; grid-template-columns: 110px minmax(0, 1fr) 110px; gap: 20px; align-items: start; }
.players-strip { display: contents; }
.players-strip > .score-separator { display: none; }
.game-player { grid-row: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; padding-top: 42px; }
.game-player[data-game-player='me'] { grid-column: 1; }
.game-player[data-game-player='rival'] { grid-column: 3; }
.game-center { grid-column: 2; grid-row: 1; min-width: 0; }
.game-player .avatar { order: 0; width: 91px; height: 91px; margin-top: 13px; }
.game-player-info { display: contents; }
.game-player-name { order: 1; max-width: 100%; margin-top: 7px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.you-mark { display: none; }
.game-player.active .game-player-name::after { content: ''; display: block; width: 62px; height: 3px; margin: 5px auto 0; background: #ffd442; box-shadow: 0 0 0 1px #753810; }
.errors { order: 2; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; margin-top: 12px; padding: 4px 8px; border: 1px solid #55200aa6; border-radius: 5px; background: #57240736; box-shadow: inset 0 1px 3px #54200655, 0 1px 0 #d7945960; }
.error-mark { display: block; width: 22px; height: 22px; overflow: hidden; border: 1px solid #813407; border-radius: 50%; background: #a74c245e; color: transparent; font-size: 0; box-shadow: inset 0 1px 1px #d77d332e; }
.error-mark.used { border-color: #ea1300; background: #ff1004; box-shadow: 0 0 5px #f31302bd, inset 0 1px 2px #ff4936; }
.player-score { order: -1; width: 100%; padding: 3px 4px 2px; border: 1px solid #542109bf; border-radius: 5px; background: #5d240b38; box-shadow: inset 0 1px 4px #5420067a, 0 1px 0 #dd9a5a88; font: 400 32px/1 'Classic Digital', 'Courier New', monospace; letter-spacing: 2px; font-variant-numeric: tabular-nums; color: #fff; text-align: center; text-shadow: 0 0 3px #ffdaa7; }
.player-score small { display: none; }
.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 31px; margin-bottom: 5px; }
.bank { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.bank-label { font-size: 11px; }
.bank-value { font: 400 25px/1 'Classic Digital', 'Courier New', monospace; color: #ffe373; font-variant-numeric: tabular-nums; }
.bank-carry { font-size: 9px; color: #efd3b7; }
.turn-status { display: flex; align-items: center; justify-content: flex-end; gap: 7px; font-size: 11px; text-align: right; }
.turn-label { overflow-wrap: anywhere; }
.turn-status.own-turn { color: #ffe26c; }
.timer { min-width: 28px; color: #fff; font: 400 28px/1 'Classic Digital', 'Courier New', monospace; font-variant-numeric: tabular-nums; text-align: right; }
.timer.urgent { color: #ffce8b; text-shadow: 0 0 3px #8a0700; }
.timer-track { height: 3px; margin-bottom: 7px; overflow: hidden; border: 1px solid #57270e; background: #5b250e; }
.timer-progress { width: 100%; height: 100%; background: #ffd35e; transform-origin: left; transition: transform .2s linear; }
.timer-progress.urgent { background: #ff2d12; }
.answer-board { display: grid; gap: 3px; }
.answer-row { display: grid; grid-template-columns: minmax(0, 1fr) 54px; align-items: center; min-height: 47px; overflow: hidden; border: 1px solid #979797; border-radius: 4px; background: linear-gradient(#fff, #e9e9e9); box-shadow: inset 0 1px 0 #fff, 0 1px 1px #52250c80; color: #909090; text-shadow: 0 1px 0 #fff; }
.answer-rank { text-align: center; font-size: 25px; line-height: 1; font-weight: 700; }
.hidden-answer .answer-rank { grid-column: 1 / -1; padding: 8px; }
.hidden-answer .answer-rank::before, .hidden-answer .answer-rank::after { content: '···'; display: inline-block; margin: 0 7px; letter-spacing: 3px; font-size: 22px; vertical-align: 1px; }
.hidden-answer .answer-word, .hidden-answer .answer-points { display: none; }
.answer-row.revealed { border-color: #25221d; background: linear-gradient(#444 0%, #222 41%, #070b07 51%, #121612 100%); box-shadow: inset 0 1px 1px #fff1, 0 1px 1px #52250c80; color: #fff; text-shadow: 0 1px 1px #000; animation: open-answer .18s ease-out; }
.revealed .answer-rank { display: none; }
.answer-word { padding: 8px 11px 8px 14px; overflow-wrap: anywhere; font-size: 16px; font-weight: 400; line-height: 1.2; text-transform: uppercase; }
.answer-points { display: flex; align-items: center; justify-content: flex-end; align-self: stretch; padding: 6px 13px 6px 3px; font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
.answer-row.revealed-summary { background: linear-gradient(#585858, #303630 42%, #252b25 52%, #333933); animation: none; }
.answer-form { display: grid; grid-template-columns: minmax(0, 1fr) 107px; gap: 9px; margin-top: 15px; }
.answer-form .button { padding: 9px 8px; }
.answer-form .button > span[aria-hidden] { display: none; }
.answer-waiting { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 10px; text-align: center; font-size: 16px; }
.waiting-dots { display: none; }
.last-answer { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 3px 5px; margin-top: 9px; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.last-answer strong { font-weight: 400; }
.last-answer-text { color: #ffe37b; }
.answer-feedback { color: #ffeb90; font-weight: 700; }
.incorrect .answer-feedback { color: #ffd2c0; }
.game-notice { margin-top: 12px; text-align: center; font-size: 10px; line-height: 1.45; color: #f0d7bc; }
.round-result { margin-top: 18px; padding: 16px 13px; border: 1px solid #562709a6; border-radius: 7px; background: #5e280c2e; box-shadow: inset 0 1px 4px #54200645, 0 1px 0 #f7b97055; text-align: center; }
.round-result h2 { font-size: 21px; line-height: 1.25; font-weight: 400; }
.round-result p { max-width: 480px; margin: 9px auto 14px; font-size: 12px; }
.round-result .button { min-width: 160px; }
.round-result .ready-hint { font-size: 11px; }
.connection-banner { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 8px 0 14px; padding: 10px 12px; border: 1px solid #f0b23d; border-radius: 4px; background: #57230fe6; color: #ffeaba; font-size: 12px; text-align: center; }
.connection-banner b { font: 400 23px/1 'Classic Digital', 'Courier New', monospace; white-space: nowrap; }

.finished { max-width: 610px; margin: auto; padding-bottom: 32px; text-align: center; text-shadow: 0 1px 1px #54230d; }
.finished .eyebrow { margin: 15px 0 10px; }
.result-emblem { display: none; }
.finished h1 { margin: 5px auto 14px; font-size: 34px; line-height: 1.15; font-weight: 400; overflow-wrap: anywhere; }
.finished-description { max-width: 480px; margin: auto; font-size: 13px; color: #f4dfc9; }
.result-scores { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); align-items: center; gap: 16px; margin: 24px 0; padding: 24px; border: 1px solid #54230db0; border-radius: 8px; background: #6b300f2b; box-shadow: inset 0 1px 4px #54200666, 0 1px 0 #f7b97065; }
.result-player { min-width: 0; }
.result-player .avatar { width: 67px; height: 67px; margin: 0 auto 10px; }
.result-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.result-points { margin-top: 9px; font: 400 49px/1.1 'Classic Digital', 'Courier New', monospace; font-variant-numeric: tabular-nums; }
.result-player.winner .result-points { color: #ffe470; }
.score-separator { font-size: 25px; color: #f3d7b9; }
.finished-actions { max-width: 280px; margin: auto; }
.finished-actions .quiet-button { margin-top: 10px; font-size: 12px; }
.finished-actions .ready-hint { font-size: 11px; }
.final-answers { margin: 28px auto 0; max-width: 520px; border-top: 1px solid #e6aa6d55; text-align: left; }
.final-answers summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 12px 0; cursor: pointer; font-size: 12px; list-style: none; }
.final-answers summary::-webkit-details-marker { display: none; }
.final-answers summary span { font-size: 20px; line-height: 1; }
.final-answers[open] summary span { transform: rotate(45deg); }
.final-answers h2 { margin: 8px 0 13px; font-size: 21px; line-height: 1.25; font-weight: 400; }
.final-answers-content > p { margin-top: 13px; font-size: 11px; color: #f1d9c0; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 20px; width: max-content; max-width: calc(100% - 24px); transform: translateX(-50%); padding: 12px 18px; border: 1px solid #e6b77b; border-radius: 5px; background: #54290fed; box-shadow: 0 3px 12px #0005; color: #fff; font-size: 13px; text-align: center; }
.toast.error { background: #7c1e13f2; border-color: #f69a7c; }
.inline-error { margin-bottom: 14px; padding: 10px; border: 1px solid #eea27c; border-radius: 3px; background: #7c2415bd; color: #fff2e6; font-size: 12px; }
dialog { width: calc(100% - 28px); max-width: 570px; max-height: calc(100dvh - 32px); padding: 25px; border: 1px solid #52230c; border-radius: 7px; background: #f4e9d7; box-shadow: 0 12px 50px #0008, inset 0 1px 0 #fff; color: #35261d; font: 14px/1.5 Arial, Helvetica, sans-serif; }
dialog::backdrop { background: #100905b0; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dialog-top .eyebrow { color: #816a53; }
.dialog-top .icon-button:hover { border-color: #a89177; background: #b28e6622; }
dialog h2 { font-size: 28px; line-height: 1.2; font-weight: 400; }
.dialog-intro { margin: 12px 0 21px; color: #6d5944; font-size: 13px; }
.rules-list { margin: 0; padding-left: 22px; }
.rules-list li { padding-left: 5px; margin-bottom: 19px; color: #7f3f19; font-size: 15px; font-weight: 700; }
.rules-list strong { color: #4e2c19; }
.rules-list p { margin-top: 5px; color: #443527; font-size: 13px; font-weight: 400; line-height: 1.6; }
.rules-note { padding-top: 15px; border-top: 1px solid #cdb89d; color: #665340; font-size: 12px; line-height: 1.6; }
.rules-note p + p { margin-top: 8px; }
.reconstruction-note { margin: 15px 0 20px; color: #816c56; font-size: 11px; }
dialog > .button { width: 100%; }
@keyframes open-answer { from { opacity: .6; } to { opacity: 1; } }

@media (max-width: 760px) {
  body { padding: 1px 10px; }
  .classic-cabinet { margin: 14px auto; }
  #app { padding: 0 19px; }
  .game-layout { grid-template-columns: 88px minmax(0, 1fr) 88px; gap: 14px; }
  .game-player .avatar { width: 76px; height: 76px; }
  .player-score { font-size: 27px; letter-spacing: 1px; }
  .game-player-name { font-size: 12px; }
  .errors { padding: 4px 5px; gap: 3px; }
  .error-mark { width: 19px; height: 19px; }
  .answer-word { padding-left: 11px; font-size: 15px; }
  .answer-row { grid-template-columns: minmax(0, 1fr) 47px; }
  .answer-points { font-size: 19px; padding-right: 10px; }
  .question-title { font-size: 27px; }
  .bank-carry { flex-basis: 100%; }
  .game-player { padding-top: 48px; }
  .stage-curtain { width: 65px; }
}

@media (max-width: 600px) {
  body { padding: 0; background: #9f471c; }
  .classic-cabinet { min-height: 100dvh; margin: 0 auto; border: 0; border-radius: 0; display: flex; flex-direction: column; box-shadow: none; }
  .site-header { min-height: 48px; padding: 0 15px; gap: 10px; }
  .header-label { display: none; }
  .header-actions { gap: 9px; }
  .header-actions .icon-button, .header-actions .quiet-button { min-width: 44px; min-height: 44px; }
  #app { width: 100%; flex: 1; padding: 0 15px; }
  .site-footer { gap: 20px; padding-right: 14px; font-size: 11px; }
  .site-footer > :first-child { min-width: 93px; padding: 5px 12px; font-size: 24px; }
  .site-footer button { min-height: 44px; font-size: 12px; }
  .footer-nav { gap: 18px; }
  .stage-curtain { display: none; }
  .landing { max-width: 370px; padding: 10px 8px 20px; }
  .hero { padding: 8px 10px 17px; }
  .classic-logo > span { width: 60px; height: 94px; border-radius: 9px; font-size: 81px; }
  .hero h1 { font-size: 26px; }
  .entry-panel { padding: 18px 19px 16px; }
  .entry-tabs { margin-bottom: 16px; }
  .entry-tab { min-height: 44px; font-size: 12px; }
  .entry-title { font-size: 20px; }
  .entry-description { font-size: 12px; margin-bottom: 17px; }
  .entry-footnote { margin-top: 13px; }
  .page-topline { min-height: 43px; margin-bottom: 8px; }
  .room-leave { min-height: 44px; }
  .lobby { max-width: 470px; padding-bottom: 27px; }
  .lobby-heading h1 { font-size: 27px; }
  .lobby-heading p { font-size: 12px; padding: 0 3px; }
  .invite-bar { flex-wrap: wrap; justify-content: center; gap: 14px; margin: 20px 0 15px; padding: 17px; text-align: center; }
  .invite-bar > div { width: 100%; }
  .invite-actions { gap: 8px; }
  .invite-link { max-width: 100%; font-size: 10px; }
  .invite-bar .button { width: 100%; margin: 0; min-height: 44px; }
  .invite-code { font-size: 31px; }
  .lobby-players { gap: 5px; grid-template-columns: 1fr 23px 1fr; margin-bottom: 16px; }
  .lobby-player { padding: 12px 2px; }
  .lobby-player-name { font-size: 13px; }
  .player-status { font-size: 10px; }
  .lobby-bottom p, .ready-hint { font-size: 11px; }
  .game-shell { padding-bottom: 22px; }
  .game-shell .page-topline { min-height: 40px; }
  .round-steps { margin-bottom: 7px; gap: 6px; }
  .round-step { font-size: 10px; gap: 4px; }
  .round-step-line { width: 12px; }
  .question-block { margin: 10px auto 15px; }
  .question-kicker { font-size: 8px; letter-spacing: .35px; margin-bottom: 6px; }
  .question-title { font-size: 25px; line-height: 1.18; }
  .game-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px 14px; }
  .game-player, .game-player[data-game-player='me'], .game-player[data-game-player='rival'] { display: grid; grid-row: 1; grid-template-columns: 43px minmax(0, 1fr); grid-template-rows: 30px 21px 20px; gap: 1px 7px; align-items: center; padding: 8px; border: 1px solid #62300fac; border-radius: 5px; background: #63270827; box-shadow: inset 0 1px 3px #54200645, 0 1px 0 #e2a26150; }
  .game-player[data-game-player='me'] { grid-column: 1; }
  .game-player[data-game-player='rival'] { grid-column: 2; }
  .game-player.active { border-color: #efd271; box-shadow: inset 0 1px 3px #54200645, 0 0 0 1px #62300f35; }
  .game-player .avatar { grid-column: 1; grid-row: 1 / 4; width: 43px; height: 52px; margin: 0; border-width: 2px; }
  .game-player .avatar-initial { min-width: 15px; height: 15px; font-size: 10px; padding: 1px 2px; }
  .game-player .player-score { grid-column: 2; grid-row: 1; width: 100%; padding: 1px 1px 0; border: 0; background: transparent; box-shadow: none; font-size: 29px; letter-spacing: 1px; text-align: center; }
  .game-player-name { grid-column: 2; grid-row: 2; margin: 0; font-size: 11px; text-align: center; }
  .game-player.active .game-player-name::after { display: none; }
  .errors { grid-column: 2; grid-row: 3; min-height: 0; margin: 0; padding: 0; gap: 4px; border: 0; background: none; box-shadow: none; }
  .error-mark { width: 14px; height: 14px; }
  .game-center { grid-column: 1 / -1; grid-row: 2; }
  .board-toolbar { min-height: 31px; margin-bottom: 5px; }
  .bank { gap: 3px 6px; }
  .bank-label { font-size: 11px; }
  .bank-value { font-size: 26px; }
  .bank-carry { flex-basis: auto; font-size: 9px; }
  .turn-status { font-size: 11px; gap: 7px; }
  .turn-label { max-width: 130px; }
  .timer { font-size: 29px; }
  .answer-row { min-height: 46px; grid-template-columns: minmax(0, 1fr) 51px; }
  .answer-word { padding: 9px 11px; font-size: 15px; }
  .answer-points { padding-right: 12px; font-size: 21px; }
  .answer-rank { font-size: 24px; }
  .answer-form { grid-template-columns: minmax(0, 1fr) 97px; gap: 8px; margin-top: 13px; }
  .answer-form .input { padding: 10px; min-height: 46px; }
  .answer-form .button { min-height: 46px; font-size: 13px; }
  .answer-waiting { font-size: 15px; margin-top: 9px; }
  .last-answer { font-size: 11px; }
  .game-notice { margin-top: 10px; font-size: 10px; }
  .round-result { padding: 15px 12px; }
  .round-result h2 { font-size: 21px; }
  .round-result .button { width: 100%; }
  .connection-banner { padding: 9px; font-size: 11px; }
  .finished { padding-bottom: 25px; }
  .finished h1 { font-size: 29px; }
  .finished-description { font-size: 12px; }
  .result-scores { gap: 8px; margin: 21px 0; padding: 20px 10px; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); }
  .result-name { font-size: 12px; }
  .result-points { font-size: 45px; }
  .final-answers h2 { font-size: 20px; }
  dialog { padding: 20px; }
  dialog h2 { font-size: 26px; }
  .dialog-top .icon-button { width: 44px; height: 44px; }
}

@media (max-width: 370px) {
  #app { padding: 0 11px; }
  .site-header { padding: 0 11px; }
  .site-footer { gap: 14px; padding-right: 10px; }
  .site-footer > :first-child { min-width: 82px; font-size: 22px; padding: 5px 9px; }
  .footer-nav { gap: 12px; }
  .landing { padding-left: 5px; padding-right: 5px; }
  .entry-panel { padding: 17px 15px; }
  .entry-tab { font-size: 11px; }
  .game-layout { gap: 11px 9px; }
  .game-player, .game-player[data-game-player='me'], .game-player[data-game-player='rival'] { grid-template-columns: 34px minmax(0, 1fr); gap: 1px 5px; padding: 7px 6px; }
  .game-player .avatar { width: 34px; height: 45px; }
  .game-player .player-score { font-size: 27px; letter-spacing: 0; }
  .game-player-name { font-size: 10px; }
  .question-title { font-size: 23px; }
  .round-step { font-size: 9px; }
  .round-steps { gap: 5px; }
  .round-step-line { width: 8px; }
  .bank-carry { flex-basis: 100%; }
  .answer-word { font-size: 14px; }
  .answer-form { grid-template-columns: minmax(0, 1fr) 86px; gap: 7px; }
  .answer-form .button { font-size: 12px; }
  .lobby-heading h1 { font-size: 25px; }
}

.telegram-root { height: 100%; overflow: hidden; overscroll-behavior: none; }
body.in-telegram {
  padding: 0;
  height: var(--game-viewport-height, 100dvh);
  min-height: 0;
  overflow: hidden;
  background: #8b391a;
}
.in-telegram .classic-cabinet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: var(--game-viewport-height, 100dvh);
  min-height: 0;
  container-type: size;
  container-name: game-window;
  margin: 0;
  padding-top: max(var(--game-safe-top, 0px), env(safe-area-inset-top, 0px));
  padding-right: max(var(--game-safe-right, 0px), env(safe-area-inset-right, 0px));
  padding-bottom: max(var(--game-safe-bottom, 0px), env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--game-safe-left, 0px), env(safe-area-inset-left, 0px));
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.in-telegram #app { flex: 1; width: 100%; min-height: 0; }
.in-telegram .site-header, .in-telegram .site-footer { flex: 0 0 45px; min-height: 45px; }
.in-telegram .stage-curtain { display: none; }
.in-telegram .toast { bottom: calc(15px + max(var(--game-safe-bottom, 0px), env(safe-area-inset-bottom, 0px))); }
.in-telegram dialog { max-height: calc(var(--game-viewport-height, 100dvh) - 32px - var(--game-safe-top, 0px) - var(--game-safe-bottom, 0px)); }

/* Each screen uses the remaining height; the board yields space to its controls. */
.in-telegram #app > section { height: 100%; min-height: 0; width: 100%; padding-bottom: 8px; }
.in-telegram .page-topline { flex-shrink: 0; min-height: 44px; margin: 0; }
.in-telegram .landing { display: flex; flex-direction: column; justify-content: center; padding-top: 6px; }
.in-telegram .hero { padding: 4px 10px 12px; }
.in-telegram .classic-logo > span { height: clamp(40px, 11cqh, 94px); width: clamp(30px, 7cqh, 60px); font-size: clamp(36px, 9.5cqh, 81px); }
.in-telegram .hero h1 { font-size: clamp(20px, 3.4cqh, 26px); }
.in-telegram .entry-panel { padding: 14px 18px; }
.in-telegram .entry-tabs { margin-bottom: 12px; }
.in-telegram .entry-description { margin: 6px 0 12px; }
.in-telegram .form-field { margin-bottom: 12px; }
.in-telegram .lobby { display: flex; flex-direction: column; gap: clamp(4px, 1.3cqh, 12px); }
.in-telegram .lobby-heading { padding: 0; flex-shrink: 0; }
.in-telegram .lobby-heading h1 { font-size: clamp(22px, 3.8cqh, 28px); }
.in-telegram .lobby-heading p { margin: 5px auto 0; font-size: 12px; }
.in-telegram .invite-bar { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; margin: 0; padding: 12px; text-align: center; flex-shrink: 0; }
.in-telegram .invite-details { flex: none; }
.in-telegram .invite-code { font-size: 29px; line-height: 1.1; }
.in-telegram .invite-link { display: none; }
.in-telegram .invite-actions { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
.in-telegram .copy-invitation > span { display: none; }
.in-telegram .invite-actions .button { min-height: 44px; }
.in-telegram .lobby-players { flex: 1; min-height: 85px; margin: 0; align-content: center; }
.in-telegram .lobby-player { padding: 4px 2px; }
.in-telegram .lobby-player .avatar { width: clamp(42px, 8cqh, 68px); height: clamp(42px, 8cqh, 68px); }
.in-telegram .lobby-player-name { margin-top: 6px; }
.in-telegram .player-status { margin-top: 3px; }
.in-telegram .lobby-bottom { flex-shrink: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 auto; text-align: center; }
.in-telegram .lobby-bottom button[data-action='ready'] { flex-shrink: 0; width: clamp(68px, 12cqh, 100px); height: clamp(68px, 12cqh, 100px); min-height: 68px; padding: 8px 4px; font-size: 17px; }
.in-telegram .lobby-bottom p { margin: 0; font-size: 11px; }
.in-telegram .game-shell { display: flex; flex-direction: column; }
.in-telegram .round-steps { min-height: 23px; margin: 0 0 4px; flex-shrink: 0; }
.in-telegram .question-block { flex-shrink: 0; margin: 5px 0 10px; }
.in-telegram .question-kicker { display: none; }
.in-telegram .question-title { font-size: clamp(18px, 3cqh, 26px); line-height: 1.12; }
.in-telegram .game-layout { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.in-telegram .game-center { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.in-telegram .board-toolbar { flex-shrink: 0; min-height: 28px; margin-bottom: 3px; }
.in-telegram .timer-track { flex-shrink: 0; margin-bottom: 4px; }
.in-telegram .answer-board { flex: 1; min-height: 0; grid-template-rows: repeat(6, minmax(0, 1fr)); }
.in-telegram .answer-row { min-height: 0; grid-template-rows: minmax(0, 1fr); }
.in-telegram .hidden-answer .answer-rank { padding: 0; font-size: clamp(17px, 3cqh, 25px); }
.in-telegram .answer-word { padding: 2px 8px; font-size: clamp(12px, 2cqh, 16px); line-height: 1.1; }
.in-telegram .answer-points { padding: 2px 8px 2px 2px; font-size: clamp(16px, 2.6cqh, 21px); }
.in-telegram .answer-form { flex-shrink: 0; margin-top: 6px; }
.in-telegram .answer-form .input, .in-telegram .answer-form .button { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.in-telegram .answer-waiting { flex-shrink: 0; min-height: 44px; margin: 4px 0 0; }
.in-telegram .last-answer { flex-shrink: 0; margin-top: 4px; font-size: 10px; line-height: 1.2; }
.in-telegram .game-notice { display: none; }
.in-telegram .round-result { flex-shrink: 0; margin-top: 6px; padding: 6px 10px; }
.in-telegram .round-result h2 { font-size: 18px; }
.in-telegram .round-result p { margin: 3px auto 6px; font-size: 11px; line-height: 1.2; }
.in-telegram .round-result .ready-hint { margin-top: 4px; font-size: 10px; }
.in-telegram .connection-banner { flex-shrink: 0; padding: 5px 8px; margin: 3px 0; font-size: 11px; }
.in-telegram .finished { position: relative; display: flex; flex-direction: column; }
.in-telegram .finished .eyebrow { margin: 7px 0 4px; }
.in-telegram .finished h1 { margin: 4px 0 8px; font-size: clamp(23px, 4cqh, 32px); }
.in-telegram .result-scores { flex: 1; min-height: 100px; max-height: 240px; margin: 12px 0; padding: 10px; }
.in-telegram .result-player .avatar { width: clamp(32px, 7cqh, 67px); height: clamp(32px, 7cqh, 67px); margin-bottom: 5px; }
.in-telegram .result-points { margin-top: 4px; font-size: clamp(32px, 6cqh, 49px); }
.in-telegram .finished-actions { width: 100%; flex-shrink: 0; }
.in-telegram .finished-actions .quiet-button { margin: 0; }
.in-telegram .finished-actions .ready-hint { margin-top: 5px; }
.in-telegram .final-answers { flex-shrink: 0; width: 100%; margin-top: 4px; }
.in-telegram .final-answers[open] { position: absolute; inset: 0 0 8px; max-width: none; margin: 0; padding: 8px 12px; display: flex; flex-direction: column; border: 1px solid #66321c; border-radius: 6px; background: #ad501f url('/classic/wood.jpg') center / cover; z-index: 1; }
.in-telegram .final-answers[open] summary { flex-shrink: 0; }
.in-telegram .final-answers-content { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.in-telegram .final-answers-content h2 { font-size: clamp(18px, 3cqh, 23px); margin: 4px 0 10px; }
.in-telegram .final-answers-content > p { flex-shrink: 0; margin: 8px 0 0; }
.in-telegram .finished:has(.final-answers[open]) > :not(.final-answers) { visibility: hidden; }

@media (max-width: 600px) {
  .in-telegram .game-layout { grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
  .in-telegram .game-player { grid-template-rows: 25px 17px 16px; padding: 4px 6px; gap: 0 5px; }
  .in-telegram .game-player .player-score { font-size: 25px; }
  .in-telegram .game-player .avatar { width: 34px; height: 43px; }
  .in-telegram .game-player-name { font-size: 10px; }
  .in-telegram.is-round-end .round-steps { display: none; }
  .in-telegram.is-round-end .game-player { grid-template-rows: 24px 16px; }
  .in-telegram.is-round-end .game-player .errors { display: none; }
  .in-telegram.is-round-end .game-player .avatar { grid-row: 1 / 3; height: 34px; }
}

@container game-window (max-height: 660px) {
  .in-telegram .site-footer { display: none; }
  .in-telegram .lobby-heading p { display: none; }
  .in-telegram .lobby { gap: 6px; }
  .in-telegram .lobby-bottom { flex-direction: row; gap: 14px; text-align: left; }
  .in-telegram .entry-footnote { display: none; }
  .in-telegram .hero { padding-bottom: 8px; }
  .in-telegram .entry-description { margin: 4px 0 8px; }
  .in-telegram .finished .eyebrow { display: none; }
  .in-telegram .question-block { margin: 4px 0 6px; }
  .in-telegram .last-answer [data-last-message] { display: none; }
  .in-telegram .answer-row { grid-template-columns: minmax(0, 1fr) 35px; }
  .in-telegram .answer-word { padding-top: 1px; padding-bottom: 1px; }
  .in-telegram .answer-points { padding: 2px 6px 2px 2px; font-size: 16px; }
  .in-telegram .round-result { padding: 4px 8px; }
  .in-telegram .round-result .ready-hint { line-height: 1.2; }
}

/* A phone keyboard gets its own layout, without shrinking inputs or buttons. */
.in-telegram.keyboard-open .site-header, .in-telegram.keyboard-open .site-footer,
.in-telegram.keyboard-open .hero, .in-telegram.keyboard-open .entry-title,
.in-telegram.keyboard-open .entry-description, .in-telegram.keyboard-open .entry-footnote,
.in-telegram.keyboard-open .page-topline, .in-telegram.keyboard-open .round-steps,
.in-telegram.keyboard-open .game-player, .in-telegram.keyboard-open .last-answer { display: none; }
.in-telegram.keyboard-open .landing { justify-content: center; padding: 4px 0; }
.in-telegram.keyboard-open .entry-panel { padding: 8px 12px; }
.in-telegram.keyboard-open .entry-tabs { margin-bottom: 6px; }
.in-telegram.keyboard-open .form-field { margin-bottom: 6px; }
.in-telegram.keyboard-open .field-label { margin-bottom: 3px; }
.in-telegram.keyboard-open .question-block { margin: 4px 0; }
.in-telegram.keyboard-open .game-shell { position: relative; padding-bottom: 4px; }
.in-telegram.keyboard-open .question-block { padding-right: 36px; }
.in-telegram.keyboard-open .question-title { font-size: 17px; }
.in-telegram.keyboard-open .board-toolbar { position: absolute; right: 0; top: 4px; min-height: 24px; margin: 0; }
.in-telegram.keyboard-open .board-toolbar .bank,
.in-telegram.keyboard-open .turn-label, .in-telegram.keyboard-open .timer-track { display: none; }
.in-telegram.keyboard-open .timer { font-size: 24px; }
.in-telegram.keyboard-open .game-layout { display: flex; }
.in-telegram.keyboard-open .game-center { width: 100%; }
.in-telegram.keyboard-open .answer-word { padding: 1px 6px; font-size: 12px; }
.in-telegram.keyboard-open .answer-rank { font-size: 17px; }
.in-telegram.keyboard-open .answer-row { border-radius: 2px; }
.in-telegram.keyboard-open .answer-board { gap: 2px; }

@container game-window (max-height: 430px) and (min-width: 600px) {
  .in-telegram .landing { display: grid; max-width: 750px; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-content: center; }
  .in-telegram .entry-title, .in-telegram .entry-description { display: none; }
  .in-telegram .lobby { display: grid; max-width: 790px; grid-template-columns: 1fr 1fr; grid-template-rows: 44px auto minmax(0, 1fr) auto; grid-template-areas: 'top top' 'title title' 'invite players' 'invite ready'; gap: 5px 20px; }
  .in-telegram .lobby > .page-topline { grid-area: top; }
  .in-telegram .lobby-heading { grid-area: title; }
  .in-telegram .invite-bar { grid-area: invite; align-self: center; }
  .in-telegram .lobby-players { grid-area: players; min-height: 75px; }
  .in-telegram .lobby-bottom { grid-area: ready; }
  .in-telegram .game-shell { position: relative; }
  .in-telegram .game-shell > .page-topline { position: absolute; inset: -45px 140px auto 100px; }
  .in-telegram .game-shell .round-steps { display: none; }
  .in-telegram .round-result { display: grid; grid-template-columns: minmax(0, 1fr) 130px; column-gap: 8px; text-align: left; }
  .in-telegram .round-result h2, .in-telegram .round-result p { grid-column: 1; }
  .in-telegram .round-result .button { grid-column: 2; grid-row: 1 / 3; min-width: 0; align-self: center; }
  .in-telegram .round-result .ready-hint { grid-column: 1 / -1; }
  .in-telegram .finished .result-scores { margin: 6px 0; padding: 4px 10px; }
  .in-telegram .finished .result-player .avatar { display: none; }
  .in-telegram .finished { max-width: 750px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 44px auto minmax(0, 1fr) auto; gap: 4px 24px; }
  .in-telegram .finished > .page-topline { grid-column: 1 / -1; grid-row: 1; }
  .in-telegram .finished h1 { grid-column: 1; grid-row: 2; }
  .in-telegram .finished-description { grid-column: 1; grid-row: 3; margin: 0; }
  .in-telegram .finished .result-scores { grid-column: 2; grid-row: 2 / 4; }
  .in-telegram .finished-actions { grid-column: 1; grid-row: 4; }
  .in-telegram .finished .final-answers { grid-column: 2; grid-row: 4; align-self: end; }
  .in-telegram .finished .final-answers[open] { grid-area: 1 / 1 / -1 / -1; align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
