/* Tic-Tac-Toe — spielspezifische Styles (Chrome aus ../style.css) */

.hero-ttt { display: flex; justify-content: center; gap: 10px; font-size: 40px; font-weight: 800; margin-bottom: 8px; }
.hero-ttt span:nth-child(1) { color: #4f8cff; transform: rotate(-8deg); }
.hero-ttt span:nth-child(2) { color: #e5484d; }
.hero-ttt span:nth-child(3) { color: #4f8cff; transform: rotate(8deg); }

.players { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.pl {
    display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 12px;
    background: var(--panel); border: 1px solid var(--panel-border); font-size: 14px;
}
.pl .nm { display: flex; align-items: center; gap: 6px; }
.pl .sym { font-weight: 800; font-size: 18px; }
.pl .score { color: var(--gold); font-weight: 800; }
.pl.turn { border-color: var(--gold); box-shadow: 0 0 18px rgba(242, 193, 78, .25); animation: focus-pulse 1.6s infinite; }

.round-hint { text-align: center; color: var(--muted); font-size: 13px; min-height: 18px; margin: 0; }

/* Brett: an Breite UND Höhe gekoppelt (S15) */
.ttt-board {
    display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
    gap: 8px; aspect-ratio: 1; margin: 10px auto;
    width: min(100%, 380px);
    width: clamp(240px, min(100%, calc(100dvh - 380px)), 380px);
    padding: 10px; border-radius: 16px;
    background: var(--panel); border: 1px solid var(--panel-border);
}
.ttt-board.focus { border-color: rgba(242, 193, 78, .55); box-shadow: 0 0 0 1px rgba(242, 193, 78, .25), 0 0 30px rgba(242, 193, 78, .18); animation: focus-pulse 1.6s infinite; }
.ttt-board .cell {
    border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06);
    font: inherit; font-size: clamp(34px, 11vw, 58px); font-weight: 800; line-height: 1;
    display: grid; place-items: center; cursor: default; min-width: 0; min-height: 0;
}
.ttt-board .cell.can { cursor: pointer; }
.ttt-board .cell.can:hover, .ttt-board .cell.can:focus-visible { background: rgba(79, 140, 255, .22); box-shadow: inset 0 0 0 2px var(--accent); }
.ttt-board .cell.set span { display: inline-block; animation: ttt-in .22s cubic-bezier(.2, 1.6, .4, 1); }
.ttt-board .cell.win { background: rgba(242, 193, 78, .22); box-shadow: inset 0 0 0 2px var(--gold); animation: ttt-win .5s ease-out; }
@keyframes ttt-in { from { transform: scale(.4) rotate(-12deg); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes ttt-win { 0% { box-shadow: 0 0 0 0 rgba(242, 193, 78, .8); } 100% { box-shadow: inset 0 0 0 2px var(--gold); } }

/* §4.16 Desktop-Fill */
@media (min-width: 1100px) {
    .ttt-board { width: clamp(240px, min(100%, calc(100dvh - 420px)), 460px); }
}
