.tet-root{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%;min-width:0;color:var(--ink,#25314d)}
.tet-instructions,.tet-key-help,.tet-feedback{margin:0;text-align:center;font-size:14px;line-height:1.35}.tet-instructions,.tet-key-help{color:var(--muted,#66708a)}
.tet-stats{display:flex;justify-content:center;gap:30px;font-variant-numeric:tabular-nums}.tet-stat{display:flex;flex-direction:column;align-items:center;gap:2px}.tet-stat span{font-size:13px;color:var(--muted,#66708a)}.tet-stat strong{font-size:22px;line-height:1.1}
.tet-stage{display:flex;justify-content:center;align-items:flex-start;gap:14px;min-height:0}.tet-board{display:block;width:auto;height:clamp(230px,48vh,440px);aspect-ratio:1/2;max-width:65%;border:5px solid #35435e;border-radius:12px;background:#202b45;box-shadow:0 6px 16px #25314d18;touch-action:none}
.tet-aside{display:flex;flex-direction:column;width:90px;max-width:28%;align-items:center;gap:8px}.tet-aside h4{font-size:14px;margin:6px 0 0}.tet-next{width:80px;max-width:100%;height:auto}.tet-legend{font-size:12px;text-align:center;line-height:1.5;white-space:pre-line;color:var(--muted,#66708a);margin:0}
.tet-feedback{min-height:1.4em;font-weight:650}.tet-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-width:340px;width:100%;align-self:center}.tet-control{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:48px;padding:8px 5px!important;touch-action:none;user-select:none;-webkit-user-select:none;border:1px solid #dfe3ed!important;background:#f0f3f9!important;color:#25314d!important}.tet-control-label{font-size:13px;font-weight:650}.tet-symbol{font-size:24px;line-height:1}.tet-drop{grid-column:span 2;background:#e8e1fa!important}.tet-control.is-held,.tet-control:active{box-shadow:inset 0 0 0 2px var(--player-color,#8170d4)}.tet-control:focus-visible{outline:3px solid var(--player-color,#8170d4);outline-offset:2px}
@media(max-width:560px){.tet-root{gap:8px}.tet-stats{gap:24px}.tet-stage{gap:10px}.tet-board{height:clamp(230px,46vh,390px)}.tet-key-help{display:none}.tet-control-label{font-size:12px}}
@media(max-height:550px) and (orientation:landscape){.tet-root{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:6px 12px}.tet-instructions,.tet-key-help{display:none}.tet-stats{grid-column:2;grid-row:1;gap:12px;align-self:start}.tet-stat strong{font-size:18px}.tet-stage{grid-column:1;grid-row:1/5;gap:6px}.tet-board{height:clamp(200px,60vh,290px);max-width:75%}.tet-aside{width:52px}.tet-aside h4{font-size:12px}.tet-next{width:50px}.tet-legend{display:none}.tet-controls{grid-column:2;grid-row:2;gap:5px}.tet-control{flex-direction:column;gap:2px;min-height:48px}.tet-control-label{font-size:11px}.tet-symbol{font-size:21px}.tet-feedback{grid-column:2;grid-row:3;font-size:13px}}
.arena[data-panel-view=face] .tet-board{height:240px}.arena[data-panel-view=face] .tet-key-help,.arena[data-panel-view=face] .tet-instructions,.arena[data-panel-view=face] .tet-legend{display:none}

/* Keep the board and touch controls in the same viewport. A wide player panel
   places controls next to the board; a narrow one keeps them directly below. */
.play-shell:has(.tet-root) .match-strip,.play-shell:has(.tet-root) .play-title>p,.play-shell:has(.tet-root) .panel-name small{display:none}
.play-shell:has(.tet-root) .play-top{margin-bottom:8px;min-height:44px}
.play-shell:has(.tet-root) .player-panel-head{padding:8px 12px;min-height:46px}
.play-shell:has(.tet-root) .game-content{container-type:inline-size;padding:12px}
.play-shell:has(.tet-root) .round-footer{margin:6px auto 0}
.play-shell:has(.tet-root) .round-footer>span{display:none}
.tet-root{gap:7px}.tet-board{height:clamp(170px,calc(100dvh - 420px),360px)}
.tet-control-label{font-size:14px;line-height:1.15}.tet-controls .tet-control{flex-direction:column;gap:3px;padding:5px!important}.tet-instructions,.tet-legend{display:none}
@container(min-width:380px){
 .tet-root{display:grid;grid-template-columns:minmax(0,1fr) 180px;grid-template-rows:auto auto 1fr;gap:12px}
 .tet-instructions,.tet-key-help{display:none}
 .tet-stage{grid-column:1;grid-row:1/4;gap:8px}
 .tet-board{height:clamp(210px,calc(100dvh - 300px),450px);max-width:76%}
 .tet-aside{width:64px}.tet-aside h4{font-size:13px}.tet-next{width:60px}.tet-legend{display:block;font-size:12px}
 .tet-stats{grid-column:2;grid-row:1;gap:12px}.tet-stat strong{font-size:20px}
 .tet-controls{grid-column:2;grid-row:2;gap:6px}.tet-control{flex-direction:column;gap:3px;min-height:56px}.tet-control-label{font-size:14px}
 .tet-feedback{grid-column:2;grid-row:3;align-self:start;font-size:14px}
}
@media(max-height:550px) and (orientation:landscape){
 .play-shell:has(.tet-root) .play-brand{display:none}
 .play-shell:has(.tet-root) .tet-board{height:clamp(120px,calc(100dvh - 205px),280px)}
 .play-shell:has(.tet-root) .tet-control{min-height:44px;padding:4px!important}
}
