/* Thaas styles (split out of index.html) */
/* Layout: one-screen card table over a Maldivian lagoon. Partner sits across, opponents at the sides, your fanned hand along the bottom edge.
   Colours: lagoon blues for the table, liyelaa jehun (lacquer work) red, black and yellow for the cards. */
:root{
  --felt:#0b5560; --felt-hi:#16858c; --felt-deep:#05303a;
  --saffron:#d39a5e; --cream:#fbf7ef; --ink:#161312; --red:#c0272d; --back:#a3191f; --lac-black:#161010; --lac-green:#2e7d4f;
  --hot:#ff6b5e;
  --line:rgba(251,247,239,.18); --muted:rgba(251,247,239,.84); --shade:rgba(2,22,28,.5);
  --f-display:"Rozha One", Georgia, "Times New Roman", serif;
  --f-body:"Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme:only light; /* Chrome's documented opt-out from its automatic dark theme for websites */
  /* (#9, 7 Nov 2026 every phone) safe edges. Everything a player reads or taps stays inside these; only background art or colour fills the
     whole screen. --sideMin keeps a margin even when a phone reports nothing: a curved screen says 0 but its edge bends away. The insets follow
     the phone live, so a camera on either side works and turning the phone over needs nothing. */
  --sideMin:18px;
  --insT:env(safe-area-inset-top,0px); --insB:env(safe-area-inset-bottom,0px); --insL:env(safe-area-inset-left,0px); --insR:env(safe-area-inset-right,0px);
  --safeT:var(--insT); --safeB:var(--insB);
  --safeL:max(calc(var(--insL) + 4px), var(--sideMin)); --safeR:max(calc(var(--insR) + 4px), var(--sideMin));
  --safeW:calc(100vw - var(--safeL) - var(--safeR)); --safeH:calc(100dvh - var(--safeT) - var(--safeB));   /* the safe box itself */
}
html,body{height:100%; margin:0}
html{-webkit-text-size-adjust:100%; text-size-adjust:100%}   /* the phone must not blow up text by itself when turned sideways */
[hidden]{display:none!important}
body{
  background:radial-gradient(ellipse at 50% 42%, #0d3f49, #061d24 62%, #030d11);
  background-color:#030d11;
  color:var(--cream); font-family:var(--f-body); font-size:15px;
  overflow:hidden; touch-action:manipulation; -webkit-user-select:none; user-select:none;
}
.app{box-sizing:border-box; height:100%; max-width:760px; margin:0 auto; padding-inline:var(--safeL) var(--safeR); padding-top:var(--safeT); display:flex; flex-direction:column; position:relative; z-index:1}
/* the table: dark lagoon-teal felt with a fine grain, a soft light over the middle and a thin gold frame */
body::before{content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(120,220,215,.10), rgba(120,220,215,0) 70%),
    radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #0d4a50 0%, #08343b 45%, #052329 100%)}
body::after{content:""; position:fixed; inset:8px; border-radius:22px; pointer-events:none; z-index:0;
  border:1px solid rgba(211,154,94,.22); box-shadow:inset 0 0 0 4px rgba(0,0,0,.18), inset 0 0 0 5px rgba(211,154,94,.08)}
body{text-shadow:0 1px 3px rgba(0,0,0,.55)}
.card,.btn,.chip b{text-shadow:none}
.av.pic{border:1.5px solid rgba(211,154,94,.55); color:transparent}
.card.back,.mini.back{box-shadow:0 0 0 1px rgba(251,247,239,.4), 0 1px 0 #2a1d14, 0 2px 0 #e8dfcb, 0 4px 9px rgba(0,0,0,.5)}
button{font:inherit; color:inherit; cursor:pointer}
button:focus-visible,.card:focus-visible,.pile:focus-visible{outline:2px solid var(--saffron); outline-offset:3px}

/* top bar */
.bar{display:flex; align-items:center; justify-content:space-between; gap:12px; padding-block:10px 6px}
.logo{font-family:var(--f-display); font-size:30px; line-height:1; color:var(--saffron); letter-spacing:.01em}
.logo small{display:block; font-family:var(--f-body); font-size:10px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin-bottom:1px}
/* (31 Oct 2026) 10: the revealed Hukum suit under the logo, the word Hukum under it; it hangs below the bar so nothing moves */
.logo{position:relative}
.hkbadge{position:absolute; left:0; top:100%; margin-top:4px; display:flex; flex-direction:column; align-items:center; z-index:5;
  min-width:44px; padding:3px 6px 4px; border-radius:10px; background:#fbf7ef; border:2px solid var(--saffron); box-shadow:0 3px 10px rgba(0,0,0,.4)}
.hkbadge b{font-family:var(--f-body); font-size:30px; line-height:1; font-weight:400}
.hkbadge.r b{color:#c0272d} .hkbadge.k b{color:#1d1b1a}
.hkbadge small{margin:1px 0 0; font-size:9px; letter-spacing:.1em; color:#5a4630}
.hkbadge[hidden],body:not(.g-ten) .hkbadge{display:none}
@media (orientation:landscape){ body.g-ten.hk-on #tTens .us{margin-top:60px} }
.score{display:flex; align-items:center; gap:8px; font-variant-numeric:tabular-nums; font-weight:600; font-size:13px; color:var(--muted)}
.score b{font-size:20px; color:var(--cream); font-weight:800}
.score .sep{width:1px; height:18px; background:var(--line)}
.tools{display:flex; gap:6px}
.ghost{background:transparent; border:1px solid var(--line); border-radius:999px; padding:6px 12px; font-size:13px; font-weight:600}
.ghost:active{background:rgba(251,246,234,.08)}

/* table */
.table{flex:1; min-height:0; display:grid; grid-template-columns:72px 1fr 72px; grid-template-rows:auto 1fr; grid-template-areas:"n n n" "w c e"; gap:4px}
.seat{display:flex; flex-direction:column; align-items:center; gap:6px; padding-block:6px}
.seat.north{grid-area:n}
.seat.west{grid-area:w; justify-content:center}
.seat.east{grid-area:e; justify-content:center}
.who{display:flex; align-items:center; gap:6px; flex-direction:column; text-align:center}
.north .who{flex-direction:row}
.av{width:40px; height:40px; border-radius:50%; display:grid; place-items:center; font-family:var(--f-display); font-size:15px; background:var(--shade); border:1px solid var(--line); transition:box-shadow .2s}
.nm{font-weight:800; font-size:14px; line-height:1.1}
.tag{font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}
.tag.us{color:var(--saffron)}
.tag.legend{color:var(--saffron); font-weight:800}
.slots{display:grid; gap:8px}
.slot{display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13px; color:var(--muted)}
.slot select{flex:0 1 62%; min-width:0; background:var(--shade); color:var(--cream); border:1px solid var(--line); border-radius:10px; padding:9px 10px; font:inherit; font-size:14px}
.roster{padding-left:20px; margin:0; display:grid; gap:4px}
.seat.active .av{background-color:rgba(211,154,94,.18)}
.fan{display:flex}
.fan{padding:6px 14px 0}
.fan .mini{width:24px; height:34px; border-radius:3px; margin-left:calc(var(--st,10px) - 24px); box-shadow:0 1px 3px rgba(0,0,0,.45); transform-origin:50% 200%; rotate:var(--a,0deg)}
.fan .mini:first-child{margin-left:0}
.cnt{font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums}

.center{grid-area:c; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; min-width:0}
.piles{display:flex; gap:22px; align-items:flex-end}
.pilewrap{display:flex; flex-direction:column; align-items:center; gap:6px}
.pilelabel{font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-variant-numeric:tabular-nums}
.pile{--pw:64px; position:relative; width:var(--pw); height:calc(var(--pw)*1.4); border-radius:8px; background:none; border:0; padding:0}
.pile .card{--w:var(--pw); position:absolute; left:0; top:0}
.pile.drop{box-shadow:0 0 0 4px var(--saffron)}
.pile .under{transform:rotate(-7deg) translate(-4px,2px); filter:brightness(.85)}
.pile.empty{border:1.5px dashed var(--line)}
.pile.can{animation:beckon 1.6s ease-in-out infinite}
@keyframes beckon{0%,100%{box-shadow:0 0 0 0 rgba(240,165,58,0)} 50%{box-shadow:0 0 0 5px rgba(240,165,58,.55)}}
.msg{min-height:3em; max-width:30ch; text-align:center; font-size:14px; line-height:1.45; color:var(--cream); text-wrap:balance}

/* cards */
.card{
  --w:60px; width:var(--w); height:calc(var(--w)*1.4); border-radius:calc(var(--w)*.12);
  background:#fffdf7 center/100% 100% no-repeat; color:var(--ink);
  /* a real card has thickness: a few pale edge layers under it, then a soft shadow on the table */
  --edge:0 1px 0 #e7e0d1, 0 2px 0 #d3cbba, 0 3px 0 #bdb4a2;
  box-shadow:var(--edge), 0 5px 10px rgba(0,0,0,.38), 0 1px 2px rgba(0,0,0,.25);
  position:relative; border:1px solid rgba(29,32,38,.18);
}
/* light falling across the card from the top left */
.card::after{content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:2;
  background:linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 78%, rgba(120,100,70,.06) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(0,0,0,.08)}
.card.back::after{background:linear-gradient(135deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,0) 40%, rgba(0,0,0,0) 65%, rgba(0,0,0,.18) 100%)}
/* the stock looks like a thick deck */
#stock .card{box-shadow:1px 1px 0 #2a1d14, 2px 2px 0 #f2ead8, 3px 3px 0 #2a1d14, 4px 4px 0 #efe6d2, 5px 5px 0 #2a1d14, 6px 6px 0 #ebe1cc, 8px 10px 14px rgba(0,0,0,.45)}
/* Card fronts are drawn as pictures (see cardFaces()): Chrome's forced dark mode on Android
   recolours plain boxes and text but leaves pictures alone, like the card backs. */
/* card back: the user's picture for each game, shown whole (pictures added by backArtStyles()) */
.back,.card.back{
  background:var(--back) center/100% 100% no-repeat;
  border:1px solid rgba(0,0,0,.55);
}
.card.pop{animation:pop .35s ease-out}
@keyframes pop{from{transform:scale(1.25) rotate(6deg); opacity:.4}}

/* your seat */
.me{padding-block:4px calc(10px + var(--safeB))}
.mebar{display:flex; align-items:center; gap:6px; flex-wrap:wrap; padding-block:4px 2px}
.mebar .btn{padding:9px 14px}
.mebar .who{flex-direction:row}
.me{position:relative}
.me.active .av{background-color:rgba(211,154,94,.18)}
/* turn timer: a ring that empties over the minute */
.av{position:relative}
.active .av::before{content:""; position:absolute; inset:-5px; border-radius:50%;
  background:conic-gradient(var(--ring,var(--saffron)) calc(var(--t,1)*360deg), rgba(251,247,239,.14) 0);
  -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask:radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px))}
.hurry{--ring:var(--hot)}
.clk{font-size:11px; font-weight:800; font-variant-numeric:tabular-nums; color:var(--saffron)}
.clk:empty{display:none}
.hurry .clk{color:var(--hot)}
.dv{font-family:"Noto Sans Thaana", "MV Boli", sans-serif; font-size:.5em; color:var(--muted); vertical-align:middle; margin-left:.15em}
/* fishathi: a Digu called with the card an opponent just threw. The thrower's palm comes to the middle and gets slapped by the winning card. */
.smash{position:fixed; inset:0; z-index:40; pointer-events:none; background:rgba(2,20,26,0); }
.smash-palm,.smash-card,.smash-burst,.smash-red,.smash-pow{position:fixed; left:0; top:0; will-change:transform}
.smash-palm{width:180px; height:180px; display:grid; place-items:center; font-size:150px; line-height:1; filter:drop-shadow(0 12px 16px rgba(0,0,0,.5))}
.smash-red{width:120px; height:120px; border-radius:50%; background:radial-gradient(circle, rgba(255,40,40,.75), rgba(255,40,40,0) 70%); opacity:0; mix-blend-mode:multiply}
.smash-card .card{--w:80px; box-shadow:0 16px 32px rgba(0,0,0,.55)}
.smash-burst{width:260px; height:260px; border-radius:50%; opacity:0;
  background:radial-gradient(circle, rgba(255,246,214,.95) 0 12%, rgba(211,154,94,.75) 24%, transparent 44%),
             repeating-conic-gradient(rgba(255,246,214,.85) 0 5deg, transparent 5deg 20deg);
  -webkit-mask:radial-gradient(circle, #000 0 58%, transparent 70%); mask:radial-gradient(circle, #000 0 58%, transparent 70%)}
.smash-pow{font-size:64px; line-height:1; opacity:0}
.smash-flash{position:fixed; inset:0; background:#fff; opacity:0; pointer-events:none}
.smash-text{position:fixed; left:50%; top:20%; z-index:2; transform:translate(-50%,-50%) scale(0); text-align:center; width:max-content; max-width:92vw}
.smash-text b{font-family:"Noto Sans Thaana", "MV Boli", sans-serif; font-weight:800; font-size:clamp(64px,19vw,112px); line-height:1.25; color:var(--saffron);
  -webkit-text-stroke:4px var(--lac-black); paint-order:stroke fill; text-shadow:0 6px 0 var(--back), 0 14px 28px rgba(0,0,0,.55)}
/* emojis */
.emobtn{font-size:22px; line-height:1; padding:4px 10px}
.reacts{display:flex; gap:6px}
.reacts .ghost{flex:1}
/* voice messages */
.vchips{display:flex; flex-wrap:wrap; gap:6px}
.vchips button{border:1.5px solid var(--line); background:var(--shade); border-radius:999px; padding:8px 14px; font-weight:800; font-size:14px}
.vchips button.def{border-color:var(--saffron); color:var(--saffron)}
@keyframes eq{0%,100%{transform:scaleY(.3)} 50%{transform:scaleY(1)}}
@keyframes vin{from{opacity:0; transform:translate(-50%,-70%) scale(.6)}}
.emotray{position:absolute; bottom:100%; left:0; right:0; margin-inline:auto; width:max-content; max-width:100%; display:grid; gap:6px; padding:10px; border-radius:16px; background:var(--felt-deep); border:1px solid var(--line); box-shadow:0 10px 30px rgba(0,0,0,.45); z-index:20}
.erow{display:grid; gap:2px}
.erow span{font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); padding-left:4px}
.erow div{display:grid; grid-template-columns:repeat(5,1fr); gap:4px}
.emotray{box-sizing:border-box; max-height:calc(100dvh - 140px); overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch}
.emotray button{font-size:34px; line-height:1; width:56px; height:56px; border-radius:12px; border:0; background:transparent}
.emotray button:active,.emotray button:hover{background:rgba(251,247,239,.1)}
@media (max-width:380px){ .emotray button{width:52px; height:52px; font-size:31px} }
.emo-u{filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))}
.emo-i{display:inline-block; width:1em; height:1em; vertical-align:-.14em; object-fit:contain; pointer-events:none; -webkit-user-drag:none}
.bubble .emo-i{width:1em; height:1em}
.ai .emo-i{width:26px; height:26px}
.bubble{position:fixed; z-index:30; font-size:72px; line-height:1; pointer-events:none; transform:translate(-50%,-100%); filter:drop-shadow(0 4px 6px rgba(0,0,0,.4)); animation:bub 2.6s ease forwards}
@keyframes bub{0%{opacity:0; transform:translate(-50%,-50%) scale(.4)} 12%{opacity:1; transform:translate(-50%,-105%) scale(1.15)} 22%{transform:translate(-50%,-100%) scale(1)} 80%{opacity:1} 100%{opacity:0; transform:translate(-50%,-150%)}}
.spacer{flex:1}
.btn{border:0; border-radius:999px; padding:9px 16px; font-weight:800; font-size:14px; background:var(--cream); color:var(--ink)}
.btn:disabled{opacity:.35; cursor:default}
.btn.digu{background:var(--saffron); color:var(--ink); font-family:var(--f-display); font-weight:400; font-size:18px; padding:6px 18px; animation:beckon 1.2s ease-in-out infinite}
.hand{position:relative; width:100%; margin-top:4px}
.hand .card{position:absolute; transition:left .25s ease, top .15s ease, rotate .25s ease, translate .18s ease, scale .2s ease; transform-origin:50% 120%; cursor:grab; touch-action:none}
.hand .card.dragging{rotate:0deg}
/* touching a card: it rises out of the fan straight away, then keeps growing the longer you hold it */
.hand .card.touch{z-index:150 !important; rotate:0deg; translate:0 -22%; scale:1.6;
  transition:left .25s ease, top .15s ease, rotate .15s ease, translate .15s ease-out, scale 1.3s cubic-bezier(.15,.55,.3,1) .1s;
  box-shadow:0 0 0 1px rgba(0,0,0,.25), 0 16px 30px rgba(0,0,0,.55)}
.fly{position:fixed; z-index:31; pointer-events:none; transform-origin:0 0; will-change:transform}
.fly .card{--w:inherit}
/* whose turn it is: the name turns gold and the timer ring runs (no spotlight, user 18 Oct) */
.seat,.bseat{border-radius:16px; transition:background .35s ease}
.seat.active .nm,.bseat.active .nm,.me.active .nm{color:var(--saffron)}
@keyframes turnGlow{0%,100%{box-shadow:0 0 0 2px rgba(211,154,94,.85), 0 0 14px 3px rgba(211,154,94,.5)} 50%{box-shadow:0 0 0 2px rgba(211,154,94,.85), 0 0 26px 9px rgba(211,154,94,.28)}}
.flipback{position:absolute; inset:-1px; border-radius:inherit; pointer-events:none}
.dealfly{position:fixed; --w:54px; z-index:30; pointer-events:none; box-shadow:0 4px 10px rgba(0,0,0,.4)}
body.dealing .seat .fan,body.dealing .bseat .fan,body.dealing .seat .cnt,body.dealing .bseat .cnt{visibility:hidden}
.hand .card.dragging{transition:none; cursor:grabbing; z-index:100 !important; box-shadow:0 0 0 2px var(--saffron), 0 14px 24px rgba(0,0,0,.5)}
.hand .card.sel{box-shadow:0 0 0 2px var(--saffron), 0 8px 16px rgba(0,0,0,.45)}
.hand .card.fresh::after{content:""; position:absolute; inset:-3px; border-radius:inherit; border:2px solid var(--saffron); pointer-events:none}
.hand .card.locked{filter:saturate(.6)}
.meldbar{position:absolute; height:3px; border-radius:2px; background:var(--saffron); opacity:.85}

/* overlays */
.ov{position:fixed; inset:0; background:rgba(2,20,26,.74); display:grid; place-items:center; padding:max(16px,var(--safeT)) max(16px,var(--safeR)) max(16px,var(--safeB)) max(16px,var(--safeL)); z-index:10}
.panel{background:var(--felt); border:1px solid var(--line); border-radius:16px; padding:22px 20px; width:100%; max-width:420px; max-height:100%; overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,.5)}
.panel h2{font-family:var(--f-display); font-weight:400; font-size:30px; line-height:1.1; margin:0 0 4px; color:var(--saffron); text-wrap:balance}
.panel h3{font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin:18px 0 8px}
.panel p,.panel li{line-height:1.5; color:var(--cream)}
.panel p{margin:0 0 10px}
.panel ul{padding-left:18px; margin:0; display:grid; gap:6px}
.melds{display:flex; flex-wrap:wrap; gap:12px}
.meldrow{display:flex; gap:3px}
.meldrow .card{--w:38px}
.final{display:flex; justify-content:center; gap:26px; margin:18px 0; font-variant-numeric:tabular-nums; text-align:center}
.final b{display:block; font-size:34px; font-weight:800}
.final span{font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}
.panel .btn{width:100%; margin-top:6px; padding:12px}
.example{display:flex; gap:3px; margin:4px 0 2px}
.example .card{--w:30px}

/* Bondi table: opponents across the top, the round's cards in the middle */
.btable{flex:1; min-height:0; display:grid; grid-template-rows:auto 1fr; gap:6px}
.bseats{display:flex; justify-content:center; gap:10px; padding-block:6px 2px}
.bseat{display:flex; flex-direction:column; align-items:center; gap:3px; min-width:0; flex:0 1 128px; text-align:center}
.bseat .who{flex-direction:row; gap:6px}
.bseat .nm{white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100px; display:inline-block}
.bseat .fan .mini{width:18px; height:26px; margin-left:calc(var(--st,8px) - 18px)}
.bseat.safe{opacity:.55}
.safe-tag{font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--saffron)}
.bmid{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:0}
.bcenter{display:flex; flex-direction:column; align-items:center; gap:6px}
.blead{font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); min-height:1.2em}
.btrick{--tw:60px; display:flex; gap:10px; align-items:flex-end; justify-content:center; min-height:calc(var(--tw)*1.4 + 18px); padding:4px 10px; border-radius:14px}
.btrick.drop{outline:3px solid var(--saffron); outline-offset:4px}
.tcard{display:flex; flex-direction:column; align-items:center; gap:3px}
.tcard .card{--w:var(--tw)}
.tcard span{font-size:11px; color:var(--muted); font-weight:700; max-width:70px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.tcard.high .card{box-shadow:0 0 0 3px var(--saffron), 0 6px 14px rgba(0,0,0,.4)}
.tcard.new .card{animation:pop .35s ease-out}
.tempty{color:var(--muted); font-size:13px; border:1.5px dashed var(--line); border-radius:12px; padding:22px 18px}
/* (31 Oct) a finished trick stays in view and only fades over its last moment (--clr = the wait, set by trickClearing):
   the old transition hid the cards at once, because the table is redrawn with the class already on */
.btrick.clearing .tcard{animation:tclear .45s ease-in var(--clr,.8s) forwards}
@keyframes tclear{to{transform:translateY(-30px) scale(.8); opacity:0}}
@media (prefers-reduced-motion:reduce){ .btrick.clearing .tcard{animation-name:tclearfade} }
@keyframes tclearfade{to{opacity:0}}
.hand .card.dim{filter:brightness(.55) saturate(.5)}
.ltr{font-style:normal; font-weight:800; color:var(--hot); letter-spacing:.12em; margin-left:2px; font-size:12px}
@media (orientation:landscape) and (max-height:540px){
  .btable{gap:2px}
  .bseats{gap:6px; padding-block:2px 0}
  .bmid{flex-direction:row; gap:20px}
  .btrick{--tw:min(54px, 13vh); min-height:calc(var(--tw)*1.4 + 16px)}
  .bmid .msg{max-width:24ch; text-align:left}
}

/* scores row */
.scores{display:flex; flex-wrap:wrap; gap:6px; padding-block:0 4px}
.chip{display:flex; align-items:baseline; gap:6px; white-space:nowrap; padding:4px 10px; border-radius:999px; background:var(--shade); border:1px solid var(--line); font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums}
.chip b{color:var(--cream); font-size:15px; font-weight:800}
.chip.mine{border-color:rgba(240,165,58,.6)}
.chip.mine b{color:var(--saffron)}
.target{font-size:12px; color:var(--muted); align-self:center; margin-left:auto}

/* setup */
.opts{display:grid; gap:8px}
.opt{display:flex; flex-direction:column; align-items:flex-start; gap:2px; text-align:left; padding:10px 14px; border-radius:12px; background:var(--shade); border:1.5px solid var(--line)}
.opt b{font-size:16px; font-weight:800}
.opt span{font-size:13px; color:var(--muted)}
.opt[aria-pressed="true"]{border-color:var(--saffron); background:rgba(240,165,58,.12)}
.opt[aria-pressed="true"] b{color:var(--saffron)}
.opts.row{grid-template-columns:1fr 1fr}
.opts.row .opt{align-items:center; text-align:center}
.panel .ghost.wide{width:100%; margin-top:8px; padding:10px}

/* round results */
#roundPanel .rbtns{position:sticky; bottom:-22px; z-index:3; margin:16px -20px -22px; padding:14px 20px calc(16px + var(--safeB));
  background:linear-gradient(rgba(11,85,96,0), var(--felt) 32%)}
