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

:root {
    --font-ui: "Onest", sans-serif;
    --font-display: "Manrope", sans-serif;
    --primary: #dd5e36;
    --primary-dark: #ba4722;
    --primary-light: #ff7b59;
    --secondary: #61a8ff;
    --secondary-dark: #4389e3;
    --accent: #ffce56;
    --success: #4caf50;
    --error: #f44336;
    --soup-color: #ffca7a;
    --soup-shadow: #e6b663;
    --bowl-color: #f8f8f8;
    --letter-color: #ffffff;
    --text: #333333;
    --text-light: #777777;
    --background: #f5f5f5;
    --steam: rgba(255, 255, 255, 0.7);
    --glow-color: rgba(221, 94, 54, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ui);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

html.has-modal-open,
body.has-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.start-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(255, 206, 86, 0.35), transparent 45%),
        rgba(30, 25, 20, 0.55);
    backdrop-filter: blur(8px);
    z-index: 2000;
}

.start-overlay.is-hidden {
    display: none;
}

.start-card {
    width: min(100%, 460px);
    padding: 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.collectibles-overlay,
.session-summary-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2100;
    overscroll-behavior: contain;
}

.collectibles-overlay.is-hidden,
.session-summary-overlay.is-hidden {
    display: none;
}

.collectibles-card,
.session-summary-card {
    position: relative;
    width: min(100%, 420px);
    padding: 30px 26px 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.start-overlay,
.session-summary-overlay {
    touch-action: none;
}

.start-card,
.collectibles-card,
.session-summary-card {
    touch-action: manipulation;
}

.session-summary-close,
.collectibles-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(69, 90, 100, 0.12);
    color: var(--text);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.session-summary-close:hover,
.collectibles-close:hover {
    background: rgba(69, 90, 100, 0.2);
    transform: scale(1.04);
}

.session-summary-kicker {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.session-summary-card h2 {
    font-size: 1.85rem;
    line-height: 1.1;
    margin-bottom: 18px;
    color: var(--text);
}

.session-summary-details {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.session-summary-line {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 237, 0.98));
    border: 1px solid rgba(221, 94, 54, 0.12);
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.start-kicker {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.start-card h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--text);
}

.start-copy {
    color: var(--text-light);
    margin-bottom: 22px;
    font-size: clamp(0.72rem, 2.5vw, 1rem);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.language-options {
    display: grid;
    gap: 14px;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 18px;
    border: 2px solid rgba(221, 94, 54, 0.12);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 244, 237, 0.95));
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: left;
}

.language-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(221, 94, 54, 0.14);
    border-color: rgba(221, 94, 54, 0.35);
}

.language-name {
    font-size: 1.1rem;
    font-weight: 800;
}

.language-helper {
    font-size: 0.9rem;
    color: var(--text-light);
}

.bowl-of-words-game {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
}

.game-header {
    text-align: center;
    margin-bottom: 10px;
}

.game-header h2 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 800;
}

.game-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.soup-bowl {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1/1;
    transform-origin: center center;
    touch-action: none;
}

.soup-bowl.is-pinching {
    z-index: 20;
}

.plate-shadow {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    filter: blur(10px);
    z-index: 1;
}

.plate {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    border-radius: 50%;
    z-index: 2;
}

.bowl-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 -5px 15px rgba(0, 0, 0, 0.05);
    background: white;
    z-index: 3;
}

.soup {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    background-color: var(--soup-color);
    box-shadow: 
        inset 0 -10px 20px var(--soup-shadow),
        inset 0 10px 20px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    cursor: pointer;
    touch-action: none;
}

.bowl-highlight {
    position: absolute;
    top: 0;
    left: 50%;
    width: 80%;
    height: 40%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    border-radius: 50%;
    pointer-events: none;
    z-index: 4;
}

.steam-container {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 5;
    pointer-events: none;
}

.steam {
    position: absolute;
    width: 8px;
    background: linear-gradient(to top, transparent, var(--steam));
    border-radius: 50%;
    animation: steam 4s infinite ease-out;
    opacity: 0;
}

@keyframes steam {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
        filter: blur(2px);
    }
    30% {
        opacity: 0.5;
    }
    70% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(3);
        filter: blur(6px);
    }
}

.letter {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
    color: var(--primary);
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 5;
    overflow: hidden;
    touch-action: manipulation;
}

.letter:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 0 12px var(--glow-color);
    transform: translateY(-2px);
}

.letter-points {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 10px;
    font-weight: normal;
    color: var(--text-light);
}

.letter.selected {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 0 15px var(--glow-color);
}

.letter.selected .letter-points {
    color: rgba(255, 255, 255, 0.8);
}

.letter .ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    border-radius: 50%;
    z-index: -1;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.particle {
    position: absolute;
    background-color: var(--primary);
    border-radius: 50%;
    width: 8px;
    height: 8px;
    animation: particle-fade 1s forwards ease-out;
}

@keyframes particle-fade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty));
    }
}

.word-builder {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.word-display {
    width: 100%;
    min-height: 60px;
    border: none;
    background-color: var(--success);
    color: white;
    border-radius: 30px;
    padding: 15px 25px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}

.word-display.valid {
    background-color: var(--success);
    color: white;
}

.word-display.invalid {
    background-color: var(--error);
    color: white;
}

.word-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(76, 175, 80, 0.2);
}

.word-display:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.16);
}

.control-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.session-btn {
    background-color: #455a64;
    color: white;
}

.session-btn:hover {
    background-color: #37474f;
}

.session-confirm-btn {
    width: 100%;
    background-color: #455a64;
    color: white;
}

.session-confirm-btn:hover {
    background-color: #37474f;
}

.clear-btn {
    background-color: var(--error);
    color: white;
}

.clear-btn:hover {
    background-color: #e53935;
}

.score-board {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.score-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.score-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 150px;
    overflow-y: auto;
    padding: 5px;
}

.word-item {
    background-color: #f5f5f5;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.latest-runs-panel {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.latest-runs-header {
    margin-bottom: 12px;
}

