@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --background: #080d16;
    --panel: #111b2b;
    --border: #263a52;
    --text: #e6edf7;
    --muted: #91a4bc;
    --accent: #55e6c1;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 24px;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: "Nunito", sans-serif;
}

.game {
    width: 100%;
    max-width: 850px;
    margin: auto;
}

.game-header {
    text-align: center;
    padding: 28px 16px;
    border-bottom: 1px solid var(--border);
}

.status-label {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 2px;
}

h1 {
    font-size: 36px;
    margin: 16px 0 8px;
}

.subtitle {
    color: var(--muted);
}

.status-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.status-panel div {
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
}

.status-panel span,
.status-panel strong {
    display: block;
}

.status-panel span {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.status-panel strong {
    font-size: 20px;
}

.story-panel {
    min-height: 150px;
    padding: 24px;
    margin-bottom: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    line-height: 1.8;
}

.name-form {
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.name-form label {
    display: block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 13px;
}

.name-controls {
    display: flex;
    gap: 10px;
}

input,
button {
    font: inherit;
    padding: 12px;
    border-radius: 5px;
}

input {
    flex: 1;
    min-width: 0;
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border);
}

button {
    background: var(--accent);
    color: #071510;
    border: 1px solid var(--accent);
    cursor: pointer;
    font-weight: bold;
}

.choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.choices button {
    min-height: 48px;
    background: var(--panel);
    color: var(--text);
    border-color: var(--border);
    text-align: left;
}

.choices button:hover {
    border-color: var(--accent);
}

footer {
    margin-top: 32px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

@media (max-width: 520px) {
    body {
        padding: 12px;
    }

    .status-panel {
        gap: 6px;
    }

    .status-panel div {
        padding: 12px 6px;
    }

    .status-panel span {
        font-size: 10px;
    }

    .name-controls {
        flex-direction: column;
    }

    .choices {
        grid-template-columns: 1fr;
    }
}