* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Trebuchet MS', 'Segoe UI', Arial, Helvetica, sans-serif;
    /* Warm market-brown base that blends with the photo edges on any viewport. */
    background: radial-gradient(circle at 50% 0%, #4a1405 0%, #1c0600 60%, #0a0200 100%);
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
    user-select: none;
    touch-action: manipulation;
}

/* Full-viewport market backdrop: the photo covers the entire window on every
   device (portrait phone, tablet, desktop, ultra-wide) with no letterboxing.
   A fixed layer sits behind the stage so the canvas floats over the photo. */
.app-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('https://lh3.googleusercontent.com/d/1ZoulifHUN5v0l9xjMVH5Aj4UUuj7qDky');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Atmospheric sunset tint over the photo so the centered stage reads clearly
   while the backdrop still fills edge-to-edge. */
.app-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 38%, rgba(252, 163, 17, 0.18), rgba(28, 6, 0, 0.55) 78%, rgba(10, 2, 0, 0.82));
}

#app {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Portrait 9:16 stage that holds the canvas + DOM overlays. The canvas itself
   renders the same market photo cover-fit, so the stage edges blend into the
   full-width backdrop with no harsh border. */
.stage {
    position: relative;
    width: min(100vw, calc(100dvh * 9 / 16));
    height: min(100dvh, calc(100vw * 16 / 9));
    margin: auto;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 0 60px rgba(10, 2, 0, 0.55);
}

#game-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#game-container canvas {
    display: block;
}

/* ===== HUD ===== */
#hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(28, 6, 0, 0.92), rgba(28, 6, 0, 0));
}

.level-pill {
    background: #c0392b;
    border: 2px solid #ffcf40;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 6px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.score-block {
    flex: 1;
    min-width: 0;
}

.score-num {
    font-size: 22px;
    font-weight: 900;
    color: #ffcf40;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.score-target {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 2px;
}

.progress {
    margin-top: 4px;
    height: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
    border: 1px solid rgba(255, 207, 64, 0.5);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f39c12, #ffcf40);
    transition: width 0.3s ease;
}

.stars {
    display: flex;
    gap: 2px;
    margin-top: 4px;
}

.stars.big {
    justify-content: center;
    gap: 10px;
    margin: 8px 0;
}

.star {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.stars.big .star {
    width: 48px;
    height: 48px;
}

.moves-block {
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid #ffcf40;
    border-radius: 12px;
    padding: 4px 8px;
    min-width: 52px;
}

.moves-num {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.moves-label {
    font-size: 10px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.icon-btn {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #ffcf40;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.combo-tag {
    position: absolute;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: #fff;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 20px;
    border: 2px solid #ffcf40;
    font-size: 14px;
    animation: pop 0.3s ease;
}

/* ===== Bottom booster bar ===== */
.bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(0deg, rgba(28, 6, 0, 0.94), rgba(28, 6, 0, 0));
    pointer-events: auto;
}

.booster {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    border: 2px solid #ffcf40;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease;
}

.booster img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    image-rendering: auto;
}

.booster:active {
    transform: scale(0.92);
}

.booster.active {
    border-color: #2ecc71;
    box-shadow: 0 0 14px #2ecc71;
    animation: pulse 0.8s infinite;
}

.booster-label {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
    color: #ffcf40;
}

.booster-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #c0392b;
    border: 1px solid #ffcf40;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ===== Overlays / modals ===== */
.overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at 50% 40%, rgba(74, 20, 5, 0.85), rgba(10, 2, 0, 0.94));
    backdrop-filter: blur(2px);
}

.panel {
    width: 100%;
    max-width: 380px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: linear-gradient(180deg, rgba(58, 18, 6, 0.95), rgba(28, 6, 0, 0.97));
    border: 3px solid #ffcf40;
    border-radius: 22px;
    padding: 26px 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.title-wrap {
    margin-bottom: 4px;
}

.game-title {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    color: #ffcf40;
    text-shadow: 0 3px 0 #7a2d0a, 0 4px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
}

.game-subtitle {
    margin: 6px 0 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.marquee {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 4px 0 8px;
}

.marquee-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5));
    animation: bob 2.2s ease-in-out infinite;
}

