:root{color-scheme:dark;--bg:#100c15;--side:#130e18;--panel:#211822;--soft:#2b212e;--stroke:#42323c;--gold:#ecc58a;--gold2:#b58b5b;--muted:#b5a8b2;--text:#f8edf1;--red:#b52c50;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;min-width:310px;background:var(--bg);color:var(--text)}button,input,a{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}a{text-decoration:none;color:inherit}.ambient{position:fixed;pointer-events:none;filter:blur(100px);opacity:.12;border-radius:100%}.ambient-a{width:300px;height:300px;top:10%;left:18%;background:#ea4571}.ambient-b{width:400px;height:400px;bottom:-10%;right:-8%;background:#a669b9}.shell{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:100vh;position:relative}.sidebar{background:rgba(19,14,24,.97);border-right:1px solid #332733;display:flex;flex-direction:column;padding:28px 20px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:10px;align-items:center;margin-bottom:48px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border:1px solid #8f4b5d;color:#f5d6bc;border-radius:12px;font-size:27px;background:#3b1d2b}.eyebrow,.kicker,.mini-label,.sideline,.stat-caption,.bet-label,.small-label{font-size:10px;font-weight:800;letter-spacing:2px;color:var(--gold)}.brand .eyebrow{font-size:8px;letter-spacing:1px}.brand h1{font-family:Georgia,serif;font-size:16px;line-height:1.4;margin:0}.brand h1 span{color:var(--gold)}.sideline{color:#8e7e89;font-size:10px;padding:0 12px;margin-bottom:10px}.side-nav{display:grid;gap:9px}.nav-link{background:transparent;color:#b7abb5;text-align:left;border:1px solid transparent;padding:13px 14px;border-radius:9px;font-size:13px;font-weight:700}.nav-link span{display:inline-block;margin-right:11px;font-size:17px;vertical-align:middle}.nav-link:hover,.nav-link.active{color:#f8edf1;background:#382330;border-color:#674052}.side-spacer{flex:1}.profile{border:1px solid #473644;border-radius:12px;padding:13px;display:flex;gap:10px;align-items:center;background:#261b28}.avatar{width:39px;height:39px;border-radius:50%;background:linear-gradient(140deg,#a94268,#542440);display:grid;place-items:center;color:#fff;font-family:Georgia,serif;font-size:23px}.profile strong{font-size:12px;display:block;margin:4px 0}.profile span{display:block;color:#b2a3af;font-size:11px}.side-foot{font-size:9px;line-height:1.7;color:#867a86;text-align:center;margin-top:22px}.content{padding:0 44px;max-width:1650px;width:100%;margin:auto}.topbar{height:79px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #3b2d38;gap:12px}.breadcrumbs,.status{font-size:10px;letter-spacing:1.4px;color:#968998;font-weight:700}.breadcrumbs span{color:#6b5e6b;margin:0 9px}.breadcrumbs strong{color:var(--gold)}.status{display:flex;align-items:center;gap:8px;white-space:nowrap}.status-dot{background:#79ca9b;display:inline-block;width:7px;height:7px;border-radius:50%;box-shadow:0 0 8px #79ca9b}.cloud-badge{color:#ffe9c2;border:1px solid #624633;padding:6px 8px;border-radius:5px;margin-left:8px}.notice{background:#241d27;border:1px solid #4b3945;padding:11px 15px;font-size:11px;color:#d4bfcb;margin:24px 0;border-radius:8px}.page{display:none;animation:appear .25s ease}.page.active{display:block}@keyframes appear{from{opacity:.7;transform:translateY(3px)}to{opacity:1;transform:none}}.hero{min-height:305px;display:grid;grid-template-columns:1.5fr 1fr;overflow:hidden;border:1px solid #563542;border-radius:16px;background:radial-gradient(circle at 78% 45%,#792843 0%,#321726 31%,#221720 68%);position:relative}.hero-content{position:relative;z-index:2;padding:38px 44px}.hero h2{font-family:Georgia,serif;font-size:clamp(37px,5vw,59px);font-weight:400;line-height:1.04;margin:14px 0}.hero h2 em{color:#f1bda5;font-weight:400}.hero p{color:#c5b5bf;font-size:12px;line-height:1.8;max-width:470px}.hero-actions{display:flex;align-items:center;gap:19px;margin-top:21px}.hero-actions span{color:#b9a9b0;font-size:11px}.primary-button,.start-btn{background:linear-gradient(135deg,#e3bc82,#bf8752);color:#25151b;padding:13px 20px;border:0;border-radius:8px;font-weight:900;font-size:11px;letter-spacing:.8px}.primary-button span{color:#3d2519;margin-left:8px}.hero-art{position:relative;min-width:260px}.orb-ring{position:absolute;border:1px solid #bf8a77;border-radius:50%;left:6%;top:9%;width:290px;height:290px;opacity:.32}.r2{width:210px;height:210px;left:20%;top:23%}.art-card{position:absolute;width:119px;height:178px;border:2px solid #ecd9b6;border-radius:12px;display:grid;place-items:center;font-size:78px;box-shadow:1px 5px 20px #170d15a3}.art-card-1{top:38px;left:29%;transform:rotate(-20deg);background:linear-gradient(160deg,#fbe7d0,#cca680);color:#9f2b46}.art-card-2{top:69px;left:48%;transform:rotate(17deg);background:linear-gradient(160deg,#3b273a,#1e1524);color:#edc69c}.art-chip{position:absolute;top:180px;left:19%;width:84px;height:84px;border:8px dotted #ecc58a;border-radius:50%;background:#8a304c;color:#f4d2aa;display:grid;place-items:center;font-family:Georgia,serif;font-size:35px;box-shadow:0 10px 20px #170e1799}.dashboard-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:19px}.statcard{padding:21px;background:#211923;border:1px solid #3d303e;border-radius:12px}.stat-caption{color:#9b8d9a;font-size:10px}.stat-value{font-family:Georgia,serif;font-size:29px;margin-top:13px;color:#f7e7dc}.stat-status{font-family:inherit;font-size:22px;font-weight:900;color:var(--gold)}.stat-note{font-size:11px;color:#a596a3;margin-top:7px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:39px 0 20px}.section-heading h3{margin:8px 0 0;font-family:Georgia,serif;font-size:29px;font-weight:400}.subtle{font-size:11px;color:#ad9ca9}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.game-card{background:#211923;border:1px solid #493742;border-radius:12px;overflow:hidden;padding:0;text-align:left;color:inherit;transition:transform .2s,border-color .2s}.game-card:hover{transform:translateY(-4px);border-color:var(--gold)}.game-visual{height:155px;position:relative;overflow:hidden;display:grid;place-items:center}.theme-mary{background:radial-gradient(circle at 60% 40%,#b47658,#512d36 48%,#331e2c)}.theme-itsuki{background:radial-gradient(circle at 60% 40%,#487a69,#24403d 48%,#1a272c)}.theme-yuriko{background:radial-gradient(circle at 60% 40%,#6b5d9b,#3a2d5a 48%,#251c31)}.game-glyph{font-family:Georgia,serif;font-size:104px;color:#e2c6aa88;transform:rotate(-18deg)}.npc-circle{position:absolute;right:15px;bottom:13px;width:44px;height:44px;border-radius:50%;border:2px solid #d9ba8c;display:grid;place-items:center;background:#211822;color:#efd1a2;font-size:24px;font-family:Georgia,serif}.game-copy{padding:21px 19px}.game-id{font-size:9px;font-weight:800;letter-spacing:1.5px;color:#d4b286;display:flex;justify-content:space-between}.game-id span{font-size:9px;color:#8ec69e}.game-card h4{font-family:Georgia,serif;font-size:20px;font-weight:400;margin:13px 0}.game-card p{color:#aea0aa;font-size:11px;line-height:1.7;min-height:52px}.game-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #483744;padding-top:15px;margin-top:18px;gap:6px}.game-bottom span{font-size:9px;color:#a8a0a7;font-weight:800}.game-bottom b{font-size:10px;color:var(--gold);white-space:nowrap}.coming{margin:23px 0 33px;display:flex;align-items:center;gap:16px;background:#1b1720;border:1px dashed #4e4252;padding:19px;border-radius:12px}.coming>span{font-size:35px;color:#9f7286}.coming strong{font-size:13px}.coming p{font-size:11px;color:#9f919f;margin:7px 0 0;line-height:1.7}footer{color:#786c79;font-size:9px;letter-spacing:.8px;text-align:center;padding:34px 0}.back{background:none;border:none;color:var(--gold);font-size:11px;font-weight:800;letter-spacing:1px;padding:7px 0;margin-bottom:22px}.table-header{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:14px 0 24px}.table-header h2{font-family:Georgia,serif;font-size:clamp(28px,4vw,42px);font-weight:400;margin:8px 0}.table-header p{font-size:12px;line-height:1.6;color:#bdaebb;margin:0;max-width:540px}.opponent{display:flex;align-items:center;gap:11px;background:#261d29;padding:10px 17px;border:1px solid #493644;border-radius:10px;flex-shrink:0}.npc-large{border:2px solid var(--gold);background:#4b2d42;color:#f4d6a5;border-radius:50%;width:54px;height:54px;display:grid;place-items:center;font-family:Georgia,serif;font-size:30px}.opponent strong{display:block;font-size:13px;margin:4px 0}.opponent span{color:#a595a5;font-size:10px;display:block}.table-layout{display:grid;grid-template-columns:minmax(0,1fr) 325px;gap:17px;align-items:start}.play-panel{background:#201823;border:1px solid #4a3643;border-radius:13px;overflow:hidden;min-width:0}.panel-top{display:flex;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #463443;color:var(--gold);font-size:10px;letter-spacing:1px;font-weight:800}.panel-top span:last-child{color:#baadba}.game-area{min-height:445px;padding:25px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#482c3c,#251a28 68%);position:relative}.game-log{padding:16px 20px;border-top:1px solid #463443;line-height:1.55;min-height:56px;font-size:12px;color:#e3c8d3}.bet-panel{background:#211923;border:1px solid #4b3844;border-radius:13px;padding:22px}.bet-label{color:#b8aab7;display:flex;justify-content:space-between}.bet-label span{font-size:9px;color:#807481;letter-spacing:0;font-weight:500}.wallet{font-family:Georgia,serif;font-size:30px;color:var(--gold);margin:6px 0 16px}.rule-card{background:#322631;border-left:3px solid var(--gold2);padding:12px 13px;border-radius:4px;font-size:11px;color:#d4c0cd;line-height:1.7}.rule-card strong{color:#f0dbbd}.gap-top{margin-top:24px}.chip-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:15px 0 20px}.chip{width:62px;height:62px;max-width:100%;aspect-ratio:1;border-radius:100%;border:5px dashed #efd8bd;outline:2px solid #352331;outline-offset:-8px;font-size:11px;color:#fff;font-weight:900;box-shadow:0 5px 15px #0004}.chip:hover{filter:brightness(1.2);transform:translateY(-2px)}.c100{background:#267a5d}.c1000{background:#2d609b}.c10000{background:#aa3a4e}.c100000{background:#77539e}.small-label{display:block;color:#a99ba8;font-size:10px;letter-spacing:.3px;margin:13px 0 7px}.input-row{display:flex;gap:7px}.input-row input{width:100%;min-width:0;border:1px solid #60495a;color:white;background:#140e18;border-radius:6px;padding:10px 11px;font-size:12px}.input-row button,.wager-row button{color:var(--gold);background:#3a2a39;border:1px solid #654957;border-radius:7px;padding:8px 11px;font-size:10px;font-weight:900;white-space:nowrap}.wager-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #443441;padding:13px 0}.wager-row span{display:block;color:#a99caa;font-size:10px;margin-bottom:5px}.wager-row strong{font-size:17px;color:#ead9df}.wager-row.sum{border-bottom:none}.wager-row.sum strong{color:var(--gold);font-size:22px}.start-btn{display:block;width:100%;margin-top:6px;padding:15px 13px}.bet-info{margin-top:13px;color:#958995;font-size:10px;line-height:1.65}.center-content{text-align:center;max-width:550px}.overline{color:var(--gold);font-size:10px;font-weight:800;letter-spacing:2px}.center-content h3{font-family:Georgia,serif;font-size:29px;font-weight:400;margin:10px 0}.center-content p{color:#c5b0c0;font-size:12px;line-height:1.75}.big-mark{font-size:66px;color:var(--gold)}.hand-row{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:23px 0}.play-card{width:100px;height:145px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;border:2px solid #f1d8b7;border-radius:9px;background:linear-gradient(155deg,#fff2dd,#d1b494);color:#562637;font-family:Georgia,serif;box-shadow:0 10px 22px #100a1475}.play-card strong{font-size:45px}.play-card small{font-family:inherit;font-weight:800;text-transform:uppercase;font-size:10px}.play-card:hover:not(:disabled){transform:translateY(-9px);border-color:#fff}.play-card:disabled{opacity:.65}.play-card.backside{background:linear-gradient(45deg,#5d2b42,#2b1b30);color:#e6c397;font-size:46px}.round-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;text-align:center;margin:18px 0}.round-summary>div{background:#2f2330;padding:11px;border:1px solid #564153;border-radius:8px;min-width:84px}.round-summary span{display:block;color:#b4a5b2;font-size:10px}.round-summary strong{display:block;margin-top:7px;color:var(--gold);font-size:15px}.result-title{font-family:Georgia,serif;font-size:36px;margin:8px 0}.win{color:#9be4b1}.loss{color:#faa6a7}.draw{color:#f5d69b}.small-action{margin-top:18px;padding:11px 19px;background:#d6a875;border:none;border-radius:8px;color:#21141c;font-weight:800;font-size:11px}.card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:min(100%,470px);margin:19px auto}.memory-card{min-height:78px;aspect-ratio:3/3.7;display:grid;place-items:center;background:linear-gradient(145deg,#673348,#321d32);border:1px solid #a56f84;border-radius:7px;color:var(--gold);font-family:Georgia,serif;font-size:34px}.memory-card.flipped{background:#f5dfc6;color:#743048;border-color:#ffefd8}.memory-card.matched{background:#526c58;color:#e4f3dc;border-color:#8bb99b}.memory-card:disabled{cursor:default}.score-strip{display:flex;gap:20px;justify-content:center;font-size:12px;color:#e8d8e1;margin-top:12px}.score-strip strong{color:var(--gold)}.board-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;width:min(100%,450px);margin:20px auto}.number-tile{background:#302637;color:#f1d9e3;border:1px solid #6c5065;border-radius:6px;padding:11px 0;font-size:13px;font-weight:700}.number-tile.selected{border:2px solid #f4c78b;background:#784255;color:#fff}.number-tile:hover:not(:disabled){background:#664055}.arena-instructions{font-size:11px;color:#d2c0cf;line-height:1.7}.history-list{display:grid;gap:10px;margin:22px 0}.history-item{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#241b27;border:1px solid #443542;padding:17px 20px;border-radius:9px}.history-item strong{font-size:13px}.history-item p{font-size:10px;color:#a99ba9;margin:7px 0 0}.history-item b{font-size:17px;white-space:nowrap}.empty{font-size:12px;color:#b1a0ac;background:#241b27;border:1px dashed #51404f;border-radius:9px;padding:25px}.outline-btn{padding:9px 13px;border:1px solid #73556a;background:#2f2230;color:#e6caad;border-radius:7px;font-size:10px;font-weight:900;letter-spacing:.6px}.rules-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:20px 0}.rules-list>div{background:#251c29;padding:22px;border:1px solid #503d4b;border-radius:10px}.rules-list h4{font-family:Georgia,serif;font-size:20px;font-weight:400;color:var(--gold);margin:0 0 9px}.rules-list p{font-size:12px;line-height:1.8;color:#bbabba;margin:0}.toast{position:fixed;right:20px;bottom:20px;background:#e4c08e;color:#20121b;padding:14px 20px;border-radius:8px;box-shadow:0 12px 32px #0009;font-size:12px;font-weight:800;z-index:10;opacity:0;transform:translateY(20px);pointer-events:none;transition:all .2s}.toast.visible{opacity:1;transform:none}@media(max-width:1150px){.content{padding:0 25px}.game-grid{grid-template-columns:repeat(2,1fr)}.table-layout{grid-template-columns:1fr}.bet-panel{max-width:none}.chip-grid{grid-template-columns:repeat(4,75px)}.sidebar{width:210px;padding:20px 13px}.shell{grid-template-columns:210px 1fr}}@media(max-width:760px){.shell{grid-template-columns:1fr}.sidebar{position:static;width:100%;height:auto;padding:14px 16px;display:block}.brand{margin-bottom:12px}.sideline,.side-spacer,.side-foot,.profile{display:none}.side-nav{display:flex;gap:5px}.nav-link{font-size:10px;padding:9px 7px;flex:1;text-align:center}.nav-link span{display:none}.content{padding:0 16px}.topbar{height:59px}.status{font-size:0}.status-dot{display:none}.cloud-badge{font-size:9px}.breadcrumbs{font-size:9px}.hero{grid-template-columns:1fr;min-height:260px}.hero-content{padding:28px}.hero-art{display:none}.dashboard-row{grid-template-columns:1fr 1fr}.statcard:last-child{grid-column:1/-1}.stat-value{font-size:24px}.game-grid{grid-template-columns:1fr}.game-visual{height:125px}.game-card p{min-height:0}.section-heading{align-items:start;flex-direction:column}.table-header{align-items:start;flex-direction:column}.game-area{min-height:340px;padding:15px}.play-card{width:81px;height:118px}.play-card strong{font-size:37px}.rules-list{grid-template-columns:1fr}.chip-grid{grid-template-columns:repeat(4,1fr)}.round-summary{gap:6px}.round-summary>div{min-width:0}.round-summary strong{font-size:11px}}
