/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* BODY */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
    padding: 20px;
}

/* MAIN CONTAINERS */
.container,
.game {
    background: #16213e;
    border-radius: 16px;
    padding: 40px;
    max-width: 700px;
    margin: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* HEADINGS */
h1, h2 {
    text-align: center;
    color: #e94560;
    margin-bottom: 20px;
}

/* NAVBAR */
.nav {
    background: #0f3460;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav a:hover {
    color: #e94560;
}

/* INPUTS + SELECT */
input,
select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 2px solid #0f3460;
    background: #1a1a2e;
    color: #eee;
    font-size: 1rem;
    outline: none;
}

input:focus,
select:focus {
    border-color: #e94560;
}

/* BUTTONS */
button {
    background: #e94560;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin: 5px 0;
    width: 100%;
    transition: 0.2s ease;
}

button:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* STATS */
.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px 0 25px;
    font-size: 0.95rem;
    color: #aaa;
}

.stats span {
    color: #e94560;
    font-weight: bold;
    font-size: 1.1rem;
}

/* QUESTION BOX */
.question-box {
    background: #0f3460;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* IMAGE */
#questionImage {
    width: 100%;
    max-width: 250px;
    border-radius: 12px;
    margin: 15px auto;
    display: block;
}

/* RESULT */
#result {
    margin-top: 15px;
    font-weight: bold;
}

.correct { color: #4caf50; }
.incorrect { color: #e94560; }

/* GAME LIST (ORDERED) */
.game-list {
    margin-top: 20px;
    padding-left: 30px;
}

.game-list li {
    margin: 12px 0;
    font-size: 1.1rem;
}

.game-list a {
    color: #e94560;
    text-decoration: none;
}

.game-list a:hover {
    text-decoration: underline;
}

.game-list li::marker {
    color: #e94560;
    font-weight: bold;
}

/* TABLE (ADMIN) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #0f3460;
}

th, td {
    padding: 12px;
    border: 1px solid #1a1a2e;
    text-align: center;
}

th {
    color: #e94560;
}

/* LINKS */
a {
    color: #e94560;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── GAME HINTS ── */
.hint-box {
    background: #0f3460;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 10px 0;
    font-size: 0.95rem;
    line-height: 1.8;
}

.hint-box .hint-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hint-label {
    color: #e94560;
    font-weight: bold;
    min-width: 90px;
}

.hint-value {
    color: #eee;
}

.hint-hidden {
    display: none;
}

.guess-counter {
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.guess-counter span {
    color: #e94560;
    font-weight: bold;
}

#allHints {
    background: #0a5c2e;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 10px 0;
    display: none;
}

#allHints p {
    margin: 4px 0;
    font-size: 0.95rem;
    line-height: 1.8;
}

#allHints .hint-label {
    color: #4caf50;
    font-weight: bold;
}