/* =====================================================================
   Maldivian lacquerwork (liyelaa jehun) look (20 Oct 2026, the user's frames: "make the game UI more Maldivian, I
   don't like the golden style, use this cushion colour"). art/make_lacquer.py cut the frames out:
   lq-frame   = rounded red lacquer frame with lotus top and bottom  -> every menu and pop-up (same size everywhere)
   lq-cushion = scalloped frame                                        -> the game tiles on home
   lq-bars    = two carved bars with scroll ends                       -> the wide feature tiles on home
   velvet     = the black velvet from inside the cushion frame         -> the inside of every frame
   Buttons are red lacquer pills, second buttons black lacquer with a red edge. Loaded last.
   ===================================================================== */
:root{ --lq-red:#b07a48; --lq-ver:#d39a5e; --lq-deep:#5e3a20; --lq-ink:#120c0a; --lq-cream:#fbe6d4;
  --lq-velvet:url(../art/ui/cloth-green.webp) center/cover; --lq-card:linear-gradient(180deg,rgba(44,30,25,.92),rgba(18,12,10,.95)) }

/* ---- the standard frame ---- */
html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{
  border:34px solid transparent !important; border-image:url(../art/ui/lq-frame.webp) 120 175 / 34px 50px / 0 stretch !important;
  background:linear-gradient(rgba(10,6,5,.25),rgba(10,6,5,.35)), url(../art/ui/cloth-green.webp) center/cover padding-box !important;
  box-shadow:inset 0 0 40px rgba(0,0,0,.7), 0 18px 46px rgba(0,0,0,.65) !important; padding:6px 64px 6px 14px !important; border-radius:22px !important}
@media (max-height:430px){
  html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{border-width:26px !important; border-image-width:26px 40px !important; padding:4px 58px 4px 10px !important} }
@media (max-height:370px){
  html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{border-width:22px !important; border-image-width:22px 34px !important; padding:2px 54px 2px 8px !important} }
.gov{background:linear-gradient(rgba(8,5,4,.55),rgba(8,5,4,.7)), url(../art/ui/bg-loading-lq-warm.webp) center/cover no-repeat !important}

/* ---- titles: vermilion lettering, no wooden plaque ---- */
html body .gpanel>h2,html body .gpanel .qinfo h2,html body .placepanel .phead h2{border-image:none !important; background:none !important; box-shadow:none !important;
  padding:0 0 2px !important; color:#eab47a !important; -webkit-text-fill-color:#eab47a; text-shadow:0 2px 0 #2e1c0e, 0 3px 8px rgba(0,0,0,.8) !important;
  font-size:26px !important; letter-spacing:.5px}
html body .gpanel>h2::before,html body .gpanel>h2::after{content:none !important}
@media (max-height:430px){ html body .gpanel>h2{font-size:22px !important} }

