@font-face{font-family:Arabic;src:url('./assets/arabic-regular.woff2') format('woff2');font-display:swap}@font-face{font-family:Arabic;src:url('./assets/arabic-bold.woff2') format('woff2');font-display:swap;font-weight:700}*{box-sizing:border-box} :root{--bg:#faf8f2;--card:#fff;--ink:#1a1a1a;--muted:#77766d;--line:#e8e4d9;--green:#7ca354;--deep:#5c8a3b;--yellow:#edae3e;--soft:#f0ede4;--shadow:0 12px 40px #3c452009}html[data-theme=dark]{--bg:#111114;--card:#242427;--ink:#f2f2f7;--muted:#b3b3b5;--line:#3b3b40;--soft:#303034;--shadow:0 12px 40px #0002}body{margin:0;background:var(--bg);color:var(--ink);font:15px Arabic,sans-serif;min-height:100dvh}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}button{border:0;color:inherit}a{color:inherit;text-decoration:none}.shell{max-width:1080px;margin:auto;padding:0 32px;position:relative}header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.wordmark{font-weight:700;font-size:25px;color:var(--deep)}.wordmark span{display:block;font-size:10px;color:var(--muted);letter-spacing:.5px}.header-actions{display:flex;gap:10px;align-items:center}.icon,.close{width:39px;height:39px;background:var(--card);border:1px solid var(--line);border-radius:13px;font-size:20px}.badge,.eyebrow{font-size:11px;color:var(--deep);background:#7ca35414;padding:7px 13px;border-radius:30px}.badge.off{color:#b45c3b}main{min-height:calc(100dvh - 174px)}.hero{text-align:center;padding:30px 0 10px}.logo{width:260px;height:160px;object-fit:contain}.hero h1{font-size:28px;margin:0 0 6px;line-height:1.7}.hero p{color:var(--muted);margin:0}.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;max-width:760px;margin:28px auto}.mode-card{display:flex;align-items:center;text-align:right;padding:28px 28px 30px;border-radius:24px;gap:20px;transition:transform .15s;box-shadow:0 6px 0 var(--deep);background:var(--green);color:white;min-height:150px}.mode-card:hover{transform:translateY(-3px)}.mode-card:active{transform:translateY(4px)}.mode-card.gold{background:var(--yellow);box-shadow:0 6px 0 #c98a26;color:#30260c}.mode-card img{width:70px;height:70px;object-fit:contain}.mode-card strong{font-size:23px;display:block}.mode-card small{font-size:12px;opacity:.85}.home-bottom{max-width:760px;margin:35px auto;display:flex;justify-content:space-between;align-items:center;gap:15px}.subtle{font-size:12px;color:var(--muted)}.text-button{background:transparent;color:var(--deep);font-weight:700;padding:8px}.profile{display:flex;align-items:center;gap:10px}.avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:var(--soft);color:var(--deep);font-weight:700}.profile small{display:block;font-size:10px;color:var(--muted)}.panel{background:var(--card);border:1px solid var(--line);border-radius:24px;padding:26px;box-shadow:var(--shadow);max-width:580px;margin:25px auto}.panel h1,.panel h2{margin:0 0 8px;font-size:23px}.panel p{color:var(--muted)}.stack{display:grid;gap:14px}.btn{padding:13px 22px;background:var(--green);border-radius:14px;color:white;font-weight:700;box-shadow:0 3px 0 var(--deep)}.btn.secondary{background:var(--soft);color:var(--ink);box-shadow:none}.btn.gold{background:var(--yellow);color:#30260c;box-shadow:0 3px 0 #c98a26}.btn.danger{color:#bc5248;background:#bc52480d;box-shadow:none}input,select{display:block;width:100%;padding:12px 14px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:13px}label{display:block;font-size:12px;color:var(--muted)}label input,label select{margin-top:5px}.row{display:flex;align-items:center;gap:12px}.row>*{flex:1}.back{display:block;background:transparent;color:var(--muted);margin:20px 0 0}.divider{text-align:center;color:var(--muted);font-size:12px;margin:18px}.room-code{font-size:36px;letter-spacing:8px;font-weight:700;color:var(--deep);direction:ltr;text-align:center;margin:10px}.player{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.player .name{flex:1}.player small{color:var(--muted)}.game{max-width:580px;margin:20px auto}.game-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.game-top h1{font-size:18px;margin:0}.game-top p{font-size:11px;margin:0;color:var(--muted)}.pill{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:7px 12px;font-size:12px}.board{display:grid;gap:7px;max-width:340px;margin:24px auto;direction:rtl}.board-row{display:grid;grid-template-columns:repeat(var(--length,5),1fr);gap:7px}.tile{aspect-ratio:1;border:2px solid var(--line);border-radius:11px;display:grid;place-items:center;font-size:28px;font-weight:700;background:var(--card);transition:background .2s,transform .2s}.tile.filled{border-color:var(--green);transform:scale(1.03)}.correct{background:#5c8a3b!important;color:white!important;border-color:#5c8a3b!important}.present{background:#c98a26!important;color:white!important;border-color:#c98a26!important}.absent{background:#9e9e9e!important;color:white!important;border-color:#9e9e9e!important}.keyboard{display:grid;gap:7px;direction:rtl;margin:20px -8px}.key-row{display:flex;justify-content:center;gap:5px}.key{flex:1;max-width:48px;height:49px;min-width:0;border-radius:9px;background:var(--soft);font-size:18px;touch-action:manipulation}.key.wide{max-width:85px;font-size:12px;flex:1.9}.status{text-align:center;color:var(--muted);font-size:12px;min-height:28px}.result{border:1px solid var(--line);background:var(--card);border-radius:18px;padding:18px;text-align:center;margin:16px 0}.result h2{margin:0;font-size:21px}.result p{font-size:13px}.scorebar{display:flex;gap:8px;overflow-x:auto;padding:5px 0}.scorebar .pill{white-space:nowrap}.rules{display:flex;gap:8px;align-items:center;font-size:12px;margin:14px 0}.swatch{width:30px;height:30px;border-radius:7px;flex-shrink:0}.ambient{position:fixed;inset:0;pointer-events:none;overflow:hidden;opacity:.07;color:var(--deep);font-size:80px;font-weight:700}.ambient span{position:absolute;transform:rotate(-15deg)}.ambient span:nth-child(1){top:20%;right:5%}.ambient span:nth-child(2){top:60%;left:7%;transform:rotate(20deg)}.ambient span:nth-child(3){top:75%;right:15%}.ambient span:nth-child(4){top:9%;left:20%}.ambient span:nth-child(5){top:45%;right:35%}footer{height:74px;display:flex;align-items:center;justify-content:center;gap:13px;color:var(--muted);font-size:10px}footer span{opacity:.4}dialog{background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:24px;max-width:460px;width:calc(100% - 32px);padding:28px;box-shadow:0 30px 100px #0003}dialog::backdrop{background:#151b1266;backdrop-filter:blur(5px)}dialog h2{margin-top:10px}.close{float:left}.toast-show{opacity:1!important;transform:translate(-50%,0)!important}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,15px);opacity:0;transition:.2s;background:var(--ink);color:var(--bg);border-radius:14px;padding:12px 22px;z-index:5;text-align:center;max-width:90%;pointer-events:none;font-size:13px}.loading{text-align:center;padding:70px 15px;color:var(--muted)}.spin{display:block;width:30px;height:30px;border:3px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite;margin:25px auto}@keyframes spin{to{transform:rotate(360deg)}}table{width:100%;border-collapse:collapse;font-size:13px}td,th{text-align:right;padding:12px 6px;border-bottom:1px solid var(--line)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:640px){.shell{padding:0 18px}header{height:78px}.badge{font-size:9px;padding:6px 9px}.wordmark{font-size:21px}.hero{padding-top:20px}.hero h1{font-size:23px}.logo{width:225px;height:145px}.home-grid{grid-template-columns:1fr;gap:22px;margin:24px 5px}.mode-card{min-height:115px;padding:18px 23px}.mode-card img{width:60px;height:60px}.mode-card strong{font-size:22px}.home-bottom{margin:30px 8px;align-items:flex-start}.subtle{max-width:145px}.panel{padding:22px 18px}.board{max-width:310px;margin:20px auto}.tile{font-size:26px}.key{height:47px;font-size:16px}.key-row{gap:4px}.keyboard{gap:5px}.game{margin-top:16px}footer{height:60px;font-size:9px}.row{gap:8px}main{min-height:calc(100dvh - 138px)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Browser edition: comfortable controls, reference keyboard and tile motion. */
[hidden]{display:none!important}html{color-scheme:light;scroll-padding-top:14px}html[data-theme=dark]{color-scheme:dark}.shell{padding-bottom:env(safe-area-inset-bottom,0)}button{touch-action:manipulation}input,select{font-size:16px}button,a{-webkit-user-select:none;user-select:none}.browser-notice{padding:12px 18px;background:var(--soft);border:1px solid var(--line);border-radius:12px;font-size:12px;margin:12px 0;line-height:1.8}.page-in{animation:page-in .24s ease-out}.game{max-width:800px}.game-top{max-width:540px;margin:0 auto 12px}.game-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}.board{width:min(100%,310px);max-width:310px;margin:18px auto 12px;gap:6px}.board.short-word{width:186px}.board-row{gap:6px}.tile{background:none!important;border:0;border-radius:9px;font-size:27px;perspective:650px;transition:none;position:relative}.tile-inner{width:100%;height:100%;position:relative;transform-style:preserve-3d}.tile-front,.tile-back{position:absolute;inset:0;border:2px solid var(--line);border-radius:9px;display:grid;place-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:var(--card)}.tile-back{transform:rotateX(180deg)}.tile.evaluated .tile-inner{transform:rotateX(180deg)}.tile.filled{transform:none}.tile.filled .tile-front{border-color:var(--green)}.letter-pop{animation:letter-pop .17s ease-out}.status{margin:6px 0;min-height:25px;font-size:12px}.typing-tools{display:flex;align-items:center;justify-content:space-between;max-width:540px;margin:4px auto}.typing-hint{font-size:11px;color:var(--muted)}.typing-tools .text-button{font-size:11px;padding:7px 4px}.native-bar{display:flex;gap:8px;align-items:center;max-width:540px;margin:8px auto 12px}.native-bar input{flex:1;min-width:0;text-align:center;letter-spacing:4px}.keyboard{margin:10px -6px 0;padding:6px;background:#0e0e0f;border-radius:13px;gap:6px;direction:ltr}.key-row{direction:ltr;display:grid;grid-template-columns:repeat(var(--keys),minmax(0,1fr));gap:7px}.key{font-family:Arabic,sans-serif;display:flex;align-items:center;justify-content:center;min-width:0;max-width:none;flex:none;height:53px;border:1px solid #414141;border-radius:8px;background:linear-gradient(#262626,#202020);color:#fff;font-size:22px;font-weight:700;box-shadow:0 1px 0 #ffffff09 inset;line-height:1;direction:rtl;padding:0;transition:background .15s,border-color .15s}.key:hover{border-color:#7a7a7a;background:#303030}.key:active{transform:translateY(2px)}.key-enter{background:#538d48!important;border-color:#538d48!important;font:700 14px Arabic,sans-serif;direction:ltr}.key-delete{background:#a61f38!important;border-color:#a61f38!important}.key:focus-visible{outline:3px solid var(--yellow);outline-offset:1px}.keyboard[aria-disabled=true] .key{cursor:default}.keyboard-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;max-width:800px;margin:4px auto 12px}.keyboard-tools .text-button{font-size:10px;padding:5px}.keyboard-tools .subtle{font-size:10px}.extra-keys{display:flex;gap:6px;max-width:420px;margin:6px auto 12px;direction:rtl}.extra-keys .key{flex:1;height:42px;font-size:19px}.native-input-open .keyboard,.native-input-open .keyboard-tools,.native-input-open .extra-keys{display:none}.result{max-width:540px;margin:20px auto 10px;padding:22px 18px;animation:result-in .4s ease-out}.result-win{border-color:#7ca35466;background:linear-gradient(160deg,#7ca3540c,var(--card))}.result-loss{border-color:#c98a2644}.result-medallion{width:52px;height:52px;margin:0 auto 9px;display:grid;place-items:center;background:#edae3e22;color:#c98a26;border-radius:18px;font-size:30px}.result-loss .result-medallion{background:var(--soft);color:var(--muted)}.result h2{font-size:21px}.result p{margin:9px 0 15px}.result .btn{min-height:44px}.confetti{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:20}.confetti i{position:absolute;top:-20px;left:var(--x);width:8px;height:13px;border-radius:2px;animation:confetti-fall 1.8s var(--delay) ease-in both}.board + .status{scroll-margin:25px}dialog{max-height:calc(100dvh - 36px);overflow:auto;overscroll-behavior:contain}.mode-card:focus-visible{outline-offset:8px}.home-bottom .profile{max-width:52%;text-align:right}.home-bottom .profile>span:last-child{min-width:0;overflow-wrap:anywhere}.close{position:sticky;top:0;z-index:1;flex-shrink:0}table{table-layout:fixed}td{overflow-wrap:anywhere}.key.absent{background:#4b4b4e!important;border-color:#55555a!important;color:#bcbcc2!important}.key.present{background:#b27e25!important;border-color:#c98a26!important}.key.correct{background:#538d48!important;border-color:#5c8a3b!important}
@keyframes page-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes letter-pop{0%{transform:scale(.91) rotateX(-18deg)}65%{transform:scale(1.08) rotateX(6deg)}100%{transform:scale(1) rotateX(0)}}@keyframes result-in{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}@keyframes confetti-fall{0%{opacity:0;transform:translate3d(0,-20px,0) rotate(0)}10%{opacity:1}100%{opacity:0;transform:translate3d(var(--drift),105vh,0) rotate(var(--rotation))}}
@media(max-width:640px){.game{margin-top:16px}.game-top{margin-bottom:8px}.board{width:min(100%,280px);margin:12px auto 8px}.board.short-word{width:168px}.tile{font-size:24px}.keyboard{margin-left:-12px;margin-right:-12px;gap:5px;padding:5px;border-radius:10px}.key-row{gap:4px}.key{height:48px;font-size:18px;border-radius:6px}.key-enter{font-size:11px}.key-delete svg{width:19px}.typing-tools{margin:0 0 4px}.typing-hint{font-size:10px}.keyboard-tools .subtle{font-size:9px}.game-top h1{font-size:17px}.game-top p{font-size:10px}.result{margin-top:16px}.home-bottom{gap:10px}.home-bottom .profile{padding-right:0}.home-bottom .subtle{font-size:11px}.home-bottom .profile small{font-size:9px}.home-bottom>div{text-align:left}.status{font-size:11px}.game + footer{height:45px}}
@media(max-width:350px){.shell{padding:0 13px}.keyboard{margin-left:-9px;margin-right:-9px}.key-row{gap:3px}.key{font-size:16px;height:46px}.key-enter{font-size:10px}.board{width:250px}.board.short-word{width:150px}.typing-hint{font-size:9px}.header-actions{gap:6px}.badge{padding:6px}.hero h1{font-size:22px}.mode-card{gap:12px;padding:20px}.mode-card strong{font-size:20px}}
@media(max-height:720px) and (max-width:640px){body:has(.game) header{height:60px}.board{width:230px;margin:8px auto}.board.short-word{width:138px}.tile{font-size:22px}.key{height:43px}.game-top{margin-bottom:4px}.status{margin:3px 0}.game{margin-top:10px}}
@media(prefers-reduced-motion:reduce){.confetti{display:none}*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.resume-card{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:760px;margin:18px auto 0;padding:13px 18px;border:1px solid #7ca35440;border-radius:16px;background:#7ca35409;font-size:13px}.resume-card small{display:block;color:var(--muted);font-size:10px}.resume-card .text-button{white-space:nowrap}.tile-inner{-webkit-transform-style:preserve-3d}@media(orientation:landscape){.shell{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}}
/* v3: iPhone hierarchy, compact play area and native result sheet. */
header{position:relative;z-index:2;gap:12px}.header-actions{gap:8px}.points-pill{padding:6px 10px;border-radius:20px;color:#946a10;background:#edae3e20;white-space:nowrap;font-size:12px;font-weight:700;min-width:46px;text-align:center}#game-toolbar{display:flex;align-items:center;gap:6px}.playing header{position:sticky;top:0;z-index:5;background:var(--bg);height:78px}.playing .wordmark,.playing #connection,.playing #help,.playing #theme{display:none}.playing #game-heading{flex:1;min-width:0}#game-heading h1{font-size:18px;line-height:1.5;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#game-heading p{font-size:10px;color:var(--muted);margin:3px 0 0;white-space:nowrap}.playing .header-actions{flex-shrink:0}.playing .game{margin:0 auto;padding-top:6px}.playing main{min-height:0}.playing footer,.playing .site-nav{display:none}.playing .ambient{opacity:.035}.playing .board{margin-top:12px;margin-bottom:10px}.streak-bar{display:flex;align-items:center;justify-content:center;gap:22px;max-width:350px;margin:8px auto;background:var(--card);border:1px solid var(--line);border-radius:13px;padding:9px 16px}.streak-bar>div{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:7px;line-height:1.4}.streak-bar strong{font-size:20px;grid-row:1/3;grid-column:2}.streak-bar small{font-size:9px;color:var(--muted)}.streak-bar span{font-size:19px}.streak-bar>i{height:26px;width:1px;background:var(--line)}.flame{color:var(--yellow)}.trophy{color:var(--green)}.site-nav{display:flex;align-items:center;justify-content:center;gap:10px;margin:18px auto 0}.site-nav button{background:var(--card);border:1px solid var(--line);padding:8px 18px;border-radius:12px;font-size:12px;color:var(--muted)}#sound.muted{opacity:.55}#result-dialog{padding:0;max-width:440px;background:var(--bg);border-radius:24px;overflow-y:auto;overscroll-behavior:contain;max-height:calc(100dvh - 36px);width:calc(100% - 28px);box-shadow:0 30px 100px #0005}#result-content{position:relative}.sheet-grabber{display:none}.result-dismiss{position:absolute;left:16px;top:14px;border:0;background:var(--soft);width:30px;height:30px;font-size:20px}.ios-result{text-align:center;padding:42px 24px 22px}.ios-check{display:grid;place-items:center;width:60px;height:60px;border-radius:9px;background:var(--green);color:#fff;font-size:34px;font-weight:700;margin:0 auto 10px;box-shadow:0 5px 0 #5c8a3b}.lost .ios-check{background:#d95050;box-shadow:0 5px 0 #b13939}.ios-result h2{font-size:26px;margin:10px 0 0}.attempts-label{font-size:14px;color:var(--muted);margin:0 0 10px}.answer-label{font-size:13px;color:var(--muted);margin-top:12px}.answer-word{font-size:28px;font-weight:700;color:var(--green);background:#7ca35413;border:1px solid #7ca3542e;border-radius:15px;padding:10px;margin-top:6px}.result-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.result-stats>div{display:flex;flex-direction:column;align-items:center;gap:3px;background:var(--card);border-radius:14px;padding:12px;box-shadow:var(--shadow)}.result-stats span{font-size:23px;line-height:1.4}.result-stats strong{font-size:28px;line-height:1.35}.result-stats small{font-size:11px;color:var(--muted)}.rank-section{margin-top:16px}.rank-title{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;color:var(--muted);margin-bottom:6px}.rank-title>strong{color:var(--green);background:#7ca35417;padding:3px 9px;border-radius:12px;direction:ltr}.rank-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);background:var(--card);border-radius:13px;margin:6px 0;text-align:right;min-height:56px}.rank-row.is-me{background:#7ca35416;border-color:#7ca35480}.rank-number{font-weight:700;min-width:25px;font-size:14px;text-align:center}.rank-row .avatar{width:32px;height:32px;font-size:13px;border-radius:10px;flex-shrink:0}.rank-player{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.rank-row strong{font-size:13px;white-space:nowrap}.rank-row small{font-size:9px;color:var(--muted)}.rank-movement{font-size:10px;color:var(--green);text-align:left;margin-bottom:3px}.rank-placeholder{font-size:12px;color:var(--muted);padding:18px 10px;border:1px dashed var(--line);border-radius:13px}.save-status{font-size:10px;line-height:1.8;color:var(--muted);margin:9px 0}.save-status.saved{color:var(--deep)}.result-actions{display:grid;gap:10px;margin-top:14px}.result-actions .btn{min-height:49px;border-radius:13px;font-size:16px;box-shadow:none}.share-result{background:#7ca35415;color:var(--green)}.result-actions .text-button{color:var(--muted);font-size:13px}.round-results{margin-top:16px}.round-results>div{display:flex;justify-content:space-between;gap:12px;background:var(--card);padding:12px;border-radius:12px;margin:5px 0;font-size:13px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.account-grid>div{display:flex;flex-direction:column;align-items:center;background:var(--soft);padding:15px;border-radius:12px}.account-grid strong{font-size:24px;color:var(--deep)}.account-grid span{font-size:11px;color:var(--muted)}.leaderboard-page{max-width:580px;margin:22px auto}.leaderboard-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.leaderboard-heading h1{font-size:24px;margin:0}.lb-cup{font-size:39px;color:var(--yellow)}.period-tabs{display:flex;gap:5px;padding:5px;background:var(--soft);border-radius:30px;margin-top:15px}.period-tabs button{flex:1;background:none;color:var(--muted);border-radius:24px;padding:9px 7px;font-size:13px}.period-tabs [aria-selected=true]{background:var(--green);color:#fff;font-weight:700}.leaderboard-note{text-align:center;font-size:10px;margin:10px 0 16px}.podium{display:flex;justify-content:center;align-items:flex-end;gap:9px;min-height:210px;padding:10px 4px 0}.podium-slot{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;background:var(--card);border-radius:20px 20px 0 0;border:1px solid var(--line);padding:15px 7px 17px;position:relative;gap:6px}.podium-slot.place-1{padding-top:30px;min-height:190px;background:#edae3e16;border-color:#edae3e66}.podium-medal{font-size:26px;color:var(--yellow);line-height:1.3}.place-2 .podium-medal{color:#9e9e9e}.place-3 .podium-medal{color:#bb8754}.podium-slot strong{font-size:12px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.podium-slot>span:last-child{font-size:11px;color:var(--muted)}.rank-list{margin-top:14px}.empty-state{text-align:center;color:var(--muted);padding:40px 20px;font-size:14px;line-height:2}.my-ranking{margin-top:24px;border-top:1px dashed var(--line);padding-top:8px}#result-dialog[open] .ios-result{animation:result-in .3s ease-out}
@media(max-width:640px){.playing header{height:70px}.playing .header-actions{gap:5px}.playing .icon{width:32px;height:32px;font-size:18px}#game-heading h1{font-size:16px}#game-heading p{font-size:9px}.points-pill{font-size:11px;padding:5px 8px}.header-actions #connection{display:none}.streak-bar{margin:6px auto;padding:7px 14px;gap:18px;max-width:300px}.streak-bar strong{font-size:18px}.streak-bar span{font-size:17px}.streak-bar small{font-size:9px}.playing .board{margin-top:8px;margin-bottom:7px}.playing .typing-tools{margin-bottom:0}.playing .keyboard{margin-top:6px}#result-dialog{margin:auto auto 0;position:fixed;bottom:0;inset-inline:0;max-height:calc(100dvh - 24px);width:100%;max-width:480px;border-radius:25px 25px 0 0;border-bottom:0}.sheet-grabber{display:block;width:38px;height:5px;background:var(--line);border-radius:8px;margin:9px auto 0}.ios-result{padding:24px 24px max(18px,env(safe-area-inset-bottom))}.ios-check{width:54px;height:54px;font-size:31px}.ios-result h2{font-size:25px}.result-dismiss{top:16px}.result-stats{margin-top:13px}.rank-row{padding:8px 10px;min-height:49px}.result-actions{gap:8px;margin-top:10px}.result-actions .btn{font-size:15px;min-height:46px}.save-status{margin:6px 0}.leaderboard-page{margin-top:14px}.rank-player{font-size:12px}.rank-row strong{font-size:12px}}
@media(max-height:760px) and (max-width:640px){.playing .board{width:240px;margin:6px auto}.playing .board.short-word{width:144px}.playing .key{height:42px}.playing .streak-bar{padding:5px 12px}.playing .status{min-height:20px}.ios-result{padding-top:17px}.ios-check{width:45px;height:45px;font-size:28px}.ios-result h2{font-size:23px}.result-stats>div{padding:8px}.result-stats strong{font-size:24px}.result-stats span{font-size:19px}.answer-word{padding:7px;font-size:25px}}
@media(max-width:350px){.playing .header-actions{gap:4px}.playing .icon{width:29px;height:30px}.playing .points-pill{padding:5px;font-size:10px}#game-heading h1{font-size:14px}#game-heading p{font-size:8px}.playing .board{width:250px}.playing .board.short-word{width:150px}.ios-result{padding-inline:18px}}
