/* Our own console-and-tournament layout, with the shared bright arcade design language. */
.arena-shell.arena-credits-shell { max-width: 820px; padding-top: 54px; }
.arena-credits { padding: 32px; }
.arena-credits h1 { font-size: clamp(24px, 5vw, 34px); line-height: 1.2; }
.arena-credits h2 { margin-top: 25px; }
.arena-credits > p { margin-top: 12px; line-height: 1.8; }
.arena-credits .eyebrow { color: #2474dc; margin-top: 0; }
.arena-credits > .button { margin-top: 28px; }
:root { --ink: #223352; --paper: #fffdf5; --blue: #2474dc; --blue-deep: #124485; --red: #f7464e; --red-deep: #ae293c; --muted: #839097; }
body { background: #f8f3e7; }
.arena-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(circle at 12px 12px, #d8d4c4 1.1px, transparent 1.5px) 0 0 / 25px 25px, #f8f3e7; }
.orbit { position: absolute; width: 520px; height: 520px; border: 70px solid #f4c747; border-radius: 50%; opacity: .2; }
.orbit-one { left: -300px; top: 230px; }
.orbit-two { right: -310px; top: -320px; border-color: #68cabb; width: 850px; height: 850px; }
.bg-cross { position: absolute; color: #ef6e79; font-size: 45px; transform: rotate(14deg); }
.cross-one { left: 5%; top: 74%; }
.cross-two { right: 4%; bottom: 4%; color: #469de1; font-size: 30px; }
.arena-shell { max-width: 1290px; margin: auto; padding: 25px 34px 18px; }
.arena-header { display: flex; justify-content: space-between; align-items: center; gap: 23px; }
.arena-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; font-size: 15px; font-weight: 1000; line-height: 1.07; letter-spacing: .12em; }
.arena-brand strong { display: block; font-size: 24px; letter-spacing: .09em; margin-top: 3px; }
.arena-mark { display: grid; grid-template-columns: repeat(2, 1fr); width: 57px; height: 59px; gap: 4px; transform: rotate(-7deg); }
.arena-mark i { display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 6px; font-size: 16px; font-weight: 1000; font-style: normal; letter-spacing: 0; background: #ffdb6d; box-shadow: 0 3px 0 var(--ink); }
.arena-mark i:nth-child(2) { background: #f96770; color: white; }
.arena-mark i:nth-child(3) { background: #78cbb8; }
.arena-mark i:nth-child(4) { background: #6ca6f2; color: white; }
.arena-header .connect-form { max-width: 454px; }
.arena-header .channel-field { border-radius: 22px; min-height: 47px; padding: 9px 15px; background: white; box-shadow: 0 4px 0 #e2dccd; }
.arena-header .channel-field input { font-size: 13px; }
.arena-header .channel-field .icon { color: #8154ce; width: 18px; }
.button { border-radius: 20px; }
.icon-button { border-radius: 17px; box-shadow: 0 4px 0 #d1cdbc; }
.arena-header .connect-button { border-radius: 22px; min-height: 46px; padding: 10px 18px; font-size: 12px; }
.arena-header .toolbar { gap: 8px; }
.arena-header .icon-button { height: 42px; min-height: 42px; min-width: 42px; padding: 9px; }
.arena-header .obs-button { display: flex; gap: 6px; font-size: 10px; padding: 9px 12px; }
.arena-header .obs-button .icon { width: 16px; height: 16px; }
.arena-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 26px 0 21px; }
.arena-kicker { display: flex; align-items: center; gap: 9px; font-size: 8px; font-weight: 1000; letter-spacing: .13em; margin: 0 0 10px; color: #879085; }
.arena-kicker > span { background: #efeadc; border: 1px solid #d3cebf; border-radius: 5px; padding: 3px 6px; color: #7a8275; letter-spacing: .06em; }
.intro-copy h1 { font-size: clamp(27px, 3.2vw, 39px); font-weight: 1000; line-height: 1.07; letter-spacing: -.04em; }
.intro-copy h1 > span { color: #ef454f; }
.intro-copy > p:last-child { font-size: 11px; font-weight: 800; color: #939588; margin: 9px 0 0; }
.arena-intro .connection-status { font-size: 10px; font-weight: 900; flex-shrink: 0; padding: 10px 12px; border: 1px solid #dfdfd1; border-radius: 11px; background: #fffdf6; max-width: 350px; }
.arena-layout { display: grid; grid-template-columns: minmax(0, 1fr) 355px; gap: 25px; align-items: start; }
.arena-console { position: relative; min-width: 0; padding: 18px 20px 22px; background: linear-gradient(150deg, #388aec, #2877d8 72%); border: 3px solid var(--ink); border-radius: 34px; box-shadow: inset 0 4px 0 #72b1f5, inset -5px 0 0 #1761b955, 0 11px 0 #134581, 0 16px 0 #22335217; overflow: hidden; }
.console-brow { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.round-tag { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 900; color: #dceaff; letter-spacing: .08em; }
.round-tag b { display: grid; place-items: center; width: 31px; height: 25px; background: #1859a1; border: 1px solid #77a9e8; border-radius: 7px; color: white; font-size: 12px; }
.console-brow > p { margin-left: auto; color: #deecff; font-size: 9px; font-weight: 1000; letter-spacing: .1em; }
.console-lights { display: flex; gap: 4px; }
.console-lights i { width: 5px; height: 5px; border-radius: 50%; background: #8adacf; box-shadow: 0 0 0 1px #123e77; }
.console-lights i:nth-child(2) { background: #ffdc72; }
.console-lights i:nth-child(3) { background: #f7757c; }
.console-screen { background: #152a48; border: 3px solid #103960; border-radius: 23px; padding: 16px 22px 13px; box-shadow: inset 0 3px 0 #061b3155, 0 2px 0 #73b4ef; }
.screen-status { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.arena-timer { display: flex; align-items: center; gap: 10px; min-width: 138px; padding: 8px 13px; border: 2px solid #652b3c; border-radius: 14px; background: #f64e56; box-shadow: 0 4px 0 #94273a; color: white; }
.arena-timer > .icon { width: 23px; height: 23px; opacity: .8; }
.arena-timer > div { display: flex; flex-direction: column; }
#timer-text { font-size: 26px; font-weight: 1000; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
#timer-label { font-size: 8px; font-weight: 900; color: #ffdee0; margin-top: 2px; }
.arena-timer.urgent { animation: timer-pulse .7s ease-in-out infinite alternate; }
.screen-metrics { display: flex; gap: 24px; text-align: right; color: #f7f9fa; }
.screen-metrics > div { display: flex; flex-direction: column; }
.screen-metrics b { font-size: 23px; line-height: 1; font-weight: 1000; font-variant-numeric: tabular-nums; }
.screen-metrics small { font-size: 8px; color: #a3b5ca; margin-top: 5px; font-weight: 800; }
.clock-track { height: 5px; border-radius: 6px; background: #354c66; margin: 15px 0 13px; overflow: hidden; }
#clock-fill { height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #71d3b9, #ffe18b); transition: width .2s linear; }
.board-frame { width: min(100%, 420px); margin: auto; }
.board-axis { display: grid; grid-template-columns: repeat(var(--grid-size, 4), 1fr); padding: 0 12px; margin-bottom: 6px; gap: 10px; text-align: center; color: #637d99; font-size: 8px; font-weight: 1000; letter-spacing: .1em; }
.boggle-grid-wrap { position: relative; padding: 11px; border: 1px solid #4d6680; border-radius: 20px; background: #27415b; box-shadow: inset 0 2px 0 #0d21354d; }
.letter-rack { display: grid; grid-template-columns: repeat(var(--letter-columns, 4), minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; }
.grid-5 .board-frame { width: min(100%, 448px); }
.grid-5 .board-axis, .grid-5 .letter-rack { gap: 8px; }
.grid-5 .letter-rack .letter-tile { font-size: clamp(22px, 2.7vw, 33px); }
.letter-rack .letter-tile { position: relative; aspect-ratio: 1; width: 100%; min-height: 0; border: 2px solid #0f2845; border-radius: 12px; background: linear-gradient(#fffef0, #f7e5bc); color: #243550; font-size: 35px; font-weight: 1000; text-shadow: 0 1px 0 white; box-shadow: inset 0 2px 0 #fff, 0 5px 0 #a69775, 0 7px 0 #0e2845; transition: transform .15s, background .15s, box-shadow .15s; }
.letter-rack .letter-tile:disabled { opacity: 1; cursor: default; }
.letter-rack .letter-tile:hover:not(:disabled) { background: #fff0b3; transform: translateY(-3px); box-shadow: inset 0 2px 0 white, 0 8px 0 #bcaa77, 0 10px 0 #0e2845; }
.letter-rack .letter-tile:active:not(:disabled) { transform: translateY(4px); }
.letter-rack .letter-tile.selected { background: linear-gradient(#b9f2dc, #83d4b8); border-color: #0b6552; box-shadow: inset 0 2px 0 #defdf0, 0 5px 0 #2b9878, 0 7px 0 #0e2845; transform: translateY(-2px); }
.letter-rack .letter-tile[data-order]::after { content: attr(data-order); position: absolute; right: -5px; top: -5px; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid #fffdf5; border-radius: 50%; background: #f64c5a; color: white; font-size: 10px; font-weight: 1000; text-shadow: none; z-index: 5; }
.letter-rack .letter-tile.hit { animation: arena-tile-hit .6s cubic-bezier(.25,1.7,.5,1); }
.word-route { position: absolute; inset: 11px; width: calc(100% - 22px); height: calc(100% - 22px); pointer-events: none; overflow: visible; z-index: 4; }
.word-route polyline { fill: none; stroke: #057762; opacity: .34; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.word-route.route-accepted polyline { stroke: #6bdec0; opacity: .8; animation: arena-route .7s ease-out; }
.board-caption { display: flex; justify-content: space-between; align-items: center; gap: 5px; color: #7793ad; font-size: 7px; letter-spacing: .04em; font-weight: 900; margin: 13px 0 12px; }
.screen-rule { display: flex; align-items: center; gap: 9px; padding: 9px 11px; background: #203a54; border-radius: 11px; color: #d1e4ec; }
.screen-rule > span { flex: none; font-size: 24px; color: #ffdb76; }
.screen-rule strong { display: block; color: #ffdd85; font-size: 9px; font-weight: 1000; letter-spacing: .06em; }
.screen-rule p { margin-top: 3px; font-size: 9px; line-height: 1.4; color: #a3bdce; }
.console-controls { display: flex; align-items: center; gap: 10px; margin-top: 17px; flex-wrap: wrap; }
.console-controls .button-main { font-size: 13px; min-width: 164px; min-height: 45px; border-radius: 22px; }
.console-controls #demo-button { font-size: 11px; min-height: 45px; padding: 10px 13px; border-radius: 22px; background: #ffdf8d; box-shadow: 0 5px 0 #b3995c; }
.console-controls #next-button { background: #b7dcfa; border-color: #134579; box-shadow: 0 4px 0 #174577; }
.console-controls #hint-button { margin-left: auto; color: #e9f4ff; font-size: 10px; padding: 7px 3px; gap: 5px; }
.console-controls #hint-button:hover:not(:disabled) { background: #ffffff15; }
.arena-console .control-note { margin: 15px 0 0; font-size: 9px; color: #bee0ff; font-weight: 800; line-height: 1.55; padding-right: 61px; min-height: 15px; }
.console-speaker { display: flex; align-items: center; justify-content: end; gap: 4px; position: absolute; bottom: 23px; right: 24px; transform: rotate(-12deg); }
.console-speaker i { display: block; width: 4px; height: 21px; border-radius: 4px; background: #124b88; box-shadow: 1px 1px 0 #6ea9e3; }
.arena-console .practice-card { position: relative; grid-column: auto; padding: 13px 16px; margin-top: 16px; border: 2px solid #123f70; border-radius: 17px; box-shadow: 0 3px 0 #1b5693; background: #ebf4fb; }
.practice-card .section-heading h2 { font-size: 13px; }
.practice-card .clear-word-button { padding: 0 2px; min-height: 22px; font-size: 9px; color: #6d8caa; }
.practice-card .manual-form { margin-top: 8px; gap: 8px; }
.practice-card .manual-form input { border-radius: 13px; border-color: #b3c5d4; font-size: 13px; min-height: 40px; padding: 7px 10px; }
.practice-card .manual-form .button { border-radius: 14px; min-height: 39px; font-size: 11px; padding: 8px 13px; }
.practice-card .manual-feedback { margin-top: 9px; min-height: 15px; font-size: 9px; color: #6a8197; }
.practice-card .manual-feedback.success { color: #208966; }
.practice-card .manual-feedback.error { color: #b82843; }
.arena-sidebar { display: flex; flex-direction: column; gap: 17px; min-width: 0; }
.arena-leaders, .arena-feed { padding: 18px 18px 15px; border: 2px solid var(--ink); border-radius: 24px; background: var(--paper); box-shadow: 0 6px 0 #dfd6bf; }
.arena-card-heading { display: flex; align-items: center; gap: 10px; }
.heading-mark { display: grid; place-items: center; flex: none; width: 38px; height: 40px; background: #ffdf82; border: 1px solid #cfb467; border-radius: 12px; color: #987225; transform: rotate(-5deg); box-shadow: 0 3px 0 #edcd78; }
.arena-card-heading > div:nth-child(2) { min-width: 0; }
.arena-card-heading h2 { font-size: 19px; font-weight: 1000; letter-spacing: -.02em; line-height: 1.25; }
.arena-card-heading p { font-size: 7px; letter-spacing: .12em; color: #9a9b88; font-weight: 1000; margin-bottom: 3px; }
.live-badge { margin-left: auto; flex: none; border: 1px solid #e7cecd; border-radius: 7px; padding: 4px 6px; font-size: 7px; font-weight: 1000; color: #d74655; background: #fff0ea; letter-spacing: .05em; }
.arena-leaders .leaderboard { min-height: 210px; margin: 17px 0 0; }
.leader-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 210px; padding: 15px; gap: 8px; color: #9c9e8d; text-align: center; }
.leader-empty .empty-crown { display: grid; place-items: center; width: 60px; height: 60px; font-size: 40px; border: 2px dashed #ddd8c6; border-radius: 20px; color: #c9b883; transform: rotate(-7deg); }
.leader-empty strong { font-size: 14px; color: #838976; }
.leader-empty p { font-size: 10px; }
.leader-row { display: flex; align-items: center; gap: 9px; min-height: 59px; padding: 9px 8px; border-bottom: 1px solid #eee9dc; }
.leader-row:last-child { border: 0; }
.leader-first { background: #fff0b9; border: 1px solid #dfbc62!important; border-radius: 16px; padding: 12px 9px; margin-bottom: 7px; box-shadow: 0 3px 0 #eee1ae; }
.leader-position { display: grid; place-items: center; width: 18px; flex: none; font-size: 11px; color: #b5b4a3; font-weight: 1000; }
.leader-first .leader-position { color: #bd8a18; font-size: 23px; }
.leader-row .avatar { width: 32px; height: 34px; border-radius: 10px; font-size: 16px; border: 1px solid #22335244; box-shadow: 0 2px 0 #22335222; }
.leader-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.leader-row .leader-name { font-size: 12px; font-weight: 1000; }
.leader-tiebreak { color: #9a9b84; font-size: 9px; font-weight: 900; }
.leader-row .leader-points { display: flex; flex-direction: column; align-items: end; font-size: 23px; line-height: 1; font-weight: 1000; flex: none; color: #223352; }
.leader-row .leader-points small { margin: 4px 0 0; font-size: 8px; font-weight: 800; color: #949780; }
.leader-first .leader-points { color: #af7619; font-size: 30px; }
.ranking-note { margin: 12px 0 0; font-size: 9px; line-height: 1.6; color: #929987; text-align: center; }
.session-records { border-top: 1px solid #e9e4d4; margin-top: 13px; padding-top: 12px; }
.session-records summary { display: flex; justify-content: space-between; cursor: pointer; color: #6381a0; font-size: 10px; font-weight: 1000; list-style: none; }
.session-records summary::-webkit-details-marker { display: none; }
.session-records summary > span:last-child { color: #9badb5; transition: transform .2s; }
.session-records[open] summary > span:last-child { transform: rotate(90deg); }
#session-leaderboard { margin-top: 11px; }
.session-record { display: flex; gap: 8px; align-items: center; font-size: 10px; padding: 5px 0; }
.session-record .record-place { color: #a8ad9c; }
.session-record strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-record > span:last-child { font-size: 9px; color: #7d938b; }
.session-empty { font-size: 9px; color: #97a08f; }
.session-records .session-stats { grid-template-columns: repeat(2,1fr); padding-top: 9px; margin-top: 9px; }
.session-records .session-stats span { font-size: 17px; }
.arena-feed .heading-mark { background: #d8ecfe; border-color: #96b8d7; color: #5182b0; box-shadow: 0 3px 0 #c4dff4; }
.arena-feed .arena-card-heading h2 { font-size: 17px; }
.arena-feed .count-bubble { margin-left: auto; background: #eaf1f5; color: #7d95a5; }
.arena-feed .feed { gap: 7px; margin-top: 14px; min-height: 140px; }
.arena-feed .empty-state { min-height: 140px; gap: 6px; }
.arena-feed .empty-symbol { width: 34px; height: 34px; font-size: 21px; border-color: #e0dccf; }
.arena-feed .empty-state strong { font-size: 11px; }
.arena-feed .empty-state p { font-size: 9px; }
.arena-feed .feed-entry { padding: 8px 11px; background: #f4f2e8; border-color: #e8e6d8; border-radius: 12px; }
.arena-feed .feed-word { font-size: 14px; }
.arena-feed .feed-user { font-size: 9px; }
.arena-feed .feed-score { font-size: 13px; color: #6387b4; }
.arena-feed .feed-score { display: flex; flex-direction: column; align-items: end; font-size: 10px; }
.arena-feed .feed-score small { margin-top: 4px; font-size: 8px; color: #98a4a4; }
.arena-tip { display: flex; flex-direction: column; padding: 5px 7px; gap: 5px; }
.arena-tip b { font-size: 11px; color: #8b9782; }
.arena-tip span { font-size: 9px; line-height: 1.6; color: #a0a592; }
.arena-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 8px; color: #939a88; font-weight: 900; margin-top: 30px; letter-spacing: .05em; }
.arena-footer a { font-size: 9px; text-decoration: none; color: #75928e; letter-spacing: 0; }
.arena-footer a:hover { text-decoration: underline; }
.arena-console .round-overlay { border-radius: 28px; background: #0a2343dd; backdrop-filter: blur(6px); color: #fff8e5; }
.arena-console .overlay-content { padding: 24px; width: 100%; }
.arena-console .countdown-number { color: #ffdc76; text-shadow: 0 7px 0 #0e3156; }
.arena-console .countdown-caption { color: #c4dff8; }
.result-crown { font-size: 68px; color: #ffda72; line-height: 1; margin-bottom: 13px; animation: crown-pop .6s cubic-bezier(.2,1.6,.5,1); }
.arena-console .result-heading { font-size: 25px; color: #ffdf80; }
.result-winner { font-size: 25px; font-weight: 1000; color: white; margin-top: 10px; overflow-wrap: anywhere; }
.arena-console .result-summary { color: #a5d4ef; margin-top: 10px; }
.arena-console .result-missed { color: #bed1da; font-size: 11px; }
.arena-console .result-missed b { color: #ffdf80; }
.arena-console .result-next { color: #a5bdcf; }
.arena-console .floating-score { left: 50%; top: 49%; color: #77dfbd; font-size: 34px; text-shadow: 0 3px 0 #0d4d6e; }
.help-modes { padding: 14px 16px; border-radius: 15px; background: #edf5fb; margin: 20px 0 15px; }
.help-modes > strong { font-size: 14px; }
.help-modes p { margin-top: 8px; font-size: 12px; line-height: 1.65; }
.mode-setting { grid-column: 1 / -1; }
.dialog .eyebrow { color: #dc6b73; }
.obs-mode .arena-shell { max-width: 1370px; padding: 20px 27px; }
.obs-mode .arena-intro, .obs-mode .arena-footer { display: none; }
.obs-mode .arena-tip { display: none; }
.obs-mode .arena-header { margin-bottom: 23px; }
.obs-mode .arena-layout { grid-template-columns: minmax(0,1fr) 360px; }
.obs-mode .board-frame { width: min(100%, 450px); }
.obs-mode .letter-rack .letter-tile { aspect-ratio: 1; }
.obs-mode .leader-row { min-height: 50px; padding-top: 7px; padding-bottom: 7px; }
.obs-mode .leader-first { min-height: 60px; padding-top: 9px; padding-bottom: 9px; }
.obs-mode .arena-leaders .leaderboard { min-height: 195px; }
.obs-mode .leader-empty { min-height: 195px; }
.obs-mode .session-records[open] #session-leaderboard { max-height: 60px; overflow-y: auto; }
.obs-mode .session-records .session-stats { padding-top: 5px; margin-top: 5px; }
.transparent-mode { background: transparent; }
.transparent-mode .arena-backdrop { display: none; }
@keyframes arena-tile-hit { 0% { transform: translateY(0); } 35% { transform: translateY(-8px) rotate(3deg); background: #b5f3d9; } 100% { transform: translateY(0); } }
@keyframes arena-route { from { stroke-width: 12; opacity: 1; } to { stroke-width: 6; opacity: .8; } }
@keyframes crown-pop { from { transform: translateY(20px) scale(.6) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 1120px) {
  .arena-shell { padding: 23px 27px 18px; }
  .arena-header { gap: 18px; }
  .arena-brand { font-size: 13px; }
  .arena-brand strong { font-size: 21px; }
  .arena-mark { width: 49px; height: 51px; }
  .arena-header .channel-field { min-width: 145px; }
  .arena-header .connect-button { padding: 10px 13px; }
  .arena-header .toolbar { gap: 6px; }
  .arena-layout { grid-template-columns: minmax(0,1fr) 310px; gap: 22px; }
  .arena-console { padding: 16px 17px 21px; }
  .console-screen { padding: 14px 16px 12px; }
  .console-controls { gap: 8px; }
  .console-controls .button-main { min-width: 147px; font-size: 12px; }
  .console-controls #demo-button { padding: 9px 10px; font-size: 10px; }
  .arena-card-heading h2 { font-size: 17px; }
  .arena-card-heading { gap: 8px; }
  .live-badge { font-size: 6px; padding: 4px; }
}
@media (max-width: 900px) {
  .arena-header { flex-wrap: wrap; }
  .arena-header .toolbar { margin-left: auto; }
  .arena-header .connect-form { order: 3; flex: 1 1 100%; max-width: none; }
  .arena-header .channel-field input { font-size: 14px; }
  .arena-intro { align-items: start; }
  .arena-intro .connection-status { max-width: 250px; font-size: 9px; }
  .arena-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 18px; }
  .console-screen { padding: 12px 13px; }
  .console-brow { gap: 8px; }
  .console-brow > p { font-size: 7px; }
  .console-lights { display: none; }
  .screen-metrics { gap: 13px; }
  .arena-timer { min-width: 119px; padding: 7px 10px; }
  #timer-text { font-size: 24px; }
  .letter-rack .letter-tile { font-size: 29px; }
  .board-caption { font-size: 6px; }
  .arena-leaders, .arena-feed { padding: 16px 14px 14px; }
  .arena-card-heading h2 { font-size: 16px; }
  .arena-card-heading p { font-size: 6px; }
  .heading-mark { width: 31px; height: 33px; border-radius: 10px; }
}
@media (max-width: 740px) {
  .arena-shell { padding: 20px 20px 17px; }
  .arena-intro { flex-direction: column; align-items: start; gap: 12px; margin: 21px 0 18px; }
  .intro-copy h1 { font-size: 32px; }
  .intro-copy > p:last-child { font-size: 10px; }
  .arena-intro .connection-status { max-width: 100%; padding: 7px 10px; }
  .arena-layout { grid-template-columns: minmax(0,1fr); gap: 23px; }
  .arena-sidebar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
  .arena-tip { grid-column: 1 / -1; }
  .console-brow > p { font-size: 9px; }
  .console-screen { padding: 16px 20px 13px; }
  .letter-rack .letter-tile { font-size: 36px; }
  .arena-leaders .leaderboard { min-height: 190px; }
  .leader-empty { min-height: 190px; }
  .obs-mode .arena-layout { grid-template-columns: minmax(0,1fr); }
  .obs-mode .arena-shell { padding: 20px; }
}
@media (max-width: 460px) {
  .arena-shell { padding: 18px 14px 15px; }
  .arena-header { gap: 14px; }
  .arena-brand { font-size: 12px; gap: 9px; }
  .arena-brand strong { font-size: 19px; }
  .arena-mark { width: 43px; height: 45px; gap: 3px; }
  .arena-mark i { font-size: 12px; }
  .arena-header .toolbar { gap: 6px; width: 100%; justify-content: end; }
  .arena-header .icon-button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 7px; border-radius: 12px; }
  .arena-header .obs-button { width: auto; padding: 7px 10px; }
  .arena-header .connect-form { gap: 7px; }
  .arena-header .channel-field { padding: 9px 10px; min-width: 0; min-height: 43px; gap: 7px; }
  .arena-header .channel-field input { font-size: 10px; }
  .arena-header .connect-button { padding: 9px 10px; min-height: 43px; font-size: 10px; gap: 4px; }
  .arena-header .connect-button .icon { width: 16px; height: 16px; }
  .arena-kicker { font-size: 6px; gap: 6px; }
  .intro-copy h1 { font-size: 29px; line-height: 1.18; }
  .intro-copy h1 span { display: block; }
  .arena-console { padding: 14px 11px 21px; border-radius: 27px; }
  .console-brow { gap: 7px; margin-bottom: 11px; }
  .console-brow > p { font-size: 7px; letter-spacing: .04em; }
  .round-tag { font-size: 8px; }
  .console-screen { padding: 11px 10px 10px; border-radius: 17px; }
  .arena-timer { min-width: 111px; padding: 7px 9px; gap: 7px; }
  .arena-timer > .icon { width: 18px; height: 18px; }
  #timer-text { font-size: 23px; }
  #timer-label { font-size: 7px; }
  .screen-metrics { gap: 13px; }
  .screen-metrics b { font-size: 21px; }
  .screen-metrics small { font-size: 6px; }
  .clock-track { margin: 12px 0 9px; }
  .board-axis { margin-bottom: 4px; }
  .boggle-grid-wrap { padding: 8px; border-radius: 14px; }
  .word-route { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .letter-rack { grid-template-columns: repeat(var(--letter-columns, 4),minmax(0,1fr)); gap: 7px; }
  .grid-5 .board-axis, .grid-5 .letter-rack { gap: 5px; }
  .letter-rack .letter-tile { font-size: 28px; border-radius: 9px; }
  .board-caption { font-size: 5px; margin: 11px 0; letter-spacing: 0; }
  .screen-rule { padding: 8px; gap: 7px; }
  .screen-rule > span { font-size: 20px; }
  .screen-rule strong { font-size: 7px; }
  .screen-rule p { font-size: 8px; }
  .console-controls { gap: 8px; margin-top: 14px; }
  .console-controls .button-main { flex: 1 1 100%; font-size: 12px; }
  .console-controls #demo-button { flex: 1; font-size: 10px; padding: 8px 9px; }
  .console-controls #hint-button { margin-left: 0; }
  .arena-console .control-note { font-size: 8px; padding-right: 38px; }
  .console-speaker { right: 16px; bottom: 21px; gap: 3px; }
  .console-speaker i { width: 3px; height: 15px; }
  .arena-console .practice-card { padding: 11px 10px; }
  .practice-card .manual-form .button { padding: 8px 9px; font-size: 9px; gap: 5px; }
  .practice-card .manual-form .button .icon { width: 16px; }
  .practice-card .manual-form input { font-size: 11px; }
  .arena-sidebar { grid-template-columns: minmax(0,1fr); }
  .arena-card-heading h2 { font-size: 20px; }
  .arena-card-heading p { font-size: 7px; }
  .heading-mark { width: 38px; height: 40px; }
  .arena-footer { justify-content: center; text-align: center; margin-top: 25px; gap: 9px; }
  .arena-footer > span { flex: 1 1 100%; font-size: 7px; }
  .arena-footer a { font-size: 8px; }
  .arena-console .result-heading { font-size: 21px; }
  .result-winner { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .arena-timer.urgent, .letter-rack .letter-tile.hit, .word-route.route-accepted polyline, .result-crown { animation: none; } }
.reduced-motion .arena-timer.urgent, .reduced-motion .letter-rack .letter-tile.hit, .reduced-motion .word-route.route-accepted polyline, .reduced-motion .result-crown { animation: none; }
