
.gallery-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-light);
    text-decoration: none;
    transition: color 0.25s;
}

.gallery-btn:hover { color: var(--gold); }

.game-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 3rem;
    align-items: center;
}

.game-panel {
    padding: 2rem 2.5rem 2rem 3rem;
    border-left: 1px solid rgba(184,154,90,0.2);
    animation: fadeUp 0.8s 0.15s ease both;
}

.guess-form { width: 100%; }

.session-score {
    font-size: 1.2rem;
    letter-spacing: 0.22em;
    color: var(--ink-mid);
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.session-score:hover{
    text-decoration: underline;
}

.score-wrapper {
    position: relative;
    cursor: default;
}

.score-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--ink-light);
    color: var(--cream);
    padding: 0.8rem 1.2rem;
    font-size: 0.78rem;
    line-height: 1.8;
    white-space: nowrap;
    z-index: 100;
    border: 1px solid rgba(184,154,90,0.3);
    text-align: center;
}
.score-wrapper:hover .score-tooltip {
    display: block;
}

.question-label {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.year-input-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-light);
}

.guess-input-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1.8rem 0 1.5rem;
}

.year-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
}

.year-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--gold) 50%, rgba(184,154,90,0.25) 50%);
    outline: none;
    cursor: pointer;
}

.year-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--gold);
    cursor: grab;
    transition: transform 0.15s;
}

.year-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.2);
}

.year-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--gold);
    cursor: grab;
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.6rem;
    color: var(--ink-light);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.05em;
}

.year-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gold);
    color: var(--ink);
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    width: 100%;
    outline: none;
    padding: 0.2rem 0;
    transition: border-color 0.2s;
}

.year-input::placeholder {
    color: var(--ink-light);
    opacity: 0.5;
}

.year-input:focus {
    border-bottom-color: var(--gold-light);
}

.year-input::-webkit-outer-spin-button,
.year-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.submit-btn {
    width: 100%;
    padding: 0.85rem 1.4rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--ink-mid);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
    margin-top: 0.5rem;
    font-family: 'Cinzel', serif;
}

.submit-btn:hover {
    background: var(--gold);
    color: var(--cream);
}

.score-display {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0.6rem 0 1.2rem;
}

.score-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
    color: var(--gold);
}

.score-label {
    font-size: 0.8rem;
    color: var(--ink-light);
    letter-spacing: 0.1em;
}

.result-years {
    display: flex;
    align-items: center;
    gap: 1em;
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: rgba(184,154,90,0.06);
    border: 1px solid rgba(184,154,90,0.15);
}

.year-block {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    text-align: center;
}

.year-block-label {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-light);
}

.year-block-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--ink);
    line-height: 1;
}

.year-gap {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.6rem;
    border-radius: 2px;
    text-align: center;
    white-space: nowrap;
}

.gap-great { background: rgba(90,150,90,0.12); color: #5a966a; border: 1px solid rgba(90,150,90,0.3); }
.gap-ok    { background: rgba(184,154,90,0.12); color: var(--gold); border: 1px solid rgba(184,154,90,0.3); }
.gap-miss  { background: rgba(160,80,60,0.1);  color: #a0503c; border: 1px solid rgba(160,80,60,0.25); }


