:root{color-scheme:light;font-family:"Microsoft JhengHei","Noto Sans TC",system-ui,sans-serif;color:#4e2a13;background:#3b070d;--gold:#c5933c;--red:#b81222;--cream:#fff4d8}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100dvh;background:radial-gradient(ellipse at top,#a73124,transparent 65%),#30060c}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.55;cursor:default}[hidden]{display:none!important}:focus-visible{outline:3px solid #ca7831;outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.app-shell{position:relative;isolation:isolate;width:min(100%,640px);min-height:100dvh;margin:auto;padding-bottom:calc(94px + env(safe-area-inset-bottom));overflow:hidden;background:radial-gradient(ellipse at 50% 18%,#fffaf0,transparent 38%),linear-gradient(110deg,#f4d191,#fff0cb 35%,#f5dbab 75%,#e6bd7e);box-shadow:0 0 80px #14000099}.hero{position:relative;width:100%;aspect-ratio:2.1;overflow:hidden;background:#5b160d}.hero-art{display:block;width:100%;height:100%;object-fit:cover}.brand{position:absolute;top:8%;left:10%;display:grid;width:24%;color:#ffe4a2;text-decoration:none;text-align:center;filter:drop-shadow(0 2px 3px #190000)}.brand img{width:100%;height:auto;max-height:72px;object-fit:contain}.brand span{margin-top:8px;font:italic 600 clamp(13px,3.5vw,23px)/1.15 Georgia,serif;transform:rotate(-9deg);color:#e9c880}.hero h1{position:absolute;top:19%;right:4%;margin:0;color:#ffe8a2;font-family:"DFKai-SB","KaiTi",serif;font-size:clamp(14px,3.3vw,23px);line-height:1.3;writing-mode:vertical-rl;text-shadow:0 2px 5px #461000,0 0 8px #6b2000}.hero h1 span{writing-mode:horizontal-tb;display:block;text-align:center;margin-top:5px}
.announcement{position:relative;z-index:1;display:flex;align-items:center;gap:8px;margin:-4px 14px 7px;padding:7px 12px;border:1px solid #ffe1a0;border-radius:24px;background:linear-gradient(#fffce9,#fce6be);box-shadow:0 2px 0 #96271b,0 0 0 4px #971522;color:#532f17}.announcement>span{color:#bd1324;font-size:17px}.announcement p{margin:0;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(10px,2.3vw,13px);font-weight:800}.announcement button{border:0;background:transparent;color:#a31220;font-size:25px;line-height:20px;padding:0 4px}
.member-strip{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr) 68px;align-items:center;gap:8px;min-height:85px;margin:12px 16px;border:2px solid #cf9c50;border-radius:24px;padding:6px 12px;background:linear-gradient(110deg,#fff9e3,#f9e6bc 60%,#ffe6ad);box-shadow:inset 0 0 0 2px #fff6d9,inset 0 -5px 12px #c9984340,0 3px 5px #995b2840}.member-identity{display:flex;align-items:center;gap:10px;border:0;padding:0;background:transparent;text-align:left;min-width:0;color:#47210f}.member-identity img{width:62px;height:62px;flex:none;filter:drop-shadow(0 2px 2px #945228);object-fit:contain}.member-identity span{min-width:0}.member-identity small,.wallet>span{display:block;margin-bottom:5px;font-weight:700;font-size:12px}.member-identity b{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px}.wallet{border:0;border-left:1px solid #caa26e;background:transparent;padding:0 0 0 16px;color:#4c2d19;text-align:left;min-width:0}.wallet b{display:flex;align-items:center;gap:6px;color:#a4111d;white-space:nowrap;font-size:clamp(15px,3.9vw,25px);font-variant-numeric:tabular-nums}.wallet b span{overflow:hidden;text-overflow:ellipsis}.wallet i{font:800 17px/1 Georgia,serif;display:grid;place-items:center;flex:none;width:25px;height:25px;border:1px solid #b57c17;border-radius:50%;color:#fff6be;background:radial-gradient(circle at 30% 20%,#ffe39a,#ebad30 50%,#c28211);box-shadow:inset 0 0 0 2px #ffd772,0 2px 2px #be873955;font-style:normal}.member-medal{display:grid;justify-items:center;align-content:center;width:61px;height:66px;color:#fff2a9;text-shadow:0 1px 1px #590509;background:radial-gradient(ellipse,#9d0f13 0 36%,#e3a627 39%,#fff2a1 43%,#be790e 47%,transparent 49%);filter:drop-shadow(0 2px 1px #c4902b)}.member-medal>span{color:#b87515;font-size:25px;line-height:20px}.member-medal b{font:900 20px/1.3 Georgia,serif}.member-medal small{font:700 6px/1 Georgia,serif;letter-spacing:1px}
.lobby{display:grid;grid-template-columns:74px minmax(0,1fr);gap:10px;margin:14px 16px 0;align-items:start}.type-tabs{display:grid;gap:10px;position:sticky;top:12px}.type-tabs button{display:grid;justify-items:center;align-content:center;gap:7px;min-height:102px;border:2px solid #dbb471;border-radius:17px;background:linear-gradient(130deg,#fffbed,#f9e4b9);box-shadow:inset 0 0 0 2px #fff7de,0 3px 5px #955d2840;color:#50331a;font-size:18px;font-weight:900}.type-tabs button svg{width:34px;height:34px;fill:currentColor;stroke:currentColor;stroke-width:1.3;stroke-linejoin:round;stroke-linecap:round}.type-tabs button[data-type=slot] svg{fill:none;stroke-width:2}.type-tabs button.active{color:#fff3c0;border-color:#ffe5a0;background:radial-gradient(ellipse at 50% 10%,#f34632,#d51a22 60%,#ac0b15);box-shadow:inset 0 0 0 1px #ff9b5c,inset 0 0 15px #ffbe6060,0 0 8px #e75f3555}.lobby-content{min-width:0}.catalog-toolbar{display:flex;align-items:center;gap:6px;margin-bottom:6px;min-width:0}.provider-tabs{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0;padding:2px 1px 4px}.provider-tabs::-webkit-scrollbar{display:none}.provider-tabs button,.loading-chip{flex:0 0 auto;min-height:30px;padding:4px 9px;border:1px solid #d5ad69;border-radius:9px;background:#fff5db;color:#825c32;font-size:10px;font-weight:700;white-space:nowrap}.provider-tabs button.active{background:linear-gradient(#c52224,#960e1b);border-color:#bd7b25;color:#ffecb3;box-shadow:inset 0 1px 2px #fcbd78}.catalog-toolbar>button{flex:none;width:30px;height:30px;border:1px solid #cfaa6b;border-radius:50%;background:#fff4d6;color:#9c271e;font-size:21px}.game-search{display:block;margin-bottom:8px}.game-search input{width:100%;min-width:0;border:1px solid #d2b077;border-radius:8px;padding:7px 10px;background:#fff9e7;color:#583a1d;font-size:12px;box-shadow:inset 0 1px 3px #8d5b2420}.game-search input::placeholder{color:#a0835f}
.game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.game-card{position:relative;display:block;min-width:0;aspect-ratio:1;border:2px solid #fff2bd;border-radius:15px;padding:0;overflow:hidden;isolation:isolate;text-align:left;color:#ffe9a5;background:linear-gradient(140deg,#cf6720,#7f1019);box-shadow:0 0 0 1px #b37b38,0 3px 5px #87451260,inset 0 0 8px #ffd37c}.game-card:active{transform:scale(.98)}.game-art{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at top,#ddac4c,#7a1811)}.game-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 35%}.game-fallback{font:900 27px Georgia,serif;color:#ffd581}.game-card:after{position:absolute;inset:0;pointer-events:none;content:'';border-radius:12px;box-shadow:inset 0 0 8px 2px #eabe6999}.game-meta{position:absolute;inset:auto 0 0;display:grid;grid-template-columns:1fr 24px;gap:3px 4px;padding:28px 8px 7px;background:linear-gradient(transparent,#350400db 45%,#520908f0);text-align:right;line-height:1.1}.game-meta small{position:absolute;bottom:9px;left:9px;font-size:8px;color:#efc278;max-width:30px;overflow:hidden;text-overflow:ellipsis}.game-meta b{grid-column:1/-1;display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:clamp(12px,3.2vw,20px);font-weight:900;text-shadow:0 2px 1px #50140a,1px 0 1px #301009;line-height:1.15;min-height:1.15em}.game-type{justify-self:end;min-width:58px;padding:3px 12px;border:1px solid #e9c784;border-radius:20px;background:#4d080c;color:#fff0c2;font-size:10px;text-align:center}.game-arrow{display:grid;place-items:center;justify-self:end;width:22px;height:22px;border-radius:50%;background:linear-gradient(#fff6c8,#edc16a);color:#7b1c13;font:bold 25px/18px Georgia,serif}.empty-state{font-size:13px;line-height:1.7;text-align:center;padding:25px 10px;border:1px dashed #c59a58;border-radius:10px;color:#946937}.show-more{display:block;width:100%;margin-top:15px;padding:11px;border:1px solid #c79747;border-radius:12px;background:linear-gradient(#fff9e7,#eed099);color:#8c4b24;font-size:12px;font-weight:800}.game-grid[aria-busy=true]{opacity:.6;pointer-events:none}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:10;display:grid;grid-template-columns:repeat(4,1fr);width:min(100%,640px);min-height:calc(81px + env(safe-area-inset-bottom));margin:auto;padding:14px 12px calc(7px + env(safe-area-inset-bottom));border-top:3px solid #c89335;border-radius:42% 42% 0 0 / 20px 20px 0 0;background:linear-gradient(175deg,#fffdf0 20%,#f7e9cd 65%,#e4c18a);box-shadow:0 -3px 0 #fff6d0,0 -7px 15px #80351850}.bottom-nav button{display:grid;justify-items:center;align-content:center;gap:5px;border:0;background:transparent;color:#442b17;font-weight:900;font-size:14px;min-height:48px}.bottom-nav svg{height:28px;width:28px;fill:currentColor;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}.bottom-nav button:nth-child(2) svg{fill:none;stroke-width:2.5}.bottom-nav button:nth-child(3) svg{fill:none;stroke-width:2.8}.bottom-nav button.active{color:#c21b17;filter:drop-shadow(0 0 5px #ffc365)}
.login-dialog{width:min(calc(100% - 28px),420px);max-height:calc(100dvh - 40px);overflow:auto;border:0;border-radius:20px;padding:0;color:#512b18;background:transparent}.login-dialog::backdrop{background:#2b020ad4;backdrop-filter:blur(5px)}.dialog-card{position:relative;display:grid;gap:14px;padding:30px 22px 22px;border:2px solid #d4a454;border-radius:20px;background:linear-gradient(145deg,#fff8e1,#f4deaf);box-shadow:inset 0 0 0 2px #fff4d3}.dialog-card>p:first-of-type{margin:0;color:#a77435;font:800 10px/1.3 Consolas,monospace;letter-spacing:2px}.dialog-card h2{margin:0 0 5px;color:#97151b;font-size:25px}.dialog-card label{display:grid;gap:6px;font-size:12px;font-weight:700}.dialog-card input{width:100%;min-height:44px;border:1px solid #c3a16e;border-radius:9px;padding:10px;background:#fffbef;color:#492410;font-size:16px}.primary,.outline{min-height:42px;border-radius:9px;font-weight:800;padding:8px 12px}.primary{border:1px solid #a51522;background:linear-gradient(#d42b2c,#a3111d);color:#fff1c3;box-shadow:inset 0 1px 1px #efba79}.outline{border:1px solid #cca764;background:#fff7df;color:#7d4422}.close{position:absolute;right:11px;top:8px;width:30px;height:30px;border:0;background:transparent;color:#a31321;font-size:27px}.help-text,.service-copy{margin:0;font-size:12px;line-height:1.8;color:#876243}.form-error{min-height:15px;margin:0;color:#b71323!important;font-size:12px}.member-details{margin:0;display:grid;gap:15px}.member-details>div{display:flex;justify-content:space-between;gap:16px}.member-details dt{font-size:12px;color:#926b46}.member-details dd{margin:0;font-size:14px;overflow-wrap:anywhere;text-align:right}.password-form{display:grid;gap:12px;margin-top:14px}summary{cursor:pointer;padding:8px 0;color:#8b461b;font-size:13px;font-weight:700}.player-points{display:grid;gap:12px;margin:14px 0;font-size:12px}.player-points>div{padding-bottom:10px;border-bottom:1px solid #ddbf8c}.player-points small{display:block;margin-top:6px;color:#956a44;font-size:10px}.points-pagination{display:flex;align-items:center;gap:10px}.points-pagination button{flex:1;min-height:34px;font-size:12px}.records-dialog{width:min(calc(100% - 28px),550px)}.history-period{display:flex;gap:8px}.history-period button{flex:1;border:1px solid #cfa363;border-radius:8px;padding:8px 5px;background:#fff6dc;color:#815b32;font-size:12px}.history-period button.active{background:#b71b27;color:#fff2cb;border-color:#b71b27}.history-caption{font-size:11px;line-height:1.6;margin:0;color:#97704b}.records-list{display:grid;gap:12px;min-height:80px;max-height:48dvh;overflow:auto;font-size:12px}.records-list article{padding:10px;border:1px solid #d8b887;border-radius:9px;background:#fff8e6}.records-list article>div{display:flex;align-items:start;justify-content:space-between;gap:8px}.records-list b{font-size:12px;overflow-wrap:anywhere}.records-list small{display:block;margin-top:6px;color:#a07b51;font-size:10px;overflow-wrap:anywhere}.records-list strong{white-space:nowrap;font-variant-numeric:tabular-nums}.positive{color:#17804d}.negative{color:#b91427}
.play-layer{position:fixed;inset:0;z-index:30;height:100dvh;display:flex;flex-direction:column;background:#130507}.play-layer header{display:flex;align-items:center;gap:12px;min-height:52px;padding:7px 12px;padding-top:max(7px,env(safe-area-inset-top));background:#6c0b15;color:#ffecb5}.play-layer header button{border:1px solid #d9b254;border-radius:8px;padding:8px 10px;background:transparent;color:#ffe9a6;font-weight:800}.play-layer header b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.play-layer iframe{flex:1;width:100%;min-height:0;border:0;background:#fff;padding-bottom:env(safe-area-inset-bottom)}.toast{position:fixed;z-index:50;right:16px;bottom:calc(94px + env(safe-area-inset-bottom));left:16px;max-width:420px;margin:auto;transform:translateY(110px);border:1px solid #e4bc6b;border-radius:12px;padding:12px 14px;background:#650e19ed;color:#fff2cf;font-size:13px;text-align:center;opacity:0;transition:.22s ease;pointer-events:none}.toast.show{transform:translateY(0);opacity:1}
@media(max-width:440px){.announcement{margin-left:10px;margin-right:10px;padding:6px 9px;gap:5px}.member-strip{margin:10px;min-height:67px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px;gap:5px;padding:5px 7px;border-radius:18px}.member-identity{gap:6px}.member-identity img{width:43px;height:43px}.member-identity small,.wallet>span{font-size:9px;margin-bottom:4px}.member-identity b{font-size:12px}.wallet{padding-left:8px}.wallet b{font-size:17px;gap:4px}.wallet i{width:19px;height:19px;font-size:13px}.member-medal{width:39px;height:48px}.member-medal>span{font-size:19px;line-height:14px}.member-medal b{font-size:14px}.member-medal small{font-size:4px;letter-spacing:.5px}.lobby{margin:10px;grid-template-columns:53px minmax(0,1fr);gap:8px}.type-tabs{gap:8px}.type-tabs button{min-height:81px;gap:5px;border-radius:13px;font-size:15px}.type-tabs button svg{width:27px;height:27px}.game-grid{gap:8px}.game-card{border-radius:12px;aspect-ratio:1}.game-meta{padding:21px 6px 6px;grid-template-columns:1fr 19px}.game-meta b{font-size:13px}.game-meta small{font-size:6px;left:6px;bottom:8px}.game-type{font-size:8px;min-width:42px;padding:2px 9px}.game-arrow{width:18px;height:18px;font-size:20px}.provider-tabs button{font-size:9px;padding:4px 7px;min-height:26px}.catalog-toolbar>button{width:26px;height:26px;font-size:19px}.game-search input{padding:6px 8px;font-size:11px}.bottom-nav{min-height:calc(73px + env(safe-area-inset-bottom));padding-top:12px}.bottom-nav button{font-size:12px}.bottom-nav svg{width:25px;height:25px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.play-layer .play-header{gap:10px;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right));flex-shrink:0}
.play-header #closeGame{flex-shrink:0;min-height:40px;padding:8px 12px;line-height:1.2}
.play-header #playTitle{flex:1;min-width:0;font-size:14px}
.play-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;margin-left:auto}
.play-layer .play-header .play-icon-button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;line-height:1}
.play-icon-button svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.play-icon-button .fullscreen-exit{display:none}
.play-icon-button[aria-pressed=true] .fullscreen-enter{display:none}
.play-icon-button[aria-pressed=true] .fullscreen-exit{display:block}
.play-layer:fullscreen{width:100%;height:100dvh;background:#130507}
.play-layer:-webkit-full-screen{width:100%;height:100%;background:#130507}
@media(orientation:landscape){.play-layer .play-header{display:none}}

.brand img{transform:scale(2);transform-origin:center}

/* Player homepage: square electronic cards, portrait live cards, centered controls. */
.game-card.game-card-live{aspect-ratio:3/4}
.game-meta{align-items:center}
.game-type{display:flex;align-items:center;justify-content:center;height:22px;padding:0 12px;line-height:1}
.game-arrow{align-self:center;line-height:0}
.game-arrow svg{width:12px;height:12px}
.game-arrow svg,.announcement button svg,#refreshButton svg{display:block;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
#refreshButton,.announcement button{display:flex;align-items:center;justify-content:center;flex:none;padding:0;line-height:0}
#refreshButton svg{width:17px;height:17px}
.announcement button{width:22px;height:24px}
.announcement button svg{width:14px;height:14px}
.announcement-icon{display:block;flex:none;width:24px;height:24px;object-fit:contain}
.type-tabs button .category-icon{display:block;width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 1px 1px #5e28083b)}
.announcement p{position:relative;overflow:hidden;white-space:nowrap;text-overflow:clip;min-width:0;flex:1}
#marqueeText{display:inline-block;vertical-align:middle}
#marqueeText.scrolling{animation:shop-marquee var(--marquee-duration,20s) linear infinite}
@keyframes shop-marquee{0%,12%{transform:translateX(0)}88%,100%{transform:translateX(calc(-1 * var(--marquee-distance,0px)))}}
@media(max-width:440px){.game-type{height:18px;padding:0 9px}.game-arrow svg{width:10px;height:10px}.type-tabs button .category-icon{width:32px;height:32px}.announcement-icon{width:21px;height:21px}#refreshButton svg{width:15px;height:15px}}
@media(prefers-reduced-motion:reduce){#marqueeText.scrolling{animation:none}}

/* Provider marks and separate game captions. */
html,body,.profile-scroll,.records-list,.login-dialog{scrollbar-width:none;-ms-overflow-style:none}
html::-webkit-scrollbar,body::-webkit-scrollbar,.profile-scroll::-webkit-scrollbar,.records-list::-webkit-scrollbar,.login-dialog::-webkit-scrollbar{display:none;width:0;height:0}
.provider-tabs{padding:2px 1px 4px;gap:6px}
.provider-tabs button.provider-icon{display:flex;align-items:center;justify-content:center;width:58px;height:40px;min-height:40px;padding:2px;flex:0 0 58px;border:1px solid #d5a24a;border-radius:10px;background:linear-gradient(#562926,#311619);box-shadow:inset 0 1px 1px #a1644150}
.provider-icon img{display:block;width:100%;height:100%;object-fit:contain}
.provider-tabs button.provider-icon.active{border:2px solid #ffdd8a;background:linear-gradient(#a92625,#731420);box-shadow:0 0 0 1px #b47b25,inset 0 0 9px #ffb55255}
.provider-icon .provider-fallback{font-size:10px;color:#ffe6b3}
.game-grid{align-items:start}
.game-card{aspect-ratio:auto;display:flex;flex-direction:column;background:linear-gradient(#651619,#43100f)}
.game-card.game-card-live{aspect-ratio:auto}
.game-art{position:relative;inset:auto;width:100%;aspect-ratio:1;flex:none}
.game-card-live .game-art{aspect-ratio:3/4}
.game-art img{object-position:center}
.game-meta{position:relative;inset:auto;display:grid;width:100%;grid-template-columns:1fr auto 22px;gap:5px 4px;padding:8px;background:linear-gradient(#781b1d,#4b1113);text-align:left;align-items:center}
.game-meta b{grid-column:1/-1;min-height:2.4em;line-height:1.2;font-size:14px;text-align:center;text-shadow:0 1px #2a0909}
.game-meta small{position:static;bottom:auto;left:auto;max-width:none;min-width:0;font-size:8px;color:#e8bd7d;line-height:1.2;align-self:center}
.game-type{height:20px;min-width:44px;font-size:9px;padding:0 8px}
.game-arrow{width:20px;height:20px}
/* Screen-sized member panels. */
.records-dialog,.profile-dialog{width:min(calc(100% - 24px),600px);height:min(86dvh,820px);max-height:calc(100dvh - 28px);overflow:hidden}
.support-dialog{width:min(calc(100% - 24px),480px);max-height:calc(100dvh - 28px)}
.records-card,.profile-card{height:100%;padding:22px 18px 16px;gap:16px;border-radius:22px;overflow:hidden;background:linear-gradient(155deg,#fffbed,#f6e4bc)}
.records-card{display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto}
.profile-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.panel-heading{display:flex;gap:12px;align-items:center;padding-right:24px}
.panel-heading p,.panel-hero p{margin:0 0 6px;font:800 9px/1.2 Consolas,monospace;letter-spacing:2px;color:#a97831}
.panel-heading h2,.panel-hero h2{font-size:24px;line-height:1.2;margin:0;color:#981521}
.panel-symbol{display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid #d8ac63;border-radius:13px;background:linear-gradient(#d12c2f,#901521);color:#ffdf96;font-size:27px;box-shadow:0 3px 8px #8f38182b}
.dialog-card .close{right:12px;top:12px;display:grid;place-items:center;width:30px;height:30px;border:1px solid #dec18b;border-radius:50%;background:#fff8e1;font:24px/1 system-ui;color:#9d2425}
.history-period{gap:4px;padding:4px;background:#ead7af;border-radius:12px}
.history-period button{min-height:36px;border:0;border-radius:9px;background:transparent;color:#8b5b32;font-weight:800}
.history-period button.active{background:linear-gradient(#c82331,#9a1424);box-shadow:0 2px 5px #86232233}
.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#996e3f;font-size:10px}
.history-toolbar>span:last-child{white-space:nowrap;border:1px solid #dbc08c;border-radius:7px;padding:4px 6px;background:#fff8e4}
.records-list{height:100%;min-height:0;max-height:none;overflow:auto;align-content:start;gap:9px;padding:1px 1px 8px}
.records-list article{border:1px solid #e3c891;background:#fffcf1;border-radius:12px;padding:12px;box-shadow:0 2px 4px #8d54200b}
.records-list article>div{align-items:center}
.records-list article b{font-size:11px;line-height:1.5}
.records-list article strong{font-size:15px;line-height:1.4}
.records-list article small{font-size:10px;line-height:1.5}
.history-empty{height:100%;min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#a47a4b;text-align:center}
.history-empty>span{display:grid;place-items:center;width:58px;height:58px;background:#ecdbb9;border:1px solid #e2c58d;border-radius:18px;font-size:30px;color:#c69b59}
.history-empty b{font-size:13px;font-weight:700;color:#896039}
.history-empty small{font-size:11px;color:#ad8b62}
.history-footer,.panel-footer{padding-top:12px;border-top:1px solid #dfc799}
.history-footer .history-caption{font-size:9px;margin:0 0 10px;text-align:center}
.points-pagination{gap:10px;align-items:center}
#recordsPage{font-size:11px;color:#8e612f;white-space:nowrap;font-variant-numeric:tabular-nums}
.history-footer .outline{min-height:36px;background:#fffaeb;font-size:12px;border-radius:10px}
.outline:disabled{opacity:.4}
.support-card{padding:26px 20px 20px;gap:20px;border-radius:22px;background:linear-gradient(150deg,#fffbed,#f3dfb3)}
.support-symbol svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.support-shop{padding:18px 16px;border:1px solid #d6ab68;border-radius:16px;background:linear-gradient(125deg,#701c22,#a3312b);box-shadow:0 4px 12px #7d391a20;color:#ffe8b5}
.support-shop small{font-size:10px;color:#e0ba86;letter-spacing:1px}
.support-shop h3{font-size:20px;line-height:1.4;margin:8px 0;overflow-wrap:anywhere}
.support-shop p{margin:0;font-size:11px;line-height:1.6;color:#edc9a0}
.support-topics{display:grid;gap:14px}
.support-topics article{display:flex;gap:12px;align-items:center}
.support-topics article>span{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;background:#ead6ae;border:1px solid #dabe8a;color:#9c713d;font-size:12px;font-weight:800}
.support-topics h3{margin:0 0 5px;color:#7e3d24;font-size:13px}
.support-topics p{margin:0;font-size:11px;line-height:1.7;color:#9a714e}
.support-note{margin:0;border-top:1px solid #ddc396;padding-top:12px;text-align:center;font-size:10px;color:#b18352}
.panel-hero{display:flex;align-items:center;gap:13px;padding:2px 20px 3px 0}
.panel-hero img{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 3px 3px #99532238)}
.panel-hero>div{min-width:0}
.panel-hero h2{font-size:24px;overflow-wrap:anywhere}
.panel-hero>div>span{font-size:10px;color:#b08755;display:block;margin-top:5px}
.profile-scroll{min-height:0;overflow:auto;padding:0 1px 8px}
.profile-wallet{display:grid;grid-template-columns:1fr auto;gap:10px;padding:17px 16px;border:1px solid #d2a459;border-radius:16px;color:#ffe8b2;background:radial-gradient(ellipse at 20% 0%,#b84137,#811b25 70%);box-shadow:inset 0 1px #db9b6870,0 4px 10px #94381820}
.profile-wallet>span{grid-column:1/-1;font-size:11px;color:#ecc18b}
.profile-wallet strong{font-size:28px;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.profile-wallet button{align-self:center;min-height:30px;font-size:10px;padding:5px 8px;color:#ffe5b0;border:1px solid #e5b77675;background:#6619245e}
.member-details{margin:18px 0;border:1px solid #e3c999;border-radius:12px;padding:0 13px;background:#fff9e9;gap:0}
.member-details>div{padding:12px 0;align-items:center}
.member-details>div+div{border-top:1px solid #ebd8b3}
.member-details dt{font-size:11px;color:#ab8453}
.member-details dd{font-size:13px;font-weight:700;color:#744727}
.profile-section{margin-top:10px;border:1px solid #dfc192;border-radius:12px;background:#fff7e3;padding:0 12px}
.profile-section summary{position:relative;padding:14px 20px 14px 0;list-style:none;color:#8b512e;font-size:12px}
.profile-section summary::-webkit-details-marker{display:none}
.profile-section summary:after{content:'+';position:absolute;right:1px;top:12px;font-size:17px;color:#b17e40}
.profile-section[open] summary:after{content:'−'}
.profile-section[open] summary{border-bottom:1px solid #e7cfa8}
.profile-section .password-form{padding-bottom:14px}
.profile-help{font-size:10px;line-height:1.6;margin:14px 5px 0;color:#ae8b5d}
.panel-footer button{width:100%;min-height:38px;background:#fff7e4;border-color:#d5af75;color:#a4342a;font-size:12px}
@media(max-width:440px){.provider-tabs button.provider-icon{width:48px;height:34px;min-height:34px;flex-basis:48px;border-radius:8px}.game-meta{padding:7px 6px;grid-template-columns:1fr auto 18px;gap:4px}.game-meta b{font-size:12px}.game-meta small{font-size:7px}.game-type{height:18px;min-width:38px;font-size:8px;padding:0 7px}.game-arrow{width:18px;height:18px}.game-card{border-radius:12px}.records-card,.profile-card{padding:22px 16px 14px;gap:14px}.profile-wallet{padding:15px 13px}.profile-wallet strong{font-size:25px}.panel-hero img{width:58px;height:58px}}

html.dialog-open,html.dialog-open body{overflow:hidden}

/* Compact game captions. */
.game-meta{grid-template-columns:1fr;gap:4px;padding:7px 8px 8px}
.game-meta small{grid-column:1;font-size:7px;line-height:1}
.game-meta b{grid-column:1;min-height:2.4em;font-size:12px}
/* Language controls and first-visit frosted selection. */
.language-button{position:absolute;z-index:3;top:max(10px,env(safe-area-inset-top));right:12px;display:flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 9px;border:1px solid #f8db8f8c;border-radius:12px;background:#2f0d13a8;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:#ffe7ad;box-shadow:0 3px 10px #17030955;font-size:10px;font-weight:800}
.language-button img{width:24px;height:16px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px #ffffff22}
.language-button svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.language-dialog{width:min(calc(100% - 36px),420px);max-height:calc(100dvh - 36px);padding:0;border:0;border-radius:24px;background:transparent;color:#fff3d5;overflow:auto;scrollbar-width:none}
.language-dialog::backdrop{background:#16070b94;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.language-glass{position:relative;padding:27px 22px 22px;border:1px solid #ffe5a175;border-radius:24px;background:linear-gradient(140deg,#ffffff2b,#72282f40),#210d15b3;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:inset 0 1px #ffffff35,0 16px 50px #1601076b}
.language-eyebrow{margin:0 0 9px;font:800 9px/1.4 Consolas,monospace;letter-spacing:3px;color:#e4bc7b}
.language-glass h2{margin:0 25px 9px 0;font-size:23px;line-height:1.3;color:#fff1cf}
.language-glass>p:not(.language-eyebrow){margin:0;font-size:11px;line-height:1.7;color:#d8c4b0}
.language-options{display:grid;gap:8px;margin:20px 0}
.language-option{display:flex;align-items:center;gap:13px;min-height:48px;padding:9px 12px;border:1px solid #ffe1a22e;border-radius:12px;background:#ffffff0c;color:#eee3d7;text-align:left;font-size:14px}
.language-option img{width:30px;height:20px;object-fit:cover;border-radius:3px;flex:none;box-shadow:0 1px 5px #0005}
.language-option>span:nth-child(2){flex:1}
.language-option .language-check{opacity:0;color:#ffdc8c;font-weight:900}
.language-option[aria-checked=true]{border-color:#efc876;background:linear-gradient(110deg,#b95f394d,#a97c422b);box-shadow:inset 0 0 0 1px #f5d59b2b}
.language-option[aria-checked=true] .language-check{opacity:1}
#confirmLanguage{width:100%;min-height:43px;border:1px solid #edc477;border-radius:12px;background:linear-gradient(#f6dda0,#dca65a);color:#54200f;font-size:13px;font-weight:900;box-shadow:inset 0 1px #fff5c9}
.language-close{position:absolute;top:13px;right:14px;display:grid;place-items:center;border:1px solid #fff4d32b;border-radius:50%;width:28px;height:28px;padding:0;background:#ffffff0b;color:#e5cdb1;font:23px/1 system-ui}
/* Three distinct member pages. */
.profile-card{grid-template-rows:auto auto minmax(0,1fr) auto;gap:14px}
.member-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:4px;border-radius:12px;background:#e8d5ae}
.member-tabs button{display:flex;align-items:center;justify-content:center;min-height:38px;padding:6px 4px;border:0;border-radius:9px;background:transparent;color:#8e633d;font-size:11px;font-weight:800;text-align:center;line-height:1.3}
.member-tabs button[aria-selected=true]{background:linear-gradient(#be2831,#931725);color:#fff0cf;box-shadow:0 2px 5px #83202525}
.member-section-heading h3{margin:0 0 8px;font-size:17px;color:#8e2025}
.member-section-heading p{margin:0;font-size:11px;line-height:1.7;color:#a17c50}
.member-section-heading small{display:inline-block;margin-top:10px;border:1px solid #ddc594;border-radius:7px;padding:4px 7px;background:#fff8e4;font-size:9px;color:#a78250}
.profile-scroll>[role=tabpanel]{padding:2px 1px 8px}
.member-points-panel{display:grid;height:100%;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
.member-points-panel .player-points{overflow:auto;min-height:0;margin:0;align-content:start;scrollbar-width:none}
.member-points-panel .player-points::-webkit-scrollbar{display:none}
.player-points>div{padding:12px;border:1px solid #e3c998;border-radius:11px;background:#fffbed}
.player-points b{display:block;font-size:12px;line-height:1.5;color:#7d492d}
.player-points small{line-height:1.7}
.member-points-panel footer{border-top:1px solid #dfc596;padding-top:12px}
.member-points-panel footer button{font-size:11px;min-height:34px}
#pointsPageLabel{font-size:11px;white-space:nowrap;color:#99723f}
.profile-scroll:has(.member-points-panel:not([hidden])){overflow:hidden}
#memberPassword .password-form{margin-top:20px;padding:14px;border:1px solid #e3c795;border-radius:13px;background:#fff7e4;gap:14px}
#memberPassword label{font-size:11px;color:#8d663c}
#memberPassword input{font-size:16px}
.hero h1{top:31%;font-family:inherit;writing-mode:horizontal-tb;max-width:23%;font-size:clamp(10px,2.7vw,17px);line-height:1.5;text-align:right}
.hero h1 span{margin:0;writing-mode:horizontal-tb;text-align:inherit}
html[lang=zh-Hant] .hero h1,html[lang=ja] .hero h1{writing-mode:vertical-rl;top:28%;font-family:"DFKai-SB","KaiTi",serif;font-size:clamp(14px,3.3vw,23px);line-height:1.3;max-width:none}
html[lang=zh-Hant] .hero h1 span,html[lang=ja] .hero h1 span{writing-mode:inherit}
html[lang=en] .type-tabs button,html[lang=vi] .type-tabs button{font-size:12px}
.bottom-nav button span{font-size:clamp(10px,2.8vw,14px);line-height:1.25;text-align:center}
@media(max-width:440px){.game-meta{grid-template-columns:1fr;padding:6px 6px 7px;gap:4px}.game-meta b{font-size:12px}.game-meta small{font-size:7px}.language-glass{padding:25px 19px 20px}.language-glass h2{font-size:21px}.member-tabs button{font-size:10px}.wallet b{font-size:15px}.member-identity small,.wallet>span{font-size:8px}.profile-wallet button{max-width:100px}}
#memberPassword .password-form{margin-top:14px;padding:12px;gap:10px}
#memberPassword input{min-height:38px;padding:8px 10px}
#memberPassword label{gap:5px}
#memberPassword .primary{min-height:38px}
#memberPassword .form-error{min-height:12px}

/* Store content and language presentation, 2026-10-12. */
.hero{aspect-ratio:4.2}
.hero-art{object-position:center 48%}
.hero .brand{top:8%;left:5%;width:20%}
.hero .brand span{display:none}
.hero h1{display:none}
.hero.store-carousel{aspect-ratio:3;background:#25100c}
.hero.store-carousel .hero-art{width:100%;height:100%;object-fit:contain}
.hero.store-carousel .brand{display:none}
.hero.carousel-unavailable{min-height:70px}
.language-glass>h2{padding-right:28px;margin-top:0}
.language-close{display:flex;align-items:center;justify-content:center;line-height:0}
.language-close svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.catalog-toolbar{padding:5px 5px 5px 0;background:linear-gradient(90deg,#efdfbb00,#e8d2ab8c);border-radius:11px}
.provider-tabs{gap:7px;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x pan-y;scroll-snap-type:x proximity;padding:3px 2px 5px}
.provider-tabs button.provider-icon{scroll-snap-align:start;background:linear-gradient(145deg,#3d2635,#20151e);border-color:#cba772;box-shadow:0 2px 4px #65431b24,inset 0 1px 1px #ffedd31f}
.provider-tabs button.provider-icon.active{background:linear-gradient(145deg,#7c393f,#411a29);border-color:#e9b75d;box-shadow:0 0 0 2px #fff2d2,inset 0 0 8px #d9a75750}
.provider-tabs button:focus-visible{outline:2px solid #a3232b;outline-offset:2px}

.game-load-sentinel{height:1px;width:100%;margin-top:8px;pointer-events:none}
