body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f0f0f0;
}

h1 {
    color: #333;
}

#concepts-bar {
    margin: 10px auto 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.concept-tag {
    display: inline-block;
    background-color: #007bff;
    color: white;
    font-size: 0.85em;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
}

.concept-tag-muted {
    background-color: #aaa;
    font-weight: normal;
}

.instructions-link {
    margin: 10px 0 25px;
}

.instructions-link a {
    display: inline-block;
    background-color: #333;
    color: white;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
}

.instructions-link a:hover {
    background-color: #555;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
    width: 315px;
    margin: 20px auto;
    background-color: #444;
    border: 5px solid #444;
    border-radius: 10px;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 5px;
    font-size: 3.5em;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cell:hover {
    background-color: #eee;
}

button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

/* --- Instructions page layout --- */

.instructions-body {
    text-align: left;
    font-family: "Inter", Arial, sans-serif;
    background-color: #f4f6fb;
    background-image:
        linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px);
    background-size: 32px 32px;
}

.instr-header {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 25px 10px;
    text-align: center;
}

.instr-eyebrow {
    font-family: "Space Grotesk", Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78em;
    font-weight: 500;
    color: #007bff;
    margin: 0 0 4px;
    background: none;
    border: none;
    animation: none;
}

.instr-header h1 {
    font-family: "Space Grotesk", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 2.1em;
    background-color: #fff;
}

.back-to-game {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
}

.back-to-game:hover {
    text-decoration: underline;
}

.quick-nav {
    max-width: 700px;
    margin: 0 auto 10px;
    padding: 0 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.quick-nav a {
    font-family: Arial, sans-serif;
    font-size: 0.82em;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 5px 14px;
    border-radius: 20px;
    transition: background-color 0.15s, border-color 0.15s;
}

.quick-nav a:hover {
    background-color: #eef4ff;
    border-color: #007bff;
    color: #007bff;
}

.info-section {
    max-width: 650px;
    margin: 22px auto;
    background-color: white;
    border-radius: 12px;
    padding: 22px 26px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    scroll-margin-top: 20px;
}

.info-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 4px;
}

.info-icon {
    font-size: 1.3em;
    line-height: 1;
}

.info-section h2 {
    text-align: center;
    color: #333;
    margin: 0;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-weight: 700;
}

.cooldown-note {
    font-size: 0.85em;
    background-color: #fff3cd;
    border: 1px solid #ffe08a;
    border-radius: 8px;
    padding: 8px 12px;
}

#certificate-section p {
    text-align: center;
}

/* --- Hint Helper --- */

.hint-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background-color: #fafafa;
}

.hint-label {
    margin: 0 0 10px;
    font-size: 1em;
    color: #222;
}

.hint-text {
    background-color: #eef4ff;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 0.92em;
}

.hint-answer {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
}

.hint-answer code {
    display: inline-block;
    margin-top: 4px;
    font-family: "Courier New", monospace;
    white-space: pre-wrap;
}

.hint-btn {
    margin-top: 8px;
    background-color: #007bff;
}

.hint-btn:disabled {
    background-color: #aaa;
    cursor: default;
}

/* --- Predict & Check --- */

.predict-question {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.predict-question:last-child {
    border-bottom: none;
}

.predict-q-text {
    margin-bottom: 10px;
}

.predict-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.predict-option-btn {
    margin-top: 0;
    text-align: left;
    background-color: #eef4ff;
    color: #222;
    font-size: 0.95em;
    padding: 8px 12px;
}

.predict-option-btn:hover:not(:disabled) {
    background-color: #d9e6ff;
}

.predict-option-btn:disabled {
    cursor: default;
    opacity: 0.7;
}

.predict-correct {
    background-color: #d4edda !important;
    border: 2px solid #28a745;
    opacity: 1 !important;
}

.predict-wrong {
    background-color: #f8d7da !important;
    border: 2px solid #dc3545;
    opacity: 1 !important;
}

.predict-feedback {
    margin-top: 10px;
    font-size: 0.9em;
}

.predict-feedback-correct {
    color: #1e7e34;
}

.predict-feedback-wrong {
    color: #a71d2a;
}

#creativity-section ul {
    padding-left: 20px;
}

#creativity-section li {
    margin-bottom: 10px;
}
