.game-theme-breeze{--gf1:#e6f1fa;--gf2:#fcefe5;--ttt-x:#2a7889;--ttt-o:#c2622f;--ttt-line:#dcdcdc;--ttt-board:#fff;--ttt-board2:#fbf7f1;--ttt-shadow:#1e325029;--ttt-hi:#fff9}:root[data-theme=dark] .game-theme-breeze{--gf1:#12263a;--gf2:#262236;--ttt-x:#7ccfdd;--ttt-o:#f2a673;--ttt-line:#3a4d66;--ttt-board:#1a2d47;--ttt-board2:#152539;--ttt-shadow:#0006;--ttt-hi:#ffffff0d}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .game-theme-breeze{--gf1:#12263a;--gf2:#262236;--ttt-x:#7ccfdd;--ttt-o:#f2a673;--ttt-line:#3a4d66;--ttt-board:#1a2d47;--ttt-board2:#152539;--ttt-shadow:#0006;--ttt-hi:#ffffff0d}}[data-game=tic-tac-toe] .game-stage{container-type:size}.ttt{--ttt-chrome:216px;--ttt-w:min(100cqw - 24px, 100cqh - var(--ttt-chrome), 500px);flex-direction:column;align-items:center;gap:10px;width:100%;padding:12px;display:flex}@container (width<=479px){.ttt{--ttt-chrome:268px}}.ttt-hud{width:max(var(--ttt-w), min(100%, 300px));grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;display:grid}.ttt-pill{--mark:var(--ttt-x);border-radius:var(--r-pill);background:color-mix(in srgb, var(--surface) 80%, transparent);border:1px solid var(--border);min-width:0;min-height:50px;transition:box-shadow .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);grid-template-rows:auto auto;grid-template-columns:auto auto;align-content:center;column-gap:8px;padding:5px 16px 5px 6px;display:grid;box-shadow:0 2px 8px #14283c0f}.ttt-pill.is-x{justify-self:start}.ttt-pill.is-o{--mark:var(--ttt-o);text-align:right;justify-self:end;padding:5px 6px 5px 16px}.ttt-pmark{background:color-mix(in srgb, var(--mark) 15%, var(--surface));border-radius:50%;grid-row:1/span 2;place-items:center;width:38px;height:38px;display:grid}.ttt-pill.is-o .ttt-pmark{grid-column:2}.ttt-pill.is-o :is(.ttt-pname,.ttt-pscore){grid-column:1}.ttt-pmark .ttt-mark{filter:none;width:24px;height:24px;position:static}.ttt-pmark .ttt-mark :is(path,circle){stroke-width:13px}.ttt-pname{color:var(--text-muted);white-space:nowrap;align-self:end;font-size:.78rem;font-weight:700;line-height:1.15}.ttt-pscore{font:800 1.25rem/1.05 var(--font-head);font-variant-numeric:tabular-nums;align-self:start}.ttt-pill.is-active{background:var(--surface);box-shadow:0 0 0 3px color-mix(in srgb, var(--mark) 50%, transparent), 0 8px 18px #14283c1f;transform:translateY(-1px)}.ttt-draws{color:var(--text-muted);justify-items:center;font-size:.74rem;font-weight:700;line-height:1.1;display:grid}.ttt-draws b{font:800 1.1rem/1.1 var(--font-head);color:var(--text);font-variant-numeric:tabular-nums}@container (height<=600px){.ttt{--ttt-chrome:252px;gap:6px;padding:6px 12px}.ttt-pill{min-height:44px;padding-top:3px;padding-bottom:3px}.ttt-pmark{width:34px;height:34px}.ttt-status{font-size:.98rem}.ttt-note{font-size:.82rem;line-height:1.3}.ttt-tools{gap:6px}}@container (width>=600px) and (height>=600px){.ttt{--ttt-chrome:232px;gap:12px}.ttt-pill{column-gap:10px;min-height:56px;padding-right:20px}.ttt-pill.is-o{padding:5px 6px 5px 20px}.ttt-pmark{width:44px;height:44px}.ttt-pmark .ttt-mark{width:28px;height:28px}.ttt-pname{font-size:.85rem}.ttt-pscore{font-size:1.45rem}.ttt-draws{font-size:.8rem}.ttt-draws b{font-size:1.25rem}.ttt-status{font-size:1.15rem}.ttt-note{font-size:.95rem}}.ttt-status{max-width:100%;min-height:1.5em;font:800 1.05rem/1.5 var(--font-head);text-align:center;color:var(--text);white-space:nowrap;text-overflow:ellipsis;margin:0;overflow:hidden}.ttt-dots{vertical-align:middle;gap:3px;margin-left:4px;display:inline-flex}.ttt-dots i{opacity:.3;background:currentColor;border-radius:50%;width:5px;height:5px;animation:1.1s ease-in-out infinite ttt-dot}.ttt-dots i:nth-child(2){animation-delay:.18s}.ttt-dots i:nth-child(3){animation-delay:.36s}@keyframes ttt-dot{40%{opacity:1;transform:translateY(-2px)}}.ttt-boardwrap{width:var(--ttt-w);aspect-ratio:1;flex:none;position:relative}.ttt-board{background:linear-gradient(160deg, var(--ttt-board), var(--ttt-board2));border:1px solid color-mix(in srgb, var(--border) 85%, transparent);box-shadow:inset 0 1px 0 var(--ttt-hi), inset 0 -3px 0 #00000009, 0 22px 44px var(--ttt-shadow), 0 4px 12px #1e32500f;border-radius:28px;padding:5.5%;position:absolute;inset:0}.ttt-cells{grid-template-columns:repeat(var(--n), 1fr);grid-template-rows:repeat(var(--n), 1fr);width:100%;height:100%;display:grid;position:relative}.ttt-gl{background:var(--ttt-line);pointer-events:none;border-radius:99px;position:absolute}.ttt-gl.is-v{width:6px;top:1.5%;bottom:1.5%;left:calc(var(--k) / var(--n) * 100%);transform-origin:50% 0;transform:translate(-50%)}.ttt-gl.is-h{height:6px;left:1.5%;right:1.5%;top:calc(var(--k) / var(--n) * 100%);transform-origin:0;transform:translateY(-50%)}.ttt[data-n="4"] .ttt-gl.is-v{width:5px}.ttt[data-n="4"] .ttt-gl.is-h{height:5px}.ttt-board.is-intro .ttt-gl.is-v{animation:ttt-gl-v .55s calc(var(--k) * 90ms) cubic-bezier(.3, .7, .3, 1) both}.ttt-board.is-intro .ttt-gl.is-h{animation:ttt-gl-h .55s calc(.2s + var(--k) * 90ms) cubic-bezier(.3, .7, .3, 1) both}@keyframes ttt-gl-v{0%{transform:translate(-50%)scaleY(0)}}@keyframes ttt-gl-h{0%{transform:translateY(-50%)scaleX(0)}}.ttt-cell{min-width:48px;min-height:48px;color:var(--text);cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;background:0 0;border:0;border-radius:18px;padding:0;position:relative}.ttt-cell:before{content:"";transition:background .2s var(--ease), box-shadow .2s var(--ease);border-radius:18px;position:absolute;inset:9%}.ttt-board:not(.is-turn) .ttt-cell,.ttt-cell.is-filled{cursor:default}@media (hover:hover){.ttt-board.is-turn .ttt-cell:not(.is-filled):hover:before{background:color-mix(in srgb, var(--text) 5%, transparent)}}.ttt-cell:focus{outline:none}.ttt-cell:focus-visible:before{box-shadow:0 0 0 3px var(--focus);background:color-mix(in srgb, var(--primary) 8%, transparent)}.ttt-cell.is-last:before{background:color-mix(in srgb, var(--text) 5%, transparent);box-shadow:inset 0 0 0 2px color-mix(in srgb, var(--text) 9%, transparent)}.ttt-cell.is-win:before{background:color-mix(in srgb, var(--wc,var(--ttt-x)) 15%, transparent);box-shadow:none}.ttt-cell.is-win:has(.is-o){--wc:var(--ttt-o)}.ttt-mark,.ttt-ghost{pointer-events:none;width:80%;height:80%;position:absolute;inset:10%;overflow:visible}.ttt-mark :is(path,circle),.ttt-ghost :is(path,circle){fill:none;stroke:currentColor;stroke-width:10px;stroke-linecap:round}.ttt[data-n="4"] .ttt-cells .ttt-mark :is(path,circle){stroke-width:11px}.ttt-mark.is-x,.ttt-ghost.is-x{color:var(--ttt-x)}.ttt-mark.is-o,.ttt-ghost.is-o{color:var(--ttt-o)}.ttt-cells .ttt-mark{filter:drop-shadow(0 3px 3px color-mix(in srgb, currentColor 30%, transparent))}.ttt-mark :is(path,circle){stroke-dasharray:1 1;stroke-dashoffset:0}.ttt-cell.is-new .ttt-mark{animation:.42s cubic-bezier(.3,1.5,.5,1) both ttt-pop}.ttt-cell.is-new .ttt-mark.is-x path:first-child{animation:.2s ease-out both ttt-draw}.ttt-cell.is-new .ttt-mark.is-x path:last-child{animation:.2s ease-out .15s both ttt-draw}.ttt-cell.is-new .ttt-mark.is-o circle{animation:.38s ease-out both ttt-draw}@keyframes ttt-draw{0%{stroke-dashoffset:1px;opacity:0}2%{opacity:1}to{stroke-dashoffset:0;opacity:1}}@keyframes ttt-pop{0%{transform:scale(.84)}}.ttt-ghost{opacity:0;transition:opacity .15s}@media (hover:hover){.ttt-board.is-turn[data-ghost=x] .ttt-cell:not(.is-filled):hover .ttt-ghost.is-x,.ttt-board.is-turn[data-ghost=o] .ttt-cell:not(.is-filled):hover .ttt-ghost.is-o{opacity:.2}}.ttt-board.is-turn[data-ghost=x] .ttt-cell:focus-visible .ttt-ghost.is-x,.ttt-board.is-turn[data-ghost=o] .ttt-cell:focus-visible .ttt-ghost.is-o{opacity:.28}.ttt-board[data-ghost=x] .ttt-cell.is-hint .ttt-ghost.is-x,.ttt-board[data-ghost=o] .ttt-cell.is-hint .ttt-ghost.is-o{opacity:.42}.ttt-cell.is-hint:before{background:color-mix(in srgb, var(--warn) 12%, transparent);box-shadow:0 0 0 3px color-mix(in srgb, var(--warn) 50%, transparent);animation:1.1s ease-in-out 2 ttt-hint;inset:13%}@keyframes ttt-hint{50%{box-shadow:0 0 0 5px color-mix(in srgb, var(--warn) 22%, transparent)}}.ttt-strike{pointer-events:none;width:100%;height:100%;color:var(--ttt-x);position:absolute;inset:0;overflow:visible}.ttt-strike[data-who=o]{color:var(--ttt-o)}.ttt-strike line{fill:none;stroke:currentColor;stroke-linecap:round}.ttt-strike-line{stroke-width:.085px;stroke-dasharray:1 1}.ttt-strike-glow{stroke-width:.28px;opacity:.14}.ttt-strike.is-anim .ttt-strike-line{animation:.55s ease-out .1s both ttt-draw}.ttt-strike.is-anim .ttt-strike-glow{animation:.7s ease-out .25s both ttt-fade}@keyframes ttt-fade{0%{opacity:0}}.ttt-result{z-index:2;text-align:center;background:color-mix(in srgb, var(--surface) 95%, transparent);border:1px solid var(--border);border-radius:22px;width:min(88%,330px);padding:18px 16px;animation:.35s ease-out both ttt-rise;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 20px 44px #14283c38}.ttt-result[hidden]{display:none}.ttt-result-title{font:800 1.2rem/1.3 var(--font-head);margin:0 0 12px}.ttt-result-btns{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}@keyframes ttt-rise{0%{opacity:0;transform:translate(-50%,-42%)}}.ttt-note{width:var(--ttt-w);text-align:center;min-height:1.35em;color:var(--text-muted);margin:0;font-size:.9rem;line-height:1.35}.ttt-tools{width:min(100%, calc(var(--ttt-w) + 48px));flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.ttt-tool{border-radius:var(--r-pill);gap:6px;min-height:48px;padding:0 16px}.ttt-tools .btn-ghost{background:color-mix(in srgb, var(--surface) 72%, transparent);border:1px solid var(--border);color:var(--text)}.ttt-tools .btn-ghost:hover:not([disabled]){background:var(--surface)}.ttt-tool svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:20px;height:20px}.ttt-tool[disabled]{opacity:.45;cursor:default}.ttt-tool.is-icon{width:48px;padding:0}.ttt-tool.is-busy svg{animation:1s ease-in-out infinite ttt-glow}@keyframes ttt-glow{50%{opacity:.35}}@container (width<=479px){.ttt-wide{flex-basis:100%;max-width:290px}}.ttt-seg{border-radius:var(--r-pill);background:color-mix(in srgb, var(--surface) 72%, transparent);border:1px solid var(--border);gap:4px;padding:3px;display:inline-flex}.ttt-chip{border-radius:var(--r-pill);min-width:64px;min-height:48px;color:var(--text);font:700 .95rem var(--font-body);cursor:pointer;background:0 0;border:0;padding:0 14px}.ttt-chip:hover{background:color-mix(in srgb, var(--text) 6%, transparent)}.ttt-chip[aria-pressed=true]{background:var(--primary);color:var(--on-primary);box-shadow:0 3px 10px color-mix(in srgb, var(--primary) 30%, transparent)}.ttt-chip:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.ttt-setup{justify-content:center;height:100%}.ttt-setup-card{text-align:center;background:color-mix(in srgb, var(--surface) 88%, transparent);border:1px solid var(--border);border-radius:26px;justify-items:center;gap:14px;width:min(100%,420px);padding:22px 18px;display:grid;box-shadow:0 18px 40px #14283c1f}.ttt-setup-title{font:800 1.5rem/1.2 var(--font-head);margin:0}.ttt-setup-line{color:var(--text-muted);margin:-6px 0 2px}.ttt-setup-row{justify-items:center;gap:6px;display:grid}.ttt-setup-label{color:var(--text-muted);font-size:.9rem;font-weight:700}.ttt-check{cursor:pointer;align-items:center;gap:10px;min-height:48px;font-weight:600;display:inline-flex}.ttt-check input{width:22px;height:22px;accent-color:var(--primary)}.ttt-go{min-width:200px}.gp-ttt{overflow:visible;transform:rotate(-4deg)}.gp-ttt-board{fill:var(--ttt-board,#fff);stroke:color-mix(in srgb, var(--border) 90%, transparent);stroke-width:1px}.gp-ttt-grid{fill:none;stroke:var(--ttt-line);stroke-width:4.5px;stroke-linecap:round}.gp-ttt-x,.gp-ttt-o{fill:none;stroke-width:6.5px;stroke-linecap:round}.gp-ttt-x{stroke:var(--ttt-x)}.gp-ttt-o{stroke:var(--ttt-o)}.gp-ttt-strike{fill:none;stroke:var(--ttt-x);stroke-width:3.4px;opacity:.9;stroke-linecap:round}.gp-ttt-glow{fill:none;stroke:var(--ttt-x);stroke-width:13px;stroke-linecap:round;opacity:.14}@media (prefers-reduced-motion:reduce){.ttt *,.ttt :before{transition:none!important;animation:none!important}.ttt-pill.is-active{transform:none}}:root[data-motion=reduce] .ttt *,:root[data-motion=reduce] .ttt :before{transition:none!important;animation:none!important}