/* ---- buttons ---- */
html body :is(.ov,.modbox,.hubov) :is(.gbtn:not(.alt):not(.buy),.btn:not(.alt):not(.ghost),#saveProfile,#quickStart,.chrow .btn,.hbtn.main,.hstore):not(.xback){
  border-image:none !important; filter:none !important; border:1.5px solid #2a1a0e !important; border-radius:999px !important; color:#fff3e8 !important;
  background:linear-gradient(180deg,#dcaa72 0%,#b8834e 45%,#7a4f2c 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,235,205,.55), inset 0 -2px 0 rgba(50,30,12,.45), 0 0 0 2px rgba(18,10,8,.85), 0 4px 10px rgba(0,0,0,.5) !important;
  text-shadow:0 1px 1px rgba(50,30,12,.6)}
html body :is(.ov,.modbox,.hubov) :is(.gbtn.alt,.btn.alt,.hbtn:not(.main),.ghost,.hlink,.hubnav button):not(.xback){
  border-image:none !important; filter:none !important; border:1.5px solid var(--lq-red) !important; border-radius:999px !important; color:var(--lq-cream) !important;
  background:linear-gradient(180deg,#2a1d18,#120c0a) !important; box-shadow:inset 0 1px 0 rgba(245,215,170,.12), 0 3px 8px rgba(0,0,0,.5) !important}
html body #homeOv .hbtn{border-radius:18px !important}
html body #homeOv .hbtn.main b,html body #homeOv .hbtn.main small{color:#fff3e8 !important}
html body #homeOv .hbtn:not(.main) small{color:#ecd3b4 !important}
html body .hubnav button{border-radius:14px !important}
/* the round close button: black lacquer with a red ring */
html body button.xback.xback.xback,html body .ivbox>.ivcard .ivx{background:radial-gradient(circle at 35% 30%,#3a2620,#0e0807) !important; border:2.5px solid var(--lq-red) !important; color:#f0c08a !important}

/* ---- surfaces inside frames: lacquer-black cards with a thin red edge ---- */
html body .gpanel :is(.mrow,.pcard,.arow,.chrow,.codebox,.qseat,.opt),html body .gpanel .flist>*,html body #setOv :is(.tog,.rng),html body :is(.sgrid,.shopgrid)>*{
  background:var(--lq-card) !important; border:1.5px solid rgba(176,122,72,.45) !important}
html body .gpanel :is(.arow.got,.chrow.ready,.opt.on),html body .sgrid>.on{border-color:var(--lq-ver) !important}
html body .gpanel h3{color:#dca36a !important}
html body .gpanel .ctabs{background:rgba(10,6,5,.6) !important; border:1px solid rgba(176,122,72,.4) !important; border-image:none !important}
html body .gpanel .ctabs button.on{background:linear-gradient(180deg,#dcaa72,#a8743f) !important; color:#fff3e8 !important}
html body .gpanel .wallet span,html body .hstore{background:linear-gradient(180deg,#2a1d18,#0e0a09) !important; border-color:var(--lq-red) !important}
html body .gpanel input,html body .gpanel select{background:#0e0a09 !important; border:1.5px solid rgba(176,122,72,.5) !important; color:var(--lq-cream) !important}
html body .gpanel{color:#f6e6da}

/* the gold medallion icons take a warm lacquer tone instead of gold */
.mico,.ficon,.chico img,.hstore .hsi,#profOv .mrow .ico img{filter:hue-rotate(-28deg) saturate(1.35) brightness(.95) drop-shadow(0 2px 3px rgba(0,0,0,.5)) !important}
.chico{background:radial-gradient(circle at 35% 30%,#3a2620,#0e0807) !important; border-color:var(--lq-red) !important}
html body .hstore .hsi{background:url(../art/ui/menu-store.webp) center/82% no-repeat, linear-gradient(180deg,#dcaa72,#7a4f2c) !important}

/* ---- home ---- */
html body .hubx .gtile{border:22px solid transparent !important; border-image:url(../art/ui/lq-cushion.webp) 125 120 / 22px 22px / 0 stretch !important;
  background:url(../art/ui/cloth-green.webp) center/cover padding-box !important; box-shadow:0 10px 20px rgba(0,0,0,.5) !important; border-radius:18px !important; padding:4px 4px 6px !important}
html body .hubx .gtile b{color:#f0c08a !important; text-shadow:0 2px 0 #2e1c0e, 0 3px 6px rgba(0,0,0,.8)}
html body .ftile{border:19px solid transparent !important; border-image:url(../art/ui/lq-bars2-warm.webp) 136 100 136 100 / 19px 14px / 0 stretch !important;   /* (27 Oct) the user's new bars */
  background:linear-gradient(rgba(10,6,5,.2),rgba(10,6,5,.3)), url(../art/ui/cloth-green.webp) center/cover padding-box !important; box-shadow:0 10px 18px rgba(0,0,0,.45) !important}
html body .ftile b{color:#f0c08a}
html body .mechip{border-color:var(--lq-red) !important; background:linear-gradient(180deg,rgba(42,29,24,.92),rgba(14,10,9,.92)) !important}
html body .hubbar .brand b{color:#eab47a !important; -webkit-text-fill-color:#eab47a !important; background:none !important; text-shadow:0 2px 0 #2e1c0e, 0 4px 10px rgba(0,0,0,.8) !important}
.hubbar .brand::after{filter:hue-rotate(-28deg) saturate(1.3) drop-shadow(0 1px 2px rgba(0,0,0,.6)) !important}
@media (max-height:430px){ html body .hubx .gtile{border-width:18px !important; border-image-width:18px !important} html body .ftile{border-width:13px 10px !important; border-image-width:13px 10px !important} }

/* ---- loading screen: the user's green background with red lacquer ornaments; the Thaas name in the middle and a
   lacquer loading bar under it ---- */
html body .boot .bscene{background:url(../art/ui/bg-loading-lq-warm.webp) center/100% 100% no-repeat !important; aspect-ratio:1882 / 836 !important;
  width:max(100vw, calc(100dvh * 1882 / 836)) !important}
.boot .blogo{position:fixed; inset:0; display:grid; place-content:center; justify-items:center; gap:4px; pointer-events:none}
.boot .blogo .bfan{position:relative; width:110px; height:74px; margin-bottom:2px}
.boot .blogo .bfan i{position:absolute; left:50%; bottom:0; width:46px; height:66px; margin-left:-23px; border-radius:6px; transform-origin:50% 100%;
  background:#1a0e0a url(../art/decks/turtle.webp) center/cover; box-shadow:0 0 0 2px #2a1a0e, 0 6px 14px rgba(0,0,0,.6)}
.boot .blogo .bfan i:nth-child(1){transform:rotate(-16deg) translateX(-8px)} .boot .blogo .bfan i:nth-child(3){transform:rotate(16deg) translateX(8px)}
.boot .blogo .bfan i:nth-child(2){background:#1a0e0a url(../art/cards/13_1.webp?v=9) center/cover; z-index:1}
.boot .blogo b{font-family:var(--f-display); font-weight:400; font-size:min(92px,20vh); line-height:1; color:#e6ac70;
  background:linear-gradient(180deg,#f6e3c8 0%,#eab47a 38%,#c08850 70%,#8a5a32 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 1px #1c120a) drop-shadow(0 3px 0 #1c120a) drop-shadow(0 0 18px rgba(232,64,30,.45)) drop-shadow(0 6px 12px rgba(0,0,0,.8))}
.boot .blogo small{font-size:12px; font-weight:800; letter-spacing:.32em; text-transform:uppercase; color:#ecd3b4; text-shadow:0 2px 4px rgba(0,0,0,.8); margin-top:2px}
.boot .blogo .lbar{position:relative; width:min(340px,46vw); height:12px; margin-top:16px; border-radius:999px; overflow:hidden;
  background:#0b0605; box-shadow:0 0 0 1.5px var(--lq-red), 0 0 0 3.5px #1c140c, inset 0 2px 4px rgba(0,0,0,.8)}
.boot .blogo .lbar i{position:absolute; left:0; top:0; bottom:0; width:4%; border-radius:999px; transition:width .35s ease-out;
  background:linear-gradient(180deg,#f3c99a 0%,#dca36a 40%,#a8743f 75%,#5e3a20 100%); box-shadow:0 0 10px rgba(211,154,94,.7)}
.boot .blogo em{font-style:normal; font-size:11px; font-weight:800; letter-spacing:.4em; color:#e8d8c4; margin-top:8px}
html body .boot .bfill{display:none !important}
@media (max-height:370px){ .boot .blogo .bfan{transform:scale(.8); margin-bottom:-8px} .boot .blogo .lbar{margin-top:10px} }

/* settings section labels: plain vermilion capitals with a fine red line, no wooden plaque */
html body #setOv #setGame h3{border-image:none !important; background:none !important; box-shadow:none !important; padding:0 !important; color:#dca36a !important; -webkit-text-fill-color:#dca36a}
html body #setOv #setGame h3 svg,html body #setOv #setGame h3 .ti{display:none}
@media (max-height:430px){ html body #setOv #setGame h3{margin:0 0 3px !important; font-size:11px} html body #setOv :is(.tog,.rng){margin-bottom:4px !important} }
html body #setOv #setGame h3{border:0 !important; outline:0 !important}
html body #setOv span.rowico{background:radial-gradient(circle at 35% 30%,#3a2620,#0e0807) !important; border-color:rgba(176,122,72,.6) !important; color:#f0c08a !important}
html body .boot .blogo b{background:none !important; -webkit-text-fill-color:#e6ac70 !important; color:#e6ac70 !important;
  text-shadow:0 2px 0 #5e3a20, 0 4px 0 #24160b, 0 0 22px rgba(220,160,100,.45), 0 8px 16px rgba(0,0,0,.8) !important; filter:none !important}
@media (max-height:370px){
  html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{border-width:18px !important; border-image-width:18px 30px !important}
  html body .gpanel>h2{font-size:20px !important}
  html body #setOv :is(.tog,.rng){margin-bottom:3px !important; padding-top:2px !important; padding-bottom:2px !important}
  html body #setOv .field{margin-bottom:4px !important}
}

/* ---- the user's ORIGINAL cushion frame, used whole (art/ui/lq-cushion-orig-warm.webp = the picture trimmed to the frame's
   edges, nothing cut out): the carved red lacquer and its own black velvet stretch together, so the velvet always
   reaches the frame. Every menu, pop-up and home tile. ---- */
html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{
  border:38px solid transparent !important; border-image:url(../art/ui/lq-cushion-orig-warm.webp) 190 180 / 38px 36px / 0 round !important;
  background:none !important; border-radius:0 !important; box-shadow:none !important; filter:drop-shadow(0 16px 30px rgba(0,0,0,.6)); padding:2px 58px 2px 8px !important}
@media (max-height:430px){
  html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{border-width:30px 28px !important; border-image-width:30px 28px !important} }
@media (max-height:370px){
  html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{border-width:24px 22px !important; border-image-width:24px 22px !important} }
html body .hubx .gtile{border:20px solid transparent !important; border-image:url(../art/ui/lq-cushion-orig-warm.webp) 190 180 / 20px 19px / 0 round !important;
  background:none !important; border-radius:0 !important; box-shadow:none !important; filter:drop-shadow(0 8px 14px rgba(0,0,0,.5))}
html body .ftile{border:13px solid transparent !important; border-image:url(../art/ui/lq-cushion-orig-warm.webp) 190 180 / 13px 12px / 0 round !important;
  background:none !important; border-radius:0 !important; box-shadow:none !important; filter:drop-shadow(0 8px 14px rgba(0,0,0,.5))}
@media (max-height:430px){ html body .hubx .gtile{border-width:17px 16px !important; border-image-width:17px 16px !important} html body .ftile{border-width:11px 10px !important; border-image-width:11px 10px !important} }

/* loading screen: a fan of five cards opens above the Thaas name while the game loads (the deck back of the island
   turtles, the King of hearts in the middle); it opens once, then the cards breathe gently until the game is ready */
.boot .blogo .lfan{position:relative; width:200px; height:100px; margin-bottom:6px}
.boot .blogo .lfan i{position:absolute; left:50%; bottom:0; width:50px; height:72px; margin-left:-25px; border-radius:6px; transform-origin:50% 92%;
  background:#1a0e0a url(../art/decks/turtle.webp) center/cover; box-shadow:0 0 0 1.5px #2a1a0e, 0 6px 14px rgba(0,0,0,.6);
  transform:rotate(0deg); animation:lfanOpen .9s cubic-bezier(.2,.8,.25,1.1) forwards, lfanBreathe 2.4s ease-in-out 1s infinite}
.boot .blogo .lfan i:nth-child(1){--r:-36deg; animation-delay:.05s,1s}
.boot .blogo .lfan i:nth-child(2){--r:-18deg; animation-delay:.12s,1s}
.boot .blogo .lfan i:nth-child(3){--r:0deg; z-index:2; background:#fff url(../art/cards/13_1.webp?v=9) center/cover; animation-delay:.19s,1s}
.boot .blogo .lfan i:nth-child(4){--r:18deg; z-index:3; animation-delay:.26s,1s}
.boot .blogo .lfan i:nth-child(5){--r:36deg; z-index:4; animation-delay:.33s,1s}
@keyframes lfanOpen{from{transform:rotate(0deg) translateY(10px)} to{transform:rotate(var(--r)) translateY(0)}}
@keyframes lfanBreathe{0%,100%{transform:rotate(var(--r)) translateY(0)} 50%{transform:rotate(calc(var(--r) * 1.08)) translateY(-3px)}}
@media (prefers-reduced-motion:reduce){ .boot .blogo .lfan i{animation:none; transform:rotate(var(--r))} }
@media (max-height:370px){ .boot .blogo .lfan{transform:scale(.8); margin-bottom:-10px} }
html body .rulesov .gov>.gpanel,html body .rulesov.gov>.gpanel{padding-right:76px !important}
html body .rulesov .xback{top:42px !important; right:44px !important}
@media (max-height:430px){ html body .rulesov .xback{top:34px !important; right:36px !important}
  html body #setOv .gpanel>h2{margin-bottom:2px !important} html body #setOv #setSignIn{margin-top:0 !important; min-height:32px !important; padding-top:5px !important; padding-bottom:5px !important} }
.boot .blogo .lfan{width:230px; height:116px} .boot .blogo .lfan i{width:58px; height:84px; margin-left:-29px}

/* ---- big frames (every menu and pop-up): the user's frame 2 — only the carved top and bottom bars with scroll ends,
   no sides. The bars sit above and below the black velvet; their scroll ends reach a little past its sides. ---- */
html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{
  width:calc(var(--fr-w) - 40px) !important;
  border-style:solid !important; border-color:transparent !important; border-width:38px 0 !important;
  border-image:url(../art/ui/lq-bars2-warm.webp) 136 100 / 38px 28px / 0 28px stretch !important;   /* (27 Oct) the user's new bars: carving in the middle, plain wood to the scroll ends */
  background:linear-gradient(rgba(8,5,4,.15),rgba(8,5,4,.25)), url(../art/ui/cloth-green.webp) center/cover padding-box !important;
  box-shadow:inset 0 10px 18px -8px rgba(0,0,0,.9), inset 0 -10px 18px -8px rgba(0,0,0,.9), 0 0 0 1px rgba(176,122,72,.25) !important;
  filter:drop-shadow(0 14px 26px rgba(0,0,0,.65)); padding:6px 58px 6px 14px !important}
@media (max-height:430px){
  html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{border-width:27px 0 !important; border-image-width:27px 16px !important; border-image-outset:0 16px !important; width:calc(var(--fr-w) - 32px) !important} }
@media (max-height:370px){
  html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{border-width:22px 0 !important; border-image-width:22px 13px !important; border-image-outset:0 13px !important; width:calc(var(--fr-w) - 26px) !important} }
html body .rulesov .xback{top:40px !important; right:30px !important}
@media (max-height:430px){ html body .rulesov .xback{top:33px !important; right:26px !important} }
/* loading fan: the fronts of the cards (Jack, Queen, King of hearts, Queen, Jack) */
.boot .blogo .lfan i:nth-child(1){background:#fff url(../art/cards/11_0.webp?v=9) center/cover !important}
.boot .blogo .lfan i:nth-child(2){background:#fff url(../art/cards/12_2.webp?v=9) center/cover !important}
.boot .blogo .lfan i:nth-child(3){background:#fff url(../art/cards/13_1.webp?v=9) center/cover !important}
.boot .blogo .lfan i:nth-child(4){background:#fff url(../art/cards/12_3.webp?v=9) center/cover !important}
.boot .blogo .lfan i:nth-child(5){background:#fff url(../art/cards/11_1.webp?v=9) center/cover !important}

/* warm caramel theme (20 Oct 2026): main buttons are light caramel with dark brown text, easy to read; icons a soft amber */
html body :is(.ov,.modbox,.hubov) :is(.gbtn:not(.alt):not(.buy),.btn:not(.alt):not(.ghost),#saveProfile,#quickStart,.chrow .btn,.hbtn.main,.hstore):not(.xback){
  color:#2a180a !important; text-shadow:0 1px 0 rgba(255,235,205,.45) !important; background:linear-gradient(180deg,#ecc48f 0%,#d39a5e 50%,#a8743f 100%) !important}
html body #homeOv .hbtn.main b,html body #homeOv .hbtn.main small{color:#2a180a !important}
html body .gpanel .ctabs button.on{color:#2a180a !important; background:linear-gradient(180deg,#ecc48f,#c08850) !important}
.mico,.ficon,.chico img,.hstore .hsi,#profOv .mrow .ico img{filter:hue-rotate(-8deg) saturate(.8) brightness(.97) drop-shadow(0 2px 3px rgba(0,0,0,.5)) !important}
.hubbar .brand::after{filter:saturate(.8) drop-shadow(0 1px 2px rgba(0,0,0,.6)) !important}

/* friends: the invite box always holds its code and the Share button (code on the left, button below it when tight) */
html body #friendsOv .codebox{display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:6px !important; padding:10px 12px !important; overflow:hidden}
html body #friendsOv .codebox>*{grid-column:1 !important; grid-row:auto !important; min-width:0}
html body #friendsOv .codebox b{font-size:26px !important; letter-spacing:.18em !important; padding:2px 12px !important; justify-self:start; max-width:100%;
  border-image:none !important; background:#120c08 !important; border:1.5px solid rgba(176,122,72,.6) !important; border-radius:10px !important; color:#f0c08a !important; -webkit-text-fill-color:#f0c08a}
html body #friendsOv .codebox .btn{justify-self:stretch !important; width:100% !important; margin:0 !important; min-height:34px}
@media (max-height:430px){ html body #friendsOv .codebox b{font-size:22px !important} }

/* game menu "How to play": a plain dark pill with a thin caramel edge, no carved plaque */
html body #homeOv .hlink{border-image:none !important; filter:none !important; background:rgba(18,12,8,.82) !important; border:1.5px solid #b07a48 !important;
  border-radius:999px !important; padding:6px 18px !important; color:#f0c08a !important; font-family:inherit !important; font-size:14px !important; font-weight:800 !important;
  box-shadow:0 3px 8px rgba(0,0,0,.45) !important; text-shadow:none !important}
html body #homeOv .hlink::before,html body #homeOv .hlink::after{content:none !important}
html body #homeOv .hlink i{color:#f0c08a !important}

/* opening the app: no sideways shake. The loading picture was sized from the screen height (dvh), which changes for a
   moment while Android shows/hides its bars, so the picture jumped left and right. Now it simply covers the screen,
   and nothing on the page may be wider than the screen. */
html,body{overflow-x:hidden; max-width:100%}
html body .boot{background:#0a1a16 url(../art/ui/bg-loading-lq-warm.webp) center/cover no-repeat !important; position:fixed !important; inset:0 !important; overflow:hidden !important}
html body .boot .bscene{display:none !important}
.boot .blogo{contain:layout}

/* iPhone Safari: the one-time "Add to Home Screen" hint (bottom centre, above everything) */
.a2hs{position:fixed; left:50%; bottom:calc(10px + var(--safeB)); transform:translateX(-50%); z-index:9800; width:min(520px,calc(100vw - 24px));
  display:grid; grid-template-columns:1fr auto; gap:2px 12px; align-items:center; padding:10px 12px 10px 16px; border-radius:16px;
  background:linear-gradient(180deg,#2a1d14,#120c08); border:1.5px solid #b07a48; box-shadow:0 10px 26px rgba(0,0,0,.6); color:#f6e3c8; font-size:13px}
.a2hs b{grid-column:1; color:#f0c08a; font-size:14px}
.a2hs span{grid-column:1; line-height:1.35}
.a2hs em{font-style:normal; font-weight:800; color:#f0c08a}
.a2hs .shr{display:inline-block; width:14px; height:16px; vertical-align:-3px; border:1.6px solid #f0c08a; border-top:0; border-radius:0 0 3px 3px; position:relative; margin:0 2px}
.a2hs .shr::before{content:"↑"; position:absolute; left:50%; top:-9px; transform:translateX(-50%); font-size:12px; font-weight:900; color:#f0c08a}
.a2hs button{grid-column:2; grid-row:1 / span 2; padding:8px 14px; border-radius:999px; border:1.5px solid #2a1a0e; font-weight:800; color:#2a180a;
  background:linear-gradient(180deg,#ecc48f,#d39a5e 50%,#a8743f)}

/* very short screens (a phone browser with its address bar showing, about 300-335px tall): everything a size smaller */
@media (max-height:335px){
  html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{border-width:16px 0 !important; border-image-width:16px 10px !important; border-image-outset:0 10px !important; padding:2px 50px 2px 8px !important}
  html body .gpanel>h2{font-size:17px !important; margin:0 0 2px !important}
  html body .gpanel h3{font-size:10px !important; margin:3px 0 2px !important}
  html body button.xback.xback.xback{width:32px !important; height:32px !important; top:4px !important; right:6px !important}
  html body .gpanel .wallet{margin:0 0 2px !important} html body .gpanel .wallet span{padding:2px 9px 2px 6px !important; font-size:11px !important}
  html body .gpanel :is(.mrow,.arow,.chrow,.qseat,.opt),html body #setOv :is(.tog,.rng){padding-top:3px !important; padding-bottom:3px !important; margin-bottom:3px !important}
  html body .gpanel .mrow .ico,html body #profOv .mrow .ico{width:30px !important; height:30px !important}
  html body .gpanel .mrow b{font-size:14px !important} html body .gpanel small{font-size:10.5px !important}
  html body #profOv .pcard{padding:6px 10px !important} html body #profOv .bigav{width:48px !important; height:48px !important} html body #profOv .pname{font-size:17px !important}
  html body #profOv .stats b{font-size:16px !important} html body #profOv .stats>div{padding:3px 8px !important}
  html body #chOv .chrow{min-height:0 !important; row-gap:3px !important} html body .chico{width:34px !important; height:34px !important} html body .chico img{width:26px !important; height:26px !important}
  html body #chOv .gpanel{grid-template-rows:auto auto 1fr auto !important}
  html body #chOv .gpanel>h2,html body #chOv .gpanel>.wallet{align-self:center}
  html body #friendsOv .codebox{padding:5px 8px !important; gap:4px !important} html body #friendsOv .codebox b{font-size:18px !important}
  html body #friendsOv .codebox .btn{min-height:28px !important; padding-top:3px !important; padding-bottom:3px !important}
  html body :is(.ov,.modbox) :is(.gbtn,.btn):not(.xback){min-height:28px !important; padding-top:4px !important; padding-bottom:4px !important; font-size:13px !important}
  html body .gpanel input,html body .gpanel select{padding-top:5px !important; padding-bottom:5px !important; font-size:14px !important}
  html body .sgrid>*,html body .shopgrid>*{padding-top:3px !important; padding-bottom:3px !important}
  html body .gpanel .ctabs{margin:2px 0 !important} html body .gpanel .ctabs button{padding-top:3px !important; padding-bottom:3px !important}
  /* card table */
  .bmid .msg,.center .msg{font-size:11px !important; line-height:1.25 !important; max-width:26ch !important}
  .bmid{gap:8px !important}
}

/* a muted player: the 🔇 sits right after their name (it used to sit in the corner of the whole seat, far from the name) */
html body .seat.muted::before,html body .bseat.muted::before{content:none !important}
.seat.muted .nm::after,.bseat.muted .nm::after{content:"🔇"; display:inline-block; margin-left:4px; font-size:.85em; line-height:1; vertical-align:.05em; filter:saturate(.7)}

/* the results window after Digu: the same carved frame and velvet as every menu, on a solid dark background (it used to
   be a see-through teal box over the table). Title on the left, the score table and buttons laid out cleanly. */
html body #roundOv{background:radial-gradient(ellipse at 50% 30%,rgba(60,40,24,.55),rgba(0,0,0,0) 70%), rgba(8,6,4,.94) !important; backdrop-filter:blur(3px)}
html body #roundPanel{display:block !important; text-align:left}
html body #roundPanel>h2{font-size:26px !important; margin:0 0 4px !important; text-align:left}
html body #roundPanel>p{margin:0 0 6px; color:#e8d8c4}
html body #roundPanel .htabs{display:flex; gap:6px; flex-wrap:wrap; margin:4px 0 6px}
html body #roundPanel .htab{border-radius:999px !important; border:1.5px solid rgba(176,122,72,.6) !important; background:#120c08 !important; color:#f6e3c8 !important; padding:4px 12px !important; font-weight:800}
html body #roundPanel .htab.on,html body #roundPanel .htab[aria-pressed="true"]{background:linear-gradient(180deg,#ecc48f,#c08850) !important; color:#2a180a !important}
html body #roundPanel .melds{background:rgba(10,7,5,.55); border:1px solid rgba(176,122,72,.35); border-radius:12px; padding:8px}
html body #roundPanel table.res{width:100%; border-collapse:separate; border-spacing:0; background:rgba(10,7,5,.55); border:1px solid rgba(176,122,72,.35); border-radius:12px; overflow:hidden}
html body #roundPanel table.res th{background:rgba(176,122,72,.18); color:#f0c08a !important}
html body #roundPanel table.res td{border-top:1px solid rgba(176,122,72,.18); color:#f6e3c8}
html body #roundPanel .badge{background:linear-gradient(180deg,#ecc48f,#c08850) !important; color:#2a180a !important; border:0 !important}
html body #roundPanel .rbtns{position:sticky; bottom:0 !important; margin:10px 0 0 !important; padding:8px 0 2px !important; background:linear-gradient(rgba(14,10,8,0),rgba(14,10,8,.95) 40%) !important}
html body #roundPanel.teamwin{box-shadow:none !important}
html body #roundPanel .winribbon{background:linear-gradient(180deg,#ecc48f,#c08850) !important; color:#2a180a !important}
html body #roundPanel:has(>.rcol){display:grid !important; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); column-gap:20px; align-items:start}
html body #roundPanel .rcol{min-width:0}
html body #roundPanel .rright h3:first-child{margin-top:4px !important}
html body #roundPanel .rright .rbtns{position:static !important; background:none !important; margin-top:10px !important}
html body #roundPanel .melds .card{--w:30px}
@media (max-height:430px){ html body #roundPanel>.rcol h2{font-size:22px !important} html body #roundPanel table.res td,html body #roundPanel table.res th{padding:3px 6px !important; font-size:12px} }

/* "you made no groups": a solid dark lacquer plate with a caramel edge, the Dhivehi word in warm terracotta */
html body .fule{background:radial-gradient(ellipse at 50% 0%,rgba(211,154,94,.2),rgba(0,0,0,0) 70%), linear-gradient(180deg,#22170f,#0d0906) !important;
  border:2px solid #b07a48 !important; box-shadow:0 0 0 5px rgba(10,7,5,.85), 0 0 0 6.5px rgba(176,122,72,.5), 0 24px 60px rgba(0,0,0,.7) !important; padding:14px 34px 16px !important; overflow:visible}
html body .fule b{color:#e07a52 !important; -webkit-text-stroke:3px #1c0c06 !important; text-shadow:0 5px 0 #4a1e0e, 0 14px 26px rgba(0,0,0,.6) !important; display:flex; direction:rtl; gap:0}
html body .fule b em{font-style:normal; display:inline-block}
html body .fule span{background:linear-gradient(180deg,#ecc48f,#c08850) !important; color:#2a180a !important}
.fule .fring{position:absolute; left:50%; top:45%; width:180px; height:180px; border-radius:50%; border:3px solid rgba(224,122,82,.8); transform:translate(-50%,-50%) scale(.3); opacity:0; pointer-events:none}
/* "You hit Digu!": the same solid lacquer plate, no see-through glow */
html body .callout{background:radial-gradient(ellipse at 50% 0%,rgba(211,154,94,.22),rgba(0,0,0,0) 70%), linear-gradient(180deg,#22170f,#0d0906) padding-box, linear-gradient(135deg,#ecc48f,#a8743f 40%,#5e3a20 60%,#d39a5e) border-box !important;
  box-shadow:0 0 0 5px rgba(10,7,5,.85), 0 24px 60px rgba(0,0,0,.75) !important}
html body .callout.bad{background:linear-gradient(180deg,#22170f,#0d0906) padding-box, linear-gradient(135deg,#d39a5e,#7a4f2c 50%,#b07a48) border-box !important}
html body .fule{transform:translate(-50%,-50%)}

/* smoother card dragging: the dragged card follows the finger with transform (no transition), lifted a little, and the
   other cards make room quickly; the drop target glows clearly */
.hand .card.dragging{transition:none !important; will-change:transform; transform-origin:50% 60% !important; box-shadow:0 0 0 2px #d39a5e, 0 18px 28px rgba(0,0,0,.55) !important; scale:1.06}
/* (21 Oct, item 15) cards glide with a soft spring (a tiny overshoot, then they settle) instead of sliding at one speed */
.hand .card:not(.dragging){transition:left .34s cubic-bezier(.2,1.18,.36,1), top .3s cubic-bezier(.25,1.3,.4,1), rotate .34s cubic-bezier(.2,1.1,.4,1), translate .22s ease-out, scale .22s cubic-bezier(.2,1.4,.4,1), box-shadow .2s ease !important}
#pile.drop,#bTrick.drop{box-shadow:0 0 0 3px #ecc48f, 0 0 22px rgba(211,154,94,.7) !important; border-radius:10px}

/* (21 Oct, item 1) no see-through windows: every full window has a solid dark colour under its pictures, so nothing
   behind it (the last window, the table cloth) can show while a picture is still loading; the results window is solid
   and sits just under the other windows (the game menu and settings open on top of it, never under it) */
html body .gov,html body .hubov{background-color:#120c08 !important}
html body .gov>.gpanel,html body .ivbox>.ivcard{background-color:#1a110c !important}
html body #roundOv{background:radial-gradient(ellipse at 50% 30%,rgba(60,40,24,.55),rgba(0,0,0,0) 70%), #0b0806 !important; backdrop-filter:none !important; z-index:39 !important}

/* (21 Oct, item 11) "X hit Digu!" in the lacquer look (replaces the neon red/gold card): a dark lacquer plate between
   carved caramel bars, warm caramel lettering with a light sweep, soft caramel rays behind. Never red. */
html body .callout.dcall{all:unset; position:fixed; inset:0; z-index:60; pointer-events:none; display:grid; place-items:center;
  background:radial-gradient(ellipse 80% 85% at 50% 50%,rgba(8,5,3,.9),rgba(8,5,3,.55) 85%) !important; box-shadow:none !important; border:0 !important; padding:0 !important; overflow:hidden}
.dcall .crays{position:absolute; left:50%; top:50%; width:150vmax; height:150vmax; border-radius:50%; transform:translate(-50%,-50%);
  background:repeating-conic-gradient(rgba(236,196,143,.22) 0 5deg, rgba(236,196,143,0) 5deg 15deg);
  -webkit-mask:radial-gradient(circle,#000 0,rgba(0,0,0,.6) 18%,transparent 42%); mask:radial-gradient(circle,#000 0,rgba(0,0,0,.6) 22%,transparent 48%)}
.dcall.other .crays{opacity:.45}
/* (10 Nov 2026, user) no frame behind the Digu word: the word, the name above and the bonus below sit straight on the dimmed table */
.dcall .cplate{position:relative; display:grid; justify-items:center; gap:4px; text-align:center; min-width:min(82vw,400px); padding:0}
.dcall .cwho,.dcall small{text-shadow:0 2px 6px rgba(0,0,0,.9)}
.dcall .cwho{font-style:normal; font-family:var(--f-body); font-weight:800; font-size:14px; letter-spacing:.14em; text-transform:uppercase; color:#e9d3b2}
.dcall .cword{font-family:var(--f-display); font-weight:400; font-size:clamp(50px,10vw,78px); line-height:1; padding:0 .1em;
  color:#fbe3bb; -webkit-text-fill-color:#fbe3bb; background:none; -webkit-text-stroke:0; filter:none;
  text-shadow:0 1px 0 #fff6e6, 0 -1px 0 #8a5a30, 0 3px 0 #6b4220, 0 5px 0 #3a220f, 0 0 22px rgba(236,196,143,.45), 0 12px 18px rgba(0,0,0,.65)}
.dcall.other .cword{color:#ecd3ac; -webkit-text-fill-color:#ecd3ac; text-shadow:0 -1px 0 #8a5a30, 0 3px 0 #5a3820, 0 5px 0 #2e1a0b, 0 12px 18px rgba(0,0,0,.65)}
.dcall .cchips{display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:4px}
.dcall .cchips span{font-weight:800; font-size:14px; padding:4px 14px; border-radius:999px; color:#2a180a; background:linear-gradient(180deg,#ecc48f,#c08850); box-shadow:0 2px 0 #5e3a20}
.dcall .cchips .cfish{color:#f3dfc0; background:linear-gradient(180deg,#4a2e18,#2a190c); border:1.5px solid #b07a48; box-shadow:none}
.dcall small{font-size:12.5px; color:rgba(243,223,192,.8)}
@media (max-height:430px){ .dcall .cword{font-size:52px} }

/* (21 Oct, item 9) Digu results: "Next round" and "Leave table" are pinned to the bottom of the window, side by side,
   so they can always be reached without scrolling (the table and tally scroll behind them if they don't fit) */
html body #roundPanel .rright .rbtns{position:sticky !important; bottom:-6px !important; z-index:3; display:grid !important; grid-template-columns:1fr 1fr; gap:8px;
  margin:8px 0 0 !important; padding:16px 0 6px !important; background:linear-gradient(rgba(20,13,9,0),#140d09 34%) !important}
html body #roundPanel .rright .rbtns>*{margin:0 !important; min-height:40px}

/* (21 Oct, items 5-7) frames and Fishathi pictures never cover names. A frame picture is --fs times wider than the
   photo (up to 3.2x for the sun), so in the profile and the collection the framed photo is shrunk until the whole frame
   fits the space kept for it; the Fishathi hand is fitted inside its box (its size limit was ignored by the grid). */
html body #styleFrames .fthumb{width:72px !important; height:72px !important; overflow:visible}
html body #styleFrames .fthumb .av{width:46px !important; height:46px !important; scale:min(1, calc(1.55 / var(--fs,1)))}
html body .slthumb{display:block !important}
html body .slthumb img{display:block; width:100%; height:100%; max-width:none; max-height:none; object-fit:contain}

/* (21 Oct, item 17) 3D opening: seven court cards fly in from every side and from deep in the screen, tumbling in 3D,
   and lock together into the fan of the Thaas logo; a light glints across them, a soft shadow settles under the fan,
   then "Thaas" rises into place. Transforms and opacity only (cheap on phones), plays once, nothing loops. */
.boot .blogo .lfan.l3d{perspective:900px; transform-style:preserve-3d}
.boot .blogo .lfan.l3d::after{content:""; position:absolute; left:50%; bottom:-10px; width:220px; height:26px; margin-left:-110px; border-radius:50%;
  background:radial-gradient(ellipse,rgba(0,0,0,.55),rgba(0,0,0,0) 70%); transform:scale(.2); opacity:0; animation:l3dShadow .7s .75s ease-out forwards}
.boot .blogo .lfan.l3d i{opacity:0; transform-origin:50% 92%; backface-visibility:hidden; will-change:transform,opacity; overflow:hidden;
  box-shadow:0 10px 18px rgba(0,0,0,.5), 0 0 0 1px rgba(60,35,15,.35);
  animation:l3dIn 1.05s cubic-bezier(.2,.7,.25,1) forwards !important}
.boot .blogo .lfan.l3d i::after{content:""; position:absolute; inset:0; background:linear-gradient(115deg,rgba(255,255,255,0) 38%,rgba(255,244,220,.65) 50%,rgba(255,255,255,0) 62%) 120% 0/260% 100% no-repeat;
  animation:l3dGlint .75s 1.15s ease-in-out forwards}
.boot .blogo .lfan.l3d i:nth-child(1){--r:-42deg; --x0:-62vw; --y0:-42vh; --z0:-420px; --rx0:62deg;  --ry0:-80deg; --rz0:-130deg; animation-delay:.10s !important; background:#fff url(../art/cards/11_0.webp?v=9) center/cover !important; z-index:1}
.boot .blogo .lfan.l3d i:nth-child(2){--r:-28deg; --x0:58vw;  --y0:-48vh; --z0:-300px; --rx0:-44deg; --ry0:72deg;  --rz0:150deg;  animation-delay:.22s !important; background:#fff url(../art/cards/12_2.webp?v=9) center/cover !important; z-index:2}
.boot .blogo .lfan.l3d i:nth-child(3){--r:-14deg; --x0:-58vw; --y0:38vh;  --z0:220px;  --rx0:50deg;  --ry0:64deg;  --rz0:210deg;  animation-delay:.04s !important; background:#fff url(../art/cards/13_0.webp?v=9) center/cover !important; z-index:3}
.boot .blogo .lfan.l3d i:nth-child(4){--r:0deg;   --x0:0vw;   --y0:-72vh; --z0:-620px; --rx0:120deg; --ry0:0deg;   --rz0:30deg;   animation-delay:.30s !important; background:#fff url(../art/cards/13_1.webp?v=9) center/cover !important; z-index:4}
.boot .blogo .lfan.l3d i:nth-child(5){--r:14deg;  --x0:62vw;  --y0:42vh;  --z0:160px;  --rx0:-60deg; --ry0:-62deg; --rz0:-170deg; animation-delay:.16s !important; background:#fff url(../art/cards/13_2.webp?v=9) center/cover !important; z-index:5}
.boot .blogo .lfan.l3d i:nth-child(6){--r:28deg;  --x0:-30vw; --y0:64vh;  --z0:-220px; --rx0:80deg;  --ry0:40deg;  --rz0:95deg;   animation-delay:.26s !important; background:#fff url(../art/cards/12_3.webp?v=9) center/cover !important; z-index:6}
.boot .blogo .lfan.l3d i:nth-child(7){--r:42deg;  --x0:36vw;  --y0:-64vh; --z0:120px;  --rx0:-72deg; --ry0:-50deg; --rz0:-65deg;  animation-delay:.08s !important; background:#fff url(../art/cards/11_1.webp?v=9) center/cover !important; z-index:7}
@keyframes l3dIn{
  0%{transform:translate3d(var(--x0),var(--y0),var(--z0)) rotateX(var(--rx0)) rotateY(var(--ry0)) rotateZ(var(--rz0)) scale(1.15); opacity:0}
  10%{opacity:1}
  70%{transform:translate3d(0,-12px,70px) rotateX(12deg) rotateY(0deg) rotateZ(calc(var(--r) * .9)) scale(1.07); opacity:1}
  86%{transform:translate3d(0,3px,0) rotateX(-3deg) rotateZ(calc(var(--r) * 1.03)) scale(.99); opacity:1}
  100%{transform:translate3d(0,0,0) rotateZ(var(--r)); opacity:1}}
@keyframes l3dGlint{to{background-position:-30% 0}}
@keyframes l3dShadow{to{transform:none; opacity:1}}
.boot .blogo>b{animation:l3dWord .75s .95s cubic-bezier(.2,.8,.25,1.15) both}
.boot .blogo>small,.boot .blogo>.lbar,.boot .blogo>em{animation:l3dFade .5s 1.3s ease-out both}
@keyframes l3dWord{from{transform:perspective(600px) translateY(22px) rotateX(55deg) scale(.88); opacity:0} to{transform:none; opacity:1}}
@keyframes l3dFade{from{opacity:0; transform:translateY(6px)} to{opacity:1; transform:none}}
@media (prefers-reduced-motion:reduce){ .boot .blogo .lfan.l3d i{animation:none !important; opacity:1; transform:rotate(var(--r))} .boot .blogo>*{animation:none !important} }

/* (21 Oct, item 26) cooler phones: endless effects now move with transform/opacity only (done by the graphics chip,
   no re-drawing of the page), the big menu frames lose their filter shadow (it was re-drawn whenever their content
   scrolled), and every animation stops while the app is in the background (html.bg, set in game.js) */
.gpanel .sitem.prem::after,.gpanel .sopt:has(em)::after{left:-60% !important; animation:gshineT 3.6s ease-in-out infinite !important; will-change:transform}
@keyframes gshineT{0%,55%{transform:translateX(0) rotate(25deg)} 100%{transform:translateX(475%) rotate(25deg)}}
#homeOv .hbtn.main::before{left:-40% !important; animation:brassSheenT 5.5s ease-in-out infinite 1.2s !important; will-change:transform}
@keyframes brassSheenT{0%,72%{transform:translateX(0) skewX(-18deg)} 100%{transform:translateX(533%) skewX(-18deg)}}
html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{filter:none !important}
.pile.can{animation:none !important; position:relative}
.pile.can::after{content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; box-shadow:0 0 0 5px rgba(240,165,58,.55); opacity:0; animation:beckonO 1.6s ease-in-out infinite; will-change:opacity}
@keyframes beckonO{50%{opacity:1}}
html.bg *,html.bg *::before,html.bg *::after{animation-play-state:paused !important}

/* (21 Oct, items 18-19) friends: "in a match" dot, the quiet "!" for match requests (never a pop-up during a match),
   the small requests list it opens, and the little game chooser for Invite / Reserve match */
.dot.busy{background:#e0a24e; box-shadow:0 0 6px rgba(224,162,78,.8)}
#resBang{position:fixed; z-index:70; top:calc(6px + var(--safeT)); left:calc(50% + 150px); width:30px; height:30px; border-radius:50%;
  display:grid; place-items:center; padding:0; font:900 17px/1 var(--f-body); color:#2a180a; border:2px solid #5e3a20;
  background:radial-gradient(circle at 40% 35%,#f6dcb2,#d39a5e 70%); box-shadow:0 3px 8px rgba(0,0,0,.5)}
#resBang[hidden]{display:none}
#resBang i{position:absolute; right:-6px; top:-6px; min-width:16px; height:16px; padding:0 3px; border-radius:999px; background:#2a180a; color:#f6dcb2; font:800 10px/16px var(--f-body); font-style:normal}
.respop{position:fixed; z-index:71; top:calc(42px + var(--safeT)); left:50%; transform:translateX(-50%); width:min(460px,calc(100vw - 24px)); max-height:calc(100dvh - 60px); overflow:auto;
  display:grid; gap:6px; padding:10px 12px; border-radius:14px; border:2px solid #b07a48; background:linear-gradient(180deg,#22170f,#0d0906); box-shadow:0 18px 40px rgba(0,0,0,.7); color:#f3ead6}
.respop[hidden]{display:none}
.respop .rptitle{font-family:var(--f-display); font-weight:400; font-size:18px; color:#e6ac70}
.respop .frow .acts{display:flex; gap:4px; flex-wrap:wrap; justify-content:flex-end}
.gpick{position:fixed; z-index:80; display:flex; flex-wrap:wrap; gap:6px; align-items:center; width:230px; padding:8px 10px; border-radius:12px; border:2px solid #b07a48;
  background:linear-gradient(180deg,#22170f,#0d0906); box-shadow:0 12px 30px rgba(0,0,0,.7); color:#f3ead6}
.gpick b{width:100%; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:#e9d3b2}
.gpick button{flex:1 1 45%; padding:7px 8px; border-radius:999px; border:1.5px solid #b07a48; background:#2a190c; color:#f3dfc0; font-weight:800; font-size:13px}
/* (21 Oct) Friends: left column (invite code, add a friend) and right column (requests, friends) are now two boxes of
   their own, so nothing from one column can slide under the other ("Add a friend" used to run into the code box) */
html body #friendsOv .gpanel{display:grid !important; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) !important; grid-auto-rows:auto !important; align-items:start}
html body #friendsOv .fcol{display:flex; flex-direction:column; gap:6px; min-width:0}
html body #friendsOv .fleft{grid-column:1 !important; grid-row:2 !important} html body #friendsOv .fright{grid-column:2 !important; grid-row:2 !important}
html body #friendsOv .fcol>h3{margin:6px 0 0 !important}
html body #friendsOv .codebox{overflow:visible !important}
@media (max-width:520px){ html body #friendsOv .gpanel{grid-template-columns:1fr !important} html body #friendsOv .fleft,html body #friendsOv .fright{grid-column:1 !important; grid-row:auto !important} }
/* (7 Nov 2026, user) only the friends list scrolls: the window, its title and the invite code stay still */
html body #friendsOv .gpanel{overflow:hidden !important; height:calc(100dvh - 16px) !important; grid-template-rows:auto minmax(0,1fr) !important; align-items:stretch !important}
html body #friendsOv .fcol{min-height:0; height:100%; overflow:hidden}
html body #friendsOv .fleft{overflow-y:auto}
html body #friendsOv #friendList{flex:1 1 0; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-right:4px}
html body #friendsOv #reqList{max-height:32dvh; overflow-y:auto}
/* (7 Nov 2026, user) the big English words */
.wordpic{display:block; width:min(60vw,460px); max-height:48vh; height:auto; object-fit:contain; margin:0 auto; filter:drop-shadow(0 8px 16px rgba(0,0,0,.55))}
html body .fule b em .wordpic{width:min(50vw,380px); max-height:42vh}
/* (7 Nov 2026, user) the mic stays fully in sight at the side of the table */
html body #micBtn{position:fixed; right:calc(var(--safeR,0px) + 8px); top:66%; transform:translateY(-50%); z-index:31; width:46px; height:46px; min-width:0; padding:0 !important; border-radius:50%; flex:none; display:grid; place-items:center; font-size:22px}
html body #micBtn[hidden]{display:none}
html body.lefty #micBtn{right:auto; left:calc(var(--safeL,0px) + 8px)}
.qpick{display:flex; align-items:center; justify-content:center; gap:6px; margin:6px 0}
.qpick small{color:var(--muted)}
.qpick .mini-btn{min-width:38px}
.qpick .mini-btn.on{background:linear-gradient(180deg,#ecc48f,#c08850) !important; color:#2a180a !important}
html body #inboxOv .gpanel>h3{margin-top:6px !important; margin-bottom:4px !important}   /* (21 Oct) room for the new "Match requests" list */

/* (21 Oct, item 8) the carved bars are no longer stretched: their ends keep their own shape, the carved vine between
   them REPEATS (round) instead of being pulled wide, and the lotus sits in the middle of each bar at its own shape.
   Pictures from art/make_bar_strip.py. --lqb = how tall the bars are drawn (follows the window-size rules above). */
html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{--lqb:34px; position:relative;
  border-image:url(../art/ui/lq-strip2-warm.webp) 136 250 / var(--lqb) calc(var(--lqb) * 250 / 136) / 0 20px stretch !important}   /* (27 Oct) the user's new bars: plain wood between the ends (art/make_bar_strip2.py) */
@media (max-height:430px){ html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{--lqb:27px; border-image-outset:0 16px !important} }
@media (max-height:370px){ html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{--lqb:22px; border-image-outset:0 13px !important} }
@media (max-height:335px){ html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{--lqb:16px; border-image-outset:0 10px !important} }
/* the lotus pieces belong to the window behind the frame (the frame itself scrolls and would cut them off); every big
   frame is the full screen height minus 8px top and bottom, so the bars sit at 8px from the top and bottom */
html body .gov:has(>.gpanel:not(.home)),html body .ivbox{--lqb:34px}
@media (max-height:430px){ html body .gov:has(>.gpanel:not(.home)),html body .ivbox{--lqb:27px} }
@media (max-height:370px){ html body .gov:has(>.gpanel:not(.home)),html body .ivbox{--lqb:22px} }
@media (max-height:335px){ html body .gov:has(>.gpanel:not(.home)),html body .ivbox{--lqb:16px} }
html body .gov:has(>.gpanel:not(.home))::before,html body .gov:has(>.gpanel:not(.home))::after,html body .ivbox::before,html body .ivbox::after{
  content:""; position:absolute; left:50%; width:min(calc(var(--lqb) * 1376 / 136), calc(100% - 40px)); height:var(--lqb); transform:translateX(-50%); pointer-events:none; z-index:5;
  background:url(../art/ui/lq-mid2-top.webp) center/100% 100% no-repeat}   /* (27 Oct) the rings and carving, at their own shape */
html body .gov:has(>.gpanel:not(.home))::before,html body .ivbox::before{top:calc(8px + var(--safeT))}
html body .gov:has(>.gpanel:not(.home))::after,html body .ivbox::after{bottom:calc(8px + var(--safeB)); background-image:url(../art/ui/lq-mid2-bot.webp)}
/* (21 Oct) cushion frames: the carved edges repeat (no stretching); the inside is a plain dark velvet (repeating the
   picture's own middle made bands) */
html body .hubx .gtile,html body .ftile{background:radial-gradient(ellipse at 50% 30%,rgba(90,60,36,.25),rgba(0,0,0,0) 70%), url(../art/ui/cloth-green.webp) center/cover padding-box, #120c08 padding-box !important; background-clip:padding-box !important}

/* (21 Oct) bigger pile and stock in every game (they were about 55px wide on a sideways phone, now about 74px) */
html body .pile{--pw:min(92px, 22vh)}   /* (27 Oct, user) a little bigger again */
html body .btrick{--tw:min(72px, 17.5vh); min-height:calc(var(--tw)*1.4 + 14px)}
@media (max-height:335px){ html body .pile{--pw:min(70px, 20vh)} html body .btrick{--tw:min(56px, 16vh)} }

/* (21 Oct, item 20) players you just played with (online results) and name-search results in Friends */
html body #roundPanel .metrow{display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:6px 0 2px}
html body #roundPanel .metrow>span{font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#e9d3b2; margin-right:4px}
html body #roundPanel .metrow small{color:#cdb894}
html body #friendsOv #findList:empty{display:none}
html body #friendsOv #findList .frow{margin-bottom:6px}

/* (21 Oct, item 22) Ranking window: same two-column layout as Friends; tier pills in calm lacquer colours */
html body #rankOv .gpanel{display:grid !important; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr) !important; column-gap:22px; align-items:start}
html body #rankOv .gpanel>h2{grid-column:1 / -1}
html body #rankOv .fcol{display:flex; flex-direction:column; gap:8px; min-width:0}
html body #rankOv .fleft{grid-column:1; grid-row:2} html body #rankOv .fright{grid-column:2; grid-row:2}
html body #rankOv .rkme{border-radius:14px; padding:10px 12px; border:1.5px solid #b07a48; background:linear-gradient(180deg,#2a1c12,#140d09)}
html body #rankOv .rkbig{display:grid; justify-items:end; gap:2px; margin-left:auto} html body #rankOv .rkbig b{font:400 26px/1 var(--f-display); color:#f3d6a8}
html body #rankOv .rkseason{display:flex; justify-content:space-between; align-items:baseline; gap:8px; color:#e9d3b2} html body #rankOv .rkseason small{color:#cdb894}
html body #rankOv .ctabs{margin:0 !important}
html body #rankOv .rkrow{display:flex; align-items:center; gap:8px; margin-bottom:6px; padding:6px 10px}
html body #rankOv .rkrow em{font-style:normal; font-weight:900; width:22px; text-align:right; color:#e6ac70}
html body #rankOv .rkrow.mine{border-color:#d39a5e !important; box-shadow:0 0 0 1px rgba(211,154,94,.5)}
html body #rankOv .rkrow .acts{margin-left:auto; display:flex; align-items:center; gap:8px} html body #rankOv .rkr{min-width:40px; text-align:right; font-size:16px; color:#f3d6a8}
.rktier{display:inline-block; padding:2px 8px; border-radius:999px; font-size:10.5px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; border:1px solid rgba(0,0,0,.4)}
.rktier.t-bronze{background:linear-gradient(180deg,#b07a4f,#7a4a2c); color:#fbe6d4} .rktier.t-silver{background:linear-gradient(180deg,#e4e6e8,#9aa0a6); color:#22262a}
.rktier.t-gold{background:linear-gradient(180deg,#f6dc8a,#c9962e); color:#2a1c06} .rktier.t-platinum{background:linear-gradient(180deg,#d6f1ee,#6fb3ad); color:#0f2a28}
.rktier.t-diamond{background:linear-gradient(180deg,#d4ecff,#5b9bd6); color:#0b2033} .rktier.t-champion{background:linear-gradient(180deg,#fff0c9,#e0a24e 55%,#a8541e); color:#2a1206; box-shadow:0 0 8px rgba(236,196,143,.7)}
@media (max-width:600px){ html body #rankOv .gpanel{grid-template-columns:1fr !important} html body #rankOv .fleft,html body #rankOv .fright{grid-column:1; grid-row:auto} }
html body #rankOv .rklist{max-height:calc(100dvh - 228px); overflow-y:auto; padding-right:4px}
@media (max-height:430px){ html body #rankOv .note{font-size:11.5px; line-height:1.35} html body #rankOv .rkbig b{font-size:22px} }

/* (21 Oct) framed photos keep their full size (profile, home, ranking, friends, table); instead the NAME sits above the
   frame: the text next to a framed photo is raised over it and gets a dark backing so it reads on the carving */
html body .av[class*="fr-"]+span,html body .bigav[class*="fr-"]~:is(.pname,.ptitle,.pmeta,.pmail,.streak,.lvl,.nextrw),html body .seat .nm,html body .bseat .nm{position:relative; z-index:3}
html body .av[class*="fr-"]+span :is(b,small),html body .bigav[class*="fr-"]~:is(.ptitle,.pmeta,.pmail,.streak,.lvl,.nextrw),html body .seat .nm,html body .bseat .nm{text-shadow:0 0 3px #000, 0 0 7px rgba(0,0,0,.95), 0 1px 1px #000}
html body .av[class*="fr-"]+span>b,html body .bigav[class*="fr-"]~.pname{display:inline-block; width:fit-content; max-width:100%; background:rgba(14,9,6,.68); border-radius:7px; padding:0 7px; box-shadow:0 0 0 1px rgba(176,122,72,.35)}
/* (21 Oct) no resort picture around the windows any more: its palms and huts showing in the strips beside the frame
   looked like the screen behind bleeding through. The surround is now a plain dark lacquer. */
html body .gov:has(>.gpanel:not(.home)),html body #roundOv{background:radial-gradient(ellipse at 50% 40%,#1e140d,#0a0705 75%) !important}

/* (29 Oct 2026, user: "remove the rules menu while playing the game") the Rules button is gone from the game's top bar;
   the rules are still on the home screen */
#rulesBtn{display:none !important}
/* (29 Oct 2026, user: "remove the frame. wood and lacquer") menus and pop-ups lose the carved wooden bars and the lacquer
   lotus pieces: the dark velvet panel keeps a thin warm edge and rounded corners */
html body .gov>.gpanel:not(.home),html body .ivbox>.ivcard{border-image:none !important; border:1.5px solid rgba(176,122,72,.55) !important;
  border-radius:16px !important; padding-top:12px !important; padding-bottom:12px !important; width:calc(var(--fr-w) - 24px) !important;
  box-shadow:0 0 0 1px rgba(0,0,0,.5), 0 18px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,220,180,.08) !important}
html body .gov:has(>.gpanel:not(.home))::before,html body .gov:has(>.gpanel:not(.home))::after,html body .ivbox::before,html body .ivbox::after{content:none !important}

/* (17 Nov 2026, user: bring back the wild tumbling fly-in, but it was not rendering properly) same flight as before. Fixed:
   1) every card now has a real FRONT and a real BACK face (the Thaas turtle back) in 3D, so a tumbling card never vanishes or goes blank when it turns edge-on
      (it was one flat box with backface hidden + overflow hidden, which flattens the 3D and drops cards on phones);
   2) the cards fly ABOVE the Thaas picture (they used to cross behind/through it);
   3) the Thaas picture was never hidden at the start (the rise animation was still on the old <b> word, which no longer exists): it now rises after the cards land. */
.boot .blogo .lfan.l3d{z-index:5}
html body .boot .blogo .lfan.l3d i{overflow:visible !important; backface-visibility:visible !important; transform-style:preserve-3d; background:none !important; box-shadow:none !important}
html body .boot .blogo .lfan.l3d i::before,html body .boot .blogo .lfan.l3d i::after{content:""; position:absolute; inset:0; border-radius:6px; backface-visibility:hidden; -webkit-backface-visibility:hidden;
  box-shadow:0 10px 18px rgba(0,0,0,.5), 0 0 0 1px rgba(60,35,15,.35)}
html body .boot .blogo .lfan.l3d i::after{background:#123 url(../art/decks/turtle.webp) center/cover !important; transform:rotateY(180deg); animation:none !important}
html body .boot .blogo .lfan.l3d i::before{background:linear-gradient(115deg,rgba(255,255,255,0) 38%,rgba(255,244,220,.65) 50%,rgba(255,255,255,0) 62%) 120% 0/260% 100% no-repeat, #123 url(../art/cards/11_0.webp?v=9) center/cover;   /* a card whose picture is not loaded yet shows dark, never a white flash */
  animation:l3dGlint2 .75s 1.15s ease-in-out forwards}
html body .boot .blogo .lfan.l3d i:nth-child(2)::before{background-image:linear-gradient(115deg,rgba(255,255,255,0) 38%,rgba(255,244,220,.65) 50%,rgba(255,255,255,0) 62%), url(../art/cards/12_2.webp?v=9)}
html body .boot .blogo .lfan.l3d i:nth-child(3)::before{background-image:linear-gradient(115deg,rgba(255,255,255,0) 38%,rgba(255,244,220,.65) 50%,rgba(255,255,255,0) 62%), url(../art/cards/13_0.webp?v=9)}
html body .boot .blogo .lfan.l3d i:nth-child(4)::before{background-image:linear-gradient(115deg,rgba(255,255,255,0) 38%,rgba(255,244,220,.65) 50%,rgba(255,255,255,0) 62%), url(../art/cards/13_1.webp?v=9)}
html body .boot .blogo .lfan.l3d i:nth-child(5)::before{background-image:linear-gradient(115deg,rgba(255,255,255,0) 38%,rgba(255,244,220,.65) 50%,rgba(255,255,255,0) 62%), url(../art/cards/13_2.webp?v=9)}
html body .boot .blogo .lfan.l3d i:nth-child(6)::before{background-image:linear-gradient(115deg,rgba(255,255,255,0) 38%,rgba(255,244,220,.65) 50%,rgba(255,255,255,0) 62%), url(../art/cards/12_3.webp?v=9)}
html body .boot .blogo .lfan.l3d i:nth-child(7)::before{background-image:linear-gradient(115deg,rgba(255,255,255,0) 38%,rgba(255,244,220,.65) 50%,rgba(255,255,255,0) 62%), url(../art/decks/turtle.webp)}
@keyframes l3dGlint2{to{background-position:-30% 0, center}}
.boot .blogo>.blogoart{animation:l3dWord .75s .95s cubic-bezier(.2,.8,.25,1.15) both}
@media (prefers-reduced-motion:reduce){ html body .boot .blogo .lfan.l3d i::before{animation:none !important} .boot .blogo>.blogoart{animation:none !important} }
