/* The artboard's inline layout as classes. The game is 390 wide and as tall as the screen allows; runtime.js scales it to the screen and fits the board into the room left. */
html,body{height:100%;overflow:hidden;overscroll-behavior:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;touch-action:manipulation}
body{background-color:var(--bg,#1E6550);color:#F4EFE2;font-family:'Bricolage Grotesque','Avenir Next',sans-serif}
#app{position:absolute;top:0;left:0;width:390px;height:844px;box-sizing:border-box;padding:var(--st,0) 0 var(--sb,0);transform-origin:0 0;background-color:var(--bg,#1E6550);overflow:hidden}
.screen{height:100%;box-sizing:border-box;display:flex;flex-direction:column}
.play{padding:8px 12px 12px;gap:7px}
.top{display:flex;align-items:center;justify-content:space-between;height:44px;flex:none}
.back{width:44px;height:44px;flex:none;border:0;padding:0;background:transparent;color:#F4EFE2;display:flex;align-items:center;cursor:pointer}
.title{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.title .t1{font-size:17px;font-weight:700}
.title .t2{font-size:12px;color:#C6DCD5}
.stats{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:8px;flex:none}
.stat.mine{background:rgba(242,196,107,.16);box-shadow:inset 0 0 0 2px #F2C46B}
.stat.mine .v{color:#F2C46B}
.msg{min-height:36px;flex:none;box-sizing:border-box;border-radius:10px;background:rgba(0,0,0,.22);display:flex;align-items:center;justify-content:center;padding:6px 10px;text-align:center;font-size:13px;line-height:1.35}
.board{position:relative;width:100%;flex:1;min-height:200px;overflow:visible}
.bfit{transform-origin:0 0}
.overtop{display:flex;justify-content:space-between;align-items:center}
.overtop span{font-size:16px;font-weight:800}
.over .note{font-size:13px;color:#DDEBE6}
.letters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.rackrow{height:60px;flex:none;box-sizing:border-box;border-radius:16px;background:rgba(0,0,0,.28);box-shadow:inset 0 2px 6px rgba(0,0,0,.35);display:flex;align-items:center;gap:6px;padding:0 8px}
.pocket{display:flex;gap:4px;flex:none}
.divider{width:1px;align-self:stretch;margin:8px 0;background:rgba(244,239,226,.18);flex:none}
.word{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:4px;overflow:hidden}
.word .rk{flex:0 1 38px;min-width:26px}
.rackhint{font-size:13px;line-height:1.3;color:#C6DCD5;text-align:center}
.actions{display:flex;gap:8px;flex:none}
.act.grey{flex:0 0 96px;background:#6E7A76;color:#13201D;box-shadow:0 4px 0 #3F4846}
.act.gold{flex:0 0 96px;background:#D9A441;color:#3B2405;box-shadow:0 4px 0 #8E5E14}
.act.green{background:#4FB58A;color:#072A1D;box-shadow:0 4px 0 #23704F}
.act.send{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 8px}
.done{padding:34px 20px 24px;gap:16px}
.done .head{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.done .kick{font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#C6DCD5}
.done h1{margin:0;font-size:52px;font-weight:800;line-height:1;color:#F2C46B}
.done .sub{font-size:16px;color:#DDEBE6}
.namebox{display:flex;flex-direction:column;gap:8px;border-radius:14px;background:rgba(0,0,0,.24);padding:12px 14px}
.namebox label{font-size:14px;font-weight:700}
.namerow{display:flex;gap:8px}
.namerow .inp{flex:1;user-select:text;-webkit-user-select:text}
.namerow .act{flex:0 0 110px;height:48px;font-size:15px}
.lb{display:flex;flex-direction:column;gap:6px;flex:1;min-height:0}
.lbhead{display:flex;justify-content:space-between;align-items:baseline}
.lbhead h2{margin:0;font-size:18px;font-weight:700}
.lbhead span{font-size:12px;color:#C6DCD5}
.lblist{display:flex;flex-direction:column;gap:6px;overflow-y:auto}
.lblist .empty{font-size:14px;color:#C6DCD5;padding:8px 0}
.lrow .who{display:flex;flex-direction:column;gap:1px;min-width:0}
.lrow .nm{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lrow .det{font-size:12px;color:#DDEBE6}
.done .actions .act{height:56px}
.act.wide{flex:0 0 130px}
.act.grow{flex:1}
.done .foot{font-size:12px;text-align:center;color:#C6DCD5}
.hintb:disabled{opacity:.4}
.tile.sel.cpu{background:#D2EBF3;outline-color:#7FC4DC}
.menu{padding:40px 20px 24px;gap:14px}
.brand{display:flex;flex-direction:column;align-items:center;gap:4px;margin-bottom:6px}
.brand .logo{font-size:40px;font-weight:800;letter-spacing:-.01em}
.brand .tag{font-size:15px;color:#C6DCD5}
.mode{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;box-sizing:border-box;padding:16px;border:0;border-radius:16px;background:rgba(0,0,0,.24);color:#F4EFE2;font-family:inherit;text-align:left;cursor:pointer}
button.mode:active{background:rgba(0,0,0,.34)}
.mode .mt{font-size:20px;font-weight:800}
.mode .ms{font-size:14px;line-height:1.35;color:#DDEBE6}
.duelbox{cursor:default;box-shadow:inset 0 0 0 2px rgba(79,181,138,.6)}
.duelbox .chips{width:100%}
.duelbox .act{width:100%;margin-top:4px}
.menu .foot{margin-top:auto;font-size:12px;text-align:center;color:#C6DCD5}
/* Home, new game and the other list screens, after Wordfeud's layout */
.home,.sub{padding:12px 16px 0;gap:10px}
.scroll{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding-bottom:20px;-webkit-overflow-scrolling:touch}
.scroll::-webkit-scrollbar{display:none}
.hometop{display:flex;align-items:center;justify-content:space-between;height:64px;flex:none}
.hometop .logo{display:flex;flex-direction:column;font-size:30px;line-height:.9}
.hometop .logo .lw{font-weight:800;letter-spacing:-.02em}
.hometop .logo .lb{font-weight:200;padding-left:.9em}
.icons{display:flex;gap:2px}
.ib{width:44px;height:44px;border:0;padding:0;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center;cursor:pointer}
.homebottom{flex:none;display:flex;flex-direction:column;padding:8px 0 16px}
#app[style*="--ad: 5"] .homebottom{padding-bottom:10px}
.bigbtn{height:56px;flex:none;border:0;border-radius:28px;background:#F2C46B;color:#3B2405;font-family:inherit;font-size:20px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 4px 0 #A9741E;cursor:pointer}
.bigbtn:active{transform:translateY(2px);box-shadow:0 2px 0 #A9741E}
.note{border-radius:12px;background:rgba(242,196,107,.14);box-shadow:inset 0 0 0 1.5px rgba(242,196,107,.5);padding:10px 12px;font-size:14px;line-height:1.4}
.card{position:relative;border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:10px}
.card.acc{background:rgba(0,0,0,.24)}
.card.inv{background:#F4EFE2;color:#1C2626;box-shadow:0 4px 0 #C2702C}
.card.inv .cs{color:#4E5C58}
.card.inv .pill{border-color:#1C2626;color:#1C2626}
.card.inv .pill.solid{background:#1E6550;border-color:#1E6550;color:#F4EFE2}
.card .ct{font-size:20px;font-weight:700;line-height:1.25;padding-right:36px}
.card .cs{font-size:14px;line-height:1.4;color:#DDEBE6}
.card .cbtns{display:flex;gap:8px}
.card .x{position:absolute;top:10px;right:10px;width:44px;height:44px;border:0;border-radius:22px;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center;cursor:pointer}
.pill{height:44px;padding:0 18px;border:2px solid currentColor;border-radius:22px;background:transparent;color:inherit;font-family:inherit;font-size:16px;font-weight:700;cursor:pointer;flex:none}
.pill.solid{background:#F4EFE2;border-color:#F4EFE2;color:#13201D}
.pill.small{height:36px;padding:0 12px;font-size:14px;border-width:1.5px}
.empty{font-size:15px;color:#C6DCD5;text-align:center;padding:12px 0}
.sec{margin:6px 2px 0;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#C6DCD5}
.gamerow{display:flex;align-items:center;gap:8px}
.game{flex:1;min-width:0;display:flex;align-items:center;gap:12px;box-sizing:border-box;padding:10px 12px;border:0;border-radius:14px;background:rgba(0,0,0,.24);color:inherit;font-family:inherit;text-align:left;cursor:pointer}
.game.mine{background:rgba(242,196,107,.14);box-shadow:inset 0 0 0 2px rgba(242,196,107,.7)}
.av{width:42px;height:48px;flex:none;border-radius:7px;background:#FBF6EA;color:#1C2626;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;box-shadow:0 3px 0 #C2702C}
.gi{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.gn{font-size:17px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gl{font-size:13px;color:#DDEBE6;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.gw{font-size:12px;color:#C6DCD5;flex:none;align-self:flex-start;padding-top:2px}
.home .foot,.sub .foot{font-size:12px;text-align:center;color:#C6DCD5;margin-top:8px}
.nav{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;height:56px;flex:none}
.nav h1{margin:0;text-align:center;font-size:24px;font-weight:700}
.group{border-radius:16px;background:rgba(0,0,0,.24);overflow:hidden;flex:none}
.opt{display:flex;align-items:center;gap:14px;width:100%;box-sizing:border-box;min-height:72px;padding:12px 14px;border:0;border-bottom:1px solid rgba(244,239,226,.1);background:transparent;color:inherit;font-family:inherit;text-align:left;cursor:pointer}
.opt:last-child{border-bottom:0}
.tileic{width:50px;height:50px;flex:none;border-radius:8px;background:#FBF6EA;color:#1C2626;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 0 #C2702C;font-size:30px;font-weight:800}
.ot{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.ot .t{font-size:19px;font-weight:700}
.ot .s{font-size:14px;line-height:1.35;color:#C6DCD5}
.chev{color:#C6DCD5;flex:none;display:flex}
.opt .act.go{flex:none;height:44px;padding:0 16px;font-size:15px}
.opt.cpu{cursor:default}
.cpubox{border-bottom:1px solid rgba(244,239,226,.1);padding-bottom:12px}
.cpubox .opt{border-bottom:0}
.levels{padding-left:78px}
html.light .cpubox{border-bottom-color:rgba(60,45,20,.12)}
.boardpick{display:flex;flex-direction:column;gap:6px;flex:none}
.lbl{font-size:13px;font-weight:700;color:#C6DCD5}
.codebox{display:flex;align-items:center;gap:14px;padding:12px 14px}
.coderow{display:flex;gap:8px;margin-top:4px}
.coderow .inp{flex:1;width:100%;text-transform:uppercase;letter-spacing:.12em}
.coderow .act{flex:none;height:48px;padding:0 14px;font-size:15px}
.inp{user-select:text;-webkit-user-select:text}
.inp.big{height:52px;font-size:18px;flex:none}
.lead{margin:4px 0;font-size:16px;line-height:1.45}
.hintline{font-size:13px;color:#C6DCD5}
.act.full{width:100%;flex:none;height:54px}
p.fine{margin:6px 0 0;font-size:13px;line-height:1.4;color:#C6DCD5}
.radio{display:flex;align-items:center;gap:18px;width:100%;min-height:60px;padding:0 18px;border:0;border-bottom:1px solid rgba(244,239,226,.1);background:transparent;color:inherit;font-family:inherit;font-size:19px;cursor:pointer;text-align:left}
.radio:last-child{border-bottom:0}
.radio .dot{width:22px;height:22px;border-radius:50%;border:2.5px solid #C6DCD5;box-sizing:border-box;flex:none}
.radio .dot.on{border-color:#7FC4DC;background:radial-gradient(circle,#7FC4DC 0 5px,transparent 6px)}
.statg .srow{display:flex;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid rgba(244,239,226,.1);font-size:16px}
.statg .srow:last-child{border-bottom:0}
.statg .srow b{text-align:right}
.onlinebar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;flex:none;font-size:14px;color:#DDEBE6}
/* Light theme: a pale felt; the tiles keep their colours */
html.light,html.light body,html.light #app{background-color:var(--lightbg,#EFE8D8);color:#1C2626}
html.light .felt{background-image:radial-gradient(ellipse at 50% 45%,rgba(255,255,255,.5),rgba(120,100,60,.12) 78%),repeating-linear-gradient(45deg,rgba(0,0,0,.025) 0 1px,transparent 1px 5px)}
html.light .msg,html.light .stat,html.light .group,html.light .game,html.light .card.acc,html.light .rackrow,html.light .lrow,html.light .namebox,html.light .mode,html.light .chip{background-color:rgba(60,45,20,.08);box-shadow:none}
html.light .rackrow{box-shadow:inset 0 2px 6px rgba(60,45,20,.12)}
html.light .chip{color:#1C2626}
html.light .chip.on{background:#D9A441;color:#2B1A03}
html.light .chip .asym{background:rgba(60,45,20,.1)}
html.light .stat.mine,html.light .game.mine,html.light .lrow.me{background:rgba(217,164,65,.22);box-shadow:inset 0 0 0 2px #C68E2B}
html.light .stat.mine .v,html.light .done h1{color:#8E5E14}
html.light .stat .k,html.light .gl,html.light .ms,html.light .cs,html.light .lrow .det,html.light .onlinebar,html.light .done .sub{color:#4E5C58}
html.light .title .t2,html.light .sec,html.light .ot .s,html.light .gw,html.light .chev,html.light .empty,html.light .lbl,html.light .hintline,html.light p.fine,html.light .rackhint,html.light .foot,html.light .done .kick,html.light .lbhead span,html.light .lrow .rk-n{color:#5D6B67}
html.light .opt,html.light .radio,html.light .statg .srow{border-bottom-color:rgba(60,45,20,.12)}
html.light .slot{border-color:rgba(60,45,20,.3)}
html.light .divider{background:rgba(60,45,20,.18)}
html.light .inp{background:#FFFDF7;color:#1C2626;border-color:rgba(60,45,20,.3)}
html.light .pill.solid{background:#1C2626;border-color:#1C2626;color:#F4EFE2}
html.light .card.inv{background:#FFFDF7;box-shadow:0 0 0 1.5px rgba(60,45,20,.15),0 4px 0 #C2702C}
html.light .card.inv .pill.solid{background:#1E6550;border-color:#1E6550;color:#F4EFE2}
html.light .note{background:rgba(217,164,65,.18)}
html.light .over{background:rgba(239,232,216,.97);color:#1C2626}
html.light .radio .dot{border-color:#5D6B67}
html.light .radio .dot.on{border-color:#2F7FA0;background:radial-gradient(circle,#2F7FA0 0 5px,transparent 6px)}
.tone-info{color:#DDEBE6}.tone-good{color:#8FE3B9}.tone-bad{color:#FFCDB8}
html.light .tone-info{color:#3E4C48}html.light .tone-good{color:#1F7A4D}html.light .tone-bad{color:#B3261E}
/* Swiping between boards */
[data-swipe]{touch-action:pan-y}
.bdots{position:absolute;left:0;right:0;bottom:2px;display:flex;justify-content:center;gap:6px;pointer-events:none;z-index:1500}
.bdots.static{position:static;margin:2px 0 4px}
.bdots .dot{width:7px;height:7px;border-radius:50%;background:rgba(244,239,226,.28)}
.bdots .dot.grow{background:rgba(127,196,220,.35)}
.bdots .dot.on{background:#F2C46B;transform:scale(1.3)}
.slide-l>div:first-child,.slide-l .pvboard,.slide-l .pvinfo{animation:slide-l .3s ease-out}
.slide-r>div:first-child,.slide-r .pvboard,.slide-r .pvinfo{animation:slide-r .3s ease-out}
@keyframes slide-l{from{translate:40px 0;opacity:.2}to{translate:0 0;opacity:1}}
@keyframes slide-r{from{translate:-40px 0;opacity:.2}to{translate:0 0;opacity:1}}
@media (prefers-reduced-motion: reduce){.slide-l>div:first-child,.slide-r>div:first-child,.slide-l .pvboard,.slide-r .pvboard,.slide-l .pvinfo,.slide-r .pvinfo{animation:none}}
.preview{position:relative;display:flex;align-items:center;gap:8px;height:210px;border-radius:16px;background:rgba(0,0,0,.24);padding:0 34px 0 30px;overflow:hidden;flex:none}
.pvboard{position:relative;width:168px;height:192px;flex:none;overflow:hidden}
.pvboard>div{left:0;top:0}
.mt{position:absolute;width:46px;height:56px;border-radius:7px;background:#FBF6EA;box-shadow:0 3px 0 #E3D3B2,0 6px 0 #C2702C,0 9px 8px rgba(0,0,0,.35)}
.mt.l0{background:#D9CDB4}.mt.l1{background:#E8DDC6}.mt.l2{background:#F3EBDA}
.pvinfo{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.pvg{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#C6DCD5}
.pvn{font-size:24px;font-weight:800;line-height:1.1}
.pvs{font-size:13px;line-height:1.35;color:#DDEBE6}
.pvar{position:absolute;top:50%;left:2px;margin-top:-26px;width:30px;height:52px;border:0;padding:0;border-radius:10px;background:rgba(244,239,226,.08);color:inherit;display:flex;align-items:center;justify-content:center;cursor:pointer}
.pvar.next{left:auto;right:2px}
.pvar.next svg{transform:scaleX(-1)}
html.light .preview{background:rgba(60,45,20,.08)}
html.light .pvar{background:rgba(60,45,20,.08)}
html.light .pvs{color:#4E5C58}html.light .pvg{color:#5D6B67}
html.light .bdots .dot{background:rgba(60,45,20,.25)}html.light .bdots .dot.grow{background:rgba(47,127,160,.35)}html.light .bdots .dot.on{background:#C68E2B}
.boardbar{display:flex;align-items:center;justify-content:space-between;height:48px;flex:none;border-radius:14px;background:rgba(0,0,0,.2)}
.bbar,.bbar-gap{width:44px;height:44px;flex:none}
.bbar{border:0;padding:0;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center;cursor:pointer}
.bbar.next svg{transform:scaleX(-1)}
.bbname{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0}
.bbname b{font-size:17px}
.bbname span{font-size:12px;color:#C6DCD5}
html.light .boardbar{background:rgba(60,45,20,.08)}html.light .bbname span{color:#5D6B67}
.radio .swatch{width:26px;height:26px;border-radius:8px;flex:none;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.35)}
html.light .radio .swatch{box-shadow:inset 0 0 0 1.5px rgba(60,45,20,.3)}
/* Home: your games as a row of cards, then a new game on the same page */
.sec .secr{float:right;font-size:12px;font-weight:600;letter-spacing:0;text-transform:none}
.gamesrow{display:flex;gap:10px;overflow-x:auto;margin:0 -16px;padding:2px 16px 4px;flex:none;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.gamesrow::-webkit-scrollbar{display:none}
.gcard{flex:none;width:150px;display:flex;flex-direction:column;border-radius:16px;background:rgba(0,0,0,.24);scroll-snap-align:start;overflow:hidden}
.gcard.mine{background:rgba(242,196,107,.14);box-shadow:inset 0 0 0 2px rgba(242,196,107,.7)}
.gopen{flex:1;display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:12px;border:0;background:transparent;color:inherit;font-family:inherit;text-align:left;cursor:pointer;min-width:0}
.gopen .gtop{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:4px}
.gopen .gn{font-size:16px}
.gopen .gw{align-self:auto;padding:0}
.badge{padding:2px 8px;border-radius:9px;background:rgba(244,239,226,.14);font-size:12px;font-weight:800;white-space:nowrap}
.badge.on{background:#F2C46B;color:#3B2405}
.gx{height:34px;border:0;border-top:1px solid rgba(244,239,226,.12);background:transparent;color:inherit;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}
.ngpanel{display:flex;flex-direction:column;gap:10px;flex:none;border-radius:20px;background:rgba(0,0,0,.18);padding:14px 12px}
.ngpanel p.fine{margin:0}
.ngpanel .chip svg{width:16px;height:16px}
.lbl.inl{align-self:center;margin-right:4px}
html.light .gcard,html.light .ngpanel{background:rgba(60,45,20,.08)}
html.light .gcard.mine{background:rgba(217,164,65,.22);box-shadow:inset 0 0 0 2px #C68E2B}
html.light .badge{background:rgba(60,45,20,.1)}
html.light .badge.on{background:#D9A441;color:#2B1A03}
html.light .gx{border-top-color:rgba(60,45,20,.12)}
.ngpanel .chips{flex-wrap:wrap;overflow:visible}
/* Board editor */
.edsurf{position:relative;width:358px;height:410px;flex:none;border-radius:16px;background:rgba(0,0,0,.22);overflow:hidden;cursor:crosshair;touch-action:manipulation}
.edgrid{position:absolute;background-image:radial-gradient(circle,rgba(244,239,226,.35) 2.5px,transparent 3px);background-size:24.5px 30px;background-position:-12.25px -15px;pointer-events:none}
.mt.ed-up{opacity:.28}
.mt.ed-cur{background:#FBF6EA}
.edcount{display:flex;flex-direction:column;gap:2px;font-size:14px;flex:none}
.edcount span{color:#C6DCD5;font-size:13px}
.edtools .chip[disabled]{opacity:.4}
.edbtns{display:flex;gap:10px;flex:none}
.edbtns .act{flex:1;background:rgba(244,239,226,.14);color:inherit}
.edbtns .act.green{background:#4FB58A;color:#072A1D}
.ownrow{margin-top:4px}
.ownrow .chip svg{width:16px;height:16px}
.bdots .dot.own{background:rgba(242,196,107,.45)}
html.light .edsurf{background:rgba(60,45,20,.08)}
html.light .edgrid{background-image:radial-gradient(circle,rgba(60,45,20,.35) 2.5px,transparent 3px)}
html.light .edcount span{color:#5D6B67}
html.light .edbtns .act{background:rgba(60,45,20,.1)}
html.light .edbtns .act.green{background:#4FB58A}
.segs{display:flex;padding:4px;border-radius:14px;background:rgba(0,0,0,.26);flex:none}
.seg{flex:1;height:40px;border:0;border-radius:10px;background:transparent;color:#C6DCD5;font-family:inherit;font-size:16px;font-weight:700;cursor:pointer}
.seg.on{background:#F4EFE2;color:#1E6550;font-weight:800}
html.light .segs{background:rgba(60,45,20,.1)}
html.light .seg{color:#3F4A47}
html.light .seg.on{background:#1E6550;color:#F4EFE2}
/* Player statistics */
.sthead{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 0 4px;flex:none}
.sthead b{font-size:22px}
.sthead span:last-child{font-size:14px;color:#C6DCD5}
.av.big{width:72px;height:84px;font-size:38px;border-radius:12px;box-shadow:0 5px 0 #C2702C}
.stsel{height:48px;font-size:16px;flex:none}
.statg.rating .rr{display:flex;align-items:center;gap:10px}
.statg .info{width:26px;height:26px;border-radius:50%;border:1.5px solid currentColor;background:transparent;color:inherit;font:700 14px/1 Georgia,serif;font-style:italic;padding:0;cursor:pointer}
.fine.pad{padding:0 16px 12px;margin:0}
.rchart{display:block;width:100%;height:auto;padding:4px 10px 12px;box-sizing:border-box}
.rchart .gl{stroke:rgba(244,239,226,.18);stroke-width:1}
.rchart text{fill:#C6DCD5;font-size:11px;font-family:inherit}
.rchart .ln{fill:none;stroke:#F2C46B;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.rchart .pt{fill:#F2C46B}
html.light .sthead span:last-child,html.light .rchart text{color:#5D6B67;fill:#5D6B67}
html.light .rchart .gl{stroke:rgba(60,45,20,.18)}
html.light .rchart .ln{stroke:#B7841F}html.light .rchart .pt{fill:#B7841F}
/* Messages over the board for a moment, instead of a row of their own */
.toast{position:absolute;left:50%;top:6px;transform:translateX(-50%);z-index:1900;max-width:calc(100% - 24px);box-sizing:border-box;padding:8px 14px;border-radius:14px;background:rgba(8,30,24,.88);box-shadow:0 6px 18px rgba(0,0,0,.35);font-size:14px;line-height:1.35;text-align:center;pointer-events:none;animation:toast 8s ease forwards}
.toast.seen{animation:none;opacity:0}
@keyframes toast{0%{opacity:0;transform:translate(-50%,-6px)}3%,90%{opacity:1;transform:translate(-50%,0)}100%{opacity:0}}
html.light .toast{background:rgba(255,253,247,.95)}
@media (prefers-reduced-motion: reduce){.toast{animation:toast-still 8s linear forwards}@keyframes toast-still{0%,90%{opacity:1}100%{opacity:0}}}
/* Help: the rules over the open screen */
.topr{display:flex;align-items:center;gap:8px;flex:none}
.qb{width:36px;height:36px;border-radius:50%;border:2px solid rgba(244,239,226,.6);background:transparent;color:inherit;font-family:inherit;font-size:18px;font-weight:800;padding:0;cursor:pointer}
.ib.qi{font-family:inherit;font-size:22px;font-weight:800}
.helpov{position:absolute;inset:0;z-index:3000;background:rgba(5,20,16,.55);display:flex;flex-direction:column;justify-content:flex-end}
.helpsheet{max-height:92%;display:flex;flex-direction:column;border-radius:22px 22px 0 0;background:var(--bg,#1E6550);box-shadow:0 -10px 30px rgba(0,0,0,.4);padding:6px 16px var(--sb,0)}
.helphead{display:flex;align-items:center;justify-content:space-between;height:52px;flex:none;font-size:20px}
.helphead .x{width:44px;height:44px;border:0;border-radius:22px;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center;cursor:pointer}
.helpbody p{margin:0;font-size:15px;line-height:1.45}
.helpbody .statg .srow{font-size:14px}
.helpbody .statg .srow b{font-weight:600}
html.light .qb{border-color:rgba(28,38,38,.5)}
html.light .helpsheet{background:var(--lightbg,#EFE8D8)}
/* The band under the status bar that iOS 26 blurs: a progress strip, which reads fine soft */
.edgebar{display:none}
#app.edge .edgebar{display:block;position:absolute;left:20px;right:20px;top:calc(var(--sbar,0px) + 13px);height:12px;border-radius:6px;background:rgba(0,0,0,.25);overflow:hidden;z-index:5}
.edgebar i{display:block;height:100%;min-width:12px;border-radius:6px;background:#F2C46B;transition:width .5s ease,background-color .3s}
.edgebar.them i{background:#7FC4DC}
html.light #app.edge .edgebar{background:rgba(60,45,20,.12)}
html.light .edgebar i{background:#D9A441}html.light .edgebar.them i{background:#2F7FA0}
.namebox.warn .inp{border-color:#F2C46B;box-shadow:0 0 0 2px rgba(242,196,107,.35)}
.ownrow{flex-wrap:wrap;overflow:visible}
/* The page itself stays put; only the lists scroll, and the boards take sideways swipes. */
body{position:fixed;inset:0}
.board,.preview{touch-action:pan-y pinch-zoom}
.play .board{touch-action:none}
.chip.danger{background:#B3261E;color:#fff}
/* Ads (free version) and Premium. The slots sit outside #app in real pixels. */
#app{padding-bottom:calc(var(--sb,0px) + var(--ad,0px))}
#view{height:100%}
#adbar{position:absolute;left:0;right:0;bottom:var(--sb,0px);z-index:50;height:56px;display:flex;align-items:center;justify-content:center;background:#F7F4EC;color:#5D6B67;font-family:'Bricolage Grotesque',sans-serif}
#adbar[hidden],#adfull[hidden]{display:none}
html.native .adslot{visibility:hidden}
.adslot{width:320px;height:50px;display:flex;align-items:center;justify-content:center;font-size:13px;border:1.5px dashed rgba(60,45,20,.25);box-sizing:border-box}
.adtag{position:absolute;left:6px;top:3px;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#7A8682}
#adfull{position:fixed;inset:0;z-index:9000;background:#101614;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:calc(env(safe-area-inset-top,0px) + 56px) 16px calc(env(safe-area-inset-bottom,0px) + 8px);font-family:'Bricolage Grotesque',sans-serif}
#adfull .adtag{left:16px;top:calc(env(safe-area-inset-top,0px) + 18px);color:#A9B5B1}
.adslot.big{width:100%;flex:1;max-height:75%;border-color:rgba(255,255,255,.25);color:#A9B5B1;font-size:16px;border-radius:12px}
.adclose{position:absolute;right:12px;top:calc(env(safe-area-inset-top,0px) + 6px);width:44px;height:44px;border-radius:22px;border:0;background:rgba(255,255,255,.14);color:#fff;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;animation:adclose 0s 5s forwards;cursor:pointer}
@keyframes adclose{to{opacity:1;pointer-events:auto}}
.adprem{border:0;background:transparent;color:#F2C46B;font-family:inherit;font-size:15px;font-weight:700;padding:10px;cursor:pointer}
.card.prem{background:#F2C46B;color:#3B2405}
.card.prem .cs{color:#5A3A0C}
.card.prem .pill.solid{background:#3B2405;border-color:#3B2405;color:#F2C46B;display:inline-flex;align-items:center;gap:8px}
.hiddenchart{height:150px;display:flex;align-items:center;justify-content:center;font-size:56px;font-weight:800;letter-spacing:.04em;color:rgba(244,239,226,.18)}
.premhero{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 0;flex:none;color:#F2C46B}
.premhero svg{width:48px;height:48px}
.premhero b{font-size:26px;color:#F4EFE2}
.premhero span{color:#C6DCD5}
.sub .bigbtn{flex:none}
html.light .premhero b{color:#1C2626}html.light .premhero span{color:#5D6B67}html.light .hiddenchart{color:rgba(60,45,20,.18)}
/* Last move under each score, history rows, today's board, challenges, missed words */
.stat .lastmv{display:block;font-size:11px;line-height:1.2;color:#C6DCD5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.qb svg{display:block;margin:auto}
.hrow span small{display:block;font-size:12px;color:#F2C46B;margin-top:2px}
.daily{flex:none;border-radius:18px;padding:14px 16px;background:linear-gradient(135deg,#F2C46B,#E3A54A);color:#3B2405;display:flex;flex-direction:column;gap:8px;box-shadow:0 4px 0 #A9741E}
.daily .dtop{display:flex;justify-content:space-between;align-items:center}
.daily .dk{font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.daily .dstreak{display:flex;align-items:center;gap:4px;font-size:13px;font-weight:700}
.daily .dmain{display:flex;flex-direction:column}
.daily .dn{font-size:24px;font-weight:800;line-height:1.1}
.daily .dl{font-size:14px;color:#5A3A0C}
.daily .cbtns{display:flex;gap:8px}
.daily .pill{border-color:#3B2405;color:#3B2405}
.daily .pill.solid{background:#3B2405;border-color:#3B2405;color:#F2C46B}
.opt.offer{gap:10px}
.opt.offer .act.go{height:40px;padding:0 14px}
.missed{display:flex;flex-direction:column;gap:6px;flex:none}
.missed .mrow{display:flex;gap:8px;align-items:center;font-size:14px}
.missed .mrow .arr{color:#C6DCD5}
.missed .pill{align-self:flex-start}
.dsay{text-align:center;margin:0}
html.light .stat .lastmv,html.light .missed .mrow .arr{color:#5D6B67}html.light .hrow span small{color:#9A6A12}
.done .actions .act.green{flex:none;padding:0 20px}
/* Tall and Sett tiles */
.tile.op .ch,.rk .ch{transition:none}
.tile.op .ch{color:#22609A}
.syms{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;pointer-events:none}
.rk .syms{gap:2px}
.sym{display:block;width:13px;height:13px}
.rk .sym{width:9px;height:9px}
.sym.s0{border-radius:50%}
.sym.s1{clip-path:polygon(50% 0,100% 100%,0 100%)}
.sym.c0{background:#C98A12}.sym.c1{background:#22609A}.sym.c2{background:#D2553A}
.eqbtn{flex:none;width:40px;height:46px;border:0;border-radius:8px;background:#DCEBF2;color:#22609A;font-family:inherit;font-size:26px;font-weight:800;box-shadow:0 4px 0 #5C8FA8;cursor:pointer;margin-right:4px}
.rk.eqk{background:#DCEBF2;color:#22609A;box-shadow:0 4px 0 #5C8FA8}
/* Reactions and chat */
.qb.chatb{position:relative}
.qb.chatb.unread::after{content:"";position:absolute;right:-2px;top:-2px;width:10px;height:10px;border-radius:5px;background:#F2C46B;box-shadow:0 0 0 2px var(--bg,#1E6550)}
.reacts{display:flex;justify-content:space-between;gap:6px;flex:none}
.react{width:48px;height:48px;border:0;border-radius:14px;background:rgba(0,0,0,.24);font-size:26px;cursor:pointer}
.react:active{transform:scale(.92)}
.cmsgs{display:flex;flex-direction:column;gap:6px;flex:none;padding:4px 0}
.cmsg{align-self:flex-start;max-width:78%;padding:8px 12px;border-radius:16px 16px 16px 4px;background:rgba(0,0,0,.28);font-size:15px;line-height:1.35;word-break:break-word}
.cmsg.me{align-self:flex-end;border-radius:16px 16px 4px 16px;background:#F2C46B;color:#3B2405}
.cmsg.big{font-size:30px;background:transparent;padding:0 4px}
.crow{display:flex;gap:8px;flex:none;padding-bottom:10px}
.crow .inp{flex:1;min-width:0}
.crow .act{flex:none;height:48px;padding:0 16px}
html.light .react,html.light .cmsg{background:rgba(60,45,20,.08)}html.light .cmsg.me{background:#D9A441}
.title{flex:1;min-width:0}
.title .t1,.title .t2{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topr .qb{width:34px;height:34px}
/* Home, top to bottom: today's board (one row), challenges, new game, your games, then the cards */
.daily{flex-direction:row;align-items:center;gap:8px;padding:10px 12px;border-radius:16px}
.daily .dtxt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.daily .dk{display:flex;align-items:center;gap:4px;font-size:11px;letter-spacing:.06em}
.daily .dk svg{width:13px;height:13px}
.daily .dn{font-size:18px;font-weight:800;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.daily .dn small{font-size:13px;font-weight:600;color:#5A3A0C;margin-left:8px}
.daily .pill{height:38px;padding:0 16px}
.daily .pill.small{height:34px;padding:0 12px}
.gsec{margin-top:8px}
.home .preview{height:168px}
.home .pvboard{transform:scale(.82);transform-origin:50% 50%;margin:0 -12px}
.home .ngpanel{gap:8px;padding:12px}
.home .ownrow .chip{height:34px;font-size:14px}
.home .hometop{height:56px}
.home .segs .seg{height:36px}
.home .ngpanel .chip{height:38px}
.home .preview{height:150px}
.home .pvboard{transform:scale(.74)}
.home .ngpanel .chips.lvl + p.fine{display:none}
body.typing{position:static}
/* Word links, the sheet header's buttons */
.wlink{color:inherit;text-decoration:underline;text-decoration-color:rgba(242,196,107,.7);text-underline-offset:3px}
.hbtns{display:flex;align-items:center;gap:6px}
.gx.warn{background:rgba(232,135,90,.9);color:#fff}

/* New game as letter tiles (Meny-A): three to a row, the chosen one gold and lifted. */
.mo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px;flex:none}
.mo-tile{position:relative;min-height:88px;box-sizing:border-box;padding:9px 10px;border:0;border-radius:14px;background:#FBF6EA;color:#1C2626;font:inherit;text-align:left;display:flex;flex-direction:column;gap:2px;box-shadow:0 4px 0 #E3D3B2,0 7px 0 #C2702C;cursor:pointer;transition:transform .12s ease}
.mo-tile .mo-k{font-size:28px;font-weight:800;line-height:1}
.mo-tile .mo-p{position:absolute;right:9px;top:8px;font-size:12px;font-weight:800;color:#7A4513}
.mo-tile .mo-t{font-size:15px;font-weight:800;line-height:1.1}
.mo-tile .mo-s{font-size:12px;color:#4F5B58;line-height:1.2}
.mo-tile[aria-checked="true"]{background:#FFE7A8;transform:translateY(-3px);box-shadow:0 4px 0 #E8C877,0 7px 0 #A9741E,0 0 0 3px #F2C46B}
.mo-tile:focus-visible{outline:3px solid #7FC8F0;outline-offset:2px}
/* The end of a game: the score counts up, glows and sends up a few gold sparks. */
.done .scorewrap{position:relative;display:flex;justify-content:center}
.done h1.glow{animation:scoreglow 1.4s ease-out 1 both}
/* Alone, a board not cleared: the praise comes in as the score finishes counting. */
.done .praise{display:flex;flex-direction:column;align-items:center;gap:2px;margin:4px 0 2px;animation:praisein .6s cubic-bezier(.2,1.2,.4,1) both}
.done .praise[data-still]{animation:none}
.done .praise b{font-size:20px;font-weight:800;color:#F4EFE2}
.done .praise span{font-size:15px;font-weight:700;color:#F2C46B}
html.light .done .praise b{color:#1C2626}
html.light .done .praise span{color:#8E5E14}
@keyframes praisein{0%{opacity:0;transform:translateY(10px) scale(.9)}100%{opacity:1;transform:none}}
@keyframes scoreglow{0%{text-shadow:0 0 0 rgba(255,214,110,0);transform:scale(1)}35%{text-shadow:0 0 22px rgba(255,214,110,.85);transform:scale(1.08)}100%{text-shadow:0 0 0 rgba(255,214,110,0);transform:scale(1)}}
.cheer{position:absolute;top:50%;width:10px;height:10px;margin-top:-5px;background:#F2C46B;border-radius:2px;pointer-events:none;animation:cheerup 1.3s ease-out both}
@keyframes cheerup{0%{opacity:0;transform:translate(0,10px) rotate(45deg) scale(.4)}20%{opacity:1}100%{opacity:0;transform:translate(var(--dx),-70px) rotate(225deg) scale(1)}}
/* A cleared board or a won duel: a laurel wreath around the score, golden leaves drifting down. */
.winov{position:absolute;inset:0;z-index:60;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 20px;box-sizing:border-box;background:radial-gradient(ellipse at 50% 40%,rgba(255,236,170,.14),rgba(0,0,0,.35) 75%),#0E3B35;color:#F4EFE2;cursor:pointer}
.winov .wbox{position:relative;width:300px;height:280px}
.winov .wreath{transform-box:view-box;transform-origin:150px 142px;animation:wbloom 1.2s cubic-bezier(.2,1.1,.4,1) both,wglow 2.4s ease-in-out both;animation-delay:calc(0ms - var(--age)),calc(1200ms - var(--age))}
.winov .wtxt{animation:wrise .5s ease-out both;animation-delay:calc(1100ms - var(--age))}
.winov .wsc{position:absolute;left:0;right:0;top:96px;display:flex;flex-direction:column;align-items:center;gap:2px}
.winov .wsc b{font-size:54px;font-weight:800;line-height:1;color:#F2C46B;font-variant-numeric:tabular-nums}
.winov .wsc span{font-size:14px;font-weight:700;color:#CFE0DA;letter-spacing:.06em}
.winov h1{margin:0;font-size:30px;font-weight:800;text-align:center}
.winov .wsub{font-size:16px;color:#CFE0DA;text-align:center}
.winov .act{margin-top:22px;padding:0 26px;flex:none}
.winov .rain{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.winov .drop{position:absolute;top:-40px;width:22px;height:12px;animation:wfall linear both}
@keyframes wbloom{from{opacity:0;transform:scale(.55) rotate(-14deg)}to{opacity:1;transform:none}}
@keyframes wglow{0%,100%{filter:drop-shadow(0 0 0 rgba(255,214,110,0))}50%{filter:drop-shadow(0 0 14px rgba(255,214,110,.75))}}
@keyframes wrise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes wfall{0%{opacity:0;transform:translateY(0) rotate(0)}10%{opacity:1}90%{opacity:1}100%{opacity:0;transform:translateY(880px) rotate(540deg)}}
@media (prefers-reduced-motion:reduce){.mo-tile{transition:none}.done h1.glow,.done .praise,.winov .wreath,.winov .wtxt{animation:none}.cheer,.winov .rain{display:none}}

/* The solo clock in its last minute. */
.stat.warn .v{color:#FFB59A}
html.light .stat.warn .v{color:#B3261E}