.latest-runs-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.latest-runs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.latest-run-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 24px;
    padding: 2px 0;
    font-weight: 700;
}

.latest-run-label {
    display: flex;
    align-items: baseline;
    gap: 2px;
    min-width: 0;
    color: var(--text);
    white-space: nowrap;
}

.latest-run-prefix {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: lowercase;
    color: var(--text-light);
}

.latest-run-tag {
    letter-spacing: 0.04em;
}

.latest-run-item.is-player .latest-run-label {
    color: var(--primary);
}

.latest-run-score {
    flex-shrink: 0;
    color: var(--primary);
}

.word-item-points {
    background-color: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.message-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
    z-index: 50;
}

.message {
    background-color: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: message-fade 2s forwards;
    opacity: 0;
    transform: translateY(-20px);
}

.message.success {
    background-color: var(--success);
}

.message.error {
    background-color: var(--error);
}

.message.checking {
    background-color: var(--secondary);
}

@keyframes message-fade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@media (max-width: 768px) {
    .bowl-of-words-game {
        padding: 15px;
        gap: 20px;
    }
    
    .game-header h2 {
        font-size: 1.8rem;
    }
    
    .soup-bowl {
        max-width: 400px;
    }
    
    .letter {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (pointer: coarse) {
    .soup-bowl {
        will-change: transform;
    }
}

@media (max-width: 480px) {
    .bowl-of-words-game {
        padding: 10px;
        gap: 15px;
    }
    
    .game-header h2 {
        font-size: 1.5rem;
    }
    
    .soup-bowl {
        max-width: 300px;
    }
    
    .letter {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .word-display {
        min-height: 50px;
        font-size: 1.3rem;
        padding: 10px 20px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .control-buttons {
        gap: 10px;
    }
    
    .score-header h3 {
        font-size: 1.1rem;
    }
    
    .score-display {
        font-size: 1.1rem;
    }
    
    .word-list {
        max-height: 120px;
    }

    .latest-runs-header h3 {
        font-size: 1.05rem;
    }

    .start-card {
        padding: 24px 18px;
    }

    .session-summary-card {
        padding: 26px 18px 20px;
    }

    .start-card h1 {
        font-size: 1.7rem;
    }

    .session-summary-card h2 {
        font-size: 1.5rem;
    }

    .language-option {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Spellforge Cauldron theme override */

:root {
    --primary: #d6a24f;
    --primary-dark: #8b662d;
    --primary-light: #f0c674;
    --secondary: #2c7a66;
    --secondary-dark: #225d4f;
    --accent: #69ddad;
    --success: #d6a24f;
    --error: #8b3c3c;
    --soup-color: #2fc78b;
    --soup-shadow: #1d7457;
    --bowl-color: #e8ddcb;
    --letter-color: #f3eddc;
    --text: #f0eadc;
    --text-light: #b5ab92;
    --background: #0f1916;
    --steam: rgba(232, 244, 236, 0.64);
    --glow-color: rgba(105, 221, 173, 0.34);
}

body {
    position: relative;
    font-family: var(--font-ui);
    background:
        radial-gradient(circle at 16% 18%, rgba(105, 221, 173, 0.11), transparent 24%),
        radial-gradient(circle at 82% 20%, rgba(214, 162, 79, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 16%),
        linear-gradient(160deg, #0f1916, #162621 56%, #12201d);
    color: var(--text);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: -120px;
    right: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(105, 221, 173, 0.16), transparent 68%);
    filter: blur(14px);
}

body::after {
    left: -130px;
    bottom: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 162, 79, 0.12), transparent 70%);
}

.bowl-of-words-game {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    padding: 30px 24px 40px;
    gap: 18px;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0;
}

.header-copy {
    max-width: 720px;
}

.relics-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(208, 169, 98, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(7, 11, 13, 0.86), rgba(14, 22, 22, 0.82));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 12px 22px rgba(0, 0, 0, 0.18);
}

.relics-status.is-empty {
    opacity: 0.68;
}

.relics-status span {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ccb891;
}

.relics-status strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: #f4ddb0;
}

.game-kicker,
.start-kicker,
.session-summary-kicker,
.ritual-objective-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-light);
}

.game-kicker::before,
.start-kicker::before,
.session-summary-kicker::before,
.ritual-objective-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 18px rgba(214, 162, 79, 0.45);
}

.game-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 4.45rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #c63d43;
    text-shadow: 0 0 18px rgba(198, 61, 67, 0.16);
}

.game-subtitle {
    max-width: 620px;
    color: var(--text-light);
    font-size: 1.02rem;
    line-height: 1.55;
}

.header-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 12px;
    width: min(100%, 470px);
}

.header-stat,
.ritual-objective,
.game-container,
.score-board,
.start-card,
.session-summary-card,
.word-item,
.latest-run-item,
.message {
    backdrop-filter: blur(12px);
}

.header-stat {
    padding: 14px 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(23, 44, 78, 0.84), rgba(13, 28, 54, 0.78));
    border: 1px solid rgba(94, 152, 255, 0.28);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-stat span {
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a9c8ff;
}

.header-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 1.8rem;
    line-height: 1;
    color: #eef5ff;
}

.game-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.62fr);
    gap: 22px;
    align-items: start;
}

.game-container,
.score-board {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
}

.game-container {
    padding: 24px;
    gap: 18px;
    align-items: stretch;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 18%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        rgba(9, 18, 17, 0.72);
    background-size: auto, 44px 44px, 44px 44px, auto;
}

.score-board {
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
        rgba(18, 31, 28, 0.76);
}

.soup-bowl {
    max-width: 560px;
    margin: 0 auto;
}

.plate-shadow {
    display: none;
}

.plate {
    display: none;
}

.plate {
    height: 26px;
    background: linear-gradient(to bottom, rgba(244, 239, 227, 0.72), rgba(78, 93, 84, 0.28));
}

