/* Tarnwort — spielspezifische Styles (Design-System + Game-Chrome aus ../style.css) */

/* Home-Hero */
.hero-tiles { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.hero-tiles span {
    display: grid; place-items: center; width: 62px; height: 44px; border-radius: 8px;
    background: #e9e2cc; color: #1c2230; font-weight: 800; font-size: 13px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.hero-tiles .b { background: #3f7ad9; color: #fff; transform: rotate(4deg); }
.hero-tiles .k { background: #23262e; font-size: 20px; transform: rotate(-4deg); }

/* Team-Wahl (Lobby) */
#team-panel { margin-bottom: 12px; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.team-box { border-radius: 12px; padding: 12px 10px; border: 1px solid var(--panel-border); text-align: left; }
.team-box.t0 { background: rgba(63, 122, 217, .10); border-color: rgba(63, 122, 217, .45); }
.team-box.t1 { background: rgba(217, 72, 72, .10); border-color: rgba(217, 72, 72, .45); }
.team-box h3 { font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.team-box .member { display: flex; align-items: center; gap: 6px; font-size: 14px; padding: 3px 0; }
.team-box .member .chef { margin-left: auto; font-size: 12px; color: var(--gold); font-weight: 700; }
.team-box .btn { width: 100%; margin-top: 8px; padding: 8px; font-size: 13.5px; }
.unassigned { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* Punktestand + Phase */
.score-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 12px; }
.team-chip {
    display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700;
    padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-border);
}
.team-chip b { font-size: 16px; }
.team-chip .dot { width: 11px; height: 11px; border-radius: 50%; }
.team-chip.t0 .dot { background: #3f7ad9; }
.team-chip.t1 .dot { background: #d94848; }
.team-chip.turn { border-color: var(--gold); box-shadow: 0 0 16px rgba(242, 193, 78, .3); animation: focus-pulse 1.6s infinite; }
.phase-chip {
    font-size: 13px; font-weight: 700; color: var(--muted); text-align: center;
    background: var(--panel); border: 1px solid var(--panel-border); border-radius: 999px; padding: 5px 12px;
}

/* Hinweis — DER Fokus-Inhalt (§4.15) */
.clue-box {
    display: flex; align-items: baseline; justify-content: center; gap: 10px;
    margin: 0 0 12px; padding: 10px 18px; border-radius: 14px; width: fit-content;
    margin-inline: auto;
    background: rgba(242, 193, 78, .1); border: 1px solid rgba(242, 193, 78, .5);
}
.clue-box[hidden] { display: none; }
.clue-word { font-size: clamp(22px, 6vw, 34px); font-weight: 800; color: var(--gold); letter-spacing: .02em; }
.clue-count { font-size: clamp(20px, 5vw, 28px); font-weight: 800; color: var(--text); }
.clue-left { font-size: 13px; color: var(--muted); }

/* Brett */
.board {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
    width: min(920px, 100%); margin: 0 auto 14px;
}
.tile {
    position: relative; border-radius: 10px; border: 1px solid var(--panel-border);
    background: #e9e2cc; color: #1c2230; font: inherit; font-weight: 700;
    font-size: clamp(10.5px, 2.4vw, 16px); padding: 0 4px;
    min-height: clamp(52px, 12vw, 86px); cursor: default;
    display: grid; place-items: center; text-align: center; overflow: hidden;
    transition: transform .1s, box-shadow .15s;
    word-break: break-word; hyphens: auto;
}
.tile.can { cursor: pointer; }
.tile.can:hover, .tile.can:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, .35), 0 0 0 2px var(--accent); }
.tile .k {
    position: absolute; top: 5px; right: 5px; width: 12px; height: 12px;
    border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25);
}
.tile .k.c0 { background: #3f7ad9; }
.tile .k.c1 { background: #d94848; }
.tile .k.c2 { background: #b9ae8c; }
.tile .k.c3 { background: #16181e; box-shadow: 0 0 0 2px rgba(229, 72, 77, .8); }
.tile.rev { color: rgba(255, 255, 255, .95); font-weight: 800; animation: tile-flip .35s ease-out; }
.tile.rev.c0 { background: linear-gradient(150deg, #3f7ad9, #2c5cb0); border-color: #3f7ad9; }
.tile.rev.c1 { background: linear-gradient(150deg, #d94848, #ad3232); border-color: #d94848; }
.tile.rev.c2 { background: linear-gradient(150deg, #8d8468, #6f684f); border-color: #8d8468; }
.tile.rev.c3 { background: #101216; border-color: var(--red); color: var(--red); box-shadow: 0 0 24px rgba(229, 72, 77, .5); }
@keyframes tile-flip { from { transform: rotateX(70deg); opacity: .4; } to { transform: rotateX(0); opacity: 1; } }

.role-hint { text-align: center; color: var(--muted); font-size: 14px; min-height: 22px; margin-bottom: 10px; }
.role-hint b.t0 { color: #6b9bf0; }
.role-hint b.t1 { color: #e57373; }

/* Aktions-Boxen */
.action-box { width: min(560px, 100%); margin: 0 auto 12px; }
.action-title { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.action-box.focus .action-title { font-size: 18px; font-weight: 800; color: var(--text); }
.clue-row { display: flex; gap: 8px; justify-content: center; }
.clue-row #in-clue { flex: 1; min-width: 0; }
.clue-row #in-count { width: 72px; text-align: center; }
#btn-pass { min-height: 48px; }

/* §4.16 Desktop-Fill */
@media (min-width: 1100px) {
    .board { gap: 12px; }
    .tile { min-height: 104px; font-size: 19px; border-radius: 14px; }
    .tile .k { width: 15px; height: 15px; }
}
