:root{font:16px/1.5 "Inter","PingFang SC","Microsoft YaHei",sans-serif;color:#32261c;background:#eee9e0;--paper:#fffcf7;--accent:#974300;--line:#e8dfd1;--muted:#716254}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background-image:repeating-linear-gradient(45deg,transparent 0 24px,#ab916a12 25px 26px,transparent 27px 51px),repeating-linear-gradient(-45deg,transparent 0 24px,#ab916a12 25px 26px,transparent 27px 51px)}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer;background:none;border:0;color:inherit;padding:0}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ad5c00;outline-offset:2px}[hidden]{display:none!important}.icon{display:inline-block;width:20px;height:20px;flex:none;vertical-align:middle}.shell{width:min(100%,490px);min-height:100dvh;margin:auto;background:var(--paper);box-shadow:0 0 0 1px #d9cebf,0 0 54px #55402315}.shell>header{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid var(--line);background:#fffdf9}.brand{display:inline-flex;align-items:center;gap:10px;font-size:18px;font-weight:800;letter-spacing:.045em}.brand img{width:55px;height:auto}.brand span{border-left:1px solid #d7c9b4;padding-left:11px}.search-pill{display:flex;align-items:center;gap:5px;border:1px solid #e9cfac;background:#fff7e9;border-radius:22px;color:var(--accent);font-size:14px;font-weight:650;padding:6px 13px}.search-pill .icon{width:16px}
main{padding:12px 12px calc(82px + env(safe-area-inset-bottom));min-height:75vh}h1,h2,p{margin:0}h1{margin:5px 0 14px;font-size:23px}h2{font-size:17px}
.section-heading{display:flex;align-items:center;justify-content:space-between;margin:13px 0 9px;min-height:25px}.section-heading h2{display:flex;align-items:center;gap:7px;font-weight:750;letter-spacing:.025em}.section-heading h2 .icon{width:19px;color:var(--accent)}.section-heading button{border:1px solid var(--line);border-radius:50%;width:26px;height:26px;color:var(--muted);display:grid;place-items:center}.section-heading button .icon{width:15px}.feature-strip{display:flex;gap:9px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:1px 1px 5px}.pick{flex:0 0 calc((100% - 30px)/4.35);min-width:0;scroll-snap-align:start;text-align:left}.pick div{position:relative;aspect-ratio:1.16;overflow:hidden;border-radius:10px;background:#272527}.pick img,.game img{display:block;width:100%;height:100%;object-fit:cover}.pick div span{position:absolute;left:0;top:0;color:#532a05;background:#ffd076;font:bold 11px/19px Arial;text-align:center;width:25px;border-radius:0 0 7px 0}.pick b{display:block;margin-top:5px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notice{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;margin:8px 0;background:#fff1d8;color:#824000;border-radius:7px;font-size:13px;text-align:start}.notice .icon{width:16px;height:16px}.notice span{flex:1}.shortcuts{display:grid;grid-template-columns:repeat(4,1fr);background:white;border:1px solid var(--line);border-radius:9px}.shortcuts :is(a,button){display:flex;align-items:center;justify-content:center;gap:7px;min-height:43px;font-size:14px;font-weight:650}.shortcuts :is(a,button)+*{border-left:1px solid #f2eada}.shortcuts .icon{color:#a76013;width:18px}
.catalog{display:grid;grid-template-columns:78px minmax(0,1fr);gap:12px}#categories{display:flex;flex-direction:column;gap:6px}#categories button{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:39px;background:#f2eee7;color:#594d41;border-radius:8px;font-size:14px;font-weight:600}#categories button img,#categories .icon{height:20px;width:20px;object-fit:contain}#categories [aria-pressed=true]{color:white;background:linear-gradient(115deg,#b85c02,#974000);box-shadow:0 2px 5px #a9530029}
.results{min-width:0}#filters{display:flex;gap:2px;background:#f1ede5;border-radius:8px;margin-bottom:10px;padding:3px}#filters button{flex:1;display:flex;align-items:center;justify-content:center;gap:3px;font-size:13px;min-height:29px;color:var(--muted);border-radius:6px}#filters .icon{width:14px}#filters [aria-pressed=true]{background:white;color:var(--accent);box-shadow:0 1px 4px #4d39211a;font-weight:700}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 8px}.game{display:grid;text-align:center;min-width:0;gap:5px;align-content:start}.game img{aspect-ratio:1;height:auto;border-radius:10px;background:#ede6da}.game span{font-size:13px;font-weight:600;line-height:1.4}.game:hover img,.pick:hover img{filter:brightness(1.08)}.empty{grid-column:1/-1;text-align:center;padding:26px 12px;color:var(--muted);font-size:14px}.empty .icon{display:block;margin:0 auto 10px}.bottom{position:fixed;z-index:3;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,490px);display:flex;background:#fffdf9;border-top:1px solid var(--line);padding:5px 0 calc(5px + env(safe-area-inset-bottom));box-shadow:0 -3px 16px #37271109}.bottom a{align-items:center;justify-content:center;display:flex;flex:1;flex-direction:column;gap:2px;font-size:12px;min-height:43px;color:#736453}.bottom .icon{width:21px;height:21px}.bottom a[aria-current=page]{color:var(--accent);font-weight:750}.bottom a[aria-current=page] .icon{fill:#ffe0a4}
.offer{position:relative;display:flex;overflow:hidden;flex-direction:column;justify-content:center;padding:18px;color:white;gap:4px;border-radius:12px;aspect-ratio:3.1;margin-bottom:12px;isolation:isolate}.offer img{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover}.offer strong{font-size:23px}.offer span{color:#ffe5b0;font-size:14px}
dialog{padding:18px;border:1px solid var(--line);border-radius:17px;background:var(--paper);color:inherit;width:min(420px,calc(100% - 28px));max-height:80dvh;overscroll-behavior:contain;box-shadow:0 18px 90px #35221540}dialog::backdrop{background:#231b16a6}.sheet-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.sheet-head h2{font-size:20px}.sheet-head button{background:#eee9e0;border-radius:50%;width:32px;height:32px}.field{display:flex;align-items:center;padding:6px 10px;border:1px solid #baa68e;border-radius:8px;gap:7px;margin-bottom:12px}.field input{width:100%;min-width:0;border:0;background:transparent;min-height:32px;color:inherit}.field .icon{width:17px;color:var(--muted)}.copy{line-height:1.8}.game-detail{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:14px}.game-detail img{width:86px;height:86px;object-fit:cover;border-radius:12px}.actions{display:flex;gap:10px;margin-top:20px}.actions :is(a,button){display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:10px 14px;font-weight:600}.actions .primary{flex:1;background:#984700;border-color:#984700;color:white}.actions [aria-pressed=true]{color:var(--accent);background:#fff0d9}.menu a{display:flex;align-items:center;justify-content:space-between;padding:12px 2px;border-bottom:1px solid var(--line)}.menu a:last-child{border:0}.menu .icon{width:16px}
@media(max-width:365px){main{padding-inline:9px}.catalog{grid-template-columns:66px minmax(0,1fr);gap:8px}.grid{gap:11px 6px}#categories button{font-size:13px}#filters button{gap:1px}.shortcuts :is(a,button){gap:4px}}

.head-tools,.download,.member-head,.member-head>div,.member-head>a,.member-links a,.services a{display:flex;align-items:center}
.head-tools{gap:12px}.download{font-size:13px;gap:3px;color:var(--muted)}.download .icon{width:15px}
.spotlight{display:grid;gap:10px}.member{background:linear-gradient(110deg,#fff9e9,#fffdf8);border:1px solid #e4d1ae;border-radius:12px;padding:11px 14px 0}
.member-head{justify-content:space-between;gap:6px}.member-head>div{gap:6px}.member-head>div>.icon{color:var(--accent);width:18px}
.member-head>a{gap:3px;color:#834800;font-size:13px;font-weight:650}.member-head>a>.icon{width:16px}
.member-links a{width:max-content;gap:3px;color:var(--muted);font-size:13px;min-height:28px}.member-links .icon{width:14px}
.services{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);margin-top:5px}.services a{gap:5px;justify-content:center;min-height:43px;font-size:14px;font-weight:600}
.services .icon{width:17px;color:var(--accent)}.bottom a.desktop-extra{display:none}.pick div{aspect-ratio:1.18}.pick img{object-position:70% center}
[data-game="bbin"] img{object-position:center top}

.hot-heading { gap:8px; margin-bottom:7px }
.hot-heading h2 { flex:1; justify-content:center; gap:6px; color:var(--accent); font-size:14px; letter-spacing:.04em }
.hot-heading h2::before,.hot-heading h2::after { content:""; flex:1; height:1px; background:linear-gradient(90deg,transparent,#dca262) }
.hot-heading h2::after { transform:rotate(180deg) }
.hot-heading h2 .icon { width:11px; height:11px; fill:#dc781b; stroke:#b7560a }
.hot-heading button { min-width:30px; min-height:30px }
.feature-strip { gap:10px; overscroll-behavior-x:contain }
.pick { flex:0 0 clamp(64px,18vw,84px); text-align:center }
.pick div { aspect-ratio:1; border-radius:9px; border:1px solid #edcf9e }
.pick img { object-position:center }
.pick div span { left:50%; transform:translateX(-50%); width:auto; padding:0 5px; border-radius:0 0 4px 4px; background:#a84806; color:white; font-weight:600; font-family:inherit; font-size:10px; line-height:15px }
.pick b { font-weight:600; line-height:1.4; margin-top:4px }
.tile { position:relative; min-width:0 }
.tile .game { width:100% }
.tile .game img { aspect-ratio:1; object-position:center }
.tile .game span { font-weight:500; color:#51463e }
.tile-star { position:absolute; top:2px; right:2px; width:30px; height:30px; display:grid; place-items:center; color:white; z-index:1; border-radius:50% }
.tile-star .icon { width:20px; height:20px; padding:3px; border-radius:50%; background:#241910a6; stroke-width:2.2 }
.tile-star[aria-pressed=true] .icon { fill:#ffd77d; color:#ffd77d }

/* The reference uses one bounded lobby on both touch and desktop screens. */
:root{--shell-width:475px;--paper:#fff;--accent:#ad4d00}
body{background:#eaeaea url("./assets/pitch-pattern.avif") repeat center top;background-size:128px auto}
.shell,.bottom{width:min(100%,var(--shell-width))}
.shell{box-shadow:0 0 0 1px #dedbd5}
.shell>header{height:clamp(41px,10.5vw,50px);padding:0 10px;background:white;border-bottom:1px solid #f6a334}
.brand{font-size:15px;gap:7px}.brand img{width:43px}.brand span{padding-left:7px}
.search-pill{min-height:28px;padding:2px 12px;border-radius:12px;font-size:13px}
main{padding:10px 10px calc(78px + env(safe-area-inset-bottom))}
.hero{position:relative;isolation:isolate;height:120px;background:#f7f4ee;border-radius:8px;overflow:hidden}
.slides{position:relative;width:100%;height:100%;display:flex;overflow:auto hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.slides::-webkit-scrollbar{display:none}
.slide{flex:0 0 100%;height:100%;min-width:0;display:block;scroll-snap-align:start}
.slide img{width:100%;height:100%;display:block;object-fit:fill;pointer-events:none}
.slide-controls{position:absolute;bottom:2px;right:5px;display:flex;align-items:center;background:#20170c96;border-radius:20px;padding:0 3px}
#hero-dots{display:flex}#hero-dots button,#rotate{width:20px;height:22px;display:grid;place-items:center;color:white}
#hero-dots button::after{content:"";width:5px;height:5px;border-radius:4px;background:#fff9}
#hero-dots [aria-pressed=true]::after{width:12px;background:#fff}
#rotate{font:700 11px/1 Arial}
.hot-heading{margin:4px 0 0;min-height:22px}.hot-heading h2{font-size:13px}
.hot-heading button{width:22px;height:22px;min-width:22px;min-height:22px}
.feature-strip{gap:12px;padding:2px 1px 5px}.pick{flex-basis:clamp(60px,16vw,76px)}.pick b{font-size:12px}
.notice{margin:4px 0 0;padding:6px 4px;background:white;border-block:1px solid #f4eadc;border-radius:0;color:#694d39}
.member{margin:0 0 11px;padding:8px 9px;display:grid;grid-template-columns: minmax(96px,.85fr) 1.15fr;align-items:center;column-gap:6px;border:1px solid #f4e8da;border-top:0;border-radius:0 0 10px 10px;background:white;box-shadow:0 3px 7px #391f0412}
.member-head{grid-column:1;justify-content:start;gap:6px;flex-wrap:wrap}.member-head h2{font-size:13px}.member-head>div{gap:3px}.member-head>div>.icon{width:14px}
.member-head>a{font-size:11px}.member-head>a>.icon{width:12px}
.member-links{grid-column:1}.member-links a{min-height:22px;font-size:12px}
.services{grid-column:2;grid-row:1/3;margin:0;border:0}.services a{flex-direction:column;gap:2px;font-size:11px;min-height:40px}
.catalog{grid-template-columns:clamp(70px,21.25vw,90px) minmax(0,1fr);gap:12px}
#categories{gap:8px}#categories button{min-height:42px;background:#fff6ec;color:#67594c;box-shadow:0 3px 8px #27150413;border-radius:12px}
#categories button img{width:24px;height:24px;object-fit:contain}
#categories [aria-pressed=true]{background:linear-gradient(180deg,#fd7916,#ffb423);color:#522800}
#filters{background:none;gap:clamp(4px,1.5vw,10px);padding:2px 0 0;margin:0 0 16px}
#filters button{background:#f5f5f5;border:1px solid #e7e7e7;min-height:31px;border-radius:11px;box-shadow:0 3px 7px #30211413;font-size:13px}
#filters button .icon{display:none}#filters [aria-pressed=true]{background:linear-gradient(120deg,#ff9f10,#ff7100);color:#552600;border-color:#f58319}
#games{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 5px}
#games .tile{width:min(100%,clamp(64px,18.5vw,87px));justify-self:center}
#games .game{gap:4px}#games .game span{font-size:12px}#games .tile-star{width:24px;height:24px}
.bottom{padding:3px 0 calc(3px + env(safe-area-inset-bottom));background:white;box-shadow:0 -2px 8px #21170e0d}
.bottom a{min-height:clamp(53px,13.5vw,64px);gap:1px;font-size:12px}.bottom img{width:clamp(25px,6.45vw,30px);height:auto;aspect-ratio:1;object-fit:contain}
.bottom [aria-current=page] img{transform:scale(1.08)}.bottom [aria-current=page]{color:#ab4c00}
@media(min-width:475px){.hero{height:120px}.member-head h2{font-size:15px}.catalog{gap:16px}#games{gap:18px 8px}.bottom a{font-size:13px}}
.bottom a[href$="/wallet"] img{transform:scale(1.18);filter:sepia(1) saturate(2.8) hue-rotate(354deg)}