.bowl-container {
    background: linear-gradient(160deg, #46554f, #1d2623 72%);
    box-shadow:
        0 28px 58px rgba(0, 0, 0, 0.3),
        inset 0 -12px 18px rgba(0, 0, 0, 0.18),
        inset 0 12px 20px rgba(255, 255, 255, 0.12);
}

.soup {
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background:
        radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.14), transparent 28%),
        radial-gradient(circle at 50% 72%, rgba(0, 0, 0, 0.12), transparent 54%),
        linear-gradient(180deg, #37d49b, #1f7d60);
    box-shadow:
        inset 0 -22px 34px rgba(0, 0, 0, 0.22),
        inset 0 14px 18px rgba(255, 255, 255, 0.14),
        0 0 36px rgba(105, 221, 173, 0.14);
}

.bowl-highlight {
    width: 78%;
    height: 34%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.steam-container {
    top: -18px;
    height: 80px;
}

.steam {
    width: 10px;
    filter: blur(3px);
}

.letter {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(244, 239, 226, 0.94), rgba(216, 208, 184, 0.88)),
        #f3eddc;
    color: #8f6a2d;
    font-weight: 800;
    box-shadow:
        0 10px 18px rgba(0, 0, 0, 0.22),
        inset 0 -4px 8px rgba(0, 0, 0, 0.08),
        inset 0 5px 8px rgba(255, 255, 255, 0.46);
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.letter:hover {
    transform: none;
    box-shadow:
        0 12px 22px rgba(0, 0, 0, 0.28),
        0 0 14px rgba(105, 221, 173, 0.2);
}

.letter-points {
    bottom: 4px;
    right: 5px;
    font-size: 10px;
    font-weight: 800;
    color: #7c7668;
}

.letter.selected {
    background:
        linear-gradient(180deg, rgba(234, 184, 91, 0.98), rgba(169, 121, 44, 0.96)),
        #d6a24f;
    color: #fffaf1;
    box-shadow:
        0 12px 22px rgba(0, 0, 0, 0.3),
        0 0 24px rgba(214, 162, 79, 0.34);
}

.letter.selected .letter-points {
    color: rgba(255, 248, 239, 0.84);
}

.letter .ripple {
    background: radial-gradient(circle, rgba(243, 237, 220, 0.92) 0%, rgba(243, 237, 220, 0) 72%);
}

.letter-relic-marker {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 247, 223, 0.84);
    font-size: 0.6rem;
    font-weight: 900;
    line-height: 1;
    box-shadow:
        0 0 0 2px rgba(10, 18, 16, 0.72),
        0 0 16px rgba(105, 221, 173, 0.26);
}

.letter-relic-marker.is-common {
    background: radial-gradient(circle at 35% 35%, #f8f0c8, #c89b4f 72%);
    color: #24160d;
}

.letter-relic-marker.is-rare {
    background: radial-gradient(circle at 35% 35%, #d9fff3, #4eb88d 72%);
    color: #083025;
}

.letter-relic-marker.is-epic {
    background: radial-gradient(circle at 35% 35%, #eef0ff, #6d7dd6 72%);
    color: #f6f7ff;
}

.particle {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

.word-builder {
    max-width: none;
    gap: 14px;
    align-items: stretch;
}

.word-display-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
}

.word-display {
    min-height: 74px;
    width: 100%;
    padding: 18px 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(214, 162, 79, 0.96), rgba(139, 102, 45, 0.92));
    color: #fffaf0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.word-display.is-empty {
    justify-content: flex-start;
    letter-spacing: 0.12em;
    color: rgba(255, 248, 239, 0.82);
}

.word-display.valid {
    background: linear-gradient(180deg, rgba(214, 162, 79, 0.96), rgba(139, 102, 45, 0.92));
}

.word-display.invalid {
    background: linear-gradient(180deg, rgba(139, 60, 60, 0.96), rgba(92, 33, 33, 0.92));
}

.word-display:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
}

.control-buttons {
    justify-content: flex-start;
    gap: 12px;
}

.btn {
    padding: 12px 18px;
    border-radius: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.16);
}

.session-btn,
.session-confirm-btn {
    background: linear-gradient(180deg, rgba(52, 68, 62, 0.94), rgba(29, 40, 36, 0.94));
}

.session-btn:hover,
.session-confirm-btn:hover {
    background: linear-gradient(180deg, rgba(66, 84, 77, 0.98), rgba(36, 48, 43, 0.96));
}

.clear-btn {
    background: linear-gradient(180deg, rgba(106, 53, 53, 0.98), rgba(72, 30, 30, 0.96));
}

.clear-btn:hover {
    background: linear-gradient(180deg, rgba(124, 61, 61, 0.98), rgba(82, 34, 34, 0.96));
}

.icon-btn {
    width: 74px;
    min-width: 74px;
    min-height: 74px;
    padding: 0;
}

