:root{color-scheme:dark;--gold:#ecd28a;--bg:#1c1611;--panel:#291f16}*{box-sizing:border-box}body{margin:0;background:#100d0b;color:#eee6d9;font:14px Arial,sans-serif}button{font:inherit;border:0;cursor:pointer;color:inherit;background:none}button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button:disabled{opacity:.5;cursor:default}a{color:inherit;text-decoration:none}.app-shell{width:100%;max-width:750px;min-height:100dvh;background:var(--bg);margin:auto;padding-bottom:calc(72px + env(safe-area-inset-bottom));box-shadow:0 0 70px #0006}.topbar{position:sticky;top:0;z-index:20;height:58px;background:#291f16;display:flex;align-items:center;gap:10px;padding:0 11px;border-bottom:1px solid #4f3a22}.icon-button{font-size:26px;padding:0;width:38px;height:38px}.brand{font-size:24px;font-weight:900;letter-spacing:-1px;color:#f5dc91;text-shadow:0 2px #6e461b;line-height:.9;flex:1}.brand small{font-size:7px;display:block;letter-spacing:2px;margin-top:5px;color:#b3a485}.account-actions{display:flex;gap:7px}.account-actions button{padding:9px 12px;border-radius:6px;font-size:12px}.login{border:1px solid #a98c4c!important;color:#f6df9b}.gold{background:linear-gradient(102deg,#dbb65c,#fdffab 52%,#dbb65c);color:#30230b!important;font-weight:700}.register{position:relative}.register span{position:absolute;right:-4px;top:-8px;border-radius:5px;background:#c42720;color:white;font-size:8px;padding:2px 4px}.banner{margin:11px 11px 0;border-radius:13px;overflow:hidden;position:relative;background:#2a1e1a}.banner>button{padding:0;display:block;width:100%}.banner img{display:block;width:100%;aspect-ratio:690/300;object-fit:cover}.dots{position:absolute;bottom:8px;width:100%;display:flex;justify-content:center;gap:6px}.dots button{height:6px;width:6px;border-radius:50%;background:#ffffff50;padding:0}.dots button.active{background:#fff}.promo-row{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;padding:0 20px;margin-top:11px}.promo-row button{padding:0;overflow:hidden;border-radius:13px}.promo-row img{display:block;width:100%;height:76px;object-fit:fill}.announcement{display:flex;align-items:center;gap:10px;margin:12px 13px;color:#c3ab80;font-size:12px}.announcement>span{font-size:24px}.announcement>div{flex:1;overflow:hidden}.announcement p{margin:0;white-space:nowrap;animation:marquee 24s linear infinite}.announcement button{font-size:25px;border-left:1px solid #4c3925;padding-left:12px}@keyframes marquee{0%,10%{transform:translateX(0)}100%{transform:translateX(-100%)}}.quick-nav{display:grid;grid-template-columns:repeat(4,1fr);padding:12px 10px;background:linear-gradient(#322419,#201812);border-block:1px solid #4c3925}.quick-nav button{font-size:24px}.quick-nav span{display:block;font-size:11px;color:#e7d5aa;margin-top:5px}.collection{padding:12px 13px}.game-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}h1{font-size:17px;margin:5px 0 15px;color:#f1d896}.search{display:flex;align-items:center;gap:6px;border:1px solid #5c452e;border-radius:20px;padding:6px 10px;margin-bottom:10px;width:48%;background:#2b2118}.search input{background:transparent;border:0;color:#eee;width:100%;min-width:0;outline:none;font-size:12px}.filters{display:flex;gap:8px;overflow:auto;margin:0 0 14px;scrollbar-width:none}.filters button{white-space:nowrap;border:1px solid #695233;border-radius:8px;padding:10px 12px;font-size:12px;background:linear-gradient(135deg,#261b19,#382c2a)}.filters button.active{color:#231a0b;background:linear-gradient(#fdffab,#d0a138 52%,#eed562);border-color:#ebd487}.game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.card{min-width:0}.cover{position:relative;aspect-ratio:1/1.33;border-radius:11px;overflow:hidden;background:#302218}.game-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.game-open{display:block;position:absolute;inset:0;width:100%;height:100%;padding:0}.favorite{position:absolute;top:5px;right:5px;z-index:2;background:#1b1513b3;border-radius:50%;width:24px;height:24px;font-size:20px;color:#fff5cd;padding:0}.favorite[aria-pressed=true]{color:#ffd578}.vendor-name{font-size:11px;font-weight:bold;text-align:center;margin:5px 0 1px;color:#f1eba6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-title{font-size:10px;text-align:center;color:#b2a184;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.unavailable{position:absolute;bottom:0;background:#000a;width:100%;padding:7px;font-size:10px;text-align:center}footer{text-align:center;color:#847962;border-top:1px solid #463421;margin:20px 13px 0;padding:24px 0;font-size:10px}footer>b{font-size:27px;color:#bda16d;letter-spacing:2px}footer button{font-size:10px;padding:7px}.age{border:1px solid #9b8b6b;display:inline-block;border-radius:50%;padding:7px;margin-top:8px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:750px;display:grid;grid-template-columns:repeat(5,1fr);height:calc(65px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);z-index:25;background:linear-gradient(#33271b,#221a13);border-top:1px solid #806239}.bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;color:#a49271;font-size:11px}.bottom-nav img{width:29px;height:29px;object-fit:contain}.bottom-nav button:nth-child(3) img{width:43px;height:36px;margin-top:-8px}.bottom-nav .active{color:#f9dfa0}.drawer-backdrop{position:fixed;inset:0;z-index:40;background:#0009}.drawer{position:fixed;left:max(0px,calc(50% - 375px));top:0;bottom:0;width:min(340px,88vw);background:linear-gradient(135deg,#291f17,#17120f);z-index:41;overflow:auto;border-right:2px solid #7d6239;padding:14px}.drawer-top{display:flex;align-items:center;gap:20px;color:#e5c483;font-size:25px}.drawer-top button{font-size:38px}.drawer-auth{display:flex;gap:10px;margin:15px 0}.drawer-auth button{flex:1;border:1px solid #a08552;padding:10px;border-radius:6px}.balance{padding:16px;border:1px solid #675032;border-radius:10px;background:#211912}.balance>span{display:block;color:#a8987d;font-size:12px}.balance>b{font-size:25px;display:block;color:#f1d590;margin:8px 0 14px}.balance>div{display:flex;gap:8px}.balance button{padding:9px 15px;border:1px solid #987744;border-radius:6px;flex:1}.drawer-links{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:15px 0}.drawer-links button{background:#ffffff08;border:1px solid #493727;border-radius:8px;padding:15px 8px;font-size:12px;color:#e4cfa2}.drawer-links b{display:block;font-size:26px;margin-bottom:7px}.support-card{text-align:left;width:100%;background:linear-gradient(120deg,#624821,#2a2015);border:1px solid #9f7a45;border-radius:10px;padding:18px}.support-card span{display:block;margin-top:8px;font-size:11px;color:#c8b58e}.share{text-align:center;color:#a99369;font-size:12px;padding:20px}.share span{display:block;font-size:23px;margin-top:15px}dialog{background:#251d15;color:#e9ddc5;border:1px solid #8d7042;border-radius:12px;padding:20px;width:min(500px,92vw)}dialog::backdrop{background:#000b}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-top h2{font-size:19px;color:#f2d58b}.dialog-top button{font-size:30px}.dialog-note{color:#b6a98d;line-height:1.7}.dialog-actions{display:flex;gap:10px;margin-top:18px}.dialog-actions button{border:1px solid #8b6e43;padding:12px;border-radius:6px;flex:1}#player{width:min(1100px,100vw);height:100dvh;max-height:100dvh;max-width:100vw;border:0;padding:0;border-radius:0;background:#0d0c0a}.player-bar{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;background:#291f16}.player-bar div{display:flex;align-items:center;gap:20px}.player-bar button{font-size:30px}#frameWrap{height:calc(100% - 48px)}#frameWrap iframe{width:100%;height:100%;border:0}#contentPage{padding:18px 13px;min-height:70vh}.page-title{display:flex;align-items:center;gap:15px;border-bottom:1px solid #5f482d;padding-bottom:15px;font-size:20px;color:#e8cd8f}.page-title button{font-size:28px}.content-card{border:1px solid #59422a;background:#2a2018;border-radius:12px;padding:18px;margin-top:16px}.content-card h2{font-size:16px;margin:0 0 10px;color:#e7cd90}.content-card p{font-size:13px;color:#bba98a;line-height:1.8}.content-card button,.page-button{border:1px solid #9e7d47;border-radius:6px;padding:12px;width:100%;margin-top:10px}.event-image{display:block;width:100%;border-radius:10px;margin-top:14px}.profile-head{padding:24px;text-align:center;background:linear-gradient(130deg,#513b22,#241b14);border-radius:12px}.profile-head .avatar{font-size:40px}.profile-list{display:flex;flex-direction:column;margin-top:15px}.profile-list button{padding:16px 8px;border-bottom:1px solid #4d3822;text-align:left}.profile-list button span{float:right;color:#a48a5c}[hidden]{display:none!important}@media(min-width:600px){.promo-row img{height:110px}.game-title{font-size:12px}.vendor-name{font-size:13px}.topbar .brand{font-size:28px}.account-actions button{font-size:14px;padding:9px 20px}}@media(prefers-reduced-motion:reduce){.announcement p{animation:none}}
.bottom-nav .active img{filter:brightness(0) saturate(100%) invert(87%) sepia(55%) saturate(450%) hue-rotate(335deg)}
/* Reference production shell: max-width 435px, #291f16, 13px gaps, 1:1.33 cards. */
:root{--bg:#291f16;--panel:#291f16}.app-shell,.bottom-nav{max-width:435px}.app-shell{background:#291f16}.drawer{left:max(0px,calc(50% - 217.5px))}.banner img{height:174px;aspect-ratio:auto}.promo-row img{height:76px}.game-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.cover{aspect-ratio:1/1.33;border-radius:11px;background:#2a1e1a}.bottom-nav{height:calc(60px + env(safe-area-inset-bottom))}.topbar .brand{font-size:24px}.account-actions button{padding:9px 12px;font-size:12px}.game-title{font-size:10px}.vendor-name{font-size:12px}.collection{padding:12px 20px}.quick-nav{background:#291f16}.account-form{display:grid;gap:12px}.account-form input{width:100%;padding:12px;border:1px solid #8b6e43;border-radius:6px;background:#1f1812;color:#fff}.account-form button{padding:12px;border-radius:6px}.account-balance{color:#f3d88e;font-size:18px;white-space:nowrap}.account-balance small{display:block;font-size:9px;color:#baa37a}

body{background:#362a20 url("assets/reference/main-bg.png") no-repeat center center fixed;background-size:cover}
#infoDialog:has(.auth-tabs){width:min(400px,calc(100vw - 34px));padding:22px;border:1px solid #67513a;background:#291f16;border-radius:16px}.auth-tabs{display:flex;margin:5px 0 22px;border-bottom:1px solid #51412f}.auth-tabs button{flex:1;padding:12px;color:#a6967f;font-size:17px}.auth-tabs .selected{color:#f6d67e;border-bottom:3px solid #dfbd68}.auth-field{display:flex;align-items:center;height:46px;background:#31281f;border:1px solid #504841;border-radius:9px;overflow:hidden;margin-top:5px}.auth-field>span{padding:10px;border-right:1px solid #504841}.account-form .auth-field input{border:0;background:transparent;padding:12px;min-width:0}.auth-field button{color:#c4b399;background:transparent!important}.auth-agree{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.7;color:#bdae99}.auth-agree input{width:16px!important;flex-shrink:0}.auth-bonus{color:#e8cb83;font-size:12px;text-align:center;margin:4px}.auth-links{display:flex;justify-content:center;gap:20px;margin-top:20px;color:#a59372;font-size:11px}

.dialog-note{white-space:pre-line}

.support-tabs{display:flex;justify-content:space-between;gap:10px;margin:10px 0;color:#ddc18c;font-size:12px}.chat-messages{height:280px;overflow:auto;background:#211912;padding:10px;border-radius:10px}.chat-bubble{margin:8px 0;padding:10px;background:#382b1d;border-radius:10px;width:90%;white-space:pre-wrap;overflow-wrap:anywhere}.chat-bubble small{display:block;color:#b69c73;font-size:10px;margin-bottom:5px}.chat-bubble.player{margin-left:auto;background:#5d4827}.chat-bubble.support{margin-right:auto}.account-form textarea{margin-top:12px;min-height:70px;padding:10px;border:1px solid #665036;background:#31281f;border-radius:8px;color:#fff;width:100%;font:inherit}
/* Authenticated player center and server-backed help. */
.player-wallet{padding:22px 18px;border:1px solid #8c7040;border-radius:16px;background:radial-gradient(at top right,#72511e,#36281a 70%)}.wallet-top,.wallet-buttons,.tier-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}.wallet-top{font-size:12px;color:#dccb9f}.player-wallet>strong{display:block;font-size:34px;color:#ffe3a1;margin-top:12px}.player-wallet p{display:flex;justify-content:space-between;font-size:12px;color:#c5b58f}.player-wallet small{font-size:10px;color:#bfa97d}.wallet-buttons{margin-top:18px}.wallet-buttons button{flex:1;border:1px solid #ac8751;border-radius:7px;padding:11px}.wallet-buttons button:first-child{background:linear-gradient(#efdd92,#bc8e36);color:#2b2115}.player-identity{display:flex;gap:12px;align-items:center;padding:20px 3px}.player-identity .avatar{font-size:34px;color:#e3bf6c}.player-identity>div{flex:1;min-width:0}.player-identity b{font-size:17px}.player-identity small{display:block;font-size:10px;margin-top:6px;color:#a99577;overflow-wrap:anywhere}.player-identity>button{font-size:22px}.tier-card{border:1px solid #685135;border-radius:12px;background:linear-gradient(120deg,#3e2d1a,#2b2118);padding:17px;margin:12px 0}.tier-card>div>b{color:#efd18a;font-size:20px}.tier-card>div>button{font-size:12px;color:#c8b185}.tier-card>p{font-size:12px;color:#b49d79}.account-row{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #ffffff0a;font-size:12px}.account-row span{color:#bbaa8b}.account-row b{font-weight:400;text-align:right;overflow-wrap:anywhere;max-width:65%}.reputation-row{width:100%;padding:18px 0;border-bottom:1px solid #665036;text-align:left;font-size:12px}.reputation-row span{display:block;color:#b49d79;margin-top:8px}.profile-list i{font-style:normal;display:inline-block;width:30px;color:#dec38a;font-size:20px}.profile-list em{font-style:normal;border-radius:10px;background:#b1482f;color:#fff;font-size:10px;padding:2px 7px}.fine-print{font-size:10px;color:#a69276;line-height:1.6;text-align:center}.message-tabs,.report-kinds{display:flex;gap:7px;margin:12px 0 20px;overflow-x:auto}.message-tabs button,.report-kinds button{flex:1;padding:12px 8px;border-radius:7px;background:#3b3025;color:#bba98a;white-space:nowrap;font-size:12px}.message-tabs .selected,.report-kinds .selected{background:linear-gradient(#fff0a9,#caa144);color:#291e0e;font-weight:700}.help-intro{background:#3b2c1b;border:1px solid #675031;border-radius:12px;padding:20px;text-align:center}.help-intro>span{font-size:35px;color:#e1c276}.help-intro>p{font-size:12px;color:#baa987}.faq-group{border-bottom:1px solid #58422a}.faq-group summary{padding:17px 0;cursor:pointer;font-size:13px}.faq-group summary span{border:1px solid #ab8b55;border-radius:50%;padding:1px 5px;margin-right:9px;font-size:10px}.faq-group article{padding:0 15px}.faq-group h4{font-size:13px;color:#e2c78e}.faq-group p{font-size:12px;line-height:1.8;color:#c2b398}.empty-state{padding:45px 10px;text-align:center;font-size:55px;color:#a2947c}.empty-state p{font-size:15px}.empty-state small{font-size:11px}.message-card{border:1px solid #695136;border-radius:10px;padding:15px;margin-bottom:12px}.message-card h3{font-size:16px}.message-card time{font-size:10px;color:#a79472}.message-card p{white-space:pre-wrap;font-size:13px;line-height:1.7}.inline-error{color:#ffbe9e;line-height:1.6}.report-filter{display:flex;align-items:center;justify-content:space-between}.report-filter select{background:#3b3025;color:#eee1c8;padding:9px;border:1px solid #6b5436;border-radius:6px}.record-total{font-size:11px;color:#aa9472}.records-scroll{overflow:auto}.records-table{font-size:11px;width:100%;border-collapse:collapse}.records-table td,.records-table th{text-align:left;padding:12px 7px;border-bottom:1px solid #5c4329}.records-table th{color:#e2c78e}.record-pagination{display:flex;justify-content:space-between;margin-top:16px}.record-pagination button{padding:10px;border:1px solid #7b5d35;border-radius:5px}.settings-details{margin:20px 0}.sound-control{display:flex;align-items:center;justify-content:space-between;margin-top:25px}.sound-control input{accent-color:#e3bd66;width:22px;height:22px}.chat-tools{display:flex;align-items:center;gap:8px}.chat-tools>button:last-child{margin-left:auto}.attachment-picker{position:relative;overflow:hidden;border:1px solid #775e3b;border-radius:6px;padding:10px;cursor:pointer;font-size:12px}.attachment-picker input{position:absolute;inset:0;opacity:0;cursor:pointer}.chat-tools button{padding:9px 12px}.chat-bubble img,.chat-bubble video{display:block;max-width:100%;max-height:220px;border-radius:8px;margin-top:8px}.chat-attachment{display:block;text-decoration:underline;font-size:11px;margin:8px 0;color:#eed087}.chat-bubble span{white-space:pre-wrap}.share-link{width:100%;padding:10px;background:#302419;color:#e2c78e;border:1px solid #715631;border-radius:6px}.support-tabs>button{padding:0;font-size:12px;color:#dfc17e}#attachmentDraft{display:flex;justify-content:space-between;gap:8px;font-size:11px;overflow-wrap:anywhere}#attachmentDraft button{color:#e3bd66;padding:0}#infoDialog{max-height:90dvh;overflow-y:auto}.account-form output{font-size:12px;line-height:1.5;color:#f5dba2}#emojis button{font-size:22px;padding:5px}.chat-messages{height:250px}.faq-group article p{white-space:pre-wrap}

#infoDialog .dialog-top{position:sticky;top:-20px;background:#251d15;z-index:3;padding-bottom:8px}

/* Original portrait artwork: keep the snake face and title inside the standard hall card. */
[data-game="fortune-snake"] .game-image{object-fit:cover;object-position:center 30%}

/* Candy Burst card uses this game's original background and uncropped logo. */
[data-game="candy-burst"]{background:#a5e9f3 url("assets/candy-burst-background.jpg") center/cover no-repeat}
[data-game="candy-burst"] .game-image{object-fit:contain;padding:8%;box-sizing:border-box}

/* Keep the wordmark legible next to the account controls on narrow screens. */
.topbar .brand{min-width:0;display:flex;align-items:center}
.win3888-wordmark{display:block;width:clamp(90px,30vw,158px);max-width:100%;height:auto;max-height:42px;object-fit:contain;object-position:left center}
.win3888-menu-logo{display:block;width:148px;height:auto;max-height:43px;object-fit:contain}
