:root {
  --paper: #f7f6ee;
  --white: #fffdf6;
  --ink: #152c21;
  --muted: #58655a;
  --edge: #dddcd0;
  --forest: #11372a;
  --lime: #d6f64d;
  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #7775cf; outline-offset: 4px; }
.frame { width: min(1224px, calc(100% - 88px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--edge); background: #fbfaf3; }
.topbar-inner, .footer { min-height: 75px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; gap: 11px; align-items: center; font: 800 23px/.96 var(--display); letter-spacing: -.06em; }
.brand img { object-fit: contain; }
.brand small { display: block; margin-top: 6px; color: #5d695c; font: 800 8px/1 "DM Sans", sans-serif; letter-spacing: .19em; }
nav, .actions { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
nav { gap: 22px; }
.nav-link { border: 0; background: transparent; font-weight: 750; font-size: 14px; padding: 9px 3px; }
.nav-link.current { box-shadow: 0 2px #71972f; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 45px;
  border: 1px solid transparent; border-radius: 9px; padding: 0 16px; font-weight: 800;
  font-size: 14px; white-space: nowrap; transition: background .18s, transform .18s, box-shadow .18s;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { opacity: .5; }
.button span { font-size: 17px; }
.outline { border-color: #cbd0bf; background: transparent; }
.outline:hover { background: #eeefde; }
.lime { background: var(--lime); color: #172a11; box-shadow: 0 3px #839929; }
.lime:hover { background: #e4ff7e; }
.glass { background: #ffffff10; border-color: #ffffff59; color: #fffdf2; }
.glass:hover { background: #ffffff24; }
.dark { background: var(--forest); color: #fffdf4; }
.dark:hover { background: #205642; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 28px; min-height: 398px;
  border-radius: 24px; display: grid; align-items: center; color: #fffdf2; background: #08251c;
  background-image: linear-gradient(90deg, #061f17 0%, #071e17ee 24%, #09221b55 50%, transparent 72%), url('/assets/wallpaper.webp');
  background-size: cover, auto 165%; background-position: center, right 54%; background-repeat: no-repeat;
  border: 1px solid #14372b;
}
.hero-copy { padding: 42px 54px 46px; max-width: 600px; }
.eyebrow { margin: 0 0 12px; font-size: 10px; letter-spacing: .17em; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.eyebrow span { font-size: 16px; line-height: .9; }
.hero .eyebrow, .hero em { color: var(--lime); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.052em; line-height: .97; }
h1 { font-size: clamp(57px, 6.3vw, 99px); }
h1 em { font-style: normal; }
.hero-copy > p:not(.eyebrow) { color: #eeefdc; margin: 18px 0 22px; line-height: 1.55; font-size: 15px; }
.catalog { margin: 35px 0 36px; scroll-margin-top: 15px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 13px; margin-bottom: 19px; }
.section-heading .eyebrow { color: #4b6a43; margin-bottom: 7px; }
h2 { font-size: clamp(32px, 4vw, 51px); }
.section-heading > p { margin: 0 0 3px; font-size: 14px; color: var(--muted); }
.game-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; }
.game-card { overflow: hidden; border-radius: 17px; background: var(--white); border: 1px solid #dcd9ca; box-shadow: 0 3px #e7e4d6; }
.card-art { position: relative; height: clamp(145px, 15vw, 209px); overflow: hidden; background: var(--tint); }
.card-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; }
.card-art small {
  position: absolute; top: 11px; left: 11px; border: 1px solid #ffffffad; border-radius: 6px;
  background: #fffdf0e8; font-weight: 850; font-size: 9px; letter-spacing: .10em; padding: 5px 8px;
}
.card-copy { padding: 15px 17px 17px; }
h3 { font-size: 28px; }
.card-copy p { color: var(--muted); margin: 7px 0 14px; font-size: 14px; min-height: 20px; }
.card-copy .button { width: 100%; justify-content: space-between; min-height: 39px; background: var(--tint); padding-inline: 12px; }
.card-copy .button:hover { filter: saturate(1.4); }
.footer { border-top: 1px solid var(--edge); min-height: 67px; color: var(--muted); }
.footer span { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 800 15px var(--display); }
.footer img { object-fit: contain; }
dialog {
  width: min(448px, calc(100% - 30px)); padding: 30px; border: 1px solid var(--edge);
  border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: 0 20px 80px #12231a44;
}
dialog::backdrop { background: #081b15a6; backdrop-filter: blur(4px); }
dialog h2 { font-size: 37px; margin-right: 26px; }
dialog p { color: var(--muted); }
.close { position: absolute; top: 12px; right: 12px; border: 0; border-radius: 50%; background: #edede2; width: 34px; height: 34px; font-size: 23px; line-height: 1; }
.mode { width: 100%; text-align: left; border: 1px solid var(--edge); border-radius: 12px; background: #f1f3e6; padding: 13px 16px; margin-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 4px; }
.mode:hover { background: #e5efc4; }
.mode b { font-size: 16px; }
.mode small { color: var(--muted); grid-column: 1; }
.mode span { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.lobby-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 14px 0; }
.lobby-tabs .button { justify-content: center; min-width: 0; padding-inline: 6px; text-align: center; }
.lobby-tabs .button[aria-pressed="true"] { background: #fde379; color: #261b24; }
.lobby-page { max-width: 700px; margin: 0 auto; padding: 20px 0; }
.live-lobby-header, .lobby-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.live-lobby-header h1 { margin: 0 0 6px; font-size: clamp(36px, 9vw, 60px); }
#lobby-wallet { color: var(--muted); font-size: 13px; }
.lobby-card { padding: 16px; border-radius: 18px; background: var(--white); border: 1px solid var(--edge); }
.lobby-card h2 { font-size: 24px; margin: 0; }
.lobby-card input { width: 100%; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; }
.lobby-card #lobby-results { margin: 10px 0; }
.lobby-empty { padding: 6px 0; color: var(--muted); }
.rankings { padding: 0; list-style: none; }
.rankings li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--edge); }
.rankings li > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #ffdf72; color: #2b2140; font-weight: 800; }
.rankings b { overflow-wrap: anywhere; }
.lobby-shortcuts, .table-social { margin: 12px 0; }
.lobby-invite { display: flex; align-items: center; gap: 7px; }
.lobby-invite .mode { margin-block: 4px; }
.lobby-invite > .button { flex: 0 0 auto; }
#lobby-inbox h3, #people-results h3 { margin-top: 14px; }
.player-result { display: flex; align-items: center; gap: 6px; padding: 9px 0; border-bottom: 1px solid var(--edge); }
.player-result div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.player-result small { display: block; color: var(--muted); }
.player-result .button { padding-inline: 9px; }
.chat-log { display: grid; align-content: start; gap: 7px; max-height: min(290px, 42vh); min-height: 100px; overflow-y: auto; overscroll-behavior: contain; margin: 12px 0; padding: 10px; border-radius: 14px; border: 1px solid var(--edge); }
.chat-message { justify-self: start; max-width: 90%; padding: 6px 10px; border-radius: 9px; background: var(--white); overflow-wrap: anywhere; }
.chat-message.mine { justify-self: end; }
.chat-message p { margin: 3px 0 0; white-space: pre-wrap; }
.bingo-finish { position: relative; isolation: isolate; overflow: hidden; margin: 12px 0; padding: 15px; border-radius: 16px; background: #122d62; color: #fff; }
.bingo-finish h2 { margin: 0 0 8px; }
.bingo-victory { border: 2px solid #ffe67b; background: radial-gradient(ellipse at 50% 0%, #9f41bc, #3c1676 75%); }
.bingo-victory h2 { font-size: clamp(34px, 10vw, 56px); color: #ffe77c; text-shadow: 0 4px #682577; }
.bingo-confetti { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bingo-confetti i { position: absolute; left: var(--x); top: -14px; width: 8px; height: 12px; border-radius: 2px; background: #ffdf53; animation: bingo-sprinkle 1.9s calc(var(--i) * 27ms) both; }
.bingo-confetti i:nth-child(3n) { background: #f674fd; }
.bingo-confetti i:nth-child(3n + 1) { background: #59edff; }
@keyframes bingo-sprinkle { from { transform: translateY(-16px) rotate(0); opacity: 1; } to { transform: translateY(190px) rotate(460deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bingo-confetti { display: none; } }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 800; margin-block: 16px; }
.field input, .field select { padding: 12px; border: 1px solid #a5ae9e; border-radius: 8px; background: #fffef9; color: var(--ink); }
.field input { text-transform: uppercase; letter-spacing: .2em; }
.form-error, .error { min-height: 20px; color: #9c321e; font-size: 13px; }
#table { padding: 27px 0 40px; min-height: 70vh; }
.table-header { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 19px 0 21px; }
.table-header h1 { font-size: clamp(42px, 6vw, 74px); }
.table-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 300px); gap: 20px; }
.surface, .side-panel { background: var(--white); border: 1px solid var(--edge); border-radius: 18px; padding: clamp(14px, 3vw, 28px); }
.surface { min-width: 0; text-align: center; }
.status { font: 800 clamp(22px, 4vw, 30px) var(--display); letter-spacing: -.03em; margin: 0 0 15px; }
.status.won { color: #40630b; }
.side-panel { align-self: start; }
.side-panel h3 { font-size: 24px; margin-bottom: 12px; }
.side-panel p, .side-panel li { color: var(--muted); line-height: 1.55; font-size: 14px; }
.side-panel ol { padding-left: 20px; }
.side-panel .button { width: 100%; margin: 8px 0; }
.room-code { display: block; font-family: monospace; font-size: 26px; letter-spacing: .15em; font-weight: bold; }
.room-section { border-bottom: 1px solid var(--edge); padding-bottom: 16px; margin-bottom: 20px; }
.player-line { display: flex; align-items: center; gap: 9px; margin: 9px 0; font-size: 14px; }
.player-line strong { font-weight: 850; }
.pip { border-radius: 50%; background: #ff8f72; width: 13px; height: 13px; border: 1px solid #2223; }
.pip.p1 { background: #ffc54a; }
.pip.white { background: #fff9e5; }
.pip.black { background: #18352b; }
.connect-board { display: flex; gap: clamp(4px, 1vw, 10px); padding: clamp(8px, 1.5vw, 15px); background: #286453; border-radius: 14px; box-shadow: 0 6px #163b32; max-width: 550px; margin: 0 auto 12px; }
.column { padding: 0; border: 0; flex: 1; min-width: 0; background: none; display: flex; flex-direction: column; gap: clamp(4px, 1vw, 10px); border-radius: 8px; }
.column:hover:not(:disabled) { background: #6ca685; }
.hole { display: block; aspect-ratio: 1; width: 100%; border-radius: 50%; background: #153a31; box-shadow: inset 0 4px 5px #0005, 0 1px #ffffff26; }
.hole.p0, .hole.p1 { background: #ff8b6e; box-shadow: inset 0 0 0 5px #0002, inset 0 3px #fff8; }
.hole.p1 { background: #ffc648; }
.hole.last { animation: land .25s ease-out; }
.hole.line { outline: 3px solid #fff5b2; outline-offset: -4px; }
@keyframes land { from { transform: translateY(-18%) scale(.88); } to { transform: none; } }
.chess-board {
  display: grid; grid-template-columns: repeat(8, 1fr); max-width: 530px; margin: auto;
  overflow: hidden; border-radius: 10px; border: 5px solid #1c4a3c;
}
.square { position: relative; padding: 0; aspect-ratio: 1; border: 0; background: #e8ecd5; display: grid; place-items: center; }
.square.shade { background: #83ad94; }
.square.selected, .square.recent { background: #d3ed75; }
.square:focus-visible { z-index: 1; outline-offset: -3px; }
.square.can-move::after { content: ''; position: absolute; inset: 35%; border-radius: 50%; background: #19392955; pointer-events: none; }
.square.can-move:has(.piece)::after { inset: 5%; border: 3px solid #19392988; background: transparent; }
.piece { font: normal clamp(21px, 5.5vw, 55px)/1 "Segoe UI Symbol", "DejaVu Sans", serif; color: #18352b; pointer-events: none; }
.piece.white { color: #fffbed; -webkit-text-stroke: 1px #28463a; text-shadow: 0 2px 2px #10221866; }
.square small { position: absolute; bottom: 2px; right: 4px; font-size: 9px; opacity: .8; }
.history { max-height: 145px; overflow: auto; }
.bingo-ball {
  display: inline-grid; place-items: center; min-width: 79px; aspect-ratio: 1; padding: 7px;
  border-radius: 50%; background: #ffc657; border: 5px solid #ffda87; box-shadow: 0 4px #c08b39; font: 800 23px var(--display);
}
.call-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 17px; }
.bingo-players { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0; }
.bingo-players button[aria-pressed="true"] { background: #dce9bb; border-color: #9ab978; }
.bingo-card { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; max-width: 365px; margin: 0 auto 16px; padding: 12px; border-radius: 15px; background: #4d3c80; }
.bingo-card b { color: #fffbea; font: 800 20px var(--display); padding: 3px; }
.bingo-cell { border: 0; border-radius: 7px; aspect-ratio: 1; background: #f4edf9; font: 800 clamp(14px, 3vw, 23px) var(--display); }
.bingo-cell:disabled:not(.marked) { color: #5b516e; }
.bingo-cell.called { box-shadow: inset 0 0 0 3px #e9ab3d; background: #fff4d2; }
.bingo-cell.marked { color: #183119; background: #d9f273; }
.bingo-cell.line { outline: 3px solid #fff8d5; outline-offset: -4px; }
.calls { display: flex; gap: 6px; flex-wrap: wrap; }
.calls span { border-radius: 20px; padding: 4px 7px; background: #efece0; font-size: 12px; font-weight: 800; }
.waiting { min-height: 270px; display: grid; place-content: center; text-align: center; }
.waiting img { margin: 0 auto 16px; }
.promotion { display: flex; gap: 7px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1450px) { .hero { min-height: 440px; } }
@media (max-width: 900px) {
  .frame { width: calc(100% - 46px); }
  .hero-copy { padding-inline: 33px; }
  .hero { background-size: cover, auto 130%; }
  .game-cards { gap: 12px; }
  .table-layout { grid-template-columns: minmax(0, 1fr) 215px; gap: 12px; }
}
@media (max-width: 650px) {
  .frame { width: calc(100% - 28px); }
  .topbar-inner { min-height: 63px; }
  .brand { font-size: 19px; gap: 7px; }
  .brand img { width: 33px; height: 33px; }
  nav .nav-link { display: none; }
  nav .button { min-height: 38px; padding-inline: 11px; }
  .hero { min-height: 510px; margin-top: 14px; border-radius: 18px; align-items: end; background-position: center, 68% top; background-size: cover, auto 73%; background-image: linear-gradient(0deg, #08251c 34%, #08251cda 44%, transparent 72%), url('/assets/wallpaper.webp'); }
  .hero-copy { padding: 25px 21px 28px; }
  .hero-copy > p:not(.eyebrow) { margin: 12px 0 16px; }
  .hero h1 { font-size: clamp(47px, 12vw, 70px); }
  .wide-only { display: none; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .game-cards, .table-layout { grid-template-columns: 1fr; }
  .card-art { height: 176px; }
  .table-header { align-items: start; }
  .footer { min-height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.table-toolbar { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap }
.table-toolbar .button { min-height:42px }
.table-fullscreen .topbar,.table-fullscreen .bottom-nav,.table-fullscreen .footer,
.table-fullscreen .table-header,.table-fullscreen .side-panel { display:none }
.table-fullscreen:not(.chess-focus) .game-meta-row { display: flex; }
.game-meta-row { align-items: center; gap: 8px; }
.game-meta-row .table-social { margin: 0; }
.lobby-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lobby-tabs .button { display: grid; gap: 3px; align-content: center; min-height: 54px; line-height: 1.05; }
.lobby-tabs i { font: 800 16px/1 var(--display); }
.lobby-notice { margin: 10px 0; padding: 9px 12px; border: 1px solid #e6ad58; border-radius: 13px; background: #ffecbb; color: #44290f; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lobby-notice button { min-width: 32px; color: inherit; }
.chat-title { display: flex; align-items: center; gap: 10px; }
.chat-title h2, .chat-title p { margin: 0; }
.chat-title p { margin-top: 3px; font-size: 13px; }
.chat-symbol { border-radius: 15px 15px 15px 5px; background: #8ed0e9; color: #13295b; padding: 8px; font-weight: 900; letter-spacing: 1px; }
.chat-message header { display: flex; align-items: baseline; gap: 10px; }
.chat-message time { opacity: .75; font-size: 11px; white-space: nowrap; }
.chat-empty { margin: auto; padding: 12px; text-align: center; }
#chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
#chat-form .field, #chat-form .form-error { margin: 0; }
#chat-form .form-error { grid-column: 1 / -1; }
.rematch-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 11px; border-radius: 13px; }
.rematch-panel p, .rematch-panel .actions { margin: 0; }
.rematch-panel p { flex: 1 1 100%; }
.hangman-art { min-height: 105px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.card-art:has(.hangman-art) { min-height: 165px; background: radial-gradient(#bbffd8, #79cfa9); }
.hangman-art b { display: grid; place-items: center; width: clamp(26px, 8vw, 70px); aspect-ratio: 1; border: 2px solid #fff6be;
  border-radius: 20%; font: 900 clamp(15px, 5vw, 44px)/1 var(--display); color: #34204e; background: linear-gradient(#fff1a1, #f0a844);
  box-shadow: 0 4px #955f29, 0 8px 13px #162b4055; transform: rotate(-10deg); }
.hangman-art b:nth-child(2) { transform: translateY(-12%) rotate(7deg); background: linear-gradient(#fbd2ff, #c791f0); box-shadow: 0 4px #754aa0, 0 8px 13px #162b4055; }
.hangman-art b:nth-child(3) { transform: rotate(13deg); background: linear-gradient(#beffdf, #5dd3ba); box-shadow: 0 4px #39856c, 0 8px 13px #162b4055; }
.word-game { max-width: 540px; margin-inline: auto; }
.word-scene { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 135px; padding: 10px; border-radius: 16px; color: #fff7d7; background: radial-gradient(ellipse at 35% 20%, #575cb0, #262452 72%); }
.word-clue { display: grid; gap: 4px; }
.word-clue strong { font-size: clamp(19px, 6vw, 26px); }
.word-clue span, .word-clue b { font-size: 12px; color: #e7dbff; }
.word-figure { position: relative; width: 92px; height: 100px; flex: 0 0 92px; border-left: 5px solid #ffcc71; border-top: 5px solid #ffcc71; border-radius: 6px 6px 0 0; }
.word-figure::before { position: absolute; inset: auto auto 0 -14px; content: ""; width: 61px; height: 5px; border-radius: 5px; background: #ffcc71; }
.word-figure::after { position: absolute; inset: 0 21px auto auto; content: ""; width: 3px; height: 16px; background: #ffcc71; }
.word-figure i { position: absolute; background: #93edff; border-radius: 6px; }
.word-figure .head { top: 16px; right: 13px; width: 19px; height: 19px; border: 3px solid #93edff; border-radius: 50%; background: transparent; }
.word-figure .torso { top: 35px; right: 21px; width: 3px; height: 29px; }
.word-figure :is(.arm-left, .arm-right, .leg-left, .leg-right) { width: 3px; height: 20px; transform-origin: top; }
.word-figure .arm-left, .word-figure .arm-right { top: 41px; right: 21px; }
.word-figure .leg-left, .word-figure .leg-right { top: 61px; right: 21px; }
.word-figure .arm-left, .word-figure .leg-left { transform: rotate(38deg); }
.word-figure .arm-right, .word-figure .leg-right { transform: rotate(-38deg); }
.word-mask { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 16px 0; }
.word-mask b { display: grid; place-items: center; width: clamp(23px, 7vw, 37px); aspect-ratio: 1; border-radius: 6px; border-bottom: 3px solid #a16a30; background: #fff0c6; color: #2f2257; font: 850 clamp(16px, 4vw, 23px)/1 var(--display); }
.word-answer { text-align: center; }
.word-keys { display: grid; gap: 6px; margin-bottom: 8px; }
.word-keys > div { display: flex; justify-content: center; gap: 3px; }
.word-keys button { display: grid; place-items: center; flex: 0 1 9%; min-width: 0; min-height: 42px; padding: 0; border-radius: 7px; border: 1px solid #8bbcf7; background: #294b8c; color: white; font-weight: 850; }
.word-keys button.right-letter { background: #28795b; opacity: 1; }
.word-keys button.wrong-letter { background: #83354d; opacity: 1; }
.table-fullscreen main.frame { width:min(100%,1000px); padding:6px 8px 0 }
.table-fullscreen #table { padding:0 }
.table-fullscreen .table-layout { display:block; margin-top:7px }
.table-fullscreen .surface { padding:8px 0; border:0; background:transparent }
.table-fullscreen .chess-board { max-width:min(100%, calc(100dvh - 160px), 720px) }
.table-fullscreen .connect-board { max-width:min(100%, calc((100dvh - 120px) * 1.16), 720px) }
.table-fullscreen .piece { font-size:clamp(24px,min(9vw,8vh),64px) }
.start-duel { margin:14px auto 0; min-width:150px }
.surface > .text-button { display:block; margin:5px auto 0; padding:9px 12px; background:transparent; border:0; text-decoration:underline; font:inherit; font-size:13px }
.chess-seats { display:grid; grid-template-columns:1fr 1fr; gap:8px; max-width:540px; margin:0 auto 10px }
.chess-seat { display:flex; align-items:center; text-align:left; gap:8px; min-width:0; border:1px solid #d8dfd0; border-radius:10px; background:#f4f5e9; padding:7px 9px }
.chess-seat .pip { width:18px; height:18px; flex:none }
.chess-seat b,.chess-seat small { display:block }
.chess-seat b { font-size:14px }
.chess-seat small { font-size:11px; color:#465447; overflow-wrap:anywhere }
.chess-seat.active-seat { background:#eaf3c3; border-color:#8ca94d }
.chess-board .square { background:#e9e5cd }
.chess-board .square.shade { background:#84a69a }
.chess-board .square.selected { background:#f1d371 }
.chess-board .square.recent { background:#c3d26e }
.chess-board .piece { color:#151b2b; -webkit-text-stroke:1px #151b2b; text-shadow:0 1px #f6f3e4 }
.chess-board .piece.white { color:#fff8dc; -webkit-text-stroke:1px #364034; text-shadow:0 2px 2px #2231288a }
.pip.black { background:#151b2b }
.pip.white { background:#fff8dc; border-color:#8a826a }
.elo { font-size:11px; color:#536449 }
.wallet-strip,.round-result { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; padding:10px 12px; border-radius:10px; background:#e9efcc; color:#25422a; margin:12px 0; font-size:13px }
.round-result { justify-content:center }
.lobby-create,.lobby-filters { margin:9px 0 }
.lobby-create .button,.lobby-filters .button { min-height:36px; padding-inline:9px }
.leaderboard { margin:12px 0 }
.leaderboard li { margin:5px 0 }
.leaderboard li strong { margin-left:8px }
.live-bingo { padding:8px; overflow:hidden; background:#faf5ff }
.live-bingo > .status { margin:9px 0 12px; color:#392762 }
.bingo-stage {
  position:relative; isolation:isolate; color:#fffbff; overflow:hidden; border-radius:15px; padding:13px 12px 11px;
  background:radial-gradient(ellipse at 50% 60%,#7550b8 0%,#442674 46%,#251638 100%);
  box-shadow:inset 0 0 0 1px #b89bed6b;
}
.bingo-stage::before {
  position:absolute; z-index:-1; inset:0; content:''; opacity:.4;
  background:radial-gradient(circle at 50% 50%,#ecd7ff 1px,transparent 2px) 0 0/24px 24px;
  mask-image:radial-gradient(ellipse at center,transparent 30%,black 100%);
}
.bingo-stage-top { display:flex; align-items:center; justify-content:space-between; gap:5px; font-size:10px; font-weight:900; letter-spacing:.08em }
.bingo-stage-top span { background:#2b164ba3; border:1px solid #aa80df75; border-radius:7px; padding:5px 8px }
.bingo-countdown { font:800 17px var(--display); margin:10px auto 7px; color:#fff2b6; font-variant-numeric:tabular-nums }
.bingo-drum { display:grid; place-items:center; height:116px; margin:auto; background:radial-gradient(ellipse,#a676d744 4%,transparent 63%); perspective:300px }
.live-ball,.mini-ball { --ball:#ad89ff; --shadow:#3c236f; display:grid; place-items:center; border-radius:50%; background:radial-gradient(circle at 34% 21%,#ffffffee 0%,var(--ball) 30%,var(--ball) 48%,var(--shadow) 100%); box-shadow:0 9px 15px #1c0b3c99 }
.live-ball { width:100px; height:100px; animation:roll-in .48s cubic-bezier(.18,.66,.21,1.11) both; border:1px solid #ffffff73 }
.live-ball > span {
  width:67px; height:67px; display:grid; align-content:center; justify-items:center; border:2px solid #fff8; border-radius:50%;
  background:#fffbed; box-shadow:inset 0 2px 7px #3c186833; font:800 15px/.85 var(--display); color:#312345
}
.live-ball strong { font-size:33px; line-height:1 }
.live-ball.idle-ball > span { font-size:37px }
.ball-0 { --ball:#fa8490; --shadow:#a13252 }
.ball-1 { --ball:#fbc654; --shadow:#a56126 }
.ball-2 { --ball:#8ae2ac; --shadow:#267452 }
.ball-3 { --ball:#8ed6ff; --shadow:#3a65b5 }
.ball-4 { --ball:#d7a5ff; --shadow:#773fba }
.ball-trail { display:flex; justify-content:center; align-items:center; gap:7px; min-height:34px; font-weight:750; font-size:12px; color:#ffecb2 }
.mini-ball { width:30px; height:30px; color:#251632; box-shadow:0 2px 5px #10042886; font-size:11px }
.bingo-desk { padding:7px 5px 10px }
.bingo-card-tabs { display:flex; justify-content:center; flex-wrap:wrap; gap:5px; margin:4px 0 9px }
.bingo-card-tabs .button { min-height:32px; padding:0 9px; font-size:12px }
.bingo-card-tabs [aria-pressed=true] { background:#e8d7fb; border-color:#a87cda }
.live-card { max-width:325px; background:#4b3278; gap:4px; padding:7px; margin-bottom:8px }
.live-card b { padding:0; color:#ffe8a8; font-size:17px }
.live-cell { position:relative; display:grid; place-items:center; aspect-ratio:1.23; background:#fff7ff; border-radius:6px; font:800 clamp(15px,4.3vw,23px) var(--display); color:#3a2853 }
.live-cell.daubed { background:#cdeca0; color:#244224; box-shadow:inset 0 0 0 2px #739e39 }
.live-cell.winning-cell { background:#ffe18b; box-shadow:inset 0 0 0 3px #c38422 }
.bingo-caption,.bingo-empty { color:#645478; font-size:13px; margin:8px auto; max-width:28ch }
.bingo-desk .reward { color:#40630b; font:800 24px var(--display) }
@keyframes roll-in { from { transform:translateY(-18px) rotate(-30deg) scale(.86); opacity:.45 } to { transform:none; opacity:1 } }
@media (prefers-reduced-motion: reduce) { .live-ball { animation:none } }