.marquee-img:nth-child(2) { animation-delay: 0.2s; }
.marquee-img:nth-child(3) { animation-delay: 0.4s; }
.marquee-img:nth-child(4) { animation-delay: 0.6s; }
.marquee-img:nth-child(5) { animation-delay: 0.8s; }
.marquee-img:nth-child(6) { animation-delay: 1s; }

.modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #ffcf40;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.modal-title.win { color: #2ecc71; }
.modal-title.over { color: #e74c3c; }

.modal-score {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.modal-hint {
    margin: -6px 0 0;
    font-size: 13px;
    opacity: 0.8;
}

.help-list {
    text-align: left;
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.help-list li {
    margin-bottom: 8px;
}

/* ===== Buttons ===== */
.btn {
    pointer-events: auto;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    color: #fff;
    transition: transform 0.1s ease, filter 0.15s ease;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(180deg, #f39c12, #c0392b);
    border: 2px solid #ffcf40;
    box-shadow: 0 5px 0 #7a1f12, 0 8px 16px rgba(0, 0, 0, 0.4);
    font-size: 18px;
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-ghost {
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 207, 64, 0.6);
    color: #ffcf40;
}

.level-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-level {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #ffcf40;
    padding: 10px 4px;
    font-size: 13px;
}

/* ===== Animations ===== */
@keyframes pop {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 8px #2ecc71; }
    50% { box-shadow: 0 0 18px #2ecc71; }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* =========================================================================
   STORY CAMPAIGN — carved African hardwood panels, gold rims, speech
   bubbles, objective chips, the pulsing Oya-Cook CTA and the stall map.
   ========================================================================= */

/* Menu cowrie bank line. */
.menu-cowrie {
    align-self: center;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #ffcf40;
    color: #ffcf40;
    font-weight: 900;
    font-size: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* ===== Campaign stall map grid ===== */
.campaign-map {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    width: 100%;
    margin: 4px 0;
}

.stall-card {
    position: relative;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px 10px;
    border-radius: 16px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    background: linear-gradient(180deg, #4d2310 0%, #2e1205 100%);
    border: 3px solid #ffcf40;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 207, 64, 0.25);
    transition: transform 0.12s ease, filter 0.15s ease;
    min-height: 96px;
}

.stall-card:hover { filter: brightness(1.1); }
.stall-card:active { transform: scale(0.95); }

.stall-card.locked {
    filter: grayscale(0.7) brightness(0.6);
    cursor: not-allowed;
    border-color: rgba(255, 207, 64, 0.4);
}

.stall-num {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 12px;
    font-weight: 900;
    color: #ffcf40;
    opacity: 0.85;
}

.stall-name {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    margin-top: 6px;
}

.stall-avatar { font-size: 26px; line-height: 1; }

.stall-stars { display: flex; gap: 2px; }
.stall-lock { position: absolute; top: 6px; right: 8px; font-size: 14px; }

.star.small { width: 14px; height: 14px; }
.star.big { width: 54px; height: 54px; }

/* ===== Endless + Back buttons ===== */
.btn-endless {
    background: linear-gradient(180deg, #16a085, #0e6655);
    border: 2px solid #ffcf40;
    box-shadow: 0 5px 0 #0b4a3d, 0 8px 16px rgba(0, 0, 0, 0.4);
    font-size: 16px;
}

.btn-back { margin-top: 2px; font-size: 13px; padding: 10px 14px; }

/* ===== Story overlay + carved card ===== */
.story-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
}

#story-briefing-modal,
.carved-card {
    width: 100%;
    max-width: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    background: linear-gradient(180deg, #4d2310 0%, #2e1205 100%);
    border: 4px solid #ffcf40;
    border-radius: 24px;
    padding: 22px 18px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.7),
        inset 0 2px 0 rgba(255, 207, 64, 0.3),
        inset 0 -6px 18px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* subtle carved wood grain via repeating gradient overlay */
.carved-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 18px;
    border: 1px solid rgba(255, 207, 64, 0.18);
    pointer-events: none;
}

.chapter-pill {
    align-self: center;
    background: #0e6655;
    color: #eafff8;
    border: 2px solid #1abc9c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

.level-title-glow {
    margin: 0;
    font-size: 23px;
    font-weight: 900;
    color: #ffcf40;
    text-shadow: 0 0 12px rgba(255, 207, 64, 0.6), 0 3px 0 #7a2d0a;
    line-height: 1.1;
}

/* ===== Character row ===== */
.character-row {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.char-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: radial-gradient(circle at 50% 35%, #6b3a1a, #2e1205);
    border: 3px solid #ffcf40;
    box-shadow: 0 0 14px rgba(255, 207, 64, 0.5);
}

.char-meta { min-width: 0; }
.char-name {
    font-size: 16px;
    font-weight: 900;
    color: #ffcf40;
    line-height: 1.1;
}
.char-role {
    font-size: 11px;
    font-weight: 700;
    color: #e8a25a;
    line-height: 1.2;
    margin-top: 2px;
}

.char-tagline {
    margin: 0;
    font-size: 12px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Speech bubble (carved dark wood) ===== */
.speech-bubble {
    position: relative;
    background: #2c1409;
    border: 2px solid rgba(255, 207, 64, 0.4);
    border-radius: 16px;
    padding: 14px 16px 12px;
    text-align: left;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 34px;
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #2c1409 transparent;
}

.quote-mark {
    position: absolute;
    top: -6px;
    right: 12px;
    font-size: 40px;
    font-weight: 900;
    color: rgba(255, 207, 64, 0.45);
    line-height: 1;
}

.bubble-text {
    margin: 0;
    font-size: 13.5px;
    font-style: italic;
    line-height: 1.5;
    color: #fff4e0;
}

/* ===== Objective chips row ===== */
.objective-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.obj-pill {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #ffcf40;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 14px;
    white-space: nowrap;
}

/* ===== Star threshold row ===== */
.threshold-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}
.thr-label {
    font-weight: 900;
    letter-spacing: 1px;
    color: #e8a25a;
}
.thr {
    background: rgba(255, 207, 64, 0.12);
    border: 1px solid rgba(255, 207, 64, 0.4);
    border-radius: 10px;
    padding: 3px 8px;
    font-weight: 700;
}

/* ===== The pulsing OYA COOK CTA ===== */
.btn-oya-cook {
    pointer-events: auto;
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    background: linear-gradient(180deg, #2ecc71, #1e8f4e);
    border: 3px solid #ffcf40;
    box-shadow: 0 6px 0 #14603a, 0 10px 22px rgba(0, 0, 0, 0.5);
    animation: pulseCookBtn 1.4s ease-in-out infinite;
    transition: transform 0.1s ease;
}
.btn-oya-cook:active { transform: scale(0.96); }

@keyframes pulseCookBtn {
    0%, 100% { box-shadow: 0 6px 0 #14603a, 0 0 0 rgba(46, 204, 113, 0.0), 0 10px 22px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 6px 0 #14603a, 0 0 26px rgba(46, 204, 113, 0.85), 0 10px 22px rgba(0, 0, 0, 0.5); }
}

/* ===== Result cards (win / defeat) ===== */
.result-card { gap: 10px; }
.result-title {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.5px;
}
.result-title.win { color: #2ecc71; text-shadow: 0 0 14px rgba(46, 204, 113, 0.6); }
.result-title.over { color: #e74c3c; text-shadow: 0 0 14px rgba(231, 76, 60, 0.5); }

.result-score {
    font-size: 17px;
    font-weight: 900;
    color: #fff;
}

.cowrie-reward {
    align-self: center;
    background: linear-gradient(180deg, #ffcf40, #e0a010);
    color: #3a1206;
    font-weight: 900;
    font-size: 15px;
    padding: 8px 18px;
    border-radius: 20px;
    border: 2px solid #7a2d0a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: pop-in 0.4s ease;
}

@keyframes pop-in {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* stars big row inside result card */
.stars.big { justify-content: center; gap: 12px; margin: 4px 0; }

/* ===== HUD objective bar (in-game chips + cowrie bank) ===== */
.objective-bar {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    pointer-events: none;
    flex-wrap: wrap;
}

.cowrie-bank {
    background: linear-gradient(180deg, #ffcf40, #e0a010);
    color: #3a1206;
    font-weight: 900;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 16px;
    border: 2px solid #7a2d0a;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.obj-chip {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #ffcf40;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 16px;
}
.obj-chip.done {
    border-color: #2ecc71;
    color: #baffd6;
    background: rgba(30, 143, 78, 0.4);
}

/* combo tag now lives inside objective-bar; keep legacy style but reposition */
.objective-bar .combo-tag {
    position: static;
    transform: none;
    animation: none;
}

/* Responsive: shrink carved cards on very small phones. */
@media (max-width: 380px) {
    .level-title-glow { font-size: 20px; }
    .bubble-text { font-size: 12.5px; }
    .campaign-map { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

/* ==========================================================================
   SOUND SETTINGS & ABOUT MODALS
   ========================================================================== */

/* Top header bar (always visible, above HUD). */
.header-bar {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    z-index: 20;
    pointer-events: auto;
}

.header-btn {
    width: 40px;
    height: 40px;
    background: rgba(28, 6, 0, 0.7);
    border: 2px solid #ffcf40;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.15s ease;
}

.header-btn:active {
    transform: scale(0.92);
}

.header-btn:hover {
    filter: brightness(1.15);
}

/* Sound settings modal. */
.sound-panel {
    max-width: 340px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid rgba(255, 207, 64, 0.6);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.15s ease;
}

.close-btn:active {
    transform: scale(0.9);
}

.close-btn:hover {
    filter: brightness(1.15);
    border-color: #ffcf40;
}

.audio-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.audio-label {
    font-size: 14px;
    font-weight: 800;
    color: #ffcf40;
    letter-spacing: 0.3px;
}

.mute-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 14px;
    border: 2px solid #ffcf40;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.15s ease;
}

.mute-btn:active {
    transform: scale(0.95);
}

.mute-btn.muted {
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
    color: #ffb3a7;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 28px;
    background: transparent;
    cursor: pointer;
    touch-action: none;
}

.volume-slider::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 207, 64, 0.3);
    border: 1px solid rgba(255, 207, 64, 0.5);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffcf40;
    border: 2px solid #7a2d0a;
    margin-top: -8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.volume-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 207, 64, 0.3);
    border: 1px solid rgba(255, 207, 64, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffcf40;
    border: 2px solid #7a2d0a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.volume-slider:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sound-hint {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-style: italic;
}

/* About modal. */
.about-panel {
    max-width: 420px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-right: 4px;
    text-align: left;
}

.about-section h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 900;
    color: #ffcf40;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.about-section p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.about-section strong {
    color: #ffcf40;
    font-weight: 800;
}

.delicacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.delicacy-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 207, 64, 0.4);
    border-radius: 10px;
    padding: 8px;
}

.delicacy-emoji {
    font-size: 24px;
    line-height: 1;
    flex: 0 0 auto;
}

.delicacy-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.delicacy-item small {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

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

.booster-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 207, 64, 0.4);
    border-radius: 10px;
    padding: 10px;
}

.booster-emoji {
    font-size: 26px;
    line-height: 1;
    flex: 0 0 auto;
}

.booster-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.booster-item small {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

/* Menu secondary buttons row. */
.menu-secondary-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.menu-secondary-row .btn {
    flex: 1;
    font-size: 13px;
    padding: 10px 8px;
}