:root {
  --ink: #ecf4ed;
  --muted: #8ca69e;
  --green-950: #031d1a;
  --green-900: #062824;
  --green-800: #0b3b34;
  --green-700: #125144;
  --gold: #d7ad58;
  --gold-light: #f3dda1;
  --line: rgba(223, 193, 126, .17);
  --panel: rgba(8, 41, 36, .78);
  --surface-rgb: 8, 41, 36;
  --surface-mid-rgb: 10, 53, 45;
  --surface-deep-rgb: 2, 23, 20;
  --accent-rgb: 215, 173, 88;
  --bg-glow: #15493c;
  --bg-start: #031b18;
  --bg-middle: #062a25;
  --bg-end: #041c1a;
  --ambient-a-color: #b88a38;
  --ambient-b-color: #2a9472;
  --button-ink: #17332b;
  --positive: #79c99a;
  --failure: #d88472;
  --positive-rgb: 121, 201, 154;
  --failure-rgb: 216, 132, 114;
  --radius: 22px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--green-950);
}

body[data-theme="warm"] {
  --ink: #f1eee7;
  --muted: #a89c8b;
  --green-950: #1d1510;
  --green-900: #2f2118;
  --green-800: #433020;
  --green-700: #5b422a;
  --gold: #d2a657;
  --gold-light: #efd79d;
  --line: rgba(225, 185, 108, .18);
  --panel: rgba(48, 33, 24, .8);
  --surface-rgb: 48, 33, 24;
  --surface-mid-rgb: 65, 44, 29;
  --surface-deep-rgb: 29, 20, 15;
  --accent-rgb: 210, 166, 87;
  --bg-glow: #654a2c;
  --bg-start: #1c1410;
  --bg-middle: #302219;
  --bg-end: #211711;
  --ambient-a-color: #b38439;
  --ambient-b-color: #7d5735;
  --button-ink: #352719;
  --positive: #99b88b;
  --failure: #d17e6b;
  --positive-rgb: 153, 184, 139;
  --failure-rgb: 209, 126, 107;
}

body[data-theme="ink"] {
  --ink: #edf1f3;
  --muted: #8e9faa;
  --green-950: #09121b;
  --green-900: #111f2c;
  --green-800: #1b3040;
  --green-700: #29485b;
  --gold: #b9a36e;
  --gold-light: #e2d4a6;
  --line: rgba(205, 190, 143, .16);
  --panel: rgba(17, 31, 44, .8);
  --surface-rgb: 17, 31, 44;
  --surface-mid-rgb: 24, 45, 60;
  --surface-deep-rgb: 8, 20, 29;
  --accent-rgb: 185, 163, 110;
  --bg-glow: #294b5d;
  --bg-start: #08121b;
  --bg-middle: #111f2c;
  --bg-end: #0a151f;
  --ambient-a-color: #8b794f;
  --ambient-b-color: #416b7b;
  --button-ink: #172933;
  --positive: #79b8a4;
  --failure: #c98275;
  --positive-rgb: 121, 184, 164;
  --failure-rgb: 201, 130, 117;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 78% 8%, var(--bg-glow) 0, transparent 31%), linear-gradient(155deg, var(--bg-start) 0%, var(--bg-middle) 48%, var(--bg-end) 100%); color: var(--ink); overflow-x: hidden; transition: background .32s ease, color .2s ease; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
:where(button, a[href], [role="button"]) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:where(button, a[href], [role="button"]):focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
:where(button, a[href], [role="button"]).is-pressed { transform: translateY(1px) scale(.975) !important; filter: brightness(.92); transition-duration: .06s !important; }
:where(button, a[href], [role="button"]).is-released { animation: control-release .24s ease-out; }
:where(button, a[href], [role="button"]).is-success, .setting-slider.is-success { box-shadow: 0 0 0 2px rgba(var(--positive-rgb),.72) !important; animation: control-success .48s ease-out; }
:where(button, a[href], [role="button"]).is-failure, .setting-slider.is-failure { box-shadow: 0 0 0 2px rgba(var(--failure-rgb),.78) !important; animation: control-failure .42s ease-out; }

@keyframes control-release { 45% { filter: brightness(1.08); } }
@keyframes control-success { 45% { box-shadow: 0 0 0 5px rgba(var(--positive-rgb),.18); } }
@keyframes control-failure { 35% { transform: translateX(-2px); } 70% { transform: translateX(2px); } }

