.secret-arcade button:nth-child(4) .arcade-game-face{animation-delay:.36s}
.gv-arcade[data-game=ttt] .arcade-cabinet{width:min(940px,100%);max-height:calc(100dvh - 32px)}
.gv-arcade[data-game=ttt] :is(.arcade-hud,.arcade-help,.arcade-touch,canvas){display:none}
.gv-arcade[data-game=ttt] .arcade-screen-wrap{overflow-y:auto;overscroll-behavior:contain;display:block}
.gv-arcade[data-game=ttt] .arcade-screen{aspect-ratio:auto;max-width:none;touch-action:pan-y;overflow:visible}
.gv-arcade[data-game=ttt] .arcade-screen::after{display:none}
.ttt-view{padding:28px 32px 30px;color:#e4eff8;background:radial-gradient(ellipse at 80% 15%,#39649524,transparent 65%),#0b1622}
.ttt-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}
.ttt-heading p{font:700 9px/1.5 ui-monospace,monospace;letter-spacing:2px;color:#83c4cb;margin:0 0 8px}
.ttt-heading h2{font:650 clamp(23px,3.5vw,32px)/1.3 Unbounded,Manrope,sans-serif;letter-spacing:-.045em;margin:0;color:#e4eff8}
.ttt-round{font:11px ui-monospace,monospace;border:1px solid #36506a;background:#21354a55;border-radius:14px;padding:9px 12px;white-space:nowrap;color:#adc7de}
.ttt-layout{display:grid;grid-template-columns:minmax(240px,1fr) 270px;column-gap:32px;row-gap:18px;align-items:start}
.ttt-main{grid-column:1;grid-row:1/3;min-width:0}
.ttt-turn{font:600 13px/1.4 Manrope,sans-serif;color:#aeead9;min-height:24px;margin-bottom:12px;text-align:center}
.ttt-board{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(100%,400px);margin-inline:auto;padding:10px;border:1px solid #3b5573;border-radius:26px;background:#11273b;box-shadow:0 15px 40px #0004}
.gv-arcade .ttt-cell{position:relative;aspect-ratio:1;display:grid;place-items:center;min-width:0;min-height:0;padding:0;border:1px solid #41617e;background:#172f45;border-radius:18px;transition:background .15s,box-shadow .15s,border-color .15s;touch-action:manipulation}
.gv-arcade .ttt-cell:disabled{opacity:1;cursor:default}
.gv-arcade .ttt-cell:not(:disabled):hover{background:#23445d;border-color:#8bbedc;box-shadow:inset 0 0 25px #8ecbff12}
.ttt-cell svg{width:80%;height:80%;stroke:#afd9ff;stroke-width:7;stroke-linecap:round;fill:none;animation:ttt-mark .28s cubic-bezier(.2,.8,.2,1) both}
.ttt-cell[data-mark=O] svg{stroke:#d3baff}
.ttt-cell.is-winner{background:#275345;border-color:#85ceaf;box-shadow:inset 0 0 22px #a8efc520}
.ttt-winning-line{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.ttt-winning-line[hidden]{display:none}
.ttt-winning-line line{stroke:#b6ffe1;stroke-width:6;stroke-linecap:round;filter:drop-shadow(0 0 8px #83ffc488);stroke-dasharray:550;stroke-dashoffset:550;animation:ttt-line .5s ease-out forwards}
.ttt-legend{display:flex;justify-content:center;gap:24px;font:11px/1.5 Manrope,sans-serif;color:#9cc4e7;margin:13px 0 0}
.ttt-mik-mark{color:#ccbcf4}
.ttt-opponent{grid-column:2;grid-row:1;min-width:0}
.ttt-chat{display:flex;flex-direction:column;align-items:center;gap:4px}
.ttt-character{width:200px;height:180px;position:relative}
.ttt-robot{display:block;width:100%;height:100%;filter:drop-shadow(0 0 24px #79c9ff17)}
.ttt-robot-head{transform-origin:120px 105px;animation:ttt-breathe 4s ease-in-out infinite}
.ttt-robot-arm-left{transform-origin:88px 115px}.ttt-robot-arm-right{transform-origin:152px 115px}
.ttt-face{transform-origin:120px 61px;animation:ttt-blink 5s linear infinite}
.ttt-thoughts{opacity:0}
.ttt-view[data-mood=thinking] .ttt-robot-head{animation:ttt-think 1.1s ease-in-out infinite}
.ttt-view[data-mood=thinking] .ttt-face{animation:none}
.ttt-view[data-mood=thinking] .ttt-thoughts{opacity:1;animation:ttt-thought .8s ease-in-out infinite}
.ttt-view[data-mood=happy] .ttt-robot-head{animation:ttt-cheer .7s ease-in-out 3}
.ttt-view[data-mood=happy] .ttt-robot-arm-left{animation:ttt-wave .7s ease-in-out 3}
.ttt-view[data-mood=happy] .ttt-robot-arm-right{animation:ttt-wave .7s .15s ease-in-out 3 reverse}
.ttt-speech{position:relative;padding:15px 17px;border:1px solid #486278;background:#22394d;border-radius:20px;width:100%;min-height:101px;box-sizing:border-box}
.ttt-speech:before{content:'';position:absolute;top:-6px;left:calc(50% - 5px);width:10px;height:10px;background:#22394d;border-top:1px solid #486278;border-left:1px solid #486278;rotate:45deg}
.ttt-speech strong{display:block;font:700 11px Manrope,sans-serif;color:#98d4e5;margin-bottom:7px}
.ttt-message{font:13px/1.65 Manrope,sans-serif;min-height:43px;margin:0;color:#ecf4ff}
.ttt-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.ttt-options label{min-width:0;font:10px/1.5 Manrope,sans-serif;color:#adc5d8}
.ttt-options select{width:100%;min-height:44px;margin-top:6px;padding:8px 9px;border:1px solid #4b6480;border-radius:12px;background:#173147;color:#eef7ff;font:14px Manrope,sans-serif;cursor:pointer}
.ttt-options select:focus-visible{outline:3px solid #a9e9db;outline-offset:2px}
.ttt-scores{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:18px}
.ttt-scores>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 9px;border:1px solid #344d65;border-radius:12px;background:#193146}
.ttt-scores span{font:10px Manrope,sans-serif;color:#aac3d8}.ttt-scores b{font:700 18px ui-monospace,monospace;color:#b9f7dc}
.ttt-mode-note{font:11px/1.6 Manrope,sans-serif;color:#9bb7d1;margin:14px 0 0}
.gv-arcade .ttt-restart{grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:13px 18px;background:#a7e9d0;border:0;color:#0a2d27;font-size:13px;font-weight:750;border-radius:14px}
.gv-arcade .ttt-restart:hover{background:#c1ffe0;color:#08291f}.ttt-restart span{font-size:23px;line-height:1}
.ttt-view[data-paused=true] *{animation-play-state:paused!important}
@media(max-width:960px){.gv-arcade[data-game=ttt] .arcade-tools button{min-width:44px;min-height:44px}}
@keyframes ttt-mark{from{opacity:0;transform:scale(.6) rotate(-8deg)}to{opacity:1;transform:none}}
@keyframes ttt-line{to{stroke-dashoffset:0}}
@keyframes ttt-breathe{50%{transform:translateY(-3px) rotate(-2deg)}}
@keyframes ttt-blink{0%,46%,50%,100%{transform:scaleY(1)}48%{transform:scaleY(.1)}}
@keyframes ttt-think{50%{transform:rotate(8deg) translateY(-2px)}}
@keyframes ttt-thought{50%{opacity:.25;transform:translateY(-3px)}}
@keyframes ttt-cheer{50%{transform:translateY(-8px) rotate(5deg)}}
@keyframes ttt-wave{50%{transform:rotate(25deg)}}
@media(max-width:700px){
 .gv-arcade[data-game=ttt] .arcade-cabinet{max-height:calc(100dvh - 16px)}
 .ttt-view{padding:16px 14px 20px}.ttt-heading{margin-bottom:16px;gap:8px}.ttt-heading h2{font-size:22px}.ttt-heading p{font-size:8px;margin-bottom:5px;letter-spacing:1.4px}.ttt-round{display:none}
 .ttt-layout{display:flex;flex-direction:column;gap:18px}.ttt-main,.ttt-opponent{width:100%}.ttt-opponent{order:-1}
 .ttt-chat{flex-direction:row;gap:12px}.ttt-character{width:70px;height:76px;flex-shrink:0}.ttt-speech{padding:12px;min-height:76px}.ttt-speech:before{top:34px;left:-6px;rotate:-45deg}.ttt-speech strong{font-size:10px;margin-bottom:4px}.ttt-message{font-size:12px;line-height:1.5;min-height:36px}
 .ttt-options{margin-top:12px;gap:10px}.ttt-options select{font-size:16px;padding-inline:8px}.ttt-scores{margin-top:10px}.ttt-scores>div{padding:7px 10px}.ttt-scores b{font-size:15px}.ttt-mode-note{display:none}
 .ttt-board{width:min(100%,320px);gap:8px;padding:8px;border-radius:23px}.gv-arcade .ttt-cell{border-radius:15px}.ttt-turn{margin-bottom:8px;font-size:12px}.ttt-legend{margin-top:10px;font-size:10px}
 .gv-arcade .ttt-restart{width:100%;min-height:46px}
}
@media(max-height:520px) and (min-width:601px){
 .gv-arcade[data-game=ttt] .arcade-cabinet{max-height:calc(100dvh - 8px)}
 .ttt-view{padding:10px 20px 14px}.ttt-heading{margin-bottom:8px}.ttt-heading p{display:none}.ttt-heading h2{font-size:20px}.ttt-round{padding:6px 10px;font-size:10px}
 .ttt-layout{display:grid;grid-template-columns:minmax(180px,1fr) 300px;gap:10px 24px}.ttt-main{grid-row:1/3}.ttt-opponent{order:0}.ttt-board{width:min(100%,calc(100dvh - 146px - var(--arcade-note-height,0px)));gap:6px;padding:6px;border-radius:20px}.gv-arcade .ttt-cell{border-radius:12px}.ttt-turn{font-size:11px;margin-bottom:6px;min-height:17px}.ttt-legend{font-size:9px;margin-top:5px}
 .ttt-chat{flex-direction:row;gap:12px}.ttt-character{width:58px;height:62px;flex-shrink:0}.ttt-speech{padding:10px 12px;min-height:60px}.ttt-speech:before{display:none}.ttt-speech strong{font-size:9px;margin-bottom:2px}.ttt-message{font-size:11px;line-height:1.5;min-height:30px}
 .ttt-options{margin-top:9px}.ttt-options select{min-height:44px;margin-top:3px;font-size:16px}.ttt-scores{margin-top:8px}.ttt-scores>div{padding:5px 9px}.ttt-scores b{font-size:14px}.ttt-mode-note{display:none}.gv-arcade .ttt-restart{min-height:44px;padding:9px 14px}
}
@media(max-width:360px){.gv-arcade[data-game=ttt] .arcade-name{display:none}.ttt-heading h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.ttt-view *{animation:none!important}.ttt-winning-line line{stroke-dashoffset:0}}

.ttt-mode-picker{display:flex;gap:12px;align-items:center;font-size:13px;color:#bfd7e9;margin:0 0 10px}.ttt-mode-picker select{min-height:44px;max-width:100%;padding:8px 12px;background:#173147;color:#eef7ff;border:1px solid #4b6480;border-radius:12px;font:inherit}.ttt-rules{font-size:13px;line-height:1.6;color:#aac8dc;margin:0 0 18px}.ttt-board{grid-template-columns:repeat(var(--ttt-cells,3),minmax(0,1fr))}.ttt-view[data-size="10"] .ttt-board{width:100%;gap:3px;padding:6px;border-radius:15px}.ttt-view[data-size="10"] .ttt-cell{border-radius:5px}.ttt-view[data-size="5"] .ttt-board{gap:5px}.ttt-view[data-size="5"] .ttt-cell{border-radius:9px}.ttt-g-pattern{display:grid;grid-template-columns:repeat(3,12px);gap:3px;margin-bottom:10px}.ttt-g-pattern i{width:12px;height:12px;background:#24384b;border-radius:3px}.ttt-g-pattern .lit{background:#b9f7dc}
@media(max-width:700px){.ttt-opponent{order:1}.ttt-main{order:0}.ttt-restart{order:2}.ttt-mode-picker{align-items:stretch;flex-direction:column;gap:6px}.ttt-mode-picker select{font-size:16px}.ttt-view[data-size="10"] .ttt-board{max-width:none}.ttt-mode-note{display:block}.ttt-heading{margin-bottom:12px}}
