/* A compact game lobby and a matching play cabinet. */
body{min-height:100dvh;background:radial-gradient(ellipse at 50% 0,#f5fff2 0,transparent 55%),linear-gradient(165deg,#d9eee8,#d9e9ee 55%,#e8e6f2);background-attachment:fixed;overflow-x:hidden}
body:before,body:after{content:'';position:fixed;pointer-events:none;z-index:-1;width:70vw;height:45vw;min-height:280px;bottom:-26vw;border-radius:50%;background:#a8cbb850;box-shadow:0 -10px 0 #ffffff22}
body:before{left:-17vw;transform:rotate(12deg)}body:after{right:-20vw;background:#a9c4d54d;transform:rotate(-12deg)}
.site-header{height:74px;max-width:540px;padding:0 24px}.brand{font-size:20px;letter-spacing:-1px}.brand-icon{width:29px;height:31px;font-size:27px;border-radius:10px;box-shadow:0 3px 0 #1e604b}.site-header nav{gap:10px}.site-header nav>button{background:#ffffffb3;border:2px solid #fff;box-shadow:0 3px 0 #bed1c5;border-radius:14px;height:37px;padding:0 12px;font-size:11px}.site-header nav>button span{margin-left:0;color:#b59846}.site-header nav .icon-button{width:37px;padding:0;font-size:22px}.sound-off{left:9px!important;top:3px}
main{position:relative}.home{display:flex;flex-direction:column;max-width:440px;padding:0 26px;margin:5px auto 0;gap:0}.lobby-title{text-align:center;position:relative;z-index:1}.lobby-badge{font-size:10px;font-weight:700;letter-spacing:2px;color:#5c9480}.lobby-title h1{font-size:80px;line-height:1.15;letter-spacing:-6px;font-weight:900;margin:9px 0 7px;color:#438d71;-webkit-text-stroke:1px #fcfff5;text-shadow:0 3px 0 #fcfff5,0 7px 0 #286952,0 12px 13px #5887772b;transform:rotate(-4deg)}.lobby-title h1 span{color:#f1bd56;text-shadow:0 3px 0 #fff6d5,0 7px 0 #b78133,0 12px 13px #5887772b}.lobby-title h1 i{font-style:normal;color:#ec9c85;font-size:68px;display:inline-block;transform:rotate(13deg);text-shadow:0 3px 0 #fff4e8,0 7px 0 #b97161}.lobby-title p{font-size:12px;font-weight:600;letter-spacing:1px;color:#6f9c8c;margin:17px 0 0}
.mascot-stage{position:relative;height:225px;margin:0 5px}.mascot-aura{position:absolute;width:195px;height:150px;border-radius:50%;background:radial-gradient(ellipse,#ffffffba,transparent 70%);left:50%;top:30px;transform:translateX(-50%)}.hero-bot{position:absolute;left:50%;top:65px;transform:translateX(-50%);width:94px;height:85px}.hero-bot .robot{width:94px;height:74px;border-radius:25px;padding:16px 13px;background:linear-gradient(145deg,#fbffe8,#c5e1ae);border:2px solid #ffffffc9;box-shadow:inset 0 3px 2px #fff,0 7px 0 #9cb986,0 12px 12px #70977526;animation:bot-bob 3.6s ease-in-out infinite}.hero-bot .robot:before,.hero-bot .robot:after{width:9px;height:27px;top:24px;border:2px solid #e6f7d6;background:#a8c292}.hero-bot .robot:before{left:-10px}.hero-bot .robot:after{right:-10px}.hero-bot .robot-face{height:36px;border-radius:12px;background:#3b6558;box-shadow:inset 0 4px 3px #25463e66;position:relative}.hero-bot .robot-face i{width:9px;height:12px;background:#ceffd7;box-shadow:0 0 9px #afffc577;border-radius:6px;transform:translateY(-2px)}.hero-bot .robot-face b{position:absolute;bottom:6px;left:31px;width:9px;height:5px;border:2px solid #b8ebc2;border-top:0;border-radius:0 0 8px 8px}.hero-bot .antenna{height:17px;top:-18px;left:44px;width:4px}.hero-bot .antenna:before{width:12px;height:12px;background:#f2c862;border:2px solid #fff0b4;left:-4px;top:-7px;box-shadow:0 2px 0 #c7a245}.hero-bot .robot-foot{position:absolute;bottom:-17px;left:14px;width:18px;height:12px;border-radius:3px 3px 7px 7px;background:#a1bc8c;box-shadow:43px 0 #a1bc8c}.bot-shadow{position:absolute;left:1px;top:98px;width:90px;height:14px;background:#699c7526;border-radius:50%;filter:blur(2px)}
.orbit-tile{position:absolute;width:47px;height:47px;aspect-ratio:1;font-size:24px;z-index:1}.orbit-tile:nth-child(1){left:7%;top:61px;rotate:-17deg}.orbit-tile:nth-child(2){left:24%;top:13px;rotate:-9deg;width:40px;height:40px;font-size:21px}.orbit-tile:nth-child(3){right:24%;top:10px;rotate:12deg;width:40px;height:40px;font-size:21px}.orbit-tile:nth-child(4){right:6%;top:64px;rotate:18deg}.orbit-tile:nth-child(5){right:15%;top:133px;rotate:9deg;width:37px;height:37px;font-size:20px}.stage-spark{position:absolute;color:#92bc97;font-size:27px}.stage-spark.one{left:19%;top:132px;color:#d5b357}.stage-spark.two{right:10%;top:18px;font-size:22px}.mascot-message{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);background:#ffffffc4;color:#699174;border:2px solid #fff;padding:7px 17px;border-radius:20px;font-size:11px;font-weight:600;white-space:nowrap}.mascot-message:before{content:'';position:absolute;left:50%;top:-7px;width:10px;height:10px;background:#fff;transform:rotate(45deg)}
.mode-list{gap:17px;margin:17px 0 0}.mode-card{border:2px solid #fff9;border-radius:24px;padding:16px 19px;align-items:center;min-height:104px;transition:transform .15s,filter .15s;overflow:visible}.mode-card:before{content:'';position:absolute;inset:4px 10px auto;height:28px;background:linear-gradient(#ffffff33,transparent);border-radius:18px;pointer-events:none}.time-card{background:linear-gradient(160deg,#87cda5,#5cad88);box-shadow:0 6px 0 #388167,0 11px 18px #517e6320;color:#fff}.duel-card{background:linear-gradient(160deg,#c0a8e9,#a084d0);box-shadow:0 6px 0 #7b60aa,0 11px 18px #79629a20;color:#fff}.mode-card:hover{transform:translateY(-2px);filter:brightness(1.035);box-shadow:0 7px 0 #388167,0 12px 18px #517e6320}.duel-card:hover{box-shadow:0 7px 0 #7b60aa,0 12px 18px #79629a20}.mode-card:active{transform:translateY(4px)}.mode-icon{background:#ffffff2d;color:#fff;width:46px;height:46px;border:1px solid #ffffff45;border-radius:16px;margin:0 15px 0 0;font-size:32px;box-shadow:inset 0 2px 0 #ffffff30}.mode-content{gap:3px}.mode-content strong{font-size:24px;font-weight:900;letter-spacing:-1px;text-shadow:0 2px 0 #365f4f33}.mode-tag,.duel-card .mode-tag{color:#fff;opacity:.9;font-size:10px;font-weight:600;letter-spacing:0}.mode-tag i{font-size:8px;background:#ffffff30;padding:1px 5px;border-radius:6px}.mode-tag i:empty{display:none}.mode-content small,.duel-card small{color:#fff;opacity:.85;font-size:10px;margin:4px 0 0;font-weight:500}.card-arrow{color:#fff;background:#ffffff26;border:1px solid #ffffff45;display:grid;place-items:center;font-size:13px;width:29px;height:29px;border-radius:50%;flex-shrink:0}
.lobby-tools{display:flex;justify-content:center;align-items:center;gap:27px;margin:28px 0 5px}.lobby-tools button{font-size:11px;color:#628a77;display:flex;align-items:center;gap:7px;padding:5px}.lobby-tools button>span{width:22px;height:22px;border-radius:50%;background:#fff9;box-shadow:0 2px 0 #c4d6c9;display:grid;place-items:center;font-weight:800}.lobby-tip{border-left:1px solid #b5cdc0;padding-left:25px;display:flex;flex-direction:column;gap:3px}.lobby-tip b{font-size:12px;letter-spacing:2px;color:#739a82}.lobby-tip span{font-size:9px;color:#8ca594}
footer{max-width:490px;justify-content:center;margin:23px auto 16px;padding:0 20px;color:#88a08f}footer>span{display:none}footer button{font-size:9px;color:#789582}footer div{gap:16px}
.game{max-width:432px;padding:0 17px;margin:0 auto}.game-heading{margin-bottom:13px;gap:12px}.game-heading h2{font-size:21px;color:#416f5d;letter-spacing:-1px;text-shadow:0 1px #fff}.game-heading .eyebrow{font-size:8px;letter-spacing:1.5px;color:#85a495}.back-button,.round-button{border:2px solid #fffc;background:#f6fff3ad;border-radius:14px;width:37px;height:37px;box-shadow:0 3px 0 #bed0bb;font-size:21px;padding:0}.round-button{font-size:14px}
.scoreboard{border:3px solid #fff;border-radius:22px;background:linear-gradient(150deg,#ffffffd9,#eef9e9dd);padding:12px 19px;min-height:86px;box-shadow:0 5px 0 #baceb7,0 8px 14px #5a7e6110}.score-block small{font-size:10px;font-weight:700;color:#85a081}.score-block strong{font-size:32px;color:#458969;line-height:1.2}.score-block:last-child strong{color:#bb9250}.score-block em{font-size:11px;color:#9aac8e}.score-block p{font-size:10px;margin-top:4px;color:#8a9e7c}.time-track{height:10px;border:2px solid #ffffffbd;background:#a6beae70;margin-top:16px;border-radius:8px;box-shadow:inset 0 2px 2px #71968315}#time-fill{background:linear-gradient(#b2df7e,#86ba5e);border-radius:8px;box-shadow:inset 0 2px #ffffff5e}.turn-label{font-size:11px;min-height:40px;padding:11px 0;color:#789478;font-weight:600}.board-wrap{margin:7px 0 17px}.board-wrap:before{inset:-10px -9px -13px;background:linear-gradient(145deg,#eaf5e4,#c6ddcc);border:3px solid #f6fff0;box-shadow:inset 0 3px 7px #6a9a7125,0 6px 0 #9fbda9,0 13px 21px #59827824;border-radius:26px}.board-cover{inset:-6px;border:2px solid #f9fff2;background:radial-gradient(ellipse at top,#f4ffe7,#d3e8d7);border-radius:20px;color:#60936f}.board-cover strong{text-shadow:0 3px 0 #fff,0 6px 0 #a9c494}.path-info{font-size:13px;min-height:61px;padding:9px 0 5px;color:#659070}.path-info small{font-size:10px;color:#8da28b}.keyboard-help{font-size:8px;margin-bottom:0;color:#8ba28d}
dialog{background:linear-gradient(150deg,#fcfff5,#eaf2e3);border:4px solid #fff;border-radius:28px;box-shadow:0 8px 0 #b1c7a2,0 25px 80px #314e4335}.dialog-top h2{color:#557d5b;font-weight:900}.primary{background:linear-gradient(#86c397,#5aa57b);border:2px solid #ecffe5;box-shadow:0 4px 0 #418563;border-radius:16px;padding:13px;font-size:14px;margin-top:14px;text-shadow:0 1px #397450}.secondary{background:linear-gradient(#fff,#e4edda);border:2px solid #fff;box-shadow:0 3px 0 #c6d2ba;color:#789064;border-radius:15px}.difficulty{border:2px solid white;background:#ffffffad;box-shadow:0 3px 0 #c9d5bc;border-radius:17px;padding:17px}.result-stats{background:#dce9d1;border:2px solid #fff9}
.tile.hinted:after{content:'';inset:2px;width:auto;height:auto;background:transparent;border:2px solid #fffbd2;border-radius:inherit;box-shadow:0 0 9px #ffffdf99,inset 0 0 6px #ffffff80;animation:hint-glimmer 1.1s ease-in-out both}.tile.hinted[data-hint-order="1"]:after{animation-delay:.14s}.tile.hinted[data-hint-order="2"]:after{animation-delay:.28s}
@keyframes hint-glimmer{0%,100%{opacity:0}35%,65%{opacity:1}}
@keyframes bot-bob{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-6px) rotate(3deg)}}
@media(min-width:701px){body:has(.game:not(.hidden)) .site-header{height:69px}.home{margin-top:12px}.game{max-width:410px}.site-header{max-width:520px}}
@media(max-width:700px){.site-header{height:64px;padding:0 20px}.home{margin:0 auto;padding:0 25px}.lobby-title h1{font-size:72px}.lobby-title p{font-size:11px}.mascot-stage{height:207px}.hero-bot{top:55px}.mode-list{margin-top:14px}.mode-card{min-height:96px;padding:14px 16px}.mode-content strong{font-size:23px}.game{padding:0 15px}.game-heading h2{font-size:19px}.game-heading{margin-bottom:12px}.scoreboard{min-height:78px;padding:10px 16px}.score-block strong{font-size:29px}.game .tile{font-size:25px}.game .board{row-gap:7px;column-gap:5px}.turn-label{min-height:35px;padding:9px 0}.time-track{margin-top:14px}body:has(.game:not(.hidden)) .site-header{height:58px}body:has(.game:not(.hidden)) footer{margin-top:8px}.lobby-tools{margin-top:24px}}
@media(max-width:360px){.mode-content strong{font-size:21px}.mode-icon{width:39px;height:39px;margin-right:11px}.mode-card{padding:14px}.card-arrow{width:24px;height:24px}.mode-content small{font-size:9px}.game{padding:0 12px}.lobby-title h1{font-size:65px}}
@media(max-height:750px) and (max-width:700px){.lobby-title h1{font-size:62px;margin-top:5px}.lobby-title p{margin-top:12px}.mascot-stage{height:180px}.hero-bot{top:44px;scale:.9}.orbit-tile:nth-child(1),.orbit-tile:nth-child(4){top:50px}.orbit-tile:nth-child(5){top:115px}.mascot-message{bottom:0}.mode-card{min-height:85px;padding:11px 16px}.mode-list{gap:15px}.lobby-tools{margin-top:20px}footer{margin-top:16px}}
.reduced .tile.hinted:after{opacity:.8;animation:none}@media(prefers-reduced-motion:reduce){.tile.hinted:after{opacity:.8;animation:none}}
.lobby-title h1{-webkit-text-stroke:0;paint-order:stroke fill}
.time-reward{background:#fff6cf;border:2px solid white;color:#8c7138;border-radius:12px;padding:2px 8px;font-size:12px;font-weight:800;text-shadow:none}
.duel-goal{text-align:center;min-width:65px;padding:5px 8px;border-radius:14px;background:#e6efd9;color:#748f5a}.duel-goal small{display:block;font-size:8px;line-height:1.4}.duel-goal strong{display:block;font-size:24px;line-height:1.15;font-variant-numeric:tabular-nums}.duel-goal.urgent{background:#fae3d3;color:#c17248}
.game .tile[data-value="1"]{--tile-ink:#20694f}.game .tile[data-value="2"]{--tile-ink:#285e8c}.game .tile[data-value="3"]{--tile-ink:#694398}.game .tile[data-value="4"]{--tile-ink:#994c34}.game .tile[data-value="5"]{--tile-ink:#805d19}
.level-status{display:flex;align-items:center;gap:9px;margin:12px 0 -5px;padding:5px 9px;border-radius:12px;background:#ffffff80;min-height:38px}.level-badge{padding:5px 7px;border-radius:9px;background:linear-gradient(#eecb7d,#deb265);color:#815c30;font-size:12px;font-weight:900;box-shadow:0 2px 0 #c9a35f}.level-status b{display:block;font-size:10px;color:#73916a}.level-status small{display:block;font-size:9px;color:#99a58d;margin-top:2px}.level-dots{margin-left:auto;display:flex;gap:3px}.level-dots i{width:6px;height:12px;background:#dce6d1;border-radius:3px}.level-dots .filled{background:#99bd79}.game:has(.level-status:not(.hidden)){padding-bottom:8px}
@media(max-height:800px) and (min-width:701px){.game:has(.level-status:not(.hidden)){max-width:clamp(320px,calc((100dvh - 280px)*.75),390px)}}
.board-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;margin:3px 0 5px}.board-toolbar .turn-label{flex:1;text-align:left;font-size:10px;min-height:0;padding:6px 0}.hint-button{flex-shrink:0;min-height:36px;padding:6px 13px;border:2px solid #fff4ca;border-radius:13px;background:linear-gradient(#fff0b3,#edd17d);color:#967037;box-shadow:0 3px 0 #c6aa68;font-size:12px;font-weight:800}.hint-button span{margin-right:3px}.hint-button:hover:not(:disabled){filter:brightness(1.06)}.hint-button:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #c6aa68}.hint-button:disabled{opacity:.5;cursor:default}.tile.hinted:after{animation:none!important;opacity:1;border:3px solid #fff9c5;box-shadow:0 0 0 2px #d6a84a,inset 0 0 9px #fffbd8,0 0 12px #fff3af}.tile.hinted{filter:brightness(1.08)}
@media(max-height:800px) and (min-width:701px){body:has(.game:not(.hidden)) .site-header{height:50px}.game{max-width:clamp(300px,calc((100dvh - 280px)*.75),390px)}.game-heading{margin-bottom:8px}.game-heading h2{font-size:18px}.scoreboard{min-height:68px;padding:8px 15px}.score-block strong{font-size:26px}.time-track{margin-top:12px;height:8px}.turn-label{min-height:30px;padding:7px 0}.game .tile{font-size:22px}.board-wrap{margin-top:4px;margin-bottom:14px}.path-info{min-height:48px;padding:6px 0}.keyboard-help{display:none}body:has(.game:not(.hidden)) footer{margin-top:8px}}
@media(max-height:800px) and (min-width:701px){.site-header{height:60px}.home{margin-top:0}.lobby-title h1{font-size:64px;margin:5px 0}.lobby-title h1 i{font-size:57px}.lobby-title p{margin-top:10px}.mascot-stage{height:177px}.hero-bot{top:40px;scale:.88}.orbit-tile:nth-child(1),.orbit-tile:nth-child(4){top:44px}.orbit-tile:nth-child(5){top:109px}.mascot-message{bottom:0}.mode-card{min-height:87px;padding:11px 19px}.mode-list{margin-top:12px;gap:15px}.lobby-tools{margin-top:19px}footer{margin-top:16px}}

.duel-target-label{display:block;margin:16px 0 8px;font-weight:800}#duel-target{width:100%;padding:12px;border:2px solid #cab8e2;border-radius:12px;background:#f5effc;color:#694398;font:inherit;font-weight:800}.duel-goal{background:#eee5f7;color:#806297}

.hint-progress{text-align:right;font-size:11px;color:#8a6935;margin:-2px 3px 7px}.duel-pressure{text-align:center;font-weight:800;font-size:12px;color:#95682c;background:#fff1be;border-radius:9px;padding:6px;margin-bottom:6px}
.hint-charged{animation:hint-charge .45s ease-in-out 3}
@keyframes hint-charge{50%{box-shadow:0 0 18px #edbe3c;filter:brightness(1.2);transform:scale(1.06)}}
.duel-result-art{position:relative;overflow:hidden;text-align:center;padding:12px 0 8px;background:radial-gradient(ellipse,#fff1bc,transparent 70%);border-radius:20px}.duel-result-art>strong{display:block;color:#a17427;font-size:24px;letter-spacing:2px;margin-top:8px}.result-bot{position:relative;margin:auto;width:92px;height:68px;border:5px solid #c0d9af;border-radius:22px;background:#eff8e8;box-shadow:0 5px 0 #91b47e;animation:bot-arrive .55s ease-out both}.result-bot span{display:block;padding-top:9px;color:#57774a;font-size:23px;font-weight:900}.result-bot b{display:block;line-height:16px;color:#57774a}.defeat{background:radial-gradient(ellipse,#e8dff5,transparent 70%)}.defeat>strong{font-size:18px;color:#8b72a3}.victory-confetti{position:absolute;left:var(--x);top:-12px;width:8px;height:13px;border-radius:2px;background:var(--color);animation:victory-fall 1.6s var(--delay) ease-out both}
@keyframes victory-fall{0%{transform:translateY(-10px) rotate(0);opacity:0}15%{opacity:1}100%{transform:translateY(155px) rotate(300deg);opacity:0}}
@keyframes bot-arrive{0%{transform:scale(.65) translateY(15px);opacity:0}65%{transform:scale(1.08) translateY(-4px)}100%{transform:scale(1);opacity:1}}
#record-hints{margin-bottom:12px}.reduced .hint-charged,.reduced .result-bot{animation:none}.reduced .victory-confetti{display:none}
@media(prefers-reduced-motion:reduce){.hint-charged,.result-bot{animation:none}.victory-confetti{display:none}}

.haptics-button{margin-left:auto;flex-shrink:0;border:1px solid #c9ddc6;border-radius:10px;padding:7px 8px;font-size:10px;color:#547950;background:#f4faee;min-height:34px}.haptics-button:disabled{opacity:.55}.game-heading #pause{margin-left:0}
@media(max-width:700px){
  body:has(.game:not(.hidden)) .site-header,body:has(.game:not(.hidden)) footer{display:none}
  body:has(.game:not(.hidden)){min-height:100svh}
  .game,.game:has(.level-status:not(.hidden)){width:100%;max-width:min(430px,calc((100svh - 320px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * .75 + 28px));margin:0 auto;padding:calc(6px + env(safe-area-inset-top)) 14px calc(6px + env(safe-area-inset-bottom))}
  .game-heading{gap:8px;margin-bottom:8px}.game-heading h2{font-size:17px}.game-heading .eyebrow{font-size:7px;letter-spacing:.3px}.game-heading .back-button,.game-heading .round-button{width:34px;height:34px;min-width:34px}
  .scoreboard{min-height:64px;padding:7px 12px;border-radius:17px}.score-block strong{font-size:26px}.score-block p{margin:3px 0 0;font-size:9px}.duel-goal{padding:3px 6px;min-width:52px}.duel-goal strong{font-size:23px}
  .level-status{margin:7px 0 0;min-height:30px;padding:3px 7px}.time-track{margin-top:9px;height:7px}.board-toolbar{min-height:36px;margin:3px 0 4px}.board-toolbar .turn-label{font-size:9px}.hint-button{min-height:32px;padding:5px 9px}
  .game .board{gap:4px}.game .tile{font-size:clamp(18px,6vw,25px)}.board-wrap{margin:8px 0 14px}.path-info{min-height:38px;padding:4px 0;font-size:12px}.path-info small{font-size:9px;margin-top:3px}.keyboard-help{display:none}.hint-progress{font-size:10px;margin-bottom:4px}.duel-pressure{font-size:10px;padding:4px;margin-bottom:4px}
}


.pause-settings{display:flex;gap:10px;margin:8px 0 18px}.pause-settings button{min-height:44px;padding:8px 16px;border:1px solid #bdd5b4;background:#f4faee;border-radius:12px;color:#527747}.pause-settings button:disabled{opacity:.5}
/* Mobile board sizing follows width, never the remaining viewport height. */
@media(max-width:700px){
 .game,.game:has(.level-status:not(.hidden)){position:relative;display:flex;flex-direction:column;width:100%;max-width:none;height:auto;min-height:0;padding:calc(8px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));gap:6px}
 .game.hidden{display:none}.game-heading{display:contents}.game-heading>div,.game-heading #exit-game,.game-heading #game-haptics{display:none}.game-heading #pause{position:absolute;top:calc(16px + env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));width:40px;height:40px;z-index:5}
 .scoreboard{order:0;flex-shrink:0;min-height:60px;padding:6px 57px 6px 14px;box-shadow:0 3px 0 #baceb7;border-radius:18px}.score-block strong{font-size:27px}.score-block small{font-size:9px}.score-block p{font-size:9px;margin:0}.duel-goal{min-width:48px}.duel-goal strong{font-size:22px}
 .level-status{order:1;flex-shrink:0;min-height:24px;margin:0;padding:0 6px;background:transparent}.level-status small,.level-dots{display:none}.level-status b{font-size:10px}.level-badge{padding:3px 7px;font-size:10px}
 .time-track{order:2;flex-shrink:0;height:5px;margin:0 0 2px}.duel-pressure{order:5;margin:0;flex-shrink:0;padding:3px;font-size:10px}
 .board-wrap{order:6;flex:none;width:100%;aspect-ratio:3 / 4;min-height:0;margin:18px 0 16px}.board-wrap:before{inset:-5px -5px -7px;border-radius:19px;box-shadow:inset 0 2px 5px #6a9a7125,0 4px 0 #9fbda9}.game .board{height:100%;grid-template-rows:repeat(8,minmax(0,1fr));gap:5px}.game .tile{aspect-ratio:auto;min-width:0;min-height:0;font-size:clamp(24px,7vw,32px)}
 .board-toolbar{order:3;flex-shrink:0;min-height:44px;margin:0;gap:10px}.board-toolbar .turn-label{font-size:10px;padding:0}.hint-button{min-height:44px;padding:8px 17px;font-size:13px;border-radius:14px}.hint-progress{order:4;flex-shrink:0;margin:-2px 2px 0;font-size:10px;line-height:12px}
 .path-info{order:7;flex-shrink:0;min-height:18px;margin:0;padding:0;font-size:12px;line-height:18px}.path-info small{display:none}.game[data-mode="tutorial"] .path-info small{display:block}.keyboard-help{display:none}
}

.share-preview{display:block;width:100%;max-height:43svh;object-fit:contain;border-radius:16px}.share-download{display:block;text-align:center;text-decoration:none;padding:12px;margin-top:10px}#share-message{font-size:12px;color:#628370}
.daily-card{display:flex;flex-direction:column;gap:7px;width:100%;margin:14px 0 0;padding:17px 20px;text-align:left;background:#fff5d6;border:2px solid #e6c56a;border-radius:20px;color:#725823;box-shadow:0 4px 0 #dfc580}.daily-card>span{font-weight:900;font-size:20px}.daily-card small{font-size:12px}.share-copy{font-size:18px;line-height:1.6;font-weight:700}.share-site{display:block;color:#24754f;text-align:center;margin:12px 0;overflow-wrap:anywhere}#share-card-area details{margin:16px 0}#share-card-area summary{cursor:pointer;padding:12px;background:#eef4eb;border-radius:12px}#share-message textarea{width:100%;min-height:130px}.languages{display:flex;align-items:center;gap:4px}.languages a{font:700 11px system-ui;padding:7px 6px;text-decoration:none;color:#54745c;border-radius:8px}.languages a[aria-current="page"]{background:#d9ead7;color:#275a3d}.site-header nav{flex-wrap:wrap;justify-content:flex-end}footer a{color:inherit;font-size:12px}.info-page{max-width:760px;margin:40px auto;padding:24px;line-height:1.9}.info-page h1{font-size:32px}.info-page h2{font-size:21px;margin-top:30px}.info-page a{color:#326c50}.info-page .primary{display:inline-block;padding:12px 24px;text-decoration:none}.info-page li{margin-bottom:10px}
@media(max-width:700px){.site-header{gap:8px}.site-header nav{gap:5px}.site-header .brand{font-size:17px}.languages a{padding:7px 4px;font-size:10px}.daily-card{padding:13px 16px}.daily-card>span{font-size:17px}html[lang="en"] .lobby-title .game-logo,html[lang="ja"] .lobby-title .game-logo{font-family:system-ui,sans-serif;font-size:48px;font-weight:900;color:#38986f;letter-spacing:-2px}html[lang="en"] .mode-card strong{font-size:23px}html[lang="en"] .mode-tag{font-size:10px}.site-header #records-nav{font-size:11px}}

@font-face{font-family:PopJua;src:url('/assets/cf17c0ffec8b87596209/Jua-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:block}
/* Rounded lettering, with one outside shadow instead of offset copies of the glyph. */
.lobby-title .game-logo{display:flex;justify-content:center;align-items:center;gap:.06em;font-family:PopJua,sans-serif;font-size:88px;letter-spacing:0;line-height:1.25;transform:none;margin:12px 0 10px;text-shadow:none;filter:drop-shadow(0 5px 0 #79ac872e)}
.game-logo .logo-letter{display:block;font-family:inherit;font-weight:400;font-synthesis:none;color:#4baa80;-webkit-text-stroke:5px #fffdf0;paint-order:stroke fill;text-shadow:none;transform:rotate(-5deg);position:relative}
.game-logo .logo-letter:nth-child(2){transform:translateY(-2px) rotate(3deg);color:#36986f}
.game-logo .pop-letter{color:#f2bd46;transform:translateY(-5px) rotate(-5deg);text-shadow:none}
.game-logo .bang-letter{color:#f29379;font-size:.95em;margin-left:.01em;transform:translateY(1px) rotate(9deg);text-shadow:none}
@media(max-width:700px){.lobby-title .game-logo{font-size:clamp(62px,20vw,80px);margin:12px 0 14px;gap:.06em}.game-logo .logo-letter{-webkit-text-stroke-width:4px}.lobby-title p{margin-top:10px}}

@media(max-width:700px){html:not([lang="ko"]) .site-header .brand{font-size:13px;white-space:nowrap;gap:5px}html:not([lang="ko"]) .site-header .brand-icon{width:25px;height:29px;flex-shrink:0}html:not([lang="ko"]) .site-header nav{flex-wrap:nowrap;gap:3px}html:not([lang="ko"]) #records-nav{padding:8px 6px;font-size:10px}html:not([lang="ko"]) .site-header .icon-button{width:30px;height:33px}}

.game-guide{margin:34px 0 0;padding:26px 0;border-top:1px solid #a4b9a94d;text-align:left;color:#486650;font-size:14px;line-height:1.85}.game-guide h2{font-size:21px;line-height:1.5;letter-spacing:-.5px;margin:25px 0 12px}.game-guide h2:first-child{margin-top:0}.game-guide h3{font-size:16px;margin:20px 0 8px}.game-guide p{margin:8px 0 16px}.game-guide a,.info-page a:not(.primary){text-decoration:underline;text-underline-offset:3px}.game-guide dt,.info-page dt{font-weight:800;margin:18px 0 4px}.game-guide dd,.info-page dd{margin:0 0 14px}.game-guide details,.info-page details{padding:14px 0;border-bottom:1px solid #a4b9a94d}.game-guide summary,.info-page summary{cursor:pointer;font-weight:700}.game-guide details p,.info-page details p{margin-bottom:0}.guide-links{display:flex;flex-wrap:wrap;gap:12px 18px;margin:24px 0;font-size:13px}.guide-links a[aria-current="page"]{font-weight:900}.info-page h3{font-size:17px;margin:23px 0 8px}.rule-example{display:flex;align-items:center;justify-content:center;gap:8px;padding:22px 0}.rule-example span{display:grid;place-items:center;width:58px;height:64px;background:#60b896;border-radius:16px;color:white;font-size:30px;font-weight:800;box-shadow:0 4px #408869}.rule-example span:nth-of-type(2){background:#71adcf}.rule-example span:nth-of-type(3){background:#ae94ca}.rule-example span:nth-of-type(4){background:#e6a08b}.rule-example span:nth-of-type(5){background:#dcb762}.contact-email{overflow-wrap:anywhere;font-weight:800}footer>div{flex-wrap:wrap;justify-content:center}@media(max-width:400px){.rule-example{gap:4px}.rule-example span{width:42px;height:50px;font-size:25px}.rule-example b{font-size:12px}}

.portal-back{align-self:flex-start;font-size:11px;color:#63816a;padding:6px 0 10px;text-decoration:underline;text-underline-offset:3px}

.version-update{position:fixed;z-index:10000;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);padding:12px 18px;border-radius:16px;background:#245c49;color:#fff;font-size:13px;box-shadow:0 4px 18px #143e4933}


#ad-slot:empty{display:none}#ad-slot:not(:empty){margin:150px auto 32px;max-width:728px;text-align:center}#ad-slot>p{font-size:11px;color:#64786c;letter-spacing:.08em}.ad-placeholder{min-height:250px;display:grid;place-content:center;gap:10px;padding:20px;box-sizing:border-box;border:2px dashed #a3b9ab;border-radius:14px;background:#eef4ef;color:#5b7365}.ad-placeholder small{font-size:12px}.share-download.primary{display:block;text-align:center}

#home #ad-slot{grid-column:1 / -1;width:100%;box-sizing:border-box}#ad-slot.ad-reserved{min-height:286px}#ad-slot .adsbygoogle{display:block;width:100%;height:250px}#home.hidden #ad-slot{display:none!important}

#share-card-area .share-preview{display:block;width:auto;max-width:100%;max-height:32dvh;margin:0 auto 12px;object-fit:contain;border-radius:14px}

.board-cover #resume,.board-cover #pause-exit{width:min(88%,300px);min-height:54px;padding:14px 18px;font-size:17px;font-weight:800;flex-shrink:0}
.board-cover #pause-exit{margin-top:14px;border:2px solid #7c9d84;background:#f7fbef;color:#456c52;box-shadow:0 4px 0 #a1b99c;border-radius:16px}
.duel-goal .duel-turn-clock{display:flex;align-items:center;justify-content:center;gap:3px;min-height:22px;border-radius:8px;white-space:nowrap;font-variant-numeric:tabular-nums}
.turn-clock-icon{display:inline-block;font-size:21px;line-height:1;transform-origin:center}
.duel-goal .clock-pressure{background:#ffe0cf;color:#b8422e;box-shadow:0 0 0 2px #e9a889;animation:clock-tick .35s ease-out}
.clock-pressure .turn-clock-icon{animation:clock-shake .24s linear infinite}
.clock-pressure .turn-clock-seconds{font-weight:900;font-size:11px}
@keyframes clock-shake{0%,100%{transform:rotate(-14deg)}25%,75%{transform:rotate(14deg)}50%{transform:rotate(-9deg)}}
@keyframes clock-tick{0%{transform:scale(1.13);background:#ffb497}100%{transform:scale(1);background:#ffe0cf}}
.reduced .clock-pressure,.reduced .clock-pressure .turn-clock-icon{animation:none}
@media(prefers-reduced-motion:reduce){.clock-pressure,.clock-pressure .turn-clock-icon{animation:none!important}}

.result-screen{width:100%;max-width:480px;margin:0 auto;padding:24px 18px 36px;box-sizing:border-box;color:#2e4438}
.result-screen h2{font-size:25px;text-align:center;margin:0 0 14px}.result-screen .big-score{text-align:center;font-size:60px;font-weight:800;color:#32765a;margin:18px 0}.result-screen .result-sub{text-align:center;font-size:13px;line-height:1.8;color:#6d846f}.result-screen .notice{line-height:1.8}.result-screen #result-content{padding:22px 18px;border:3px solid #fff;border-radius:24px;background:#f7fbf0;box-shadow:0 5px 0 #bacdb4}
body:has(.result-screen:not(.hidden)) .site-header,body:has(.result-screen:not(.hidden)) footer{display:none}
#result-ad-slot:empty{display:none}#result-ad-slot:not(:empty){margin:48px auto 24px;max-width:728px;text-align:center;min-height:286px}#result-ad-slot>p{font-size:11px;color:#64786c}#result-ad-slot .adsbygoogle{display:block;width:100%;height:250px}

/* Short, local feedback leaves board geometry stable while dragging. */
.game .tile.selected{border-color:#fffbd0;box-shadow:inset 0 2px 3px #fff,0 4px 0 var(--tile-base),0 0 0 3px #258666,0 0 16px #e9ffad;filter:saturate(1.3) brightness(1.09)}
.path-lines line{stroke:#fff2a5;stroke-width:7;filter:drop-shadow(0 1px 2px #267358)}
.pop-star{position:absolute;font-style:normal;font-size:52px;line-height:1;color:#fff8bc;text-shadow:0 0 8px var(--burst-color);animation:success-star .5s ease-out both}
@keyframes success-star{0%{transform:translate(-50%,-50%) scale(.2) rotate(-40deg);opacity:0}30%{opacity:1;transform:translate(-50%,-50%) scale(1.25) rotate(10deg)}100%{transform:translate(-50%,-75%) scale(.4) rotate(80deg);opacity:0}}
.game .tile.removing{animation:strong-pop .24s ease-in both}
@keyframes strong-pop{0%{transform:scale(1)}35%{transform:scale(1.16);filter:brightness(1.3)}100%{transform:scale(.25);opacity:0}}
.pop-ring{border-width:4px}.pop-reward strong{font-size:45px}.pop-reward span{font-size:15px}.pop-reward.perfect strong{font-size:53px}
.invalid-frame{position:absolute;inset:-4px;border:3px solid #d76b61;border-radius:20px;box-shadow:inset 0 0 18px #e66e6433;animation:reject-fade .65s ease-out both}
.invalid-mark{position:absolute;display:flex;flex-direction:column;align-items:center;pointer-events:none;color:#a52f30;transform:translate(-50%,-50%);animation:reject-bump .65s ease-out both;white-space:nowrap}
.invalid-mark b{font-size:42px;line-height:1;background:#fff2ed;border:3px solid #e88979;border-radius:50%;width:45px;height:45px;text-align:center}.invalid-mark span{font-size:12px;font-weight:800;background:#fff3ef;border:1px solid #e69c90;border-radius:10px;padding:5px 8px;margin-top:5px}
@keyframes reject-bump{0%{opacity:1;transform:translate(-50%,-50%) rotate(-8deg)}20%{transform:translate(-50%,-50%) rotate(7deg)}40%{transform:translate(-50%,-50%) rotate(-3deg)}70%{opacity:1}100%{opacity:0;transform:translate(-50%,-60%)}}
@keyframes reject-fade{0%,50%{opacity:1}100%{opacity:0}}
.reduced .pop-star{display:none}.reduced .invalid-mark,.reduced .invalid-frame{animation:none}
@media(prefers-reduced-motion:reduce){.pop-star{display:none}.invalid-mark,.invalid-frame{animation:none!important}}

.result-screen{padding-top:16px}.result-screen #result-content{padding:18px 16px}.result-screen h2{font-size:23px;margin-bottom:8px}.result-screen .big-score{font-size:54px;margin:10px 0}.result-screen .result-sub{line-height:1.55;margin:8px 0}.result-screen .result-stats{padding:10px;margin:12px 0}
.result-actions>.primary{min-height:52px;font-size:16px}.result-main-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.result-main-actions .secondary{margin:0;min-height:56px;font-size:15px;font-weight:800;padding:12px 8px}.result-main-actions [data-action="home"]{background:#e2ecd9;color:#41664e;border:2px solid #a5be97}
.result-more{margin-top:16px;border-top:1px solid #dbe5d3;padding-top:4px}.result-more summary{cursor:pointer;padding:12px 6px;min-height:44px;box-sizing:border-box;font-size:13px;font-weight:700;color:#5d765c}.result-more .secondary{min-height:48px}

#share-content{padding:18px 16px;border:3px solid #fff;border-radius:24px;background:#f7fbf0;box-shadow:0 5px 0 #bacdb4}#share-content .share-copy{font-size:15px;line-height:1.65;margin:16px 0}#share-content .primary,#share-content .secondary{min-height:52px;font-size:15px}#share-content .share-preview{max-height:340px;max-width:100%}#share-content .notice{font-size:12px!important;line-height:1.7}
#share-ad-slot:empty{display:none}#share-ad-slot:not(:empty){margin:48px auto 24px;max-width:728px;text-align:center;min-height:286px}#share-ad-slot>p{font-size:11px;color:#64786c}#share-ad-slot .adsbygoogle{display:block;width:100%;height:250px}

.score-block{position:relative}.score-block .time-penalty{position:absolute;right:0;bottom:-14px;color:#ad3939;background:#fff0e9;border-radius:8px;padding:2px 7px;font-size:12px;font-weight:800;white-space:nowrap}

/* Persistent turn ownership and a one-second, timer-free handoff announcement. */
#board-cover.turn-notice{position:fixed;inset:0;z-index:100;background:#183b36e8;color:#fff;backdrop-filter:blur(5px);border-radius:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center;gap:16px;box-sizing:border-box}
#board-cover.turn-notice strong{font-size:clamp(28px,8vw,48px);color:#ffdf84;line-height:1.3}
#board-cover.turn-notice p{font-size:clamp(18px,5vw,26px);font-weight:800;margin:0;color:white}
#board-cover.turn-notice small{font-size:15px;color:#dbede6}.turn-notice-icon{font-size:60px;line-height:1.2}

.game[data-duel-turn="player"] .board-wrap,.game[data-duel-turn="bot"] .board-wrap{border-radius:19px}
.game[data-duel-turn="player"] .score-block,.game[data-duel-turn="bot"] .score-block{min-width:64px;padding:3px;text-align:center}
#board-cover.turn-notice strong{text-shadow:none}

/* Active player leads; the waiting opponent stays readable and secondary. */
.game[data-duel-turn="player"] .scoreboard,.game[data-duel-turn="bot"] .scoreboard{display:grid;grid-template-columns:1.4fr 1fr .85fr;gap:10px;align-items:center;background:linear-gradient(140deg,#edf4ed,#dee9e4);min-height:110px}
.game[data-duel-turn="bot"] .scoreboard{grid-template-columns:.85fr 1fr 1.4fr}
.game[data-duel-turn="player"] .score-block,.game[data-duel-turn="bot"] .score-block{min-width:0;padding:8px 4px;border-radius:17px;box-shadow:none;background:transparent;text-align:center;transition:background .2s,color .2s}
.game[data-duel-turn="player"] .score-block small,.game[data-duel-turn="bot"] .score-block small{display:block;font-size:13px;color:#778780;font-weight:800}
.game[data-duel-turn="player"] .score-block strong,.game[data-duel-turn="bot"] .score-block strong{font-size:25px;color:#83918a}
.game[data-duel-turn="player"] .score-block p,.game[data-duel-turn="bot"] .score-block p{font-size:9px;color:#75827b;white-space:nowrap}
.game[data-duel-turn="player"] .score-block:first-child{background:linear-gradient(145deg,#fffef1,#f8e7aa);box-shadow:0 4px 0 #c6b56e,0 7px 12px #5c664d20;border:2px solid #fffdf0}
.game[data-duel-turn="bot"] .score-block:last-child{background:linear-gradient(145deg,#faf5ff,#dbcafa);box-shadow:0 4px 0 #ab92ce,0 7px 12px #68518520;border:2px solid #fffaff}
.game[data-duel-turn="player"] .score-block:first-child small,.game[data-duel-turn="bot"] .score-block:last-child small{font-size:23px;font-weight:900;color:#3d5547;line-height:1.15}
.game[data-duel-turn="player"] .score-block:first-child strong,.game[data-duel-turn="bot"] .score-block:last-child strong{font-size:38px;color:#285d48;line-height:1.15}
.game[data-duel-turn="bot"] .score-block:last-child small,.game[data-duel-turn="bot"] .score-block:last-child strong{color:#60438a}
.game[data-duel-turn] .duel-goal{background:transparent;min-width:0;padding:0}.game[data-duel-turn] .duel-goal>strong{font-size:23px;color:#63756b}.game[data-duel-turn] .duel-goal>small{font-size:10px}
.game[data-duel-turn] .duel-turn-clock{display:flex;justify-content:center;align-items:center;gap:3px;margin-top:7px;padding:5px 3px;background:#fffdf5;border:1px solid #e2d9bd;border-radius:9px;color:#85673d;font-weight:800;white-space:nowrap}
.game[data-duel-turn="player"] #turn-label,.game[data-duel-turn="bot"] #turn-label{display:flex;align-items:center;gap:10px;background:transparent;color:#274f40;padding:4px 2px;min-height:52px;text-align:left}
.game[data-duel-turn] #turn-label:before,.game[data-duel-turn] #turn-label:after{display:none}
.turn-emblem{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;font-size:25px;color:#fff7bc;background:linear-gradient(145deg,#4ca27e,#24684e);border:2px solid #fff7d2;border-radius:14px;box-shadow:0 3px 0 #21573f;transform:rotate(-7deg)}
.turn-copy{display:flex;flex-direction:column;gap:2px}.turn-copy strong{font-size:21px;font-weight:900;letter-spacing:-.5px;line-height:1.15}.turn-copy small{font-size:11px;color:#72877d;font-weight:600}
.game[data-duel-turn="bot"] .turn-emblem{color:#fff3cb;background:linear-gradient(145deg,#a388cd,#6b4c94);box-shadow:0 3px 0 #513671;transform:rotate(7deg)}
.game[data-duel-turn="bot"] .turn-copy strong{color:#6b4c94}
.game[data-duel-turn="player"] .board-wrap{outline:2px solid #6ba889;outline-offset:4px}.game[data-duel-turn="bot"] .board-wrap{outline:2px solid #a995c6;outline-offset:4px}
.game[data-duel-turn="bot"] #time-fill{background:#a995c6}
@media(max-width:360px){.game[data-duel-turn="player"] .scoreboard,.game[data-duel-turn="bot"] .scoreboard{gap:5px;padding-left:9px;padding-right:46px}.game[data-duel-turn] .duel-turn-clock{font-size:9px}.turn-copy strong{font-size:19px}.turn-emblem{width:36px;height:36px}.game[data-duel-turn] .score-block p{font-size:8px}}

/* A text-free veil signals bot ownership while keeping the next move readable. */
.game[data-duel-turn="bot"] .board-wrap:before{background:linear-gradient(145deg,#e9dff4,#c5b8dc);border-color:#f5eeff;box-shadow:inset 0 3px 7px #70568b25,0 4px 0 #ac97c4}
.game[data-duel-turn="bot"] .board-wrap:after{content:"";position:absolute;inset:0;border-radius:17px;z-index:3;pointer-events:none;background:linear-gradient(145deg,#57477529,#8372a538);box-shadow:inset 0 0 24px #63507c33}
.game[data-duel-turn="bot"] .board .tile:not(.selected):not(.removing){filter:saturate(.72)}
.game[data-duel-turn="bot"] .path-lines{z-index:4}
.game[data-duel-turn="player"] .board-wrap:before{background:linear-gradient(145deg,#f3fae8,#cee5cf)}

#share-content{background:linear-gradient(155deg,#fffdf3,#eff8ed 55%,#f0eafa);padding:24px 18px;border-radius:28px}#share-content h2{font-size:26px;color:#285e49;margin:0 0 8px;letter-spacing:-1px}.share-intro{font-size:13px;color:#728477;margin:0 0 18px}.share-card-stage{padding:12px;background:linear-gradient(145deg,#d5eadb,#e8def4);border-radius:22px;min-height:240px;display:grid;place-items:center}.share-card-stage .share-preview{display:block;width:100%;max-width:340px;max-height:none;height:auto;border-radius:16px;box-shadow:0 6px 16px #3d665426}.share-caption{font-size:12px;color:#6a7f70;margin:16px 0}.share-utilities{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.share-utilities .secondary{width:100%;margin:0!important;display:flex;align-items:center;justify-content:center;font-size:13px!important;padding:10px 5px}.share-status{font-size:13px;color:#2e7456;font-weight:700}.share-status:empty{display:none}.share-platform-note{font-size:11px;color:#7c897f;line-height:1.6;margin:16px 6px}.share-example{display:inline-block;background:#fff1cb;color:#8e7446;border-radius:20px;padding:4px 12px;font-size:11px;margin:0 0 12px}

#share-save .share-download{display:flex;align-items:center;justify-content:center;min-height:52px;margin-top:18px;width:100%}

/* Keep difficulty visible on compact screens, including progression details. */
.game .level-status{min-height:48px;padding:7px 10px;margin:4px 0;background:linear-gradient(110deg,#fff8df,#f5f8ed);border:1px solid #e4d9b7;border-radius:13px;gap:10px}
.game .level-badge{font-size:16px;padding:7px 9px;white-space:nowrap}
.game .level-status b{font-size:12px;color:#536c54}
.game .level-status small{display:block;font-size:11px;color:#768269;margin-top:3px}
.game .level-dots{display:flex;flex-shrink:0}.game .level-dots i{width:6px;height:15px}
.game[data-duel-turn="player"] .level-status,.game[data-duel-turn="bot"] .level-status{min-height:42px;background:#f4eef9;border-color:#ddd1eb}
@media(max-width:360px){.game .level-status{padding:6px 8px;gap:7px}.game .level-status b{font-size:11px}.game .level-status small{font-size:10px}.game .level-badge{font-size:14px}.game .level-dots{gap:2px}}

/* Compact mobile HUD: keep the full-width board and readable level details. */
@media(max-width:700px){
 body:has(.game:not(.hidden)) .site-header,body:has(.game:not(.hidden)) footer{display:none!important}
 .game,.game:has(.level-status:not(.hidden)){margin-top:0;gap:4px;padding-top:calc(4px + env(safe-area-inset-top))}
 .game .scoreboard{min-height:58px;padding-top:4px;padding-bottom:4px}
 .game[data-duel-turn="player"] .scoreboard,.game[data-duel-turn="bot"] .scoreboard{min-height:86px;gap:7px}
 .game[data-duel-turn="player"] .score-block,.game[data-duel-turn="bot"] .score-block{padding:4px 3px}
 .game[data-duel-turn="player"] .score-block:first-child small,.game[data-duel-turn="bot"] .score-block:last-child small{font-size:20px}
 .game[data-duel-turn="player"] .score-block:first-child strong,.game[data-duel-turn="bot"] .score-block:last-child strong{font-size:31px}
 .game .level-status,.game[data-duel-turn="player"] .level-status,.game[data-duel-turn="bot"] .level-status{min-height:34px;padding:4px 8px;margin:2px 0;gap:8px}
 .game .level-status>span:nth-child(2){display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px}
 .game .level-status b{font-size:11px}.game .level-status small{font-size:10px;margin:0}.game .level-badge{font-size:13px;padding:4px 6px}
 .game .board-toolbar{min-height:44px}.game[data-duel-turn="player"] #turn-label,.game[data-duel-turn="bot"] #turn-label{min-height:44px;padding:0 2px;gap:8px}
 .game .turn-emblem{width:34px;height:34px;font-size:21px}.game .turn-copy strong{font-size:19px}.game .turn-copy small{font-size:10px}
 .game .board-wrap{margin-top:14px;margin-bottom:10px}
 .game-heading #pause{top:calc(10px + env(safe-area-inset-top));min-width:44px;min-height:44px;width:44px;height:44px}
}