@media (max-width:400px){ #roundPanel .rbtns{margin-inline:-16px; padding-inline:16px} }
@media (orientation:landscape) and (max-height:540px){ #roundPanel .rbtns{display:grid; grid-template-columns:1fr 1fr; gap:8px; padding-block:10px 10px; bottom:-20px} #roundPanel .rbtns .btn,#roundPanel .rbtns .ghost{margin:0} }
#roundPanel .scores{position:static; transform:none; max-width:none; flex-wrap:wrap; overflow:visible; z-index:auto}
/* outside a game (menus, the games screen) your hand is hidden: a sideways hand is wider than an upright phone,
   and Android then zooms the whole page out (everything looked small after a game) */
body:not(.in-game) .me, body:not(.in-game) #hand{display:none}
.htabs{display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px}
/* Laari: the middle stack, your pile and your buying cards */
.lmid{position:relative; width:calc(var(--pw,64px)*1.9); height:calc(var(--pw,64px)*1.55)}
.lmid .lcard{position:absolute; left:50%; top:50%; transform:translate(-50%,-50%) translate(calc((var(--i) - 3)*5px), calc((var(--i) - 3)*-2px))}
.lmid .lcard .card{--w:var(--pw,64px)}
.lmid .lcard.top .card{box-shadow:0 0 0 2px rgba(211,154,94,.7), var(--edge), 0 8px 16px rgba(0,0,0,.45)}
.lme{display:flex; align-items:center; gap:16px; padding:0 8px 10px; height:100%; box-sizing:border-box}
.hand .lme .card{position:relative; left:auto; top:auto; rotate:none; cursor:default; transition:none}
.lpile{position:relative; display:grid; justify-items:center; gap:4px; border:0; background:none; padding:0; color:var(--cream)}
.lpile .card{--w:74px}
.lpile.can .card{box-shadow:0 0 0 3px var(--saffron), 0 0 22px rgba(211,154,94,.55), var(--edge), 0 8px 16px rgba(0,0,0,.45); animation:lnudge 1.6s ease-in-out infinite}
@keyframes lnudge{50%{transform:translateY(-5px)}}
.lpile b{font-size:15px; padding:1px 10px; border-radius:999px; background:rgba(2,20,26,.7); border:1px solid var(--line)}
.lempty{width:74px; height:104px; border-radius:9px; border:2px dashed var(--line); display:grid; place-items:center; color:var(--muted); font-size:12px}
.lbuys{display:grid; gap:4px}
.lbuys>span{font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}
.lbuys>div{display:flex; gap:6px; flex-wrap:wrap}
.lbuy{position:relative; border:0; background:none; padding:0}
.lbuy .card{--w:44px}
.lbuy i{position:absolute; right:-5px; top:-6px; z-index:3; font-style:normal; font-size:11px; font-weight:800; padding:1px 6px; border-radius:999px; background:var(--saffron); color:#1d1405}
.lbuy:disabled{opacity:.8}
.lbuy.sel .card{box-shadow:0 0 0 3px var(--saffron), var(--edge), 0 8px 14px rgba(0,0,0,.45); transform:translateY(-8px)}
.lbuys em{font-style:normal; font-size:12px; color:var(--muted)}
.lowe{align-self:center; font-size:12px; font-weight:700; color:#ff9a90}
.lbuys-mini{display:flex; gap:3px; flex-wrap:wrap; justify-content:center; margin-top:2px}
.lbc{font-size:10px; font-weight:800; padding:1px 4px; border-radius:4px; background:#fffdf7; color:#161312; text-shadow:none}
.lbc.r{color:#c0272d}
.bseat.pickable{outline:2px dashed rgba(211,154,94,.7); outline-offset:3px; border-radius:14px; cursor:pointer}
.bseat.picked{outline:3px solid var(--saffron); background:rgba(211,154,94,.12)}
.safe-tag.out{background:rgba(255,107,94,.18); color:#ff9a90}
.lhand{position:fixed; left:0; top:0; z-index:31; pointer-events:none; filter:drop-shadow(0 8px 10px rgba(0,0,0,.45))}
.lspent{opacity:.4; filter:grayscale(.6)}
.lbuys>div .lspent{align-self:center}
#lAutoBtn.on{background:var(--saffron); color:#1d1405; border-color:var(--saffron)}
.emobit{position:absolute; font-size:.32em; line-height:1; pointer-events:none}
.emobit .emo-i{width:1em; height:1em}
.emobit.tear{font-size:.26em} .emobit.mini{font-size:.3em} .emobit.conf{font-size:.16em}
.emobit .drop{display:block; width:.5em; height:.7em; border-radius:50% 50% 50% 50% / 60% 60% 40% 40%; background:radial-gradient(circle at 35% 35%, #e8f8ff, #6cc8ff 45%, #2a8fe0); transform:rotate(180deg)}
.emobit .puff{display:block; width:.9em; height:.6em; border-radius:50%; background:radial-gradient(circle, rgba(255,255,255,.95), rgba(220,220,220,.4) 65%, rgba(255,255,255,0) 72%)}
.emobit .cf{display:block; width:.7em; height:1em; border-radius:2px}
.dust{position:fixed; z-index:28; width:120px; height:70px; pointer-events:none; border-radius:50%;
  background:radial-gradient(ellipse at center, rgba(255,250,235,.55), rgba(255,250,235,.18) 45%, rgba(255,250,235,0) 70%)}
/* finished groups in your hand: each tinted its own colour (and lifted) */
.hand .card.g0{box-shadow:0 0 0 1.5px #e8b931, var(--edge)}
.hand .card.g1{box-shadow:0 0 0 1.5px #3cc4e6, var(--edge)}
.hand .card.g2{box-shadow:0 0 0 1.5px #e9589f, var(--edge)}
.hand .card.sel{box-shadow:0 0 0 3px var(--saffron), var(--edge), 0 14px 22px rgba(0,0,0,.5)}
.deadpill{position:absolute; left:6px; top:-24px; z-index:60; display:flex; gap:6px; pointer-events:none}
.deadpill span{padding:2px 9px; border-radius:999px; font-size:11px; font-weight:700; color:var(--muted); background:rgba(2,20,26,.78); border:1px solid var(--line); text-shadow:none}
.deadpill b{color:#7fe3a0; font-variant-numeric:tabular-nums} .deadpill b.dd{color:#ff9a90}
.turnbar{position:fixed; left:50%; top:calc(6px + var(--safeT)); z-index:40; pointer-events:none; display:flex; align-items:baseline; gap:10px;
  padding:8px 20px; border-radius:0 0 16px 16px; background:linear-gradient(180deg,#2a9fd6,#1772b8); color:#fff; box-shadow:0 8px 22px rgba(0,0,0,.4); text-shadow:none}
.turnbar b{font-size:16px; letter-spacing:.02em} .turnbar span{font-size:12px; opacity:.85}
/* big gold lettering for the big moments */
.callout b,.burst b{background:linear-gradient(180deg,#fff6c9 0%,#f0c08a 38%,#e7a023 62%,#b9711a 100%); -webkit-background-clip:text; background-clip:text; color:transparent;
  -webkit-text-stroke:1.5px #4a2a06; filter:drop-shadow(0 3px 0 #5a3408) drop-shadow(0 8px 14px rgba(0,0,0,.55))}
.callout.bad b{background:linear-gradient(180deg,#ffe1dc 0%,#ff9f92 45%,#d9493c 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-stroke:1.5px #4a0d08; filter:drop-shadow(0 3px 0 #5a120c) drop-shadow(0 8px 14px rgba(0,0,0,.55))}
.ptiles{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:14px 0 12px}
.ptile{display:grid; justify-items:center; gap:3px; padding:14px 6px 12px; border-radius:16px; color:var(--cream); text-align:center;
  background:linear-gradient(170deg, rgba(211,154,94,.14), rgba(2,22,28,.55) 55%); border:1px solid rgba(211,154,94,.32);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 6px 18px rgba(0,0,0,.25); transition:transform .12s ease, border-color .12s ease}
.ptile:active{transform:scale(.97)}
.ptile:hover{border-color:rgba(211,154,94,.6)}
.ptile i{display:grid; place-items:center; width:46px; height:46px; border-radius:14px; margin-bottom:4px; color:var(--saffron);
  background:radial-gradient(circle at 50% 35%, rgba(211,154,94,.22), rgba(211,154,94,.06)); border:1px solid rgba(211,154,94,.35)}
.ptile i svg{width:26px; height:26px}
.ptile b{font-size:13.5px; letter-spacing:.01em}
.ptile small{font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums}
.mrow .ico svg{width:22px; height:22px}
.boli{display:inline-block; width:.78em; height:1.12em; vertical-align:-.22em; background:url(../art/icons/boli-48.png) center/contain no-repeat; filter:drop-shadow(0 0 3px rgba(245,215,170,.45))}
.ctabs{display:flex; gap:6px; overflow-x:auto; padding-bottom:4px; margin:4px 0 12px; scrollbar-width:none}
.ctabs button{flex:none; padding:7px 14px; border-radius:999px; border:1.5px solid var(--line); background:var(--shade); color:var(--cream); font-weight:700; font-size:13px}
.ctabs button.on{background:var(--saffron); border-color:var(--saffron); color:var(--ink)}
.slabel.stillto{grid-column:1 / -1; margin-top:8px}
.sopt.locked{opacity:.45}
.sopt.locked[data-goshop]{opacity:.6}
.emogrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(70px,1fr)); gap:8px}
.emogrid .emo{display:grid; justify-items:center; gap:2px; padding:8px 4px; border-radius:12px; background:var(--shade); border:1.5px solid var(--line); font-size:28px}
.emogrid .emo small{font-size:10px; color:var(--muted)}
.emogrid .emo.locked{opacity:.4; filter:grayscale(.7)}
.shopgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px}
.sitem{position:relative; display:grid; justify-items:center; gap:4px; padding:12px 8px 10px; border-radius:14px; background:var(--shade); border:1.5px solid var(--line); text-align:center; color:var(--cream)}
.sitem.prem{border-color:rgba(211,154,94,.55); background:linear-gradient(160deg, rgba(211,154,94,.12), var(--shade) 60%)}
.sitem.armed{border-color:var(--saffron); box-shadow:0 0 0 3px rgba(211,154,94,.3)}
.sitem.have{opacity:.7}
.sitem b{font-size:14px}
.sitem .price{font-weight:800; font-size:13px; color:var(--saffron)}
.sitem small{font-size:11px; color:var(--muted); line-height:1.3}
.sitem .ptag{position:absolute; top:8px; right:8px; font-style:normal; font-size:9px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#1a1206; background:linear-gradient(90deg,#9a6a3e,#f5cf9f,#9a6a3e); padding:2px 6px; border-radius:6px}
.packthumb{display:flex; gap:2px; height:70px; align-items:center} .packthumb .emo-i{width:38px; height:38px}
.dthumb.big{width:64px; height:90px; border-radius:6px}
.tthumb.big{width:120px; height:70px}
.soon2{grid-column:1 / -1; display:grid; gap:6px; padding:16px; border-radius:14px; border:1.5px dashed rgba(211,154,94,.5); background:rgba(211,154,94,.06)}
.soon2 span{color:var(--muted); font-size:13px}
.callout{position:fixed; left:50%; top:46%; z-index:60; pointer-events:none; display:grid; justify-items:center; gap:5px; text-align:center;
  min-width:min(88vw,380px); padding:20px 30px 18px; border-radius:18px; border:3px solid transparent;
  background:linear-gradient(160deg,#2a1a05,#120b03 55%,#1d1206) padding-box, linear-gradient(135deg,#fff4c2,#d39a5e 25%,#8a5a12 50%,#f0c08a 75%,#b97a1a) border-box;
  box-shadow:0 0 0 1px rgba(0,0,0,.6), 0 0 40px rgba(255,190,60,.55), 0 0 90px rgba(255,170,40,.3), 0 24px 50px rgba(0,0,0,.7)}
.callout.bad{background:linear-gradient(160deg,#2a0806,#120303 55%,#1f0605) padding-box, linear-gradient(135deg,#ffd1c9,#ff6b5e 25%,#7a1410 50%,#ff9a8c 75%,#a3241b) border-box;
  box-shadow:0 0 0 1px rgba(0,0,0,.6), 0 0 40px rgba(255,90,70,.5), 0 24px 50px rgba(0,0,0,.7)}
.callout b{font-family:var(--f-display); font-weight:400; font-size:clamp(34px,8vw,54px); line-height:1.05; color:var(--saffron)}
.callout.bad b{color:#ffb3ad}
.callout i{font-style:normal; font-weight:800; font-size:20px; color:#ff6b5e; letter-spacing:.02em}
.callout span{font-weight:800; font-size:16px; color:#f6e3c8; letter-spacing:.03em}
.callout small{font-size:13px; color:var(--muted)}
.tally{display:flex; flex-wrap:wrap; gap:6px}
.fule{position:fixed; left:50%; top:46%; z-index:61; pointer-events:none; display:grid; justify-items:center; gap:8px; text-align:center;
  padding:16px 30px 18px; border-radius:22px; background:rgba(22,8,7,.94); border:2px solid #ff6b5e; box-shadow:0 0 0 6px rgba(255,107,94,.15), 0 24px 60px rgba(0,0,0,.65)}
.fule b{font-family:"Noto Sans Thaana","MV Boli",sans-serif; font-weight:800; font-size:clamp(46px,12vw,88px); line-height:1.25; color:#ff6b5e;
  -webkit-text-stroke:4px #2a0d0b; paint-order:stroke fill; text-shadow:0 6px 0 #5a1612, 0 16px 30px rgba(0,0,0,.6)}
.fule span{font-weight:800; font-size:16px; padding:3px 14px; border-radius:999px; background:var(--cream); color:#7a1d16; box-shadow:0 6px 16px rgba(0,0,0,.4)}
.tally span{padding:5px 10px; border-radius:999px; background:var(--shade); border:1px solid var(--line); font-size:12px; color:var(--muted)}
.tally span.us{border-color:rgba(211,154,94,.45)}
.tally b{color:var(--cream)} .tally em{font-style:normal; color:#ff8f86; font-weight:800}
.res tr.digurow td:first-child{font-weight:800}
.htab{padding:6px 12px; border-radius:999px; border:1.5px solid var(--line); background:var(--shade); color:var(--cream); font-weight:700; font-size:13px}
.htab.us{border-color:rgba(211,154,94,.45)}
.htab.on{background:var(--saffron); color:var(--ink); border-color:var(--saffron)}
.htab .badge{margin-left:4px}
.meldrow.loose{opacity:.5}
#handView{min-height:60px}
#handView .note{flex-basis:100%; margin:0}
.res small.who2{display:block; font-size:11px; font-weight:600; color:var(--muted)}
.res tr.usrow td{color:var(--saffron)}
.res td.deadc{color:#ff8f86}
#roundPanel.teamwin{border:2px solid var(--saffron); box-shadow:0 0 0 4px rgba(211,154,94,.22), 0 0 70px rgba(211,154,94,.45), 0 20px 60px rgba(0,0,0,.5)}
.winribbon{position:relative; overflow:hidden; margin:-6px 0 10px; padding:10px 14px; border-radius:12px; text-align:center;
  font-family:var(--f-display); font-size:clamp(18px,5.4vw,24px); line-height:1.15; color:#2a1a02; text-shadow:none;
  background:linear-gradient(100deg,#c98a2a,#f5cf9f 45%,#d39a5e 60%,#c98a2a); box-shadow:0 6px 20px rgba(211,154,94,.4); animation:ribbonIn .6s cubic-bezier(.2,1.4,.4,1)}
.winribbon::after{content:""; position:absolute; top:0; bottom:0; width:40%; left:-50%; background:linear-gradient(100deg,transparent,rgba(255,255,255,.7),transparent); animation:ribbonShine 2.4s ease-in-out .6s infinite}
@keyframes ribbonIn{from{transform:scale(.6); opacity:0}}
@keyframes ribbonShine{to{left:120%}}
.res{width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; font-size:14px}
.ov{grid-template-columns:minmax(0,1fr)}
.ov>.panel{min-width:0; justify-self:center; box-sizing:border-box}
@media (max-width:400px){ .panel{padding:20px 16px} }
.res th{font-size:10px; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); font-weight:600; text-align:right; padding:4px 4px}
.res th:first-child,.res td:first-child{text-align:left; padding-left:0}
.res td{padding:7px 4px; border-top:1px solid var(--line); text-align:right}
.res td:last-child{font-weight:800}
.badge{display:inline-block; margin-left:6px; padding:1px 7px; border-radius:999px; background:var(--saffron); color:var(--ink); font-size:11px; font-weight:800}
.vals{display:grid; grid-template-columns:repeat(3,auto); justify-content:start; gap:4px 16px; font-variant-numeric:tabular-nums}

@media (max-height:640px){ .pile{--pw:52px} .fan .mini{width:20px;height:28px; margin-left:calc(var(--st,8px) - 20px)} .msg{min-height:2.6em; font-size:13px} }
.card,.back,.pile,.av,.btn{forced-color-adjust:none}

/* Phones held sideways: a short, wide screen. Middle row holds the piles and the message; buttons sit beside your hand. */
@media (orientation:landscape) and (max-height:540px){
  .app{position:relative; max-width:none}
  .bar{padding-block:6px 0}
  .logo{font-size:22px}
  .logo small{font-size:9px}
  .scores{position:absolute; top:8px; left:50%; transform:translateX(-50%); flex-wrap:nowrap; padding:0; z-index:2; max-width:calc(100% - 420px); overflow:hidden}
  .scores .target{display:none}
  .chip{padding:3px 9px}
  .table{grid-template-columns:128px 1fr 128px; gap:2px}
  .seat{padding-block:2px; gap:3px}
  .seat.north{flex-direction:row; justify-content:center; gap:14px}
  .north .who{flex-direction:row}
  .av{width:34px; height:34px; font-size:12px}
  .nm{font-size:13px}
  .tag{font-size:10px}
  .center{flex-direction:row; gap:20px}
  .pile{--pw:min(56px, 14vh)}
  .msg{min-height:0; max-width:26ch; text-align:left; font-size:13px}
  .me{display:flex; flex-direction:row-reverse; align-items:flex-end; gap:12px; padding-block:2px calc(6px + var(--safeB))}
  .mebar{display:grid; grid-template-columns:1fr 1fr; grid-auto-flow:dense; gap:6px; width:200px; flex:none; padding:0}
  .mebar .spacer{display:none}
  .mebar .who{justify-content:flex-start}
  .mebar .btn,.mebar .ghost{width:100%; padding-inline:8px}
  .mebar .btn.digu{grid-column:1 / -1}
  .hand{flex:1; min-width:0; margin-top:0}
  .emotray{position:fixed; left:auto; right:calc(10px + var(--safeR)); bottom:calc(64px + var(--safeB)); top:auto; margin:0; max-height:calc(100dvh - 84px); z-index:35}
  .emotray .erow div{grid-template-columns:repeat(8,1fr)}
  .ov{padding:max(10px,var(--safeT)) max(10px,var(--safeR)) max(10px,var(--safeB)) max(10px,var(--safeL))}
  .panel{max-height:calc(100vh - 20px)}
  .smash-palm{width:40vh; height:40vh; font-size:34vh}
  .smash-text{top:18%}
  .smash-text b{font-size:clamp(40px,20vh,90px)}
  .bubble{font-size:54px}
  .emotray button{width:46px; height:46px; font-size:28px}
}
/* Held upright on a phone: ask to turn it sideways. */
.rotate{display:none; position:fixed; inset:0; z-index:200; place-items:center; padding:24px; text-align:center; background:var(--felt-deep); color:var(--cream)}
.rotate>div{display:grid; justify-items:center; gap:12px; max-width:28ch}
.rotate b{font-family:var(--f-display); font-weight:400; font-size:30px; line-height:1.15; color:var(--saffron)}
.rotate span{color:var(--muted); line-height:1.5}
.phone-ico{width:48px; height:84px; border:3px solid var(--cream); border-radius:10px; position:relative; animation:turn 2.4s ease-in-out infinite}
.phone-ico::after{content:""; position:absolute; left:50%; bottom:6px; width:12px; height:3px; margin-left:-6px; border-radius:2px; background:var(--cream)}
@keyframes turn{0%,20%{transform:rotate(0)} 50%,80%{transform:rotate(-90deg)} 100%{transform:rotate(0)}}
/* Menus work upright; only the card table asks for the phone sideways. */
@media (orientation:portrait) and (pointer:coarse) and (max-width:600px){ body.in-game .rotate{display:grid} }
@media (prefers-reduced-motion:reduce){ *{animation:none!important; transition:none!important} }

/* menus, online lobby */
.home h2{font-size:clamp(52px,15vw,72px); margin:0; line-height:1}
#homeOv>.panel.home{justify-content:space-between}
.hhero{flex:1 1 auto !important; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:12px; padding-block:12px 20px}
.hfan{position:relative; width:204px; height:170px; margin-bottom:6px; --hfw:98px}
.hfan span{position:absolute; left:50%; bottom:0; width:98px; height:139px; margin-left:-49px; border-radius:9px; background:#123 center/100% 100% no-repeat; image-rendering:auto;
  box-shadow:0 10px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.4); transform-origin:50% 120%}
.hfan span:nth-child(1){transform:rotate(-16deg) translateX(-8px)}
.hfan span:nth-child(2){transform:rotate(0deg) translateY(-8px); z-index:1}
.hfan span:nth-child(3){transform:rotate(16deg) translateX(8px)}
.hlead{margin:0; max-width:32ch; font-size:16px; line-height:1.45; color:var(--muted); text-wrap:balance}
.hchips{display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:4px}
.hchips span{display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:999px; font-size:12.5px; font-weight:700; color:var(--cream);
  background:rgba(2,22,28,.55); border:1px solid var(--line)}
.hchips svg{width:15px; height:15px; color:var(--saffron)}
.hactions{display:grid; grid-template-columns:1fr 1fr; gap:12px; padding-bottom:6px}
.hactions>*{grid-column:1 / -1}
.hactions>#homeBack,.hactions>#homeEnd{grid-column:auto}
.hactions>#homeBack:only-of-type{grid-column:1 / -1}
.hbtn{display:grid; grid-template-columns:52px 1fr; align-items:center; gap:14px; text-align:left; padding:14px 16px; border-radius:18px; color:var(--cream);
  background:rgba(2,22,28,.6); border:1.5px solid rgba(211,154,94,.4); box-shadow:0 8px 22px rgba(0,0,0,.28); transition:transform .12s ease}
.hbtn:active{transform:scale(.98)}
.hbtn i{display:grid; place-items:center; width:52px; height:52px; border-radius:14px; color:var(--saffron); background:rgba(211,154,94,.12); border:1px solid rgba(211,154,94,.3)}
.hbtn i svg{width:28px; height:28px}
.hbtn b{display:block; font-size:17px}
.hbtn small{display:block; font-size:12.5px; color:var(--muted); margin-top:2px}
.hbtn.main{background:linear-gradient(135deg,#f6c453,#e09a22); border-color:transparent; color:#1d1405; box-shadow:0 10px 26px rgba(211,154,94,.35)}
.hbtn.main i{background:rgba(255,255,255,.32); border-color:rgba(0,0,0,.08); color:#1d1405}
.hbtn.main small{color:rgba(29,20,5,.72)}
.hlink{display:inline-flex; align-items:center; justify-content:center; gap:8px; justify-self:center; padding:10px 16px; border:0; background:none; color:var(--muted); font-weight:700; font-size:15px}
.hlink i{display:grid; width:20px; height:20px; color:var(--saffron)}
.hlink svg{width:20px; height:20px}
@media (max-height:720px){
  .hfan{width:172px; height:134px; margin-bottom:0; --hfw:80px} .hfan span{width:80px; height:113px; margin-left:-40px}
  .home h2{font-size:46px} .hhero{gap:8px; padding-block:6px 12px} .hlead{font-size:14.5px}
  .hactions{gap:9px} .hbtn{padding:10px 14px; grid-template-columns:42px 1fr; gap:12px} .hbtn i{width:42px; height:42px} .hbtn i svg{width:24px; height:24px}
  .hbtn b{font-size:15.5px} .hactions .ghost.wide{padding-block:9px} .hlink{padding:6px 12px}
}
.hub h2{font-size:64px; margin-bottom:2px}
.games{display:grid; gap:12px}
/* the games screen and each game's menu fill the whole screen */
#hubOv,#homeOv{padding:0; place-items:stretch}
#hubOv>.panel,#homeOv>.panel{max-width:none; width:100%; height:100%; max-height:none; border:0; border-radius:0; box-shadow:none; background:rgba(4,30,36,.55);
  padding:max(22px, var(--safeT)) max(18px, var(--safeR)) max(22px, var(--safeB)) max(18px, var(--safeL));
  display:flex; flex-direction:column; justify-self:stretch; align-self:stretch}
#hubOv>.panel>*,#homeOv>.panel>*{width:100%; max-width:560px; margin-inline:auto; flex:none}
.gtile{display:grid; grid-template-columns:60px 1fr auto; align-items:center; gap:14px; text-align:left; padding:12px 14px; border-radius:14px; background:var(--shade); border:1.5px solid var(--line)}
.gtile .gback{width:60px; height:84px; border-radius:6px; background:var(--back) center/100% 100% no-repeat; border:1px solid rgba(0,0,0,.5); box-shadow:0 4px 10px rgba(0,0,0,.45); transform:rotate(-4deg)}
.gtile b{display:block; font-family:var(--f-display); font-weight:400; font-size:30px; line-height:1.1; color:var(--cream)}
.gtile b .dv{font-size:.6em}
.gtile span.sub{display:block; font-size:13px; color:var(--muted); line-height:1.35}
.gtile .go{font-size:22px; color:var(--saffron)}
.gtile.ready{border-color:rgba(211,154,94,.55)}
/* Bondi games use the bodu beru drum deck */
.gtile.soon{opacity:.62}
/* 10 has its own deck: a tiger cowrie */
.tchip-tens{font-style:normal; font-weight:800; margin-left:4px; letter-spacing:.02em}
.tchip-tens .r{color:#ff8f86} .tchip-tens .k{color:var(--cream)}
.chip small{font-size:11px; color:var(--muted); margin-left:4px}
.hk{display:flex; align-items:center; gap:4px; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--saffron)}
.hk .mini{display:inline-block; width:14px; height:20px; border-radius:3px; transform:rotate(-8deg)}
/* 10: the 10s each team has won, face up, and the hidden Hukum beside its owner */
.g-ten .btable{grid-template-rows:auto auto 1fr}
.tens-row{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:0 6px}
.tens-row .side{display:flex; align-items:center; gap:4px; min-height:40px}
.tens-row .lab{font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-right:4px}
.tens-row .us .lab{color:var(--saffron)}
.tens-row .card{--w:28px}
.tens-row .none{font-size:11px; color:var(--muted); opacity:.7}
.hk .card{--w:22px; transform:rotate(-10deg); box-shadow:0 2px 6px rgba(0,0,0,.45)}
.tcard.trumped .card{box-shadow:0 0 0 3px var(--hot), 0 6px 14px rgba(0,0,0,.4)}
.tcard em{font-style:normal; font-size:10px; font-weight:800; color:var(--hot); letter-spacing:.06em; text-transform:uppercase}
.reveal{position:fixed; inset:0; z-index:42; pointer-events:none; display:flex; align-items:center; justify-content:center; gap:22px; background:radial-gradient(circle at 50% 50%, rgba(2,20,26,.55), rgba(2,20,26,0) 60%)}
.reveal-card .card{box-shadow:0 0 0 4px var(--saffron), 0 0 40px rgba(211,154,94,.6), 0 18px 40px rgba(0,0,0,.55)}
.reveal-text{display:grid; justify-items:center; gap:2px}
.reveal-text b{font-family:"Noto Sans Thaana", "MV Boli", sans-serif; font-weight:800; font-size:clamp(54px,14vw,96px); line-height:1.2; color:var(--saffron);
  -webkit-text-stroke:4px var(--lac-black); paint-order:stroke fill; text-shadow:0 6px 0 var(--back), 0 14px 28px rgba(0,0,0,.55)}
.reveal-text span{font-weight:800; font-size:28px; padding:2px 14px; border-radius:999px; background:var(--cream); box-shadow:0 6px 16px rgba(0,0,0,.4)}
.reveal-text span.r{color:var(--red)} .reveal-text span.k{color:var(--ink)}
@media (orientation:portrait){ .reveal{flex-direction:column} }
.confetti{position:fixed; top:-12px; width:6px; height:6px; z-index:45; pointer-events:none; border-radius:1px}
/* scores row */
/* scores row */
/* games still to come show a plain classic card back until their own deck is designed */
.gtile.soon .gback{background:
  repeating-linear-gradient(45deg, rgba(255,255,255,.28) 0 1px, transparent 1px 6px),
  repeating-linear-gradient(-45deg, rgba(255,255,255,.28) 0 1px, transparent 1px 6px), #9a1f2a;
  border:2px solid #fbf7ef; box-shadow:inset 0 0 0 2px #9a1f2a, inset 0 0 0 3px rgba(255,255,255,.6)}
/* Laari's deck is ready: whale shark (art/make_laari_back.py) */
.gtile[data-game="laari"] .gback{background:var(--back) center/100% 100% no-repeat; border:1px solid rgba(0,0,0,.5); box-shadow:none}
.gtile.soon .go{font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:3px 8px}
.backlink{background:none; border:0; color:var(--muted); font-size:13px; font-weight:700; padding:0; margin-bottom:10px}
.lead{color:var(--muted); margin:0 0 18px}
.stack{display:grid; gap:10px}
.btn.big{padding:14px; font-size:16px}
.btn.alt{background:var(--saffron); color:var(--ink)}
.field{display:grid; gap:6px; font-size:13px; color:var(--muted)}
.field input,.joinrow input{background:var(--shade); color:var(--cream); border:1px solid var(--line); border-radius:10px; padding:11px 12px; font:inherit; font-size:16px; -webkit-user-select:text; user-select:text}
.codein{text-transform:uppercase; letter-spacing:.3em; font-weight:800; text-align:center}
.joinrow{display:flex; gap:8px}
.joinrow input{flex:1; min-width:0}
.joinrow .btn{width:auto; margin:0}
.err{color:#ffb4a8; min-height:1.2em; font-size:13px; margin:8px 0 0; -webkit-user-select:text; user-select:text}
.code{font-family:var(--f-display); font-size:56px; letter-spacing:.14em; color:var(--saffron); line-height:1; text-align:center; margin:4px 0 8px; -webkit-user-select:text; user-select:text}
.seatlist{display:grid; gap:8px}
.srow{display:flex; align-items:center; gap:8px 10px; padding:10px 12px; border-radius:12px; background:var(--shade); border:1px solid var(--line); flex-wrap:wrap}
.srow .lab{font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); width:100%}
.srow .who2{flex:1; font-weight:700; min-width:0}
.srow .wait{color:var(--muted); font-weight:400; font-style:italic}
.srow select{background:var(--felt); color:var(--cream); border:1px solid var(--line); border-radius:8px; padding:6px 8px; font:inherit; font-size:13px; max-width:100%}
.mini-btn{background:transparent; border:1px solid var(--line); border-radius:999px; padding:5px 12px; font-size:12px; font-weight:700}
.note{font-size:13px; color:var(--muted); line-height:1.5}
.panel .ghost.end{color:#ffb4a8; border-color:rgba(255,180,168,.35)}
.panel .ghost.end.armed{background:#b3342c; color:#fff; border-color:#b3342c}
body.idle .app{visibility:hidden}
/* ---------- accounts: sign in, profile, friends, history, settings ---------- */
.hubtop{display:flex; align-items:center; justify-content:space-between; gap:10px; margin:-6px -4px 12px}
.mechip{display:flex; align-items:center; gap:10px; padding:5px 14px 5px 5px; border-radius:999px; background:var(--shade); border:1px solid var(--line); text-align:left; min-width:0}
.mechip b{display:block; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:170px}
.mechip small{display:block; font-size:11px; color:var(--muted)}
.mechip .av{flex:none}
.gear{width:40px; height:40px; padding:0; border-radius:50%; font-size:19px; display:grid; place-items:center}
.av.avc{color:#fff; font-family:var(--f-body); font-weight:800; border:none}
.acct .lead,.prof .lead{margin-bottom:14px}
.btn.google{display:flex; align-items:center; justify-content:center; gap:10px; background:#fff; color:#1f1f1f}
.btn.google svg{width:20px; height:20px}
.or{display:flex; align-items:center; gap:10px; margin:16px 0 10px; color:var(--muted); font-size:12px}
.or::before,.or::after{content:""; flex:1; height:1px; background:var(--line)}
.tabs{display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; border-radius:12px; background:var(--shade); margin-bottom:12px}
.tabs button{border:0; background:none; border-radius:9px; padding:8px; font-weight:800; font-size:13px; color:var(--muted)}
.tabs button[aria-selected="true"]{background:var(--felt-hi); color:var(--cream)}
.linkbtn{background:none; border:0; color:var(--saffron); font-size:13px; font-weight:700; padding:8px 0 0}
.pcard{display:grid; justify-items:center; gap:4px; padding:18px 14px 14px; border-radius:16px; background:var(--shade); border:1px solid var(--line); margin-bottom:12px; text-align:center}
.pcard .bigav{margin:12px 0 10px}
.bigav{position:relative; width:84px; height:84px; border-radius:50%; display:grid; place-items:center; font-size:36px; font-weight:800; color:#fff; box-shadow:0 0 0 3px rgba(211,154,94,.5), 0 8px 20px rgba(0,0,0,.4)}
.pname{font-size:22px; font-weight:800; margin-top:8px}
.pmail{font-size:13px; color:var(--muted)}
.lvl{display:flex; align-items:center; gap:8px; width:100%; margin:8px 0 4px; font-size:12px; font-weight:800; color:var(--saffron)}
.xpbar{flex:1; height:6px; border-radius:3px; background:rgba(255,255,255,.12); overflow:hidden}
.xpbar i{display:block; height:100%; background:linear-gradient(90deg,#c08850,#eab47a); border-radius:3px}
.lvl small{color:var(--muted); font-weight:600}
.stats{display:grid; grid-template-columns:1fr 1fr; gap:8px; width:100%; margin-top:6px}
.stats div{display:grid; gap:2px; padding:10px; border-radius:12px; border:1px solid var(--line); background:rgba(0,0,0,.15)}
.stats b{font-size:22px; color:var(--saffron); font-variant-numeric:tabular-nums}
.stats b.win{color:#4fd69c}
.stats span{font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted)}
.mlist{display:grid; gap:8px}
.mrow{display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:12px; padding:10px 14px 10px 10px; border-radius:14px; background:var(--shade); border:1px solid var(--line); text-align:left}
.mrow .ico svg,.gear svg{width:21px; height:21px}
.mrow .ico{width:42px; height:42px; border-radius:11px; display:grid; place-items:center; font-style:normal; font-size:19px; color:var(--saffron); background:rgba(211,154,94,.12)}
.mrow b{display:block; font-size:15px}
.mrow small{display:block; font-size:12px; color:var(--muted)}
.mrow em{font-style:normal; font-size:22px; color:var(--muted)}
.mrow.danger{border-color:rgba(255,120,110,.4); background:rgba(120,20,20,.25)}
.mrow.danger b,.mrow.danger .ico,.mrow.danger em{color:#ff8f86}
.mrow.danger .ico{background:rgba(255,120,110,.12)}
.pill{display:inline-block; min-width:18px; padding:1px 6px; border-radius:999px; background:var(--hot); color:#fff; font-size:11px; text-align:center; vertical-align:2px}
/* (8 Nov 2026) Stats & history: Statistics tab and match filters */
html body #histTabs{margin:4px 0 10px; box-sizing:border-box; max-width:100%}
.hstats{display:grid; gap:10px}
.hsum{display:grid; grid-template-columns:minmax(150px,1fr) 2fr; gap:10px}
.hrate{display:grid; gap:4px; align-content:center; padding:12px 14px; border-radius:12px; background:var(--shade); border:1px solid var(--line)}
.hrate b{font-size:34px; line-height:1; color:#eab47a}
.hrate small{font-size:11px; color:var(--muted)}
.hrate>small:first-child,.hhead{letter-spacing:.12em; text-transform:uppercase; font-size:11px; color:#d9a46a}
.hbar{display:block; height:7px; border-radius:4px; background:rgba(0,0,0,.4); overflow:hidden}
.hbar i{display:block; height:100%; background:linear-gradient(90deg,#c08850,#eab47a); border-radius:4px}
.htiles{display:grid; grid-template-columns:repeat(2,1fr); gap:6px}
.htiles.wide{grid-template-columns:repeat(3,1fr)}
.hst{padding:8px 10px; border-radius:10px; background:var(--shade); border:1px solid var(--line); min-width:0}
.hst b{display:block; font-size:18px; color:#f3e6d4}
.hst span{display:block; font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.hhead{margin:2px 0 0; font-weight:800}
.hhead small{text-transform:none; letter-spacing:0; color:var(--muted); font-weight:500; margin-left:6px}
.hgames{display:grid; grid-template-columns:repeat(4,1fr); gap:6px}
.hg{display:grid; gap:5px; padding:9px 10px; border-radius:10px; background:var(--shade); border:1px solid var(--line)}
.hg.top{border-color:#c08850}
.hg b{font-size:14px} .hg small{font-size:11px; color:var(--muted)}
.hfilter{display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:0 0 8px}
.hfilter button{padding:5px 12px; border-radius:999px; border:1px solid var(--line); background:var(--shade); color:var(--muted); font-weight:700; font-size:12px}
.hfilter button.on{background:linear-gradient(180deg,#ecc48f,#c08850); color:#2a180a; border-color:transparent}
html body #histFilter select{margin-left:auto; width:auto !important; min-height:0 !important; height:30px !important; padding:3px 26px 3px 12px !important; border-radius:999px !important; font-size:12px !important}
@media (max-width:620px){ .hsum{grid-template-columns:1fr} .hgames{grid-template-columns:repeat(2,1fr)} .htiles.wide{grid-template-columns:repeat(2,1fr)} }
/* (8 Nov 2026) Pearl Path tab */
.hmlead{margin:0 0 8px; font-size:12px; color:var(--muted)}
.hmgrid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px}
.hm{display:grid; grid-template-columns:64px minmax(0,1fr); grid-template-rows:auto auto; column-gap:12px; row-gap:6px; align-items:center; padding:10px 12px; border-radius:12px; background:var(--shade); border:1px solid var(--line)}
.hm.max{border-color:#c08850}
.hmbadge{grid-row:1 / span 2; width:64px; height:64px; object-fit:contain; filter:drop-shadow(0 4px 8px rgba(0,0,0,.5))}
.hminfo{display:grid; gap:4px; min-width:0}
.hminfo b{font-size:15px} .hminfo small{font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.hmrow{display:flex; gap:4px}
.hmrow img{width:22px; height:22px; object-fit:contain; filter:grayscale(1) brightness(.45); opacity:.7}
.hmrow img.got{filter:none; opacity:1}
@media (max-width:620px){ .hmgrid{grid-template-columns:1fr} }
.hlist,.flist{display:grid; gap:6px}
.hrow,.frow{display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:9px 12px; border-radius:12px; background:var(--shade); border:1px solid var(--line)}
.hrow b,.frow b{display:block; font-size:14px}
.hrow small,.frow small{display:block; font-size:12px; color:var(--muted)}
.res-w,.res-l{font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; padding:3px 9px; border-radius:999px}
.res-w{background:rgba(79,214,156,.18); color:#4fd69c}
.res-l{background:rgba(255,143,134,.15); color:#ff8f86}
.gico{width:34px; height:34px; border-radius:9px; display:grid; place-items:center; font-family:var(--f-display); color:var(--saffron); background:rgba(211,154,94,.12)}
.empty{color:var(--muted); font-size:13px; text-align:center; padding:18px 8px; border:1.5px dashed var(--line); border-radius:12px}
.frow .av,.toast .av,.mechip .av{width:36px; height:36px; min-width:36px; align-self:center}
.dot{display:inline-block; width:8px; height:8px; border-radius:50%; background:#6b7a7c; margin-right:5px; vertical-align:0}
.dot.on{background:#4fd69c; box-shadow:0 0 6px #4fd69c}
.frow .acts{display:flex; gap:6px}
.codebox{display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px 12px; padding:14px; border-radius:14px; background:var(--shade); border:1px solid rgba(211,154,94,.4); margin-top:8px}
.codebox span{font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); grid-column:1}
.codebox b{font-family:var(--f-display); font-weight:400; font-size:34px; letter-spacing:.14em; color:var(--saffron); grid-column:1; -webkit-user-select:text; user-select:text}
.codebox .btn{grid-column:2; grid-row:1 / span 2; width:auto; margin:0; padding:10px 16px}
.tog,.rng{display:grid; grid-template-columns:1fr auto; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--line)}
.tog b,.rng b{display:block; font-size:14px}
.tog small,.rng small{display:block; font-size:12px; color:var(--muted)}
.tog input{position:absolute; opacity:0; pointer-events:none}
.tog i{width:46px; height:26px; border-radius:13px; background:rgba(255,255,255,.18); position:relative; transition:background .2s}
.tog i::after{content:""; position:absolute; left:3px; top:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition:transform .2s; box-shadow:0 2px 4px rgba(0,0,0,.3)}
.tog input:checked + i{background:#2fb47c}
.tog input:checked + i::after{transform:translateX(20px)}
.tog input:focus-visible + i{outline:2px solid var(--saffron); outline-offset:2px}
.rng{grid-template-columns:1fr}
.rng span{display:flex; justify-content:space-between}
.rng small{color:var(--saffron); font-weight:800}
.rng input{width:100%; accent-color:var(--saffron)}
.photorow{display:grid; grid-template-columns:auto 1fr; align-items:center; gap:14px; margin:4px 0 12px}
.photorow b{display:block; font-size:14px}
.photorow small{display:block; font-size:12px; color:var(--muted)}
.photoacts{display:flex; gap:6px; margin-top:6px}
.photobtn{position:relative; width:76px; height:76px; padding:0; border:0; border-radius:50%; background:none}
.photobtn .bigav{width:76px; height:76px; font-size:30px}
.photobtn i{position:absolute; right:-2px; bottom:-2px; width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:var(--saffron); color:var(--ink); box-shadow:0 2px 6px rgba(0,0,0,.4)}
.photobtn i svg{width:16px; height:16px}
.two{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.field select{background:var(--shade); color:var(--cream); border:1px solid var(--line); border-radius:10px; padding:11px 10px; font:inherit; font-size:15px; width:100%}
.sets .field{margin-bottom:10px}
.pmeta{font-size:13px; color:var(--saffron); font-weight:700; min-height:0}
.pmeta:empty{display:none}
.swatches{display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 4px}
.swatches button{width:36px; height:36px; border-radius:50%; border:2px solid transparent; padding:0; color:#fff; font-weight:800}
.swatches button[aria-checked="true"]{border-color:var(--saffron); box-shadow:0 0 0 2px rgba(211,154,94,.4)}
.kv{display:flex; justify-content:space-between; padding:10px 0; font-size:14px; color:var(--muted)}
.kv b{color:var(--cream)}
.ver{font-size:11px; color:var(--muted); text-align:center; margin-top:14px}
.ver a{color:var(--saffron)}
.toast{position:fixed; left:50%; top:12px; transform:translateX(-50%); z-index:60; width:min(440px, calc(100% - 24px)); display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:10px 12px; border-radius:16px; background:#0e2f36; border:1px solid rgba(211,154,94,.5); box-shadow:0 14px 40px rgba(0,0,0,.55)}
.toast b{display:block; font-size:14px}
.toast small{display:block; font-size:12px; color:var(--muted)}
.toast .acts{display:flex; gap:6px}
.toast .btn{width:auto; margin:0; padding:8px 14px}
.invpick{display:grid; gap:6px; margin-top:10px}
body.lefty .mebar{flex-direction:row-reverse}
@media (orientation:landscape) and (max-height:540px){ body.lefty .me{flex-direction:row} }
.rlist{display:grid; gap:6px}
.rrow{display:flex; justify-content:space-between; align-items:center; padding:8px 12px; border-radius:10px; background:var(--shade); border:1px solid var(--line); font-size:14px}
.rrow small{color:var(--muted)}
.rrow b{font-size:12px; color:var(--muted)}
.rrow.ok b{color:#4fd69c}
.rbtns{display:grid; gap:6px; margin-top:6px}
.rbtns .btn:disabled{opacity:.7}
/* the dealer's chip */
.dchip{position:absolute; right:-7px; bottom:-7px; width:19px; height:19px; border-radius:50%; background:#fbf7ef; color:#161312; border:2px solid var(--saffron);
  font:800 10px/15px var(--f-body); text-align:center; box-shadow:0 2px 6px rgba(0,0,0,.5); z-index:2; text-shadow:none}
/* a computer player thinking */
.thinking .who .av::after{content:""; position:absolute; left:50%; bottom:-14px; transform:translateX(-50%); width:24px; height:6px;
  background:radial-gradient(circle,var(--cream) 0 2px,transparent 2.5px) 0 0/8px 6px repeat-x; animation:think 1s steps(3) infinite; opacity:.9}
@keyframes think{0%{width:8px}50%{width:16px}100%{width:24px}}
/* winning moments */
.burst b{font-family:var(--f-display); font-weight:400; color:var(--saffron); font-size:clamp(64px,16vw,120px); -webkit-text-stroke:3px #3a1d08; paint-order:stroke fill; text-shadow:0 8px 24px rgba(0,0,0,.6)}
.smash-text.burst{top:40%; z-index:46; pointer-events:none}
.trophy{font-size:72px; text-align:center; line-height:1; margin-bottom:6px; animation:trophy 1.2s cubic-bezier(.2,1.6,.4,1) both; filter:drop-shadow(0 8px 16px rgba(211,154,94,.45))}
@keyframes trophy{from{transform:scale(0) rotate(-20deg)} to{transform:none}}
/* achievements */
.streak{font-size:13px; font-weight:800; color:#ffb35c}
.streak:empty{display:none}
.alist{display:grid; gap:6px}
.arow{display:grid; grid-template-columns:44px 1fr auto; align-items:center; gap:10px; padding:9px 12px; border-radius:12px; background:var(--shade); border:1px solid var(--line); opacity:.62}
.arow.got{opacity:1; border-color:rgba(211,154,94,.5); background:linear-gradient(90deg,rgba(211,154,94,.14),var(--shade))}
.arow .ai{width:40px; height:40px; border-radius:50%; display:grid; place-items:center; font-size:22px; background:rgba(0,0,0,.25); filter:grayscale(1)}
.arow.got .ai{filter:none; background:rgba(211,154,94,.18)}
.arow b{display:block; font-size:14px}
.arow small{display:block; font-size:12px; color:var(--muted)}
.arow em{font-style:normal; font-size:12px; font-weight:800; color:var(--saffron)}
.achtoast{position:fixed; left:50%; top:14px; transform:translateX(-50%); z-index:61; display:flex; align-items:center; gap:10px; padding:10px 16px 10px 10px; border-radius:999px;
  background:linear-gradient(90deg,#3b2a0a,#0e2f36); border:1px solid rgba(211,154,94,.7); box-shadow:0 12px 34px rgba(0,0,0,.55); max-width:calc(100% - 24px)}
.achtoast .ai{width:38px; height:38px; border-radius:50%; display:grid; place-items:center; font-size:22px; background:rgba(211,154,94,.25)}
.achtoast b{display:block; font-size:14px; color:#eab47a}
.achtoast small{display:block; font-size:12px; color:var(--cream)}
/* emojis that open at higher levels */
.emotray .elock{position:relative; opacity:.35; filter:grayscale(1)}
.emotray .elock i{position:absolute; right:2px; bottom:0; font-style:normal; font-size:10px; font-weight:800; color:var(--saffron); filter:none}
/* my style */
.slabel{font-size:12px; color:var(--muted); margin:10px 0 6px}
.sgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(92px,1fr)); gap:8px}
.sopt{display:grid; justify-items:center; gap:4px; padding:10px 6px 8px; border-radius:12px; background:var(--shade); border:1.5px solid var(--line); text-align:center}
.sopt b{font-size:12px} .sopt small{font-size:10px; color:var(--muted)}
.sopt.on{border-color:var(--saffron); background:rgba(211,154,94,.12)}
.sopt:disabled{opacity:.45}
.sopt .av{width:36px; height:36px; font-size:12px}
.dthumb{width:32px; height:45px; border-radius:4px; background-size:100% 100%; box-shadow:0 2px 6px rgba(0,0,0,.4); border:1px solid rgba(251,247,239,.4)}
.cthumb{font-size:26px; line-height:36px}
.tthumb{position:relative; width:64px; height:40px; border-radius:6px; border:1px solid rgba(211,154,94,.45); box-shadow:0 2px 6px rgba(0,0,0,.4); overflow:hidden}
.tthumb em{position:absolute; left:0; right:0; bottom:0; font-style:normal; font-size:8px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#1a1206; background:linear-gradient(90deg,#9a6a3e,#f5cf9f,#9a6a3e)}
.sopt.buy small{color:var(--cream)}
.sopt.buy.armed{border-color:var(--saffron); background:rgba(211,154,94,.16)}
.sopt small .mvh{width:.95em; height:.8em}
/* Maavaharu (ambergris): a small waxy, golden-grey stone */
.mvh{display:inline-block; width:1.05em; height:.9em; vertical-align:-.1em; border-radius:46% 54% 50% 50% / 55% 45% 55% 45%;
  background:radial-gradient(circle at 34% 30%, #fff6d8 0 8%, #e2c27a 30%, #9c7c48 62%, #4e3d27 100%); box-shadow:0 0 6px rgba(211,154,94,.55)}
/* moving tables: glowing plankton on Glowing sea, a slow golden shimmer on Maavaharu */
#tableFx{position:fixed; inset:0; pointer-events:none; z-index:0; display:none; overflow:hidden}
@media (prefers-reduced-motion:reduce){ #tableFx,#tableFx::before{animation:none!important} }
body.tpic::after{display:none}
.dthumb{position:relative; overflow:hidden}
.dthumb em{position:absolute; left:0; right:0; bottom:0; font-style:normal; font-size:6px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:#1a1206; background:linear-gradient(90deg,#9a6a3e,#f5cf9f,#9a6a3e); text-align:center}
.nextrw{font-size:12px; color:var(--muted); margin:-2px 0 4px; text-align:center}
/* celebration effects */
.spark{position:fixed; width:6px; height:6px; border-radius:50%; z-index:47; pointer-events:none; box-shadow:0 0 8px currentColor}
.coin{position:fixed; top:-30px; width:22px; height:22px; border-radius:50%; z-index:47; pointer-events:none;
  background:radial-gradient(circle at 35% 35%, #fff3b0, #d39a5e 45%, #a8700f); box-shadow:0 0 0 2px #c48a1c inset, 0 4px 10px rgba(0,0,0,.4)}
.wavefx{position:fixed; left:-10%; right:-10%; bottom:0; height:70vh; z-index:46; pointer-events:none; border-radius:50% 50% 0 0;
  background:linear-gradient(180deg, rgba(120,230,225,.55), rgba(16,120,140,.6) 40%, rgba(5,50,70,.0))}
.bubble2{position:fixed; bottom:-20px; border-radius:50%; z-index:47; pointer-events:none; border:2px solid rgba(255,255,255,.75); background:rgba(255,255,255,.12)}
.ptitle{font-size:13px; font-weight:800; color:var(--saffron); letter-spacing:.02em; min-height:0}
.ptitle:empty{display:none}
.wallet{display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin:6px 0}
.wallet span{padding:5px 12px; border-radius:999px; background:rgba(0,0,0,.25); border:1px solid var(--line); font-size:13px; color:var(--muted)}
.wallet b{color:var(--cream); font-variant-numeric:tabular-nums}
#prestigeBtn{margin:6px 0}
.topbtns{display:flex; gap:8px}
.gear{position:relative}
.gear .pill{position:absolute; top:-4px; right:-4px}
.fthumb{display:grid; place-items:center; width:52px; height:52px}
.fthumb .av{width:34px; height:34px; font-size:11px}
.av.avc{overflow:visible}
.chlist{display:grid; gap:8px}
.chrow{display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:10px; padding:10px 12px; border-radius:12px; background:var(--shade); border:1px solid var(--line)}
.chrow b{display:block; font-size:14px}
.chrow small{display:block; font-size:12px; color:var(--muted)}
.chrow.got{opacity:.6}
.chrow .btn{width:auto; margin:0; padding:7px 14px}
.chrow em{font-style:normal; color:#4fd69c; font-weight:800}
.cnt2{font-size:13px; font-weight:800; color:var(--muted); font-variant-numeric:tabular-nums}
.pbar{display:block; height:5px; border-radius:3px; background:rgba(255,255,255,.12); overflow:hidden; margin-top:6px}
.pbar i{display:block; height:100%; background:linear-gradient(90deg,#c08850,#eab47a)}
.freeze{display:grid; gap:4px; margin-top:16px; padding:12px; border-radius:12px; border:1px dashed rgba(127,227,255,.5); background:rgba(127,227,255,.06)}
.freeze small{color:var(--muted)}
.freeze .btn{margin-top:6px}
#chOv h3 small{font-weight:600; text-transform:none; letter-spacing:0; margin-left:6px}
.medals{display:flex; gap:4px; margin-top:6px}
.medals i{width:12px; height:12px; border-radius:50%; background:rgba(255,255,255,.12); border:1.5px solid var(--c)}
.medals i.on{background:var(--c); box-shadow:0 0 6px var(--c)}
.arow em small{display:block; font-size:11px; color:var(--muted); font-weight:600}
.panel .btn.wait{background:var(--shade); color:var(--muted); border:1px solid var(--line)}

/* report / block pop-up */
.modbox{position:fixed; inset:0; z-index:9000; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(0,0,0,.6)}
.modbox[hidden]{display:none}
.modbox .panel{max-width:360px; width:100%}
.modacts{display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:8px}
.frow .acts .more{padding:5px 9px}

/* ===== game-style menus: store, collection, achievements, challenges (19 Oct 2026) ===== */
.gov{background:radial-gradient(ellipse at 50% 0%, rgba(211,154,94,.16), rgba(0,0,0,0) 55%), rgba(2,10,16,.86)}
.gpanel{max-width:580px; padding:20px 18px 22px; border-radius:22px; border:2px solid transparent;
  background:linear-gradient(170deg,#123c48 0%,#0a2731 45%,#071a22 100%) padding-box,
    linear-gradient(135deg,#ffe7a3,#c98a2b 25%,#5c3a10 50%,#f2c460 75%,#8a5a19) border-box;
  box-shadow:0 24px 70px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 40px rgba(0,0,0,.35)}
.gpanel>h2{font-family:var(--f-display); font-weight:400; font-size:clamp(30px,7vw,40px); text-align:center; margin:2px 0 6px; letter-spacing:.01em;
  background:linear-gradient(180deg,#fff6c9 0%,#f0c08a 40%,#e7a023 62%,#b9711a 100%); -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 2px 0 #4a2a06) drop-shadow(0 6px 10px rgba(0,0,0,.5))}
.gpanel>h2::before,.gpanel>h2::after{content:"✦"; font-size:.42em; vertical-align:middle; margin:0 .5em; color:#e7a023; -webkit-text-fill-color:#e7a023}
.gpanel .backlink{color:#f0c08a}
.gpanel .lead{text-align:center; color:#e9dcc0}
.gpanel h3{display:flex; align-items:center; gap:10px; text-transform:uppercase; letter-spacing:.12em; font-size:12px; color:#f0c08a; margin:18px 0 10px}
.gpanel h3::after{content:""; flex:1; height:1px; background:linear-gradient(90deg,rgba(211,154,94,.5),rgba(211,154,94,0))}
.gpanel h3 small{text-transform:none; letter-spacing:0; color:var(--muted); font-weight:600}
/* wallet: chunky coin counters */
.gpanel .wallet{gap:8px; margin:6px 0 10px}
.gpanel .wallet span{padding:6px 14px 6px 10px; border-radius:12px; color:#e9dcc0; font-weight:700;
  background:linear-gradient(180deg,#06141a,#0c2a33); border:1.5px solid rgba(211,154,94,.45); box-shadow:inset 0 2px 6px rgba(0,0,0,.6), 0 2px 0 rgba(0,0,0,.4)}
.gpanel .wallet b{font-size:16px; color:#fff3cf}
/* tabs: raised game tabs */
.gpanel .ctabs{gap:6px; padding:5px; border-radius:14px; background:rgba(0,0,0,.35); box-shadow:inset 0 2px 8px rgba(0,0,0,.55)}
.gpanel .ctabs button{border:0; border-radius:10px; padding:9px 14px; background:transparent; color:#cfc3a8; font-weight:800; letter-spacing:.02em}
.gpanel .ctabs button.on{color:#2a1804; background:linear-gradient(180deg,#f5cf9f,#d39a5e 55%,#7a4f2c); box-shadow:0 3px 0 #3a2414, 0 6px 14px rgba(211,154,94,.35), inset 0 1px 0 rgba(255,255,255,.6)}
/* item tiles: framed like collectible cards */
.gpanel .sgrid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr)); gap:10px}
.gpanel .shopgrid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:10px}
.gpanel .sopt,.gpanel .sitem{position:relative; overflow:hidden; gap:6px; padding:14px 8px 10px; border-radius:16px; color:#f3ead6; cursor:pointer;
  background:radial-gradient(ellipse 80% 55% at 50% 30%, rgba(127,227,255,.16), rgba(0,0,0,0) 70%), linear-gradient(180deg,#14404c,#0a222b);
  border:2px solid #2c6a75; box-shadow:0 4px 0 rgba(0,0,0,.45), 0 10px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.1);
  transition:transform .15s ease, box-shadow .15s ease}
.gpanel .sopt:active,.gpanel .sitem:active{transform:translateY(2px) scale(.98)}
.gpanel .sopt b,.gpanel .sitem b{font-size:13px; letter-spacing:.01em}
.gpanel .sopt small,.gpanel .sitem small{font-size:10.5px; color:#b9c9c6}
.gpanel .sitem.prem,.gpanel .sopt:has(em){border-color:#9a6a3e;
  background:radial-gradient(ellipse 80% 55% at 50% 30%, rgba(255,215,106,.22), rgba(0,0,0,0) 70%), linear-gradient(180deg,#3a2a12,#1a1208)}
.gpanel .sitem.prem::after,.gpanel .sopt:has(em)::after{content:""; position:absolute; top:-50%; left:-60%; width:40%; height:200%; transform:rotate(25deg);
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,245,200,.22),rgba(255,255,255,0)); animation:gshine 3.6s ease-in-out infinite; pointer-events:none}
@keyframes gshine{0%,55%{left:-60%} 100%{left:130%}}
.gpanel .sopt.on{border-color:#f0c08a; box-shadow:0 0 0 2px rgba(255,215,106,.35), 0 4px 0 rgba(0,0,0,.45), 0 0 22px rgba(211,154,94,.35)}
.gpanel .sopt.on small{color:#f0c08a; font-weight:800}
.gpanel .sopt.locked,.gpanel .sitem.locked{opacity:1; filter:saturate(.35) brightness(.7)}
.gpanel .sopt.locked::before{content:"🔒"; position:absolute; top:6px; right:7px; font-size:12px; filter:none}
.gpanel .sitem.have{opacity:1}
.gpanel .sitem .price{display:inline-flex; align-items:center; gap:4px; padding:4px 12px; border-radius:999px; font-size:13px; color:#2a1804;
  background:linear-gradient(180deg,#f5cf9f,#d39a5e 60%,#7a4f2c); box-shadow:0 2px 0 #3a2414}
.gpanel .sitem.have .price{color:#0f2a20; background:linear-gradient(180deg,#a8f0c6,#4fd69c); box-shadow:0 2px 0 #1d6b48}
.gpanel .dthumb{border-radius:5px; box-shadow:0 6px 12px rgba(0,0,0,.55)}
.gpanel .sopt .dthumb{width:46px; height:64px}
.gpanel .sopt .tthumb{width:86px; height:52px}
.gpanel .dthumb.big{width:74px; height:104px; rotate:-4deg}
.gpanel .tthumb.big{width:136px; height:80px}
.gpanel .emogrid .emo{cursor:pointer; color:inherit; background:linear-gradient(180deg,#14404c,#0a222b); border:2px solid #2c6a75; box-shadow:0 3px 0 rgba(0,0,0,.45)}
.gpanel .emogrid .emo.locked{opacity:.55}
.gpanel>.btn.alt{margin-top:14px}
/* achievements: medal cards */
.gpanel .alist{gap:8px}
.gpanel .arow{opacity:1; grid-template-columns:54px 1fr auto; padding:10px 12px; border-radius:16px; background:linear-gradient(180deg,#123742,#0a222b); border:2px solid #24525c;
  box-shadow:0 3px 0 rgba(0,0,0,.4)}
.gpanel .arow:not(.got){filter:saturate(.5) brightness(.85)}
.gpanel .arow.got{border-color:#9a6a3e; background:linear-gradient(90deg,rgba(211,154,94,.18),rgba(0,0,0,0) 60%), linear-gradient(180deg,#173c46,#0b242d)}
.gpanel .arow .ai{width:50px; height:50px; font-size:26px; border:3px solid #3b6670; background:radial-gradient(circle at 35% 30%,#2c5a64,#0b1e25); box-shadow:inset 0 2px 6px rgba(0,0,0,.6)}
.gpanel .arow.got .ai{border-color:#f0c08a; background:radial-gradient(circle at 35% 30%,#ffe9a8,#d9962a 60%,#3a2414); box-shadow:0 0 14px rgba(211,154,94,.45), inset 0 -3px 6px rgba(0,0,0,.35)}
.gpanel .arow em{font-size:13px; text-align:right}
.gpanel .medals i{width:14px; height:14px}
.gpanel .pbar{height:9px; border-radius:6px; background:rgba(0,0,0,.45); box-shadow:inset 0 1px 3px rgba(0,0,0,.7); margin-top:7px}
.gpanel .pbar i{border-radius:6px; background:linear-gradient(180deg,#f3c99a,#d39a5e 50%,#6a4325); box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
/* challenges: quest cards */
.gpanel .chlist{gap:10px}
.gpanel .chrow{padding:12px 14px; border-radius:16px; background:linear-gradient(180deg,#123742,#0a222b); border:2px solid #24525c; box-shadow:0 3px 0 rgba(0,0,0,.4)}
.gpanel .chrow b{font-size:15px}
.gpanel .chrow small{color:#f0c08a; font-weight:700}
.gpanel .chrow .cnt2{font-weight:800; color:#e9dcc0; font-variant-numeric:tabular-nums}
.gpanel .chrow .btn{border:0; color:#0f2a20; font-weight:900; background:linear-gradient(180deg,#b6f7d0,#4fd69c 60%,#2aa874); box-shadow:0 3px 0 #1d6b48, 0 0 18px rgba(79,214,156,.5); animation:gpulse 1.4s ease-in-out infinite}
@keyframes gpulse{50%{box-shadow:0 3px 0 #1d6b48, 0 0 30px rgba(79,214,156,.85)}}
.gpanel .chrow.got{opacity:.55}
.gpanel .freeze{border-radius:16px; border:2px solid rgba(127,227,255,.45); background:linear-gradient(180deg,rgba(127,227,255,.12),rgba(0,0,0,.15))}
/* buttons inside these screens and the item viewer */
.gbtn{display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:140px; padding:12px 20px; border:0; border-radius:14px; font:inherit; font-weight:900; font-size:15px; letter-spacing:.02em;
  color:#2a1804; background:linear-gradient(180deg,#f5cf9f,#d39a5e 55%,#7a4f2c); box-shadow:0 4px 0 #3a2414, 0 8px 18px rgba(211,154,94,.3), inset 0 1px 0 rgba(255,255,255,.6); cursor:pointer}
.gbtn:active{transform:translateY(3px); box-shadow:0 1px 0 #3a2414}
.gbtn:disabled{filter:saturate(.3); opacity:.8; cursor:default}
.gbtn.buy{color:#0f2a20; background:linear-gradient(180deg,#b6f7d0,#4fd69c 60%,#2aa874); box-shadow:0 4px 0 #1d6b48, 0 8px 18px rgba(79,214,156,.3)}
.gbtn.buy span{display:inline-flex; align-items:center; gap:4px; padding:2px 10px; border-radius:999px; background:rgba(0,0,0,.18)}
.gbtn.alt{color:#f3ead6; background:linear-gradient(180deg,#2a6a76,#164650); box-shadow:0 4px 0 #0a2a31}
/* the item viewer */
.ivbox{z-index:9500; background:radial-gradient(ellipse at 50% 40%, rgba(211,154,94,.18), rgba(0,0,0,0) 60%), rgba(2,8,12,.88)}
.ivcard{position:relative; width:100%; max-width:380px; max-height:100%; overflow:auto; padding:22px 18px 18px; border-radius:24px; text-align:center; border:2px solid transparent;
  background:linear-gradient(170deg,#123c48,#071a22) padding-box, linear-gradient(135deg,#ffe7a3,#c98a2b 25%,#5c3a10 50%,#f2c460 75%,#8a5a19) border-box;
  box-shadow:0 30px 80px rgba(0,0,0,.7); animation:ivpop .28s cubic-bezier(.2,1.4,.4,1)}
@keyframes ivpop{from{transform:scale(.85); opacity:0}}
.ivx{position:absolute; top:10px; right:10px; width:34px; height:34px; border-radius:50%; border:1.5px solid rgba(211,154,94,.5); background:rgba(0,0,0,.35); color:#f0c08a; font-size:15px; z-index:2}
.ivstage{display:grid; place-items:center; min-height:190px; margin:4px 0 10px; border-radius:18px;
  background:radial-gradient(ellipse 60% 55% at 50% 50%, rgba(255,215,106,.22), rgba(0,0,0,0) 70%)}
.ivfan{position:relative; width:260px; height:170px}
.ivfan .card{position:absolute; left:calc(50% - 39px); top:24px; transform-origin:50% 140%; rotate:calc(var(--i)*10deg); translate:calc(var(--i)*25px) calc(var(--i)*var(--i)*4px);
  animation:ivdeal .45s ease-out backwards; animation-delay:calc((var(--i) + 2)*60ms)}
@keyframes ivdeal{from{rotate:0deg; translate:0 30px; opacity:0}}
.ivtable{width:100%; height:190px; border-radius:14px; box-shadow:0 10px 24px rgba(0,0,0,.6)}
.ivframe{display:grid; place-items:center; width:170px; height:170px}
.ivframe .av{width:112px; height:112px; font-size:36px}
.ivemo{font-size:110px; line-height:1; filter:drop-shadow(0 10px 18px rgba(0,0,0,.5)); animation:ivbob 2.4s ease-in-out infinite}
.ivemo img{width:120px; height:120px}
@keyframes ivbob{50%{transform:translateY(-8px) rotate(-3deg)}}
.ivtag{display:inline-block; font-style:normal; font-size:10px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; padding:3px 10px; border-radius:999px; color:#cfe9ee; background:rgba(127,227,255,.14); border:1px solid rgba(127,227,255,.35)}
.ivtag.gold{color:#1a1206; background:linear-gradient(90deg,#9a6a3e,#f5cf9f,#9a6a3e); border-color:transparent}
.ivcard h3{font-family:var(--f-display); font-weight:400; font-size:28px; margin:8px 0 4px; color:#f6e3c8}
.ivhow{color:#cbbfa4; font-size:14px; margin:0 0 14px}
.ivacts{display:flex; flex-wrap:wrap; gap:10px; justify-content:center}

/* ===== always sideways, home screen, logos, loading screen (19 Oct 2026) ===== */
@media (orientation:portrait) and (pointer:coarse) and (max-width:600px){ .rotate{display:grid} }
.fxcv{position:fixed; inset:0; width:100vw; height:100vh; pointer-events:none; z-index:65}
/* the Thaas logo: three fanned cards over the gold name */
.brand{display:grid; justify-items:center; line-height:1; position:relative}
.brand .bfan{position:relative; width:84px; height:44px; margin-bottom:-6px}
.brand .bc{position:absolute; left:calc(50% - 14px); bottom:0; width:28px; height:39px; border-radius:4px; transform-origin:50% 120%;
  background:#fffdf7 center/100% 100% no-repeat; box-shadow:0 0 0 1px rgba(0,0,0,.35), 0 4px 10px rgba(0,0,0,.5)}
.brand .b1{background-image:url(../art/decks/classic/painted-turtle.webp); rotate:-22deg}
.brand .b2{background-image:url(../art/cards/13_1.webp?v=9); rotate:0deg; z-index:1}
.brand .b3{background-image:url(../art/cards/12_0.webp?v=9); rotate:22deg}
.brand b{font-family:var(--f-display); font-weight:400; font-size:42px; letter-spacing:.01em;
  background:linear-gradient(180deg,#fff6c9 0%,#f0c08a 40%,#e7a023 62%,#b9711a 100%); -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 2px 0 #4a2a06) drop-shadow(0 6px 12px rgba(0,0,0,.55))}
.brand span{font-family:"Noto Sans Thaana",sans-serif; font-weight:800; font-size:14px; color:#e9c46a; margin-top:2px}
/* home screen */
.hubov{padding:0; place-items:stretch; background:radial-gradient(ellipse at 50% -10%, rgba(211,154,94,.18), rgba(0,0,0,0) 55%), linear-gradient(rgba(2,12,16,.25), rgba(2,12,16,.65))}
.hubx{box-sizing:border-box; display:grid; grid-template-rows:auto 1fr auto; width:100%; height:100%; max-width:1080px; margin:0 auto; gap:6px; overflow:auto;
  padding:max(8px,var(--safeT)) max(16px,var(--safeR)) max(6px,var(--safeB)) max(16px,var(--safeL))}
.hubbar{display:grid; grid-template-columns:1fr auto 1fr; align-items:start; gap:10px}
.hubl{justify-self:start; min-width:0} .hubr{justify-self:end}
.hubbar .mechip{background:rgba(0,0,0,.35); border:1.5px solid rgba(211,154,94,.4)}
.hstore{display:flex; align-items:center; gap:8px; padding:5px 12px 5px 5px; border-radius:16px; color:#2a1804; border:0; cursor:pointer;
  background:linear-gradient(180deg,#f5cf9f,#d39a5e 55%,#7a4f2c); box-shadow:0 3px 0 #3a2414, 0 6px 16px rgba(211,154,94,.3)}
.hstore .hsi{display:grid; place-items:center; width:38px; height:38px; border-radius:12px; background:rgba(255,255,255,.35)}
.hstore .hsi svg{width:24px; height:24px}
.hstore .hsw{display:grid; gap:1px; text-align:left; font-weight:900; font-size:12px; font-variant-numeric:tabular-nums}
.hstore .hsw span{display:flex; align-items:center; gap:4px}
.hstore .hsw .emo-img,.hstore .hsw img{width:14px; height:14px}
.hubmid{display:grid; align-content:center; gap:12px; min-height:0}
.hubx .games{grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px}
.hubx .gtile{position:relative; grid-template-columns:none; justify-items:center; gap:4px; padding:12px 8px 10px; text-align:center; border-radius:18px; border:2px solid #2c6a75;
  background:radial-gradient(ellipse 80% 60% at 50% 25%, rgba(127,227,255,.16), rgba(0,0,0,0) 70%), linear-gradient(180deg,#14404c,#0a222b);
  box-shadow:0 4px 0 rgba(0,0,0,.45), 0 10px 20px rgba(0,0,0,.35); transition:transform .15s ease}
.hubx .gtile:active{transform:translateY(2px) scale(.98)}
.hubx .gtile.ready{border-color:#9a6a3e}
.hubx .gtile .gback{width:50px; height:70px; transform:rotate(-6deg)}
.hubx .gtile b{font-size:26px}
.hubx .gtile .gdv{display:block; font-style:normal; font-family:"Noto Sans Thaana",sans-serif; font-size:12px; color:#e9c46a}
.hubx .gtile .go{position:absolute; top:8px; right:8px; font-size:10px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; padding:3px 8px; border-radius:999px; color:#2a1804; background:linear-gradient(180deg,#f5cf9f,#d39a5e)}
.hfeat{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px}
.ftile{display:grid; grid-template-columns:58px 1fr; align-items:center; gap:10px; padding:8px 12px; text-align:left; color:#f3ead6; border-radius:18px; cursor:pointer; border:2px solid transparent;
  background:linear-gradient(180deg,#123742,#0a222b) padding-box, linear-gradient(135deg,#ffe7a3,#c98a2b 25%,#5c3a10 50%,#f2c460 75%,#8a5a19) border-box;
  box-shadow:0 4px 0 rgba(0,0,0,.45), 0 10px 20px rgba(0,0,0,.35)}
.ftile:active{transform:translateY(2px)}
.ftile svg{width:58px; height:58px; filter:drop-shadow(0 4px 8px rgba(0,0,0,.5))}
.ftile b{display:block; font-family:var(--f-display); font-weight:400; font-size:20px; color:#f6e3c8; line-height:1.1}
.ftile small{display:block; font-size:11.5px; color:#b9c9c6}
.hubnav{display:flex; justify-content:center; gap:10px}
.hubnav button{position:relative; display:grid; justify-items:center; gap:2px; min-width:78px; padding:6px 12px 5px; border-radius:14px; color:#e9dcc0; font-size:11.5px; font-weight:800;
  background:linear-gradient(180deg,#14404c,#0a222b); border:1.5px solid #2c6a75; box-shadow:0 3px 0 rgba(0,0,0,.45)}
.hubnav svg{width:22px; height:22px; color:#f0c08a}
.nbadge{position:absolute; top:-6px; right:-4px; min-width:20px; height:20px; padding:0 5px; border-radius:999px; font-style:normal; font-size:11px; font-weight:900; line-height:20px; color:#fff; background:#e5483a; box-shadow:0 0 0 2px #0a222b}
.helpgames{display:flex; flex-wrap:wrap; gap:8px}
.helpgames .gbtn{min-width:0; flex:1}
.faq{display:grid; gap:4px} .faq b{color:#f6e3c8; margin-top:8px} .faq span{color:#cbbfa4; font-size:14px; line-height:1.45}
.gpanel a{color:#f0c08a}
@media (max-height:430px){
  .brand .bfan{width:70px; height:34px} .brand .bc{width:22px; height:31px; left:calc(50% - 11px)} .brand b{font-size:32px} .brand span{display:none}
  .hubx .gtile{padding:8px 6px 6px} .hubx .gtile .gback{width:38px; height:53px} .hubx .gtile b{font-size:21px}
  .ftile{grid-template-columns:44px 1fr; padding:6px 10px} .ftile svg{width:44px; height:44px} .ftile b{font-size:17px}
  .hubnav button{padding:4px 10px 3px} .hubnav svg{width:19px; height:19px} .hubmid{gap:8px}
}
@media (max-width:620px){ .hubx .games{grid-template-columns:repeat(2,minmax(0,1fr))} .hfeat{grid-template-columns:1fr} }
/* loading screen */
.boot{position:fixed; inset:0; z-index:300; display:grid; place-items:center; align-content:center; gap:18px; overflow:hidden;
  background:radial-gradient(ellipse at 50% 45%, #134552 0%, #071d25 55%, #02090c 100%); transition:opacity .7s ease, visibility .7s}
.boot.done{opacity:0; visibility:hidden}
.brays{position:absolute; left:50%; top:45%; width:160vmax; height:160vmax; translate:-50% -50%; opacity:.35;
  background:repeating-conic-gradient(from 0deg, rgba(255,215,106,.22) 0deg 6deg, rgba(255,215,106,0) 6deg 18deg);
  -webkit-mask:radial-gradient(circle, #000 0%, transparent 60%); mask:radial-gradient(circle, #000 0%, transparent 60%); animation:brays 24s linear infinite}
@keyframes brays{to{rotate:360deg}}
.brand.big .bfan{width:200px; height:110px; margin-bottom:-10px}
.brand.big .bc{width:70px; height:98px; left:calc(50% - 35px); border-radius:8px; animation:bdeal .7s cubic-bezier(.2,1.3,.4,1) backwards}
.brand.big .b1{animation-delay:.15s} .brand.big .b2{animation-delay:.3s} .brand.big .b3{animation-delay:.45s}
@keyframes bdeal{from{rotate:0deg; translate:0 60px; scale:.6; opacity:0}}
.brand.big b{font-size:clamp(64px,13vw,110px); background-size:100% 100%; animation:bglow 2.4s ease-in-out infinite}
.brand.big span{font-size:22px}
@keyframes bglow{50%{filter:drop-shadow(0 2px 0 #4a2a06) drop-shadow(0 0 26px rgba(211,154,94,.55))}}
.bbar{position:relative; width:min(260px,60vw); height:8px; border-radius:6px; background:rgba(0,0,0,.5); box-shadow:inset 0 1px 3px rgba(0,0,0,.7), 0 0 0 1px rgba(211,154,94,.35); overflow:hidden}
.bbar i{position:absolute; inset:0; width:0; border-radius:6px; background:linear-gradient(180deg,#f3c99a,#d39a5e 50%,#6a4325); animation:bload 2.3s ease-in-out forwards}
@keyframes bload{to{width:100%}}
.boot small{position:relative; color:#cbbfa4; letter-spacing:.2em; text-transform:uppercase; font-size:12px; font-weight:800}
@media (max-height:430px){ .brand.big .bfan{width:150px; height:80px} .brand.big .bc{width:52px; height:73px; left:calc(50% - 26px)} .brand.big b{font-size:72px} }

/* ===== the Store, sideways: one header line, items in a row that scrolls sideways (19 Oct 2026) ===== */
#shopOv .gpanel{max-width:min(1040px,100%); display:grid; grid-template-columns:auto 1fr auto; column-gap:14px; align-items:center;
  grid-template-areas:"back title wallet" "tabs tabs tabs" "grid grid grid" "err err err" "note note note"}
#shopOv .backlink{grid-area:back; margin:0}
#shopOv .gpanel>h2{grid-area:title; margin:0}
#shopOv .wallet{grid-area:wallet; margin:0; flex-wrap:nowrap}
#shopOv .ctabs{grid-area:tabs; justify-self:center; margin:10px 0}
#shopOv #shopErr{grid-area:err; text-align:center}
#shopOv .note{grid-area:note; margin:2px 0 0; text-align:center}
#shopOv .shopgrid{grid-area:grid; display:grid; grid-auto-flow:column; grid-auto-columns:max-content; grid-template-columns:none; gap:12px;
  overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; scroll-snap-type:x proximity; padding:4px 24px 10px 4px; scrollbar-width:thin; scrollbar-color:#9a6a3e rgba(0,0,0,.35);}
#shopOv .shopgrid>*{scroll-snap-align:start}
#shopOv .sitem{width:150px}
#shopOv .soon2{width:min(520px,70vw)}
@media (max-height:430px){
  #shopOv .gpanel{padding:12px 16px 12px}
  #shopOv .gpanel>h2{font-size:30px}
  #shopOv .ctabs{margin:6px 0}
  #shopOv .sitem{width:136px; padding:10px 6px 8px}
  #shopOv .dthumb.big{width:58px; height:81px}
  #shopOv .tthumb.big{width:118px; height:66px}
  #shopOv .note{display:none}
}
@media (max-width:700px){ #shopOv .gpanel{grid-template-columns:auto 1fr; grid-template-areas:"back title" "wallet wallet" "tabs tabs" "grid grid" "err err" "note note"} #shopOv .wallet{justify-self:center; margin-top:6px} }

/* ===== sideways screens: achievements, collection, challenges, profile, settings, friends (19 Oct 2026) ===== */
/* wide game panels with one header line */
#achOv .gpanel,#collOv .gpanel,#chOv .gpanel,#profOv .gpanel,#setOv .gpanel,#friendsOv .gpanel,#histOv .gpanel{max-width:min(1040px,100%)}
#achOv .gpanel,#collOv .gpanel,#chOv .gpanel{display:grid; grid-template-columns:auto 1fr auto; column-gap:14px; align-items:center}
#achOv .gpanel>*,#collOv .gpanel>*,#chOv .gpanel>*{grid-column:1 / -1}
#achOv .backlink,#collOv .backlink,#chOv .backlink{grid-column:1; grid-row:1; margin:0}
#achOv .gpanel>h2,#collOv .gpanel>h2,#chOv .gpanel>h2{grid-column:2; grid-row:1; margin:0}
#achOv #achCount,#collOv #collCount,#chOv #chWallet{grid-column:3; grid-row:1; margin:0; font-size:13px; text-align:right}
#chOv #chWallet{flex-wrap:nowrap}
/* rows that scroll sideways */
#achList,#styleBox .sgrid,#styleBox .emogrid,.chscroll,#chDay,#chWeek{overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; scroll-snap-type:x proximity;
  scrollbar-width:thin; scrollbar-color:#9a6a3e rgba(0,0,0,.35)}
#achList,#styleBox .sgrid,#styleBox .emogrid,.chscroll{padding:4px 30px 10px 2px}
#achList>*,#styleBox .sgrid>*,#styleBox .emogrid>*,.chscroll>*{scroll-snap-align:start}
/* achievements: two rows of medal cards */
#achList{display:grid; grid-auto-flow:column; grid-template-rows:repeat(2,auto); grid-auto-columns:270px; gap:10px; margin-top:10px}
#achList h3{display:none}
/* collection: one row of items */
#collOv .ctabs{justify-self:center; margin:10px 0 8px}
#styleBox .sgrid{display:grid; grid-auto-flow:column; grid-template-columns:none; grid-auto-columns:128px; gap:10px}
#styleBox .slabel.stillto{display:none}
#styleBox .emogrid{display:grid; grid-auto-flow:column; grid-template-columns:none; grid-template-rows:repeat(2,auto); grid-auto-columns:84px; gap:8px}
#styleBox section[data-cp="titles"]{max-width:420px; margin:0 auto}
#collOv #collToShop{justify-self:center; width:auto; padding:10px 22px; margin-top:6px}
/* challenges: today, this week and the streak freeze in one sideways row */
.chscroll{display:flex; gap:16px; align-items:stretch; margin-top:8px}
.chsec{flex:none; display:grid; align-content:start; gap:6px}
.chsec h3{margin:0 0 2px}
.chsec .note{margin:2px 0 0; font-size:12px}
#chDay,#chWeek{display:grid; grid-auto-flow:column; grid-auto-columns:230px; gap:10px; overflow:visible; -webkit-mask:none; mask:none; padding:0}
#chOv .chrow{grid-template-columns:1fr auto; grid-template-rows:auto auto; align-content:start; min-height:118px; padding:12px}
#chOv .chrow>div{grid-column:1 / -1}
#chOv .chrow .btn,#chOv .chrow em,#chOv .chrow .cnt2{justify-self:start}
#chOv .freeze{flex:none; width:220px; margin:28px 0 0; align-content:start}
/* profile: your card on the left, the menu on the right */
#profOv .gpanel{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); column-gap:22px; align-items:start}
#profOv .backlink{grid-column:1 / -1}
#profOv .pcard{grid-column:1; margin:0}
#profOv .mlist{grid-column:2; align-self:center}
#profOv .mrow{background:linear-gradient(180deg,#14404c,#0a222b); border:1.5px solid #2c6a75; border-radius:14px; box-shadow:0 3px 0 rgba(0,0,0,.4); margin-bottom:8px}
#profOv .mrow.danger{border-color:rgba(229,72,58,.5)}
#profOv .bigav{box-shadow:0 0 0 3px #9a6a3e, 0 8px 22px rgba(0,0,0,.5)}
#profOv .pname{font-family:var(--f-display); font-size:28px; color:#f6e3c8}
#profOv .xpbar{height:10px; border-radius:6px; background:rgba(0,0,0,.45); box-shadow:inset 0 1px 3px rgba(0,0,0,.7)}
#profOv .xpbar i{background:linear-gradient(180deg,#f3c99a,#d39a5e 50%,#6a4325)}
#profOv .stats>div{background:linear-gradient(180deg,#123742,#0a222b); border:1.5px solid #24525c; border-radius:12px}
/* settings: two columns */
#setOv .gpanel{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:26px; align-items:start}
#setOv .gpanel>*{grid-column:1 / -1}
#setOv #setGame{columns:2; column-gap:26px}
#setOv #setGame h3{break-after:avoid}
#setOv #setGame .tog,#setOv #setGame .field,#setOv #setGame .rng{break-inside:avoid}
#setOv #setProfile{grid-column:1}
#setOv #setAccount{grid-column:2; grid-row:3}
#setOv .tog,#setOv .rng{background:linear-gradient(180deg,#123742,#0a222b); border:1.5px solid #24525c; border-radius:14px; padding:10px 12px; margin-bottom:8px}
#setOv #setSignIn{justify-self:center; width:auto; padding:10px 24px}
/* friends: your code and adding on the left, your friends on the right */
#friendsOv .gpanel{display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); column-gap:24px; grid-auto-flow:row dense; align-items:start}
#friendsOv .gpanel>.backlink,#friendsOv .gpanel>h2{grid-column:1 / -1}
#friendsOv .codebox,#friendsOv .gpanel>h3:nth-of-type(1),#friendsOv .joinrow,#friendsOv #friendErr,#friendsOv #refNote{grid-column:1}
#friendsOv #reqWrap,#friendsOv .gpanel>h3:nth-of-type(2),#friendsOv #friendList,#friendsOv #blockWrap{grid-column:2}
#friendsOv .codebox{border-radius:16px; border:2px solid #9a6a3e; background:linear-gradient(180deg,#173c46,#0b242d)}
#friendsOv .frow,#inboxOv .frow{border-radius:14px; background:linear-gradient(180deg,#123742,#0a222b); border:1.5px solid #24525c; box-shadow:0 3px 0 rgba(0,0,0,.35); padding:8px 10px; margin-bottom:8px}
@media (max-height:430px){
  #achOv .gpanel,#collOv .gpanel,#chOv .gpanel,#profOv .gpanel,#setOv .gpanel,#friendsOv .gpanel{padding:12px 16px}
  #achOv .gpanel>h2,#collOv .gpanel>h2,#chOv .gpanel>h2,#setOv .gpanel>h2,#friendsOv .gpanel>h2{font-size:30px; margin:0}
  #styleBox .sgrid{grid-auto-columns:118px}
}
@media (max-width:700px){
  #profOv .gpanel,#setOv .gpanel,#friendsOv .gpanel{grid-template-columns:1fr}
  #profOv .pcard,#profOv .mlist,#setOv #setProfile,#setOv #setAccount,#friendsOv .gpanel>*{grid-column:1 !important; grid-row:auto !important}
  #setOv #setGame{columns:1}
}

/* fit sideways without scrolling: profile card, settings in three columns (19 Oct 2026) */
#profOv .pcard{display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:16px; row-gap:2px; justify-items:start; text-align:left; align-items:center}
#profOv .pcard>*{grid-column:1 / -1; justify-self:stretch}
#profOv .bigav{grid-column:1; grid-row:1 / span 5; justify-self:center; width:84px; height:84px; margin:0}
#profOv .pname,#profOv .ptitle,#profOv .pmail,#profOv .pmeta,#profOv .streak{grid-column:2; justify-self:start; margin:0}
#profOv .lvl{margin-top:10px}
#profOv .wallet{justify-content:flex-start}
#setOv .gpanel{grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:22px}
#setOv #setGame{columns:3; column-gap:18px}
#setOv .tog,#setOv .rng{padding:7px 10px; margin-bottom:6px}
#setOv .tog small{font-size:11px; line-height:1.3}
#setOv #setGame h3{margin:4px 0 6px}
#setOv .gpanel.mprof #setProfile{grid-column:1 / 3; display:grid; grid-template-columns:1fr 1fr; column-gap:20px; grid-auto-flow:row dense; align-items:start}
#setOv .gpanel.mprof #setProfile>*{grid-column:1}
#setOv .gpanel.mprof #setProfile>h3{grid-column:1 / -1}
#setOv .gpanel.mprof #setProfile>:nth-child(n+5){grid-column:2}
#setOv .gpanel.mprof #setAccount{grid-column:3; grid-row:3}
#setOv .gpanel.mprof #setAccount .ghost{margin-top:8px}
@media (max-height:430px){ #setOv .ver{display:none} #profOv .pmail{display:none} #setOv .gpanel.mprof .note{font-size:11.5px; margin:4px 0} }
@media (max-width:700px){ #setOv .gpanel,#setOv .gpanel.mprof #setProfile{grid-template-columns:1fr} #setOv #setGame{columns:1} #setOv .gpanel.mprof #setProfile>*,#setOv .gpanel.mprof #setAccount{grid-column:1 !important; grid-row:auto !important} }
#setOv .gpanel.mprof #setProfile{display:block; columns:2; column-gap:20px}
#setOv .gpanel.mprof #setProfile>h3{column-span:all}
#setOv .gpanel.mprof #setProfile>*{break-inside:avoid}
#setOv .gpanel.mprof #setProfile .swatches{gap:6px}
#setOv .gpanel.mprof #setProfile .swatches>*{width:26px; height:26px}
#setOv .gpanel>.backlink{grid-column:1; grid-row:1; margin:0; justify-self:start}
#setOv .gpanel>h2{grid-column:1 / -1; grid-row:1; margin:0}
#setOv .gpanel.mprof #setAccount{grid-row:2}
#setOv .gpanel.mprof #setProfile .field{margin-bottom:8px}
#setOv .gpanel.mprof #setProfile>h3{margin-top:6px}
@media (max-height:430px){ #setOv .gpanel.mprof #setProfile .note{display:none} }
@media (max-height:430px){
  #setOv .gpanel.mprof .photorow{gap:10px; margin-bottom:6px}
  #setOv .gpanel.mprof .photobtn,#setOv .gpanel.mprof .photobtn #setAv .av{width:58px; height:58px}
  #setOv .gpanel.mprof #setProfile .swatches>*{width:22px; height:22px}
}
#profOv .backlink{justify-self:start}
#profOv .bigav{width:66px; height:66px; margin:20px 44px 18px 40px}
#profOv .bigav .av{width:100%; height:100%}
#profOv .lvl{margin-top:4px}
#setOv .gpanel>h2{pointer-events:none}   /* the title shares the top line with Back: let taps reach Back */
/* the game screen, sideways: cards and name on the left, play buttons on the right, all on one screen (19 Oct 2026) */
#homeOv .panel.home{max-width:min(900px,100%); display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); grid-template-rows:auto 1fr; column-gap:26px; align-items:center}
#homeOv #toHub{grid-column:1 / -1; grid-row:1; justify-self:start; margin:0}
#homeOv .hhero{grid-column:1; grid-row:2; padding:0; gap:6px}
#homeOv .hactions{grid-column:2; grid-row:2; gap:10px; padding:0}
#homeOv .home h2,#homeOv .hhero h2{background:linear-gradient(180deg,#fff6c9 0%,#f0c08a 40%,#e7a023 62%,#b9711a 100%); -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 2px 0 #4a2a06) drop-shadow(0 6px 10px rgba(0,0,0,.5))}
#homeOv .hbtn{border:2px solid #2c6a75; background:linear-gradient(180deg,#14404c,#0a222b); box-shadow:0 4px 0 rgba(0,0,0,.45)}
#homeOv .hbtn.main{border-color:transparent; background:linear-gradient(180deg,#f5cf9f,#d39a5e 55%,#7a4f2c); box-shadow:0 4px 0 #3a2414, 0 10px 22px rgba(211,154,94,.3)}
@media (max-height:430px){
  #homeOv .panel.home{padding:12px 18px}
  #homeOv .hfan{width:172px; height:134px; margin:0; --hfw:80px}
  #homeOv .hfan span{width:80px; height:113px; margin-left:-40px}
  #homeOv .home h2,#homeOv .hhero h2{font-size:50px}
  #homeOv .hbtn{grid-template-columns:42px 1fr; gap:12px; padding:9px 14px}
  #homeOv .hbtn i{width:42px; height:42px} #homeOv .hbtn i svg{width:24px; height:24px}
  #homeOv .hbtn b{font-size:16px} #homeOv .hbtn small{font-size:11.5px}
  #homeOv .hlink{padding:4px 10px}
}
@media (max-width:700px) and (orientation:portrait){ #homeOv .panel.home{grid-template-columns:1fr} #homeOv .hhero,#homeOv .hactions{grid-column:1; grid-row:auto} }   /* (1 Nov) sideways phones keep the two columns */
/* ===== setup, online, help and rules: sideways, no scrolling down (19 Oct 2026) ===== */
#setupOv .gpanel{max-width:min(980px,100%); display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:26px; align-items:start}
#setupOv .gpanel>h2{grid-column:1 / -1; grid-row:1; margin:0 0 4px}
#setupOv .gpanel>h3{grid-column:1; grid-row:2; margin-top:4px}
#setupOv #modeOpts{grid-column:1; grid-row:3; grid-template-columns:1fr 1fr; gap:8px}
#setupOv #targetWrap{grid-column:1; grid-row:4}
#setupOv #slotsWrap{grid-column:2; grid-row:2 / 5}
#setupOv #slotsWrap h3{margin-top:4px}
#setupOv #setupErr{grid-column:1 / -1; grid-row:5}
#setupOv #setupCancel{grid-column:1; grid-row:6; margin:0}
#setupOv #dealBtn{grid-column:2; grid-row:6; margin:0 !important}
#setupOv .opt{padding:8px 12px; border:2px solid #2c6a75; background:linear-gradient(180deg,#14404c,#0a222b)}
#setupOv .opt[aria-pressed="true"]{border-color:#f0c08a; box-shadow:0 0 0 2px rgba(255,215,106,.3), 0 0 16px rgba(211,154,94,.3)}
#setupOv .opt b{font-size:15px} #setupOv .opt span{font-size:11.5px}
#onlineOv .gpanel{max-width:min(900px,100%); display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:26px; align-items:start}
#onlineOv .gpanel>:nth-child(-n+3){grid-column:1}
#onlineOv .gpanel>:nth-child(n+4){grid-column:2}
#onlineOv .gpanel>:nth-child(1){grid-row:1} #onlineOv .gpanel>:nth-child(2){grid-row:2} #onlineOv .gpanel>:nth-child(3){grid-row:3}
#onlineOv .gpanel>:nth-child(4){grid-row:1; margin-top:8px} #onlineOv .gpanel>:nth-child(5){grid-row:2} #onlineOv .gpanel>:nth-child(6){grid-row:3}
#onlineOv .gpanel>:nth-child(7){grid-row:4} #onlineOv .gpanel>:nth-child(8){grid-row:5}
#onlineOv .gpanel>:nth-child(9){grid-column:1; grid-row:4 / 6; align-self:end}
#helpOv .gpanel{max-width:min(980px,100%); columns:2; column-gap:30px}
#helpOv .gpanel>h2,#helpOv .gpanel>.backlink{column-span:all}
#helpOv .gpanel>*{break-inside:avoid}
/* rules: the text flows into columns you swipe sideways; Back stays in the top corner */
.rulesov .gpanel{max-width:min(1040px,100%); height:calc(100vh - 32px); height:calc(100dvh - 32px); columns:280px; column-gap:30px; column-fill:auto;
  overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; scrollbar-color:#9a6a3e rgba(0,0,0,.35); padding-right:20px}
.rulesov .gpanel>h2{column-span:none; font-size:30px; margin:0 0 6px; text-align:left}
.rulesov .gpanel>h2::before,.rulesov .gpanel>h2::after{content:none}
.rulesov .gpanel>h3{break-after:avoid}
.rulesov .gpanel .vals,.rulesov .gpanel table{break-inside:avoid}
.rulesov .gpanel>.btn:last-child{position:fixed; top:calc(22px + var(--safeT)); right:calc(22px + var(--safeR)); width:auto; margin:0 !important; padding:8px 18px; z-index:5}
@media (max-height:430px){
  #setupOv .gpanel,#onlineOv .gpanel,#helpOv .gpanel{padding:12px 18px}
  #setupOv .gpanel>h2,#onlineOv .gpanel>h2,#helpOv .gpanel>h2{font-size:28px}
  #setupOv .slot select{padding:6px 8px}
  #setupOv .slots{gap:5px}
}
@media (max-width:700px){ #helpOv .gpanel{columns:1} }
/* (1 Nov) one column only on a phone held upright; held sideways (even a small one) the two columns stay, so it all fits */
@media (max-width:700px) and (orientation:portrait){
  #setupOv .gpanel,#onlineOv .gpanel{grid-template-columns:1fr}
  #setupOv .gpanel>*,#onlineOv .gpanel>*{grid-column:1 !important; grid-row:auto !important}
}
@media (max-width:700px) and (orientation:landscape){
  #setupOv .gpanel{column-gap:14px; padding:10px 12px}
  #setupOv .opt b{font-size:13.5px} #setupOv .opt span{font-size:10.5px}
  #setupOv .slot{gap:6px} #setupOv .slot>span{font-size:12px}
}
@media (max-height:430px){ #setupOv #modeOpts .opt span{display:none} #setupOv #modeOpts .opt{padding:9px 12px} }
#setupOv #dealBtn,#onlineOv #createBtn{border:0; color:#2a1804; font-weight:900; background:linear-gradient(180deg,#f5cf9f,#d39a5e 55%,#7a4f2c); box-shadow:0 4px 0 #3a2414, 0 8px 18px rgba(211,154,94,.3)}

/* ===== the ✕ back button, always in the top right corner (19 Oct 2026) ===== */
.panel,.ivcard{position:relative}
.xback{position:absolute !important; top:10px; right:10px; left:auto !important; z-index:6; width:40px !important; height:40px; min-width:0 !important; padding:0 !important; margin:0 !important;
  display:grid !important; place-items:center; border-radius:50%; border:2px solid #9a6a3e !important; color:#f6e3c8; font-size:0 !important;
  background:radial-gradient(circle at 35% 30%,#1f5a66,#071c23) !important; box-shadow:0 3px 0 rgba(0,0,0,.45), 0 6px 14px rgba(0,0,0,.4) !important; grid-area:auto !important; justify-self:auto !important}
.xback::before{content:""; width:16px; height:16px;
  background:linear-gradient(45deg,transparent 43%,currentColor 43%,currentColor 57%,transparent 57%),linear-gradient(-45deg,transparent 43%,currentColor 43%,currentColor 57%,transparent 57%)}
.xback:active{transform:translateY(2px)}
.rulesov .xback{position:fixed !important; top:calc(22px + var(--safeT)); right:calc(22px + var(--safeR))}
/* keep the top right free for the ✕ */
#shopOv .wallet,#achOv #achCount,#collOv #collCount,#chOv #chWallet{margin-right:50px !important}
.gpanel>h2{padding-inline:46px}
#modOv .modacts{justify-content:flex-start}
/* island search, default pictures */
.fhint{display:block; min-height:1em; font-size:11.5px; color:#ffb3ad; margin-top:3px}
#setIslandQ{width:100%}
.swatches .defpic{width:auto !important; height:auto !important; display:grid; justify-items:center; gap:3px; padding:4px 6px 3px !important; border-radius:12px !important; border:2px solid transparent; background:rgba(0,0,0,.25)}
.swatches .defpic img{width:40px; height:40px; border-radius:50%}
.swatches .defpic small{font-size:11px; color:#e9dcc0}
.swatches .defpic[aria-checked="true"]{border-color:#f0c08a}
@media (max-height:430px){ #setOv .gpanel.mprof #setProfile .swatches .defpic img{width:32px; height:32px} }
/* loading screen: nothing of the logo shows until it is ready, then it all appears together */
.boot .brand,.boot .bbar,.boot small{opacity:0; transition:opacity .35s ease}
.boot.ready .brand,.boot.ready .bbar,.boot.ready small{opacity:1}
.boot:not(.ready) .bc,.boot:not(.ready) .bbar i{animation-play-state:paused}

/* ===== nothing under the ✕; edit profile photo row; challenge rewards; item pop-up fits; card zoom (19 Oct 2026) ===== */
.panel:has(> .xback){padding-right:64px !important}
#setOv .gpanel.mprof .photorow{grid-template-columns:auto minmax(0,1fr); align-items:center}
#setOv .photobtn,#setOv .photobtn #setAv,#setOv #setAv .bigav{width:64px !important; height:64px !important; font-size:22px}
#setOv #setAv{display:block}
#setOv .photoacts{display:flex; flex-wrap:wrap; gap:6px}
#setOv .photorow small{display:block; font-size:11.5px}
/* challenges: rewards as badges along the bottom of each card */
#chOv .chrow{display:grid; grid-template-columns:1fr auto; grid-template-rows:auto 1fr auto; row-gap:8px}
#chOv .chrow>div:first-child{grid-column:1 / -1}
#chOv .chrow .chrew{grid-column:1 / -1; align-self:end; display:flex; gap:6px; flex-wrap:wrap; padding-top:8px; border-top:1px solid rgba(211,154,94,.25)}
.chrew .rw{display:inline-flex; align-items:center; gap:4px; padding:3px 10px 3px 8px; border-radius:999px; font-weight:900; font-size:13px; color:#2a1804;
  background:linear-gradient(180deg,#f5cf9f,#d39a5e 60%,#7a4f2c); box-shadow:0 2px 0 #3a2414, inset 0 1px 0 rgba(255,255,255,.55)}
.chrew .rw small{font-size:10px; font-weight:900; margin-left:2px}
.chrew .rw.xp{color:#0b2a30; background:linear-gradient(180deg,#bdf3ff,#5fd4e8 60%,#2aa3bb); box-shadow:0 2px 0 #12606f, inset 0 1px 0 rgba(255,255,255,.55)}
.chrew .rw.gem{color:#3a0d1d; background:linear-gradient(180deg,#ffd0dc,#ff7a9c 60%,#d24a6e); box-shadow:0 2px 0 #7d1f37, inset 0 1px 0 rgba(255,255,255,.55)}
.chrew .rw i.boli,.chrew .rw img{width:14px; height:14px}
#chOv .chrow.ready{border-color:#4fd69c; box-shadow:0 0 0 2px rgba(79,214,156,.25), 0 3px 0 rgba(0,0,0,.4)}
#chOv .chrow .pbar{margin-top:8px}
/* the item pop-up always fits: on a short screen the picture sits left, the words and buttons right */
.ivcard{max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px)}
@media (max-height:520px){
  .ivcard{max-width:min(640px,100%); display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:18px; align-items:center; text-align:left; padding:16px 60px 16px 16px}
  .ivcard>*{grid-column:2}
  .ivcard .ivstage{grid-column:1; grid-row:1 / span 5; min-height:0; height:min(260px,calc(100dvh - 60px)); margin:0}
  .ivcard .ivtag{justify-self:start}
  .ivcard h3{font-size:24px; margin:6px 0 2px}
  .ivcard .ivhow{margin:0 0 10px; font-size:13px}
  .ivcard .ivacts{justify-content:flex-start}
  .ivcard .gbtn{min-width:0; padding:10px 16px; font-size:14px}
  .ivfan{transform:scale(.82)}
  .ivemo{font-size:84px} .ivemo img{width:96px; height:96px}
  .ivframe{width:150px; height:150px} .ivframe .av{width:84px; height:84px}
  .ivtable{height:100%}
}
/* hold a card back to see it big */
.backzoom{position:fixed; inset:0; z-index:9800; display:grid; place-items:center; background:rgba(2,8,12,.82); pointer-events:none}
.backzoom[hidden]{display:none}
.backzoom .bz{height:min(86vh,560px); height:min(86dvh,560px); aspect-ratio:1/1.4; border-radius:16px; background:#123 center/100% 100% no-repeat; image-rendering:auto;
  box-shadow:0 0 0 2px rgba(255,255,255,.25), 0 30px 70px rgba(0,0,0,.7); animation:ivpop .22s ease-out}
.dthumb,.ivfan .card.back{-webkit-touch-callout:none; user-select:none}
.chrew .rw{flex:none; white-space:nowrap} .chrew .rw i.boli{display:inline-block; flex:none; background-size:contain; background-repeat:no-repeat}
/* the loading screen appears all at once (rays, cards, name together), quickly, then fades (19 Oct 2026) */
.boot .brays{transition:opacity .3s ease}
.boot:not(.ready) .brays{opacity:0}
.boot.done{transition:opacity .5s ease, visibility .5s}
.brand.big .b1{animation-delay:0s} .brand.big .b2{animation-delay:.1s} .brand.big .b3{animation-delay:.2s}
.brand.big .bc{animation-duration:.55s}
.bbar i{animation-duration:1.4s}

/* ===== where you're from: a button in the form, and a picker that works sideways with the keyboard open (19 Oct 2026) ===== */
#setProfile .field,#setProfile .two>*{min-width:0}
.placebtn{display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; min-width:0; padding:10px 14px; border-radius:12px; color:#f3ead6; text-align:left;
  background:linear-gradient(180deg,#14404c,#0a222b); border:1.5px solid #2c6a75; cursor:pointer}
.placebtn b{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px}
.placebtn small{flex:none; color:#f0c08a; font-weight:800; font-size:12px}
.placeov{z-index:40; padding:8px}
.placepanel{max-width:min(980px,100%) !important; width:100%; height:100%; display:flex !important; flex-direction:column; gap:8px; overflow:hidden !important; padding:12px 64px 10px 16px !important}
.placepanel .phead{display:flex; align-items:center; gap:16px; flex-wrap:wrap}
.placepanel .phead h2{font-size:26px; margin:0; padding:0}
.placepanel .phead h2::before,.placepanel .phead h2::after{content:none}
.placepanel .ctabs{margin:0}
.placeq{flex:none; width:100%; padding:10px 14px; border-radius:12px; font:inherit; font-size:16px; color:#f3ead6; background:#06161c; border:1.5px solid #9a6a3e; outline:none}
.plist{flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#9a6a3e rgba(0,0,0,.35); padding-right:4px}
.pgroup{margin-bottom:10px}
.pgroup h4{margin:4px 0 6px; font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:#f0c08a}
.pgroup h4 small{color:#9fb5b2; letter-spacing:0; margin-left:4px}
.pchips{display:flex; flex-wrap:wrap; gap:6px}
.pchips.cgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.pl{display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:10px; color:#f3ead6; font-weight:700; font-size:14px; text-align:left;
  background:linear-gradient(180deg,#14404c,#0a222b); border:1.5px solid #2c6a75; cursor:pointer}
.pl i{font-style:normal; font-size:20px; line-height:1}
.pl.on{border-color:#f0c08a; box-shadow:0 0 0 2px rgba(255,215,106,.3); color:#f6e3c8}
.pl.big{display:flex; width:100%; padding:12px 14px; margin-bottom:12px; border-color:#9a6a3e}
.pl.big b{font-size:17px} .pl.big small{margin-left:auto; color:#9fb5b2; font-weight:600}
/* typing with the keyboard up: hide the title and tabs so the list stays in view */
.placepanel:has(.placeq:focus) .phead{display:none}
@media (max-height:300px){ .placepanel .phead{display:none} .placepanel{padding-top:8px !important} }

/* ===== the random table waiting screen, sideways (19 Oct 2026) ===== */
.qpanel{max-width:min(900px,100%) !important; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); column-gap:26px; align-items:center}
.qpanel .qinfo{display:grid; justify-items:start; gap:10px}
.qpanel .qinfo h2{font-size:30px; margin:0; padding:0; text-align:left}
.qpanel .qinfo h2::before,.qpanel .qinfo h2::after{content:none}
.qpanel .note{margin:0; color:#cbbfa4; font-size:14px; line-height:1.45}
.qcount{display:flex; align-items:center; gap:10px; min-height:44px; color:#f0c08a}
.qcount small{font-weight:800; font-size:14px; color:#e9dcc0}
.qbig{font-family:var(--f-display); font-weight:400; font-size:46px; line-height:1; color:#f0c08a; text-shadow:0 0 18px rgba(211,154,94,.5)}
.qspin{width:26px; height:26px; border-radius:50%; border:3px solid rgba(255,215,106,.25); border-top-color:#f0c08a; animation:qspin 1s linear infinite}
@keyframes qspin{to{rotate:360deg}}
.qpanel #quickStart{width:auto}
.qseats{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.qseat{display:grid; justify-items:center; gap:4px; padding:12px 8px; border-radius:16px; text-align:center;
  background:linear-gradient(180deg,#14404c,#0a222b); border:2px solid #9a6a3e; box-shadow:0 3px 0 rgba(0,0,0,.4)}
.qseat.qme{border-color:#4fd69c}
.qseat.open{border:2px dashed rgba(127,227,255,.35); background:rgba(0,0,0,.18); box-shadow:none; animation:qpulse 1.8s ease-in-out infinite}
@keyframes qpulse{50%{border-color:rgba(127,227,255,.7)}}
.qav{display:grid; place-items:center; width:46px; height:46px; border-radius:50%; font-weight:900; font-size:17px; color:#2a1804;
  background:radial-gradient(circle at 35% 30%,#ffe9a8,#d9962a 65%,#3a2414)}
.qseat.qme .qav{background:radial-gradient(circle at 35% 30%,#c9f8df,#4fd69c 65%,#1d6b48); color:#0b2a1c}
.qseat.open .qav{background:rgba(255,255,255,.06); color:#9fb5b2; border:1.5px dashed rgba(127,227,255,.4)}
.qseat b{font-size:14px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.qseat small{font-size:11.5px; color:#9fb5b2; font-weight:700}
@media (max-height:430px){ .qpanel{padding:14px 64px 14px 18px !important} .qseat{padding:8px 6px} .qav{width:38px; height:38px; font-size:15px} }
@media (max-width:700px){ .qpanel{grid-template-columns:1fr} }

/* ===== 19 Oct 2026: fans curve to the centre, a steady middle, button presses, reward coins, notes, mute switches ===== */
/* opponents hold their cards curving in towards the middle of the table */
.seat.north .fan{rotate:180deg}
.seat.west .fan{rotate:90deg; margin:30px -30px}
.seat.east .fan{rotate:-90deg; margin:30px -30px}
/* the stock and pile stay put: the message beside them has a fixed width */
.center>.msg{flex:none; width:min(30ch,38vw)}
.piles{flex:none}
/* every button shows it's being pressed */
button:not(:disabled):active{filter:brightness(1.15)}
.btn:not(:disabled):active,.gbtn:not(:disabled):active,.mini-btn:not(:disabled):active,.ghost:not(:disabled):active,.opt:active,.pl:active,.placebtn:active,.ftile:active,.hubnav button:active,.mrow:active{transform:scale(.96)}
.xback:not(:disabled):active{transform:scale(.9)}
#saveProfile{border:0; color:#2a1804; font-weight:900; background:linear-gradient(180deg,#f5cf9f,#d39a5e 55%,#7a4f2c); box-shadow:0 4px 0 #3a2414, 0 8px 18px rgba(211,154,94,.3)}
#saveProfile:active{box-shadow:0 1px 0 #3a2414; transform:translateY(3px)}
/* reward coins flying to the wallet */
  filter:drop-shadow(0 3px 4px rgba(0,0,0,.5)) drop-shadow(0 0 6px rgba(255,210,90,.6))}
.wallet span.bump{animation:wbump .35s ease-out}
@keyframes wbump{40%{transform:scale(1.18); box-shadow:0 0 0 2px #f0c08a, 0 0 18px rgba(255,215,106,.7)}}
#chOv .freeze .gbtn{min-width:0; width:100%; padding:9px 12px; font-size:14px}
#chOv .freeze .gbtn i.boli{width:16px; height:16px}
/* short messages at the top of the screen */
.gnote{position:fixed; left:50%; top:14px; z-index:9900; translate:-50% -140%; max-width:min(92vw,520px); padding:10px 18px; border-radius:14px; font-weight:800; font-size:14px; text-align:center;
  color:#f3ead6; background:linear-gradient(180deg,#173c46,#0b242d); border:2px solid #9a6a3e; box-shadow:0 10px 30px rgba(0,0,0,.55); transition:translate .3s cubic-bezier(.2,1.3,.4,1); pointer-events:none}
.gnote.show{translate:-50% 0}
.gnote.bad{border-color:#e5483a; color:#ffd7d2}
.gnote.good{border-color:#4fd69c; color:#d6ffe9}
/* mute switches in the emoji tray */
.emute{grid-column:1 / -1; display:flex; gap:6px; flex-wrap:wrap; padding-top:8px; margin-top:4px; border-top:1px solid rgba(255,255,255,.12)}
.emute button{flex:1; padding:7px 10px; border-radius:10px; border:1.5px solid #2c6a75; background:rgba(0,0,0,.3); color:#e9dcc0; font-weight:800; font-size:12px; white-space:nowrap}
.emute button.off{border-color:#e5483a; color:#ffb3ad}
.seat.west .fan,.seat.east .fan{padding:0 4px; margin:42px -38px}

/* ===== no grey tap flash; menus above the game; mute one player (19 Oct 2026) ===== */
*{-webkit-tap-highlight-color:transparent}
button,[role="button"],a{-webkit-touch-callout:none; -webkit-user-select:none; user-select:none}
button:focus:not(:focus-visible){outline:none}
.ptile:hover,.emotray button:hover{background:inherit; border-color:inherit}
@media (hover:hover){ .ptile:hover{border-color:rgba(211,154,94,.6)} .emotray button:hover{background:rgba(251,247,239,.1)} }
/* menus sit above the game's flying cards, and the home screen fully covers the table */
.ov{z-index:40}
#hubOv{background:radial-gradient(ellipse at 50% -10%, rgba(211,154,94,.18), rgba(0,0,0,0) 55%), linear-gradient(160deg,#0d4a50 0%,#08343b 45%,#052329 100%)}
/* a muted player: a small badge on their picture, and the mute pop-up */
.seat.muted,.bseat.muted{position:relative}
.seat.muted::before,.bseat.muted::before{content:"🔇"; position:absolute; left:2px; top:2px; font-size:13px; line-height:1; padding:3px; border-radius:50%; background:#0b242d; box-shadow:0 0 0 1.5px #e5483a; z-index:3; pointer-events:none}
.seat .av,.bseat .av{cursor:pointer}
.mutepop{position:fixed; z-index:9600; width:190px; display:grid; gap:6px; padding:10px; border-radius:14px; text-align:center;
  background:linear-gradient(180deg,#173c46,#0b242d); border:2px solid #9a6a3e; box-shadow:0 12px 30px rgba(0,0,0,.6)}
.mutepop[hidden]{display:none}
.mutepop b{font-size:13px; color:#f6e3c8}
.mutepop button{padding:8px 10px; border-radius:10px; border:0; font-weight:900; font-size:13px; color:#2a1804; background:linear-gradient(180deg,#f5cf9f,#d39a5e 55%,#7a4f2c); box-shadow:0 3px 0 #3a2414}

/* ===== Fishathi with the user's hand; the card is the deck's back (20 Oct 2026) ===== */
.smash-palm{position:fixed; display:block !important; font-size:0 !important}
.smash-palm img{position:absolute; inset:0; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 14px 18px rgba(0,0,0,.55)); pointer-events:none; user-select:none}
.smash-palm .ps{opacity:0}
.smash-red{display:none}
.smash-card .card.back{box-shadow:0 0 0 2px rgba(255,255,255,.35), 0 16px 32px rgba(0,0,0,.55)}
.slthumb{display:grid; place-items:center; width:104px; height:84px}
.slthumb img{max-width:100%; max-height:100%; filter:drop-shadow(0 6px 10px rgba(0,0,0,.5))}
.ivslap{position:relative; width:220px; height:200px}
.ivslap img{position:absolute; inset:0; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 10px 16px rgba(0,0,0,.5))}
.ivslap img.sore{opacity:0; animation:ivsore 2.4s ease-in-out infinite}
.ivslap .card{position:absolute; left:calc(50% - 35px); top:18%; rotate:8deg; animation:ivslap 2.4s ease-in-out infinite}
@keyframes ivslap{0%,20%{translate:40px -150px; rotate:-40deg; opacity:0} 45%{translate:0 0; rotate:8deg; opacity:1} 80%{translate:0 0; opacity:1} 100%{translate:0 0; opacity:0}}
@keyframes ivsore{0%,45%{opacity:0} 55%,85%{opacity:1} 100%{opacity:0}}
@media (max-height:540px){ .smash-palm{width:52vh !important; height:52vh !important} }
#styleSlaps .slthumb{width:100px; height:80px}

/* ======================================================================
   Carved-wood look (20 Oct 2026, from the user's mock-ups): wooden frames with a gold inner line, wooden title
   plaques, icon tabs, gold PLAY buttons, item cards with status pills, icon rows in settings, challenge medallions.
   ====================================================================== */
:root{--wood1:#a86d34; --wood2:#7a4a20; --wood3:#4a2a10; --goldline:#b07a48; --teal1:#123c48; --teal2:#071a22}
/* the scene behind the menus: deep lagoon with warm lantern light at the sides */
.gov,.hubov{background:
  radial-gradient(ellipse 30% 45% at 4% 70%, rgba(255,170,70,.22), rgba(0,0,0,0) 70%),
  radial-gradient(ellipse 30% 45% at 96% 70%, rgba(255,170,70,.22), rgba(0,0,0,0) 70%),
  radial-gradient(ellipse 80% 50% at 50% 0%, rgba(120,220,215,.14), rgba(0,0,0,0) 70%),
  linear-gradient(180deg,#0b3a44 0%,#06262e 55%,#031418 100%) !important}
/* wooden frame */
.gpanel,.ivcard{border:9px solid transparent !important; border-radius:24px !important;
  background:
    linear-gradient(170deg,var(--teal1),var(--teal2)) padding-box,
    repeating-linear-gradient(100deg, rgba(0,0,0,.14) 0 2px, rgba(255,255,255,0) 2px 9px) border-box,
    linear-gradient(180deg,var(--wood1),var(--wood2) 45%,var(--wood3)) border-box !important;
  box-shadow:inset 0 0 0 2px var(--goldline), inset 0 0 30px rgba(0,0,0,.45), 0 0 0 2px #2b1606, 0 26px 70px rgba(0,0,0,.65) !important}
/* title on a carved plaque */
.gpanel>h2,.gpanel .qinfo h2,.placepanel .phead h2{display:inline-block; justify-self:center; align-self:center; width:auto !important; padding:2px 26px 4px !important; margin-inline:auto !important;
  border-radius:14px; border:2px solid var(--goldline); color:#f0c08a !important; -webkit-text-fill-color:#f0c08a; background:linear-gradient(180deg,#8a5426,#5a3313 60%,#3f220b) !important;
  -webkit-background-clip:border-box !important; background-clip:border-box !important;
  text-shadow:0 2px 0 #2b1606, 0 0 14px rgba(211,154,94,.35); filter:none !important; box-shadow:0 4px 0 #2b1606, 0 8px 18px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.18)}
.gpanel>h2::before,.gpanel>h2::after{-webkit-text-fill-color:#f0c08a}
/* the round ✕ gets a wooden rim */
.xback{border:3px solid var(--goldline) !important; background:radial-gradient(circle at 35% 30%,#1f5a66,#071c23) !important; box-shadow:0 0 0 3px var(--wood2), 0 4px 0 #2b1606, 0 8px 16px rgba(0,0,0,.5) !important}
/* tabs with icons */
.ti{width:18px; height:18px; flex:none; vertical-align:-3px; margin-right:6px}
.gpanel .ctabs button{display:inline-flex; align-items:center}
.gpanel .ctabs{border:1.5px solid rgba(231,183,90,.35)}
/* wallet chips */
.gpanel .wallet span,.hstore .hsw span{border-color:var(--goldline) !important}
.gpanel .wallet span{background:linear-gradient(180deg,#0b2730,#06161c) !important; box-shadow:inset 0 2px 6px rgba(0,0,0,.6), 0 2px 0 #2b1606 !important}
/* item cards: a carved crest on top and a status pill at the bottom */
.gpanel .sopt,.gpanel .sitem{border:2px solid var(--goldline) !important; padding-top:18px !important}
.gpanel .sopt::after{content:"✦"; position:absolute; top:3px; left:50%; translate:-50% 0; font-size:11px; color:var(--goldline); pointer-events:none}
.gpanel .sopt small{display:inline-block; margin-top:2px; padding:3px 12px; border-radius:999px; font-weight:900 !important; font-size:11px !important; color:#0f2a20 !important;
  background:linear-gradient(180deg,#a8f0c6,#4fd69c 60%,#2aa874); box-shadow:0 2px 0 #1d6b48}
.gpanel .sopt small::before{content:"✓ "}
.gpanel .sopt.on small{color:#2a1804 !important; background:linear-gradient(180deg,#f5cf9f,#d39a5e 60%,#7a4f2c); box-shadow:0 2px 0 #3a2414}
.gpanel .sopt.on small::before{content:"★ "}
.gpanel .sopt.locked small{color:#e9dcc0 !important; background:rgba(0,0,0,.35); box-shadow:none; font-weight:700 !important}
.gpanel .sopt.locked small::before{content:""}
/* settings: section headers on a wooden strip, an icon square on every row */
#setOv #setGame h3{display:flex; align-items:center; gap:6px; padding:6px 10px; border-radius:10px; background:linear-gradient(180deg,#6b3f1a,#4a2a10); border:1px solid rgba(231,183,90,.5); color:#f0c08a}
#setOv #setGame h3::after{display:none}
.rowico{display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:10px; color:#f0c08a; background:linear-gradient(180deg,#14404c,#0a222b); border:1.5px solid rgba(231,183,90,.55)}
.rowico .ti{margin:0; width:18px; height:18px}
#setOv .tog,#setOv .rng{display:flex; align-items:center; gap:10px}
#setOv .tog>span,#setOv .rng>span{flex:1; min-width:0}
#setOv .rng{flex-wrap:wrap} #setOv .rng input{flex-basis:100%}
@media (max-height:430px){ .rowico{width:28px; height:28px} .rowico .ti{width:15px; height:15px} }
/* challenge medallions */
.chico{grid-column:1 / -1; justify-self:center; display:grid; place-items:center; width:46px; height:46px; margin-top:-6px; border-radius:50%;
  border:2.5px solid var(--goldline); background:radial-gradient(circle at 35% 30%,#1f5a66,#071c23); box-shadow:0 0 0 2px var(--wood2), 0 4px 10px rgba(0,0,0,.5)}
.chico img,.chico .emo-img{width:28px !important; height:28px !important}
#chOv .chrow{grid-template-rows:auto auto 1fr auto !important}
#chOv .chrow>div:first-of-type{text-align:center}
@media (max-height:430px){ .chico{width:36px; height:36px} .chico img{width:22px !important; height:22px !important} }
/* home: game tiles with a gold PLAY button, feature tiles and nav on carved wood */
.hubx .gtile{border:2px solid var(--goldline) !important; box-shadow:0 0 0 3px var(--wood2), 0 6px 0 #2b1606, 0 12px 22px rgba(0,0,0,.45) !important}
.hubx .gtile .go{position:static !important; margin-top:4px; padding:5px 20px !important; font-size:12px !important; letter-spacing:.12em; border-radius:999px;
  color:#2a1804 !important; background:linear-gradient(180deg,#f5cf9f,#d39a5e 55%,#7a4f2c) !important; box-shadow:0 3px 0 #3a2414}
.hubx .gtile .go::after{content:" ›"}
.ftile{box-shadow:0 0 0 3px var(--wood2), 0 5px 0 #2b1606, 0 10px 20px rgba(0,0,0,.4) !important}
.ftile::after{content:"›"; position:absolute; right:12px; top:50%; translate:0 -50%; font-size:24px; color:var(--goldline)}
.ftile{position:relative; padding-right:30px !important}
.hubnav button{border-color:var(--goldline) !important; box-shadow:0 0 0 2px var(--wood2), 0 3px 0 #2b1606 !important}
.hstore{box-shadow:0 0 0 3px var(--wood2), 0 4px 0 #3a2414, 0 6px 16px rgba(211,154,94,.3) !important}
.hubbar .mechip{border:2px solid var(--goldline) !important; box-shadow:0 0 0 2px var(--wood2) !important}
/* the game menu: icon discs and a chevron on each big button */
#homeOv .hbtn{position:relative; padding-right:52px !important; border:2px solid var(--goldline) !important; box-shadow:0 0 0 3px var(--wood2), 0 4px 0 #2b1606 !important}
#homeOv .hbtn::after{content:"›"; position:absolute; right:12px; top:50%; translate:0 -50%; display:grid; place-items:center; width:30px; height:30px; border-radius:50%;
  font-size:20px; font-weight:900; line-height:1; color:#f0c08a; border:2px solid var(--goldline); background:rgba(0,0,0,.25)}
#homeOv .hbtn.main::after{color:#2a1804; border-color:#3a2414; background:rgba(255,255,255,.3)}
#homeOv .hbtn i{border-radius:50% !important; border:2px solid var(--goldline) !important}
#homeOv .hlink{border:2px solid var(--goldline); border-radius:999px; padding:6px 18px !important; background:linear-gradient(180deg,#6b3f1a,#4a2a10); color:#f0c08a !important; box-shadow:0 3px 0 #2b1606}
/* profile: framed stat boxes and wallet chips */
#profOv .stats>div,#profOv .wallet span{border:2px solid var(--goldline) !important; box-shadow:0 0 0 2px var(--wood2) !important}
#profOv .mrow{border:2px solid var(--goldline) !important; box-shadow:0 0 0 2px var(--wood2), 0 3px 0 #2b1606 !important}
#profOv .mrow .ico{border-radius:50%; border:2px solid var(--goldline)}
/* friends: the invite code on a wooden plaque */
#friendsOv .codebox b{padding:2px 14px; border-radius:10px; background:linear-gradient(180deg,#6b3f1a,#4a2a10); border:1.5px solid var(--goldline)}
/* the wooden look on short (sideways phone) screens: thinner frame, smaller plaque and tiles */
@media (max-height:430px){
  .gpanel,.ivcard{border-width:6px !important}
  .gpanel>h2{font-size:24px !important; padding:0 18px 2px !important}
  .gpanel .sopt,.gpanel .sitem{padding-top:12px !important; padding-bottom:6px !important; gap:3px !important}
  .gpanel .sopt::after{top:0}
  #styleBox .sopt .dthumb{width:38px; height:53px}
  #styleBox .sopt .tthumb{width:76px; height:44px}
  #styleBox .sopt .fthumb{width:44px; height:44px}
  #shopOv .sitem{padding-top:10px !important}
  #shopOv .dthumb.big{width:50px !important; height:70px !important}
  #shopOv .tthumb.big{width:110px !important; height:60px !important}
  #collOv .ctabs,#shopOv .ctabs{margin:5px 0 !important}
  #setOv .tog,#setOv .rng{padding:5px 9px !important; margin-bottom:5px !important}
  #setOv #setGame h3{padding:3px 8px; margin:2px 0 5px !important}
  #setOv .gpanel.mprof #setProfile .field{margin-bottom:5px}
}
@media (max-height:430px){
  #collOv .gpanel,#setOv .gpanel{padding-top:8px !important; padding-bottom:8px !important}
  #collOv #collToShop{margin-top:2px !important; padding:7px 18px !important}
  #styleBox .sgrid{padding-bottom:6px !important}
  #setOv .gpanel.mprof .photorow{margin-bottom:2px}
}
/* ===== stronger carved wood (20 Oct 2026): real wood grain (art/ui/wood.webp), thicker frames, a wooden deck floor ===== */
.gov,.hubov{background:
  linear-gradient(180deg,rgba(0,0,0,0) 78%,rgba(0,0,0,.35) 79%,rgba(0,0,0,0) 81%),
  linear-gradient(180deg,rgba(0,0,0,0) 79%,rgba(40,20,6,.25) 100%),
  url(../art/ui/wood.webp) left bottom/340px auto repeat-x,
  radial-gradient(ellipse 30% 45% at 4% 62%, rgba(255,170,70,.28), rgba(0,0,0,0) 70%),
  radial-gradient(ellipse 30% 45% at 96% 62%, rgba(255,170,70,.28), rgba(0,0,0,0) 70%),
  radial-gradient(ellipse 80% 50% at 50% 0%, rgba(120,220,215,.16), rgba(0,0,0,0) 70%),
  linear-gradient(180deg,#0c4752 0%,#08303a 60%,#04191e 100%) !important;
  background-size:auto,auto,340px 21%,auto,auto,auto,auto !important; background-position:0 0,0 0,left bottom,0 0,0 0,0 0,0 0 !important}
.gpanel,.ivcard{border-width:13px !important;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(120,220,215,.10), rgba(0,0,0,0) 70%) padding-box,
    linear-gradient(170deg,#11414d,#071a22) padding-box,
    linear-gradient(180deg,rgba(255,220,150,.18),rgba(0,0,0,.25)) border-box,
    url(../art/ui/wood.webp) center/260px auto border-box !important;
  box-shadow:inset 0 0 0 2px var(--goldline), inset 0 0 0 5px rgba(0,0,0,.35), inset 0 0 36px rgba(0,0,0,.5),
    0 0 0 2px #2b1606, 0 0 0 4px rgba(231,183,90,.55), 0 26px 70px rgba(0,0,0,.7) !important}
.gpanel>h2,.gpanel .qinfo h2,.placepanel .phead h2,#setOv #setGame h3,#homeOv .hlink,#friendsOv .codebox b{
  background:linear-gradient(180deg,rgba(255,220,150,.22),rgba(0,0,0,.3)),url(../art/ui/wood.webp) center/200px auto !important}
.gpanel .ctabs{background:linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,.6)),url(../art/ui/wood.webp) center/220px auto !important}
.hubx .gtile,.ftile,.hubnav button,.hubbar .mechip{border-width:3px !important}
.hubx .gtile{box-shadow:0 0 0 4px #6b3f1a, 0 0 0 6px rgba(231,183,90,.5), 0 8px 0 #2b1606, 0 14px 24px rgba(0,0,0,.5) !important}
@media (max-height:430px){ .gpanel,.ivcard{border-width:9px !important} }
#setOv .tog>span.rowico,#setOv .rng>span.rowico{flex:0 0 34px !important; width:34px; display:grid !important}
@media (max-height:430px){ #setOv .tog>span.rowico,#setOv .rng>span.rowico{flex-basis:28px !important; width:28px} }

/* =====================================================================
   The user's own UI art (20 Oct 2026; art/make_ui_art.py → art/ui/): resort backgrounds, the carved frame, the title
   plaque, gold and teal pill buttons, 3D icons. Frames and buttons are drawn with border-image so they stretch to fit.
   ===================================================================== */
.hubov{background:linear-gradient(180deg,rgba(2,10,16,.15),rgba(2,10,16,.35)), url(../art/ui/bg-loading-lq-warm.webp) center 60%/cover no-repeat !important}
.gov{background:linear-gradient(rgba(3,12,18,.25),rgba(3,12,18,.35)), url(../art/ui/bg-loading-lq-warm.webp) center/cover no-repeat !important}
#homeOv{background:linear-gradient(90deg,rgba(2,10,16,.15),rgba(2,10,16,.45)), url(../art/ui/bg-loading-lq-warm.webp) center/cover no-repeat !important}
.boot{background:linear-gradient(rgba(3,12,18,.55),rgba(3,12,18,.75)), url(../art/ui/bg-loading-lq-warm.webp) center/cover no-repeat}
/* the carved frame around every panel and pop-up */
.gpanel,.ivcard{border:16px solid transparent !important; background:none !important;
  border-image:url(../art/ui/frame.webp) 62 fill / 34px / 8px stretch !important;
  box-shadow:0 22px 50px rgba(0,0,0,.55) !important}
.gpanel{padding-right:64px !important}
@media (max-height:430px){ .gpanel,.ivcard{border-width:12px !important; border-image-width:26px !important; border-image-outset:5px !important} }
/* the title plaque */
.gpanel>h2,.gpanel .qinfo h2,.placepanel .phead h2{background:none !important; border:0 solid transparent !important; box-shadow:none !important;
  border-image:url(../art/ui/plaque.webp) 22 112 fill / 9px 50px stretch !important; padding:5px 58px 7px !important; border-radius:0 !important}
/* gold and teal pill buttons */
.gbtn:not(.alt):not(.buy),.btn:not(.alt):not(.ghost),.hbtn.main,.hubx .gtile .go,#saveProfile,#quickStart,.hstore,.chrow .btn{
  background:none !important; border:0 solid transparent !important; box-shadow:none !important; filter:drop-shadow(0 4px 6px rgba(0,0,0,.45));
  border-image:url(../art/ui/btn-gold.webp) 0 46 fill / 0 22px stretch !important; color:#2a1804 !important; border-radius:0 !important}
.gbtn.alt,.btn.alt,.hbtn:not(.main),.ghost,.hubnav button,#homeOv .hlink{
  background:none !important; border:0 solid transparent !important; box-shadow:none !important; filter:drop-shadow(0 4px 6px rgba(0,0,0,.45));
  border-image:url(../art/ui/btn-teal.webp) 0 46 fill / 0 22px stretch !important; color:#f6e3c8 !important; border-radius:0 !important}
.hubnav button{border-image:url(../art/ui/btn-teal.webp) 14 46 fill / 8px 22px stretch !important; padding:7px 18px 6px !important}
#homeOv .hbtn{padding-left:16px !important}
#homeOv .hbtn i{background:rgba(0,0,0,.25) !important}
#homeOv .hbtn::after{border-color:#f0c08a !important}
.gbtn.buy{border-image:none !important}
/* 3D icons: store, settings, inbox, feature tiles, challenges */
.hstore .hsi{background:url(../art/ui/menu-store.webp) center/contain no-repeat !important; width:40px !important; height:40px !important}
.hstore .hsi svg{display:none}
#navSet svg,#navInbox svg{display:none}
#navSet::before,#navInbox::before{content:""; width:24px; height:24px; background:center/contain no-repeat}
#navSet::before{background-image:url(../art/ui/menu-settings.webp)}
#navInbox::before{background-image:url(../art/ui/menu-inbox.webp)}
.ftile .ficon{width:58px; height:58px; object-fit:contain; filter:drop-shadow(0 4px 8px rgba(0,0,0,.5))}
@media (max-height:430px){ .ftile .ficon{width:44px; height:44px} }
.chico{background:radial-gradient(circle at 35% 30%,#1f5a66,#071c23) !important}
.chico img{width:34px !important; height:34px !important; object-fit:contain}
@media (max-height:430px){ .chico img{width:28px !important; height:28px !important} }
/* home tiles: the carved frame, smaller */
.hubx .gtile,.ftile{border:10px solid transparent !important; background:none !important; box-shadow:0 10px 20px rgba(0,0,0,.45) !important;
  border-image:url(../art/ui/frame.webp) 62 fill / 22px / 4px stretch !important}
.hubx .gtile .go{padding:5px 22px !important}
.hubbar .mechip{background:rgba(3,20,26,.7) !important}
.hubbar{position:relative; z-index:3}
.hubx .gtile,.ftile{border-image-outset:0 !important}
@media (max-height:430px){
  .hubx .gtile{padding:4px 6px 6px !important; gap:2px !important} .hubx .gtile .gback{width:34px !important; height:48px !important}
  .hubx .gtile b{font-size:19px !important} .hubmid{gap:6px !important}
  .ftile{padding:2px 28px 2px 8px !important}
}
@media (max-height:430px){
  .gpanel>h2{padding:2px 50px 4px !important; font-size:22px !important}
  #collOv #collToShop{padding:5px 18px !important}
  #setOv .gpanel.mprof #setProfile .swatches{margin:4px 0 2px}
}
/* game menu: the scene shows around the buttons (no panel box), readable gold button */
#homeOv .panel.home{border:0 !important; border-image:none !important; background:none !important; box-shadow:none !important}
#homeOv .hbtn.main{border-image:none !important; filter:none !important; border:2px solid #f0c08a !important; border-radius:18px !important; color:#2a1804 !important;
  background:linear-gradient(180deg,#f5cf9f,#d39a5e 55%,#7a4f2c) !important; box-shadow:0 4px 0 #3a2414, 0 10px 22px rgba(211,154,94,.35) !important}
#homeOv .hbtn.main b,#homeOv .hbtn.main small{color:#2a1804 !important}
#homeOv .hbtn:not(.main){border-image:none !important; filter:none !important; border:2px solid #f0c08a !important; border-radius:18px !important; background:linear-gradient(180deg,rgba(20,64,76,.92),rgba(7,30,38,.92)) !important}
#homeOv .hbtn i{border-color:#f0c08a !important}

/* =====================================================================
   The user's upscaled UI art (20 Oct 2026; art/make_ui_art2.py → art/ui/): bigger, sharper frame, title plaque,
   gold/teal buttons, home tiles, on/off switches and the loading screen. Overrides the block above.
   ===================================================================== */
.gpanel,.ivcard{border:20px solid transparent !important; border-image:url(../art/ui/frame.webp) 170 fill / 46px / 4px stretch !important}
@media (max-height:430px){ .gpanel,.ivcard{border-width:14px !important; border-image-width:34px !important; border-image-outset:4px !important} }
.gpanel>h2,.gpanel .qinfo h2,.placepanel .phead h2{border-image:url(../art/ui/plaque.webp) 0 200 0 250 fill / 0 38px 0 48px stretch !important;
  padding:6px 50px 8px 58px !important; color:#f5cf9f !important; text-shadow:0 2px 3px rgba(0,0,0,.8) !important}
@media (max-height:430px){ .gpanel>h2{padding:3px 42px 5px 50px !important} }
.gbtn:not(.alt):not(.buy),.btn:not(.alt):not(.ghost),.hbtn.main,.hubx .gtile .go,#saveProfile,#quickStart,.hstore,.chrow .btn{
  border-image:url(../art/ui/btn-gold.webp) 0 118 fill / 0 25px stretch !important}
.gbtn.alt,.btn.alt,.hbtn:not(.main),.ghost,#homeOv .hlink{border-image:url(../art/ui/btn-teal.webp) 0 110 fill / 0 26px stretch !important}
.hubnav button{border-image:url(../art/ui/btn-teal.webp) 20 110 fill / 6px 26px stretch !important}
.gbtn.buy{border-image:none !important}
/* home: game tiles in the tall frame, feature tiles in the wide frame */
.hubx .gtile{border-image:url(../art/ui/frame-tall.webp) 75 40 85 40 fill / 18px 10px 20px 10px / 0 stretch !important}
.ftile{border-image:url(../art/ui/frame-wide.webp) 90 110 100 110 fill / 18px 22px 20px 22px / 0 stretch !important}
/* on/off switches */
.tog i{width:50px !important; height:22px !important; border-radius:0 !important; background:url(../art/ui/tog-off.webp) center/contain no-repeat !important}
.tog input:checked + i{background-image:url(../art/ui/tog-on.webp) !important}
.tog i::after{display:none !important}
/* loading screen: the user's picture (it has the Thaas title), only the loading bar on top */
.boot{background:#03141a url(../art/ui/bg-loading.webp) center/cover no-repeat !important;}
.boot .brand,.boot small,.boot .brays,.boot .bbar{display:none !important}

/* (24 Oct) search box over your friends list */
.fsearch{width:100%; box-sizing:border-box; margin:0 0 8px; text-align:left; letter-spacing:0; text-transform:none; font-size:15px}
/* (24 Oct) the speaker menu at the table: music and game sounds */
.tools{position:relative}
.sndmenu{position:absolute; top:calc(100% + 6px); right:0; z-index:30; display:grid; gap:4px; min-width:200px; padding:8px 12px; border-radius:14px; background:rgba(14,10,6,.95); border:1px solid rgba(240,192,138,.45); box-shadow:0 10px 24px rgba(0,0,0,.5)}
.sndmenu .tog{padding:6px 0}
/* (24 Oct) a gliding card keeps one soft shadow (animating the shadow made phones stutter) */
.fly.glide .card{box-shadow:0 6px 12px rgba(0,0,0,.38), 0 1px 2px rgba(0,0,0,.3)}

/* (25 Oct 2026) .throwask/.tabox = small question box (the "Break your group?" question was removed 14 Nov 2026; Bondi ask box still uses it) */
.throwask{position:fixed; inset:0; z-index:57; display:grid; place-items:center; background:rgba(0,0,0,.45); padding:12px; box-sizing:border-box}
.throwask[hidden]{display:none}
.tabox{display:grid; justify-items:center; gap:8px; text-align:center; width:min(380px,92vw); padding:12px 18px 14px; border-radius:16px; color:#f3ead6; box-sizing:border-box;
  background:linear-gradient(180deg, rgba(28,17,8,.97), rgba(14,9,4,.97)); border:2px solid rgba(240,192,138,.7); box-shadow:0 14px 36px rgba(0,0,0,.6); animation:cpop .25s ease-out}
.tabox b{font-family:var(--f-display); font-weight:400; font-size:22px; color:var(--saffron)}
.tabox p{margin:0; font-size:14px; line-height:1.35}
.tacards{display:flex; gap:6px; justify-content:center}
.tacards .card{--w:44px; position:relative}
.tacards .card.pick{transform:translateY(-8px); box-shadow:0 0 0 2px var(--saffron), 0 6px 12px rgba(0,0,0,.5)}
.tabox .rbtns{display:flex; gap:10px; justify-content:center}
@keyframes cpop{from{transform:scale(.94); opacity:0}to{transform:none; opacity:1}}

/* (31 Oct 2026, user's picture brief: "six piles in ONE continuous overlapping vertical stack, like a Solitaire column … each
   card shifted down about 25-35% of its height, the top edge of each still visible") each team's won piles form one column:
   one card per pile, oldest at the top. A pile without a 10 shows a card back; a pile with 10s shows them face up, side by
   side when it holds two or more (user: "if in 1 round 2 ten is collected show those two 10 but count it as 1 pile").
   Settings: --tpw card width, --tpr how far each pile moves down (share of the card's height), --tp10 how far a second 10
   sits to the side (share of the width). tFitPiles() makes the step smaller when a long column would reach the hand. */
.tens-row{--tpw:32px; --tpr:.3; --tpt:.52; --tp10:.8}   /* (31 Oct, user: "I can't see 10 and suit clearly") the 10 and its suit stay uncovered */
.tens-row .side{align-items:flex-start; gap:6px; min-height:0}
.tens-row .lab{display:flex; flex-direction:column; gap:1px; margin:0}
.tens-row .lab small{font-size:9px; letter-spacing:.04em; text-transform:none; font-weight:700; color:var(--muted); opacity:.85; white-space:nowrap}
.tcol{--h:calc(var(--tpw) * 1.4); --sb:calc(var(--h) * var(--tpr)); --st:calc(var(--h) * var(--tpt)); position:relative; flex:none;
  width:calc(var(--tpw) * (1 + (var(--wide,1) - 1) * var(--tp10))); height:calc(var(--h) + var(--b,0) * var(--sb) + var(--t,0) * var(--st))}
.trow{position:absolute; left:0; top:calc(var(--b,0) * var(--sb) + var(--t,0) * var(--st)); z-index:calc(var(--k,0) + 1)}
.tcol .card{position:absolute; top:0; left:calc(var(--j,0) * var(--tpw) * var(--tp10)); --w:var(--tpw); border-radius:calc(var(--tpw) * .1);
  border:1px solid #1d1b1a; box-shadow:0 1px 0 rgba(255,255,255,.55), 0 2px 0 #1d1b1a}   /* crisp edges: a thin pile, no soft shadow */
.tcol .card::after{display:none}
.tcol .card:not(.back){border-color:#1d1b1a}
.tens-row .them .tcol .trow{left:auto; right:0}
.tens-row .them .tcol .card{left:auto; right:calc(var(--j,0) * var(--tpw) * var(--tp10))}
@media (orientation:landscape){
  .g-ten .btable{position:relative; grid-template-rows:auto 1fr}
  .g-ten #tTens{position:absolute; left:0; right:0; top:var(--tpTop,64px); bottom:4px; padding:0 8px; pointer-events:none; align-items:flex-start}
  .g-ten #tTens .side{flex-direction:column; width:min(110px,15vw); pointer-events:auto}
  .g-ten #tTens .them{align-items:flex-end; text-align:right}
  .g-ten #tTens .them .lab{align-items:flex-end}
  .g-ten .bmid{padding-inline:calc(min(110px,15vw) + 12px)}   /* the trick and its message stay between the two pile columns */
  html body.g-ten .btrick{gap:6px; padding-inline:6px}
  .g-ten .tcard span{max-width:max(var(--tw),40px)}   /* a long name no longer makes its card's slot wider than the card */
  .g-ten .bmid .msg{max-width:min(24ch,16vw) !important}
}
@media (orientation:landscape) and (max-height:420px){ .g-ten #tTens{--tpTop:58px} .tens-row{--tpw:27px} }
@media (orientation:landscape) and (max-width:820px){ html body.g-ten .btrick{--tw:min(72px, 17.5vh, 8vw)} }

/* (31 Oct 2026) the series score of Bondi and 10: one dot for each game win needed, filled as they are won */
.sdots{display:inline-flex; gap:3px; margin-left:5px; vertical-align:middle; font-style:normal}
.sdots i{width:7px; height:7px; border-radius:50%; border:1.5px solid currentColor; opacity:.55; box-sizing:border-box}
.sdots i.on{background:var(--saffron); border-color:var(--saffron); opacity:1}

/* (31 Oct 2026, Laari "hand of two") your next two cards lie face up beside your pile: tap one to place it. A card that would
   match the one on top of the middle gets a soft gold edge */
.ltwo{display:flex; gap:8px; align-items:flex-end}
.ltc{border:0; background:none; padding:0; cursor:default; border-radius:9px; transition:transform .15s ease}
.ltc .card{--w:74px}
.ltc.can{cursor:pointer} .ltc.can .card{box-shadow:0 0 0 2px rgba(211,154,94,.7), var(--edge), 0 8px 16px rgba(0,0,0,.45)}
.ltc.can:hover,.ltc.can:active{transform:translateY(-6px)}
.ltc.can.hit .card{box-shadow:0 0 0 3px var(--saffron), 0 0 22px rgba(211,154,94,.65), var(--edge), 0 8px 16px rgba(0,0,0,.45); animation:lnudge 1.6s ease-in-out infinite}
.lpile .lempty:empty{width:74px; height:0}
@media (prefers-reduced-motion:reduce){ .ltc.can.hit .card{animation:none} }
html body .ltc.can .card{box-shadow:0 0 0 2px rgba(211,154,94,.7), var(--edge), 0 8px 16px rgba(0,0,0,.45) !important}
html body .ltc.can.hit .card{box-shadow:0 0 0 3px var(--saffron), 0 0 22px rgba(211,154,94,.75), var(--edge), 0 8px 16px rgba(0,0,0,.45) !important}
@media (max-height:520px){ .ltc .card,.lme .lpile .card{--w:min(60px,16vh)} .lpile .lempty:empty{width:min(60px,16vh)} .lme{gap:10px} .ltwo{gap:6px} }
/* the buying cards stay in one row beside your two cards (8 of them with 2 players): they overlap a little, like a held fan */
.lme .lbuys>div{flex-wrap:nowrap; gap:0}
.lme .lbuy+.lbuy,.lme .lbuy+.lspent,.lme .lspent+.lspent{margin-left:-12px}
.lme .lbuys{min-width:0}
.lme{align-items:flex-end}
@media (max-height:420px){ .lme .lbuys>span{display:none} }
.ltc{position:relative}
.ltc .lpick{position:absolute; left:50%; bottom:-9px; transform:translateX(-50%); z-index:3; white-space:nowrap; font-style:normal; font-size:9.5px; font-weight:800; padding:1px 6px; border-radius:999px; background:rgba(2,20,26,.85); border:1px solid var(--saffron); color:#ffe7a8}
.ltc.second:not(.can){opacity:.55}

/* (31 Oct 2026, brief #28) a computer player's face always says BOT */
.av.cpu{overflow:visible}
.av .botbadge{position:absolute; left:50%; bottom:-5px; transform:translateX(-50%); z-index:2; padding:0 4px; border-radius:4px; background:#1d2630; border:1px solid #7fb7d8; color:#cfeaff; font:800 8px/1.35 system-ui,sans-serif; letter-spacing:.06em; font-style:normal; pointer-events:none}

/* (31 Oct 2026, brief #19) table chat: a drawer on the right, above the bottom bar, clear of the cards in the middle */
.chatbtn{position:relative; font-size:18px}
.chatn:not(:empty){position:absolute; right:-4px; top:-4px; min-width:16px; padding:0 4px; border-radius:99px; background:#c4262b; color:#fff; font:800 10px/16px system-ui,sans-serif; font-style:normal}
.chatbox{position:fixed; right:calc(8px + var(--safeR)); bottom:calc(64px + var(--safeB)); z-index:45; width:min(300px,38vw); max-height:min(62vh,360px);
  display:flex; flex-direction:column; border-radius:14px; background:rgba(14,10,6,.94); border:1.5px solid rgba(240,192,138,.5); box-shadow:0 10px 26px rgba(0,0,0,.55); color:#f4ead2}
.chatbox[hidden]{display:none}
.chatbox header{display:flex; flex-direction:row-reverse; align-items:center; justify-content:space-between; padding:6px 10px; border-bottom:1px solid rgba(240,192,138,.25); font-size:13px}
.chatbox header .ghost{width:auto; padding:2px 8px; margin:0}
.chatlist{flex:1; overflow:auto; padding:6px 10px; display:grid; gap:6px; align-content:start; font-size:12.5px}
.cmsg b{display:block; font-size:11px; color:#e8c98a} .cmsg.mine b{color:#9fe0ff} .cmsg span{word-break:break-word}
.cmsg.muted i{color:#8a7d68; font-size:11px}
.cmsg small{display:flex; gap:8px; margin-top:1px} .cmsg small button{background:none; border:0; padding:0; color:#9d8f78; font-size:10px; text-decoration:underline; cursor:pointer}
.chatform{display:flex; gap:6px; padding:6px 8px; border-top:1px solid rgba(240,192,138,.25)}
.chatform input{flex:1; min-width:0; padding:6px 8px; border-radius:10px; border:1px solid rgba(240,192,138,.4); background:#0b0805; color:#f4ead2; font-size:13px}
.chaterr{margin:0; padding:0 10px 6px; font-size:11px; color:#ff9a8a} .chaterr:empty{display:none}
@media (orientation:portrait){ .chatbox{width:min(320px,86vw); max-height:46vh} }
/* (1 Nov 2026, user: "move the Deal button a little higher; the table part has space") openSetup puts Deal inside the
   "Who's at the table" block, right under the computer players (back in the panel at the magic table, which has no seats);
   Digu's Match choice and the random-opponents button */
#setupOv #slotsWrap #dealBtn{display:block; width:100%; margin-top:12px !important}
#targetOpts .optsep{grid-column:1 / -1; margin:6px 0 -2px; font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#f0c08a}
#targetOpts{grid-template-columns:repeat(6,minmax(0,1fr))} #targetOpts .opt{grid-column:span 3} #targetOpts .opt[data-dbest]{grid-column:span 2; padding-left:4px !important; padding-right:4px !important}
/* Random opponents and Deal share one line under the seats, so even Bondi's 5 computer seats fit a phone held sideways */
#setupOv #slotsWrap{display:flex; flex-wrap:wrap; align-items:center; column-gap:8px}
#setupOv #slotsWrap>h3,#setupOv #slots{flex:1 1 100%}
#setupOv #slotRand{flex:0 0 auto; width:auto; margin-top:10px; padding:10px 14px}
#setupOv #slotsWrap #dealBtn{flex:1 1 0; width:auto}
#setupOv #slots.many{gap:4px} #setupOv #slots.many select{padding-top:4px; padding-bottom:4px}
[data-walletbuy]{cursor:pointer} .wallet [data-walletbuy]:hover{filter:brightness(1.2)}
@media (max-height:370px) and (orientation:landscape){ #setupOv #targetOpts .opt span{display:none} #setupOv #targetOpts .opt{padding-top:7px !important; padding-bottom:7px !important} }
@media (max-height:340px) and (orientation:landscape){ #setupOv #slots.many select{padding-top:2px; padding-bottom:2px} #setupOv .gpanel>h2{font-size:22px !important; margin-bottom:0} #setupOv #slotsWrap>h3,#setupOv .gpanel>h3{margin-top:0} }
/* the right column's extra height goes under "Play to / Match" (row 4), never as a gap under "Players"; no empty error line */
#setupOv .gpanel{grid-template-rows:auto auto auto 1fr auto auto}
#setupOv #setupErr:empty{display:none}

/* (1 Nov 2026) the cartoon card slam: one frame of the user's sprite sheet at a time (js playCartoonSmash) */
.smash-cartoon{position:fixed; left:0; top:0; will-change:transform; width:clamp(200px, 46vh, 330px); aspect-ratio:314 / 340; background-repeat:no-repeat; filter:drop-shadow(0 14px 18px rgba(0,0,0,.55))}
/* (3 Nov 2026) tablets can now turn upright (Play large-screen rule, no lock in the manifest): Thaas is laid out sideways, so upright it asks to be turned */
@media (orientation:portrait) and (pointer:coarse){ .rotate{display:grid} }

/* (4 Nov 2026) table chat: a speech bubble at the sender's seat, and Thaas's own full-width keyboard (js/chat.js) */
.chatbub{position:fixed; z-index:31; transform:translate(-50%,-100%); max-width:170px; padding:6px 11px; border-radius:14px;
  background:#fffaf0; color:#2a1d10; font:600 13px/1.25 inherit; text-align:center; word-break:break-word; pointer-events:none;
  box-shadow:0 4px 12px rgba(0,0,0,.45)}
.chatbub::after{content:''; position:absolute; left:50%; bottom:-6px; margin-left:-6px; border:6px solid transparent; border-bottom:0; border-top-color:#fffaf0}
.chatbub.below{transform:translate(-50%,0)} .chatbub.below::after{bottom:auto; top:-6px; border:6px solid transparent; border-top:0; border-bottom-color:#fffaf0}
.chatbub.mine{background:#dff4ff} .chatbub.mine::after{border-top-color:#dff4ff} .chatbub.mine.below::after{border-bottom-color:#dff4ff; border-top-color:transparent}
.chatleft{align-self:center; min-width:16px; color:#e0a08f; font-size:11px}
.chatkeys{position:fixed; left:0; right:0; bottom:0; z-index:60; display:grid; gap:5px; padding:6px calc(6px + var(--safeR)) calc(6px + var(--safeB)) calc(6px + var(--safeL,0px));
  background:linear-gradient(180deg,#2a2119,#17120d); border-top:1px solid rgba(240,192,138,.35); box-shadow:0 -6px 18px rgba(0,0,0,.5); user-select:none; touch-action:manipulation}
.chatkeys[hidden]{display:none}
.ckrow{display:flex; gap:5px; justify-content:center}
.ck{flex:1 1 0; min-width:0; height:clamp(30px,8.5vh,42px); border:0; border-radius:7px; background:#4a3c2e; color:#f6e6da; font:600 16px/1 inherit; box-shadow:0 2px 0 rgba(0,0,0,.45); padding:0}
.ck.wide{flex:1.5 1 0; background:#3a2f24} .ck.space{flex:5 1 0} .ck.send{flex:2 1 0; background:linear-gradient(180deg,#e9b872,#c98a4a); color:#1b1207}
.ck.on{background:#8a6a45}
/* (14 Nov 2026) the same keyboard on other boxes: the box being typed in is marked, and windows keep their content clear of the keyboard (--kbH = its height) */
.ckmir{display:flex; gap:10px; align-items:baseline; padding:5px 10px; border-radius:8px; background:#0e0a07; border:1px solid rgba(240,192,138,.4); color:#f6e6da; font-size:16px; min-height:24px}
.ckmir small{color:#b8a58f; flex:none; font-size:12px} .ckmir b{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; text-align:left} .ckmir b::after{content:'|'; color:#f0c08a}
.kbon{outline:2px solid #f0c08a !important; outline-offset:-2px; caret-color:transparent}
html body.kbform .gov:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_)>.gpanel{padding-bottom:calc(var(--kbH,0px) + 12px) !important}
html body.kbform .app{--kbpad:var(--kbH,0px)} .ck.send.on{filter:brightness(1.15)}
body.chatkeys .chatbox{z-index:61}
/* (4 Nov 2026) the chat keyboard's emoji pad: a grid that scrolls, the groups along the bottom */
.ckemo{display:grid; grid-template-columns:repeat(auto-fill,minmax(40px,1fr)); gap:2px; height:clamp(96px,30vh,150px); overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y}
.cke{height:40px; border:0; border-radius:8px; background:none; font-size:24px; line-height:1; padding:0}
.cke.on,.cke:active{background:rgba(240,192,138,.2)}
/* (5 Nov 2026) Sign in with Apple (iPhone app only): Apple's black button, as big as Google's */
.btn.apple{display:flex; align-items:center; justify-content:center; gap:10px; background:#000; color:#fff; border:1px solid #444; margin-top:6px}
.btn.apple[hidden]{display:none} .btn.apple svg{width:20px; height:20px}

/* (8 Nov 2026) Merit tab in Stats & history */
#histMerit .mout{font-size:14px; color:var(--muted); letter-spacing:0; text-transform:none}
#histMerit .mrules{list-style:none; margin:0; padding:0; display:grid; gap:6px}
#histMerit .mrules li{display:grid; grid-template-columns:44px 1fr; align-items:center; gap:10px; padding:7px 12px; border-radius:10px; background:var(--shade); border:1px solid var(--line); font-size:13px; color:#e8d8c4}
#histMerit .mrules b{text-align:center; font-size:15px; color:#f3e6d4} #histMerit .mrules b.up{color:#7fe3a0} #histMerit .mrules b.dn{color:#ff8a80}
#histMerit .hst{display:grid; align-content:center}
@media (min-width:560px){ #histMerit .mrules{grid-template-columns:1fr 1fr} #histMerit .mrules li{padding:6px 10px; font-size:12.5px; line-height:1.25} }

/* (user, after a real game) the 1-card hint, and spell help on press and hold */
#mgPick .mghelp{max-width:min(360px,92vw); max-height:92vh; overflow:auto}
#mgPick .mghelp small{text-align:center; line-height:1.3}
[data-sp]{-webkit-touch-callout:none; -webkit-user-select:none; user-select:none}
/* (user, after a real game: the speaker button did nothing) the menu was opening below the bottom of the screen: it now sits right under the speaker */
html body #sndMenu{position:fixed; top:calc(48px + var(--safeT,0px)); right:calc(8px + var(--safeR,0px)); left:auto; bottom:auto; z-index:70; max-height:calc(100dvh - 56px); overflow:auto}
#mgPick .mghelp small b{display:inline; font-size:inherit}
/* (user) 'tell the table' in the emoji tray, and its bubble */
.bubble.bubtxt{width:78px; white-space:normal; text-align:center; font:800 12px/1.15 var(--f-display,inherit); color:#2a180a; background:#f3ead6; border:2px solid #d39a5e; border-radius:12px; padding:5px 6px}
/* (user) no border line around the table while playing: on some phones the buttons looked as if they were on or outside it */
html body.in-game::after{display:none}
/* (user) one card from Digu: small and round, just above the emoji button; only you see it, and pressing it tells the table */
/* FIX ROUND 2 B23 (14 Nov 2026): the user's round glass button (teal glass, gold ring: art/ui/glass/btn-round.webp) with a cream "1" and a small gold CARD.
   (The old brown disc with the white ring is gone.) One size on every screen; short phones get a slightly smaller one. */
#oneBtn{position:fixed; z-index:46; width:46px; height:46px; padding:0; border:0; border-radius:50%; display:grid; place-content:center; justify-items:center; line-height:1; cursor:pointer;
  background:url(../art/ui/glass/btn-round.webp) center/100% 100% no-repeat; color:#fff4dc; box-shadow:none; filter:drop-shadow(0 3px 5px rgba(0,0,0,.55));
  font:800 21px/1 var(--f-display,inherit); text-shadow:0 1px 2px rgba(0,0,0,.75)}
#oneBtn[hidden]{display:none}
#oneBtn small{font:800 8px/1 inherit; letter-spacing:.12em; text-transform:uppercase; margin-top:1px; color:#ffd77a}
@media (max-height:400px){ #oneBtn{width:42px; height:42px; font-size:19px} #oneBtn small{font-size:7px} }
/* (9 Nov 2026, user) collecting a task's rewards */
#rwShow{position:fixed; inset:0; z-index:9700; display:grid; place-items:center; overflow:hidden; background:rgba(4,8,10,.88); cursor:pointer; animation:rwIn .25s ease-out both}
#rwShow.out{animation:rwOut .25s ease-in both}
.rwrays{position:absolute; left:50%; top:50%; translate:-50% -50%; width:min(165vh,680px); height:min(165vh,680px); opacity:.8; animation:rwSpin 14s linear infinite}
.rwrow{position:relative; display:flex; align-items:flex-end; gap:clamp(20px,7vw,64px)}
.rwitem{display:grid; justify-items:center; gap:1px; animation:rwPop .5s cubic-bezier(.2,1.35,.4,1) both; animation-delay:calc(var(--i) * .26s + .06s)}
.rwitem img{width:min(32vh,150px); height:min(32vh,150px); object-fit:contain}
.rwitem b{font-family:var(--f-display); font-weight:400; font-size:clamp(24px,8.5vh,38px); line-height:1.1; color:#ffe7a8; text-shadow:0 2px 0 #2e1c0e, 0 3px 8px rgba(0,0,0,.8)}
.rwitem small{font-size:13px; font-weight:800; letter-spacing:.06em; color:#f3ead6; text-shadow:0 1px 3px #000}
@keyframes rwIn{from{opacity:0}} @keyframes rwOut{to{opacity:0}}
@keyframes rwSpin{to{rotate:360deg}}
@keyframes rwPop{from{opacity:0; transform:translateY(16px) scale(.55)}}
@media (prefers-reduced-motion:reduce){ .rwrays,.rwitem{animation:none} }

/* Step 2 (14 Nov 2026): dragging a card from the pile or stock into the hand */
.pile.lifting .card:last-of-type{opacity:.4}
/* (16 Nov 2026, user) no orange outline round the hand while a card from the pile or stock is dragged to it */
.pdghost{border-radius:6px}
/* (14 Nov 2026, Step 11) Fishathi slams: the big hand picture in the game is one sprite sheet; the Store / Collection preview is the same sheet looping */
.smash-cartoon{aspect-ratio:auto}
.ivslam{background-repeat:no-repeat; filter:drop-shadow(0 10px 16px rgba(0,0,0,.5)); max-width:100%}

/* (15 Nov 2026, Step 15) animated emojis + the loadout of 8 */
.emo-a{filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))}
.emotray .erow div{grid-template-columns:repeat(4,1fr)}
.emotray .emute button[data-edit]{flex-basis:100%}
.loadstrip{display:grid; gap:6px; margin-bottom:12px}
.loadstrip b{font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}
.loadstrip div{display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:6px}
.loadstrip .slot{aspect-ratio:1; display:grid; place-items:center; padding:4px; border-radius:12px; background:rgba(0,0,0,.28); border:1.5px dashed var(--line); font-size:30px; min-width:0}
.loadstrip .slot.on{border-style:solid; border-color:var(--saffron,#e8a93b); background:rgba(232,169,59,.12)}
.loadstrip .slot .emo-i{width:100%; height:100%}
.emogrid .emo .emo-i{width:44px; height:44px}
.emogrid .emo.eq{border-color:var(--saffron,#e8a93b)}
.ivemo .emo-i{width:min(220px,40vh); height:min(220px,40vh)}
@media (max-width:520px){ .loadstrip div{gap:4px} .loadstrip .slot{border-radius:9px; padding:2px} }
.emotray .emute button{flex-basis:100%; white-space:normal}
.loadstrip .slot{aspect-ratio:auto; height:clamp(38px,11vh,62px)}
.loadstrip .slot .emo-i{width:auto; height:100%; max-width:100%}
.loadstrip{margin-bottom:8px}
@media (max-height:460px){ .emogrid .emo .emo-i{width:36px; height:36px} .emogrid{grid-template-columns:repeat(auto-fill,minmax(60px,1fr)); gap:6px} }
.loadstrip .slot{overflow:hidden; padding:2px}
.loadstrip .slot .emo-i{width:clamp(28px,8.5vh,52px); height:clamp(28px,8.5vh,52px); max-width:100%}
.loadstrip .slot{display:flex; justify-content:center; align-items:center}
/* (Step 17) the character picker for the profile picture: 24 round portraits in a scrolling grid */
.chgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(76px,1fr)); gap:10px; align-content:start; padding:4px 8px 8px 4px}
.chpick{padding:3px; border-radius:50%; border:2px solid transparent; background:rgba(0,0,0,.25); aspect-ratio:1; display:block}
.chpick img{display:block; width:100%; height:100%; border-radius:50%; object-fit:cover}
.chpick:active{transform:scale(.94)}
@media (max-height:430px){ .chgrid{grid-template-columns:repeat(auto-fill,minmax(64px,1fr)); gap:8px} }

/* (17 Nov 2026, user: in Report > More details the keyboard was behind the window and nothing could be typed) Thaas's own keyboard was at layer 60,
   under the report / block window (9000). It now sits above every window, and while it is open the window leaves room for it. */
html body .chatkeys{z-index:9600}
html body.chatkeys .modbox{padding-bottom:calc(var(--kbH,0px) + 8px); align-items:flex-start; overflow:auto}
html body.chatkeys .modbox .panel{max-height:calc(100% - 4px); overflow:auto}
html body.chatkeys .modbox .panel .note{display:none}
