:root{--bg:#090c09;--layer:#131913;--raised:#192119;--border:#2b382c;--ink:#f2f6ef;--muted:#aab7aa;--accent:#b9f77d;--green:#87efa9;--max:1248px}
body{isolation:isolate;background:radial-gradient(ellipse at 54% -120px,#1f3621 0,transparent 690px),var(--bg);min-height:100dvh}body::before,body::after{content:'';position:fixed;pointer-events:none;z-index:-1;inset:-100px;background-repeat:repeat;opacity:.33;animation:star-drift 34s linear infinite alternate}body::before{background-size:251px 219px;background-image:radial-gradient(circle at 18px 30px,#fff 0 1px,transparent 1.45px),radial-gradient(circle at 87px 158px,#fff 0 .65px,transparent 1.15px),radial-gradient(circle at 173px 80px,#fff 0 .7px,transparent 1.25px)}body::after{background-size:389px 281px;background-image:radial-gradient(circle at 105px 46px,#fff 0 1.3px,transparent 2px),radial-gradient(circle at 290px 117px,#fff 0 .7px,transparent 1.2px),radial-gradient(circle at 220px 263px,#fff 0 1.1px,transparent 1.65px);opacity:.17;animation-duration:49s;animation-direction:alternate-reverse}@keyframes star-drift{from{transform:translate3d(-15px,34px,0)}to{transform:translate3d(52px,-69px,0)}}.skip{position:fixed;top:8px;left:8px;z-index:20;background:var(--green);color:#111712;padding:8px 12px;border-radius:6px;transform:translateY(-165%)}.skip:focus{transform:none}.screen{min-height:65dvh}.screen>.loading{margin-top:40px}
.topbar{height:72px;background:#101710f0;border-color:#314333}.nav-row{gap:20px}.logo{background:#243626;border-color:#436246;border-radius:10px}.logo img{width:25px;height:25px;object-fit:contain}.brand{font-size:25px}.brand .green,.brand i{color:var(--accent)}.nav-row nav{gap:22px}.nav-row nav>a,.primary-nav summary{color:#bdcbbb;font-weight:700}.nav-row nav>a[aria-current],.primary-nav summary[aria-current],.nav-row nav>a:hover,.primary-nav summary:hover{color:var(--accent)}.search{background:#182319;border-color:#314433;color:#a0b29e}.search input::placeholder{color:#a6b8a4}.icon-button,.outline{background:#1d2a1e;border-color:#394e3b;color:#f2f8f1}.outline:hover,.icon-button:hover{border-color:var(--accent);color:var(--accent)}.solid{background:var(--accent);border-color:var(--accent);color:#132215}.solid:hover{background:#d2fcaa}.dropdown{position:relative}.dropdown summary{list-style:none;display:flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap}.dropdown summary::-webkit-details-marker{display:none}.dropdown summary [data-icon=chevron] svg{width:15px;height:15px}.dropdown[open] summary [data-icon=chevron]{transform:rotate(180deg)}.dropdown>div{display:grid;position:absolute;top:calc(100% + 12px);left:-12px;min-width:182px;background:#1d291eed;border:1px solid #435d45;border-radius:12px;padding:6px;box-shadow:0 17px 38px #050905b3;z-index:8;backdrop-filter:blur(14px)}.topbar .dropdown>div>a{display:flex;justify-content:start;align-items:center;gap:9px;color:var(--ink);height:auto;padding:8px 9px;border-radius:7px;font-weight:650}.dropdown>div>a:hover,.dropdown>div>a:focus-visible{background:#2d452f;color:var(--accent)}.user-nav summary{padding:0 10px;min-height:39px;background:#243726;border:1px solid #506e53;border-radius:8px;color:var(--accent);font-weight:800}.user-nav>div{left:auto;right:0}.user-nav>div svg,.dropdown>div svg{width:16px;height:16px;color:var(--accent)}
.home-hero{padding-top:30px}.hero-module{min-height:414px;position:relative;display:flex;align-items:center;overflow:hidden;isolation:isolate;border:1px solid #39533c;border-radius:24px;background:#121e14}.home-art{position:absolute;inset:0 0 0 30%;z-index:-1;background:linear-gradient(90deg,#121e14,transparent 53%),url('/assets/portal-scene.webp') 86% 48%/cover no-repeat}.hero-module .hero-copy{padding:44px 4%;width:min(640px,100%)}.hero-module .eyebrow{color:#ebf4e9;background:#253b27;border-color:#49674c;letter-spacing:1.7px}.signal{background:var(--green);box-shadow:0 0 12px #87efa9}.hero-module h1{font-size:clamp(44px,5.05vw,72px);line-height:1.06;letter-spacing:-.05em;font-weight:900}.hero-gradient{color:var(--accent);background:linear-gradient(104deg,#d1ffa0,#a8ee57 62%,#5dec9c);background-clip:text;-webkit-text-fill-color:transparent}.hero-module p{color:#c8d7c6;font-size:16px;margin-top:18px;max-width:32ch}.store-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:13px}.store-stats:empty{display:none}.store-stat{display:flex;gap:12px;align-items:center;padding:11px 14px;border:1px solid var(--border);border-radius:12px;background:#182319e8}.store-stat span:last-child{min-width:0}.store-stat strong,.store-stat small{display:block}.store-stat strong{font:700 24px/1.12 var(--en);color:var(--ink)}.store-stat small{color:var(--muted);font-size:12px}.feature-icon{background:#263b28;border-color:#48614a;color:var(--accent)}
.discovery{padding-top:39px}.discovery:last-child,.discovery:has(+#best-section[hidden]){padding-bottom:42px}.section-head{margin-bottom:14px;align-items:center}.section-head .button{min-height:36px}.section-head h2{font-size:30px}.section-head [data-icon] svg{width:15px}.spotlight:empty,.spotlight[hidden]{display:none}.spotlight{position:relative;min-height:249px;margin-bottom:14px;display:grid;align-items:end;overflow:hidden;border-radius:17px;border:1px solid #4d674f;isolation:isolate;background:#203021}.spotlight-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 48%;z-index:-2}.spotlight::before{position:absolute;inset:0;content:'';background:linear-gradient(90deg,#121d13f5 10%,#152117ae 46%,transparent 85%),linear-gradient(0deg,#101911e8,transparent 70%);z-index:-1}.spot-main{padding:26px;max-width:82%}.spot-main h3{font:700 clamp(24px,4vw,42px)/1.05 var(--en);margin:10px 0 5px}.spot-main p{color:#dbe7d9;margin-bottom:14px}.spot-nav{position:absolute;bottom:14px;right:14px;display:flex;gap:5px}.spot-nav button{border:1px solid #70886d;background:#1e3220c9;border-radius:6px;color:#f3f8f2;font-weight:800;width:32px;height:32px}.spot-nav button[aria-pressed=true]{background:var(--accent);color:#182e1b;border-color:var(--accent)}
.cards{gap:15px}.card{position:relative;background:linear-gradient(160deg,#1c2a1d,#172218 65%);border:1px solid #314933;border-radius:15px}.card:hover,.card:focus-within{border-color:var(--accent);box-shadow:0 9px 30px #060b0680}.cover{aspect-ratio:1.45;background:#273c29}.cover:after{background:linear-gradient(0deg,#0a130bb0,transparent 48%)}.cover .tag{left:9px;top:9px;background:#101d11e8;border-color:#608564;color:#f1f8f0;border-radius:6px}.card-body{padding:13px}.card h3{min-height:2.5em;font-size:20px;line-height:1.24;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-body .availability{justify-content:space-between;gap:5px}.availability span{display:flex;align-items:center;gap:5px}.availability.available b{background:var(--green)}.availability small{color:#bfd9bb;white-space:nowrap}.card-foot{border-color:#334b35}.price{color:var(--green);font-size:25px}.card-foot .button{border-color:#517254}.category-grid,.help-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.category-grid a,.help-steps a{transition:background .2s,border-color .2s,transform .2s;padding:15px;display:flex;align-items:center;gap:11px;border:1px solid #365039;border-radius:13px;background:#1a251b}.category-grid a:hover,.help-steps a:hover{border-color:var(--accent);transform:translateY(-3px);background:#253927}.category-grid a>span:last-child{margin-left:auto;color:var(--accent)}.category-grid small,.help-steps small{display:block;color:var(--muted);font-size:12px}
.page{padding:32px 0 47px;min-height:65dvh}.page-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;padding:23px 26px;border:1px solid #394f3b;border-radius:18px;background:radial-gradient(ellipse at 95% 5%,#315134,transparent 70%),#1b2a1d}.page-intro h1,.admin-head h1{font-size:clamp(28px,4vw,44px);line-height:1.23;letter-spacing:-.035em}.page-intro p:not(.page-path){margin-top:7px;color:var(--muted)}.page-path{font-size:12px;color:#b1c4ae;margin-bottom:4px}.page-path span{color:var(--accent);padding-inline:3px}.page-intro .feature-icon{width:45px;height:45px}.catalog-tools{margin:15px 0 8px}.filters button{background:#1a291c;border-color:#354c37;color:#dfeddd}.filters button:hover,.filters button.selected{background:#2e4630;color:#e7f2e6;border-color:#88b181}.sort{background:#19281b;border-color:#3a4f3c}.games-page #result-count{margin:9px 0}.help-steps{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:17px}.help-steps a{display:grid;gap:4px;align-content:start}.help-steps svg{color:var(--accent);margin-bottom:4px}.questions details{background:#172319;border-color:#2f4531}.questions details[open]{border-color:#57775a}.account-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:14px}.account-side{display:grid;align-content:start;gap:6px}.account-side a,.admin-side nav a{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid transparent;border-radius:8px;color:var(--muted);font-weight:650}.account-side a[aria-current],.account-side a:hover,.admin-side nav a[aria-current],.admin-side nav a:hover{background:#293f2b;color:#f1f7f0;border-color:#4a684d}.page-panel{max-width:850px}.page h2#modal-title{margin:0}.page .modal-heading{margin:4px 0 0}.page .modal-heading h2{font-size:32px}.page .wallet-summary,.page .mini-panel,.page .upload{background:#19251a;border-color:#384d3a}.page .upload:hover,.page .upload.drag{background:#273c29;border-color:var(--accent)}.notice{background:#253627;color:#e1eddf;border-color:#465f49}.order-code{background:#0e1a10;border-color:#374d39;color:#c7f7ea}.page-panel button[data-copy]{white-space:normal}.page-panel .receipt{border-color:#374b39}.auth-layout{display:grid;grid-template-columns:1.02fr .98fr;max-width:960px;margin:auto;border-radius:22px;border:1px solid #3c513e;overflow:hidden;background:#19241a;min-height:460px}.auth-visual{display:grid;align-content:end;padding:27px;background:linear-gradient(0deg,#0f1910ea,transparent 77%),url('/assets/portal-scene.webp') 65% 50%/cover}.auth-visual img{width:48px;margin-bottom:9px}.auth-visual h1{font:700 48px/1 var(--en);letter-spacing:-2px}.auth-visual h1 span{color:var(--accent)}.auth-visual p{color:#d7e8d4;margin-top:8px}.auth-panel{padding:26px;align-self:center}.auth-panel .modal-heading{margin:0 0 10px}.auth-panel .modal-heading>.feature-icon{display:none}.google-button{width:100%;border:1px solid #5c7e60;background:#f0f6ef;color:#1c2d1d}.google-button:hover{background:#fff}.google-button .google-g{font:800 19px var(--en);color:#2856d5}.auth-divider{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px}.auth-divider:before,.auth-divider:after{content:'';height:1px;flex:1;background:#3b533d}.auth-panel .field input,.admin-content .field input,.admin-content .field select,.admin-content .field textarea{background:#101b11;border-color:#465f49}.password-row{display:flex;gap:5px}.password-row .icon-button{flex:none;font-size:11px;padding:0 7px}
.admin-space{display:grid;grid-template-columns:206px minmax(0,1fr);margin:20px auto 38px;width:min(calc(100% - 48px),1360px);gap:15px;align-items:start}.admin-side{position:sticky;top:86px;border:1px solid #354a37;border-radius:14px;background:#182319f0;padding:11px;display:grid;gap:13px}.operator-brand{display:flex;align-items:center;gap:9px;padding:6px;font:700 20px var(--en)}.operator-brand img{width:33px}.operator-brand small,.operator-user small{display:block;color:var(--muted);font:500 11px var(--th)}.admin-side nav{display:grid;gap:3px}.admin-content{min-width:0}.admin-head{display:flex;align-items:end;justify-content:space-between;gap:10px;padding:8px 2px;margin-bottom:10px}.admin-head h1{font-size:34px}.operator-user{display:flex;align-items:center;gap:7px;color:var(--accent);min-width:0}.operator-user>span:last-child{overflow-wrap:anywhere}.admin-mobile{display:none}.admin-content .mini-panel{background:#182319;border-color:#344a37}.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.metric{min-height:92px}.metric p{display:flex;align-items:center;gap:7px;color:#cbdcc8}.metric p svg{color:var(--accent)}.metric .amount{font-size:28px}.admin-split{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:10px}.chart-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.chart-head select{color:var(--ink);border:1px solid #49634c;background:#233124;border-radius:7px;padding:5px}.chart-legend{display:flex;gap:12px;color:var(--muted);margin:5px 0;font-size:12px}.chart-legend span:before{content:'';display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:4px;background:var(--accent)}.chart-legend span+span:before{background:var(--green)}.chart-plot{height:142px;display:flex;gap:3px;background:repeating-linear-gradient(0deg,#344736 0 1px,transparent 1px 35px);margin-top:11px}.chart-column{min-width:0;flex:1;position:relative;outline-offset:0}.chart-column svg{width:100%;height:100%;overflow:visible}.chart-column rect{fill:var(--accent)}.chart-column rect+rect{fill:var(--green)}.chart-tip{display:none;position:absolute;left:50%;bottom:100%;transform:translateX(-50%);z-index:1;white-space:nowrap;font-size:11px;background:#263728;border:1px solid #49664c;color:#f5faf4;padding:3px 5px;border-radius:5px}.chart-column:is(:hover,:focus) .chart-tip{display:block}.chart-dates{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.admin-list-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.admin-filter{border:1px solid #4a644d;background:#121e14;color:var(--ink);min-width:0;width:min(230px,100%);border-radius:7px;padding:5px 7px}.admin-content .receipt,.admin-content .line-item{border-color:#374f39}.status-chip{padding:3px 6px;border-radius:5px;background:#2a3f2c;color:#d7ead4;font-size:11px}.status-chip.ready{background:#203d36;color:#aff7e6}.inline-links{display:flex;gap:8px;flex-wrap:wrap}.admin-content .row-actions{gap:5px}.admin-product-image{width:44px;height:40px;object-fit:cover;border-radius:6px;flex:none}.admin-product-main{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}.admin-content .order-code{width:100%}
.dialog-panel{background:#182419}.detail-img{aspect-ratio:2.5}.dialog-panel .notice,.dialog-panel .mini-panel,.dialog-panel .wallet-summary{background:#1d2c1f;border-color:#394e3b}.dialog-panel .close{background:#1d301f}.availability b{background:#a7b5a4}#toast{background:#27402a;border-color:#83a57d;color:#f2f8f1}footer{background:#111a12;border-color:#2f4231}.footer-row a:hover{color:var(--accent)}
@media(max-width:950px){.nav-row{gap:13px}.nav-row nav{gap:13px}.search{width:155px}.hero-module{min-height:365px}.admin-space{grid-template-columns:153px minmax(0,1fr)}.admin-split{grid-template-columns:1fr}.account-layout{grid-template-columns:155px minmax(0,1fr)}}
@media(max-width:780px){.topbar{height:auto}.nav-row nav{min-height:36px;gap:8px}.dropdown>div{left:0}.user-nav>div{left:auto}.home-hero{padding-top:16px}.hero-module{min-height:330px}.hero-module .hero-copy{padding:30px 5%}.hero-module p{font-size:14px}.admin-space{width:calc(100% - 28px);display:block}.admin-side{display:none}.admin-mobile{display:grid;margin-bottom:9px}.admin-head{align-items:start}.admin-head h1{font-size:30px}.cards{gap:10px}.cover{aspect-ratio:1.42}}
@media(max-width:530px){.nav-row{padding-top:7px}.brand{font-size:22px}.logo img{width:22px}.nav-actions .search{width:113px}.user-nav summary{gap:2px;padding-inline:6px}.user-nav summary #account-label{display:none}.desktop-order{display:none}.nav-row nav>a,.nav-row nav summary{font-size:13px}.hero-module{min-height:474px;align-items:end;border-radius:16px}.home-art{inset:0 0 auto;height:315px;background:linear-gradient(0deg,#121e14,transparent 51%),url('/assets/portal-scene.webp') 71% 46%/cover no-repeat}.hero-module .hero-copy{padding:21px 15px}.hero-module h1{font-size:clamp(37px,10vw,52px)}.hero-module p{margin-top:9px}.hero-module .eyebrow{margin-bottom:10px}.store-stats{gap:4px;margin-top:8px}.store-stat{padding:7px 4px;gap:3px;border-radius:7px;text-align:center;justify-content:center;flex-wrap:wrap}.store-stat .feature-icon{height:24px;min-width:25px}.store-stat .feature-icon svg{width:14px}.store-stat strong{font-size:19px}.store-stat small{font-size:10px}.discovery{padding-top:25px}.section-head h2{font-size:24px}.section-head .button{font-size:11px;padding:3px 7px;min-height:29px}.spotlight{min-height:228px;border-radius:12px}.spot-main{padding:12px 12px 38px;max-width:96%}.spot-main p{font-size:12px;margin-bottom:8px}.spot-main .button{min-height:34px}.spot-nav{bottom:8px;right:8px}.spot-nav button{width:26px;height:26px}.card-body{padding:8px}.card h3{font-size:16px}.cover .tag{top:5px;left:5px}.availability{font-size:10px}.availability small{font-size:9px}.price{font-size:20px}.category-grid,.help-steps{grid-template-columns:1fr;gap:6px}.category-grid a,.help-steps a{padding:9px}.page{padding-top:14px}.page-intro{padding:12px;margin-bottom:13px}.page .modal-heading h2{font-size:25px}.account-layout{display:block}.account-side{display:flex;gap:2px;margin-bottom:10px;flex-wrap:wrap}.account-side a{padding:5px;font-size:12px;gap:4px}.account-side a svg{width:14px}.auth-layout{grid-template-columns:1fr;min-height:0}.auth-visual{min-height:154px;padding:13px;background-position:64% 46%}.auth-visual img{width:30px;margin-bottom:2px}.auth-visual h1{font-size:32px}.auth-visual p{margin:4px 0 0;font-size:12px}.auth-panel{padding:16px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric .amount{font-size:23px}.admin-head h1{font-size:25px}.admin-head .operator-user>span:last-child{font-size:10px}.row-actions .button{font-size:11px;padding:0 5px}.admin-product-image{display:none}.chart-tip{display:none!important}.footer-row{gap:5px;font-size:10px}.footer-row .brand{font-size:16px}}
@media(prefers-reduced-motion:reduce){body::before,body::after{animation:none}.card,.dropdown *, .category-grid *{transition:none!important}}
.hero-module::after{content:'';position:absolute;inset:-64px;z-index:-1;pointer-events:none;background-size:303px 197px;background-image:radial-gradient(circle at 20px 40px,#fff 0 .8px,transparent 1.45px),radial-gradient(circle at 131px 150px,#fff 0 1.1px,transparent 1.6px),radial-gradient(circle at 219px 22px,#fff 0 .7px,transparent 1.2px);opacity:.24;animation:star-drift 36s linear infinite alternate}.order-reveal summary{cursor:pointer;color:var(--accent);font-weight:750}.order-reveal[open]{display:grid;gap:9px}.order-reveal[open] summary{margin-bottom:7px}.order-reveal .order-code{margin-bottom:7px}.metric:hover{border-color:var(--accent)}@media(prefers-reduced-motion:reduce){.hero-module::after{animation:none}}

.mobile-nav{display:none}
.dropdown>div>a[aria-current='page']{color:var(--accent);background:#2d452f}
.dropdown[open]>div{animation:menu-in 140ms ease-out}
@keyframes menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
#buying,#slip,#history{scroll-margin-top:112px}

.profile-card{display:flex;align-items:center;flex-wrap:wrap;gap:15px;background:radial-gradient(ellipse at 92% 0,#304d33,transparent 70%),#1a251b;padding:18px}
.profile-card .button{margin-left:auto}
.profile-avatar{flex:none;width:82px;height:82px;display:grid;place-items:center;border-radius:21px;overflow:hidden;background:#2c472f;border:1px solid #688e62;color:var(--accent)}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-avatar svg{width:37px;height:37px}
.profile-identity{min-width:0;flex:1}
.profile-identity strong{display:block;font-size:20px;overflow-wrap:anywhere}
.profile-identity>span{display:block;color:var(--muted);overflow-wrap:anywhere}
.profile-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.profile-stats a{display:grid;gap:8px;padding:14px}
.profile-stats a:hover{border-color:var(--accent)}
.profile-stats span{display:flex;align-items:center;gap:8px;color:var(--muted)}
.profile-stats span svg{color:var(--accent)}
.profile-stats strong{font:700 28px/1 var(--en);color:var(--green)}
.profile-form{padding:17px;background:radial-gradient(ellipse at 92% 0,#2a432d,transparent 60%),#1a251b}
.profile-form .profile-card{padding:2px 0 12px;background:none;border-bottom:1px solid #3a4e3c}
.profile-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.profile-identity .profile-actions{margin-top:9px}
.profile-form .profile-actions .button{margin-left:0}
.profile-email{display:block;padding:10px;border:1px solid #3a4e3c;background:#131f15;border-radius:8px;color:var(--muted);overflow-wrap:anywhere}
#profile-status:empty{display:none}

@media(max-width:920px){
  .topbar .primary-nav{display:none}
  .mobile-nav{display:block}
  .mobile-nav>div{top:calc(100% + 12px);left:-3px;min-width:210px;max-height:calc(100dvh - 88px);overflow:auto}
  .topbar .mobile-nav>div>a{min-height:38px}
  .topbar .mobile-nav>div>a.nav-child{padding-left:27px;color:#cfe0cc}
}
@media(max-width:530px){
  .profile-avatar{width:64px;height:64px;border-radius:16px}
  .profile-avatar svg{width:28px;height:28px}
  .profile-card{gap:10px;padding:11px}
  .profile-identity strong{font-size:17px}
  .profile-identity>span{font-size:12px}
  .profile-card>.button{margin-left:0;width:100%}
  .profile-form{padding:12px}
  .profile-actions .button{min-height:36px}
  .profile-stats a{padding:8px}
  .profile-stats span{font-size:12px}
  .profile-stats strong{font-size:24px}
}
@media(prefers-reduced-motion:reduce){.dropdown[open]>div{animation:none}}

/* /* Shared storefront navigation */
:root {
  --bg: #0b0e0c;
  --layer: #131714;
  --raised: #1a201b;
  --border: #2a332b;
  --ink: #f3f6f2;
  --muted: #b1bcb1;
  --accent: #bdf97c;
  --green: #a6ee87;
  --portal-tone: grayscale(1) sepia(.78) hue-rotate(67deg) saturate(2.1);
}
body { background: radial-gradient(ellipse at 65% 0%, #142017, transparent 730px), var(--bg); }
body::before { opacity: .18; }
body::after { opacity: .12; }
.topbar { height: 68px; background: #0b0e0cf0; border-color: #273128; }
.nav-brand, .nav-actions { display: flex; align-items: center; }
.nav-brand { flex: none; }
.nav-actions { position: relative; }
.logo { background: #1c271d; border-color: #3a4d39; }
.logo img, .auth-visual img, .operator-brand img { filter: var(--portal-tone) brightness(1.12); }
.search-trigger { display: grid; place-items: center; cursor: text; }
.search, .topbar .icon-button, .user-nav summary { background: #151a16; border-color: #303a30; border-radius: 10px; }
.user-nav summary { padding-inline: 12px; color: var(--ink); }
.user-nav summary:hover { color: var(--accent); border-color: #59724e; }
.dropdown > div { background: #151a16fa; border-color: #354436; }
.topbar .dropdown > div > a[aria-current='page'],
.topbar .dropdown > div > a:is(:hover, :focus-visible) { background: #253324; color: var(--accent); }
.button { border-radius: 10px; }
.solid { background: var(--accent); border-color: var(--accent); color: #101b10; }
.solid:hover { background: #d5ffac; border-color: #d5ffac; }
.outline { background: #191f1a; border-color: #39463a; }
.feature-icon { background: #202b20; border-color: #3a4b38; }

/* Hero and store totals */
.home-hero { padding-top: 23px; }
.hero-module {
  min-height: clamp(390px, 39vw, 505px);
  background: #0b100c;
  border-color: #344034;
  border-radius: 23px;
  box-shadow: 0 18px 55px #0005;
}
.home-art { inset: 0; z-index: -2; background: none; }
.home-art img { width: 87%; height: 100%; margin-left: auto; object-fit: cover; object-position: center 16%; }
.home-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a100cf5 2%, #0a100cba 29%, #0a100c47 53%, transparent 74%),
    linear-gradient(0deg, #0a100ca1, transparent 30%);
}
.hero-module::after { opacity: .23; }
.hero-module .hero-copy { width: min(67%, 690px); padding: 42px clamp(27px, 5.3vw, 71px); }
.hero-module .eyebrow { color: var(--accent); border-color: #41583b; background: #141d13e8; border-radius: 999px; margin-bottom: 19px; }
.hero-module h1 { font-size: clamp(41px, 5.25vw, 76px); line-height: 1.1; letter-spacing: -.045em; }
.hero-gradient { display: block; color: var(--accent); background: linear-gradient(99deg, #d8ffa6, #9ee865 83%); background-clip: text; }
.hero-module p { font-size: 16px; margin-top: 17px; max-width: 33ch; color: #d0dad0; line-height: 1.75; }
.hero-module .actions { margin-top: 21px; }
.hero-module .actions .button { min-height: 49px; padding-inline: 17px; }
.hero-module .actions .outline { background: #101611d9; }
.hero-module .actions .solid span:last-child { margin-left: 8px; }
.store-stats {
  gap: 0;
  margin-top: 12px;
  overflow: hidden;
  background: #131714ee;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.store-stat { justify-content: center; background: none; border: 0; border-radius: 0; padding: 12px; }
.store-stat + .store-stat { border-left: 1px solid var(--border); }
.store-stat strong { font-variant-numeric: tabular-nums; }

/* Featured games and category links */
.discovery { padding-top: 39px; }
.discovery-categories { padding-top: 27px; }
.section-head { margin-bottom: 16px; align-items: center; }
.section-head h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: clamp(23px, 3vw, 32px); }
.section-head h2 [data-icon] svg { width: 22px; height: 22px; color: var(--accent); }
.section-link { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; color: var(--accent); font-weight: 700; white-space: nowrap; }
.section-link:hover { color: var(--ink); }
.section-link svg { transition: transform .2s; }
.section-link:hover svg { transform: translateX(3px); }
.spotlight {
  grid-template-columns: minmax(0, 2.45fr) minmax(238px, 1fr);
  align-items: stretch;
  min-height: 0;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--layer);
}
.spotlight:not(:has(.spot-nav)) { grid-template-columns: minmax(0, 1fr); }
.spotlight::before { display: none; }
.spotlight-lead {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(290px, 32vw, 420px);
}
.spotlight-lead::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #080c09 0%, #080c09c7 24%, transparent 76%);
}
.spotlight-image { object-position: 50% 42%; }
.spot-main { max-width: none; padding: clamp(18px, 3.5vw, 36px); }
.spot-main h3 { font-size: clamp(28px, 4.4vw, 52px); overflow-wrap: anywhere; }
.spot-main p { color: #bec9bd; margin-bottom: 13px; }
.spot-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.spot-actions .button { min-height: 42px; }
.spot-actions .price { font-size: 28px; }
.spot-nav {
  position: static;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  max-height: 420px;
  overflow: auto;
  padding: 9px;
  gap: 5px;
  border-left: 1px solid var(--border);
}
.spot-nav button {
  display: grid;
  grid-template-columns: minmax(54px, 31%) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  height: auto;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.spot-nav button:hover, .spot-nav button[aria-pressed=true] { border-color: #4d6541; background: #222d20; color: var(--ink); }
.spot-nav button[aria-pressed=true] { box-shadow: inset 3px 0 var(--accent); }
.spot-nav button img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.spot-nav button strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; line-height: 1.3; }
.spot-nav button small { display: block; color: var(--accent); font: 700 16px var(--en); margin-top: 3px; }
.category-grid { gap: 14px; }
.category-grid a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 91px;
  padding: 17px;
  border-color: #344034;
  background: #131714;
}
.category-grid a::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #101611 22%, #101611d9 56%, #10161159), var(--category-art) 80% 40% / cover;
}
.category-grid a:first-child { --category-art: url('/assets/red-dead.webp'); }
.category-grid a:last-child { --category-art: url('/assets/cyberpunk.webp'); }
.category-grid strong { font: 700 21px/1.25 var(--en); }

/* Catalogue and game cards */
.games-page .page-intro {
  min-height: 158px;
  background: linear-gradient(90deg, #111611 8%, #111611ba 58%, #11161138), url('/assets/wayskey-portal.webp') 80% 51% / cover;
  border-color: var(--border);
}
.games-page .page-intro h1 { font-size: clamp(28px, 4.5vw, 47px); }
.games-page .page-intro .feature-icon { display: none; }
.catalog-tools { margin-top: 19px; }
.filters button, .sort { background: #151a16; border-color: #323d33; border-radius: 10px; min-height: 40px; }
.filters button:hover, .filters button.selected { color: var(--accent); background: #212d1e; border-color: #5e7b4b; }
.games-page #result-count { margin: 11px 0; }
.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(155deg, #191e19, #131714);
  border-color: var(--border);
  border-radius: 14px;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.card:hover, .card:focus-within { border-color: #678954; box-shadow: 0 11px 22px #0005; }
.card .cover { aspect-ratio: 1.08; flex-shrink: 0; }
.card .cover::after { background: linear-gradient(0deg, #070c078c, transparent 42%); }
.cover .tag { background: #0e1510e6; border-color: #76896f; border-radius: 6px; }
.cover .key-tag { background: #182919f2; border-color: #7c9d6b; color: #ddffb5; }
.card.sold-out .cover img { filter: grayscale(.85) brightness(.64); }
.card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 12px; }
.card h3 { min-height: 2.48em; font-size: clamp(15px, 1.45vw, 19px); }
.card-foot { margin-top: auto; padding-top: 8px; border: 0; }
.card-foot .button { border-color: #3f4e3f; background: #1a211b; min-height: 36px; font-weight: 700; }
.card-foot .button:hover { border-color: var(--accent); }
.card .price { color: var(--accent); }
.availability span { align-items: baseline; }
.availability b { align-self: center; flex: none; }
.auth-visual { position: relative; isolation: isolate; background: #101611; }
.auth-visual::before, .auth-visual::after { content: ''; position: absolute; inset: 0; }
.auth-visual::before { z-index: -2; background: url('/assets/wayskey-portal-mobile.webp') center / cover; }
.auth-visual::after { z-index: -1; background: linear-gradient(0deg, #0a100c, transparent 78%); }
.auth-layout, .page .mini-panel, .page .wallet-summary, .dialog-panel { background: #151a16; border-color: #344035; }
footer { background: #0d110e; border-color: var(--border); }

@media (min-width: 651px) and (max-width: 920px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .topbar { height: auto; }
  .nav-row { display: flex; min-height: 62px; gap: 7px; padding-top: 0; }
  .nav-brand, .nav-actions { padding: 3px; border: 1px solid #2a342b; border-radius: 999px; background: #121713; }
  .nav-brand .brand { padding: 0 7px 0 4px; margin-left: 1px; border-left: 1px solid #303a31; font-size: 20px; gap: 4px; }
  .nav-brand .logo { width: 29px; background: none; border: 0; }
  .mobile-nav summary, .user-nav summary, .topbar .nav-actions .icon-button {
    display: grid;
    place-items: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: transparent;
  }
  .nav-actions { gap: 0; }
  .user-nav summary #account-label, .user-nav summary [data-icon=chevron], .nav-actions kbd { display: none; }
  .nav-actions .search { width: 38px; height: 38px; padding: 0; border: 0; background: transparent; }
  .search-trigger { flex: none; width: 38px; height: 38px; }
  .search input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .nav-actions .search:focus-within {
    position: absolute;
    inset: 2px 0 auto auto;
    z-index: 9;
    width: min(295px, calc(100vw - 36px));
    padding: 0 12px 0 0;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--layer);
  }
  .search:focus-within input { position: static; width: 100%; height: auto; min-width: 0; opacity: 1; pointer-events: auto; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .home-hero { padding-top: 12px; }
  .hero-module { min-height: 0; display: block; border-radius: 17px; text-align: center; }
  .home-art { inset: 0 0 auto; height: clamp(200px, 52vw, 278px); }
  .home-art img { width: 100%; object-position: center 12%; }
  .home-art::after { background: linear-gradient(0deg, #0b100c 0%, #0b100c54 27%, transparent 60%); }
  .hero-module .hero-copy { width: 100%; padding: clamp(145px, 42vw, 208px) 12px 22px; }
  .hero-module .eyebrow { margin-bottom: 12px; }
  .hero-module h1 { font-size: clamp(32px, 8vw, 47px); letter-spacing: -.05em; }
  .hero-module p { margin: 11px auto 0; font-size: 13px; }
  .hero-module .actions { justify-content: center; gap: 7px; margin-top: 15px; }
  .hero-module .actions .button { min-height: 44px; padding-inline: 10px; }
  .store-stat { padding: 8px 3px; gap: 5px; flex-wrap: nowrap; }
  .store-stat .feature-icon { min-width: 25px; height: 25px; }
  .store-stat small { font-size: 10px; }
  .discovery { padding-top: 26px; }
  .section-head { gap: 6px; margin-bottom: 11px; }
  .section-link { font-size: 12px; }
  .spotlight { grid-template-columns: minmax(0, 1fr); }
  .spotlight-lead { min-height: clamp(250px, 69vw, 390px); }
  .spot-main { padding: 15px; }
  .spot-actions .price { font-size: 25px; }
  .spot-nav { flex-direction: row; justify-content: start; overflow-x: auto; border: 0; border-top: 1px solid var(--border); padding: 6px; scrollbar-width: thin; }
  .spot-nav button { flex: 0 0 min(55%, 180px); grid-template-columns: 42px minmax(0, 1fr); gap: 5px; min-height: 48px; padding: 5px; }
  .spot-nav button strong { font-size: 11px; overflow-wrap: anywhere; }
  .spot-nav button small { font-size: 13px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .card { display: grid; grid-template-columns: minmax(96px, 33%) minmax(0, 1fr); }
  .card .cover { aspect-ratio: auto; min-height: 110px; }
  .card .cover img { position: absolute; inset: 0; }
  .card-body { padding: 8px 9px; }
  .card h3 { font-size: 16px; min-height: 0; }
  .card-foot .button { min-height: 33px; padding: 3px 7px; font-size: 11px; }
  .category-grid { grid-template-columns: 1fr; gap: 8px; }
  .category-grid a { min-height: 79px; padding: 10px; }
  .games-page .page-intro { min-height: 137px; }
  .games-page .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-page .card { display: flex; }
  .games-page .card .cover { aspect-ratio: 1.04; min-height: 0; }
  .games-page .card h3 { min-height: 2.48em; }
}
@media (max-width: 390px) {
  .nav-brand .brand { font-size: 17px; padding-right: 5px; }
  .nav-brand .logo { width: 23px; }
  .store-stat { flex-direction: column; }
  .games-page .card-foot { flex-wrap: wrap; gap: 4px; }
  .games-page .card-foot .button svg { display: none; }
}

/* wKeyShop storefront */
:root {
  color-scheme: light;
  --bg: #fafcfb;
  --layer: #fff;
  --raised: #f2f8f6;
  --border: #dfe9e6;
  --ink: #142a27;
  --muted: #536964;
  --accent: #00796e;
  --green: #00786c;
  --mint: #e5f6f0;
  --coral: #e16451;
  --max: 1180px;
  --en: 'Noto Sans Thai', system-ui, sans-serif;
}
body { background: var(--bg); }
body::before, body::after { display: none; }
.skip { background: var(--ink); color: #fff; }
.topbar { background: #fffffffa; border-color: var(--border); height: 72px; }
.brand img { width: 168px; height: auto; }
.nav-row nav>a, .primary-nav summary, .user-nav summary, .topbar .icon-button { color: var(--ink); }
.nav-row nav>a[aria-current], .primary-nav summary[aria-current] { color: var(--accent); }
.search, .topbar .icon-button, .user-nav summary { background: #f4f8f7; border-color: var(--border); }
.search { color: var(--muted); }
.search input::placeholder, kbd { color: var(--muted); }
kbd { background: white; border-color: var(--border); }
.dropdown > div { background: #fff; border-color: var(--border); box-shadow: 0 12px 30px #132f2921; }
.topbar .dropdown > div > a,
.topbar .mobile-nav > div > a.nav-child { color: var(--ink); }
.topbar .dropdown > div > a:is(:hover, :focus-visible, [aria-current='page']) { background: var(--mint); color: var(--accent); }
.user-nav summary:hover { border-color: #80b8ae; }
.button, .icon-button { color: var(--ink); }
.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.solid:not(:disabled):hover { background: #005f57; border-color: #005f57; color: #fff; }
.outline, .icon-button { background: #fff; color: var(--ink); border-color: var(--border); }
.outline:hover, .icon-button:hover { color: var(--accent); border-color: #82b8ae; }
.feature-icon { color: var(--accent); background: var(--mint); border-color: #cfe9e0; }
.home-hero { padding-top: 27px; }
.hero-module {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 402px; text-align: left; border: 1px solid #d4ece4; border-radius: 24px;
  box-shadow: none;
  background: radial-gradient(ellipse at 92% 90%, #d4f0e7, transparent 56%),
    radial-gradient(ellipse at 95% 9%, #ffede4, transparent 42%),
    linear-gradient(125deg, #f7fcfa, #eaf7f3);
}
.hero-module::after {
  inset: 0;
  background-size: 22px 22px;
  background-image: radial-gradient(circle at 1px 1px, #069b8650 1px, transparent 1.4px);
  mask-image: linear-gradient(90deg, transparent 35%, #000);
  animation: none;
  opacity: .33;
}
.hero-module .hero-copy { grid-column: 1; grid-row: 1; width: 100%; padding: clamp(28px, 4.8vw, 62px); }
.hero-module .eyebrow {
  font-size: 11px; letter-spacing: 1.15px; background: #fff; color: var(--accent);
  border-color: #cce9de; margin-bottom: 15px;
}
.hero-module .eyebrow svg { width: 17px; height: 17px; }
.hero-module h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.18; letter-spacing: -.045em; }
.hero-gradient { color: var(--accent); background: none; -webkit-text-fill-color: initial; }
.hero-module p { max-width: 38ch; margin-top: 15px; line-height: 1.7; color: var(--muted); text-wrap: balance; }
.hero-module .actions .outline { background: #fff; border-color: #cfe4de; }
.hero-module .actions .solid { box-shadow: 0 6px 15px #00796e26; }
.hero-gallery {
  display: grid; grid-column: 2; grid-row: 1; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px;
  min-height: 100%; padding: 31px 38px 31px 0;
  background: url('/assets/wkeyshop-mark.webp') center / 146px no-repeat;
}
.hero-gallery:not(:empty) { background: none; }
.hero-gallery img {
  width: 100%; height: auto; aspect-ratio: .7;
  object-fit: cover; border: 4px solid #fff; border-radius: 16px;
  box-shadow: 0 18px 35px #124e4833;
  transform: translateY(13px) rotate(-9deg);
}
.hero-gallery img:nth-child(2) { transform: translateY(-12px); z-index: 1; }
.hero-gallery img:nth-child(3) { transform: translateY(13px) rotate(9deg); }
.store-stats { background: #fff; }
.store-stat strong { color: var(--ink); font-family: 'Chakra Petch', var(--th); }
.store-stat small { color: var(--muted); }
.section-link { color: var(--accent); }
.discovery { padding-top: 34px; }
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-grid a {
  background: #fff; border-color: var(--border); min-height: 79px; padding: 12px; gap: 9px;
}
.category-grid a::before { display: none; }
.category-grid a:hover { background: #f4fbf8; border-color: #85c2b3; }
.category-grid a:nth-child(even) .feature-icon { color: #a83d2c; background: #fff0e9; border-color: #ffe0d6; }
.category-grid strong { font-size: 16px; line-height: 1.3; }
.category-grid small { line-height: 1.4; margin-top: 3px; }
.category-grid a > span:last-child svg { width: 16px; }
.spotlight { border-color: var(--border); background: #fff; }
.spotlight-lead { min-height: clamp(275px, 26vw, 346px); }
.spot-main h3, .spot-main .price { color: #fff; }
.spot-main p { color: #eef5f1; }
.spot-actions .solid { background: #fff; color: var(--ink); border-color: #fff; }
.spot-nav button { color: var(--ink); }
.spot-nav button:hover, .spot-nav button[aria-pressed=true] { background: var(--mint); color: var(--ink); border-color: #a5d4c9; }
.spot-nav button small { color: var(--accent); }
.card { background: #fff; border-color: var(--border); }
.card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 3.1em;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.card:hover, .card:focus-within { border-color: #84bcaf; box-shadow: 0 14px 27px #12483b12; }
.card .cover, .games-page .card .cover { background: #e7eeeb; }
.card .cover::after { background: linear-gradient(180deg, #142a275d, transparent 35%); }
.card .cover .tag {
  background: #ffffffef; color: #165b52; border-color: #e3eeea; letter-spacing: 0;
}
.card .cover .key-tag { color: #9a3e2e; background: #fff3ec; border-color: #ffe1d5; }
.card-foot .button { color: var(--ink); background: #f4f8f7; border-color: var(--border); }
.card .price { font-size: clamp(16px, 2vw, 23px); color: var(--accent); }
.availability small { color: var(--muted); }
.availability b { background: #93aaa3; }
.availability.available b { background: #00a384; }
.tag { color: #006e62; background: #e3f5ef; border-color: #bee5d9; }
.games-page .page-intro, .page-intro { background: linear-gradient(114deg,#f2faf7,#e5f6ef); border-color: #d5ebe3; }
.games-page .page-intro .feature-icon { display: grid; width: 52px; height: 52px; }
.page-path, .page-intro p:not(.page-path) { color: var(--muted); }
.filters button, .sort { color: var(--ink); background: #fff; border-color: var(--border); }
.filters button:hover, .filters button.selected { color: var(--accent); background: var(--mint); border-color: #a2d1c6; }
.catalog-more { display: grid; place-items: center; margin-top: 19px; }
.supplier-details { margin: 0; padding-left: 23px; color: var(--muted); }
.supplier-details li { padding: 2px 0; }
.supplier-details strong { display: inline-block; margin-left: 8px; color: var(--ink); }
.help-steps a, .questions details,
.page .mini-panel, .page .wallet-summary, .page .upload,
.dialog-panel, .dialog-panel .notice, .dialog-panel .mini-panel, .dialog-panel .wallet-summary,
.admin-side, .admin-content .mini-panel {
  background: #fff; color: var(--ink); border-color: var(--border);
}
.help-steps a:hover, .questions details[open] { border-color: #a1cfc2; background: #f1f9f6; }
.help-steps small, .wallet-summary span, .dialog-panel p { color: var(--muted); }
.notice, .page .upload:hover, .page .upload.drag,
.dialog-panel .notice { background: #eef8f4; color: #234740; border-color: #d1e7df; }
.page .wallet-summary, .dialog-panel .wallet-summary { background: #f1f8f5; }
.field { color: var(--ink); }
.field input, .field select, .field textarea,
.auth-panel .field input, .admin-content .field input, .admin-content .field select, .admin-content .field textarea,
.admin-filter, .chart-head select {
  color: var(--ink); background: #fff; border-color: #cfded9;
}
.auth-layout { background: #fff; border-color: var(--border); }
.auth-visual {
  grid-template-rows: minmax(170px, 1fr) auto;
  align-content: stretch;
  gap: 14px;
  padding: clamp(22px, 3vw, 35px);
  background: radial-gradient(ellipse at 50% 35%, #d9f4eb, transparent 70%),
    linear-gradient(130deg, #edf8f4, #faeeea);
}
.auth-visual::before, .auth-visual::after { display: none; }
.auth-visual .auth-artwork {
  place-self: center;
  width: min(100%, 438px);
  height: auto;
  max-height: 330px;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 14px 15px #275b4826);
}
.auth-visual h1 img { width: min(225px, 100%); height: auto; margin: 0; filter: none; }
.auth-visual p { color: var(--muted); }
.catalog-preview .availability span {
  background: #eef8f4;
  color: #296859;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}
.catalog-preview .availability b { background: #648c80; }
.catalog-preview .card-foot .button { width: 100%; justify-content: space-between; }
.google-button { background: #fff; border-color: #cbded8; color: var(--ink); }
.auth-divider:before, .auth-divider:after { background: var(--border); }
.account-side a[aria-current], .account-side a:hover,
.admin-side nav a[aria-current], .admin-side nav a:hover { background: var(--mint); color: var(--accent); border-color: #cfe9e1; }
.profile-card, .profile-form { background: #eff8f4; }
.profile-avatar, .profile-email { background: #fff; border-color: #c6dfd7; color: var(--accent); }
.profile-form .profile-card { border-color: var(--border); }
.operator-brand img { filter: none; }
.metric p { color: var(--muted); }
.chart-plot { background: repeating-linear-gradient(0deg, #e1efea 0 1px, transparent 1px 35px); }
.chart-tip { background: #18392f; border-color: #18392f; color: white; }
.chart-column rect+rect { fill: var(--coral); }
.chart-legend span+span:before { background: var(--coral); }
.admin-content .receipt, .admin-content .line-item, .page-panel .receipt, .line-item, .receipt { border-color: var(--border); }
.status-chip { background: #eef4f2; color: var(--ink); }
.status-chip.ready { background: var(--mint); color: var(--accent); }
.vendor-panel .admin-list-title { margin-bottom: 0; align-items: flex-start; }
.vendor-panel #admin-status:empty { display: none; }
.vendor-rows { max-height: 470px; overflow: auto; scrollbar-width: thin; }
.vendor-row-price { flex: none; text-align: right; color: var(--accent); }
dialog { background: #fff; border-color: var(--border); color: var(--ink); box-shadow: 0 22px 75px #132d2670; }
dialog::backdrop { background: #102c2870; }
.dialog-panel .close, .order-code { background: #f3f9f7; border-color: var(--border); color: var(--ink); }
.error { color: #9e2929 !important; }
.success { color: var(--accent) !important; }
#toast { background: #113b32; border-color: #113b32; color: #fff; }
footer { background: #fff; border-color: var(--border); }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 24px; padding-block: 36px;
}
.footer-grid .brand img { width: 135px; }
.footer-grid p { margin-top: 11px; }
.footer-grid p, .footer-grid nav a, .footer-bottom { color: var(--muted); font-size: 13px; }
.footer-grid nav { display: grid; gap: 5px; align-content: start; justify-items: start; }
.footer-grid nav strong { margin-bottom: 3px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--border); padding-block: 15px;
}
footer a:hover { color: var(--accent); }

@media (max-width: 920px) {
  .topbar { height: auto; }
  .nav-brand, .nav-actions { background: #f5f9f7; border-color: var(--border); }
  .nav-brand .brand { border-color: var(--border); }
  .nav-brand .brand img { width: clamp(104px, 27vw, 148px); }
  .mobile-nav summary, .user-nav summary, .topbar .nav-actions .icon-button { color: var(--ink); background: none; border: 0; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .auth-layout { grid-template-columns: 1fr; min-height: 0; }
  .auth-visual {
    grid-template: auto / minmax(0, 1fr) clamp(94px, 32vw, 166px);
    align-items: center;
    min-height: 0;
    gap: 9px;
    padding: 14px 15px;
  }
  .auth-visual .auth-branding { grid-area: 1 / 1; }
  .auth-visual .auth-artwork {
    grid-area: 1 / 2;
    width: 100%;
    filter: drop-shadow(0 6px 7px #275b4820);
  }
  .auth-visual h1 img { width: min(188px, 100%); }
  .auth-visual p { font-size: 12px; margin-top: 5px; }
  .home-hero { padding-top: 14px; }
  .hero-module { display: flex; flex-direction: column; align-items: stretch; min-height: 0; border-radius: 18px; text-align: center; }
  .hero-module .hero-copy { order: -1; padding: 23px 13px 16px; }
  .hero-module h1 { font-size: clamp(33px, 8vw, 44px); }
  .hero-module .eyebrow { margin-bottom: 10px; }
  .hero-module p { margin: 10px auto 0; max-width: 32ch; }
  .hero-module .actions { margin-top: 14px; }
  .hero-gallery {
    min-height: 0; width: min(88%, 350px); margin-inline: auto; padding: 9px 0 24px;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 5px;
  }
  .hero-gallery:empty { display: none; }
  .hero-gallery img { aspect-ratio: .88; border-width: 3px; border-radius: 11px; }
  .hero-gallery img:nth-child(2) { transform: translateY(-5px); }
  .hero-gallery img:nth-child(1), .hero-gallery img:nth-child(3) { translate: 0 -5px; }
  .discovery { padding-top: 24px; }
  .category-grid a { min-height: 65px; padding: 8px; gap: 6px; }
  .category-grid a .feature-icon { min-width: 29px; height: 31px; }
  .category-grid a .feature-icon svg { width: 15px; }
  .category-grid strong { font-size: 13px; }
  .category-grid small { font-size: 10px; }
  .category-grid a > span:last-child svg { width: 12px; }
  .catalog-tools { flex-wrap: wrap; align-items: center; }
  .filters button, .sort { min-height: 36px; }
  .card-foot { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; padding-block: 23px; }
  .vendor-panel .admin-list-title { flex-wrap: wrap; }
}
@media (max-width: 355px) {
  .nav-brand .brand img { width: 96px; }
  .category-grid a > span:last-child { display: none; }
}

.activity-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding-top: 14px; }
.activity-panel { min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.activity-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.activity-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.activity-heading .feature-icon { height: 29px; min-width: 29px; }
.activity-heading svg { width: 15px; }
.activity-heading .section-link { font-size: 12px; min-height: 28px; }
.activity-empty { margin: 0; padding: 8px 0; font-size: 13px; }
.new-game-card {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  min-height: 74px;
  padding: 5px;
  color: var(--ink);
  background: #f5faf8;
  border: 1px solid transparent;
  border-radius: 10px;
}
.new-game-card:hover { border-color: #a2d1c6; background: var(--mint); }
.new-game-card img { width: 70px; height: 62px; flex: 0 0 70px; object-fit: cover; border-radius: 7px; background: #dcefe7; }
.new-game-label { min-width: 0; }
.new-game-label strong { display: block; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.new-game-label small, .new-game-label > span { display: block; font-size: 11px; color: var(--muted); }
.recent-orders { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.recent-orders li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 5px 0; }
.recent-orders li + li { border-top: 1px solid var(--border); }
.recent-orders strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.recent-orders small, .recent-orders time { font-size: 11px; color: var(--muted); }
.recent-orders time { flex-shrink: 0; }
.spotlight-lead { overflow: hidden; background: #0c1a16; min-height: clamp(318px, 29vw, 400px); }
.spotlight-lead::after { background: linear-gradient(0deg,#080c0bed 3%,#080c0bb3 42%,transparent 88%); }
.spot-main { position: relative; }
.spot-main .spot-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-width: 59ch;
  overflow: hidden;
  font-size: clamp(12px, 1.5vw, 15px);
  line-height: 1.55;
}
.spot-status { color: #f1f8f3; font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .spotlight-image, .spot-main { animation: spotlight-in .4s ease-out both; }
  .new-game-card { animation: new-game-in .28s ease-out both; }
  @keyframes spotlight-in { from { opacity: .42; } to { opacity: 1; } }
  @keyframes new-game-in { from { opacity: .35; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
}
.promotion-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,310px),1fr)); gap: 14px; }
.promotion-ticket { display: grid; grid-template-columns: auto minmax(0,1fr); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff; }
.promotion-value { display: grid; align-content: center; justify-items: center; padding: 16px 14px; background: var(--mint); border-right: 1px dashed #9acbbf; color: var(--accent); }
.promotion-value strong { font-size: clamp(20px, 4vw, 29px); }
.promotion-copy { padding: 14px; }
.promotion-copy h2 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.promotion-copy p { font-size: 12px; margin: 4px 0 8px; color: var(--muted); }
.coupon-code { min-height: 34px; overflow-wrap: anywhere; }
.coupon-options { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checkout-coupon { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; }
#coupon-status:empty, #checkout-status:empty { display: none; }
.hero-module {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #071613;
  color: #f4fffb;
  border-color: #234c40;
  box-shadow: 0 18px 40px #0a382627;
}
.hero-module::before, .hero-module::after { content: none; }
.hero-backdrop, .hero-backdrop img, .hero-backdrop::before, .hero-backdrop::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-backdrop { z-index: -1; pointer-events: none; }
.hero-backdrop img { object-fit: cover; object-position: center 45%; }
.hero-backdrop::before { content: ''; background: linear-gradient(97deg,#061511f7 5%,#071913e0 35%,#0615127a 75%),linear-gradient(0deg,#061511b0,transparent 54%); }
.hero-backdrop::after {
  content: '';
  background: radial-gradient(ellipse at 9% 4%,#10f3ba54 0%,transparent 48%),
    radial-gradient(ellipse at 91% 89%,#a3f33f35 0%,transparent 48%);
  opacity: .6;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-backdrop::after { animation: banner-light 9s ease-in-out infinite alternate; }
  @keyframes banner-light { from { opacity: .34; } to { opacity: .82; } }
}
.hero-module h1 { color: #f4fffb; }
.hero-module .hero-gradient { color: #71e7b0; background: linear-gradient(99deg,#2af0c9,#b3ed7e); background-clip: text; -webkit-text-fill-color: transparent; }
.hero-module .eyebrow { color: #6debca; background: #0b403bb5; border-color: #35b99b55; }
.hero-module p { color: #d1e7df; }
.hero-module .actions .solid { background: #43e4bc; color: #073126; border-color: #43e4bc; box-shadow: 0 8px 27px #20e6ae4d; }
.hero-module .actions .outline { background: #102b26d9; color: #f4fffb; border-color: #417568a3; }
.hero-gallery { gap: 1%; }
.hero-game {
  position: relative;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  border: 1px solid #87d6b97d;
  background: #12352c;
  border-radius: 15px;
  box-shadow: 0 18px 32px #00110acc;
  transform: translateY(18px) rotate(-10deg);
}
.hero-game:nth-child(2) { z-index: 1; transform: translateY(-13px) scale(1.08); }
.hero-game:nth-child(3) { transform: translateY(18px) rotate(10deg); }
.hero-gallery .hero-game img { display: block; width: 100%; height: auto; transform: none; translate: none; border: 0; border-radius: 0; box-shadow: none; }
.hero-game-badge { position: absolute; top: 6px; right: 6px; padding: 3px 6px; border-radius: 999px; background: #75f3cb; color: #062b21; font-size: clamp(9px,1vw,12px); font-weight: 800; }
.hero-game figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 7px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(0deg,#07130fea,transparent);
  font-size: clamp(10px,1.1vw,14px);
  font-weight: 800;
}
.banner-settings-preview { display: block; width: min(100%,600px); aspect-ratio: 4/1; object-fit: cover; border: 1px solid var(--border); border-radius: 12px; }
.form-status:empty, [data-reseller-status]:empty { display: none; }
.service-section .section-head { gap: 8px; }
.service-section .section-link { min-height: 36px; font-size: clamp(12px,1.4vw,15px); }
.service-cards .cover { aspect-ratio: 3 / 2; }
.service-section--premium .card .cover { background: #f0f8f5; }
.service-section--premium .cover img { object-fit: contain; padding: 28px 14px 8px; }
.service-section--premium .cover::after { display: none; }
.service-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}
@media (min-width: 900px) {
  #home-categories { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .activity-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .activity-panel { padding: 9px 10px; }
  .new-game-card img { width: 54px; height: 53px; flex-basis: 54px; }
  .new-game-card { min-height: 64px; }
  .spot-main { padding-top: 42px; }
  .spot-actions { gap: 8px; }
  .hero-backdrop::before { background: linear-gradient(180deg,#051611e8 5%,#071913c9 54%,#061512ac 100%); }
  .hero-game { transform: translateY(5px) rotate(-6deg); border-radius: 9px; }
  .hero-game:nth-child(2) { transform: translateY(-3px) scale(1.04); }
  .hero-game:nth-child(3) { transform: translateY(5px) rotate(6deg); }
}