body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .24; 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: 34px 34px; mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.ambient { position: fixed; width: 420px; height: 420px; filter: blur(120px); border-radius: 50%; pointer-events: none; opacity: .16; }
.ambient-a { background: var(--ambient-a-color); right: -190px; top: 260px; }
.ambient-b { background: var(--ambient-b-color); left: -220px; top: 850px; }
.shell { width: min(1400px, calc(100% - 64px)); margin: 0 auto; position: relative; }

.topbar { height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand img { width: 46px; height: 46px; }
.brand span, .footer-brand span { display: flex; flex-direction: column; }
.brand b { font: 700 21px/1.1 "STSong", "SimSun", serif; letter-spacing: .24em; color: var(--gold-light); }
.brand small, .footer-brand small { margin-top: 4px; color: #8fa59d; font-size: 8px; letter-spacing: .2em; }
.topnav { display: flex; align-self: stretch; gap: 46px; }
.topnav a { display: grid; align-items: center; position: relative; font-size: 14px; color: #9db0aa; letter-spacing: .12em; }
.topnav a::after { content: ""; position: absolute; height: 2px; left: 50%; right: 50%; bottom: -1px; background: var(--gold); transition: .25s ease; }
.topnav a:hover, .topnav a.active { color: var(--gold-light); }
.topnav a.active::after { left: 10%; right: 10%; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.experience-button, .install-button, .member-button { display: flex; align-items: center; gap: 9px; border: 1px solid rgba(var(--accent-rgb),.35); background: rgba(var(--surface-deep-rgb),.55); border-radius: 999px; padding: 10px 17px; font-size: 12px; letter-spacing: .08em; cursor: pointer; transition: .2s; }
.experience-button { width: 39px; height: 39px; justify-content: center; padding: 0; color: var(--gold-light); border-color: rgba(var(--accent-rgb),.22); }
.experience-button:hover { border-color: var(--gold); background: rgba(var(--accent-rgb),.1); }
.experience-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.install-button { color: var(--button-ink); border-color: #e1c477; background: linear-gradient(135deg, #f1d990, #b8822d); box-shadow: 0 8px 24px rgba(183,128,35,.18); }
.install-button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.member-button:hover { background: rgba(var(--accent-rgb),.12); border-color: var(--gold); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #8da098; box-shadow: 0 0 0 4px rgba(141,160,152,.1); }

.hero { min-height: 590px; display: grid; grid-template-columns: 42% 58%; align-items: center; position: relative; isolation: isolate; }
.hero::after { content: ""; position: absolute; left: 45%; right: -18vw; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(218,184,109,.35), transparent); }
.hero-copy { align-self: center; padding: 28px 0 80px; z-index: 3; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #aeaaa0; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; }
.eyebrow i { width: 30px; height: 1px; background: var(--gold); }
.hero h1 { margin: 22px 0 20px; font: 500 clamp(54px, 6vw, 88px)/1.05 "STKaiti", "KaiTi", serif; letter-spacing: .06em; color: #f2eee1; text-shadow: 0 10px 40px rgba(0,0,0,.32); }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-copy > p { color: #aabbb5; font: 15px/1.8 "STSong", "SimSun", serif; letter-spacing: .12em; }
.hero-actions { display: flex; gap: 13px; margin-top: 34px; }
.hero-actions button { border-radius: 7px; padding: 14px 23px; min-width: 138px; border: 1px solid var(--gold); cursor: pointer; transition: transform .2s, background .2s; }
.hero-actions button:hover { transform: translateY(-2px); }
.primary-action { color: #17332b; background: linear-gradient(135deg, #f4dfa5, #bf8d35); box-shadow: 0 12px 35px rgba(182,127,32,.2); }
.secondary-action { background: rgba(var(--surface-rgb),.72); color: var(--gold-light); }
.hero-actions button span { margin-right: 8px; font-size: 18px; }
.trust-row { margin-top: 31px; display: flex; align-items: center; gap: 12px; color: #718c83; font-size: 9px; letter-spacing: .16em; }
.trust-row i { width: 3px; height: 3px; background: var(--gold); transform: rotate(45deg); }

.hero-art { position: absolute; inset: 20px -3% 0 32%; overflow: hidden; z-index: -1; mask-image: linear-gradient(90deg, transparent, black 17%, black 87%, transparent); }
.hero-art::before { content: ""; position: absolute; width: 700px; height: 480px; border-radius: 50%; right: 8%; top: 11%; border: 1px solid rgba(232,198,124,.12); box-shadow: inset 0 0 90px rgba(192,139,42,.08); transform: rotate(-8deg); }
.moon { position: absolute; width: 240px; height: 240px; border-radius: 50%; right: 13%; top: 42px; background: radial-gradient(circle at 43% 42%, #f8e9b7 0, #c18d35 38%, rgba(193,141,53,.18) 68%, transparent 70%); opacity: .5; box-shadow: 0 0 90px rgba(218,170,70,.25); }
.arch { position: absolute; width: 690px; height: 310px; border: 1px solid rgba(230,195,116,.24); border-radius: 50%; transform: rotate(-13deg); right: 3%; bottom: 35px; }
.arch::after { content: ""; position: absolute; inset: 16px; border-radius: inherit; border: 1px solid rgba(230,195,116,.1); }
.arch-back { transform: rotate(14deg); right: 12%; bottom: 3px; opacity: .62; }
.pagoda { position: absolute; right: 22%; bottom: 85px; width: 260px; height: 210px; opacity: .78; }
.pagoda i { display: block; margin: -2px auto 0; height: 31px; background: linear-gradient(90deg, transparent 0 8%, #0a3a31 8% 92%, transparent 92%); clip-path: polygon(50% 0, 58% 38%, 98% 65%, 84% 72%, 65% 58%, 65% 100%, 35% 100%, 35% 58%, 16% 72%, 2% 65%, 42% 38%); border-bottom: 1px solid rgba(244,215,147,.4); }
.pagoda i:nth-child(1) { width: 42%; margin-top: 0; }
.pagoda i:nth-child(2) { width: 61%; height: 44px; }
.pagoda i:nth-child(3) { width: 80%; height: 54px; }
.pagoda i:nth-child(4) { width: 100%; height: 65px; }
.coin { position: absolute; display: grid; place-items: center; border-radius: 50%; color: #efd184; font: 700 20px "STKaiti", serif; border: 1px solid rgba(239,209,132,.45); background: radial-gradient(circle at 35% 30%, #6e572c, #172f29 65%); box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 0 0 5px rgba(0,0,0,.2); }
.coin-one { width: 72px; height: 72px; right: 55%; bottom: 82px; transform: rotate(-14deg); }
.coin-two { width: 54px; height: 54px; right: 8%; bottom: 130px; transform: rotate(13deg); }
.coin-three { width: 43px; height: 43px; right: 45%; top: 122px; font-size: 13px; opacity: .7; }
.table-orbit { position: absolute; width: 520px; height: 150px; border-radius: 50%; right: 5%; bottom: 30px; border: 1px solid rgba(239,209,132,.22); transform: rotate(-7deg); }
.table-orbit span { position: absolute; inset: 20px; border-radius: inherit; background: radial-gradient(ellipse, rgba(23,100,79,.4), rgba(4,28,25,.1) 70%); border: 1px solid rgba(239,209,132,.12); }

.member-card { position: absolute; right: 0; top: 88px; width: 230px; padding: 18px; border: 1px solid rgba(var(--accent-rgb),.25); border-top: 2px solid var(--gold); background: linear-gradient(145deg, rgba(var(--surface-mid-rgb),.9), rgba(var(--surface-deep-rgb),.82)); box-shadow: 0 25px 55px rgba(0,0,0,.22); backdrop-filter: blur(16px); z-index: 5; }
.member-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; color: #2d2516; background: linear-gradient(145deg, #f2dea4, #ab792c); font: 700 15px serif; }
.member-head div:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.member-head small, .member-balance small { font-size: 9px; color: #819b92; letter-spacing: .1em; }
.member-head b { margin-top: 3px; font-size: 13px; font-weight: 500; }
.demo-pill { font-size: 8px; padding: 3px 6px; color: var(--gold-light); border: 1px solid rgba(218,173,82,.3); }
.member-balance { margin-top: 18px; padding: 14px 0 12px; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); display: grid; grid-template-columns: 1fr auto; gap: 3px; }
.member-balance strong { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #b8c6c0; font-weight: 400; }
.member-balance span { font-size: 10px; color: #5f7b72; }
.member-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.member-links button { border: 0; padding: 7px 0; text-align: left; color: #9db1aa; font-size: 9px; background: transparent; cursor: pointer; }
.member-links button:last-child { text-align: right; }
.member-links b { color: var(--gold); }

.notice { min-height: 54px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 0 20px; margin: -17px 0 44px; border: 1px solid rgba(255,255,255,.06); background: rgba(var(--surface-deep-rgb),.72); }
.notice-mark { color: var(--gold-light); border-right: 1px solid var(--line); padding-right: 20px; font: 700 12px serif; letter-spacing: .2em; }
.notice p { margin: 0; color: #859f96; font-size: 11px; letter-spacing: .08em; }
.notice time { color: #55746a; font-size: 9px; }

.game-section, .adapter-section { padding: 22px 0 70px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.section-heading span, .club-copy > span { color: #9c7c42; font-size: 8px; letter-spacing: .32em; }
.section-heading h2, .club-copy h2 { margin: 7px 0 0; font: 500 29px/1.1 "STSong", "SimSun", serif; letter-spacing: .16em; }
.filters { display: flex; gap: 8px; }
.filters button { border: 0; color: #729087; background: transparent; padding: 8px 13px; font-size: 10px; cursor: pointer; border-radius: 999px; }
.filters button.active { color: var(--gold-light); background: rgba(var(--accent-rgb),.1); }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game-card { min-height: 215px; overflow: hidden; border: 1px solid rgba(255,255,255,.075); background: linear-gradient(145deg, rgba(var(--surface-mid-rgb),.83), rgba(var(--surface-deep-rgb),.92)); border-radius: 4px; position: relative; cursor: pointer; transition: transform .24s, border-color .24s, box-shadow .24s; }
.game-card:hover { transform: translateY(-4px); border-color: rgba(222,182,92,.35); box-shadow: 0 24px 45px rgba(0,0,0,.18); }
.card-copy { position: absolute; z-index: 3; inset: 22px auto auto 22px; }
.card-copy small { color: rgba(229,239,234,.5); font-size: 8px; letter-spacing: .17em; }
.card-copy h3 { margin: 8px 0 5px; font: 500 21px serif; letter-spacing: .1em; }
.card-copy p { margin: 0; color: #7f9c92; font-size: 10px; }
.card-facts { display:flex; gap:6px; flex-wrap:wrap; margin-top:12px; max-width:225px; }
.card-facts span { padding:4px 7px; border:1px solid rgba(var(--accent-rgb),.14); background:rgba(var(--surface-deep-rgb),.28); color:#9cb0a8; font-size:7px; letter-spacing:.04em; }
.card-meta { position: absolute; z-index: 3; bottom: 19px; left: 22px; display: flex; align-items: center; gap: 7px; color: #719087; font-size: 9px; }
.card-meta i { width: 5px; height: 5px; border-radius: 50%; background: #75ae8e; box-shadow: 0 0 8px #75ae8e; }
.card-enter { position: absolute; right: 19px; bottom: 17px; z-index: 3; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(223,188,106,.3); color: var(--gold); transition: .2s; }
.game-card:hover .card-enter { background: var(--gold); color: #17342c; }
.card-art { position: absolute; width: 190px; height: 190px; right: -17px; bottom: -24px; border-radius: 50%; display: grid; place-items: center; font: 700 74px "STKaiti", serif; color: rgba(255,247,214,.92); transform: rotate(-8deg); }
.card-art::before, .card-art::after { content: ""; position: absolute; border-radius: 50%; inset: 12px; border: 1px solid rgba(255,255,255,.13); }
.card-art::after { inset: 26px; border-style: dashed; }
.tone-jade .card-art { background: radial-gradient(circle at 35% 32%, #62b49b, #1a6756 50%, #0b3831 72%); box-shadow: -25px 20px 80px rgba(60,162,128,.2); }
.tone-crimson .card-art { background: radial-gradient(circle at 35% 32%, #c76c5f, #843d35 50%, #3a231f 72%); box-shadow: -25px 20px 80px rgba(190,82,66,.15); }
.tone-violet .card-art { background: radial-gradient(circle at 35% 32%, #8576bc, #51427e 50%, #28243e 72%); }
.tone-gold .card-art { background: radial-gradient(circle at 35% 32%, #d5b75b, #8a6d25 50%, #45391d 72%); }
.tone-blue .card-art { background: radial-gradient(circle at 35% 32%, #5194a8, #2e6270 50%, #17333a 72%); }
.tone-teal .card-art { background: radial-gradient(circle at 35% 32%, #54a497, #28665c 50%, #153b34 72%); }

.club-section { min-height: 300px; border: 1px solid rgba(var(--accent-rgb),.22); background: radial-gradient(circle at 75% 45%, rgba(var(--accent-rgb),.13), transparent 23%), linear-gradient(110deg, rgba(var(--surface-mid-rgb),.92), rgba(var(--surface-deep-rgb),.94)); position: relative; overflow: hidden; display: flex; align-items: center; padding: 45px 6%; margin-bottom: 70px; }
.club-section::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(229,190,104,.08); pointer-events: none; }
.club-copy { position: relative; z-index: 2; max-width: 480px; }
.club-copy p { color: #829b92; font: 12px/1.8 serif; letter-spacing: .08em; }
.club-copy button { margin-top: 16px; padding: 11px 17px; border: 1px solid rgba(222,183,95,.35); background: transparent; color: #d9c285; font-size: 10px; cursor: pointer; }
.club-copy button b { margin-left: 24px; }
.club-lines { position: absolute; width: 600px; height: 600px; right: -80px; top: -150px; border: 1px solid rgba(225,190,109,.12); border-radius: 50%; }
.club-lines i { position: absolute; inset: calc(var(--n, 1) * 38px); border: 1px solid rgba(225,190,109,.09); border-radius: 50%; }
.club-lines i:nth-child(2) { --n: 2; }.club-lines i:nth-child(3) { --n: 3; }.club-lines i:nth-child(4) { --n: 4; }
.club-seal { position: absolute; right: 14%; top: 50%; transform: translateY(-50%) rotate(4deg); width: 150px; height: 190px; border: 1px solid rgba(237,207,139,.38); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #e7cb8b; box-shadow: inset 0 0 0 7px rgba(225,190,109,.04); }
.club-seal::before, .club-seal::after { content: ""; position: absolute; width: 40px; height: 1px; background: rgba(237,207,139,.3); top: 30px; }
.club-seal::after { top: auto; bottom: 30px; }
.club-seal small { font: 12px serif; letter-spacing: .5em; margin-right: -.5em; }
.club-seal b { font: 700 76px/1.05 "STKaiti", serif; }
.club-seal span { font-size: 7px; letter-spacing: .35em; }

.section-heading.compact > small { color: #58756c; font-size: 9px; letter-spacing: .12em; }
.adapter-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.07); }
.adapter { min-height: 90px; padding: 20px; display: flex; align-items: center; gap: 13px; border-right: 1px solid rgba(255,255,255,.07); background: rgba(var(--surface-deep-rgb),.44); }
.adapter:last-child { border-right: 0; }
.adapter-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(220,181,92,.2); color: #c8a75c; font: 700 13px serif; transform: rotate(45deg); }
.adapter-icon span { transform: rotate(-45deg); }
.adapter-copy { display: flex; flex: 1; flex-direction: column; }
.adapter-copy b { font-size: 11px; font-weight: 500; letter-spacing: .06em; }
.adapter-copy small { margin-top: 6px; color: #637e75; font-size: 8px; }
.adapter-state { width: 7px; height: 7px; border-radius: 50%; background: #61756e; }
.adapter.connected .adapter-state { background: #63b787; box-shadow: 0 0 9px #63b787; }

footer { min-height: 90px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--line); color: #536d64; font-size: 8px; letter-spacing: .1em; }
.footer-brand img { width: 28px; height: 28px; opacity: .7; }
.footer-brand b { color: #9d916d; font: 500 12px serif; letter-spacing: .16em; }
footer > span { justify-self: end; }
.system-entry { color: #6f806e; transition: color .2s; }
.system-entry:hover { color: var(--gold); }
.mobile-nav { display: none; }

.modal-layer[hidden] { display: none; }
.modal-layer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(1,13,12,.72); backdrop-filter: blur(8px); }
.modal { width: min(430px, 100%); min-height: 290px; position: relative; padding: 36px; border: 1px solid rgba(var(--accent-rgb),.34); background: linear-gradient(150deg, rgba(var(--surface-mid-rgb),.99), rgba(var(--surface-deep-rgb),.99) 80%); box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.modal::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(222,185,97,.08); pointer-events: none; }
.modal-close { position: absolute; right: 17px; top: 13px; border: 0; background: transparent; color: #729087; font-size: 24px; cursor: pointer; z-index: 2; }
.modal-kicker { color: #97783e; font-size: 8px; letter-spacing: .3em; }
.modal h2 { margin: 7px 0 24px; font: 500 26px serif; letter-spacing: .12em; }
.room-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.room-inputs input { width: 100%; height: 46px; min-width: 0; text-align: center; border: 1px solid rgba(var(--accent-rgb),.2); background: rgba(var(--surface-deep-rgb),.55); color: var(--gold-light); font-size: 18px; outline: 0; }
.room-inputs input:focus { border-color: var(--gold); }
.modal-action { width: 100%; margin-top: 22px; padding: 13px; border: 1px solid var(--gold); background: linear-gradient(120deg, #dfbd70, #aa792a); color: var(--button-ink); cursor: pointer; }
.modal-note { color: #6f8b82; font-size: 9px; line-height: 1.7; margin: 14px 0 0; }
.install-steps { display: grid; gap: 10px; counter-reset: install-step; }
.install-step { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 11px; padding: 12px 14px; background: rgba(var(--surface-deep-rgb),.5); border: 1px solid rgba(255,255,255,.06); font-size: 11px; line-height: 1.6; }
.install-step::before { counter-increment: install-step; content: counter(install-step); width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--button-ink); background: #dfc276; font-weight: 700; }
.room-game-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.room-game { min-height:68px; padding:12px; text-align:left; border:1px solid rgba(var(--accent-rgb),.2); background:rgba(var(--surface-deep-rgb),.48); color:var(--gold-light); cursor:pointer; }
.room-game:hover { border-color:var(--gold); transform:translateY(-1px); }
.room-game b,.room-game small,.room-game em { display:block; }.room-game b{font:500 14px serif}.room-game small{margin-top:6px;color:#8b9e97;font-size:8px}.room-game em{margin-top:5px;color:#5f7970;font-size:7px;font-style:normal;line-height:1.5}
.seat-picker{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 13px;padding:10px 12px;border:1px solid rgba(var(--accent-rgb),.18);background:rgba(var(--surface-deep-rgb),.42);color:#9aafa7;font-size:9px}.seat-picker select{min-width:112px;padding:9px 30px 9px 12px;border:1px solid rgba(var(--accent-rgb),.28);background:var(--green-900);color:var(--gold-light);font-family:inherit;font-size:10px;font-weight:500;cursor:pointer}
.poker-grid { grid-template-columns:1fr; }
.poker-choice { min-height:92px; }
.game-detail>p { margin:0 0 15px;color:#a9b9b3;font-size:10px;line-height:1.7; }
.game-detail .rule-row { align-items:flex-start; }
.game-detail .rule-row span:last-child { max-width:260px;text-align:right;line-height:1.55; }
.game-detail-actions { display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:15px; }
.game-detail-actions .modal-action { margin-top:0; }
.modal-secondary { width:100%;padding:13px;border:1px solid rgba(var(--accent-rgb),.3);background:rgba(var(--surface-rgb),.68);color:var(--gold-light);cursor:pointer; }
.status-list { display: grid; gap: 9px; }
.status-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: rgba(var(--surface-deep-rgb),.5); border: 1px solid rgba(255,255,255,.06); font-size: 10px; }
.status-row span:last-child { color: #8da59d; }
.status-row .off { color: #bd9b55; }
.club-form, .club-table-form { display: grid; gap: 10px; }
.club-form label, .club-table-form label { display: grid; gap: 7px; color: #8da59d; font-size: 9px; letter-spacing: .05em; }
.club-form input, .club-form textarea, .club-table-form select { width: 100%; border: 1px solid rgba(var(--accent-rgb),.22); background: rgba(var(--surface-deep-rgb),.56); color: var(--gold-light); padding: 11px 12px; outline: 0; font: 11px/1.5 inherit; resize: vertical; }
.club-form input:focus, .club-form textarea:focus, .club-table-form select:focus { border-color: var(--gold); }
.club-form .modal-action, .club-table-form .modal-action { margin-top: 5px; }
.club-loading, .club-state-copy { padding: 16px; border: 1px solid rgba(var(--accent-rgb),.16); background: rgba(var(--surface-deep-rgb),.45); color: #9cb0a9; font-size: 10px; line-height: 1.8; }
.club-status { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; padding: 13px 14px; border-left: 3px solid #a88242; background: rgba(var(--surface-deep-rgb),.48); }
.club-status > div { display: grid; gap: 4px; }
.club-status small { color: #6f8b82; font-size: 7px; letter-spacing: .2em; }
.club-status b { color: var(--gold-light); font: 500 15px serif; letter-spacing: .12em; }
.club-status > span { color: #66857a; font-size: 7px; word-break: break-all; text-align: right; }
.club-status.approved { border-left-color: #4aa682; }
.club-status.rejected { border-left-color: #9d5e53; }
.club-status-list { margin-bottom: 11px; }
.club-status-list .rule-row { align-items: flex-start; }
.club-status-list .rule-row span:last-child { max-width: 65%; text-align: right; line-height: 1.55; }
.club-table-form { margin-top: 13px; }
.club-table-form label { grid-template-columns: 88px 1fr; align-items: center; }
.club-table-form select { padding: 9px 10px; }
.club-table-form label.fixed span::after { content: "·固定"; margin-left: 4px; color: var(--gold); }
.club-table-form select:disabled { opacity: .75; }
.club-panel .modal-secondary, .club-state-copy + .modal-secondary { margin-top: 11px; }
.experience-settings { display: grid; gap: 10px; }
.setting-row, .setting-slider, .setting-theme { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 58px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.065); background: rgba(var(--surface-deep-rgb),.46); }
.setting-row > span { display: flex; flex-direction: column; gap: 5px; }
.setting-row b, .setting-slider b, .setting-theme > b { font-size: 10px; font-weight: 500; letter-spacing: .06em; }
.setting-row small { color: var(--muted); font-size: 8px; }
.setting-switch { min-width: 65px; padding: 8px 10px; border: 1px solid rgba(var(--accent-rgb),.26); border-radius: 999px; background: rgba(var(--surface-rgb),.65); color: var(--muted); cursor: pointer; font-size: 9px; }
.setting-switch[aria-pressed="true"] { color: var(--button-ink); border-color: var(--gold); background: var(--gold); }
.setting-slider { display: grid; align-items: stretch; gap: 9px; transition: box-shadow .2s; }
.setting-slider > span { display: flex; align-items: center; justify-content: space-between; }
.setting-slider output { color: var(--gold-light); font-size: 9px; }
.setting-slider input[type="range"] { width: 100%; height: 20px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.setting-slider.unavailable { opacity: .58; }
.setting-slider.unavailable input { cursor: not-allowed; }
.setting-theme { display: grid; align-items: stretch; }
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.theme-options button { min-height: 39px; border: 1px solid rgba(255,255,255,.07); background: rgba(var(--surface-deep-rgb),.4); color: var(--muted); cursor: pointer; font-size: 9px; }
.theme-options button i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #2d7b67; }
.theme-options button[data-theme-option="warm"] i { background: #a87638; }
.theme-options button[data-theme-option="ink"] i { background: #446c82; }
.theme-options button.active { color: var(--gold-light); border-color: var(--gold); background: rgba(var(--accent-rgb),.1); }
.toast { position: fixed; z-index: 110; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #e1c477; color: #17342b; padding: 11px 18px; font-size: 10px; opacity: 0; pointer-events: none; transition: .22s ease; box-shadow: 0 15px 35px rgba(0,0,0,.35); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .shell { width: min(100% - 34px, 860px); }
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .hero { min-height: 650px; grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 160px; }
  .hero-art { inset: 70px -16% 0 20%; opacity: .84; }
  .member-card { top: auto; bottom: 38px; right: 0; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .adapter-grid { grid-template-columns: repeat(2, 1fr); }
  .adapter:nth-child(2) { border-right: 0; }
  .adapter:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.07); }
}

@media (max-width: 620px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .shell { width: calc(100% - 20px); }
  .topbar { height: 67px; }
  .brand img { width: 38px; height: 38px; }
  .brand b { font-size: 17px; }
  .member-button { width: 39px; height: 35px; justify-content: center; gap: 4px; padding: 0; }
  .experience-button { width: 35px; height: 35px; flex: 0 0 35px; }
  .install-button { width: 35px; height: 35px; justify-content: center; padding: 0; font-size: 12px; gap: 0; }
  .install-label { display: none; }
  .member-text { display: none; }
  .member-button::after { content: "会"; font-size: 10px; }
  .hero { min-height: min(585px, calc(100svh - 68px)); align-items: start; }
  .hero-copy { padding: 64px 0 0; }
  .hero h1 { font-size: clamp(42px, 13vw, 49px); margin-top: 18px; }
  .hero-copy > p { max-width: 270px; font-size: 12px; }
  .hero-actions { margin-top: 26px; gap: 9px; }
  .hero-actions button { padding: 12px 12px; min-width: 124px; font-size: 12px; }
  .trust-row { display: none; }
  .hero-art { inset: 155px -79% 0 4%; opacity: .7; mask-image: linear-gradient(90deg, transparent, black 7%, black 82%, transparent); }
  .moon { right: 36%; width: 180px; height: 180px; }
  .pagoda { right: 43%; transform: scale(.78); transform-origin: bottom; }
  .coin-one { right: 64%; bottom: 28px; }
  .member-card { width: 100%; min-height: 78px; padding: 13px 15px; bottom: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
  .member-head { gap: 7px; }
  .avatar { width: 30px; height: 30px; }
  .member-balance { margin-top: 0; padding: 7px 0 7px 14px; border-top: 0; border-bottom: 0; border-left: 1px solid rgba(255,255,255,.07); }
  .member-links { display: none; }
  .notice { margin: -4px 0 35px; padding: 0 13px; gap: 11px; }
  .notice-mark { padding-right: 11px; }
  .notice p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .section-heading { align-items: start; flex-direction: column; gap: 18px; }
  .filters { width: 100%; overflow-x: auto; scrollbar-width:none; }
  .filters::-webkit-scrollbar { display:none; }
  .filters button { flex: 0 0 auto; min-height:40px; }
  .game-grid { grid-template-columns: 1fr; gap: 11px; }
  .game-card { min-height: 165px; }
  .card-facts { margin-top:9px;max-width:205px; }
  .card-art { width: 160px; height: 160px; font-size: 62px; }
  .game-section, .adapter-section { padding-bottom: 48px; }
  .club-section { min-height: 255px; padding: 35px 27px; margin-bottom: 45px; }
  .club-copy { max-width: 230px; }
  .club-copy p { font-size: 10px; }
  .club-seal { width: 100px; height: 140px; right: -13px; opacity: .55; }
  .club-seal b { font-size: 54px; }
  .club-lines { right: -300px; }
  .adapter-grid { grid-template-columns: 1fr; }
  .adapter { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .adapter:last-child { border-bottom: 0; }
  footer { display: flex; justify-content: space-between; min-height: 75px; }
  footer p { display: none; }
  .mobile-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(var(--surface-deep-rgb),.96); border-top: 1px solid rgba(var(--accent-rgb),.2); backdrop-filter: blur(16px); }
  .mobile-nav a, .mobile-nav button { border: 0; background: transparent; color: #69867d; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; font-size: 8px; }
  .mobile-nav span { font-size: 17px; }
  .mobile-nav .active { color: #e0c47d; }
  .mobile-nav button:nth-child(3) { position: relative; color: var(--button-ink); }
  .mobile-nav button:nth-child(3)::before { content: ""; position: absolute; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(140deg, #f0d68e, #aa7627); top: -15px; z-index: -1; box-shadow: 0 8px 22px rgba(176,124,38,.28); }
  .mobile-nav button:nth-child(3) b { font-size: 20px; line-height: 15px; }
  .modal { max-height:calc(100svh - 28px);overflow-y:auto;padding:31px 25px; }
  .room-game-grid,.game-detail-actions { grid-template-columns:1fr; }
}

@media (max-width: 370px), (max-width: 620px) and (max-height: 700px) {
  .hero { min-height: 520px; }
  .hero-copy { padding-top: 42px; }
  .hero-actions { margin-top: 20px; }
  .hero-actions button { min-width: 116px; }
  .game-card { min-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  :where(button, a[href], [role="button"]).is-pressed { transform: none !important; filter: brightness(.92); }
}
