:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;color:#172e28;background:#f7f6f1;font-synthesis:none;font-size:16px;--emerald:#103c31;--emerald-2:#235b49;--navy:#203d49;--gold:#d9b66f;--cream:#f5f1e8;--ink:#192922;--muted:#65786f;--line:#e4e7e0;--paper:#fff;--canvas:#f7f6f1;--surface:#fff;--soft:#f1f3ed;--shadow:0 12px 36px rgba(20,48,39,.055)}
*{box-sizing:border-box}body{margin:0;min-width:300px}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #cc9e4b;outline-offset:3px}.layout{display:grid;grid-template-columns:252px 1fr;min-height:100vh}.side{background:#103c31;color:#e5ede7;padding:34px 17px 24px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:11px;align-items:center;padding:0 16px 37px}.brand-mark{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;background:#e4c780;color:#173f31;font-size:23px;font-family:Georgia,serif;font-weight:bold}.brand-name{color:white;font-size:24px;font-weight:760;letter-spacing:-1px}.brand-sub{color:#a0bcb0;font-size:11px;letter-spacing:.03em}.nav-group{color:#8fb2a2;font-size:10px;font-weight:700;letter-spacing:.18em;padding:13px 17px 9px}.nav-link{display:flex;align-items:center;gap:11px;padding:13px 16px;color:#d4e5db;border-radius:12px;margin:3px 0;font-size:14px;font-weight:560;transition:background .15s}.nav-link:hover{background:#245244}.nav-link.active{background:#2d604d;color:#fff}.nav-ico{font-size:17px;width:23px;text-align:center}.side-bottom{margin-top:auto;border-top:1px solid #3c6253;padding:20px 16px 0;display:flex;flex-direction:column;gap:8px;color:#aec5b9;font-size:12px}.side-bottom b{color:#d2dcd4;font-weight:550}.main{min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;padding:25px 42px;border-bottom:1px solid var(--line);background:#fdfdf9;height:85px}.crumb{color:#65776d;font-size:13px}.top-actions{display:flex;gap:11px;align-items:center}.icon-btn{border:1px solid #e2e6dd;border-radius:12px;background:white;min-width:42px;height:42px;display:grid;place-items:center;color:#305449}.identity{display:flex;gap:9px;align-items:center;font-size:12px;font-weight:600;color:#355446}.identity-dot{width:29px;height:29px;background:#e2ecdf;border-radius:100%;display:grid;place-items:center}.content{max-width:1340px;margin:auto;padding:42px clamp(22px,4vw,62px) 90px}.overline{color:#408368;text-transform:uppercase;letter-spacing:.18em;font-weight:750;font-size:11px}.heading{font-family:Georgia,"Noto Serif TC",serif;letter-spacing:-.035em;color:#1b3c2e;font-size:clamp(32px,3vw,44px);font-weight:700;margin:13px 0 13px;line-height:1.17}.intro{color:#738078;line-height:1.7;margin:0 0 28px;font-size:15px}.home-hero{border-radius:24px;background:linear-gradient(115deg,#113e32,#2b6249);color:white;padding:36px 36px 34px;display:flex;align-items:center;justify-content:space-between;min-height:200px;overflow:hidden;position:relative}.home-hero h1{color:#fff;font-size:34px;line-height:1.23;max-width:650px;margin:9px 0}.home-hero p{margin:0;color:#c1dbc9;font-size:14px}.hero-suit{position:absolute;right:6%;top:-45px;transform:rotate(12deg);font-family:Georgia,serif;font-size:245px;color:#ffffff11;line-height:1}.gold-button{display:inline-flex;align-items:center;justify-content:center;min-height:45px;border:0;background:#d9b66f;color:#18392d;border-radius:12px;font-size:13px;font-weight:800;padding:0 19px;margin-top:22px}.section-title{font-size:19px;font-weight:780;margin:39px 0 17px;letter-spacing:-.035em;color:#1e3c31;display:flex;align-items:center;justify-content:space-between}.section-title span{font-size:12px;color:#809188;font-weight:480}.game-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.game-tile{position:relative;min-height:220px;border-radius:21px;color:white;text-align:left;border:0;padding:27px 27px 20px;display:flex;flex-direction:column;overflow:hidden;transition:transform .18s}.game-tile:hover{transform:translateY(-3px)}.game-tile:focus-visible{outline-offset:4px}.game-tile.blackjack{background:linear-gradient(135deg,#103a2e,#2d6850)}.game-tile.poker{background:linear-gradient(135deg,#173647,#315967)}.tile-watermark{position:absolute;font-family:Georgia,serif;font-size:210px;right:-13px;top:-40px;color:#ffffff14}.tile-icon{font-family:Georgia,serif;font-size:33px;color:#e7c984;z-index:1}.tile-title{font-family:Georgia,serif;font-size:28px;font-weight:bold;z-index:1;margin-top:15px}.tile-desc{font-size:12px;color:#cdded3;z-index:1;margin:6px 0}.tile-foot{display:flex;justify-content:space-between;margin-top:auto;z-index:1;font-size:12px;color:#efd39c}.tile-status{color:#c7dfd4;border:1px solid #709b86;border-radius:99px;padding:4px 8px;font-size:10px}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.quick-tile{display:flex;gap:14px;align-items:center;text-align:left;background:white;border:1px solid #e7e9e2;padding:20px 19px;min-height:96px;border-radius:17px}.quick-icon{width:43px;height:43px;background:#ecf3e9;border-radius:12px;display:grid;place-items:center;color:#2a624a;font-size:22px;flex-shrink:0}.quick-title{font-size:14px;font-weight:750}.quick-desc{font-size:11px;color:#7a8b81;margin-top:5px;line-height:1.45}.muted-box{border:1px solid var(--line);background:var(--surface);padding:27px;border-radius:19px;color:var(--muted)}.panel{border:1px solid var(--line);background:var(--surface);border-radius:20px;padding:25px;box-shadow:var(--shadow)}.panel h3{margin:0 0 10px;font-size:17px;color:#24463a}.panel p{color:#6c7e73;font-size:14px;line-height:1.65}.muted-text{color:var(--muted);font-size:13px}.pill{display:inline-flex;align-items:center;gap:5px;background:#eef2e9;color:#466555;border:1px solid #e1e9de;border-radius:99px;padding:6px 11px;font-weight:750;font-size:11px}.pill.gold{background:#faf0d6;border-color:#efdfb4;color:#7b642a}.placeholder-banner{display:flex;gap:12px;align-items:center;border:1px solid #e9d8aa;background:#fff7e5;border-radius:14px;padding:14px 17px;margin:18px 0;color:#685328;font-size:13px;line-height:1.55}.placeholder-banner strong{display:block;color:#594821}.table-card{background:linear-gradient(145deg,#123b30,#174b3c);color:white;position:relative;border:9px solid #574130;border-radius:42% / 25%;min-height:355px;max-width:770px;margin:auto;padding:46px 30px;box-shadow:inset 0 0 0 2px #c19e60,0 16px 35px #122b2025}.table-inner{border:1px dashed #7b9b84;border-radius:38% / 30%;height:235px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:11px}.deck-row{display:flex;gap:9px;align-items:center;justify-content:center}.playing-card{width:65px;height:92px;border-radius:9px;background:#fffcf6;color:#1f2c27;box-shadow:0 6px 10px #0003;border:1px solid #ddd8cd;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;font-family:Georgia,serif}.playing-card.red{color:#c14545}.playing-card .rank{font-size:32px;font-weight:bold}.playing-card .suit{font-size:27px;margin-top:5px}.playing-card.back{background:repeating-linear-gradient(45deg,#254e87,#254e87 5px,#2d6697 5px,#2d6697 10px);border:5px solid #f7f1e3}.table-label{font-size:10px;letter-spacing:.17em;text-transform:uppercase;color:#bad2c2;font-weight:650}.felt-value{font-size:19px;color:#dfc282;font-family:Georgia,serif}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:21px;align-items:start}.coach-shell{background:#fff;border:1px solid #e2e7e0;border-radius:20px;padding:23px}.coach-head{display:flex;align-items:center;gap:9px;color:#2c624a;font-weight:750}.coach-blank{background:#f5f7f1;padding:19px;border-radius:13px;margin-top:17px;color:#7b8d7f;font-size:13px;line-height:1.65}.disabled-actions{display:flex;gap:10px;justify-content:center;margin:21px auto 0;flex-wrap:wrap}.action-btn{min-width:105px;padding:12px 15px;border:0;background:#2b614d;color:white;border-radius:12px;font-weight:700}.action-btn.gold{background:#e1c27e;color:#234138}.table-section{padding:20px 0 4px}.poker-felt{position:relative;background:linear-gradient(145deg,#153c38,#1a5849);height:330px;border:13px solid #563e2e;border-radius:50% / 40%;max-width:760px;margin:30px auto 22px;box-shadow:inset 0 0 0 2px #c39f62,0 18px 38px #16251c20}.poker-center{position:absolute;inset:31% 0 26%;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#c8ddd0;gap:10px}.poker-seats{position:absolute;inset:0;pointer-events:none}.seat{position:absolute;width:91px;padding:9px 6px;border-radius:12px;background:#15372f;border:1px solid #688275;color:#e8eee5;font-size:10px;text-align:center;box-shadow:0 5px 12px #0004}.seat span{display:block;color:#a4c0b0;font-size:10px;margin-top:3px}.seat.s1{top:-18px;left:18%}.seat.s2{top:-18px;right:18%}.seat.s3{right:-14px;top:39%}.seat.s4{bottom:-16px;right:18%}.seat.s5{bottom:-16px;left:18%}.seat.s6{left:-14px;top:39%;border-color:#ddc07a}.course-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.course-card{background:white;border:1px solid #e2e9e1;border-radius:18px;padding:24px}.course-card h3{font-size:19px;margin:8px 0}.course-card p{font-size:13px;color:var(--muted);min-height:44px;line-height:1.55}.lesson-item{padding:12px 0;border-top:1px solid #edf0eb;font-size:13px;display:flex;gap:8px;color:#63766b}.lesson-num{color:#3c7259;font-weight:750}.strategy-grid{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:3px;width:100%;max-width:680px;margin:auto}.strategy-cell{aspect-ratio:1.1;background:#eef2e9;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:clamp(9px,1vw,13px);color:#385c47;font-weight:650}.strategy-cell.pair{background:#f3e5ca;color:#725b30}.strategy-cell.suited{background:#e1ece4}.strategy-cell.off{background:#e5edf2;color:#34556a}.strategy-legend{font-size:12px;color:#6d8172;margin-top:17px;text-align:center;line-height:1.6}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:25px 0}.stat{background:white;border:1px solid #e2e7de;border-radius:17px;padding:19px}.stat .value{font-size:27px;font-weight:780;color:#1d4935}.stat .label{font-size:12px;color:#809085;margin-top:7px}.empty-state{text-align:center;padding:65px 20px;border:1px dashed #d5ddd1;border-radius:20px;background:white}.empty-icon{font-size:35px}.empty-title{font-size:19px;font-weight:800;margin:15px 0 9px;color:#335341}.empty-state p{font-size:14px;color:#7c8b80;max-width:400px;margin:0 auto;line-height:1.65}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 0;border-top:1px solid #ecf0e9}.setting-row:first-child{border-top:0}.setting-label{font-size:14px;font-weight:770;color:#2e4e3e}.setting-desc{font-size:12px;color:#7e8b82;margin-top:6px;line-height:1.5}.select{min-width:140px;padding:11px 12px;border:1px solid #d8e0d7;border-radius:12px;color:#214736;background:#fff}.checkbox-wrap{display:flex;align-items:center;gap:9px;font-size:13px}.checkbox-wrap input{width:19px;height:19px;accent-color:#235b49}.toast{position:fixed;bottom:23px;right:24px;background:#153d31;color:white;padding:12px 18px;border-radius:12px;opacity:0;transform:translateY(10px);pointer-events:none;transition:all .2s;z-index:20;font-size:13px;box-shadow:0 7px 30px #102a2133}.toast.show{opacity:1;transform:translateY(0)}.mobile-nav{display:none}.footnote{margin-top:45px;text-align:center;color:#95a398;font-size:11px}.inline-link{display:inline-flex;align-items:center;gap:5px;color:#347055;font-weight:700;border:0;background:none;padding:5px 0}.settings-status{margin-top:18px;font-size:12px;color:#657c70}.arrow{font-size:15px}.no-data{color:#83988a;font-size:12px}.small-note{font-size:12px;color:#708373;line-height:1.65}.card-faceup{font-family:Georgia,serif}.center{text-align:center}.hidden{display:none!important}
[data-theme="dark"]{--canvas:#122a24;--surface:#1c392f;--soft:#1d4033;--line:#345749;--muted:#a6b7ac;background:var(--canvas);color:#edf4ee}[data-theme="dark"] body{background:var(--canvas)}[data-theme="dark"] .main,[data-theme="dark"] .content{background:var(--canvas)}[data-theme="dark"] .topbar{background:#1a352c;border-color:var(--line)}[data-theme="dark"] .crumb,[data-theme="dark"] .intro{color:#b3c5b9}[data-theme="dark"] .heading,[data-theme="dark"] .section-title,[data-theme="dark"] .panel h3,[data-theme="dark"] .course-card h3,[data-theme="dark"] .setting-label,[data-theme="dark"] .empty-title{color:#edf5ed}[data-theme="dark"] .quick-tile,[data-theme="dark"] .panel,[data-theme="dark"] .course-card,[data-theme="dark"] .stat,[data-theme="dark"] .empty-state,[data-theme="dark"] .coach-shell{background:#1b3a2f;border-color:#3a5a48;color:#f0f4ef}[data-theme="dark"] .quick-title,[data-theme="dark"] .stat .value{color:#e9f0e9}[data-theme="dark"] .coach-blank,[data-theme="dark"] .quick-icon{background:#294a3a}[data-theme="dark"] .icon-btn,[data-theme="dark"] .select{background:#284a3c;color:#e6efea;border-color:#4b6b58}[data-theme="dark"] .setting-row,[data-theme="dark"] .lesson-item{border-color:#365646}
@media(max-width:1080px){.layout{grid-template-columns:218px 1fr}.topbar{padding:23px}.content{padding:30px 23px 80px}.game-layout{grid-template-columns:1fr}.coach-shell{max-width:none}.table-card{max-width:760px}.quick-tile{padding:16px 13px;gap:9px}}
@media(max-width:760px){.layout{display:block}.side{display:none}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:12;background:#fff;border-top:1px solid #dce5db;justify-content:space-around;gap:3px;padding:6px 7px calc(7px + env(safe-area-inset-bottom))}.mobile-link{min-width:57px;min-height:47px;border-radius:10px;color:#7b8d80;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10px;font-weight:700}.mobile-link span{font-size:18px}.mobile-link.active{color:#255743;background:#eef3e9}.topbar{height:67px;padding:12px 17px}.content{padding:28px 18px 115px}.topbar .identity{display:none}.home-hero{padding:26px 23px;min-height:192px}.home-hero h1{font-size:28px}.home-hero p{max-width:240px}.hero-suit{font-size:160px;top:-16px;right:-30px}.game-grid{gap:11px}.game-tile{padding:18px;min-height:180px}.tile-title{font-size:22px}.quick-grid{grid-template-columns:1fr;gap:10px}.quick-tile{min-height:72px}.section-title{margin-top:28px}.heading{font-size:31px}.table-card{border-radius:43% / 22%;padding:20px 10px;min-height:280px;border-width:7px}.table-inner{height:218px}.poker-felt{height:265px;border-width:8px}.seat{width:63px;padding:7px 3px;font-size:9px}.seat.s3{right:-12px}.seat.s6{left:-12px}.playing-card{width:52px;height:76px}.playing-card .rank{font-size:27px}.playing-card .suit{font-size:22px}.course-grid{grid-template-columns:1fr}.stat-grid{grid-template-columns:1fr 1fr}.strategy-cell{font-size:clamp(7px,2.2vw,10px);border-radius:2px}.strategy-grid{gap:2px}.setting-row{align-items:flex-start}.select{min-width:130px}.footnote{margin-top:28px}[data-theme="dark"] .mobile-nav{background:#1a352c;border-color:#3b5d4c}}
@media(max-width:390px){.content{padding-inline:13px}.game-tile{padding:15px;min-height:167px}.tile-title{font-size:19px}.tile-icon{font-size:24px}.game-grid{gap:9px}.home-hero h1{font-size:25px}.panel{padding:18px}.stat-grid{gap:8px}.stat{padding:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{transition:none!important;animation:none!important}

/* Blackjack Phase 2 — supplements the established CardLab design system. */
.bj-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.bj-subtitle{font-size:.46em;font-weight:600;color:#829589;font-family:system-ui}.bj-summary-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:19px 0 7px}.bj-summary-strip>div{padding:13px 15px;background:var(--surface,#fff);border:1px solid var(--line,#e1e9de);border-radius:13px;display:flex;flex-direction:column;gap:5px}.bj-summary-strip span{font-size:11px;color:var(--muted,#77887c)}.bj-summary-strip strong{font-size:18px;font-weight:800;color:var(--emerald,#103c31)}.bj-table{min-height:395px;max-width:790px;padding:34px 18px;border-radius:36% / 19%}.bj-table-inner{min-height:300px;height:auto;padding:16px 15px 23px;border-radius:29% / 19%;gap:7px}.bj-table-empty{min-height:69px;display:flex;align-items:center;justify-content:center;color:#b6d6c2;font-size:13px;text-align:center}.bj-player-section{width:100%;text-align:center;margin-top:14px}.bj-hands{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:8px auto}.bj-hand{min-width:132px;max-width:250px;flex:0 1 auto;border:1px solid #6f9d88aa;background:#153d3266;border-radius:13px;padding:10px 12px}.bj-hand.bj-active{border:2px solid #e4c47e;box-shadow:0 0 0 3px #e4c47e28}.bj-hand-heading{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#d1e6d5;margin-bottom:9px}.bj-hand .deck-row{gap:6px}.bj-hand .playing-card{width:53px;height:73px}.bj-hand .playing-card .rank{font-size:25px}.bj-hand .playing-card .suit{font-size:19px}.bj-total{color:#f2d18d;font-size:13px;font-weight:800;margin-top:9px}.bj-controls{margin:15px auto 0;max-width:790px;padding:17px;background:var(--surface,#fff);border:1px solid var(--line,#dee6db);border-radius:17px}.bj-bet-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;font-size:13px}.bj-bet-header span{color:var(--muted,#667c6d)}.bj-bet-header strong{font-weight:800}.bj-bet-choices{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:13px}.bj-bet-chip{padding:9px 15px;border-radius:30px;border:2px dashed #b2ac94;background:#faf7e9;color:#385444;cursor:pointer;font-weight:800;min-height:45px}.bj-bet-chip.chosen{border-style:solid;border-color:#234b3a;background:#e8c980}.bj-bet-chip:disabled{opacity:.35;cursor:not-allowed}.bj-main-actions{display:flex;gap:9px;flex-wrap:wrap}.bj-main-actions button{min-height:46px;padding:12px 19px;border-radius:11px;font-size:14px;font-weight:800;cursor:pointer;border:1px solid #c9d7cb}.bj-main-actions button:disabled{opacity:.38;cursor:not-allowed}.bj-cta{background:#d9b66f;color:#192e23;border-color:#c4a05b!important}.bj-secondary{background:#245b49;color:#fff;border-color:#245b49!important}.bj-alert{display:flex;flex-direction:column;gap:7px;padding:14px;margin-bottom:12px;border-radius:10px;background:#fff2d5;border:1px solid #f0dba1;color:#604d29;font-size:13px;line-height:1.6}.bj-mini{font-size:12px;line-height:1.6;color:var(--muted,#708373);margin:11px 0 0}.bj-results{max-width:790px;margin:16px auto;background:var(--surface,#fff);border:1px solid #d9e5d8;border-radius:16px;padding:19px}.bj-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.bj-results h3{margin:5px 0 0;font-size:19px}.bj-kicker{font-size:10px;color:var(--muted,#7e9083);letter-spacing:.1em}.bj-net{font-size:25px}.bj-net.positive{color:#238252}.bj-net.negative{color:#b95750}.bj-outcomes{margin-top:13px}.bj-outcomes>div{display:flex;justify-content:space-between;padding:11px 0;border-top:1px solid var(--line,#eee);gap:10px;font-size:13px}.bj-rules{font-size:12px;color:var(--muted,#708373);margin-top:18px;line-height:1.65}.bj-rules h3{font-size:14px;color:var(--emerald,#103c31);margin:0 0 8px}.bj-rules p{margin:0 0 9px}.bj-layout .coach-shell{position:sticky;top:16px}button[data-bj]:focus-visible{outline:3px solid #d8b365;outline-offset:3px}
[data-theme="dark"] .bj-summary-strip strong,[data-theme="dark"] .bj-rules h3{color:#e5f0e7}[data-theme="dark"] .bj-summary-strip>div,[data-theme="dark"] .bj-controls,[data-theme="dark"] .bj-results{background:#1b3a2f;border-color:#42634d}[data-theme="dark"] .bj-bet-chip{background:#284c3c;color:#eef6ef}[data-theme="dark"] .bj-bet-chip.chosen{background:#d9b66f;color:#173526}[data-theme="dark"] .bj-alert{background:#59482b;color:#fff0c7;border-color:#876d3c}
@media(max-width:760px){.bj-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bj-summary-strip>div{padding:10px}.bj-summary-strip strong{font-size:16px}.bj-title-row .pill{white-space:nowrap}.bj-table{min-height:340px;padding:16px 8px;border-radius:35% / 12%}.bj-table-inner{min-height:290px;padding:13px 7px 22px;border-radius:28% / 12%}.bj-hand{min-width:116px;padding:8px 6px}.bj-hand .playing-card{width:44px;height:63px}.bj-hand .playing-card .rank{font-size:23px}.bj-hand .playing-card .suit{font-size:18px}.bj-hands{gap:7px}.bj-hand-heading{font-size:9px}.bj-main-actions button{flex:1 1 42%;min-width:115px}.bj-layout .coach-shell{position:static}}