:root{--bg: #0d3b8c;--panel: #0a2f6e;--cell: #1a4fb0;--text: #ffffff;--red: #e53935;--red-dark: #b71c1c;--o: #ffffff;--error-text: #ffcdd2;--error-bg: #b71c1c}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:system-ui,sans-serif}.app{max-width:1000px;margin:0 auto;padding:1rem}h1,h2{color:var(--red);font-weight:800}h1{text-transform:uppercase}h2{text-transform:uppercase;font-size:1.2rem;margin-top:0}.layout{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:start}@media(max-width:720px){.layout{grid-template-columns:1fr}}.panel{background:var(--panel);border-radius:8px;padding:1rem;margin-bottom:1rem}label{display:block;font-weight:600;margin:.5rem 0 .25rem}input{width:100%;padding:.6rem;font-size:1rem;background:#fff;color:#111;border:2px solid var(--cell);border-radius:4px}button{font:inherit;cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #fff;outline-offset:2px}.btn{background:var(--red);color:#fff;border:2px solid var(--red);padding:.6rem 1rem;border-radius:4px;font-weight:700;margin:.75rem .5rem 0 0}.btn:hover,.btn:focus-visible{background:var(--red-dark);border-color:var(--red-dark)}.btn.outline{background:transparent;color:#fff;border-color:var(--red)}.btn.outline:hover,.btn.outline:focus-visible{background:var(--red-dark)}.error{background:var(--error-bg);color:var(--error-text);padding:.6rem .8rem;border-radius:4px;margin-top:.75rem}.status{font-size:1.2rem;font-weight:700;margin-bottom:.75rem}.status .turn{border-bottom:3px solid var(--red)}.board{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:100%;max-width:360px;aspect-ratio:1}.cell{background:var(--cell);border:0;border-radius:6px;color:var(--o);font-size:clamp(2rem,14vw,4rem);font-weight:800;padding:0}.cell.x{color:var(--red)}.cell.o{color:var(--o)}.cell:disabled{opacity:.8;cursor:default}.cell.win{background:var(--red-dark);color:#fff;opacity:1}table{width:100%;border-collapse:collapse}th{background:var(--red);color:#fff;text-align:left;padding:.4rem}td{padding:.4rem}tbody tr:nth-child(odd){background:var(--cell)}tbody tr:nth-child(2n){background:var(--bg)}tbody tr:first-child td:first-child{border-left:4px solid var(--red)}ul.recent{list-style:none;margin:0;padding:0}ul.recent li{padding:.4rem 0;border-bottom:1px solid var(--cell)}.muted{opacity:.85}.app-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}.app-head .btn{margin:0}.promo-window{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--bg);z-index:10;display:flex;flex-direction:column;align-items:center;justify-content:center}.promo-controls{position:absolute;top:.5rem;right:.75rem;display:flex;gap:.5rem;z-index:2}.promo-controls .btn{margin:0}.promo-stage{position:relative;background:var(--panel);aspect-ratio:16/9;width:min(100vw,calc(100vh * 16 / 9));max-width:100vw;max-height:100vh;overflow:hidden;container-type:size;font-size:1cqmin}.promo-progress{width:min(100vw,calc(100vh * 16 / 9));height:4px;background:var(--cell)}.promo-progress div{height:100%;background:var(--red)}.promo-scene{position:absolute;top:0;right:0;bottom:0;left:0;animation:p-fade .5s ease-out}.p-center{height:100%;display:flex;align-items:center;justify-content:center;gap:4cqw;text-align:center}.p-col{flex-direction:column;gap:3cqh}.p-title{color:var(--red);font-weight:800;text-transform:uppercase;font-size:8cqw;margin:0;animation:p-zoom 1s ease-out}.p-sub{font-size:3cqw;margin:2cqh 0 0;animation:p-fade 1.5s ease-out}.p-mark{font-size:16cqw;font-weight:800}.p-x{color:var(--red);animation:p-from-left 1s ease-out}.p-o{color:var(--o);animation:p-from-right 1s ease-out}.p-title-wrap{max-width:60cqw}.p-status{font-size:5cqw;font-weight:800}.p-board{display:grid;grid-template-columns:repeat(3,1fr);gap:1cqw;width:52cqh;height:52cqh}.p-cell{background:var(--cell);border-radius:1cqw;display:flex;align-items:center;justify-content:center;font-size:12cqh;font-weight:800;color:var(--o)}.p-cell.x{color:var(--red)}.p-cell.win{background:var(--red-dark);color:#fff}.pop{animation:p-pop .35s ease-out}.p-card{background:var(--cell);border-radius:1.5cqw;padding:2.5cqh 4cqw;font-size:4cqw;font-weight:700;animation:p-from-right .6s ease-out}.p-counters{display:flex;gap:8cqw}.p-num{color:var(--red);font-weight:800;font-size:12cqw;line-height:1}.p-label{font-size:2.6cqw}.p-top{display:flex;gap:3cqw;align-items:center;font-size:3cqw}.p-top-item{padding:1cqh 2cqw;border-radius:1cqw;background:var(--cell);border:.4cqw solid transparent}.p-top-item.first{border-color:var(--red)}.p-small-title{color:var(--red);font-weight:800;text-transform:uppercase;font-size:3.5cqw}.p-button{background:var(--red);color:#fff;font-weight:800;font-size:7cqw;padding:2cqh 6cqw;border-radius:2cqw;animation:p-pop .6s ease-out}.p-url{font-size:3cqw}@keyframes p-fade{0%{opacity:0}to{opacity:1}}@keyframes p-zoom{0%{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}@keyframes p-pop{0%{transform:scale(0)}70%{transform:scale(1.25)}to{transform:scale(1)}}@keyframes p-from-left{0%{transform:translate(-60cqw)}to{transform:none}}@keyframes p-from-right{0%{transform:translate(60cqw)}to{transform:none}}@media(prefers-reduced-motion:reduce){.promo-scene,.p-title,.p-sub,.p-x,.p-o,.pop,.p-card,.p-button{animation:none}}
