@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--gold:#e8bc68;--muted:#9ab5ae;--felt:#143d36}*{box-sizing:border-box}body{margin:0;min-height:100vh;color:#f4efe4;background:radial-gradient(ellipse at 25% 35%,#174139 0,#0f2c29 48%,#0b2222 100%);font-family:'DM Sans','Noto Sans JP',sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #ffdc8b;outline-offset:5px}.app{max-width:1280px;margin:auto;padding:0 52px}header{height:105px;border-bottom:1px solid #ffffff18;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{color:#fff5db;text-decoration:none;display:flex;align-items:center;gap:12px;font-size:21px;letter-spacing:2px}.brand b{font-weight:400;color:var(--gold)}.brand-mark{font-size:12px;line-height:12px;letter-spacing:3px;color:var(--gold)}.header-note{font-size:12px;letter-spacing:2px;color:var(--muted)}.quiet{background:transparent;border:1px solid #ffffff32;color:#d9e2d9;border-radius:6px;padding:11px 16px;font-size:14px}.quiet span{margin-left:14px}main{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:56px;padding:40px 0 30px;align-items:center}.table-label{font-size:12px;letter-spacing:2px;display:flex;justify-content:space-between;color:var(--gold)}.table-label span:last-child{color:var(--muted)}.game-heading{margin:17px 0 24px;display:flex;align-items:flex-end;justify-content:space-between;gap:10px}h1{font-size:clamp(22px,2.2vw,30px);font-weight:500;letter-spacing:.03em;margin:0}#status{font-size:14px;color:var(--gold);margin:0 0 3px;white-space:nowrap}.players{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ffffff1c;border-bottom:1px solid #ffffff1c;padding:16px 0;font-size:14px}.players>span{display:flex;align-items:center;gap:9px}.players small{font-size:12px;color:#a0b6ad;margin-left:3px}.chip{display:inline-block;width:15px;height:15px;border-radius:50%}.human{background:var(--gold)}.cpu{background:#e9e8db}.versus{font-size:11px!important;letter-spacing:2px;color:#759a8e}.board-wrap{position:relative;margin-top:14px}.column-controls{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;padding:0 18px;margin-bottom:5px}.column-controls button{color:#8aaca0;background:none;border:0;height:33px;border-radius:6px;font-size:14px;transition:background .18s,color .18s}.column-controls button:hover:not(:disabled),.column-controls button:focus-visible{color:#172f29;background:var(--gold)}.column-controls button:disabled{opacity:.3;cursor:default}.board{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;padding:20px;border:1px solid #508274;border-radius:15px;background:linear-gradient(130deg,#2d6455,#1c4b42);box-shadow:0 18px 35px #00161166,inset 0 1px #8ead955c,inset 0 -5px #112f2b}.cell{aspect-ratio:1;border-radius:50%;background:#0a2926;box-shadow:inset 0 5px 9px #00191499,0 1px 0 #65917c66;position:relative;cursor:pointer}.disc{position:absolute;inset:3px;border-radius:50%;box-shadow:inset 0 2px 3px #ffffff5e,0 4px 5px #00150c88;display:flex;align-items:center;justify-content:center}.disc:after{content:'';position:absolute;inset:15%;border:1px solid #00000021;border-radius:50%}.disc.human{background:linear-gradient(140deg,#ffe4a2,#d9a647)}.disc.cpu{background:linear-gradient(140deg,#fffef0,#b9c4ba)}.disc.new{animation:drop .42s cubic-bezier(.3,.7,.3,1)}.disc.winning{outline:3px solid white;outline-offset:3px;animation:win 1s ease-in-out infinite alternate}.board-bottom{display:flex;justify-content:space-between;margin-top:20px;color:var(--muted);font-size:13px}.key-hint{font-size:11px;letter-spacing:1.5px}.opponent{position:relative;align-self:stretch;display:flex;align-items:center;flex-direction:column;justify-content:center;min-width:0}.opponent-label{display:flex;gap:12px;align-items:center;font-size:11px;letter-spacing:2px;color:#8aaa9a;width:85%;justify-content:center}.line{height:1px;background:#ffffff24;flex:1}.speech{width:100%;max-width:390px;min-height:114px;padding:20px 24px 16px;margin-top:24px;background:#f0eddf;color:#243d34;border-radius:10px;position:relative;box-shadow:0 10px 30px #0002;z-index:10}.speech:after{content:'';position:absolute;bottom:-11px;left:50%;border:12px solid transparent;border-top-color:#f0eddf;border-bottom:0}#dialogue{margin:0;min-height:46px;font-size:17px;font-weight:500;line-height:1.7}.speech-sign{font-size:10px;letter-spacing:2px;color:#6f8174;display:block;margin-top:6px;text-align:right}.character-viewport{width:100%;height:352px;overflow:hidden;position:relative;margin-top:10px}.character-viewport:after{content:'';position:absolute;bottom:0;left:10%;width:80%;height:1px;background:linear-gradient(90deg,transparent,#a7b7a467,transparent)}.character-scale{position:absolute;left:50%;top:-35px;width:470px;height:590px;transform:translateX(-50%) scale(.66);transform-origin:50% 0}.dealer{filter:drop-shadow(0 15px 20px #0005)}.dealer-title{text-align:center;margin-top:20px}.dealer-title>span{font-size:10px;letter-spacing:3px;color:#adba98}.dealer-title h2{font-size:22px;letter-spacing:.2em;font-weight:500;margin:7px 0}.dealer-title p{font-size:13px;margin:0;color:#9cb4a7}footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #ffffff18;padding:22px 0;color:#809e92;font-size:12px}footer>span:last-child{letter-spacing:2px;font-size:10px}.footer-mark{color:var(--gold)}.result{text-align:center;margin-top:18px;padding:15px;background:#102f2b;border:1px solid #cfac6266;border-radius:8px}.result p{margin:0 0 12px;font-size:18px;color:#ffe1a1}.result button{background:var(--gold);color:#193b31;border:0;padding:11px 25px;border-radius:5px;font-weight:600}.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}@keyframes drop{from{transform:translateY(calc(var(--drop)*-1px));opacity:.35}to{transform:translateY(0);opacity:1}}@keyframes win{to{filter:brightness(1.2)}}@media(min-width:1200px){main{gap:80px}}@media(max-width:950px){.app{padding:0 28px}main{gap:28px}.header-note{display:none}.game-heading{display:block}#status{margin:10px 0 0}.board{padding:14px;gap:7px}.column-controls{padding:0 13px;gap:7px}.players small{display:none}.speech{padding:16px}#dialogue{font-size:16px}.character-scale{transform:translateX(-50%) scale(.57)}.character-viewport{height:302px}.opponent-label{font-size:10px;letter-spacing:1px}.game-heading h1{font-size:23px}}@media(max-width:640px){.app{padding:0 18px}header{height:76px}.brand{font-size:17px;letter-spacing:1px}.quiet{padding:9px 11px;font-size:12px}.quiet span{margin-left:4px}main{display:flex;flex-direction:column-reverse;gap:20px;padding-top:15px}.opponent{display:grid;grid-template-columns:115px 1fr;grid-template-rows:1fr;min-height:153px;width:100%;align-self:auto;padding-left:0;align-items:center}.opponent-label,.dealer-title{display:none}.character-viewport{grid-column:1;grid-row:1;height:158px;margin:0;overflow:hidden}.character-scale{top:-3px;transform:translateX(-50%) scale(.285)}.speech{grid-column:2;grid-row:1;margin:0 0 0 9px;width:calc(100% - 9px);min-height:109px;padding:14px 16px}.speech:after{left:-18px;bottom:39px;transform:rotate(90deg)}#dialogue{font-size:15px;min-height:50px}.game{width:100%}.table-label{font-size:10px}.game-heading{display:flex;margin:14px 0 17px;align-items:center}.game-heading h1{font-size:21px}#status{font-size:12px;margin:0}.players{padding:12px 0;font-size:13px}.column-controls{margin-bottom:4px}.board{gap:7px;padding:14px}.board-bottom{margin-top:14px;font-size:12px}.key-hint{display:none}footer{padding:18px 0;font-size:11px}footer>span:last-child,.footer-mark{display:none}.result{margin-top:12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.header-actions{display:flex;align-items:center;gap:12px}.language-picker select{font:inherit;font-size:14px;background:#15362f;color:#eee9dd;border:1px solid #ffffff32;border-radius:6px;padding:10px 25px 10px 12px;cursor:pointer}.language-picker select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}html[lang=en] h1{font-size:clamp(21px,2vw,28px)}html[lang=en] .game-heading{flex-wrap:wrap}html[lang=en] .dealer-title h2{letter-spacing:.06em}.speech{min-height:132px}#dialogue{min-height:64px}@media(max-width:1100px){.header-note{display:none}}@media(max-width:640px){header{gap:8px}.header-actions{gap:6px}.language-picker select{font-size:12px;padding:9px 3px 9px 6px}.quiet{font-size:12px}.quiet>span[aria-hidden]{display:none}.brand{font-size:15px}.brand-mark{font-size:10px;letter-spacing:1px}.speech{min-height:127px}html[lang=en] .game-heading h1{font-size:20px}html[lang=en] #status{font-size:12px}html[lang=en] .speech{padding:12px}html[lang=en] #dialogue{font-size:15px;line-height:1.55}}@media(max-width:370px){header{flex-wrap:wrap;height:auto;min-height:94px;padding:12px 0}.header-actions{margin-left:auto}.speech{margin-left:3px;width:calc(100% - 3px)}.opponent{grid-template-columns:90px 1fr}.character-scale{transform:translateX(-50%) scale(.255)}}

.turn-choice{margin:18px 0 8px;padding:16px;border:1px solid #e8bc6870;border-radius:9px;background:#102f2b}.turn-choice[hidden]{display:none}.turn-choice p{font-size:14px;margin:0 0 12px;color:#d8e3d7}.turn-options{display:flex;gap:10px}.turn-options button{flex:1;padding:12px 10px;background:var(--gold);color:#193b31;border:1px solid var(--gold);border-radius:5px;font-size:15px;font-weight:600}.turn-options button+button{background:transparent;color:var(--gold)}.turn-options button:hover{filter:brightness(1.13)}.players #human-order,.players #cpu-order{display:inline}
