:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#f6f1e6;background:#061f23;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-width:320px;min-height:100%;}body{background:radial-gradient(circle at 50% -10%,#24545b 0,#0b3337 42%,#061f23 100%)}button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #f6ca70;outline-offset:3px}#app{min-height:100vh}.app-frame{max-width:1200px;margin:auto;min-height:100vh;position:relative;padding:18px 22px 24px}.btn{border:1px solid transparent;border-radius:13px;padding:12px 20px;font-weight:700;transition:transform .16s,background .16s,box-shadow .16s}.btn:hover{transform:translateY(-2px)}.btn:active{transform:translateY(0)}.primary{background:#f0bd61;color:#19312d;box-shadow:0 5px 0 #ad7935}.primary:hover{background:#ffd485}.secondary{background:#17474b;color:#fff8ea;border-color:#528487}.ghost{background:#17454a;color:#fff7e9;border-color:#567e7d}.icon{background:#17454a;color:#fff7e9;border-color:#567e7d;padding:11px 15px;font-size:20px;line-height:1}.text,.subtle{background:transparent;color:#e8dfce;border-color:#567e7d}.text{border:none}.hero{text-align:center;margin:clamp(28px,7vh,80px) auto 32px;max-width:670px}.hero-ornament{font-family:Georgia,serif;font-size:27px;letter-spacing:20px;color:#e7be78;margin-bottom:12px}.hero-ornament span{color:#f58b80}.eyebrow,.brand-mini{font-size:11px;letter-spacing:.25em;font-weight:800;color:#f2c278}.hero h1{font:700 clamp(58px,12vw,112px)/1 Georgia,serif;letter-spacing:-.06em;margin:12px 0;color:#fff5e5;text-shadow:0 8px 30px #021315}.hero>p{font-size:clamp(17px,2.5vw,23px);color:#d9e6df;margin:0}.hero-card{height:175px;display:flex;justify-content:center;align-items:center;margin:28px 0 26px;filter:drop-shadow(0 17px 22px #02171b90)}.hero-card .card{transform:rotate(-13deg);margin-right:-20px}.hero-card .card:nth-child(2){transform:translateY(-12px)}.hero-card .card:nth-child(3){transform:rotate(13deg)}.hero-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.hero-actions .btn{min-width:145px}.small-note{max-width:510px;margin:25px auto!important;font-size:14px!important;line-height:1.55;color:#b7d2cc!important}.home-nav{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;border-top:1px solid #ffffff27;max-width:640px;margin:0 auto;padding-top:16px}.game-shell{max-width:1080px;margin:auto}.game-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:15px}.game-head h1{font:700 36px/1 Georgia,serif;letter-spacing:-.04em;margin:2px 0;color:#fff3df}.mode-label{font-size:12px;color:#b9d7cf}.head-actions{display:flex;gap:8px}.score-panel{display:grid;grid-template-columns:1fr 1fr;gap:14px;background:#09292d;border:1px solid #3c6f70;padding:13px 18px;border-radius:18px;box-shadow:0 10px 26px #001a1d66;margin-bottom:14px}.score-row{display:grid;grid-template-columns:1fr auto;gap:8px 10px;align-items:center}.score-name{font-weight:800}.score-row strong{font-size:27px;color:#ffcf76;font-variant-numeric:tabular-nums}.score-row strong small{font-size:12px;font-weight:500;color:#b5c9c5}.dealer-chip{font-weight:600;font-size:11px;background:#345d5b;border:1px solid #638d86;padding:2px 6px;border-radius:99px;margin-left:5px;white-space:nowrap}.track{grid-column:1/-1;position:relative;height:7px;background:#31535a;border-radius:99px;margin:0 4px 4px 0}.track span{display:block;background:linear-gradient(90deg,#bc8040,#ffd78c);height:100%;border-radius:99px}.cpu .track span{background:linear-gradient(90deg,#ba6567,#ffa89a)}.track i{position:absolute;top:50%;width:14px;height:14px;border-radius:50%;background:#ffda8f;border:2px solid #fff5de;transform:translate(-50%,-50%);box-shadow:0 2px 5px #071e20}.cpu .track i{background:#ec8784}.table{border:1px solid #50837a;border-radius:25px;padding:17px 25px 20px;background:radial-gradient(ellipse at 50% 44%,#1a5a53 0,#124640 50%,#103b3b 100%);box-shadow:inset 0 0 0 6px #0e3736,0 20px 60px #001216a0;min-height:595px;display:flex;flex-direction:column;gap:11px}.table-label{font-size:11px;color:#cce6d7;text-transform:uppercase;font-weight:800;letter-spacing:.12em}.table-label span{color:#e9c486}.table-top{text-align:center;min-height:98px}.opponent-cards{display:flex;justify-content:center;align-items:center;margin-top:6px}.opponent-cards .card{margin-left:-31px}.opponent-cards .card:first-child{margin-left:0}.table-middle{display:flex;justify-content:center;gap:clamp(25px,8vw,95px);min-height:103px}.side-stack{display:flex;flex-direction:column;align-items:center;gap:5px;position:relative}.stack-count{position:absolute;right:-10px;bottom:2px;background:#f2c776;color:#21322d;font-size:11px;font-weight:800;border-radius:50%;width:20px;height:20px;display:grid;place-items:center}.play-area{min-height:134px;margin:1px auto 0;border:1px solid #ffffff31;background:#092f3082;border-radius:17px;padding:8px 12px;width:min(750px,100%)}.play-title{display:flex;justify-content:space-between;text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:#c7e1d3;font-size:11px}.play-title strong{color:#ffdc91}.played-cards{display:flex;justify-content:center;align-items:center;gap:3px;min-height:98px;overflow:hidden}.played{display:flex;flex-direction:column;align-items:center;gap:2px}.played small{font-size:9px;color:#b4cec4}.played.mine small{color:#ffe2a2}.empty-play{font:italic 26px Georgia,serif;color:#80aaa2}.status-line{text-align:center;background:#f4cc7c;color:#17332f;border-radius:9px;padding:8px;font-weight:800;min-height:37px}.player-area{text-align:center;min-height:126px}.player-cards{display:flex;justify-content:center;align-items:center;margin-top:8px}.player-cards .card{margin-left:8px}.player-cards .card:first-child{margin-left:0}.game-actions{display:flex;justify-content:center;min-height:44px;align-items:center}.count-reveal{text-align:center;background:#0a3537;border:1px solid #729b87;border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:3px}.count-reveal strong{color:#ffdb8b}.count-reveal span{font-size:12px;color:#d0e4d9}.game-footer{display:flex;justify-content:space-between;color:#89aaa4;font-size:11px;padding:10px 4px;gap:10px}.card{--w:68px;--h:91px;width:var(--w);height:var(--h);flex:none;position:relative;background:#fffcf5;border:1px solid #d4c9b8;border-radius:7px;box-shadow:0 3px 7px #001d1d66;color:#152f31;display:block;padding:0}.card.red{color:#bb4649}.card .corner{position:absolute;top:5px;left:7px;font:700 18px/1 Georgia,serif;text-align:center}.card .corner small{display:block;font-size:13px}.card .corner.foot{top:auto;left:auto;right:7px;bottom:5px;transform:rotate(180deg)}.card .suit{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font:34px Georgia,serif}.card.back{background:repeating-linear-gradient(45deg,#1b5257,#1b5257 5px,#27646b 5px,#27646b 10px);border:4px solid #faf0d9;box-shadow:inset 0 0 0 2px #10363a,0 3px 7px #001d1d66;color:#f5dfaa}.back-mark{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:1px solid #e9d59e;border-radius:50%;width:39px;height:39px;display:grid;place-items:center;font-size:22px}.player-cards button.card{transition:transform .14s,box-shadow .14s}.player-cards button.card:hover{transform:translateY(-9px);box-shadow:0 12px 18px #001d1d99}.player-cards button.card.selected{transform:translateY(-17px);outline:3px solid #ffd782}.player-cards button.card.disabled{opacity:.54;cursor:not-allowed}.opponent-cards .card,.played-cards .card{--w:54px;--h:73px}.opponent-cards .card .corner,.played-cards .card .corner{font-size:14px}.opponent-cards .card .corner small,.played-cards .card .corner small{font-size:10px}.played-cards .card .suit{font-size:26px}.table-middle .card{--w:58px;--h:78px}.table-middle .corner{font-size:15px}.table-middle .corner small{font-size:11px}.table-middle .suit{font-size:27px}.overlay{position:fixed;inset:0;background:#00171cc7;backdrop-filter:blur(5px);display:grid;place-items:center;padding:18px;z-index:20}.panel{position:relative;background:#103c3e;border:1px solid #71a093;box-shadow:0 24px 75px #000a;width:min(550px,100%);max-height:90vh;overflow:auto;border-radius:20px;padding:28px 32px;color:#f7eee0}.panel h2{font:700 34px Georgia,serif;margin:0 35px 18px 0}.panel p{line-height:1.6;color:#e1eee5}.panel .muted{font-size:13px;color:#aecdc3}.panel-close{position:absolute;top:15px;right:17px;color:#f7e8ce;border:0;background:#275355;border-radius:9px;font-size:29px;width:42px;height:42px;line-height:1}.panel-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.setting{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid #ffffff28;gap:15px}.setting select{color:#fff4dc;background:#235559;border:1px solid #87a9a1;border-radius:8px;padding:8px;min-width:140px}.setting input{width:22px;height:22px;accent-color:#edc06c}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.stat-grid div{background:#1c5050;border:1px solid #5a8580;border-radius:12px;padding:13px;display:flex;flex-direction:column;gap:4px}.stat-grid span{font-size:12px;color:#bfdbd1}.stat-grid strong{font-size:27px;color:#ffe0a1}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#f4d28b;color:#17312d;padding:12px 20px;border-radius:11px;z-index:30;box-shadow:0 12px 30px #001a1eaa;max-width:90vw;text-align:center}
.reveal-cards{display:flex;justify-content:center;gap:5px;padding-top:4px}.reveal-cards .card{--w:39px;--h:54px}.reveal-cards .card .corner{font-size:11px}.reveal-cards .card .corner small{font-size:8px}.reveal-cards .card .suit{font-size:18px}
.result-overlay{position:fixed;inset:0;z-index:19;display:grid;place-items:center;background:#00191ccc;backdrop-filter:blur(5px);padding:18px}.result-card{width:min(460px,100%);text-align:center;background:radial-gradient(circle at 50% 0,#205957,#103b3e 65%);border:1px solid #e3b96d;border-radius:24px;padding:28px;box-shadow:0 25px 70px #000a}.result-suits{font:30px Georgia,serif;letter-spacing:10px;color:#efce8b}.result-suits span{color:#ef8a84}.result-card h2{font:700 clamp(40px,8vw,60px)/1 Georgia,serif;color:#fff2d9;margin:11px 0 23px}.result-card .eyebrow{color:#e9bd73;margin:14px 0 0}.result-scores{display:grid;grid-template-columns:1fr 1fr;gap:14px}.result-scores div{display:flex;flex-direction:column;gap:4px;background:#0a3033;border:1px solid #56847d;border-radius:13px;padding:14px}.result-scores span{color:#c3ddd2;font-size:13px}.result-scores strong{font-size:36px;color:#ffdc90}.result-card>p:last-of-type{color:#bad7cd;font-size:14px}.result-card .panel-buttons{justify-content:center}
@media(max-width:600px){.app-frame{padding:10px 9px}.game-head h1{font-size:28px}.game-head .btn.ghost{padding:10px 12px}.score-panel{gap:10px;padding:11px}.score-row strong{font-size:22px}.dealer-chip{display:inline-block;font-size:9px}.table{padding:13px 9px 16px;min-height:calc(100vh - 160px);gap:8px;border-radius:17px}.table-top{min-height:78px}.table-middle{min-height:82px}.play-area{min-height:115px}.played-cards{min-height:82px}.player-area{min-height:109px}.card{--w:50px;--h:69px}.card .corner{font-size:14px;top:4px;left:5px}.card .corner small{font-size:10px}.card .corner.foot{bottom:4px;right:5px}.card .suit{font-size:25px}.player-cards .card{margin-left:5px}.opponent-cards .card,.played-cards .card{--w:39px;--h:54px}.opponent-cards .card{margin-left:-17px}.opponent-cards .card .corner,.played-cards .card .corner{font-size:11px}.opponent-cards .card .corner small,.played-cards .card .corner small{font-size:8px}.played-cards .card .suit{font-size:18px}.played{gap:0}.played small{font-size:7px}.table-middle .card{--w:45px;--h:62px}.table-middle .corner{font-size:12px}.table-middle .corner small{font-size:9px}.table-middle .suit{font-size:20px}.side-stack .back-mark{width:27px;height:27px;font-size:16px}.status-line{font-size:12px}.game-footer span:last-child{display:none}.panel{padding:24px}.hero-card{height:150px}.hero-card .card{--w:80px;--h:108px}.hero-card .card .corner{font-size:20px}.hero-card .card .corner small{font-size:15px}.hero-card .card .suit{font-size:40px}}@media(max-width:375px){.table{gap:6px}.player-cards .card{margin-left:3px}.card{--w:46px;--h:65px}.played-cards .card{--w:36px;--h:51px}.head-actions .btn{padding:9px 10px}.game-head h1{font-size:26px}.score-panel{padding:9px}.score-row strong{font-size:20px}}
