
/* =====================================================================
   Resort UI from the user's 16 mock-ups (20 Oct 2026): clean teal panels inside the carved wooden frame (no palm pattern
   behind the text), money as gold-rimmed pills with the cowrie / coral / pearl pictures, the user's round gold icons on
   menus and rows, wooden "How to play" pill. Overrides every block above.
   ===================================================================== */
:root{ --rt-panel:linear-gradient(180deg,#1a1412 0%,#120e0c 55%,#0a0706 100%); --rt-card:linear-gradient(180deg,#201916,#0e0a09);
  --rt-gold:#b9804c; --rt-cream:#fff1cf }
/* panels: the frame is only the border now; the inside is a plain deep-teal surface so text reads cleanly */
.gpanel,.ivcard{border-image:url(../art/ui/frame.webp) 170 / 46px / 4px stretch !important; background:var(--rt-panel) padding-box !important}
@media (max-height:430px){ .gpanel,.ivcard{border-image-width:34px !important} }
#homeOv .panel.home{background:none !important}
/* money: cowrie = Boli, coral = Endheri, pearl = Maavaharu */
.boli{width:1.05em !important; height:1.2em !important; vertical-align:-.25em !important; background:url(../art/ui/cowrie-64.webp) center/contain no-repeat !important; filter:drop-shadow(0 1px 1px rgba(0,0,0,.5)) !important}
.akr{display:inline-block; width:1.45em; height:1.2em; vertical-align:-.25em; background:url(../art/ui/icon-endheri.webp) center/contain no-repeat; filter:drop-shadow(0 1px 1px rgba(0,0,0,.5))}
.mvh{width:1.1em !important; height:1.1em !important; vertical-align:-.2em !important; border-radius:0 !important; background:url(../art/ui/icon-maavaharu.webp) center/contain no-repeat !important; box-shadow:none !important; border:0 !important}
.gpanel .wallet span{background:linear-gradient(180deg,#1d1715,#0b0807) !important; border:1.5px solid var(--rt-gold) !important; border-radius:999px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 2px 4px rgba(0,0,0,.4) !important; color:#e9dcc0 !important; padding:5px 14px 5px 9px !important; display:inline-flex; align-items:center; gap:6px; white-space:nowrap}
.gpanel .wallet b{color:#fff; font-size:1.08em}
/* home top right: wallet pill + gold Store button */
.hstore{border-image:none !important; background:linear-gradient(180deg,#1d1715,#0b0807) !important; border:1.5px solid var(--rt-gold) !important; border-radius:16px !important;
  padding:3px 3px 3px 12px !important; gap:10px !important; box-shadow:0 4px 10px rgba(0,0,0,.45) !important; filter:none !important; color:#fff !important}
.hstore .hsw{display:flex !important; gap:12px !important; font-size:14px !important; font-weight:800 !important}
.hstore .hsw span{gap:5px !important; border:0 !important}
.hstore .hsi{width:40px !important; height:40px !important; border-radius:12px !important; background:url(../art/ui/menu-store.webp) center/82% no-repeat, linear-gradient(180deg,#f5cf9f,#d39a5e 55%,#7a4f2c) !important;
  box-shadow:inset 0 0 0 1.5px #f3dcbc, 0 2px 0 #3a2414 !important}
@media (max-height:430px){ .hstore .hsi{width:34px !important; height:34px !important} .hstore .hsw{font-size:13px !important; gap:10px !important} }
/* round gold icons from the user's art */
.mico{display:block; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 2px 3px rgba(0,0,0,.45))}
#navSet::before,#navInbox::before{content:none !important}
.hubnav button{border-image:none !important; background:linear-gradient(180deg,rgba(29,23,21,.92),rgba(11,8,7,.92)) !important; border:1.5px solid var(--rt-gold) !important;
  border-radius:14px !important; filter:none !important; box-shadow:0 3px 8px rgba(0,0,0,.45) !important; padding:4px 14px 4px !important; min-width:76px !important; color:#fff1cf !important}
.hubnav button .mico{width:28px; height:28px}
@media (max-height:430px){ .hubnav button .mico{width:24px; height:24px} }
.ftile .ficon{border-radius:50%}
/* game menu: medallion icon on the left, readable text, arrow on the right; How to play on a wooden pill */
#homeOv .hbtn i{width:44px !important; height:44px !important; padding:0 !important; border:0 !important; background:none !important; box-shadow:none !important}
@media (max-height:430px){ #homeOv .hbtn i{width:38px !important; height:38px !important} }
#homeOv .hbtn b{font-family:var(--f-display); font-size:17px; letter-spacing:.2px}
#homeOv .hbtn small{font-size:12px; opacity:.95}
#homeOv .hbtn:not(.main) b{color:#fff1cf !important}
#homeOv .hbtn:not(.main) small{color:#ecd3b4 !important}
#homeOv .hlink{border-image:url(../art/ui/plaque.webp) 0 200 0 250 fill / 0 30px 0 38px stretch !important; filter:drop-shadow(0 3px 5px rgba(0,0,0,.5)) !important;
  padding:6px 34px 7px 44px !important; color:#f5cf9f !important; font-family:var(--f-display); font-size:15px}
#homeOv .hlink i{color:#f5cf9f}
/* profile: title on the plaque, avatar + name side by side, money and stats in neat rows, round icons on the list */
#profOv .gpanel>h2{grid-column:1 / -1; justify-self:center; margin:0 0 8px}
#profOv .pcard{background:var(--rt-card) !important; border:1.5px solid #4a3420 !important; border-radius:16px !important; padding:12px 14px !important; row-gap:3px !important; align-self:start}
#profOv .bigav{width:72px !important; height:72px !important; margin:0 4px 0 0 !important; grid-row:1 / span 4 !important}
#profOv .pname{font-size:23px !important; line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%}
#profOv .pmeta{color:#f0c08a; font-weight:700; font-size:13px}
#profOv .streak{font-size:13px; font-weight:700; color:#f6e3c8}
#profOv .lvl{margin-top:8px !important; display:flex; align-items:center; gap:10px; font-weight:800; color:#f0c08a}
#profOv .lvl small{color:#e9dcc0; white-space:nowrap}
#profOv .nextrw{font-size:12px; color:#e8d8c4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:1px}
#profOv .wallet{display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px !important; margin:8px 0 6px !important}
#profOv .wallet span{justify-content:center; padding:4px 6px !important; font-size:12px}
#profOv .wallet b{font-size:14px}
#profOv .stats{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0}
#profOv .stats>div{display:grid !important; grid-template-columns:34px 1fr; grid-template-rows:auto auto; column-gap:8px; align-items:center; text-align:left; padding:6px 10px !important;
  background:linear-gradient(180deg,#3a2210,#24140a) !important; border:1.5px solid var(--rt-gold) !important; border-radius:12px !important; box-shadow:0 2px 4px rgba(0,0,0,.45) !important}
#profOv .stats>div .mico{grid-row:1 / span 2; width:34px; height:34px}
#profOv .stats b{font-size:22px; line-height:1; color:#f0c08a}
#profOv .stats b.win{color:#4fe0a0}
#profOv .stats span{font-size:11px; letter-spacing:1px; text-transform:uppercase; color:#e9dcc0}
#profOv .mrow{grid-template-columns:46px 1fr auto !important; padding:8px 14px 8px 8px !important; margin-bottom:9px !important; background:var(--rt-card) !important}
#profOv .mrow .ico{width:46px !important; height:46px !important; border:0 !important; background:none !important; padding:0 !important}
#profOv .mrow b{font-family:var(--f-display); font-size:17px; color:#fff1cf}
#profOv .mrow.danger b{color:#ff8f86}
#profOv .mrow small{color:#e8d8c4}
#profOv .mrow em{color:#f0c08a; font-size:26px}
@media (max-height:430px){
  #profOv .gpanel>h2{margin:0 0 6px}
  #profOv .bigav{width:62px !important; height:62px !important}
  #profOv .pname{font-size:20px !important}
  #profOv .mrow{padding:6px 12px 6px 6px !important; margin-bottom:7px !important} #profOv .mrow .ico{width:40px !important; height:40px !important}
  #profOv .stats b{font-size:19px} #profOv .stats>div .mico{width:30px; height:30px}
}
.mvh{width:1.3em !important; height:1.3em !important; vertical-align:-.3em !important}
/* pill buttons: keep the text clear of the gold end caps */
:is(.ov,.modbox) :is(.gbtn:not(.alt):not(.buy),.btn:not(.alt):not(.ghost),#saveProfile,#quickStart,.chrow .btn,.gbtn.alt,.btn.alt):not(.xback){padding-left:30px !important; padding-right:30px !important; min-height:36px}
/* friends: invite code on a wooden plaque, a proper Add button */
#friendsOv .codebox{background:var(--rt-card) !important; border:1.5px solid var(--rt-gold) !important}
#friendsOv #addFriendBtn{min-width:96px; font-size:16px; font-weight:800}
#friendsOv .joinrow input{background:#0b0807; border:1.5px solid var(--rt-gold); border-radius:12px; letter-spacing:.3em; text-align:center; color:#fff1cf}
#friendsOv .flist>*{background:var(--rt-card); border:1.5px solid #4a3420; border-radius:14px}
/* challenges: big round medallion with the user's icon, clean cards */
#chOv .chrow{background:var(--rt-card) !important; border:1.5px solid #4a3420 !important; border-radius:16px !important; box-shadow:0 3px 6px rgba(0,0,0,.4) !important}
#chOv .chrow.ready{border-color:var(--rt-gold) !important; box-shadow:0 0 0 1px var(--rt-gold), 0 0 16px rgba(211,154,94,.35) !important}
.chico{width:54px !important; height:54px !important; border:2.5px solid var(--rt-gold) !important; box-shadow:0 3px 8px rgba(0,0,0,.5), inset 0 0 0 2px #0e0a09 !important}
.chico img{width:40px !important; height:40px !important}
@media (max-height:430px){ .chico{width:46px !important; height:46px !important} .chico img{width:34px !important; height:34px !important} }
#chOv .chrow b{font-family:var(--f-display); font-size:16px; color:#fff1cf}
#chOv .pbar,#achOv .pbar{height:9px !important; border-radius:6px !important; background:rgba(0,0,0,.5) !important; box-shadow:inset 0 1px 3px rgba(0,0,0,.7), 0 0 0 1px rgba(185,128,76,.35) !important}
#chOv .pbar i,#achOv .pbar i{background:linear-gradient(180deg,#f3c99a,#d39a5e 50%,#6a4325) !important; border-radius:6px !important}
/* achievements: colourful icon in a gold ring even before the first medal, clear names */
.gpanel .arow{background:var(--rt-card) !important; border:1.5px solid #4a3420 !important; filter:none !important}
.gpanel .arow.got{border-color:var(--rt-gold) !important}
.gpanel .arow .ai{filter:none !important; border:3px solid var(--rt-gold) !important; background:radial-gradient(circle at 35% 30%,#3a2a1c,#0e0807) !important; box-shadow:0 3px 8px rgba(0,0,0,.5) !important}
.gpanel .arow:not(.got) .ai img,.gpanel .arow:not(.got) .ai .emo-img{opacity:.75}
.gpanel .arow b{font-family:var(--f-display); font-size:16px; color:#fff1cf}
.gpanel .arow small{color:#e8d8c4}
/* settings: rows as clean cards */
#setOv .tog,#setOv .rng{background:var(--rt-card) !important; border:1.5px solid #4a3420 !important; border-radius:14px !important}
#setOv .tog b,#setOv .rng b{color:#fff1cf}
#setOv .tog small,#setOv .rng small{color:#e8d8c4}
/* store and collection: item cards on the same clean surface */
.sgrid>*,.shopgrid>*{background:var(--rt-card) !important}
/* inbox, help, history, rules: easy-to-read text */
#helpOv .faq b,#rulesOv h3,#helpOv h3{color:#f0c08a}
#helpOv .faq span,.rulesov p,.rulesov li{color:#eef6f4}
/* help: left = How to play + Contact, right = Questions (scrolls on its own if it's long); nothing runs under the close button */
#helpOv .gpanel{columns:auto !important; display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); grid-template-rows:auto auto auto auto 1fr;
  column-gap:28px; align-content:start; max-height:calc(100dvh - 24px)}
#helpOv .gpanel>h2{grid-column:1; grid-row:1; justify-self:start}
/* (21 Oct) "How to play" removed from Help: left = title + Contact, right = Questions */
#helpOv .gpanel>h3:nth-of-type(2){grid-column:1; grid-row:2}
#helpOv .gpanel>.note{grid-column:1; grid-row:3 / span 3; align-self:start; line-height:1.7}
#helpOv .gpanel>h3:nth-of-type(1){grid-column:2; grid-row:1; align-self:end}
#helpOv .faq{grid-column:2; grid-row:2 / span 4; overflow-y:auto; min-height:0; padding-right:4px}
@media (max-height:430px){ #helpOv .gpanel{columns:auto !important} }
/* how-to-play pages: one readable column that scrolls down, text kept clear of the close button */
.rulesov .gpanel{columns:auto !important; height:auto !important; max-height:calc(100dvh - 24px); overflow-x:hidden !important; overflow-y:auto !important; padding-right:78px !important; max-width:min(900px,100%) !important}
.rulesov .gpanel>p,.rulesov .gpanel>ul,.rulesov .gpanel>ol{max-width:720px}
/* signed-out settings: a little tighter so it fits without scrolling */
#setOv #setSignIn{margin-top:4px !important}
@media (max-height:430px){ #setOv .tog,#setOv .rng{padding-top:5px !important; padding-bottom:5px !important} }
/* the round close button stays round even on buttons that are also gold pills */
button.xback.xback.xback{border-image:none !important; padding:0 !important; min-height:0 !important; height:40px !important; border-radius:50% !important; filter:none !important}
#helpOv .helpgames .gbtn{min-width:86px}
.rulesov .xback{top:30px !important; right:32px !important}
button.xback.xback.xback{background:radial-gradient(circle at 35% 30%,#3a2a1c,#0e0807) !important; border:3px solid var(--goldline) !important; color:#f0c08a !important; width:40px !important}
/* game table: the small "Thaas" sits fully above the game name */
.bar .logo small{display:block; line-height:1.05; margin-bottom:2px}
@media (max-height:430px){ #setOv #setGame h3{margin-top:2px !important; margin-bottom:4px !important} #setOv .tog,#setOv .rng{margin-bottom:5px !important} }
#setOv #setErr:empty{display:none}
/* very short phones (360px tall and less): thinner frame, smaller titles and rows */
@media (max-height:370px){
  .gpanel,.ivcard{border-width:10px !important; border-image-width:26px !important; border-image-outset:3px !important; padding-top:8px !important; padding-bottom:8px !important}
  .gpanel>h2,.gpanel .qinfo h2{font-size:19px !important; padding:2px 40px 3px 46px !important; margin-bottom:4px !important}
  .gpanel h3{margin-top:4px !important; margin-bottom:4px !important}
  #setOv .tog,#setOv .rng{padding-top:3px !important; padding-bottom:3px !important; margin-bottom:4px !important}
  #setOv .tog small,#setOv .rng small{font-size:11px !important; line-height:1.2}
  #chOv .chrow{min-height:0 !important; padding:8px 10px !important; row-gap:5px !important} .chico{width:40px !important; height:40px !important} .chico img{width:30px !important; height:30px !important}
  .sgrid>*,.shopgrid>*{padding-top:6px !important; padding-bottom:6px !important}
  #setupOv .opt{padding-top:5px !important; padding-bottom:5px !important}
  .gpanel .wallet{margin:2px 0 4px !important}
  :is(.ov,.modbox) :is(.gbtn,.btn):not(.xback){min-height:32px}
}
/* narrow phones: settings rows more compact so the text doesn't wrap so much */
@media (max-width:790px){
  #setOv .tog,#setOv .rng{gap:7px !important; padding-left:7px !important; padding-right:8px !important}
  #setOv .tog>span.rowico,#setOv .rng>span.rowico{flex-basis:24px !important; width:24px !important}
  #setOv .tog b,#setOv .rng b{font-size:13px !important}
  #setOv .tog small{font-size:11px !important; line-height:1.2 !important}
  .tog i{width:40px !important; height:18px !important; flex:none}
  #setOv .gpanel{column-gap:10px !important}
}
@media (max-height:370px){ #collOv #collErr:empty,#shopOv #shopErr:empty{display:none} #collOv .ctabs{margin-top:2px !important; margin-bottom:4px !important} #collOv #collToShop{margin-top:2px !important} }
/* very short phones, card table: the message in the middle stays clear of your picture */
@media (max-height:370px){ .bmid .msg{font-size:12px !important; line-height:1.3 !important; max-width:30ch !important} }
/* table pop-up (Store and Collection): the preview has the wide shape of the real table on a sideways phone, not a square */
.ivcard:has(.ivtable){max-width:min(760px,100%) !important; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) !important}
.ivcard .ivstage:has(.ivtable){height:auto !important; min-height:0 !important; align-self:center}
.ivtable{height:auto !important; width:100% !important; aspect-ratio:2.16 / 1; background-size:cover !important}
/* collection: the Go to the Store button wide enough for its words, clear of the gold ends */
#collOv #collToShop{min-width:230px !important; padding:8px 44px !important; font-size:15px; white-space:nowrap; justify-self:center; align-self:center}
/* random-table waiting screen: the title is plain gold text (a stretched plaque looked wrong), at a size that fits */
#quickOv .qinfo h2{border-image:none !important; background:none !important; padding:0 !important; margin:0 0 6px !important;
  font-size:24px !important; line-height:1.15 !important; color:#f0c08a !important; text-align:left; text-shadow:0 2px 3px rgba(0,0,0,.7) !important}
#quickOv .qinfo h2::before,#quickOv .qinfo h2::after{content:none !important}
@media (max-height:370px){ #quickOv .qinfo h2{font-size:21px !important} }
/* card table: the small round buttons (sound, Rules, Menu, emoji, mic, Sort, Auto) without the gold ornament behind them */
.app .ghost{border-image:none !important; filter:none !important; background:rgba(4,26,32,.72) !important; border:1.5px solid rgba(185,128,76,.75) !important;
  border-radius:999px !important; box-shadow:0 2px 6px rgba(0,0,0,.4) !important; color:#f6e3c8 !important; padding:5px 12px !important}
.app .ghost.emobtn{padding:4px 8px !important}
/* loading screen: the user's picture always fills the screen (like cover); the gold fill sits exactly in the bar drawn
   in it (bar at x 603-1230, y 580-617 of the 1836x856 picture, emptied by art/make_loading.py); fades into home */
.boot{background:#04161c !important; display:block !important; opacity:1; transition:opacity .55s ease, visibility .55s !important}
.boot.done{opacity:0 !important; visibility:hidden !important; pointer-events:none}
.boot .bscene{position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:max(100vw, calc(100vh * 1836 / 856)); width:max(100vw, calc(100dvh * 1836 / 856));
  aspect-ratio:1836 / 856; background:url(../art/ui/bg-loading.webp) center/100% 100% no-repeat}
.boot .bfill{position:absolute; left:calc(603% / 18.36 + .35%); top:calc(580% / 8.56 + .6%); width:calc(627% / 18.36 - .7%); height:calc(37% / 8.56 - 1.2%); border-radius:999px; overflow:hidden}
.boot .bfill i{position:absolute; left:0; top:0; bottom:0; width:4%; border-radius:999px; transition:width .35s ease-out;
  background:linear-gradient(180deg,#f3dcbc 0%,#f0c08a 30%,#d39a5e 62%,#6a4325 100%); box-shadow:0 0 10px rgba(211,154,94,.6), inset 0 1px 0 rgba(255,255,255,.6)}
