@import url('/telegram-header.css?v=8ba9f1164e');
@import url('/assets/vis/huper-tokens.css?v=2c9331c289');
:root {
  color-scheme: dark;
  --ink: #f4ebdd;
  --muted: #bccabf;
  --gold: #d7b675;
  --button-gold: linear-gradient(160deg,#ecd9ae,#d7b675 45%,#b99a57);
  --glass: linear-gradient(180deg,rgba(27,63,54,.82),rgba(5,19,15,.72));
  --shadow: inset 0 1px 0 rgba(255,255,255,.1),0 8px 22px rgba(0,0,0,.4);
  font: 14px/1.45 Inter,"Noto Sans SC","Noto Sans Khmer",system-ui,sans-serif;
  background:#05130f; color:var(--ink);
}
* {box-sizing:border-box}
body {
  --safe-top:max(env(safe-area-inset-top),var(--tg-content-safe-area-inset-top,0px));
  --safe-right:max(env(safe-area-inset-right),var(--tg-content-safe-area-inset-right,0px));
  --safe-bottom:max(env(safe-area-inset-bottom),var(--tg-content-safe-area-inset-bottom,0px));
  --safe-left:max(env(safe-area-inset-left),var(--tg-content-safe-area-inset-left,0px));
  --full-height:max(100svh,100dvh,var(--tg-viewport-stable-height,0px));
  margin:0;min-height:var(--full-height);display:grid;place-items:center;
  padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
}
/* The felt covers the real visible area even when the page box is shorter than the webview. */
body:before,body:after {content:"";position:fixed;inset:0;z-index:-1;pointer-events:none}
body:before {background:radial-gradient(ellipse 65% 82% at 54% 40%,#17523f 0%,#124434 40%,#0c3229 72%,#05130f)}
body:after {background:url('/portal/assets/felt-noise.png') repeat center/200px;opacity:.84}
#portal {width:100%; min-height:calc(var(--full-height) - var(--safe-top) - var(--safe-bottom));display:grid;align-items:center;justify-items:center;position:relative}
.hall,.portal-page,.state-frame {width:min(100%,1100px); position:relative;isolation:isolate;
  background:radial-gradient(ellipse 65% 82% at 54% 40%,#17523f 0%,#124434 40%,#0c3229 72%,#05130f);
  overflow-wrap:anywhere;}
.hall:before,.portal-page:before,.state-frame:before {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:url('/portal/assets/felt-noise.png') repeat center/200px;opacity:.84}
button,input,textarea,select {font:inherit;color:inherit}
button,select {cursor:pointer}
button,.action {border:0;min-height:44px;min-width:44px;border-radius:16px;padding:7px 15px;white-space:nowrap;
  background:var(--glass);box-shadow:var(--shadow);font-weight:600}
button:disabled {cursor:default;opacity:.56}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline:3px solid #5ccfb2;outline-offset:2px}
button[aria-pressed=true],.gold,.play {background:var(--button-gold);color:#081c18}
.glass,.pane {background:var(--glass);box-shadow:var(--shadow);border-radius:20px}
button.plain {background:transparent;box-shadow:none;color:var(--gold);padding:4px 8px}
small,.muted {font-size:12px;color:var(--muted)}
h1,h2,h3,p {margin:0}
h1,h2,h3 {font-family:"Noto Serif SC",Gelasio,Georgia,serif;color:#ecd9ae}
h1 {font-size:22px} h2 {font-size:20px} h3 {font-size:16px}
img {display:block;max-width:100%}
.icon {width:44px;height:44px;padding:11px;border-radius:50%;position:relative}
.icon svg {width:22px;height:22px}
.hall {height:min(100svh,max(390px,min(51vw,510px)));min-height:320px;display:grid;grid-template:
 "top top top" 52px
 "welcome games friends" minmax(132px,1fr)
 "welcome quick friends" 62px / minmax(115px,1.65fr) minmax(210px,2.05fr) minmax(145px,.98fr);
 padding:6px 2.4% 12px;gap:6px 14px;overflow:hidden}
.hall.no-friends {grid-template-columns:1.25fr 2fr 0}
.lobby-head,.profile-pill,.lobby-tools,.friends-head,.friend,.choices,.button-row {display:flex;align-items:center;gap:8px}
.lobby-head {grid-area:top;gap:14px;z-index:1}
.profile-pill {max-width:55%;padding:0 14px 0 0;text-align:start;overflow:auto}
.profile-pill img,.friend img {width:44px;height:44px;border-radius:100%;background:#e6d9c2;flex:none}
.profile-pill>span,.friend>span {display:grid}
.lobby-tools {margin-inline-start:auto}
.banner {flex:1;display:block;max-width:352px}
.banner img {width:100%;height:40px;object-fit:cover;border-radius:20px}
.badge {position:absolute;right:0;top:0;border-radius:999px;background:#8f2539;font-size:12px;padding:0 5px}
.concierge {grid-area:welcome;position:relative;align-self:stretch;min-width:0}
.concierge picture,.concierge picture img {height:115%;max-width:unset;position:absolute;bottom:-15%;left:2%}
.concierge picture {width:100%;bottom:0;height:100%}
.bubble {position:absolute;right:-1%;top:9px;max-width:52%;padding:9px 10px;border-radius:14px 14px 14px 4px;
 background:linear-gradient(160deg,#fffdf8,#f4ebdd 55%,#e6d9c2);color:#081c18;box-shadow:0 6px 16px #0006;font-size:13px;line-height:19px}
.bubble span,.bubble strong {display:block}
.bubble .online {color:inherit}
.bubble > .friend-request-greeting,.bubble > [hidden],
.bubble[data-incoming] > :is(strong,.greeting) {display:none}
.bubble[data-incoming] > .friend-request-greeting {display:block}
.game-zone {grid-area:games;position:relative;min-width:0;min-height:0;display:flex;flex-direction:column}
.game-list {flex:1;min-width:0;min-height:0;display:flex;align-items:center;gap:0;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;padding:0 29cqw 12px}
.game-list::-webkit-scrollbar {display:none}
.game-dots {position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:center;gap:5px;pointer-events:none}
.game-dots i {width:5px;height:5px;border-radius:50%;background:#f4ebdd40}
.game-dots i[data-current] {width:12px;border-radius:3px;background:#d7b675}
.game-card {display:flex;flex-direction:column;position:relative;overflow:hidden;flex:0 0 42cqw;height:94%;min-width:0;text-align:start;
  scroll-snap-align:center;transform:scale(.82);transition:transform .25s;
  padding:0;white-space:normal;border-radius:18px;background:linear-gradient(180deg,#1b3f36,#0d2620 62%,#081c18)}
.game-card[data-active=true] {transform:scale(1)}
@media (orientation:landscape) {
 .game-zone {container-type:inline-size}
 .concierge picture img {max-width:98%;object-fit:contain;object-position:left bottom}
}
.game-card.soon .play {background:var(--glass);color:var(--muted);box-shadow:var(--shadow)}
.game-new {margin-inline-start:8px;padding:1px 7px;border-radius:9px;background:var(--button-gold);color:#081c18;font:700 11px/16px Inter,sans-serif;font-style:normal;vertical-align:middle}
.game-art {position:relative;flex:1;width:100%;min-height:70px;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#1f6a52,#17523f 50%,#0c3229)}
.game-art .king,.game-art .ace {position:absolute;left:24%;top:18%;width:32%;border-radius:4px;transform:rotate(-13deg);box-shadow:0 6px 10px #0008}
.game-art .ace {left:44%;top:10%;transform:rotate(9deg)}
.game-art .chip {position:absolute;width:20%;right:8%;bottom:7%}
.pool-table {width:100%;height:100%;position:absolute;object-fit:cover;object-position:50% 50%}
.game-details {padding:7px 12px 3px;width:100%;border-top:1px solid #d7b67555}
.game-details h2 {font-size:clamp(17px,2.7vw,26px);white-space:nowrap}
.online {font-size:12px;color:var(--muted)}
.online:before {content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#5ccfb2;margin-inline-end:4px}
.play {display:grid;place-items:center;min-height:30px;margin:6px 10px 12px;padding:2px 6px;border-radius:20px;align-self:stretch;font-size:13px;white-space:nowrap}
.shortcuts {grid-area:quick;position:relative;display:flex;align-items:start;justify-content:space-between;justify-self:center;width:min(100%,328px)}
.shortcuts .shortcut {width:60px;min-width:0;min-height:44px;padding:0;border-radius:0;background:none;box-shadow:none;display:flex;flex-direction:column;
 align-items:center;gap:3px;font-size:12px;font-weight:400;line-height:16px;color:var(--ink);white-space:nowrap}
.shortcut-icon {width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--glass);box-shadow:inset 0 1px 0 #ffffff1f,0 4px 10px #00000059}
.shortcut-icon svg {width:22px;height:22px}
.shortcut.daily {color:#ecd9ae}
.shortcut.daily .shortcut-icon {background:radial-gradient(circle at 50% 30%,#3a2e12,#1b1608);box-shadow:inset 0 1px 0 #ecd9ae59,0 0 0 1px #d7b67580,0 0 14px #d7b67559}
.shortcut-note {position:absolute;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);padding:5px 12px;border-radius:12px;white-space:nowrap;
 background:#081c18f2;color:var(--ink);font-size:12px;box-shadow:0 4px 12px #0008;z-index:2}
.friends-bar {grid-area:friends;min-height:0;padding:7px;display:flex;flex-direction:column;gap:6px}
.friends-head {justify-content:space-between}
.friend-list {overflow:auto;min-height:0}
.friend {background:none;box-shadow:none;text-align:start;padding:0;width:100%}
.friend img {width:32px;height:32px}
.friends-bar>.gold {margin-top:auto;width:100%}
/* Board Main friends panel (Leo 12-03 继续优化): + to add a friend in the heading, a status dot on each face, the
   friend's whereabouts under the name, a gold + to ask a friend in the lobby to a table, a slim invite pill. */
.friends-head .friend-add {margin-left:auto}
.friends-head .online {white-space:nowrap}
.friend-add,.friend-ask {flex:none;display:grid;place-items:center;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;border-radius:50%}
.friend-add {background:#f4ebdd1f;box-shadow:none;color:#f4ebdd}
.friend-ask {background:linear-gradient(160deg,#ecd9ae,#d7b675 45%,#b99a57);color:#081c18;box-shadow:inset 0 1px 0 #ffffff80,0 2px 5px #0006}
:is(.friend-add,.friend-ask,.friends-bar>.gold) .line-icon {color:inherit;width:auto;height:auto}
:is(.friend-add,.friend-ask) svg {width:14px;height:14px;stroke-width:2.4}
.friend-row {display:flex;align-items:center;gap:4px;min-height:44px;border-radius:12px;padding:0 4px}
.friend-row.table {background:linear-gradient(90deg,#d7b67524,#d7b67500)}
.friend-row.off {opacity:.5}
.friend-row.off img {filter:grayscale(.6)}
.friend-row .friend {flex:1;min-width:0;gap:6px}
.friend-row .friend>span:last-child {min-width:0}
.friend-row .friend strong {font-size:13px;line-height:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.friend-row .friend small {font-size:12px;line-height:15px;color:#bccabf;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.friend-row.table .friend small {color:#d7b675}
.friend-face {position:relative;flex:none;display:block}
.friend-face img {display:block;width:30px;height:30px;box-shadow:0 2px 6px #0006}
.friend-row:not(.off) .friend-face::after {content:'';position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:50%;background:#5ccfb2;box-shadow:0 0 0 2px #10302a,0 0 6px #5ccfb2}
.friend-row.busy .friend-face::after {background:#f2b95c;box-shadow:0 0 0 2px #10302a}
.friends-bar>.gold {display:flex;align-items:center;justify-content:center;gap:6px;height:36px;min-height:36px;border-radius:18px;font-size:13px}
.friends-bar>.gold svg {width:16px;height:16px;stroke-width:2}
.portal-page {height:min(100svh,max(390px,min(53vw,610px)));display:flex;flex-direction:column;padding:10px clamp(12px,2.85vw,32px) 12px;gap:8px}
.page-head {min-height:44px;display:flex;align-items:center;gap:12px}
.portal-body,.columns,.settings-scroll {flex:1;overflow:auto;min-height:0}
.columns {display:grid;grid-template-columns:minmax(0,.87fr) minmax(0,1fr);gap:24px;align-items:stretch;padding:2px}
.pane {padding:14px 16px}
.stack,.pane {display:flex;flex-direction:column;gap:9px}
.stack {min-width:0}
.choices,.button-row {flex-wrap:wrap}
.guide-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
/* Board 04 */
.settings-scroll {display:flex}
.settings-grid {flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,3.3vw,28px);padding:14px clamp(12px,2.6vw,22px)}
.settings-col {display:flex;flex-direction:column;gap:2px;min-width:0;min-height:min-content}
.settings-col h2 {margin:0;min-height:22px;font-size:12px;font-weight:600;color:var(--gold);letter-spacing:.04em;font-family:inherit;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.settings-col h2:not(:first-child) {margin-top:8px}
.settings-col .setting {min-height:32px;white-space:nowrap;gap:8px}
.setting-name {font-size:14px;font-weight:400;overflow:hidden;text-overflow:ellipsis;min-width:0;margin-right:auto}
.setting-meta {font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.setting-ok {font-size:13px;color:#5ccfb2}
.segment {display:flex;padding:3px;border-radius:12px;background:rgba(5,19,15,.55);box-shadow:inset 0 1px 2px rgba(0,0,0,.5)}
.segment button {flex:1;min-height:30px;min-width:0;padding:0 12px;border-radius:9px;font-size:13px;font-weight:400;background:transparent;box-shadow:none;color:var(--muted)}
.segment button[aria-pressed=true] {background:linear-gradient(180deg,rgba(215,182,117,.32),rgba(215,182,117,.16));color:#ecd9ae;font-weight:600;box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}
.setting .segment {flex:none}
.setting .segment button {flex:1 0 auto;padding:0 10px}
button.switch {position:relative;flex:none;width:40px;min-width:40px;height:24px;min-height:24px;padding:0;border-radius:12px;background:rgba(5,19,15,.6);box-shadow:inset 0 1px 2px rgba(0,0,0,.5)}
button.switch:after {content:"";position:absolute;inset:-10px -4px}
button.switch .knob {position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#9db3a8;transition:transform .15s}
button.switch[aria-checked=true] {background:var(--button-gold);box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
button.switch[aria-checked=true] .knob {transform:translateX(16px);background:#081c18}
button.setting-link {width:100%;padding:0;border-radius:8px;background:transparent;box-shadow:none;font-weight:400;text-align:start}
.setting-link svg {width:14px;height:14px;flex:none;transform:scaleX(-1);color:#9db3a8}
button.setting-small {min-height:28px;min-width:0;padding:0 10px;border-radius:14px;font-size:12px;font-weight:400;position:relative;
 background:linear-gradient(180deg,rgba(244,235,221,.16),rgba(244,235,221,.07));box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 2px 6px rgba(0,0,0,.3)}
button.setting-small:after {content:"";position:absolute;inset:-8px 0}
button.setting-logout {margin-top:auto;flex:none;min-height:40px;border-radius:20px;background:rgba(155,36,59,.22);box-shadow:none;color:#ff9a8b;font-size:14px}
.setting,.step {display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px}
.step {justify-content:start}
.step b {border:1px solid #d7b67580;border-radius:50%;padding:6px 10px;color:var(--gold)}
label,.form-field {display:grid;gap:4px}
input,textarea,select {min-width:0;width:100%;min-height:44px;border:1px solid #769b8880;background:#071f19;color:var(--ink);padding:8px 10px;border-radius:10px}
input:focus-visible,select:focus-visible,textarea:focus-visible {outline-offset:-3px}
textarea {resize:vertical}
.avatar-preview {width:74px;height:74px;border-radius:50%;background:#e6d9c2;align-self:center}
.avatar-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(46px,1fr));gap:7px;overflow:auto;min-height:64px;max-height:185px;padding:4px}
.avatar-grid button {padding:2px;box-shadow:none;border:2px solid transparent;background:#213d34;border-radius:12px}
.avatar-grid button[aria-pressed=true] {border-color:var(--gold)}
.avatar-grid img {width:42px;height:42px;margin:auto}
.state-frame {min-height:300px;display:grid;align-content:center;justify-items:center;gap:12px;padding:22px;text-align:center}
.state-frame>img {width:84px}
.modal-backdrop {position:fixed;inset:0;z-index:10;background:#041510c9;display:grid;place-items:center;padding:16px}
.modal-backdrop .pane {max-width:450px;max-height:90svh;overflow:auto}
.notice {color:#ffe2a0}
@media (orientation:portrait) {
 .hall,.portal-page {width:min(100%,620px);height:auto;min-height:var(--full-height)}
 .hall {grid-template:"top" auto "welcome" auto "games" auto "quick" auto "friends" minmax(110px,1fr)/minmax(0,1fr);
  padding:clamp(14px,5.8vh,52px) 16px 22px;gap:14px;overflow:visible;background:radial-gradient(ellipse 110% 60% at 50% 18%,#17523f,#124434 38%,#0c3229 70%,#05130f)}
 .hall.no-friends {grid-template-columns:1fr}
 .lobby-head {flex-wrap:wrap;gap:5px}
 .lobby-tools {gap:4px}
 .banner {order:3;flex-basis:100%;max-width:none}
 .concierge {height:clamp(66px,9.5vh,84px);display:flex;gap:10px;align-items:center}
 .concierge picture,.concierge picture img {position:static;height:100%;width:auto}
 .bubble {position:static;max-width:72%}
 .game-list {flex:none;flex-direction:column;align-items:stretch;gap:10px;overflow:visible;padding:0}
 .game-dots {display:none}
 .game-card {flex:none;height:76px;transform:none;margin:0;justify-content:space-between;padding:12px 18px;transition:height .25s}
 .game-card[data-active=true] {height:168px}
 .game-card:not([data-active=true]) .play {display:none}
 .game-card:not([data-active=true])::after {content:"";position:absolute;right:18px;top:30px;width:9px;height:9px;border:solid #f4ebddcc;border-width:0 2px 2px 0;transform:rotate(45deg)}
 .game-art {position:absolute;inset:0 0 0 auto;width:48%;height:100%}
 .pool .game-art {width:100%;mask-image:linear-gradient(90deg,transparent 5%,black)}
 .game-details {position:relative;border:0;width:auto;padding:0;max-width:60%}
 .game-details h2 {font-size:24px}
 .play {align-self:start;position:relative;min-width:92px;margin:0}
 .friends-bar {padding:10px 14px;position:relative;gap:8px}
 .friends-head {justify-content:start}
 .friends-bar>.gold {position:absolute;top:8px;right:10px;width:auto}
 .friend-list {display:flex;gap:8px}
 .friend {flex-direction:column;width:auto}
 .portal-page {padding:16px;overflow:visible}
 .columns,.settings-grid,.guide-grid {display:flex;flex-direction:column;overflow:visible;gap:14px}
 .settings-grid {padding:16px}
 .settings-col .setting {min-height:44px}
 button.setting-logout {margin-top:14px;min-height:44px}
 .settings-scroll,.portal-body {overflow:visible}
}
@media (orientation:landscape) and (max-width:740px) {
 .hall {grid-template-columns:minmax(110px,1.17fr) minmax(230px,2fr) minmax(138px,1fr);gap:5px 9px;padding-inline:12px}
 .bubble {max-width:75%;right:0}
 .columns {gap:12px}
}
.portal-error {position:fixed;z-index:12;bottom:max(8px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:8px 15px;border-radius:14px;background:#50202a;color:white;box-shadow:var(--shadow)}
dialog.pane:not([open]) {display:none}
dialog.pane {color:var(--ink);border:1px solid #d7b67580}
dialog::backdrop {background:#05130fc9}
.reduce-motion * {scroll-behavior:auto!important;animation-duration:.01ms!important}
.game-details {min-height:66px}
.pool .play {background:var(--glass);color:var(--ink);box-shadow:var(--shadow)}
@media (orientation:portrait) { .game-details {min-height:0} }

#portal:has(.login-layout),.portal-page:has(.login-layout) {min-width:0;max-width:100%}
.portal-page:has(.login-layout) {background:radial-gradient(ellipse 70% 90% at 50% 30%,#17523f,#124434 38%,#0c3229 70%,#05130f)}
.login-layout {grid-template-areas:"intro guide" "consent guide";grid-template-rows:minmax(min-content,1fr) auto;
 grid-template-columns:minmax(0,360fr) minmax(0,412fr);row-gap:10px;padding:0}
.login-intro {grid-area:intro;min-width:0;background:none;box-shadow:none;padding:2px 0 0;gap:10px}
.login-welcome {display:flex;align-items:center;gap:14px}
.login-welcome h2,.portal-page:has(.login-layout) h1 {font-family:"Noto Serif SC",Georgia,serif;font-weight:900;
 background:linear-gradient(180deg,#ecd9ae 10%,#d7b675 55%,#c4a260);background-clip:text;color:transparent}
.login-welcome h2 {font-size:24px;line-height:30px}
.login-welcome p,.login-copy {font-size:13px;color:var(--muted)}
.login-copy {margin-top:2px;line-height:20px}
.login-badge {flex:none;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:radial-gradient(circle,#d7b67555,#d7b67514);color:#ecd9ae}
.login-badge svg {width:26px;height:26px}
.login-intro .login-action {margin-top:auto;text-align:center;align-items:stretch}
.login-action .gold {display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;border-radius:24px;font-size:16px;font-weight:700;
 box-shadow:inset 0 1px 0 #ffffff80,0 3px 8px #0006;white-space:normal}
.login-action .gold svg {flex:none;width:20px;height:20px}
.login-action .login-switch {align-self:center;font-size:12px;text-decoration:underline}
.login-guide {grid-area:guide;display:flex;flex-direction:column;min-width:0;gap:8px;border-radius:20px;padding:14px 16px;
 background:linear-gradient(180deg,#1b3f369e,#05130f8c);box-shadow:inset 0 1px 0 #ffffff1a,0 12px 32px #0007}
.login-steps {flex:1;padding:0;gap:8px;background:none;box-shadow:none}
.login-steps h2 {margin-bottom:2px;font:600 15px/22px Inter,"Noto Sans SC","Noto Sans Khmer",system-ui,sans-serif;color:var(--ink)}
.login-steps .step {flex:none;gap:12px;min-height:52px;padding:4px 14px;border-radius:14px;background:linear-gradient(180deg,#f4ebdd1a,#f4ebdd0a);
 box-shadow:inset 0 1px 0 #ffffff1a}
.login-steps .step b {width:26px;height:26px;flex:none;display:grid;place-items:center;padding:0;border:0;
 background:var(--button-gold);color:#081c18;font:700 13px/1 Inter,sans-serif;box-shadow:inset 0 1px 0 #ffffff80,0 3px 8px #0006}
.login-steps .step strong {display:block;font-size:14px;font-weight:600;line-height:19px}
.login-steps .step p {line-height:16px}
.login-layout .consent {grid-area:consent;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;
 font-size:12px;line-height:17px;color:#9db3a8;text-align:center}
.login-layout a,.login-help summary {color:var(--gold)}
.login-layout .consent a {text-decoration:none}
.login-help {min-width:0;max-width:100%;font-size:12px}
.login-help summary {cursor:pointer;width:fit-content;padding-block:6px}
.login-help form {margin-top:5px}
.login-help label {grid-template-columns:minmax(0,1fr)}
.login-help input {width:100%;max-width:100%;font-size:16px}
.login-language {margin-inline-start:auto;width:auto;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:12px}
@media (orientation:landscape) {
 .portal-page:has(.login-layout) {padding:6px clamp(12px,2.84vw,32px) 12px;gap:12px}
 .login-layout {column-gap:clamp(12px,2.84vw,24px)}
}
@media (orientation:portrait), (max-width:460px) {
 .portal-page:has(.login-layout) {align-self:start;width:min(100%,620px);height:auto;min-height:var(--full-height);padding:12px 16px;gap:10px}
 .login-layout {display:flex;flex-direction:column;overflow:visible;gap:14px}
 .login-layout {flex:1 0 auto}
 .login-intro,.login-guide {flex:none}
 .login-intro {gap:12px}
 .login-intro .login-action {margin-top:8px}
 .login-steps {flex:none}
 .login-layout .consent {margin-top:auto;padding-bottom:max(4px,env(safe-area-inset-bottom))}
}
@media (max-width:620px) and (max-height:720px) {
 .portal-page:has(.login-layout) {padding-block:8px;gap:4px}
 .login-layout,.login-guide {gap:8px}
 .login-intro,.login-action,.login-steps {gap:4px}
 .login-guide {padding:8px 12px}
}
@media (orientation:portrait) {
 .game-card.poker .chip {display:none}
}

@media (orientation:portrait) and (max-width:380px) { .lobby-head {gap:3px}.lobby-tools {gap:2px}.profile-pill {padding-inline-end:6px} }

.hall:has(.net-banner) {grid-template-rows:auto auto 1fr auto}
.hall:has(.net-banner) .net-banner {grid-column:1/-1;grid-row:2}
.hall:has(.net-banner) .game-zone,.hall:has(.net-banner) .friends-bar,.hall:has(.net-banner) .concierge {grid-row:3}
.hall:has(.net-banner) .shortcuts {grid-row:4}
.net-banner {background:#1b3f36;display:flex;align-items:center;justify-content:center;gap:12px}
@media (orientation:portrait) {
 .hall:has(.net-banner) {display:flex;flex-direction:column}
 .net-banner {order:-1}
}
/* The portal owns its viewport. Poker supplies its own shell for the shared states. */
body:has(#portal > .state-frame) {padding:0}
#portal > .state-frame {
 width:100%;min-height:var(--full-height);
 padding:calc(22px + var(--safe-top)) calc(22px + var(--safe-right))
         calc(22px + var(--safe-bottom)) calc(22px + var(--safe-left));
}
@media (orientation:portrait) {
 body:has(#portal > :is(.hall,.portal-page)) {padding:0}
 #portal > :is(.hall,.portal-page) {
  min-height:var(--full-height);
  border:solid transparent;
  border-width:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
 }
}
.state-frame:has(.loading-track) {gap:14px}
.state-frame .loading-track {width:220px;height:6px;border-radius:3px;background:#05130f99;overflow:hidden}
.loading-track:before {content:"";display:block;width:64%;height:100%;background:linear-gradient(90deg,#b99a57,#ecd9ae)}
.state-frame:has(.loading-track) small {position:absolute;bottom:calc(14px + var(--safe-bottom));left:var(--safe-left);right:var(--safe-right)}
.update-prompt {width:min(400px,calc(100vw - 32px));padding:24px;gap:16px;text-align:center}
.update-prompt .button-row {justify-content:center}
.update-prompt .button-row button {min-width:110px}
.avatar-heading {display:flex;align-items:center;justify-content:space-between;gap:8px}
@media (orientation:landscape) {
 .profile-form {grid-template-columns:minmax(190px,29%) minmax(0,1fr)}
 .profile-form>.pane {display:grid;grid-template-rows:auto minmax(48px,1fr) auto;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:0}
 .profile-form .avatar-heading,.profile-form .avatar-grid {grid-column:1/-1}
 .profile-form .avatar-grid {max-height:none;min-height:0;align-content:start}
 .profile-form .pane>p {align-self:center;font-size:12px}
 .profile-form .pane>button {min-width:88px}
 .guide-steps {grid-template-columns:repeat(4,minmax(0,1fr));flex:1}
 .guide-steps>.pane {padding:14px}
 .guide-steps+.button-row {justify-content:flex-end}
 .membership-columns>:first-child>button.gold {margin-top:auto}
}
@media (orientation:portrait) {
 .avatar-heading {flex-wrap:wrap}
 .avatar-heading button {flex-shrink:0}
}

.restriction-summary {display:contents}
@media (orientation:portrait) {
 .membership-columns,.profile-form {flex:1 0 auto}
 .membership-columns>.pane {flex:1 0 auto;justify-content:space-evenly}
 .profile-form>.pane {flex:1 0 auto}
 .profile-form .avatar-grid {
  flex:1 1 auto;height:0;min-height:116px;max-height:none;grid-auto-rows:46px;align-content:start
 }
 .restriction-details {flex:1 0 auto;background:none;box-shadow:none;padding:0}
 .restriction-summary {
  display:grid;gap:9px;margin-block:auto;padding:18px 16px;
  background:var(--glass);box-shadow:var(--shadow);border-radius:20px
 }
}

@media (orientation:landscape) and (max-width:740px) {
 .settings-grid {gap:12px;padding:12px}
 .setting-ok {font-size:12px}
 button.setting-small {padding:0 7px;font-size:11px}
 .settings-col .setting {gap:6px}
}

/* Notification settings use the same sheet, switches and navigation rows as board 04. */
@font-face {
 font-family:"Reminder Khmer";
 src:url("/assets/vis/fonts/notosanskhmer.woff2") format("woff2");
 font-weight:100 900;font-display:swap;unicode-range:U+1780-17FF,U+19E0-19FF
}
.portal-page:has(.settings-grid) {font-family:Inter,"Reminder Khmer","Noto Sans SC",system-ui,sans-serif;gap:12px}
.portal-page:has(.settings-grid) .page-head {min-height:40px}
.portal-page:has(.settings-grid) .page-head h1 {font-weight:900;line-height:32px;color:var(--accent)}
.portal-page:has(.settings-grid) .page-head .icon {width:40px;height:40px;min-width:40px;min-height:40px;padding:10px}
.portal-page:has(.settings-grid) .head-coins {min-height:36px;padding:0 14px 0 4px;gap:8px;font-size:16px;color:var(--accent)}
.portal-page:has(.settings-grid) .head-coins .coin {width:28px;height:28px}
.notification-settings {display:grid;gap:2px}
.notification-settings .setting-meta {color:var(--text-muted)}
.notification-settings .reminders-off,.reminder-foot {color:var(--text-disabled)}
.reminder-types .setting {min-height:50px;padding:3px 0;gap:10px;white-space:normal}
.reminder-types .setting-name {line-height:20px;overflow:visible;overflow-wrap:anywhere}
.reminder-detail {display:block;margin-top:1px;color:var(--text-subtle);font-size:11px;line-height:16px}
.reminder-foot {margin-top:auto;font-size:11px;line-height:16px}
.reminder-foot p {margin:0}
@media (orientation:portrait) {
 .portal-page:has(.settings-grid) {padding-top:10px}
 .settings-scroll:has(.settings-grid) {flex:none}
 .settings-grid {padding:14px 18px 18px;gap:10px}
 .settings-grid:not(.reminder-types) .setting {min-height:32px}
 .reminder-types {gap:8px}
 .reminder-types .settings-col+.settings-col {padding-top:8px}
 .settings-col+.settings-col {padding-top:10px;border-top:1px solid var(--border)}
 .reminder-types .reminder-foot {margin:10px 0 0;font-size:12px;line-height:18px}
}

/* Telegram fullscreen controls: shared insets from telegram-safe.mjs. */
[data-telegram-overlay] body {--safe-top:max(env(safe-area-inset-top),var(--huper-tg-top,0px))}
@media (orientation:landscape) {
 [data-telegram-overlay] body {--safe-top:env(safe-area-inset-top)}
 [data-telegram-overlay] :is(.lobby-head,.page-head,.soc-head) {padding-inline:var(--huper-tg-left) var(--huper-tg-right)}
}

/* One felt for the whole webview: the page frames no longer paint their own copy, which showed
   as lighter side strips beside the notch insets. */
.hall,.portal-page,.state-frame {background:none}
.hall:before,.portal-page:before,.state-frame:before {content:none}

/* Leo 11-30: the hostess stands a little further left so her hand clears the first game card. */
@media (orientation:landscape) { .concierge picture {transform:translateX(-14px)} .bubble {right:6%} }

/* Board 132 · language */
.language-sheet {flex:1;width:min(100%,500px);margin:0 auto;padding:14px 16px;display:flex;flex-direction:column;gap:8px;min-height:0;overflow:auto}
button.language-row {flex:none;min-height:56px;padding:0 16px;border-radius:14px;display:flex;align-items:center;gap:12px;text-align:start;background:#f4ebdd0d;box-shadow:none;color:var(--ink)}
button.language-row[aria-pressed=true] {background:linear-gradient(90deg,#d7b6753d,#d7b6750f);box-shadow:inset 0 0 0 1.5px var(--gold);color:var(--ink)}
button.language-row[aria-pressed=true]::after {content:"✓";color:#ecd9ae;font-size:18px;font-weight:700}
.language-names {flex:1;display:flex;flex-direction:column}
.language-names strong {font-size:15px;font-weight:700}
.language-names small {font-size:12px;color:var(--muted);font-weight:400}
.language-sheet p {margin:auto 0 0;font-size:12px;line-height:18px;color:#9db3a8}
.settings-scroll>.language-sheet {width:min(100%,500px);max-width:500px;justify-self:center;align-self:center;height:100%;box-sizing:border-box}
.open-source {grid-column:1/-1;margin:2px 0 0;font-size:11px;line-height:16px;color:#9db3a880}
.open-source a {color:inherit;text-decoration:underline}
/* Leo 2026-11-30, portrait lobby: the invite pill was as tall as the whole friends heading; friend names ran
   into each other. */
@media (orientation:portrait) {
 .friends-bar>.gold {top:7px;min-height:32px;height:32px;padding:0 14px;border-radius:16px;font-size:13px;line-height:1}
 .friend-list {overflow-x:auto;scrollbar-width:none}
 .friend {flex:0 0 66px;max-width:66px;min-width:0}
 .friend-row {flex:0 0 66px;max-width:66px;min-width:0;min-height:0;padding:0;background:none}
 .friend-row .friend-ask {display:none}
 .friend-face img {width:32px;height:32px}
 .friends-head .friend-add {display:none}
 .friend>span {display:block;max-width:66px;text-align:center}
 .friend strong,.friend small {display:block;max-width:66px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* Coins: the gold coin glyph, the lobby balance pill, the wallet, the seven-day strip and the history rows. */
.coin {flex:none;display:inline-block;width:1.25em;height:1.25em;background:url(/portal/assets/coin.svg?v=e696f3b9f5) center/contain no-repeat;filter:drop-shadow(0 1px 2px #00000080)}
.coin-pill {position:relative;min-height:36px;padding:0 12px 0 8px;border-radius:18px;display:inline-flex;align-items:center;gap:6px;font-size:14px;font-variant-numeric:tabular-nums}
.coin-pill .coin {font-size:16px}
.badge.dot {width:9px;height:9px;padding:0;right:1px;top:1px}
.coin-balance {display:flex;align-items:center;gap:12px;margin-bottom:12px}
.coin-balance>.coin {font-size:34px}
.coin-balance small {display:block;font-size:12px;opacity:.7}
.coin-balance strong {display:block;font-size:30px;line-height:36px;font-variant-numeric:tabular-nums;color:#ecd9ae}
.coin-use,.coin-way {display:flex;align-items:center;gap:10px;width:100%;min-height:52px;margin:0 0 8px;padding:8px 12px;border-radius:14px;background:#0000002e;box-shadow:inset 0 0 0 1px #ffffff12;text-align:start}
.coin-use {flex-direction:column;align-items:flex-start;gap:0;justify-content:center}
.coin-use small,.coin-way small {display:block;font-size:12px;opacity:.7}
.coin-way>span {flex:1;min-width:0}
.coin-way>b {color:#7fd6a4;font-variant-numeric:tabular-nums}
.coin-amount {display:inline-flex;align-items:center;gap:8px}
.coin-row {display:flex;align-items:center;justify-content:space-between;gap:12px}
.coin-row .coin-balance {margin:0}
/* Board Coins (Leo 12-03 继续优化): the left side sits on the felt — a big balance, two use buttons with icons and
   chevrons, then daily coins, tasks and history as pills. */
.coin-side {display:flex;flex-direction:column;gap:10px;min-width:0;padding:2px 0}
.coin-side .coin-balance {margin:0 0 4px}
.coin-side .coin-balance>.coin {font-size:50px}
.coin-side .coin-balance strong {font-size:34px;line-height:40px}
.coin-side .coin-use {flex-direction:row;align-items:center;gap:12px;min-height:56px;margin:0;padding:0 14px;color:#f4ebdd;background:linear-gradient(180deg,#f4ebdd29,#f4ebdd12);box-shadow:inset 0 1px 0 #ffffff29,0 2px 6px #0000004d}
.coin-side .coin-use>span:not(.line-icon) {flex:1;min-width:0;display:flex;flex-direction:column}
.coin-side .coin-use strong {font-size:14px;line-height:20px}
.coin-side .coin-use small {opacity:1;color:#bccabf;line-height:16px}
.coin-side .coin-use-icon {width:24px;height:24px;color:#ecd9ae}
.coin-side .coin-use-icon svg {width:24px;height:24px}
.coin-side .coin-use-go {color:#9db3a8}
.coin-side .coin-use-go svg {width:16px;height:16px}
.coin-links {flex-wrap:nowrap;gap:8px}
.coin-links button {flex:1;min-width:0;height:40px;border-radius:20px;background:#05130f73;box-shadow:none;font-size:13px;white-space:nowrap}
.coin-links button:first-child {color:#ecd9ae}
.daily-strip {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:12px 0}
.daily-day {display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 2px;border-radius:12px;background:#0000002e;box-shadow:inset 0 0 0 1px #ffffff12}
.daily-day small {font-size:11px;opacity:.7;white-space:nowrap}
.daily-day .coin {font-size:20px}
.daily-day b {font-size:14px;font-variant-numeric:tabular-nums}
.daily-day i {min-height:14px;font-style:normal;font-size:10px;line-height:14px;opacity:.75}
.daily-day.done {opacity:.55}
.daily-day.today {box-shadow:inset 0 0 0 1.5px #d7b675;background:#d7b6751f}
.daily-day.today i {padding:0 6px;border-radius:7px;color:#1b1608;background:#ecd9ae;opacity:1}
button.wide {width:100%;min-height:48px;justify-content:center}
.daily-done {margin:0;padding:12px;border-radius:14px;text-align:center;background:#0000002e}
.daily-note {display:block;margin-top:10px;font-size:12px;opacity:.7}
.coin-log>span {flex:1;min-width:0}
.coin-log small {display:block;font-size:12px;opacity:.7}
.setting .plus {color:#7fd6a4}
.setting .minus {color:#e9a6a6}
@media (orientation:portrait) { .daily-strip {grid-template-columns:repeat(4,minmax(0,1fr))} .coin-pill {padding:0 9px 0 6px;font-size:13px} }

/* Tasks and friends ranking (boards Tasks / TasksWeekly / Rank) */
.seg {display:inline-flex;align-self:flex-start;gap:4px;padding:4px;border-radius:14px;background:#0000003d}
.seg button {min-height:36px;padding:0 16px;border-radius:10px;background:none;box-shadow:none;font-size:14px;opacity:.7}
.seg button.on {background:#ffffff1f;opacity:1;color:#ecd9ae;font-weight:700}
.task-count {display:flex;align-items:baseline;gap:8px}
.task-count strong {font-size:44px;line-height:48px;color:#ecd9ae;font-variant-numeric:tabular-nums}
.task-count span {opacity:.75;font-size:14px}
.task-bar {display:block;height:6px;border-radius:3px;background:#00000052;overflow:hidden}
.task-bar i {display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#b8935a,#ecd9ae)}
.task-row {display:flex;align-items:center;gap:12px;min-height:56px;padding:6px 10px;border-radius:14px}
.task-row.ready {background:#ffffff14}
.task-row.claimed {opacity:.55}
.task-main {flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.task-title {display:flex;justify-content:space-between;gap:8px;font-size:14px}
.task-title small {opacity:.7;font-variant-numeric:tabular-nums}
.task-row .coin-amount {min-width:64px}
.task-row button {min-height:36px;min-width:76px;padding:0 12px;font-size:14px}
.task-done {min-width:76px;text-align:center;font-size:13px;color:#7fd6a4}
.task-bonus button {min-height:36px;padding:0 14px}
.podiums {flex:1;display:flex;align-items:flex-end;justify-content:center;gap:14px;min-height:150px}
.podium {display:flex;flex-direction:column;align-items:center;gap:2px;width:88px;position:relative;font-size:13px}
.podium .rank-face {width:54px;height:54px}
.podium.p1 .rank-face {width:68px;height:68px;box-shadow:0 0 0 3px #d9b676}
.podium i {margin-top:-12px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#d9b676;color:#1a140a;font-style:normal;font-weight:700;font-size:12px;z-index:1}
.podium.p2 i {background:#cfd6d4} .podium.p3 i {background:#b9814f}
.podium span {max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.podium strong {color:#ecd9ae;font-variant-numeric:tabular-nums}
.podium-step {width:100%;height:26px;margin-top:4px;border-radius:10px 10px 0 0;background:#ffffff12}
.podium.p1 .podium-step {height:48px} .podium.p2 .podium-step {height:36px}
.rank-face {width:34px;height:34px;border-radius:50%;object-fit:cover;background:#ffffff1a;flex:none}
.rank-row {gap:10px;padding:4px 8px;border-radius:12px}
.rank-row.me {background:#ffffff14}
.rank-row.me strong,.podium.me span {color:#ecd9ae}
.rank-no {width:22px;text-align:center;opacity:.7;font-variant-numeric:tabular-nums}
.rank-foot {margin-top:auto}
.tasks-page>.pane {overflow:auto}
.tasks-page .coin-way {min-height:44px;margin:0;padding:6px 12px}
.task-count strong {font-size:36px;line-height:40px}
.podiums {min-height:0;overflow:hidden}
.podium-step {height:12px} .podium.p1 .podium-step {height:30px} .podium.p2 .podium-step {height:20px}
.task-title small {white-space:nowrap}

.rank-tabs {display:flex;flex-wrap:wrap;gap:8px}
.rank-list {flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:4px}
.rank-gap {height:1px;margin:4px 8px;background:#ffffff1f}
.rank-page>.pane {min-height:0}
.rank-no {width:auto;min-width:22px;white-space:nowrap}
/* Portrait lobby (Leo 2026-12-01): a larger greeter whose lower edge tucks behind the poker card, no gap between
   them, and the greeting a little further right. */
@media (orientation:portrait) {
 .concierge {align-items:flex-end;margin-bottom:-26px;z-index:0}
 .concierge picture {flex:none;height:150%}
 .concierge picture img {height:100%;display:block}
 .bubble {align-self:center;margin-left:12px;margin-bottom:22px}
 .game-zone {position:relative;z-index:1}
}

/* Lobby notice from the back office: floats above the layout, never takes a grid cell. */
.hall .announce {position:fixed;z-index:30;left:50%;top:calc(env(safe-area-inset-top,0px) + 8px);transform:translateX(-50%);max-width:min(560px,calc(100vw - 32px));display:flex;align-items:center;gap:10px;padding:8px 8px 8px 16px;border-radius:999px;font-size:13px;line-height:18px;color:var(--ink);background:var(--glass);backdrop-filter:blur(10px);box-shadow:inset 0 0 0 1px var(--gold),var(--shadow)}
.hall .announce[hidden] {display:none}
.hall .announce span {min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.hall .announce .announce-close {flex:none;width:28px;height:28px;min-height:0;padding:0;border-radius:50%;font-size:18px;line-height:1;color:var(--muted);background:none;border:0}

/* Text ad (boards Main / PkvSettle / PoolWin): dark-blue gradient pill, brand in white with a gold accent, one line of
   copy and an "Ad" tag. Leo 2026-12-01. */
.banner.text-ad {display:flex;align-items:center;gap:10px;height:36px;padding:0 6px 0 14px;border-radius:18px;box-sizing:border-box;min-width:0;
  background:linear-gradient(90deg,#0b2233 0%,#123a52 55%,#0b2233 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 6px 16px rgba(0,0,0,.45);
  color:#d5e6f0;text-decoration:none;white-space:nowrap;overflow:hidden}
.text-ad .ta-brand {flex:none;font-size:14px;font-weight:800;line-height:1;letter-spacing:.02em;color:#fff}
.text-ad .ta-brand i {font-style:normal;color:#ffcf5a}
.text-ad .ta-copy {flex:1;min-width:0;font-size:13px;overflow:hidden;text-overflow:ellipsis}
.text-ad .ta-tag {flex:none;height:24px;padding:0 8px;border-radius:12px;background:rgba(255,255,255,.14);font-size:11px;line-height:24px;color:#cfe0ea}
/* Bottom edge level with the bottom of the shortcut labels on the right (row is 62px; icon 38 + gap 3 + label 16 = 57). */
.hall-ad {grid-row:3;grid-column:1;align-self:end;z-index:2;min-width:0;margin-bottom:5px}
.hall-ad .banner.text-ad {max-width:none;width:100%}
@media (orientation:portrait) {
  .hall:has(> .hall-ad) {grid-template:"top" auto "welcome" auto "games" auto "quick" auto "friends" minmax(110px,1fr) "ad" auto/minmax(0,1fr)}
  .hall-ad {grid-area:ad;margin-bottom:0;padding-bottom:6px}
}
.hall:has(.net-banner) .hall-ad {grid-row:4}
/* Leo 2026-12-01: the first place ring (3px) was cut off by the clipped podium row when its avatar reached the top. */
.podiums {padding-top:6px}

/* Boards Tasks / TasksWeekly / RankAll (Leo 2026-12-02): the tabs and the coin balance sit in the page head, task
   rows carry a line icon, the left column stands straight on the felt. Portrait puts the tabs on their own row. */
.page-head-wide {position:relative}
.page-head .head-tabs {margin-left:8px}
.page-head .head-tabs.center {position:absolute;left:50%;transform:translateX(-50%);margin:0}
.page-head .head-coins {margin-left:auto}
.page-head .seg {align-self:center}
.page-head .rank-tabs {display:flex;flex-wrap:nowrap;gap:8px}
.line-icon,.task-icon {flex:none;display:inline-grid;place-items:center;width:22px;height:22px;color:#d7b675}
.line-icon svg,.task-icon svg {width:20px;height:20px}
.task-icon {color:#bccabf}
.task-row.ready .task-icon {color:#ecd9ae}
.coin-way>:is(.line-icon,.coin,.coin-amount) {flex:none}
.coin-way>.coin {font-size:20px}
.way-more {width:18px;height:18px;margin-left:2px;color:#9db3a8}
.way-more svg {width:16px;height:16px}
.task-side {display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0;padding:2px}
.task-side>.daily-note {margin-top:auto}
.task-side .coin-way {margin:0;background:#ffffff0f;box-shadow:inset 0 1px 0 #ffffff14}
.task-side .task-bonus {background:linear-gradient(180deg,#d7b67533,#d7b6751a);box-shadow:inset 0 0 0 1px #d7b67559}
.task-side .coin-way .coin-amount b {color:#ecd9ae}
.task-stats {display:flex;flex-direction:column;gap:2px;padding:8px 12px;border-radius:14px;background:#00000038}
.task-stats .setting {min-height:30px}
.task-list {display:flex;flex-direction:column;gap:4px;min-height:0}
.task-row {min-height:48px;padding:4px 10px}
.tasks-page.weekly .task-list {gap:8px}
.tasks-page.weekly .task-row {min-height:56px;background:#ffffff0d;box-shadow:inset 0 1px 0 #ffffff0f}
.tasks-page.weekly .task-row.ready {background:#ffffff1a}
.task-row .coin-amount b {font-size:15px;font-weight:700}
.rank-side {display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0;padding:2px}
.task-side .coin-way>span:not([class]) {overflow:hidden}
.task-side .coin-way small {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (orientation:landscape) {
  .tasks-page {grid-template-columns:minmax(0,.56fr) minmax(0,1fr)}
  .page-head .head-coins {min-height:40px;padding:0 14px 0 8px;font-size:16px;font-weight:700}
  .page-head .head-coins .coin {font-size:22px}
}
@media (orientation:landscape) and (max-width:760px) {
  .tasks-page {grid-template-columns:minmax(0,.78fr) minmax(0,1fr)}
  .task-icon {display:none}
  .task-side .coin-way strong {white-space:nowrap}
  .task-row {gap:8px}
  .task-title {font-size:13px}
  .task-title strong {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .task-row .coin-amount {min-width:50px;gap:5px}
  .task-row button {min-width:62px;padding:0 9px}
}
@media (orientation:portrait) {
  .page-head-wide {flex-wrap:wrap;row-gap:8px}
  .task-icon {display:none}
  .page-head .head-tabs,.page-head .head-tabs.center {position:static;transform:none;order:5;flex-basis:100%;margin:0}
  .page-head .rank-tabs {justify-content:flex-start}
  .task-side>.daily-note {margin-top:0}
}

/* Leo 2026-12-03 发提醒: a staff reminder over the lobby, once. */
.hall .staff-notice {z-index:40;padding:24px}
.hall .staff-notice-card {width:min(420px,100%);display:grid;gap:12px;padding:20px 20px 18px;border-radius:20px;background:var(--glass);backdrop-filter:blur(12px);box-shadow:inset 0 0 0 1px var(--gold),var(--shadow)}
.hall .staff-notice-card small {font-size:12px;color:var(--muted)}
.hall .staff-notice-card p {margin:0;font-size:15px;line-height:23px;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}
.hall .staff-notice-card button {justify-self:end;min-width:110px}

/* Leo 2026-12-03 图片广告位: the lobby banner keeps the picture's own shape (1056 × 108). */
.banner.pic img {height:auto;aspect-ratio:1056/108;object-fit:cover;border-radius:10px}

/* Leo 2026-12-03 玩家页面逐页精修 (boards Record / Daily / CoinLog / Guide / Support / Profile / Settings). */
.line-icon {display:inline-flex;flex:none}
.line-icon svg {width:18px;height:18px}
.page-head .head-push {margin-left:auto}
.page-head .head-coins+.head-home {margin-left:0}
.page-head .head-home {min-height:36px;padding:0 14px 0 10px;border-radius:18px;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;flex:none}
.records-page {grid-template-columns:minmax(200px,38%) minmax(0,1fr)}
.record-side {display:flex;flex-direction:column;gap:10px;min-height:0}
.record-sum {display:flex;flex-direction:column;gap:2px;padding:12px 14px}
.record-sum .record-game {font-size:12px;color:#c9d6cd}
.record-sum strong {font-size:22px;line-height:28px;color:#ecd9ae;font-variant-numeric:tabular-nums}
.record-sum small {font-size:12px;color:#9db3a8}
.record-links {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto}
.record-links button {min-height:40px}
.record-list {display:flex;flex-direction:column;gap:6px;overflow:auto;min-height:0}
.record-row {display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 12px;border-radius:12px;background:#ffffff0d}
.record-row>span:not(.line-icon) {flex:1;display:flex;flex-direction:column;min-width:0}
.record-row strong {font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.record-row small {font-size:11px;color:#9db3a8}
.record-row b {font-size:14px;font-variant-numeric:tabular-nums}
.record-row b.plus {color:var(--success,#6fd3a0)} .record-row b.minus {color:var(--danger,#ff9a8b)}
.record-empty {margin:6px 0 10px;color:#9db3a8}
.daily-page {flex:1;display:grid;grid-template-columns:minmax(150px,26%) minmax(0,1fr);gap:16px;min-height:0}
.daily-concierge {position:relative;min-height:0;overflow:hidden}
.daily-concierge picture,.daily-concierge img {position:absolute;left:0;bottom:-18%;height:118%;width:auto;max-width:none}
.daily-concierge .bubble {left:12%;right:auto;top:8px;max-width:86%}
.daily-week {display:flex;flex-direction:column;gap:10px;min-width:0;justify-content:center}
.daily-line {display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.daily-line>span {font-size:14px;font-weight:600}
.daily-line b {font-size:18px;color:#ecd9ae;margin:0 2px}
.daily-line small {font-size:12px;color:#9db3a8}
.daily-more {display:flex;align-items:center;gap:10px;width:100%;min-height:44px}
.daily-more>span:nth-child(2) {flex:1;text-align:start;font-size:13px}
.coin-log-page {grid-template-columns:minmax(190px,32%) minmax(0,1fr)}
.coin-log-side {display:flex;flex-direction:column;gap:10px;min-height:0}
.coin-log-side .pane {padding:8px 14px;gap:0}
.coin-log-side .pane .setting {min-height:30px}
.coin-log-side .daily-note {margin-top:auto}
.coin-log-list {display:flex;flex-direction:column;gap:6px;overflow:auto;min-height:0}
.coin-log-row {display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;min-height:46px;padding:4px 12px;border-radius:12px;background:#ffffff0d}
.coin-log-row[hidden] {display:none}
.coin-log-row>span {display:flex;flex-direction:column;min-width:0}
.coin-log-row strong {font-size:13px}
.coin-log-row small {font-size:11px;color:#9db3a8}
.coin-log-row b {font-size:15px;font-variant-numeric:tabular-nums}
.coin-log-row b.plus {color:var(--success,#6fd3a0)} .coin-log-row b.minus {color:var(--danger,#ff9a8b)}
.coin-log-row time {font-size:12px;color:#9db3a8;white-space:nowrap}
.support-page {grid-template-columns:repeat(3,minmax(0,1fr))}
.support-page>.pane {display:flex;flex-direction:column;gap:8px}
.support-icon {display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#ecd9ae;background:#ffffff14}
.support-page .support-go {margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;gap:8px}
.support-label {font-size:12px;color:#9db3a8}
.support-id {display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:0 6px 0 12px;border-radius:10px;background:#0000002e}
.support-copy {min-height:32px;min-width:32px;padding:0;border-radius:8px;background:none;box-shadow:none}
.support-copy.done {color:#6fd3a0}
.support-note {margin-top:auto;font-size:12px;color:#9db3a8}
.guide-top {display:flex;align-items:center;justify-content:space-between}
.guide-icon {display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#ecd9ae;background:#ffffff14}
.guide-no {font-family:"Noto Serif SC",serif;font-size:28px;font-weight:900;color:#d7b675;line-height:1}
.guide-steps>.pane h2 {margin:8px 0 2px;font-size:15px}
.guide-buttons {justify-content:center}
@media (orientation:portrait) {
 .records-page,.coin-log-page,.support-page {display:flex;flex-direction:column}
 .record-links {margin-top:0}
 .daily-page {display:flex;flex-direction:column}
 .daily-concierge {display:none}
 .page-head .head-home span:last-child {display:none}
 .page-head .head-home {padding:0 10px}
}
.support-page>.pane h2,.guide-steps>.pane h2 {font-size:15px;line-height:22px}
.support-page>.pane p,.guide-steps>.pane p {font-size:12px;line-height:19px;color:#c9d6cd}
.support-go.gold .line-icon {color:#081c18}

/* Board Profile (Leo 2026-12-03 逐页精修). */
.profile-id {display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;color:#c9d6cd}
.profile-copy {min-height:28px;min-width:28px;padding:0;border-radius:8px}
.profile-copy.done {color:#6fd3a0}
.profile-chips {display:flex;justify-content:center;flex-wrap:wrap;gap:6px}
.profile-chip {display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:12px;font-size:12px;font-weight:600;color:#9db3a8;background:#ffffff12}
.profile-chip.ok {color:#6fd3a0;background:#6fd3a024}
.profile-tg {display:inline-flex;align-items:center;gap:6px}
.profile-tg .line-icon {display:grid;place-items:center;width:24px;height:24px;border-radius:50%;color:#fff;background:#2aa3e0}
.profile-tg .line-icon svg {width:14px;height:14px}

/* Records: the game label is a heading (small), the empty state has its own heading. */
.record-sum h2.record-game {margin:0;font-size:12px;font-weight:500;line-height:16px;color:#c9d6cd}
.record-empty-title {margin:4px 0 0;font-size:15px;color:#ecd9ae}

/* Boards Feedback / Logout (Leo 2026-12-03 逐页精修). */
.feedback-form {grid-template-columns:minmax(200px,32%) minmax(0,1fr);flex:1;min-height:0}
.feedback-side {display:flex;flex-direction:column;gap:10px;min-height:0}
.feedback-label {font-size:12px;color:#c9d6cd}
.feedback-topics {display:flex;flex-wrap:wrap;gap:8px}
.feedback-topics .chip {min-height:36px;padding:0 14px;border-radius:18px;font-size:13px;font-weight:600;color:#c9d6cd;background:#ffffff14;box-shadow:none}
.feedback-topics .chip[aria-pressed=true] {color:#ecd9ae;background:#d7b67533}
.feedback-note {margin-top:auto;font-size:12px;color:#9db3a8}
.feedback-main {display:flex;flex-direction:column;gap:10px;min-height:0}
.feedback-main textarea {flex:1;min-height:120px;width:100%;box-sizing:border-box;padding:12px 14px;border-radius:14px;border:0;resize:none;font:inherit;font-size:14px;color:inherit;background:#05130fb3}
.feedback-foot {display:flex;align-items:center;justify-content:space-between;gap:12px}
.feedback-count {font-size:12px;color:#9db3a8}
.feedback-foot .gold {min-width:128px}
.logout-page {display:grid;place-items:center}
.logout-card {width:min(380px,calc(100vw - 32px));display:flex;flex-direction:column;align-items:center;gap:6px;padding:22px 24px;text-align:center;
  box-shadow:0 0 0 1px #d7b67566,0 24px 60px #0008}
.logout-card h1 {margin:0 0 4px;font:900 22px/30px "Noto Serif SC",serif;color:#ecd9ae}
.logout-card p {margin:0;font-size:13px;color:#c9d6cd}
.logout-card .button-row {justify-content:center;margin-top:12px;gap:10px}
.logout-card .button-row button {min-width:120px}
.logout-card button.danger {color:#ff9a8b;background:#ff9a8b24}
@media (orientation:portrait) {
 .feedback-form {display:flex;flex-direction:column}
 .feedback-note {margin-top:0}
}

/* Leo 2026-12-03 (AA 对照): the chosen deck's four aces under 牌面. */
body:has(.settings-grid):before {background:radial-gradient(ellipse 70% 90% at 50% 30%,var(--felt-table-inner),color-mix(in srgb,var(--felt-table-inner) 56%,var(--felt-table-outer)) 38%,var(--felt-table-outer) 70%,var(--felt-950))}
body:has(.settings-grid):after {opacity:1;background:var(--grad-vignette),url('/portal/assets/felt-noise.png') repeat left top/200px}
.portal-page:has(.settings-grid) .glass {background:linear-gradient(180deg,color-mix(in srgb,var(--felt-700) 62%,transparent),color-mix(in srgb,var(--felt-950) 55%,transparent));backdrop-filter:blur(10px);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ivory-0) 10%,transparent),0 12px 32px color-mix(in srgb,var(--scrim) 63%,transparent)}
.deck-options {display:flex;gap:8px;padding:2px 0 4px}
.deck-options button {flex:1;min-width:0;min-height:58px;height:58px;padding:6px 0 4px;border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:4px;background:color-mix(in srgb,var(--felt-950) 35%,transparent);color:var(--text-muted);font-weight:500;font-size:12px;line-height:14px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ivory-100) 10%,transparent)}
.deck-options button[aria-pressed=true] {color:var(--gold-200);font-weight:600;background:color-mix(in srgb,var(--accent) 10%,transparent);box-shadow:inset 0 0 0 1.5px var(--accent),0 0 0 3px color-mix(in srgb,var(--accent) 16%,transparent)}
.deck-sample {display:flex;align-items:center;justify-content:center;gap:3px;max-width:100%}
.deck-sample img {width:22px;min-width:0;height:30px;border-radius:3px;box-shadow:var(--shadow-sm)}
.settings-main .settings-col:first-child h2 {margin-top:6px}
.settings-main .setting:has(.switch:disabled) .setting-name {color:var(--text-subtle)}
.settings-main .setting:has(.switch:disabled) .setting-meta {color:var(--text-disabled);font-size:12px}
.settings-main .setting-meta {text-align:end}
.settings-main .setting-link {gap:4px}
.settings-main .setting-link .setting-name {flex:none}
.settings-main .notification-settings .setting-meta {white-space:normal;line-height:16px}
.settings-main .settings-col>h2 {line-height:normal}
.reminder-types:has(>.reminder-warning) {grid-template-rows:auto 1fr;row-gap:8px;padding-top:12px}
.reminder-types:has(>.reminder-warning) .settings-col {opacity:.5}
.reminder-warning {grid-column:1/-1;min-height:40px;display:flex;align-items:center;gap:10px;padding:4px 6px 4px 12px;border-radius:12px;background:color-mix(in srgb,var(--warning) 10%,transparent);box-shadow:inset 3px 0 0 var(--warning);font-size:13px}
.reminder-warning>.line-icon {width:18px;height:18px;flex:none;color:var(--warning)}
.reminder-warning>button {margin-left:auto;min-height:30px;padding:0 16px;border-radius:15px;font-size:13px;flex:none;color:var(--on-accent);box-shadow:var(--shadow-btn-raised)}
@media (orientation:landscape) {
 .settings-main {padding-bottom:8px}
}
@media (orientation:portrait) {
 .settings-main {gap:8px}
 .settings-main .settings-col+.settings-col {padding-top:8px}
 .settings-main button.setting-logout {min-height:40px}
}

/* Board DailyDone (Leo 2026-12-03 第 2 批): the success card after claiming. */
.daily-success {width:min(360px,calc(100vw - 32px));padding:22px 20px;gap:10px;text-align:center;align-items:center}
.daily-success .daily-plus {display:flex;align-items:center;gap:8px;font-size:32px;line-height:38px;color:#ecd9ae}
.daily-success h2 {margin:0;font-size:18px}
.daily-success small {color:var(--muted)}
.daily-success .button-row {justify-content:center;width:100%}
.daily-success .button-row button {min-width:110px}
.coin-gift-note {margin:0;font-size:12px;color:var(--muted)}
.gate-sub,.gate-note,.restriction-warn {display:block;color:var(--muted);font-size:12px;line-height:17px}
.coin-help {flex-wrap:nowrap}
.coin-help button {flex:1;min-width:0}
.coin-way>.line-icon {width:22px;height:22px;color:#ecd9ae}
@media (orientation:landscape) and (max-height:520px){
 .coin-get h2 {font-size:15px;margin:0 0 4px}
 .coin-get .coin-way {min-height:42px;padding:5px 12px;margin:0 0 6px}
 .coin-get .coin-gift-note {font-size:11px;line-height:15px}
 .coin-get .button-row button {min-height:40px}
}

.policy-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.policy-board>.pane{padding:14px 16px}
.policy-board h2{margin:0 0 8px;font-size:15px}
.policy-list{margin:0;padding-inline-start:16px;display:grid;gap:6px;font-size:13px;line-height:1.55}
.policy-list li::marker{color:var(--gold)}
.policy-board>.open-source{grid-column:1/-1;margin:0;font-size:12px;color:var(--sub,#bccabf)}
@media(orientation:landscape){.policy-board{flex:1;grid-template-rows:1fr auto;align-content:stretch;overflow:auto}}
@media(orientation:portrait){.policy-board{grid-template-columns:1fr}}

@media (orientation:portrait) {
  html[data-telegram-overlay] body {
    --safe-top:0px;
    --full-height:calc(100dvh - var(--huper-tg-top));
    position:fixed;inset:var(--huper-tg-top) 0 0;min-height:0;overflow:auto;
  }
  html[data-telegram-overlay] .hall .announce {top:calc(var(--huper-tg-top) + 8px)}
  html[data-telegram-overlay] body dialog[open] {top:var(--huper-tg-top);max-height:calc(100dvh - var(--huper-tg-top) - 16px)}
}
@media (orientation:landscape) {
  [data-telegram-overlay] .hall .announce {
    max-width:calc(100vw - var(--huper-tg-left) - var(--huper-tg-right));
    left:calc((100% + var(--huper-tg-left) - var(--huper-tg-right)) / 2);
  }
}
