:root {
    --black: #11110f;
    --charcoal: #25231f;
    --brown: #4a2d13;
    --gold: #cda45f;
    --gold-deep: #9d6a27;
    --gold-light: #f4dda9;
    --paper: #fffdf8;
    --cream: #f5ead4;
    --text: #332d26;
    --muted: #756b5f;
    --line: rgba(142, 104, 55, .18);
    --shadow: 0 22px 65px rgba(62, 43, 20, .14);
    --shadow-soft: 0 12px 36px rgba(57, 42, 24, .09);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.16, 1.15, .3, 1);
    --hero-background-image: url("../images/bg.png");
    --service-background-image: url("../images/table_bg1.png");
    --product-background-image: url("../images/original/commonBg.70875f77.jpg");
    --activity-background-image: url("../images/original/activeBg.cc0455aa.png");
    --app-card-background-image: url("../images/original/down_bg.86a1851a.png");
    --info-background-image: url("../images/original/bg_rule.33aed85e.jpg");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
    min-width: 0;
    overflow-x: clip;
    color: var(--text);
    background: #f4f1eb;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
.rich-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.site-app { min-height: 100vh; }
.auth-locked .site-app { display: none; }
.auth-unlocked .login-gate { display: none; }
.auth-unlocked .site-app { display: block; }
button, input { font: inherit; }
button { border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
:focus-visible { outline: 3px solid #e0b76a; 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; }
.shell { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

/* Login gate */
.login-gate { position: fixed; z-index: 500; inset: 0; display: grid; min-height: 100dvh; overflow: auto; padding: 24px; place-items: center; background: radial-gradient(circle at 50% 8%,rgba(215,174,101,.22),transparent 34%),radial-gradient(circle at 12% 88%,rgba(128,86,31,.18),transparent 26%),linear-gradient(145deg,#0f0f0e,#2b251d 55%,#15130f); }
.login-gate::before { position:fixed; inset:0; content:""; background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px); background-size:42px 42px; pointer-events:none; }
.login-gate-card { position: relative; width: min(420px,100%); padding: 74px 38px 38px; border: 1px solid rgba(233,202,143,.24); border-radius: 20px; background: linear-gradient(145deg,rgba(40,36,30,.96),rgba(21,20,18,.98)); box-shadow: 0 30px 90px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.08); animation: gate-card-in .45s var(--ease) both; backdrop-filter:blur(20px); }
.gate-title { margin: 0 0 8px; color: #f4dfb6; font:700 26px/1.25 Georgia,"Songti SC",serif; text-align: center; }
.gate-intro { margin: 0 0 24px; color: #b9aa91; font-size: 13px; text-align: center; }
.gate-login-form { display: grid; gap: 16px; }
.gate-login-form input { width: 100%; height: 50px; padding: 0 15px; border: 1px solid rgba(221,190,133,.22); border-radius: 10px; color: #f7ead0; background: rgba(255,255,255,.055); outline: 0; transition: border-color .2s,box-shadow .2s,background .2s; }
.gate-login-form input::placeholder { color: #847966; }
.gate-login-form input:hover { border-color: rgba(221,190,133,.42); }
.gate-login-form input:focus { border-color: #cda45f; background:rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(205,164,95,.13); }
.gate-password-wrap { position: relative; }
.gate-password-wrap input { padding-right: 56px; }
.gate-password-toggle { position: absolute; top: 50%; right: 10px; padding: 6px; border-radius: 5px; color: #b9aa91; background: transparent; font-size: 12px; cursor: pointer; transform: translateY(-50%); transition: color .2s,background .2s; }
.gate-password-toggle:hover { color: #f0d39e; background: rgba(255,255,255,.06); }
.gate-error { min-height: 18px; margin-top: -6px; color: #d92d20; font-size: 12px; }
.gate-submit { width: 100%; min-height: 50px; border-radius: 10px; color: #2d2112; background: linear-gradient(135deg,#f3dfa9,#b87f32); box-shadow: 0 12px 28px rgba(142,91,26,.3); font-weight: 800; cursor: pointer; transition: filter .2s,box-shadow .2s,transform .2s; }
.gate-submit:hover { filter:brightness(1.06); box-shadow: 0 16px 34px rgba(142,91,26,.38); transform: translateY(-2px); }
.gate-submit:active { transform: none; }

/* Header */
.site-header { position: relative; z-index: 80; }
.utility-bar { min-height: 48px; color: #e8d7b8; background: var(--black); }
.utility-inner { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 24px; }
.language-switch { display: flex; gap: 3px; }
.language-switch button { padding: 6px 9px; color: #a99a83; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.language-switch button.active, .language-switch button:hover { color: var(--gold-light); }
.member-panel { display: flex; align-items: center; gap: 9px; color: #bfae92; font-size: 12px; }
.member-panel strong { color: #efd69f; }
.header-button { min-height: 32px; padding: 0 18px; border-radius: 4px; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
.header-button:hover { transform: translateY(-1px); }
.register-button { display: inline-flex; align-items: center; color: #2b2115; background: linear-gradient(135deg,#f1d597,#b9873d); }
.logout-button { border: 1px solid #77664f; color: #d9c7aa; background: transparent; }
.navigation-bar { color: #fff; background: rgba(40,40,40,.98); box-shadow: 0 5px 22px rgba(0,0,0,.14); }
.navigation-inner { display: flex; align-items: center; justify-content: space-between; min-height: 104px; gap: 30px; }
.brand-lockup { display: block; width: max-content; line-height: 0; }
.logo { --brand-logo-width: 235px; flex: 0 0 auto; }
.brand-logo { width: var(--brand-logo-width); height: auto; }
.main-nav { display: flex; align-self: stretch; }
.main-nav a { position: relative; display: grid; min-width: 96px; padding: 0 20px; place-items: center; font-size: 18px; transition: color .25s, background .25s; }
.main-nav a::after { position: absolute; right: 30%; bottom: 22px; left: 30%; height: 2px; content: ""; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.main-nav a:hover, .main-nav a.active { color: #f4d59a; background: rgba(255,255,255,.035); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* Shared controls */
.gold-button, .dark-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 27px; border-radius: 6px; font-weight: 800; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, filter .25s; }
.gold-button { color: #2d2112; background: linear-gradient(135deg,#f4dc9f,#bd8738); box-shadow: 0 10px 24px rgba(157,106,40,.24); }
.dark-button { color: #f4dfb8; background: #2c2925; }
.gold-button:hover, .dark-button:hover { transform: translateY(-3px); filter: brightness(1.05); }
.gold-button:active, .dark-button:active { transform: translateY(0) scale(.98); }
.gold-button.compact { min-height: 40px; margin-top: 12px; padding: 0 18px; font-size: 13px; }
.route-kicker, .section-heading > span { color: #9a6d2e; font-size: 11px; font-weight: 800; letter-spacing: .28em; }

/* Route views */
.route-view { display: none; min-height: 650px; }
.route-view.active { display: block; animation: view-in .38s var(--ease); }
@keyframes view-in { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Home hero */
.hero-slider { position: relative; min-height: 600px; overflow: hidden; background: #ead6aa var(--hero-background-image) center / cover no-repeat; }
.hero-slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .55s var(--ease), visibility .55s; }
.hero-slide.active { visibility: visible; opacity: 1; pointer-events: auto; }
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(0,.9fr) minmax(470px,1.1fr); align-items: center; min-height: 600px; }
.hero-copy { position: relative; z-index: 4; padding-bottom: 25px; }
.eyebrow { margin-bottom: 10px; color: #795725; font-size: 11px; font-weight: 800; letter-spacing: .28em; }
.jackpot-title { width: min(590px,110%); max-width: none; margin-left: -45px; filter: drop-shadow(0 18px 18px rgba(79,43,6,.18)); }
.hero-copy h2 { margin: 10px 0 18px; color: #51310f; font: 700 clamp(48px,6vw,78px)/1.06 Georgia,"Songti SC",serif; }
.hero-copy h2 strong { color: #a46e20; font-weight: inherit; }
.hero-copy > p:not(.eyebrow) { color: #675035; font-size: 19px; letter-spacing: .08em; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-woman { position: absolute; z-index: 2; right: -80px; bottom: -62px; width: 670px; max-width: none; filter: drop-shadow(0 25px 30px rgba(70,40,8,.17)); }
.hero-woman-two { right: -15px; width: 570px; }
.hero-coins { position: absolute; width: 300px; opacity: .9; }
.coin-left { right: 250px; bottom: -85px; transform: rotate(-12deg); }
.coin-right { right: -20px; top: -50px; transform: rotate(14deg); }
.slider-arrow { position: absolute; z-index: 9; top: 50%; display: grid; width: 44px; height: 66px; place-items: center; color: #fff; background: rgba(36,29,21,.36); font-size: 0; line-height: 0; cursor: pointer; transform: translateY(-50%); transition: background .2s; }
.slider-arrow svg { display: block; width: 20px; height: 20px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.slider-arrow:hover { background: rgba(36,29,21,.66); }
.slider-prev { left: 0; border-radius: 0 6px 6px 0; }
.slider-next { right: 0; border-radius: 6px 0 0 6px; }
.slider-dots { position: absolute; z-index: 10; bottom: 20px; left: 50%; display: flex; gap: 9px; transform: translateX(-50%); }
.slider-dots button { width: 28px; height: 4px; border-radius: 99px; background: rgba(67,42,17,.25); cursor: pointer; transition: width .25s, background .25s; }
.slider-dots button.active { width: 48px; background: #9a671f; }

/* Notice */
.notice-section { color: #f0dfc4; background: #352a20; }
.notice-inner { display: flex; align-items: center; min-height: 56px; gap: 18px; }
.notice-label, .notice-more { flex: 0 0 auto; color: var(--gold-light); background: transparent; cursor: pointer; }
.notice-label { padding-right: 18px; border-right: 1px solid rgba(255,255,255,.15); font-weight: 800; }
.notice-more { font-size: 12px; }
.notice-marquee { min-width: 0; overflow: hidden; }
.notice-marquee p { display:-webkit-box; overflow: hidden; font-size: 13px; white-space:pre-wrap; -webkit-box-orient:vertical; -webkit-line-clamp:2; }

/* Home sections */
.section-block { padding: 88px 0 96px; }
.home-download { background: #faf8f3; }
.service-section { background: linear-gradient(rgba(245,234,212,.92),rgba(239,218,177,.94)), var(--service-background-image) center / cover; }
.section-heading { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.section-heading h2 { margin: 8px 0; color: #3d2b17; font: 700 42px/1.2 Georgia,"Songti SC",serif; }
.section-heading p { color: var(--muted); }
.download-panel { position: relative; min-height: 500px; overflow: hidden; padding: 32px; border: 1px solid #eee1c9; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.download-tabs { display: flex; justify-content: center; gap: 8px; }
.download-tabs button { min-height: 42px; padding: 0 28px; border: 1px solid #d6c4a5; border-radius: 99px; color: #715b3d; background: #fffaf0; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.download-tabs button.active { color: #fff5dc; background: #3b2a18; }
.download-visual { position: relative; height: 380px; margin-top: 16px; }
.download-device { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s; }
.download-device.active { opacity: 1; transform: none; }
.download-card { position: absolute; right: 40px; bottom: 34px; z-index: 4; display: flex; align-items: center; gap: 18px; padding: 15px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: rgba(255,253,248,.88); box-shadow: 0 14px 40px rgba(78,54,24,.16); backdrop-filter: blur(12px); }
.download-card > img { width: 104px; height: 104px; border-radius: 10px; object-fit: contain; background: #fff; }
.qr-image { width: 112px; border-radius: 10px; }
.download-card h3 { color: #3f2c16; font-size: 19px; }
.download-card p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 32px; border: 1px solid rgba(255,255,255,.7); border-radius: 20px; background: rgba(255,255,255,.55); box-shadow: var(--shadow); }
.stats-row > div { position: relative; display: grid; min-height: 130px; align-content: center; justify-items: center; gap: 8px; }
.stats-row > div:not(:last-child)::after { position: absolute; top: 25%; right: 0; bottom: 25%; width: 1px; content: ""; background: var(--line); }
.stats-row strong { color: #a36d20; font: 700 40px/1 Georgia,serif; }
.stats-row small { margin-left: 4px; color: #756043; font: 400 13px/1 sans-serif; }
.stats-row span { color: #715d41; font-size: 12px; }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.service-card { position: relative; min-height: 330px; padding: 34px 30px 82px; border: 1px solid rgba(255,255,255,.8); border-radius: 20px; background: rgba(255,253,248,.78); box-shadow: 0 15px 38px rgba(78,51,17,.1); transition: transform .3s var(--ease), box-shadow .3s; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 22px 50px rgba(78,51,17,.18); }
.service-card img { width: 58px; height: 58px; object-fit: contain; margin-bottom: 27px; }
.service-card h3 { margin-bottom: 14px; color: #422e17; font: 700 21px/1.3 Georgia,"Songti SC",serif; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.service-card a, .service-card button { position: absolute; right: 30px; bottom: 28px; left: 30px; color: #95631e; background: transparent; font-weight: 800; cursor: pointer; white-space: pre-wrap; }
.service-card a span, .service-card button span { display: inline-block; transition: transform .2s; }
.service-card a:hover span, .service-card button:hover span { transform: translateX(5px); }

/* Product routes */
.module-view { min-height: 680px; padding: 68px 0 90px; background: linear-gradient(135deg,#faf8f3,#eee4d4); }
.module-page-layout { display: grid; gap: 34px; }
.module-page-heading { text-align: center; }
.module-page-heading h1 { margin: 8px 0 0; color: #33271c; font: 700 clamp(42px,5vw,62px)/1.1 Georgia,"Songti SC",serif; }
.page-module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.page-module-grid .module-empty { grid-column: 1/-1; }
.product-view { overflow: hidden; background: #f7f8fb var(--product-background-image) center / cover; }
.product-layout { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,.9fr); align-items: center; min-height: 720px; padding-block: 65px; }
.product-content { position: relative; z-index: 2; max-width: 650px; }
.product-content h1, .app-copy h1, .activity-menu h1, .info-menu h1, .rules-content h1 { margin: 8px 0 20px; color: #33271c; font: 700 clamp(42px,5vw,62px)/1.1 Georgia,"Songti SC",serif; }
.product-content > p:not(.route-kicker), .app-copy > p:not(.route-kicker) { color: #695f54; font-size: 16px; line-height: 1.9; }
.product-art { align-self: end; width: min(100%,650px); max-height: 650px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 25px 25px rgba(60,57,56,.12)); }
.phone-art { max-height: 690px; }
.game-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 32px 0 16px; }
.game-tabs button { min-width: 92px; min-height: 42px; padding: 0 15px; border: 1px solid #d9d1c6; border-radius: 6px; color: #645a4f; background: rgba(255,255,255,.8); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.game-tabs button:hover, .game-tabs button.active { border-color: #b98a47; color: #342719; background: linear-gradient(135deg,#f2d89f,#c2914b); }
.selected-game { color: #8a785f !important; font-size: 13px !important; }
.selected-game strong { color: #8f6020; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.h5-qr { display: flex; align-items: center; width: fit-content; gap: 14px; margin-top: 25px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgba(61,57,51,.1); }
.h5-qr { border: 0; text-align: left; cursor: pointer; }
.h5-qr img { width: 86px; }
.h5-qr div { display: grid; gap: 4px; }
.h5-qr span { color: var(--muted); font-size: 11px; }
.agent-steps { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 28px; list-style: none; counter-reset: steps; }
.agent-steps li { position: relative; padding: 13px 13px 13px 45px; border: 1px solid #e3dbd0; border-radius: 8px; background: rgba(255,255,255,.76); font-size: 13px; counter-increment: steps; }
.agent-steps li::before { position: absolute; top: 50%; left: 12px; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fff4dd; background: #6c4b23; content: counter(steps); font-size: 11px; transform: translateY(-50%); }

/* Activity */
.activity-view { padding: 48px 0 80px; background: #f5f8ff var(--activity-background-image) top center / 100% auto no-repeat; }
.activity-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); align-items: start; gap: 35px; }
.activity-menu { position: sticky; top: 24px; display: grid; overflow: hidden; padding: 28px 18px; border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.activity-menu h1 { margin: 0 0 24px; padding: 0 12px 22px; border-bottom: 1px solid #ede3d3; font-size: 31px; }
.activity-menu button { min-height: 54px; padding: 0 18px; border-radius: 8px; color: #655c52; background: transparent; text-align: left; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.activity-menu button:hover { transform: translateX(4px); }
.activity-menu button.active { color: #392b1b; background: linear-gradient(135deg,#f3dfb3,#d1aa6b); font-weight: 800; }
.activity-list { display: grid; gap: 22px; }
.activity-card { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 14px 35px rgba(67,76,99,.12); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.activity-card:hover { box-shadow: 0 20px 48px rgba(67,76,99,.2); transform: translateY(-5px); }
.activity-card img { width: 100%; }
.activity-card > span { display:block; padding:15px 18px; color:#4e4134; font-weight:800; white-space:pre-wrap; }
.activity-card.filtered-out { display: none; }
.empty-state { padding: 60px 20px; border-radius: 15px; color: var(--muted); background: #fff; text-align: center; }

/* App route */
.app-view { padding: 70px 0; background: linear-gradient(135deg,#faf8f3,#ecdfc9); }
.app-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: center; gap: 55px; }
.app-copy h1 { margin-bottom: 15px; }
.download-tabs.standalone { justify-content: flex-start; margin: 28px 0 15px; }
.app-preview { position: relative; height: 390px; overflow: hidden; border-radius: 24px; background: rgba(255,255,255,.7); box-shadow: var(--shadow); }
.app-preview img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 15px; object-fit: contain; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
.app-preview img.active { opacity: 1; transform: none; }
.app-qr-card { padding: 28px; border-radius: 24px; background: #2d2924 var(--app-card-background-image) center / cover; box-shadow: var(--shadow); color: #f6e4c2; text-align: center; }
.app-qr-card h2 { font: 700 22px/1.3 Georgia,"Songti SC",serif; }
.app-qr-card p { margin: 7px 0 20px; color: #cdb994; font-size: 12px; }
.app-download-card { display: grid; align-content: center; min-height: 300px; background: linear-gradient(rgba(31,27,22,.9),rgba(31,27,22,.9)),var(--app-card-background-image) center / cover; }
.app-download-card > img { width: 138px; height: 138px; margin: 0 auto 18px; border-radius: 12px; object-fit: contain; background: #fff; }
.app-download-card .gold-button { width: 100%; }
.download-guide-button { display: block; margin: 13px auto 0; padding: 5px; color: #d4c09a; background: transparent; font-size: 11px; text-decoration: underline; cursor: pointer; }

/* Help and rules */
.info-view { padding: 70px 0; background: #f5f1e9 var(--info-background-image) top center / cover; }
.info-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 30px; }
.info-menu { display: grid; align-content: start; padding: 25px 18px; border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.info-menu h1 { margin: 0 0 20px; padding: 0 10px 18px; border-bottom: 1px solid var(--line); font-size: 30px; }
.info-menu button { min-height: 48px; padding: 0 14px; border-radius: 7px; background: transparent; text-align: left; cursor: pointer; }
.info-menu button.active { color: #342515; background: #ead1a0; font-weight: 800; }
.help-menu-items { display:grid; gap:2px; }
.info-content, .rules-content { min-height: 420px; padding: 45px; border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.info-content h2, .rules-content h2 { margin-bottom: 18px; color: #3a2b1d; font: 700 28px/1.3 Georgia,"Songti SC",serif; }
.info-content p, .rules-content p { color: var(--muted); line-height: 1.9; }
.rules-content h1 { font-size: 46px; }
.rules-table { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 28px 0; }
.rules-table > div { display: grid; gap: 6px; padding: 20px; border: 1px solid #e5dbca; border-radius: 10px; background: #fffaf1; }
.rules-table span, .muted { color: var(--muted); font-size: 13px; }
.rule-article-list { display:grid; gap:22px; margin-top:28px; }
.rule-article { padding:24px; border:1px solid #e5dbca; border-radius:14px; background:#fffaf1; }
.rule-article + .rule-article { margin-top:0; }
.rule-article .rich-content { color:var(--muted); line-height:1.9; }
.support-channel-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:18px; margin-top:30px; }
.support-channel { display:grid; justify-items:center; gap:12px; padding:20px; border:1px solid #e5dbca; border-radius:16px; background:#fffaf1; }
.support-channel img { width:min(180px,100%); aspect-ratio:1; object-fit:contain; border:8px solid #fff; border-radius:12px; }
.support-channel h3 { width:100%; margin:0; color:#3a2b1d; font-size:18px; white-space:pre-wrap; }
.support-channel a { color:#8e5e1f; font-weight:800; }
.support-channel-link { display:inline-flex; min-height:42px; align-items:center; justify-content:center; padding:0 18px; border-radius:10px; color:#fff3dc !important; background:#3a2b1b; white-space:pre-wrap; }

/* Side tools and footer */
.side-tools { position: fixed; z-index: 70; top: 50%; right: 14px; display: grid; overflow: hidden; border-radius: 10px; box-shadow: 0 15px 38px rgba(0,0,0,.2); transform: translateY(-50%); }
.side-tools[hidden] { display:none; }
.side-tool { display: grid; width: 68px; min-height: 68px; place-content: center; justify-items: center; gap: 2px; color: #eee0c4; background: #342d25; font-size: 10px; cursor: pointer; transition: background .2s; }
.side-tool + .side-tool { border-top: 1px solid rgba(255,255,255,.08); }
.side-tool:hover { background: #745026; }
.side-tool img { width: 34px; height: 34px; object-fit: contain; }
.site-footer { padding: 44px 0; color: #cbbca3; background: #252321; }
.footer-inner { display: grid; justify-items: center; gap: 22px; text-align: center; }
.footer-logo { --brand-logo-width: 140px; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px 32px; }
.footer-inner nav a { font-size: 13px; transition: color .2s; }
.footer-inner nav a:hover { color: #efd49d; }
.footer-inner p { color: #796f61; font-size: 11px; }

/* Dialog and toast */
.site-dialog { width: min(560px,calc(100% - 28px)); max-height: min(84vh,760px); margin: auto; overflow: visible; border: 0; border-radius: 18px; color: var(--text); background: transparent; }
.site-dialog::backdrop { background: rgba(16,14,11,.68); backdrop-filter: blur(4px); }
.dialog-shell { position: relative; max-height: min(84vh,760px); overflow: auto; padding: 34px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: #fffdf8; box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.dialog-close { position: sticky; z-index: 3; top: 0; float: right; display: grid; width: 34px; height: 34px; margin: -18px -18px 0 0; place-items: center; border-radius: 50%; color: #715d43; background: #f3eadc; font-size: 23px; cursor: pointer; }
.dialog-content h2 { margin-bottom: 18px; color: #3d2b18; font: 700 29px/1.3 Georgia,"Songti SC",serif; }
.dialog-content p { margin: 9px 0; color: var(--muted); line-height: 1.7; }
.dialog-content form { display: grid; gap: 14px; margin-top: 22px; }
.dialog-content label { display: grid; gap: 6px; color: #5c4a35; font-size: 12px; font-weight: 700; }
.dialog-content input { width: 100%; height: 43px; padding: 0 13px; border: 1px solid #d9cbb5; border-radius: 6px; outline: 0; }
.dialog-content input:focus { border-color: #b58743; box-shadow: 0 0 0 3px rgba(185,135,67,.15); }
.dialog-content .gold-button { width: 100%; margin-top: 5px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.dialog-actions .gold-button,.dialog-actions .dark-button { width: 100%; }
.qr-dialog-image { width: min(360px,100%); margin: 12px auto 24px; border-radius: 16px; }
.announcement-list { display: grid; gap: 12px; }
.announcement-list p { padding: 13px; border-radius: 8px; background: #f7f1e7; }
.toast { position: fixed; z-index: 200; bottom: 28px; left: 50%; max-width: calc(100% - 30px); padding: 12px 20px; border-radius: 99px; color: #fff1d2; background: rgba(35,29,22,.95); box-shadow: 0 12px 36px rgba(0,0,0,.26); font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%,18px); transition: opacity .25s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1120px) {
    .main-nav a { min-width: auto; padding-inline: 16px; font-size: 16px; }
    .logo { --brand-logo-width: 200px; }
    .hero-layout { grid-template-columns: minmax(0,.85fr) minmax(400px,1.15fr); }
    .hero-woman { right: -145px; }
    .side-tools { right: 6px; }
    .side-tool { width: 58px; }
}

@media (max-width: 900px) {
    html { scroll-padding-top: 82px; }
    .utility-inner { align-items: flex-start; padding-block: 9px; }
    .member-panel { flex: 1; justify-content: flex-end; flex-wrap: wrap; }
    .navigation-inner { min-height: 78px; }
    .logo { --brand-logo-width: 171px; }
    .nav-toggle { display: grid; width: 46px; height: 46px; place-content: center; gap: 5px; border: 1px solid #51483e; border-radius: 7px; background: #343230; cursor: pointer; }
    .nav-toggle > span:not(.sr-only) { width: 23px; height: 2px; background: #f0d8aa; transition: transform .25s, opacity .25s; }
    .nav-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .main-nav { position: absolute; top: 78px; right: 20px; display: grid; grid-template-columns: repeat(2,1fr); width: min(360px,calc(100% - 40px)); padding: 10px; border: 1px solid #4c4439; border-radius: 10px; background: rgba(37,36,34,.98); box-shadow: 0 20px 50px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transform: translateY(-12px) scale(.97); transform-origin: top right; transition: opacity .25s, transform .25s; }
    .main-nav.open { opacity: 1; pointer-events: auto; transform: none; }
    .main-nav a { min-height: 48px; border-radius: 6px; }
    .main-nav a:last-child { grid-column: 1/-1; }
    .main-nav a::after { bottom: 7px; }
    .hero-layout { grid-template-columns: minmax(0,.8fr) minmax(340px,1.2fr); }
    .hero-woman { right: -190px; }
    .service-grid { grid-template-columns: 1fr; }
    .page-module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .service-card { min-height: 260px; }
    .product-layout { grid-template-columns: 1fr minmax(300px,.7fr); }
    .activity-layout, .info-layout { grid-template-columns: 220px minmax(0,1fr); gap: 22px; }
    .app-layout { grid-template-columns: 1fr 240px; gap: 25px; }
    .app-qr-card { padding: 20px; }
}

@media (max-width: 640px) {
    .shell { width: min(100% - 24px,540px); }
    .utility-inner { display: block; padding-block: 8px; }
    .language-switch { display: none; }
    .member-panel { gap: 5px; }
    .header-button { padding-inline: 11px; }
    .navigation-inner { min-height: 70px; }
    .logo { --brand-logo-width: 143px; }
    .main-nav { top: 70px; right: 12px; width: calc(100% - 24px); }
    .hero-layout { display: block; padding-top: 28px; text-align: center; }
    .hero-copy { position: relative; z-index: 5; }
    .eyebrow { font-size: 9px; }
    .jackpot-title { width: min(330px,94%); margin: -5px auto -8px; }
    .hero-copy h2 { margin-top: 3px; font-size: 40px; }
    .hero-copy > p:not(.eyebrow) { font-size: 14px; }
    .hero-buttons { justify-content: center; margin-top: 14px; }
    .gold-button, .dark-button { min-height: 43px; padding-inline: 19px; font-size: 13px; }
    .hero-woman { right: 50%; bottom: -40px; width: 340px; transform: translateX(50%); }
    .hero-woman-two { bottom: -48px; width: 280px; }
    .hero-coins { width: 160px; }
    .coin-left { right: 44%; bottom: -38px; }
    .coin-right { top: auto; right: -40px; bottom: 10px; }
    .slider-arrow { top: 55%; width: 34px; height: 42px; }
    .notice-inner { align-items: flex-start; min-height: 70px; padding-block: 11px; gap: 10px; }
    .notice-label { padding-right: 10px; font-size: 11px; }
    .notice-marquee p { white-space: normal; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px; }
    .notice-more { display: none; }
    .section-block { padding: 65px 0 72px; }
    .section-heading { margin-bottom: 30px; }
    .section-heading h2 { font-size: 34px; }
    .section-heading p { font-size: 13px; }
    .download-panel { min-height: 510px; padding: 20px 12px; }
    .download-tabs button { padding-inline: 17px; }
    .download-visual { height: 290px; }
    .download-card { right: 12px; bottom: 18px; left: 12px; justify-content: center; }
    .qr-image { width: 90px; }
    .stats-row { grid-template-columns: repeat(2,1fr); }
    .stats-row > div:nth-child(2)::after { display: none; }
    .stats-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .stats-row > div { min-height: 105px; }
    .stats-row strong { font-size: 33px; }
    .service-card { min-height: 290px; padding: 28px 24px; }
    .service-card a, .service-card button { right: 24px; left: 24px; }
    .page-module-grid { grid-template-columns: 1fr; }
    .module-view { min-height: 520px; padding: 50px 0 70px; }
    .module-page-heading h1 { font-size: 43px; }
    .product-layout { display: flex; min-height: 720px; padding-top: 55px; flex-direction: column; align-items: stretch; }
    .product-content { text-align: center; }
    .product-content h1 { font-size: 43px; }
    .product-content > p:not(.route-kicker) { font-size: 14px; }
    .game-tabs, .product-actions { justify-content: center; }
    .product-art { width: min(100%,430px); max-height: 390px; margin: 25px auto -65px; }
    .phone-art { max-height: 430px; }
    .h5-qr { margin-inline: auto; text-align: left; }
    .agent-steps { text-align: left; }
    .side-tools { top: auto; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); left: 8px; grid-template-columns: repeat(var(--quick-link-count),minmax(64px,1fr)); overflow-x:auto; border-radius: 12px; transform: none; }
    .side-tool { display: flex; width: auto; min-height: 50px; gap: 7px; }
    .side-tool + .side-tool { border-top: 0; border-left: 1px solid rgba(255,255,255,.08); }
    .side-tool img { width: 27px; height: 27px; }
    .activity-view { padding-top: 24px; }
    .activity-layout, .info-layout { display: block; }
    .activity-menu, .info-menu { position: static; display: flex; overflow-x: auto; margin-bottom: 18px; padding: 10px; gap: 6px; border-radius: 12px; scrollbar-width: none; }
    .help-menu-items { display:flex; flex:0 0 auto; gap:6px; }
    .activity-menu::-webkit-scrollbar, .info-menu::-webkit-scrollbar { display: none; }
    .activity-menu h1, .info-menu h1 { display: none; }
    .activity-menu button, .info-menu button { flex: 0 0 auto; min-height: 42px; padding-inline: 16px; }
    .activity-menu button { text-align: center; white-space: nowrap; }
    .info-menu button { max-width: 220px; white-space: pre-wrap; }
    .activity-list { gap: 13px; }
    .activity-card { border-radius: 8px; }
    .app-view { padding: 52px 0 70px; }
    .app-layout { display: block; }
    .app-copy { text-align: center; }
    .app-copy h1 { font-size: 43px; }
    .download-tabs.standalone { justify-content: center; }
    .app-preview { height: 270px; margin-bottom: 22px; }
    .app-qr-card { max-width: 300px; margin: 0 auto; }
    .info-view { padding: 25px 0 55px; }
    .info-content, .rules-content { min-height: 360px; padding: 28px 22px; }
    .rules-content h1 { font-size: 38px; }
    .rules-table { grid-template-columns: 1fr; }
    .site-footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
    .dialog-shell { padding: 28px 20px; }
    .toast { bottom: calc(72px + env(safe-area-inset-bottom)); text-align: center; }
}

@media (max-width: 410px) {
    .login-gate { padding: 14px; }
    .site-header { background: var(--black); }
    .download-card h3 { font-size: 16px; }
    .agent-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Premium presentation layer */
::selection { color: #271b0e; background: #e9ca8c; }
body {
    background-color: #f3eee5;
    background-image: radial-gradient(circle at 12% 18%,rgba(205,164,95,.08),transparent 28%), radial-gradient(circle at 88% 76%,rgba(128,86,31,.06),transparent 25%);
}
.site-app { isolation: isolate; }
.shell { width: min(1240px,calc(100% - 48px)); }

@keyframes gate-card-in { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }

.site-header { position: sticky; z-index: 90; top: 0; box-shadow: 0 8px 30px rgba(0,0,0,.08); transition: box-shadow .35s; }
.site-header.is-scrolled { box-shadow: 0 14px 42px rgba(0,0,0,.2); }
.utility-bar { overflow: hidden; max-height: 48px; background: linear-gradient(90deg,#11110f,#1d1b17 50%,#11110f); transition: max-height .38s var(--ease),min-height .38s,opacity .28s; }
.site-header.is-scrolled .utility-bar { min-height: 0; max-height: 0; opacity: 0; }
.navigation-bar { border-bottom: 1px solid rgba(240,211,157,.1); background: linear-gradient(105deg,rgba(28,27,24,.97),rgba(42,39,34,.96),rgba(25,24,22,.97)); backdrop-filter: blur(18px) saturate(1.2); }
.navigation-inner { min-height: 100px; transition: min-height .35s var(--ease); }
.site-header.is-scrolled .navigation-inner { min-height: 76px; }
.logo { filter: drop-shadow(0 9px 18px rgba(0,0,0,.26)); transition: filter .3s; }
.logo .brand-logo { transition: width .35s var(--ease); }
.logo:hover { filter: drop-shadow(0 10px 22px rgba(229,187,106,.16)) brightness(1.06); }
.site-header.is-scrolled .logo { --brand-logo-width: 188px; }
.main-nav a { overflow: hidden; color: #e9e2d7; font-size: 17px; letter-spacing: .04em; transition: color .25s,background .25s,transform .25s; }
.main-nav a::before { position: absolute; inset: 12px 5px; border: 1px solid transparent; border-radius: 10px; content: ""; transition: border-color .3s,background .3s; }
.main-nav a::after { right: 32%; bottom: 19px; left: 32%; height: 1px; box-shadow: 0 0 10px rgba(236,199,130,.5); }
.main-nav a:hover::before,.main-nav a.active::before { border-color: rgba(231,196,131,.12); background: rgba(255,255,255,.025); }
.main-nav a:hover,.main-nav a.active { color: #f1d69f; background: transparent; }
.main-nav a:focus-visible { outline: 2px solid rgba(232,196,128,.72); outline-offset: -7px; border-radius: 12px; }
.language-switch button { border-radius: 7px; transition: color .2s,background .2s; }
.language-switch button:hover,.language-switch button.active { background: rgba(255,255,255,.04); }
.header-button { border-radius: 9px; transition: transform .25s var(--ease),background .25s,box-shadow .25s; }
.register-button { box-shadow: inset 0 1px 0 rgba(255,255,255,.45),0 8px 20px rgba(145,96,31,.16); }
.logout-button:hover { border-color: #a4875d; background: rgba(255,255,255,.04); }

.gold-button,.dark-button { position: relative; overflow: hidden; min-height: 50px; border-radius: 12px; letter-spacing: .04em; box-shadow: 0 12px 30px rgba(95,64,26,.18); transition: transform .3s var(--ease-spring),box-shadow .3s,filter .3s,border-color .3s; }
.gold-button { border: 1px solid rgba(139,91,29,.16); background: linear-gradient(125deg,#f7e6b9 0%,#d5ad68 48%,#b47a2d 100%); }
.gold-button::after,.dark-button::after { position: absolute; top: -100%; left: -45%; width: 34%; height: 300%; content: ""; background: linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent); pointer-events: none; transform: rotate(22deg); transition: left .65s var(--ease); }
.gold-button:hover::after,.dark-button:hover::after { left: 115%; }
.dark-button { border: 1px solid rgba(237,211,165,.16); background: linear-gradient(135deg,#34312d,#1d1c1a); box-shadow: 0 12px 30px rgba(14,12,10,.2); }
.gold-button:hover,.dark-button:hover { box-shadow: 0 17px 36px rgba(87,57,22,.25); transform: translateY(-4px); }
.route-kicker,.section-heading > span { color: var(--gold-deep); letter-spacing: .34em; }

.route-view.active { animation: view-in-premium .55s var(--ease); }
@keyframes view-in-premium { from { opacity: 0; filter: blur(5px); transform: translateY(12px); } to { opacity: 1; filter: none; transform: none; } }
.hero-slider { min-height: 610px; background-color: #e7cf9e; }
.hero-slider::before { position: absolute; z-index: 3; inset: 0; content: ""; background: linear-gradient(90deg,rgba(255,249,233,.28),transparent 44%),linear-gradient(0deg,rgba(65,38,8,.12),transparent 24%); pointer-events: none; }
.hero-slider::after { position: absolute; z-index: 3; inset: 0; content: ""; background: radial-gradient(circle at var(--pointer-x,72%) var(--pointer-y,32%),rgba(255,244,207,.32),transparent 22%); mix-blend-mode: soft-light; pointer-events: none; transition: background-position .2s; }
.hero-layout { min-height: 610px; }
.hero-copy { text-shadow: 0 1px 0 rgba(255,255,255,.24); }
.hero-slide.active .hero-copy > * { animation: hero-copy-in .7s var(--ease) both; }
.hero-slide.active .hero-copy > :nth-child(2) { animation-delay: .07s; }
.hero-slide.active .hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-slide.active .hero-copy > :nth-child(4) { animation-delay: .21s; }
.hero-slide.active .hero-woman { animation: hero-art-in .9s var(--ease) both; }
.hero-slide.active .hero-coins { animation: coin-float 5s ease-in-out infinite alternate; }
@keyframes hero-copy-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hero-art-in { from { opacity: 0; filter: blur(7px); transform: translate3d(34px,18px,0) scale(.97); } to { opacity: 1; filter: none; transform: none; } }
@keyframes coin-float { to { translate: 0 -10px; } }
.slider-arrow { width: 48px; height: 48px; border: 1px solid rgba(255,244,219,.22); border-radius: 50%; background: rgba(32,26,19,.28); box-shadow: 0 10px 30px rgba(0,0,0,.12); backdrop-filter: blur(12px); transition: background .25s,box-shadow .25s; }
.slider-arrow:hover,.slider-arrow:active { background: rgba(32,26,19,.62); }
.slider-arrow:focus-visible { outline: 0; box-shadow: inset 0 0 0 3px #e0b76a,0 10px 30px rgba(0,0,0,.12); }
.slider-prev { left: 18px; }
.slider-next { right: 18px; }
.slider-dots { bottom: 24px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.slider-dots button { height: 5px; }
.hero-slider::before,.hero-slider::after { display:none; }
.hero-slides { position:absolute; inset:0; }
.simple-carousel-slide { background:#e7dfd3; }
.simple-carousel-link { display:block; width:100%; height:100%; }
.simple-carousel-picture { display:block; width:100%; height:100%; }
.simple-carousel-link img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.notice-section { border-top: 1px solid rgba(244,216,165,.14); background: linear-gradient(100deg,#28221c,#443425 50%,#28221c); }

.section-block { position: relative; overflow: hidden; }
.home-download { background: linear-gradient(180deg,#faf8f3,#f3eee5); }
.home-download::before,.service-section::before { position: absolute; width: 520px; height: 520px; border-radius: 50%; content: ""; background: radial-gradient(circle,rgba(202,159,87,.12),transparent 68%); pointer-events: none; }
.home-download::before { top: -260px; right: -160px; }
.service-section::before { bottom: -300px; left: -180px; }
.section-heading h2 { font-size: clamp(38px,4vw,50px); letter-spacing: .025em; }
.download-panel { border-color: rgba(174,132,71,.18); border-radius: 30px; background: linear-gradient(145deg,rgba(255,255,255,.96),rgba(250,245,235,.84)); box-shadow: 0 28px 80px rgba(65,46,24,.13),inset 0 1px 0 #fff; }
.download-tabs { padding: 5px; }
.download-tabs button { border-color: transparent; border-radius: 12px; background: transparent; transition: background .25s,color .25s,box-shadow .25s,transform .25s; }
.download-tabs button:hover { background: rgba(205,164,95,.1); }
.download-tabs button.active { background: linear-gradient(135deg,#3b3023,#1d1b18); box-shadow: 0 10px 26px rgba(34,27,20,.18); }
.download-device.active { filter: drop-shadow(0 25px 36px rgba(66,50,31,.18)); }
.download-card { border-color: rgba(180,137,75,.22); background: rgba(255,253,248,.82); box-shadow: 0 20px 55px rgba(61,43,22,.15); backdrop-filter: blur(20px) saturate(1.12); }
.stats-row { overflow: hidden; border-color: rgba(155,111,51,.13); background: rgba(255,255,255,.48); box-shadow: 0 22px 60px rgba(72,49,21,.12); backdrop-filter: blur(12px); }
.stats-row > div { transition: background .3s,transform .3s var(--ease); }
.stats-row > div:hover { z-index: 1; background: rgba(255,255,255,.42); transform: translateY(-3px); }
.service-card { overflow: hidden; border-color: rgba(167,124,65,.16); border-radius: 24px; background: linear-gradient(150deg,rgba(255,255,255,.86),rgba(249,242,229,.7)); box-shadow: var(--shadow-soft); backdrop-filter: blur(10px); }
.service-card::before { position: absolute; top: -70px; right: -70px; width: 150px; height: 150px; border-radius: 50%; content: ""; background: radial-gradient(circle,rgba(205,164,95,.18),transparent 68%); transition: transform .5s var(--ease); }
.service-card:hover::before { transform: scale(1.5); }
.service-card:hover { box-shadow: 0 27px 70px rgba(62,43,20,.18); transform: translateY(-10px); }

/* 真人视讯使用整卡主视觉，首页服务卡仍保留小图标结构。 */
[data-page-modules="HomeVideo"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
[data-page-modules="HomeVideo"] .page-module-card { isolation: isolate; display: flex; min-height: 470px; flex-direction: column; justify-content: flex-end; padding: 34px 32px 86px; border-color: rgba(168,126,66,.2); background: #eee4d4; }
[data-page-modules="HomeVideo"] .page-module-card > img { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center 5%; transition: transform .55s var(--ease),filter .4s; }
[data-page-modules="HomeVideo"] .page-module-card::before { z-index: 1; inset: 0; width: auto; height: auto; border-radius: inherit; background: linear-gradient(180deg,rgba(250,247,241,.04) 20%,rgba(248,243,234,.5) 56%,rgba(246,238,225,.96) 84%,#f4ead9 100%); transform: none; transition: background .35s; }
[data-page-modules="HomeVideo"] .page-module-card:hover::before { background: linear-gradient(180deg,rgba(250,247,241,0) 16%,rgba(248,243,234,.44) 53%,rgba(246,238,225,.95) 82%,#f4ead9 100%); transform: none; }
[data-page-modules="HomeVideo"] .page-module-card:hover > img { transform: scale(1.035); }
[data-page-modules="HomeVideo"] .page-module-card > h3,
[data-page-modules="HomeVideo"] .page-module-card > p,
[data-page-modules="HomeVideo"] .page-module-card > a { z-index: 2; }
[data-page-modules="HomeVideo"] .page-module-card > h3 { color: #352414; font-size: 25px; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
[data-page-modules="HomeVideo"] .page-module-card > p { color: #5e5245; font-size: 15px; text-shadow: 0 1px 0 rgba(255,255,255,.72); }
[data-page-modules="HomeVideo"] .page-module-card > a { color: #8f5c17; }

.product-view { position: relative; background-color: #f2f2f0; }
.product-view::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg,rgba(255,255,255,.5),transparent 58%),radial-gradient(circle at 78% 46%,rgba(208,169,105,.14),transparent 30%); pointer-events: none; }
.product-layout { min-height: 730px; }
.product-content { padding: 38px; border: 1px solid rgba(165,124,69,.11); border-radius: 28px; background: linear-gradient(145deg,rgba(255,255,255,.56),rgba(255,255,255,.2)); box-shadow: 0 22px 70px rgba(65,55,42,.07); backdrop-filter: blur(10px); }
.product-content h1,.app-copy h1,.activity-menu h1,.info-menu h1,.rules-content h1 { letter-spacing: .02em; }
.product-art { transition: filter .4s,transform .5s var(--ease); animation: product-float 5.5s ease-in-out infinite alternate; }
@keyframes product-float { to { transform: translateY(-8px); } }
.game-tabs button { border-color: rgba(142,114,78,.22); border-radius: 10px; background: rgba(255,255,255,.62); transition: background .25s,color .25s,border-color .25s,transform .25s,box-shadow .25s; }
.game-tabs button:hover,.game-tabs button.active { box-shadow: 0 9px 22px rgba(120,81,29,.14); transform: translateY(-2px); }
.h5-qr { border: 1px solid rgba(167,124,65,.14); border-radius: 16px; box-shadow: var(--shadow-soft); transition: transform .3s var(--ease),box-shadow .3s; }
.h5-qr:hover { box-shadow: 0 18px 42px rgba(61,44,23,.15); transform: translateY(-4px); }
.agent-steps li { border-color: rgba(163,121,64,.15); border-radius: 12px; background: rgba(255,255,255,.68); transition: transform .25s,background .25s,box-shadow .25s; }
.agent-steps li:hover { background: #fff; box-shadow: 0 9px 24px rgba(60,45,27,.09); transform: translateY(-2px); }

.activity-view { background-color: #f4f6fb; }
.activity-menu,.info-menu { border: 1px solid rgba(135,103,61,.11); border-radius: 24px; background: rgba(255,255,255,.76); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); }
.activity-menu button,.info-menu button { border-radius: 11px; transition: background .25s,color .25s,transform .25s,box-shadow .25s; }
.activity-menu button.active,.info-menu button.active { background: linear-gradient(135deg,#f0d69e,#c79751); box-shadow: 0 10px 25px rgba(132,89,33,.15); }
.activity-card { position: relative; border: 1px solid rgba(130,108,80,.1); border-radius: 20px; box-shadow: var(--shadow-soft); }
.activity-card::after { position: absolute; inset: 0; border-radius: inherit; content: ""; background: linear-gradient(120deg,transparent 35%,rgba(255,255,255,.28),transparent 65%); opacity: 0; pointer-events: none; transform: translateX(-35%); transition: opacity .3s,transform .7s var(--ease); }
.activity-card:hover::after { opacity: 1; transform: translateX(35%); }
.activity-card:hover { box-shadow: 0 25px 65px rgba(54,60,75,.2); transform: translateY(-7px) scale(1.008); }

.app-view { background: radial-gradient(circle at 10% 20%,rgba(218,181,117,.2),transparent 30%),linear-gradient(135deg,#faf8f3,#e9dcc5); }
.app-preview,.app-qr-card,.info-content,.rules-content { border: 1px solid rgba(154,112,53,.13); border-radius: 26px; box-shadow: var(--shadow); }
.app-preview { background: rgba(255,255,255,.58); backdrop-filter: blur(14px); }
.app-qr-card { box-shadow: 0 25px 70px rgba(41,31,21,.25); }
.info-view { background-color: #f3eee5; }
.info-content,.rules-content { background: rgba(255,255,255,.82); backdrop-filter: blur(15px); }
.rules-table > div { border-color: rgba(166,124,68,.16); border-radius: 14px; background: rgba(255,250,241,.75); transition: transform .25s,box-shadow .25s,background .25s; }
.rules-table > div:hover { background: #fff; box-shadow: var(--shadow-soft); transform: translateY(-3px); }

.side-tools { overflow: visible; gap: 4px; padding: 5px; border: 1px solid rgba(242,218,177,.14); border-radius: 18px; background: rgba(28,26,23,.86); box-shadow: 0 20px 55px rgba(0,0,0,.26); backdrop-filter: blur(18px) saturate(1.2); }
.side-tool { width: 66px; min-height: 66px; border-radius: 13px; background: transparent; transition: background .25s,transform .3s var(--ease),color .25s; }
.side-tool + .side-tool { border: 0; }
.side-tool:hover { color: #fff1d2; background: linear-gradient(135deg,rgba(191,139,66,.88),rgba(112,73,28,.92)); transform: translateX(-5px); }
.side-tool img { filter: drop-shadow(0 4px 7px rgba(0,0,0,.2)); transition: transform .3s var(--ease); }
.side-tool:hover img { transform: scale(1.08); }
.side-tool img { display:block; width:44px; height:44px; padding:0; border:0; border-radius:0; background:none; box-shadow:none; object-fit:contain; }
.site-footer { border-top: 1px solid rgba(239,208,150,.1); background: radial-gradient(circle at 50% 0,rgba(141,98,41,.15),transparent 45%),#1d1c1a; }
.footer-logo { filter: drop-shadow(0 8px 18px rgba(0,0,0,.3)); }

.site-dialog::backdrop { background: rgba(13,11,9,.74); backdrop-filter: blur(8px); }
.site-dialog[open] .dialog-shell { animation: dialog-in .42s var(--ease-spring) both; }
.dialog-shell { border-color: rgba(224,190,131,.3); border-radius: 24px; background: linear-gradient(145deg,#fffefa,#f5ede0); box-shadow: 0 38px 120px rgba(0,0,0,.4); }
.dialog-close { transition: color .25s,background .25s,transform .3s var(--ease); }
.dialog-close:hover { color: #3e2a14; background: #ead4ad; transform: rotate(90deg); }
.announcement-list p { border: 1px solid rgba(171,128,69,.1); border-radius: 12px; background: rgba(246,239,227,.8); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.toast { border: 1px solid rgba(238,211,164,.18); background: rgba(29,25,20,.9); box-shadow: 0 18px 48px rgba(0,0,0,.28); backdrop-filter: blur(15px); }

.motion-ready .reveal-item { opacity: 0; transform: translateY(26px); transition: opacity .72s var(--ease),transform .72s var(--ease); transition-delay: calc(var(--reveal-order,0) * 70ms); }
.motion-ready .reveal-item.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .site-header.is-scrolled .navigation-inner { min-height: 70px; }
    .site-header.is-scrolled .logo { --brand-logo-width: 157px; }
    .main-nav { border-color: rgba(222,188,129,.18); border-radius: 18px; background: rgba(28,27,25,.96); box-shadow: 0 25px 70px rgba(0,0,0,.36); backdrop-filter: blur(20px); }
    .main-nav a::before { inset: 4px; }
    .service-card:hover,.activity-card:hover { transform: translateY(-4px); }
    .product-content { padding: 30px; }
}

@media (max-width: 640px) {
    .shell { width: min(100% - 28px,540px); }
    .site-header { position: sticky; }
    .utility-bar { max-height: 50px; }
    .site-header.is-scrolled .utility-bar { max-height: 0; }
    .navigation-bar { background: rgba(28,27,25,.97); }
    .nav-toggle { border-color: rgba(225,193,136,.18); border-radius: 12px; background: rgba(255,255,255,.035); }
    .main-nav { border-radius: 18px; }
    .hero-slider { min-height:0; aspect-ratio:5 / 4; touch-action:pan-y; overscroll-behavior-x:contain; user-select:none; -webkit-user-select:none; }
    .simple-carousel-slide { background:#f5f0e7; }
    .simple-carousel-link { position:relative; z-index:1; display:grid; place-items:center; }
    .simple-carousel-link .simple-carousel-image { object-fit:contain; object-position:center; -webkit-user-drag:none; }
    .hero-slider .slider-arrow { display:none; }
    .hero-layout { min-height: 520px; }
    .hero-slider::after { background: radial-gradient(circle at 70% 45%,rgba(255,244,207,.2),transparent 26%); }
    .hero-copy h2 { font-size: clamp(42px,13vw,52px); }
    .hero-slide.active .hero-woman { animation-name: hero-art-in-mobile; }
    @keyframes hero-art-in-mobile { from { opacity: 0; filter: blur(6px); transform: translate3d(50%,25px,0) scale(.97); } to { opacity: 1; filter: none; transform: translateX(50%); } }
    .slider-arrow { width: 38px; height: 38px; }
    .slider-prev { left: 8px; }
    .slider-next { right: 8px; }
    .slider-dots { bottom: 12px; }
    .section-block { padding-block: 68px 76px; }
    .download-panel { border-radius: 22px; }
    .download-card { border-radius: 17px; }
    .service-card { border-radius: 20px; }
    [data-page-modules="HomeVideo"] { grid-template-columns: 1fr; }
    [data-page-modules="HomeVideo"] .page-module-card { min-height: 420px; padding: 26px 22px 76px; }
    [data-page-modules="HomeVideo"] .page-module-card > img { object-position: center 5%; }
    [data-page-modules="HomeVideo"] .page-module-card > h3 { font-size: 23px; }
    .product-layout { min-height: 730px; }
    .product-content { width: 100%; padding: 24px 18px; margin: 0; border-radius: 22px; }
    .product-art { animation-duration: 6.5s; }
    .activity-menu,.info-menu { border-radius: 16px; }
    .activity-card { border-radius: 12px; }
    .app-preview,.app-qr-card,.info-content,.rules-content { border-radius: 20px; }
    .side-tools { right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); left: 8px; gap: 2px; padding: 4px; border-radius: 17px; }
    .side-tool { min-height: 52px; border-radius: 12px; }
    .side-tool img { width:32px; height:32px; border-radius:10px; }
    .side-tool:hover { transform: translateY(-3px); }
    .login-gate-card { padding: 70px 28px 30px; }
}

@media (hover: none) {
    .service-card:hover,.activity-card:hover,.stats-row > div:hover,.rules-table > div:hover,.gold-button:hover,.dark-button:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .login-gate-card,.hero-slide.active .hero-copy > *,.hero-slide.active .hero-woman,.hero-slide.active .hero-coins,.product-art,.site-dialog[open] .dialog-shell { animation: none !important; }
    .motion-ready .reveal-item { opacity: 1; transform: none; }
}

/* Language controls */
.gate-language-switch { position: absolute; z-index: 2; top: 22px; right: 28px; display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(221,190,133,.18); border-radius: 7px; background: rgba(255,255,255,.04); }
.gate-language-switch button { min-height: 28px; padding: 0 10px; border-radius: 5px; color: #9f927e; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; transition: color .2s,background .2s,box-shadow .2s; }
.gate-language-switch button:hover { color: #ead0a0; }
.gate-language-switch button.active { color: #2b2115; background: #d8b472; box-shadow: 0 2px 8px rgba(0,0,0,.18); font-weight: 800; }
html[lang="en"] .main-nav a { min-width: 104px; padding-inline: 14px; font-size: 15px; }
html[lang="en"] .hero-copy h2 { letter-spacing: -.02em; }
html[lang="en"] .section-heading h2,html[lang="en"] .product-content h1,html[lang="en"] .app-copy h1,html[lang="en"] .rules-content h1 { letter-spacing: -.025em; }
html[lang="en"] .activity-menu h1,html[lang="en"] .info-menu h1 { font-size: 27px; }

/* Mobile header: compact by default and drop the account utility row after scrolling. */
@media (max-width: 900px) {
    .navigation-inner { min-height: 78px; }
    .logo { --brand-logo-width: 171px; }
}

@media (max-width: 640px) {
    .navigation-inner { min-height: 70px; }
    .logo { --brand-logo-width: 143px; }
    .site-header.is-scrolled .logo { --brand-logo-width: 143px; }
}

@media (max-width: 1120px) {
    html[lang="en"] .main-nav a { min-width: auto; padding-inline: 11px; font-size: 14px; }
}

@media (max-width: 640px) {
    .utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .language-switch { display: flex; flex: 0 0 auto; }
    .language-switch button { padding-inline: 5px; font-size: 10px; }
    .member-panel { flex: 0 1 auto; }
    .gate-language-switch { top: 20px; right: 22px; }
    html[lang="en"] .main-nav a { padding-inline: 8px; font-size: 14px; }
    html[lang="en"] .hero-copy h2 { font-size: clamp(38px,11vw,48px); }
    html[lang="en"] .product-content h1,html[lang="en"] .app-copy h1 { font-size: 39px; }
}

/* Mobile quick navigation */
@media (max-width: 640px) {
    .side-tools {
        right: 10px;
        bottom: max(10px,env(safe-area-inset-bottom));
        left: 10px;
        grid-template-columns: repeat(var(--quick-link-count),minmax(64px,1fr));
        overflow-x: auto;
        gap: 3px;
        padding: 6px;
        border: 1px solid rgba(156,113,54,.22);
        border-radius: 20px;
        background: rgba(255,252,246,.94);
        box-shadow: 0 18px 46px rgba(36,27,18,.22),inset 0 1px 0 rgba(255,255,255,.94);
        backdrop-filter: blur(22px) saturate(1.18);
    }
    .side-tool {
        display: grid;
        grid-template-rows: 38px auto;
        width: auto;
        min-width: 0;
        min-height: 62px;
        align-content: center;
        justify-items: center;
        gap: 5px;
        padding: 5px 2px;
        border-radius: 14px;
        color: #594936;
        background: transparent;
        font-size: 10px;
        line-height: 1;
        text-align: center;
    }
    .side-tool + .side-tool { border: 0; }
    .side-tool img {
        width: 38px;
        height: 38px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }
    .side-tool span {
        display: block;
        overflow: hidden;
        width: 100%;
        color: inherit;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .side-tool:hover,.side-tool:active { color: #3c2b18; background: rgba(203,161,93,.14); transform: none; }
    .side-tool:hover img,.side-tool:active img { transform:translateY(-1px); }
    .site-footer { padding-bottom: calc(122px + env(safe-area-inset-bottom)); }
    .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
    .side-tools { right: 7px; left: 7px; padding: 5px; }
    .side-tool { grid-template-rows:34px auto; min-height:58px; font-size:9px; }
    .side-tool img { width:34px; height:34px; }
}

/* Mobile navigation alignment */
@media (max-width: 900px) {
    .site-app::after {
        position: fixed;
        z-index: 85;
        inset: 0;
        visibility: hidden;
        content: "";
        background: rgba(13,11,9,.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity .24s,visibility .24s;
        backdrop-filter: blur(3px);
    }
    body.nav-open .site-app::after { visibility: visible; opacity: 1; pointer-events: auto; }
    .navigation-inner { position: relative; }
    .nav-toggle { position: relative; z-index: 112; }
    .main-nav {
        position: fixed;
        z-index: 110;
        top: 78px;
        right: 0;
        bottom: auto;
        left: auto;
        align-self: auto;
        display: none;
        width: min(280px,82vw);
        height: auto;
        max-height: calc(100dvh - 126px);
        overflow-y: auto;
        flex-direction: column;
        padding: 12px;
        gap: 3px;
        border: 0;
        border-left: 1px solid rgba(220,181,112,.2);
        border-radius: 18px 0 0 18px;
        visibility: hidden;
        background: rgba(24,23,21,.985);
        box-shadow: -18px 28px 60px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.04);
        opacity: 0;
        transform: none;
        transition: opacity .22s,visibility .22s;
        backdrop-filter: blur(22px);
    }
    .main-nav.open { display:flex; visibility:visible; opacity:1; animation:mobile-nav-in .26s var(--ease) both; }
    @keyframes mobile-nav-in { from { opacity:0; transform:translateX(22px); } to { opacity:1; transform:none; } }
    .main-nav a {
        display: flex;
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: 46px;
        align-items: center;
        justify-content: flex-start;
        flex: 0 0 46px;
        padding: 0 16px;
        border: 1px solid transparent;
        border-radius: 10px;
        color: #e8e0d4;
        background: transparent;
        line-height: 1.15;
        text-align: left;
        transition: color .22s,background .22s,border-color .22s,box-shadow .22s,transform .22s;
    }
    .main-nav a::before,.main-nav a::after { display: none; }
    .main-nav a:hover { color: #f3dcae; background: rgba(255,255,255,.05); transform: translateX(-2px); }
    .main-nav a.active {
        border-color: rgba(228,192,126,.2);
        color: #f1d49b;
        background: rgba(201,151,80,.12);
        box-shadow: inset 3px 0 0 #d7ab63;
    }
}

@media (max-width: 640px) {
    .main-nav { top:70px; width:min(280px,82vw); height:auto; max-height:calc(100dvh - 120px); }
    .side-tools {
        right: auto;
        left: 50%;
        grid-template-columns: repeat(var(--quick-link-count),68px);
        width: max-content;
        max-width: calc(100% - 20px);
        justify-content: start;
        gap: 0;
        padding: 5px 6px;
        transform: translateX(-50%);
    }
    .side-tool { min-height: 58px; gap: 3px; padding: 3px 2px; }
}

@media (max-width: 360px) {
    .side-tools { grid-template-columns:repeat(var(--quick-link-count),62px); padding:4px 5px; }
    .side-tool { min-height:56px; }
}

/* Unavailable business entry */
.product-actions .button-disabled,
.product-actions .button-disabled:hover {
    cursor: not-allowed;
    opacity: .58;
    filter: grayscale(.65);
    box-shadow: none;
    transform: none;
}
.product-actions .button-disabled::after { display: none; }
.config-disabled,.config-disabled:hover { cursor: not-allowed !important; opacity: .55; filter: grayscale(.45); transform: none !important; }
