:root {
    --gold: #c29959;
    --gold-soft: rgba(194, 153, 89, 0.16);
    --panel: rgba(8, 8, 12, 0.88);
    --panel-border: rgba(194, 153, 89, 0.26);
    --blue: #18c8ff;
    --red: #ff5050;
    --blue-glow: rgba(24, 200, 255, 0.22);
    --red-glow: rgba(255, 80, 80, 0.22);
    --text-soft: #cfd4db;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Orbitron', sans-serif;
    color: white;
    background: #080808;
}

.page-bg {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.30)),
        url("https://i.hizliresim.com/h3hs0hk.jpg") center center / cover no-repeat;
    z-index: 0;
}

.tabu-screen {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 8px;
    display: flex;
    justify-content: center;
}

.tabu-shell {
    width: 100%;
    max-width: 980px;
}

.top-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.1fr 0.95fr;
    gap: 8px;
    margin-bottom: 10px;
    align-items: stretch;
}

.team-box,
.history-box,
.tabu-card-area,
.bottom-panel {
    background: rgba(8, 8, 12, 0.88);
    border: 1px solid rgba(194, 153, 89, 0.26);
    border-radius: 16px;
    padding: 10px;
    box-shadow:
        0 0 18px rgba(0, 0, 0, 0.34),
        0 0 10px rgba(194, 153, 89, 0.16);
    backdrop-filter: blur(8px);
}

.team-box {
    min-height: 165px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
}

.team-name {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.08;
}

.blue-box .team-name {
    color: var(--blue);
    text-shadow:
        0 0 8px color-mix(in srgb, var(--blue) 45%, transparent),
        0 0 14px color-mix(in srgb, var(--blue) 18%, transparent);
}

.red-box .team-name {
    color: var(--red);
    text-shadow:
        0 0 8px color-mix(in srgb, var(--red) 45%, transparent),
        0 0 14px color-mix(in srgb, var(--red) 18%, transparent);
}

.team-score {
    min-width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.team-players {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 10px;
    line-height: 1.35;
    margin-top: 2px;
}

.spy-line {
    font-weight: 800;
    color: #fff4dc;
    text-shadow: 0 0 6px rgba(255,255,255,0.08);
}

.agent-line {
    padding-left: 14px;
    color: #e4e8ee;
    opacity: 0.95;
}

.history-box {
    min-height: 165px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.history-title {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.9px;
    color: var(--gold);
    line-height: 1.1;
}

.time-box {
    min-width: 62px;
    text-align: center;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(194, 153, 89, 0.20);
}

.mini-status-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 10px;
}

.mini-status-title {
    font-size: 9px;
    color: var(--text-soft);
    margin-bottom: 6px;
    letter-spacing: 0.7px;
}

.mini-status-value {
    font-size: 11px;
    font-weight: 800;
    color: #fff3d6;
}

.tabu-card-area {
    margin-bottom: 10px;
}

.tabu-card-head {
    text-align: center;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 10px;
}

.tabu-main-card {
    border-radius: 18px;
    padding: 18px 14px;
    background:
        linear-gradient(145deg, rgba(22, 22, 28, 0.96), rgba(10, 10, 15, 0.98));
    border: 1px solid rgba(194, 153, 89, 0.18);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.04),
        0 0 10px rgba(0,0,0,0.22);
}

.main-word {
    text-align: center;
    font-size: clamp(26px, 7vw, 44px);
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff4dc;
    margin-bottom: 18px;
    text-shadow:
        0 0 10px rgba(194,153,89,0.16),
        0 0 22px rgba(194,153,89,0.08);
}

.forbidden-title {
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffb6b6;
    margin-bottom: 10px;
}

.forbidden-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.forbidden-item {
    text-align: center;
    border-radius: 12px;
    padding: 12px 10px;
    font-size: 12px;
    font-weight: 800;
    color: white;
    background:
        linear-gradient(145deg,
            color-mix(in srgb, var(--red) 30%, #220d0d),
            color-mix(in srgb, var(--red) 14%, #140808));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.04),
        0 0 10px rgba(0,0,0,0.18);
}

.bottom-panel {
    margin-bottom: 14px;
}

.phase-badge {
    margin: 0 auto 12px;
    width: fit-content;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(194, 153, 89, 0.28);
    background: rgba(255,255,255,0.05);
    color: #fff3d6;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-align: center;
}

.action-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.tabu-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px 10px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    color: black;
}

.correct-btn {
    background: linear-gradient(135deg, #7ef0b2, #2dbf74);
}

.pass-btn {
    background: linear-gradient(135deg, #f1d27a, #c99728);
}

.taboo-btn {
    background: linear-gradient(135deg, #ff8c8c, #d63d3d);
}

.narrator-btn {
    background: linear-gradient(135deg, #8ed0ff, #4a8dff);
    color: #081018;
}

.single-row {
    grid-template-columns: 1fr;
    margin-top: 8px;
}


.turn-status {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-soft);
}

@media (min-width: 700px) {
    .tabu-screen { padding: 10px; }

    .top-layout {
        grid-template-columns: 1fr 1.15fr 1fr;
        gap: 10px;
    }

    .team-box,
    .history-box,
    .tabu-card-area,
    .bottom-panel {
        padding: 12px;
    }

    .team-name,
    .history-title,
    .tabu-card-head {
        font-size: 13px;
    }

    .team-players {
        font-size: 11px;
    }

    .forbidden-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 430px) {
    .team-name { font-size: 10px; }

    .team-score {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .team-players { font-size: 8.8px; }
    .history-title { font-size: 10px; }

    .time-box {
        min-width: 50px;
        font-size: 10px;
        padding: 5px 7px;
    }

    .main-word {
        font-size: clamp(24px, 8vw, 34px);
        margin-bottom: 14px;
    }

    .forbidden-item {
        font-size: 11px;
        padding: 10px 8px;
    }

    .phase-badge {
        font-size: 10px;
        padding: 7px 11px;
    }

    .action-row {
        grid-template-columns: 1fr;
    }
}


.tabu-entry-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}

.tabu-entry-form input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(194, 153, 89, 0.22);
    background: rgba(0, 0, 0, 0.42);
    color: white;
    font-family: 'Orbitron', sans-serif;
    padding: 12px;
    font-size: 12px;
    outline: none;
}

.tabu-entry-form button {
    width: 100%;
}

/* Giris hata mesaji */
.tabu-entry-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 90, 90, 0.35);
    background: rgba(255, 70, 70, 0.10);
    color: #ffb4b4;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}