.icon-btn svg {
    width: 22px;
    height: 22px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.score-header {
    display: block;
    margin-bottom: 12px;
    margin-left: 6px;
    padding-top: 8px;
    padding-bottom: 0;
    border-bottom: none;
}

.score-header h3,
.latest-runs-header h3 {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

.score-copy {
    margin-top: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
    max-height: 180px;
    overflow-y: auto;
    padding: 0;
}

.word-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #f5efe1;
    font-size: 0.92rem;
    font-weight: 700;
}

.word-item-points {
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(214, 162, 79, 0.98), rgba(139, 102, 45, 0.94));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

.latest-runs-panel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-menu-panel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.latest-runs-header {
    margin-bottom: 12px;
    margin-left: 6px;
}

.sidebar-menu-header {
    margin-bottom: 12px;
    margin-left: 6px;
}

.sidebar-menu-header h3 {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

.sidebar-collectibles-btn {
    width: 100%;
    justify-content: center;
}

.relic-vault-dust {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.relic-vault-dust span {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ccb891;
}

.relic-vault-dust strong {
    font-size: 0.84rem;
    font-weight: 800;
    color: #f4ddb0;
}

.latest-runs-list {
    gap: 10px;
}

.relic-vault-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
}

.latest-run-item {
    min-height: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.relic-vault-item,
.relic-vault-empty {
    min-height: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.relic-vault-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.relic-vault-identity,
.session-summary-relic-identity {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.relic-icon {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.relic-vault-icon {
    width: 42px;
    height: 42px;
}

.relic-vault-name {
    color: #f0eadc;
    font-weight: 800;
}

.relic-vault-rarity {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.relic-vault-rarity.is-common {
    background: linear-gradient(180deg, #d9b46d, #9a6e37);
    color: #261810;
}

.relic-vault-rarity.is-rare {
    background: linear-gradient(180deg, rgba(74, 164, 130, 0.98), rgba(35, 100, 77, 0.94));
    color: #effff8;
}

.relic-vault-rarity.is-epic {
    background: linear-gradient(180deg, rgba(109, 125, 214, 0.98), rgba(63, 74, 141, 0.94));
    color: #f2f4ff;
}

.relic-vault-rarity.is-legendary {
    background: linear-gradient(180deg, #f7c468, #8f2a2f);
    color: #fff4d9;
}

.relic-vault-rarity.is-mythical {
    background: linear-gradient(180deg, #cfffff, #21718a);
    color: #041218;
}

.relic-vault-empty {
    margin: 0;
    color: #ccbda1;
}

.latest-run-label {
    color: #f0eadc;
}

.latest-run-prefix {
    color: var(--text-light);
}

.latest-run-item.is-player .latest-run-label,
.latest-run-score {
    color: var(--primary);
}

.message-container {
    top: 24px;
    max-width: 460px;
}

.message {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(214, 162, 79, 0.98), rgba(139, 102, 45, 0.94));
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
}

.message.success {
    background: linear-gradient(180deg, rgba(214, 162, 79, 0.98), rgba(139, 102, 45, 0.94));
}

.message.error {
    background: linear-gradient(180deg, rgba(135, 62, 62, 0.98), rgba(82, 33, 33, 0.96));
}

.message.checking {
    background: linear-gradient(180deg, rgba(44, 122, 102, 0.98), rgba(34, 93, 79, 0.96));
}

.message.relic-success {
    background: linear-gradient(180deg, rgba(86, 185, 129, 0.98), rgba(37, 110, 72, 0.96));
    color: #effff5;
}

.start-overlay,
.collectibles-overlay,
.session-summary-overlay {
    background:
        radial-gradient(circle at top, rgba(214, 162, 79, 0.16), transparent 42%),
        rgba(8, 14, 12, 0.7);
}

.start-card,
.collectibles-card,
.session-summary-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 18%),
        rgba(18, 31, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
    color: var(--text);
}

.start-card {
    position: relative;
    padding-bottom: 36px;
}

.start-card h1,
.collectibles-card h2,
.session-summary-card h2 {
    font-family: var(--font-display);
    color: #f4efe3;
}

.start-copy {
    color: var(--text-light);
    white-space: normal;
}

.language-option {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 18%),
        rgba(13, 22, 20, 0.74);
    color: var(--text);
}

.language-option:hover {
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
    border-color: rgba(105, 221, 173, 0.24);
}

.start-version {
    position: absolute;
    right: 18px;
    bottom: 10px;
    margin-top: 0;
    text-align: right;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(181, 171, 146, 0.72);
}

.language-helper {
    color: var(--text-light);
}

.session-summary-close,
.collectibles-close {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.session-summary-close:hover,
.collectibles-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.session-summary-line {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        rgba(13, 22, 20, 0.66);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

@media (max-width: 980px) {
    .game-header,
    .game-layout {
        grid-template-columns: 1fr;
        display: grid;
    }

    .game-header {
        align-items: start;
    }

    .header-stats {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .bowl-of-words-game {
        padding: 18px 14px 28px;
    }

    .header-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-container,
    .score-board {
        padding: 16px;
    }

    .control-buttons {
        justify-content: stretch;
    }

    .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 480px) {
    .game-header h2 {
        font-size: 2.8rem;
    }

    .header-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        padding: 3px 6px;
    }

    .header-stat {
        padding: 4px 8px 5px;
        border-radius: 0;
    }

    .header-stat span {
        font-size: 0.5rem;
        letter-spacing: 0.08em;
    }

    .header-stat strong {
        margin-top: 2px;
        font-size: 0.92rem;
    }

    .word-display {
        min-height: 62px;
        padding: 14px 18px;
        font-size: 1.25rem;
        letter-spacing: 0.18em;
    }

    .word-display-row {
        gap: 10px;
    }

    .icon-btn {
        width: 62px;
        min-width: 62px;
        min-height: 62px;
    }

    .letter {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
}

/* Mystic Grimoire art direction override */

body {
    background:
        radial-gradient(circle at 12% 28%, rgba(244, 191, 96, 0.18), transparent 10%),
        radial-gradient(circle at 84% 24%, rgba(82, 228, 164, 0.18), transparent 12%),
        radial-gradient(circle at 86% 78%, rgba(92, 154, 255, 0.12), transparent 10%),
        linear-gradient(180deg, rgba(12, 9, 7, 0.52), rgba(10, 8, 7, 0.74)),
        linear-gradient(90deg, #35251c 0 17%, #241812 17% 34%, #38271e 34% 55%, #1f1510 55% 71%, #32231b 71% 100%);
}

body::before {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background:
        linear-gradient(180deg, transparent 10%, rgba(20, 12, 9, 0.42) 10% 12%, transparent 12% 46%, rgba(20, 12, 9, 0.42) 46% 48%, transparent 48% 82%, rgba(20, 12, 9, 0.42) 82% 84%, transparent 84%),
        repeating-linear-gradient(90deg, rgba(96, 66, 46, 0.14) 0 8px, rgba(38, 25, 18, 0.08) 8px 18px);
    filter: blur(1.5px);
    opacity: 0.82;
}

body::after {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background:
        radial-gradient(circle at 11% 26%, rgba(255, 212, 128, 0.34), transparent 8%),
        radial-gradient(circle at 84% 22%, rgba(91, 239, 176, 0.22), transparent 8%),
        radial-gradient(circle at 90% 28%, rgba(93, 178, 255, 0.16), transparent 6%),
        radial-gradient(circle at 78% 80%, rgba(90, 239, 160, 0.16), transparent 7%);
    filter: blur(24px);
    opacity: 0.84;
}

.bowl-of-words-game {
    max-width: 1200px;
    padding: 28px 24px 40px;
}

.bowl-of-words-game.is-input-blocked {
    pointer-events: none;
    user-select: none;
}

.game-header h2 {
    color: #e0c18a;
    text-shadow: 0 2px 0 #5f4223, 0 14px 26px rgba(0, 0, 0, 0.38);
}

.header-stats {
    width: min(100%, 520px);
    gap: 0;
    padding: 4px 8px;
    border-radius: 18px;
    border: 1px solid rgba(204, 164, 94, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
        linear-gradient(180deg, rgba(9, 13, 13, 0.96), rgba(18, 24, 22, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 16px 30px rgba(0, 0, 0, 0.22);
}

.header-stat {
    padding: 4px 14px 5px;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.header-stat + .header-stat {
    border-left: 1px solid rgba(204, 164, 94, 0.18);
}

.header-stat span {
    color: #cab791;
    font-size: 0.56rem;
    letter-spacing: 0.14em;
}

.header-stat strong {
    color: #f4dfb2;
    margin-top: 2px;
    font-size: 1rem;
}

.game-container,
.score-board,
.start-card,
.collectibles-card,
.session-summary-card {
    isolation: isolate;
    border-color: rgba(204, 164, 94, 0.3);
    background:
        radial-gradient(circle at 50% 14%, rgba(89, 226, 164, 0.08), transparent 16%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 24%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 10px),
        linear-gradient(180deg, #17392f 0%, #123128 58%, #0d241e 100%);
    box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.game-container::before,
.score-board::before,
.start-card::before,
.collectibles-card::before,
.session-summary-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: inherit;
    border: 1px solid rgba(208, 171, 102, 0.22);
    pointer-events: none;
    z-index: 0;
}

.game-container > *,
.score-board > *,
.start-card > *,
.collectibles-card > *,
.session-summary-card > * {
    position: relative;
    z-index: 1;
}

.start-overlay,
.collectibles-overlay,
.session-summary-overlay {
    background:
        radial-gradient(circle at 12% 24%, rgba(244, 191, 96, 0.16), transparent 14%),
        radial-gradient(circle at 85% 22%, rgba(82, 228, 164, 0.16), transparent 14%),
        rgba(6, 6, 5, 0.56);
}

.start-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 396px);
    padding: 32px 22px 24px;
    border-radius: 20px;
}

.collectibles-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 940px);
    max-height: min(84vh, 820px);
    padding: 32px 22px 22px;
    border-radius: 24px;
    overflow: hidden;
    text-align: left;
}

.session-summary-card {
    border-radius: 20px;
    padding: 34px 24px 28px;
}

.start-card h1 {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 52px;
    font-size: clamp(2.45rem, 9vw, 3.7rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    color: #e5c78b;
    text-shadow: 0 2px 0 #5e4122, 0 14px 26px rgba(0, 0, 0, 0.38);
}

.start-card h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 92px;
    height: 92px;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1px solid rgba(214, 178, 110, 0.42);
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 44%),
        repeating-conic-gradient(from 0deg, rgba(214, 178, 110, 0) 0 16deg, rgba(214, 178, 110, 0.3) 16deg 20deg, rgba(214, 178, 110, 0) 20deg 36deg);
    box-shadow:
        0 0 0 6px rgba(214, 178, 110, 0.08),
        inset 0 0 18px rgba(255, 255, 255, 0.05),
        0 0 24px rgba(92, 211, 154, 0.12);
    opacity: 0.9;
}

.collectibles-card h2,
.session-summary-card h2 {
    color: #e5c78b;
    text-shadow: 0 2px 0 #5e4122, 0 10px 20px rgba(0, 0, 0, 0.28);
}

.start-collectibles-btn,
.sidebar-collectibles-btn {
    width: 100%;
    border: 1px solid rgba(208, 169, 98, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(10, 15, 16, 0.96), rgba(7, 11, 12, 0.92));
    color: #ebd2a0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 24px rgba(0, 0, 0, 0.24);
}

.start-collectibles-btn {
    margin-top: 18px;
}

.sidebar-collectibles-btn {
    margin-top: 4px;
}

.start-collectibles-btn:hover,
.sidebar-collectibles-btn:hover {
    border-color: rgba(93, 214, 155, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
        linear-gradient(180deg, rgba(12, 19, 20, 0.98), rgba(8, 13, 14, 0.96));
}

.collectibles-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding-right: 44px;
}

.collectibles-copy h2 {
    margin: 4px 0 0;
}

.collectibles-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 10px;
}

.session-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-right: 44px;
    text-align: left;
}

.session-summary-copy h2 {
    margin: 4px 0 0;
}

.collectibles-kicker,
.collectibles-group-header h3,
.session-summary-kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ceb98f;
}

.session-summary-kicker {
    display: block;
}

.session-summary-kicker::before {
    content: none;
}

.collectibles-ownership-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(208, 169, 98, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(8, 12, 13, 0.88), rgba(12, 18, 18, 0.84));
    color: #d9c9a6;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.collectibles-ownership-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(103, 227, 169, 0.24);
}

.collectibles-ownership-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.collectibles-ownership-toggle-box {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(208, 169, 98, 0.24);
    background: rgba(5, 8, 10, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    flex: 0 0 auto;
}

.collectibles-ownership-toggle-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #0d2a20;
    border-bottom: 2px solid #0d2a20;
    transform: rotate(42deg);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.collectibles-ownership-toggle-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.collectibles-ownership-toggle input:checked + .collectibles-ownership-toggle-box {
    border-color: rgba(103, 227, 169, 0.36);
    background: linear-gradient(180deg, #8ae4b5, #4ea66f);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 0 18px rgba(103, 227, 169, 0.14);
}

.collectibles-ownership-toggle input:checked + .collectibles-ownership-toggle-box::after {
    opacity: 1;
}

.collectibles-ownership-toggle:has(input:checked) {
    border-color: rgba(103, 227, 169, 0.3);
    color: #e9fff2;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 18px rgba(0, 0, 0, 0.16);
}

.collectibles-ownership-toggle:has(input:focus-visible) {
    outline: none;
    box-shadow:
        0 0 0 2px rgba(97, 168, 255, 0.22),
        0 10px 18px rgba(0, 0, 0, 0.16);
}

.collectibles-dust {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(208, 169, 98, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(7, 11, 13, 0.86), rgba(14, 22, 22, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.collectibles-dust span {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ccb891;
}

.collectibles-dust strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: #f4ddb0;
}

.collectibles-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.collectibles-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(208, 169, 98, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(8, 12, 13, 0.88), rgba(12, 18, 18, 0.84));
    color: #d9c9a6;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.collectibles-filter-btn:hover {
    transform: translateY(-1px);
}

.collectibles-filter-btn.is-active {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 18px rgba(0, 0, 0, 0.16);
}

.collectibles-filter-btn.is-all.is-active {
    border-color: rgba(208, 169, 98, 0.38);
    color: #f0ddba;
}

.collectibles-filter-btn.is-common.is-active {
    border-color: rgba(217, 180, 109, 0.42);
    color: #f2ddb1;
}

.collectibles-filter-btn.is-rare.is-active {
    border-color: rgba(93, 214, 155, 0.42);
    color: #ddfff1;
}

.collectibles-filter-btn.is-epic.is-active {
    border-color: rgba(122, 135, 232, 0.46);
    color: #edf0ff;
}

.collectibles-filter-btn.is-legendary.is-active {
    border-color: rgba(246, 179, 94, 0.5);
    color: #fff0cf;
}

.collectibles-filter-btn.is-mythical.is-active {
    border-color: rgba(97, 216, 248, 0.52);
    color: #e4ffff;
}

.collectibles-filter-label,
.collectibles-filter-count {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.collectibles-filter-label {
    opacity: 0.94;
}

.collectibles-filter-count {
    opacity: 0.82;
}

.collectibles-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.collectibles-empty-state {
    margin: 0;
    padding: 18px 16px;
    border-radius: 18px;
    border: 1px solid rgba(208, 169, 98, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(7, 11, 13, 0.86), rgba(14, 22, 22, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #d2c5a8;
    text-align: center;
}

.collectibles-group {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(208, 169, 98, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(7, 11, 13, 0.86), rgba(14, 22, 22, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.collectibles-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.collectibles-group-header span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d5c39b;
}

.collectibles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
    gap: 12px;
    overflow: visible;
}

.collectible-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 154px;
    padding: 14px 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(208, 169, 98, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(10, 15, 16, 0.92), rgba(7, 11, 12, 0.88));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 12px 24px rgba(0, 0, 0, 0.18);
    text-align: center;
    cursor: pointer;
    overflow: visible;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.collectible-card:hover {
    transform: translateY(-1px);
}

.collectible-card:focus-visible {
    outline: none;
    border-color: rgba(208, 169, 98, 0.36);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 12px 24px rgba(0, 0, 0, 0.18),
        0 0 0 2px rgba(97, 168, 255, 0.24);
}

.collectible-card.has-hint-open {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 28px rgba(0, 0, 0, 0.22);
}

.collectible-card.is-owned {
    border-color: rgba(208, 169, 98, 0.22);
}

.collectible-card[data-rarity="rare"].is-owned {
    border-color: rgba(93, 214, 155, 0.34);
}

.collectible-card[data-rarity="epic"].is-owned {
    border-color: rgba(118, 128, 218, 0.38);
}

.collectible-card[data-rarity="legendary"].is-owned {
    border-color: rgba(246, 179, 94, 0.42);
}

.collectible-card[data-rarity="mythical"].is-owned {
    border-color: rgba(97, 216, 248, 0.46);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 12px 24px rgba(0, 0, 0, 0.18),
        0 0 20px rgba(97, 216, 248, 0.14);
}

.collectible-card.is-locked {
    border-color: rgba(177, 170, 152, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%),
        linear-gradient(180deg, rgba(14, 18, 19, 0.9), rgba(9, 12, 13, 0.88));
}

.collectible-icon-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
}

.collectible-icon {
    width: 72px;
    height: 72px;
}

.collectible-name {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    color: #f1dfbc;
}

.collectible-card.is-locked .collectible-icon {
    filter: grayscale(1) brightness(0.4) contrast(0.92);
    opacity: 0.82;
}

.collectible-card.is-locked .collectible-name {
    color: rgba(195, 188, 173, 0.62);
}

.collectibles-hint-layer {
    position: absolute;
    inset: 0;
    z-index: 24;
    pointer-events: none;
}

.collectibles-hint-dialog {
    position: absolute;
    width: min(260px, calc(100vw - 80px));
    max-width: calc(100% - 32px);
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(208, 169, 98, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 20%),
        linear-gradient(180deg, rgba(6, 10, 11, 0.98), rgba(10, 15, 16, 0.96));
    box-shadow:
        0 20px 34px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    pointer-events: auto;
    animation: collectibles-hint-pop 0.16s ease;
}

.collectibles-hint-dialog-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.collectibles-hint-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(97, 168, 255, 0.44);
    background: rgba(17, 48, 74, 0.62);
    color: #beddff;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    flex: 0 0 auto;
}

.collectibles-hint-title {
    color: #f2dfb8;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.25;
}

.collectibles-hint-text {
    margin: 0;
    color: #ddd2b7;
    font-size: 0.74rem;
    line-height: 1.4;
    text-align: left;
}

@keyframes collectibles-hint-pop {
    from {
        opacity: 0;
        transform: translateY(4px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.session-summary-relics {
    margin-top: 18px;
}

.session-summary-relics h3 {
    margin: 0 0 10px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ceb98f;
}

.session-summary-relics-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.session-summary-relic-item,
.session-summary-relic-empty {
    border: 1px solid rgba(208, 169, 98, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(7, 11, 13, 0.86), rgba(14, 22, 22, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.session-summary-relic-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
}

.session-summary-relic-name {
    font-weight: 800;
    color: #f1dfbc;
}

.session-summary-relic-icon {
    width: 40px;
    height: 40px;
}

.session-summary-relic-reward {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.session-summary-relic-reward.is-new {
    background: linear-gradient(180deg, #d9b46d, #9a6e37);
    color: #261810;
}

.session-summary-relic-reward.is-dust {
    background: linear-gradient(180deg, rgba(45, 118, 94, 0.96), rgba(23, 67, 53, 0.94));
    color: #ebfff4;
}

.session-summary-relic-empty {
    margin: 0;
    padding: 12px 14px;
    border-radius: 16px;
    color: #ccbda1;
}

.language-options {
    gap: 14px;
}

.language-option {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 88px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(212, 174, 107, 0.24);
    background:
        radial-gradient(circle at 86% 22%, rgba(110, 232, 176, 0.16), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
        linear-gradient(180deg, rgba(3, 6, 9, 0.96), rgba(10, 16, 16, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 14px 28px rgba(0, 0, 0, 0.28),
        0 0 0 2px rgba(38, 54, 47, 0.34);
    overflow: hidden;
    text-align: left;
}

.language-option::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0 58%, rgba(255, 255, 255, 0.03) 58% 68%, transparent 68%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%);
    pointer-events: none;
}

.language-option[data-language-choice="ru"] {
    background:
        radial-gradient(circle at 86% 22%, rgba(133, 182, 255, 0.17), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
        linear-gradient(180deg, rgba(4, 7, 10, 0.96), rgba(10, 15, 18, 0.92));
    border-color: rgba(170, 188, 221, 0.22);
}

.language-option:hover {
    transform: translateY(-2px);
    border-color: rgba(103, 227, 169, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 30px rgba(0, 0, 0, 0.3),
        0 0 24px rgba(93, 214, 155, 0.12);
}

.language-option[data-language-choice="ru"]:hover {
    border-color: rgba(141, 182, 255, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 30px rgba(0, 0, 0, 0.3),
        0 0 24px rgba(132, 174, 255, 0.12);
}

.language-option:focus-visible {
    outline: none;
    border-color: rgba(214, 191, 116, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 30px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(97, 168, 255, 0.24),
        0 0 24px rgba(214, 191, 116, 0.14);
}

.language-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.language-option-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.36),
        0 10px 16px rgba(0, 0, 0, 0.24);
    z-index: 1;
}

.language-option-icon::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.16);
    opacity: 0.9;
}

.language-option-icon--en {
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.34), transparent 30%),
        linear-gradient(180deg, #f0d9a4, #a56e34);
    color: #2a4339;
}

.language-option-icon--ru {
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.34), transparent 30%),
        linear-gradient(180deg, #d7dff6, #728bb8);
    color: #233145;
}

.language-option-icon svg {
    width: 24px;
    height: 24px;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.18));
}

.language-name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #f1d7a0;
}

.language-helper {
    margin-top: 5px;
    color: #d4c6a7;
}

.start-version {
    position: static;
    align-self: flex-end;
    margin-top: 8px;
    color: rgba(231, 214, 182, 0.8);
}

.soup-bowl {
    max-width: 540px;
}

.bowl-container {
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 247, 221, 0.08), transparent 22%),
        linear-gradient(160deg, #435148, #1b221e 72%);
    box-shadow:
        0 26px 52px rgba(0, 0, 0, 0.34),
        inset 0 -14px 22px rgba(0, 0, 0, 0.24),
        inset 0 10px 18px rgba(255, 255, 255, 0.08),
        0 0 0 8px rgba(30, 40, 35, 0.86),
        0 0 0 11px rgba(190, 151, 82, 0.12);
}

.soup {
    background:
        radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.14), transparent 24%),
        radial-gradient(circle at 50% 74%, rgba(0, 0, 0, 0.16), transparent 52%),
        linear-gradient(180deg, #49d59a, #1f7c61);
    box-shadow:
        inset 0 -24px 34px rgba(0, 0, 0, 0.24),
        inset 0 14px 18px rgba(255, 255, 255, 0.12),
        0 0 34px rgba(98, 231, 173, 0.16);
}

.word-display {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(208, 169, 98, 0.3);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
        linear-gradient(180deg, rgba(4, 7, 9, 0.96), rgba(13, 21, 21, 0.92));
    color: #f4ddb0;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.52);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 2px rgba(54, 73, 64, 0.36),
        0 18px 30px rgba(0, 0, 0, 0.26);
}

.word-display.is-empty {
    color: rgba(235, 218, 182, 0.72);
}

.word-display::after {
    content: attr(data-action-hint);
    display: block;
    font-family: var(--font-ui);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(234, 250, 239, 0.86);
    opacity: 0;
    pointer-events: none;
}

.word-display.ready::after,
.word-display.valid::after {
    opacity: 1;
}

.word-display.ready {
    border-color: rgba(93, 214, 155, 0.36);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
        linear-gradient(180deg, rgba(24, 67, 55, 0.96), rgba(12, 38, 31, 0.92));
    color: #ecf8ee;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 2px rgba(54, 73, 64, 0.36),
        0 0 18px rgba(93, 214, 155, 0.12),
        0 18px 30px rgba(0, 0, 0, 0.26);
    animation: word-display-ready-pulse 1.4s ease-in-out infinite;
}

.word-display.valid {
    border-color: rgba(104, 225, 170, 0.42);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 18%),
        linear-gradient(180deg, rgba(29, 84, 67, 0.98), rgba(14, 49, 39, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 2px rgba(54, 73, 64, 0.36),
        0 0 24px rgba(93, 214, 155, 0.2),
        0 18px 30px rgba(0, 0, 0, 0.26);
}

.word-display.invalid {
    border-color: rgba(157, 74, 74, 0.38);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(43, 12, 14, 0.96), rgba(25, 8, 10, 0.92));
    color: #efc1bf;
    animation: none;
}

@keyframes word-display-ready-pulse {
    0%, 100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 0 0 2px rgba(54, 73, 64, 0.36),
            0 0 18px rgba(93, 214, 155, 0.12),
            0 18px 30px rgba(0, 0, 0, 0.26);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 0 2px rgba(54, 73, 64, 0.4),
            0 0 28px rgba(93, 214, 155, 0.22),
            0 18px 30px rgba(0, 0, 0, 0.26);
    }
}

.btn {
    font-family: var(--font-display);
    letter-spacing: 0.01em;
}

.session-btn,
.session-confirm-btn {
    border: 1px solid rgba(244, 224, 180, 0.34);
    background: linear-gradient(180deg, #d9b46d, #9a6e37);
    color: #261810;
    text-shadow: 0 1px 0 rgba(255, 247, 224, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 14px 24px rgba(0, 0, 0, 0.24);
}

.session-btn:hover,
.session-confirm-btn:hover {
    background: linear-gradient(180deg, #e0bf82, #a97a42);
}

.clear-btn {
    border: 1px solid rgba(208, 169, 98, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(14, 19, 19, 0.96), rgba(9, 12, 13, 0.94));
    color: #e0c188;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 14px 24px rgba(0, 0, 0, 0.28);
}

.clear-btn:hover {
    border-color: rgba(103, 227, 169, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
        linear-gradient(180deg, rgba(17, 24, 23, 0.98), rgba(11, 15, 15, 0.96));
}

.score-header h3,
.latest-runs-header h3,
.relic-vault-header h3,
.session-summary-kicker {
    color: #ceb98f;
}

.score-copy {
    color: #ccbda1;
}

.word-item,
.latest-run-item,
.session-summary-line {
    border: 1px solid rgba(208, 169, 98, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(7, 11, 13, 0.86), rgba(14, 22, 22, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.word-item {
    border-radius: 14px;
}

.word-item-points {
    color: #24160e;
    text-shadow: 0 1px 0 rgba(255, 245, 219, 0.3);
}

.latest-runs-panel {
    border-top-color: rgba(208, 169, 98, 0.12);
}

.sidebar-menu-panel {
    border-top-color: rgba(208, 169, 98, 0.12);
}

.latest-run-label {
    color: #f1dfbc;
}

.relic-vault-dust {
    border: 1px solid rgba(208, 169, 98, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(7, 11, 13, 0.86), rgba(14, 22, 22, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.relic-vault-name {
    color: #f1dfbc;
}

.latest-run-prefix {
    color: #c6b694;
}

.latest-run-item.is-player .latest-run-label,
.latest-run-score {
    color: #e3bf75;
}

.message {
    border: 1px solid rgba(244, 224, 180, 0.24);
    color: #22150d;
}

.message.error {
    color: #f3d3cf;
}

.session-summary-close,
.collectibles-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(208, 169, 98, 0.18);
    color: #e0c188;
}

@media (max-width: 980px) {
    .header-copy {
        text-align: center;
    }

    .relics-status {
        margin-left: auto;
        margin-right: auto;
    }

    .header-stats {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bowl-of-words-game {
        padding: 18px 14px 28px;
    }

    .start-card {
        width: min(100%, 360px);
        padding: 28px 18px 20px;
    }

    .collectibles-card {
        width: min(100%, 380px);
        max-height: min(84vh, 760px);
        padding: 28px 18px 18px;
    }

    .start-card h1 {
        margin-bottom: 24px;
        padding-bottom: 44px;
        font-size: 2.9rem;
    }

    .start-card h1::after {
        width: 78px;
        height: 78px;
    }

    .language-option {
        grid-template-columns: 42px minmax(0, 1fr);
        min-height: 78px;
        padding: 14px 14px;
        gap: 12px;
    }

    .language-option-icon {
        width: 40px;
        height: 40px;
    }

    .language-name {
        font-size: 1.28rem;
    }

    .language-option-icon svg {
        width: 22px;
        height: 22px;
    }

    .collectibles-header {
        flex-direction: column;
        align-items: stretch;
        padding-right: 38px;
        margin-bottom: 14px;
    }

    .collectibles-controls {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .collectibles-filters {
        justify-content: flex-start;
    }

    .collectibles-filter-btn {
        min-height: 34px;
        padding: 6px 9px;
        gap: 6px;
    }

    .collectibles-filter-label,
    .collectibles-filter-count {
        font-size: 0.62rem;
    }

    .collectibles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collectible-card {
        min-height: 142px;
        padding: 12px 8px 10px;
    }

    .collectible-icon-shell {
        width: 72px;
        height: 72px;
    }

    .collectible-icon {
        width: 66px;
        height: 66px;
    }

    .collectible-name {
        font-size: 0.82rem;
    }

    .collectibles-hint-dialog {
        width: min(228px, calc(100vw - 56px));
        padding: 11px 12px;
    }

    .collectibles-hint-dialog-header {
        gap: 8px;
        margin-bottom: 7px;
    }

    .collectibles-hint-info-icon {
        width: 20px;
        height: 20px;
        font-size: 0.76rem;
    }

    .collectibles-hint-title {
        font-size: 0.76rem;
    }

    .collectibles-hint-text {
        font-size: 0.7rem;
    }

    .relics-status {
        margin-top: 8px;
        padding: 6px 10px;
    }

    .relics-status span {
        font-size: 0.58rem;
    }

    .relics-status strong {
        font-size: 0.8rem;
    }
}
