@font-face {
    font-family: "Yeseva One";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/YesevaOne-400.ttf") format("truetype");
}

@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/Rubik-500.ttf") format("truetype");
}

@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/Rubik-600.ttf") format("truetype");
}

@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/fonts/Rubik-700.ttf") format("truetype");
}

@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("assets/fonts/Rubik-800.ttf") format("truetype");
}

:root {
    color-scheme: light;
    --font-ui: "Rubik", "Trebuchet MS", sans-serif;
    --font-display: "Yeseva One", "Rubik", "Trebuchet MS", serif;
    --font-button: "Rubik", "Trebuchet MS", sans-serif;
    font-family: var(--font-ui);
    --ink: #204048;
    --ink-soft: rgba(32, 64, 72, 0.68);
    --panel: rgba(255, 254, 248, 0.74);
    --panel-strong: rgba(255, 252, 235, 0.88);
    --line: rgba(255, 255, 255, 0.7);
    --shadow: rgba(25, 65, 76, 0.22);
    --sun: #ffcf57;
    --sky: #6dd3ff;
    --mint: #83d98d;
    --rose: #ff8b7a;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --ui-width: clamp(390px, 29vw, 485px);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body,
#app {
    width: 100%;
    height: 100%;
    overscroll-behavior: none;
    touch-action: none;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--ink);
    background: url("assets/generated/garden-bg.png") center / cover no-repeat fixed, #83dff6;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

body::before {
    display: none;
}

body[data-promo-capture="true"] #ui-overlay .audio-controls,
body[data-promo-capture="true"] #help-btn-wrap {
    display: none !important;
}

#app {
    position: fixed;
    inset: 0;
    padding: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-shell {
    width: 100%;
    max-width: 1700px;
    height: 100%;
    max-height: 1040px;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--ui-width);
    gap: 22px;
}

#game-shell:fullscreen {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    padding: 18px;
    background: url("assets/generated/garden-bg.png") center / cover no-repeat, #83dff6;
}

#game-shell:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    padding: 18px;
    background: url("assets/generated/garden-bg.png") center / cover no-repeat, #83dff6;
}

#game-container,
#ui-overlay {
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow:
        0 26px 60px var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

#game-container canvas {
    display: block;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
}

#ui-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 5px solid #fff0d2;
    border-radius: 42px;
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.96), transparent 34%),
        linear-gradient(180deg, rgba(255, 248, 222, 0.96), rgba(255, 238, 202, 0.98));
    box-shadow:
        0 26px 56px rgba(97, 58, 25, 0.2),
        inset 0 0 0 2px rgba(255, 255, 255, 0.7),
        inset 0 -10px 24px rgba(206, 151, 80, 0.14);
}

#ui-overlay::before,
#ui-overlay::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
}

#ui-overlay::before {
    display: block;
    inset: 10px;
    border: 2px dashed rgba(225, 165, 84, 0.22);
    border-radius: 32px;
    background: none;
}

#ui-overlay::after {
    top: -12px;
    right: -12px;
    width: 118px;
    height: 124px;
    background-image: url("assets/generated/decor-vine-pink.png");
    opacity: 0.74;
    transform: rotate(16deg) scaleX(-1);
    filter: drop-shadow(0 10px 12px rgba(112, 80, 41, 0.16));
}

#ui-overlay > * {
    position: relative;
    z-index: 1;
}

#ui-overlay .audio-controls {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 4;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

#help-btn-wrap {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
}




#ui-overlay[data-stage="play"] .audio-controls,
#ui-overlay[data-stage="review"] .audio-controls,
#ui-overlay[data-stage="summary"] .audio-controls,
#ui-overlay[data-stage="leaderboard"] .audio-controls,
#ui-overlay[data-stage="album"] .audio-controls {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    z-index: 40;
}

#ui-overlay[data-stage="play"] .audio-controls,
#ui-overlay[data-stage="review"] .audio-controls,
#ui-overlay[data-stage="summary"] .audio-controls,
#ui-overlay[data-stage="leaderboard"] .audio-controls,
#ui-overlay[data-stage="album"] .audio-controls {
    left: max(12px, env(safe-area-inset-left));
}

.audio-toggle,
.shell-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.86);
    border-radius: 15px;
    background:
        radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.95), transparent 35%),
        linear-gradient(180deg, #fff8dc, #ffd985);
    color: #8a5d14;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.82),
        inset 0 -4px 0 rgba(151, 98, 18, 0.12),
        0 7px 14px rgba(102, 72, 32, 0.15);
    font-family: var(--font-button);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.audio-toggle:hover,
.shell-toggle:hover {
    transform: translateY(-2px);
    filter: brightness(1.05) saturate(1.04);
}

.audio-toggle:active,
.shell-toggle:active {
    transform: translateY(1px);
}

.audio-toggle:focus-visible,
.shell-toggle:focus-visible,
.help-panel__close:focus-visible {
    outline: 4px solid rgba(109, 211, 255, 0.78);
    outline-offset: 2px;
}

.audio-toggle[data-enabled="false"] {
    opacity: 0.62;
    filter: saturate(0.68);
}

.audio-toggle[data-enabled="false"]::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 4px;
    border-radius: 999px;
    background: #e76658;
    transform: rotate(-39deg);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* ── Music volume slider ──────────────────────────────────── */
.music-vol-wrap {
    position: relative;
}

.music-vol-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: none;
    padding: 10px 14px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.82);
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.9), transparent 40%),
        linear-gradient(180deg, #fff8dc, #ffd985);
    box-shadow:
        0 8px 24px rgba(102, 72, 32, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.music-vol-popup.open {
    display: block;
}

.music-vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f5a623 var(--vol, 55%), #e0c88a var(--vol, 55%));
    outline: none;
    cursor: pointer;
}

.music-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), transparent 50%),
        linear-gradient(180deg, #ffd24d, #e5961a);
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 3px 8px rgba(102, 72, 32, 0.28);
    cursor: pointer;
    transition: transform 120ms ease;
}

.music-vol-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.music-vol-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffd24d, #e5961a);
    border: 2px solid rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

.shell-toggle[data-active="true"] {
    color: #1f5f8d;
    background:
        radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.95), transparent 35%),
        linear-gradient(180deg, #edfaff, #b8e8ff);
}

.help-panel[hidden] {
    display: none !important;
}

.help-panel {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
}

.help-panel__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 47, 56, 0.48);
    backdrop-filter: blur(6px);
}

.help-panel__card {
    position: relative;
    width: min(760px, calc(100vw - 36px));
    max-height: calc(100dvh - 36px);
    overflow: auto;
    padding: 22px 22px 20px;
    border-radius: 28px;
    border: 4px solid rgba(255, 244, 212, 0.95);
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.98), transparent 34%),
        linear-gradient(180deg, rgba(255, 249, 232, 0.98), rgba(255, 238, 205, 0.98));
    box-shadow:
        0 26px 60px rgba(34, 57, 61, 0.24),
        inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.help-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.help-panel__header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 1.6rem + 0.9vw, 2.4rem);
    line-height: 1.04;
    color: #3c2117;
}

.help-panel__close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.86);
    border-radius: 15px;
    background:
        radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.95), transparent 35%),
        linear-gradient(180deg, #fff8dc, #ffd985);
    color: #8a5d14;
    font-family: var(--font-button);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.82),
        inset 0 -4px 0 rgba(151, 98, 18, 0.12),
        0 7px 14px rgba(102, 72, 32, 0.15);
}

.help-panel__intro {
    margin: 12px 0 0;
    font-size: 1rem;
    line-height: 1.45;
    color: #3b2b26;
}

.help-panel__grid {
    margin-top: 16px;
    display: grid;
    gap: 14px;
}

.help-panel__section {
    padding: 14px 16px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 10px 24px rgba(40, 86, 98, 0.08);
}

.help-panel__section h3 {
    margin: 0;
    font-family: var(--font-button);
    font-size: 1.02rem;
    font-weight: 800;
    color: #234c56;
}

.help-panel__list {
    margin: 10px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    font-size: 0.96rem;
    line-height: 1.42;
    color: #3b2b26;
}

@media (min-width: 900px) {
    .help-panel {
        padding: 16px;
    }

    .help-panel__card {
        width: min(760px, calc(100vw - 48px));
    }

    .help-panel__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .help-panel__section {
        padding: 13px 14px;
    }

    .help-panel__list {
        gap: 7px;
        font-size: 0.9rem;
        line-height: 1.36;
    }
}

@media (max-height: 700px) and (min-width: 900px) {
    .help-panel__card {
        padding: 18px 18px 16px;
    }

    .help-panel__header h2 {
        font-size: 2rem;
    }

    .help-panel__intro {
        margin-top: 8px;
        font-size: 0.94rem;
    }

    .help-panel__grid {
        margin-top: 12px;
        gap: 12px;
    }

    .help-panel__section h3 {
        font-size: 0.96rem;
    }
}

.hud-row,
.hud-pills,
.info-card,
.card-actions {
    min-width: 0;
}

.hud-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.brand-card,
.hud-pill,
.info-card {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(40, 86, 98, 0.13);
}

.brand-card {
    padding: 8px 12px 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
    position: relative;
    z-index: 10;
    isolation: isolate;
}

.brand-card::before, .brand-card::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    background: url('assets/generated/decor-leaf-sprig.png') center/contain no-repeat;
    z-index: -1;
    opacity: 0.86;
    filter: drop-shadow(0 6px 8px rgba(55, 105, 62, 0.16));
}

.brand-card::before {
    left: 4px;
    top: 52px;
    transform: rotate(-34deg);
}

.brand-card::after {
    right: 10px;
    top: 28px;
    width: 88px;
    height: 88px;
    background-image: url("assets/generated/bee-trim.png");
    transform: rotate(5deg);
    opacity: 1;
    z-index: 3;
}

.brand-card h1 {
    position: relative;
    display: grid;
    justify-items: center;
    margin: 4px 0 4px;
    font-family: var(--font-button);
    font-size: clamp(3rem, 4.35vw, 4.9rem);
    font-weight: 800;
    line-height: 0.84;
    color: #34b653;
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 3px rgba(255, 255, 255, 0.98);
    text-shadow:
        0 3px 0 rgba(255, 255, 255, 0.92),
        0 7px 0 rgba(36, 131, 65, 0.32),
        0 15px 20px rgba(55, 72, 35, 0.2);
    animation: title-arrive 520ms cubic-bezier(0.18, 0.82, 0.25, 1.18) both;
}

.brand-card h1 span {
    display: block;
}

.brand-card h1 span:last-child {
    color: #ff9f16;
    margin-top: 2px;
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.98);
    text-shadow:
        0 3px 0 rgba(255, 255, 255, 0.92),
        0 7px 0 rgba(200, 91, 14, 0.32),
        0 15px 20px rgba(90, 63, 26, 0.2);
}

.brand-card h1::before,
.brand-card h1::after {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    background: url("assets/generated/marker-leaf.svg") center / contain no-repeat;
    pointer-events: none;
    filter: drop-shadow(0 5px 8px rgba(255, 183, 58, 0.28));
}

.brand-card h1::before {
    left: 42px;
    top: 32px;
    transform: rotate(-18deg) scale(0.62);
}

.brand-card h1::after {
    right: 82px;
    bottom: 18px;
    width: 28px;
    height: 28px;
    transform: rotate(16deg) scale(0.56);
}

.brand-card p {
    display: none;
}

.card-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 0.66rem;
    font-weight: 800;
    color: rgba(32, 64, 72, 0.72);
}

.brand-kicker {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 5px 12px 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 2px solid rgba(255, 236, 156, 0.82);
    color: #2d6d65;
    font-family: var(--font-button);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 8px 18px rgba(52, 110, 86, 0.1);
}

.hud-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hud-pill {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 251, 255, 0.92));
    min-height: 74px;
    border-radius: 16px;
    padding: 8px 10px 8px 46px;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.92),
        inset 0 -5px 0 rgba(68, 111, 150, 0.06),
        0 8px 14px rgba(101, 64, 26, 0.14);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.hud-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(40, 86, 98, 0.16);
}

.hud-pill::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: center / contain no-repeat;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    box-shadow:
        0 4px 9px rgba(64, 78, 95, 0.1);
}

.hud-pill:nth-child(1)::before { background-image: url("assets/generated/hud-round.svg"); }
.hud-pill:nth-child(1) {
    border-color: #bfeeff;
    background: linear-gradient(180deg, #f1fdff, #dcf3ff);
}

.hud-pill:nth-child(2)::before { background-image: url("assets/generated/hud-score.svg"); }
.hud-pill:nth-child(2) {
    border-color: #ffe8a2;
    background: linear-gradient(180deg, #fffef4, #fff3c6);
}

.hud-pill:nth-child(3)::before { background-image: url("assets/generated/hud-heart.svg"); }
.hud-pill:nth-child(3) {
    border-color: #ffc8c5;
    background: linear-gradient(180deg, #fff9f5, #ffe1d8);
}

.hud-pill:nth-child(4)::before { background-image: url("assets/generated/hud-goal.svg"); }
.hud-pill:nth-child(4) {
    border-color: #e2c4ff;
    background: linear-gradient(180deg, #fff8ff, #eee0ff);
}

.hud-pill:nth-child(5)::before { background-image: url("assets/generated/hud-hint.svg"); }
.hud-pill:nth-child(5) {
    min-height: 70px;
    border-color: #d5eabf;
    grid-column: span 2;
    background: linear-gradient(180deg, #fbfff4, #eef9df);
}

.hud-pill span {
    font-family: var(--font-button);
    font-size: 0.88rem;
    font-weight: 700;
    color: #2b5f88;
    text-transform: none;
}

.hud-pill:nth-child(2) span { color: #b97818; }
.hud-pill:nth-child(3) span { color: #cc3852; }
.hud-pill:nth-child(4) span { color: #6638c9; }
.hud-pill:nth-child(5) span { color: #3d8d4a; }

.hud-pill strong {
    font-family: var(--font-button);
    max-width: 100%;
    font-size: clamp(0.95rem, 1.1vw, 1.25rem);
    font-weight: 700;
    line-height: 1;
    color: #153f78;
    overflow-wrap: anywhere;
    white-space: nowrap;
}

.info-card {
    margin-top: 18px;
    padding: 38px 24px 20px;
    border-radius: 28px;
    position: relative;
    text-align: center;
    background:
        radial-gradient(circle at 20% 6%, rgba(255, 255, 255, 0.88), transparent 34%),
        linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(255, 244, 224, 0.98));
    overflow: visible;
    border: 3px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        inset 0 0 0 2px rgba(239, 185, 111, 0.16),
        0 12px 18px rgba(104, 63, 25, 0.1);
}

.info-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    pointer-events: none;
    border-radius: 20px;
    border: 2px dashed rgba(224, 160, 88, 0.2);
}

.info-card[data-tone="sun"] {
    box-shadow: 0 18px 38px rgba(255, 192, 70, 0.2);
}

.info-card[data-tone="sky"] {
    box-shadow: 0 18px 38px rgba(55, 180, 235, 0.2);
}

.info-card[data-tone="mint"] {
    box-shadow: 0 18px 38px rgba(72, 184, 90, 0.2);
}

.info-card[data-tone="rose"] {
    box-shadow: 0 18px 38px rgba(255, 118, 98, 0.2);
}

.brand-kicker,
.card-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(32, 64, 72, 0.72);
}

.card-eyebrow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 132px;
    padding: 8px 24px 7px;
    border-radius: 14px;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(180deg, #ff9fad, #ef536d);
    border: 3px solid rgba(255, 220, 207, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.56),
        0 7px 12px rgba(173, 69, 83, 0.22);
    text-shadow: 0 2px 0 rgba(122, 37, 55, 0.24);
}

.card-eyebrow::before,
.card-eyebrow::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 28px;
    height: 28px;
    background: url("assets/generated/marker-leaf.svg") center / contain no-repeat;
    transform: translateY(-50%) scale(0.54);
}

.card-eyebrow::before {
    left: -18px;
}

.card-eyebrow::after {
    right: -18px;
}

.brand-kicker {
    color: #2d6d65;
    font-size: 0.64rem;
    font-weight: 700;
}

.info-card h2 {
    font-family: var(--font-button);
    margin: 0 0 10px;
    font-size: 1.35rem;
    line-height: 1.1;
    color: #3c2117;
}

.info-card h2:empty {
    display: none;
}

.info-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.4;
    color: #3b2b26;
}

.card-meta {
    margin-top: 14px;
}

.transform-badge {
    font-family: var(--font-button);
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #effbff, #d7f0ff);
    border: 2px solid #9dd8ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.1;
}

.card-actions {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.action-button {
    width: 100%;
    min-width: 0;
    min-height: 66px;
    height: auto;
    white-space: normal;
    border: 4px solid rgba(235, 255, 216, 0.9);
    border-radius: 20px;
    padding: 12px 10px;
    line-height: 1.15;
    font-family: var(--font-button);
    font-size: 1.18rem;
    font-weight: 700;
    color: #14353d;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background:
        radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.95), transparent 24%),
        linear-gradient(180deg, #a9f076 0%, #63cf39 58%, #29a92e 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.68),
        inset 0 -7px 0 rgba(20, 114, 33, 0.24),
        0 6px 0 #178b2d,
        0 13px 20px rgba(37, 133, 50, 0.24);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

.action-button::before {
    content: attr(data-icon);
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: currentColor;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.48));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 3px 7px rgba(58, 82, 64, 0.13);
    font-size: 1.22em;
    font-family: var(--font-button);
}

.action-button::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -45%;
    width: 42%;
    pointer-events: none;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
    opacity: 0;
}

.action-button.secondary {
    background:
        radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.96), transparent 24%),
        linear-gradient(180deg, #dcf7ff 0%, #8dd5ff 58%, #49a9ef 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.88),
        inset 0 -7px 0 rgba(33, 117, 156, 0.2),
        0 6px 0 rgba(45, 139, 203, 0.72),
        0 13px 20px rgba(84, 176, 220, 0.18);
}

.action-button.secondary::before {
    content: attr(data-icon);
}

.action-button[data-tone="mint"] {
    background:
        radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.94), transparent 24%),
        linear-gradient(180deg, #a9f076 0%, #63cf39 58%, #29a92e 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.86),
        inset 0 -7px 0 rgba(36, 132, 65, 0.22),
        0 6px 0 rgba(34, 133, 49, 0.74),
        0 14px 22px rgba(79, 176, 68, 0.22);
}

.action-button[data-tone="sky"] {
    background:
        radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.96), transparent 24%),
        linear-gradient(180deg, #dcf7ff 0%, #8dd5ff 58%, #49a9ef 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.88),
        inset 0 -7px 0 rgba(25, 116, 164, 0.18),
        0 6px 0 rgba(53, 146, 190, 0.72),
        0 14px 22px rgba(70, 182, 231, 0.2);
}

.action-button[data-tone="rose"] {
    background:
        radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.95), transparent 24%),
        linear-gradient(180deg, #fff0ea 0%, #ff9986 58%, #f46e65 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.86),
        inset 0 -7px 0 rgba(164, 69, 63, 0.18),
        0 6px 0 rgba(190, 83, 74, 0.62),
        0 14px 22px rgba(230, 118, 92, 0.2);
}

.action-button:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        inset 0 -4px 0 rgba(45, 87, 68, 0.12),
        0 9px 0 rgba(61, 139, 97, 0.2),
        0 18px 30px rgba(50, 120, 90, 0.28);
    filter: brightness(1.06) saturate(1.05);
}

.action-button:hover:not(:disabled)::after {
    opacity: 1;
    animation: button-sheen 820ms ease-out;
}

.action-button:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.76),
        inset 0 -2px 0 rgba(45, 87, 68, 0.14),
        0 3px 0 rgba(61, 139, 97, 0.18),
        0 8px 16px rgba(50, 120, 90, 0.18);
}

.action-button:focus-visible {
    outline: 4px solid rgba(255, 247, 172, 0.95);
    outline-offset: 3px;
}

.action-button:disabled {
    cursor: default;
    opacity: 0.68;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.66),
        inset 0 -5px 0 rgba(72, 118, 76, 0.12),
        0 4px 0 rgba(79, 139, 77, 0.18);
}

#ui-overlay[data-stage="menu"] .hud-row {
    display: block;
}

#ui-overlay[data-stage="menu"] .hud-pills {
    display: none;
}

#ui-overlay[data-stage="menu"] .brand-card {
    display: block;
    text-align: center;
    margin-top: 8px;
}

#ui-overlay[data-stage="menu"] {
    padding: 24px 28px 28px;
}

#ui-overlay[data-stage="menu"]::after {
    width: 142px;
    height: 142px;
    top: -8px;
    right: -10px;
}

#ui-overlay[data-stage="menu"] .info-card {
    margin: 18px 4px 0;
    padding: 78px 40px 30px;
    min-height: 0;
}

#ui-overlay[data-stage="menu"] .card-eyebrow {
    top: 16px;
    left: 42px;
    transform: none;
    min-width: 224px;
    padding: 10px 22px 9px 54px;
    border-radius: 999px;
    color: #1b8b35;
    text-align: left;
    background: linear-gradient(180deg, #efffd6, #d7f0b7);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 7px 12px rgba(80, 133, 38, 0.14);
    text-shadow: none;
    font-size: 0.92rem;
}

#ui-overlay[data-stage="menu"] .card-eyebrow::before {
    left: 12px;
    width: 34px;
    height: 34px;
    background-image: url("assets/generated/marker-leaf.svg");
    transform: translateY(-50%) scale(0.55);
}

#ui-overlay[data-stage="menu"] .card-eyebrow::after {
    display: none;
}

#ui-overlay[data-stage="menu"] .info-card h2 {
    color: #0e6f3d;
    font-size: clamp(1.85rem, 2.55vw, 2.55rem);
    line-height: 1.04;
    margin-bottom: 14px;
}

#ui-overlay[data-stage="menu"] .info-card p {
    color: #5e6470;
    font-size: clamp(0.98rem, 1.08vw, 1.1rem);
    font-weight: 500;
    line-height: 1.34;
}

#ui-overlay[data-stage="menu"] .card-meta {
    margin-top: 18px;
}

#ui-overlay[data-stage="menu"] .transform-badge {
    width: 100%;
    justify-content: center;
    gap: 14px;
    padding: 11px 18px;
    border-color: #f2d8a9;
    background:
        radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.9), transparent 30%),
        linear-gradient(180deg, #fffdf7, #fff0d4);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        0 7px 14px rgba(132, 87, 38, 0.13);
    color: #5b6470;
    font-size: 1.1rem;
    font-weight: 800;
}

#ui-overlay[data-stage="menu"] .transform-badge::before {
    content: "";
    width: 32px;
    height: 32px;
    background: url("assets/generated/star-token-trim.png") center / contain no-repeat;
    flex: 0 0 auto;
}

#ui-overlay[data-stage="menu"] .transform-badge::first-letter {
    color: #1b73ba;
}

#ui-overlay[data-stage="menu"] .card-actions {
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#ui-overlay[data-stage="menu"] #primary-action {
    grid-column: 1 / -1;
}

#ui-overlay[data-stage="menu"] #quaternary-action {
    grid-column: 1 / -1;
}

#ui-overlay[data-stage="menu"] .action-button {
    min-height: 64px;
    padding: 12px 10px;
    font-size: 1.05rem;
    color: #fff;
    text-shadow:
        0 2px 0 rgba(20, 111, 35, 0.45),
        0 5px 10px rgba(22, 87, 30, 0.18);
}

#ui-overlay[data-stage="menu"] .action-button::before {
    width: 48px;
    height: 48px;
    color: #1f9941;
    background: radial-gradient(circle at 34% 28%, #fff, #e7f8e0);
}

#ui-overlay[data-stage="menu"] .action-button.secondary {
    min-height: 52px;
    border-color: rgba(239, 255, 218, 0.95);
    color: #0b7b37;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    background:
        radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.92), transparent 24%),
        linear-gradient(180deg, #f3ffd9 0%, #d6f5b3 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        inset 0 -5px 0 rgba(66, 146, 40, 0.12),
        0 5px 0 rgba(92, 150, 59, 0.24);
    font-size: 0.9rem;
    padding: 10px 8px;
}

#ui-overlay[data-stage="menu"] .action-button.secondary::before {
    width: 42px;
    height: 42px;
    color: #2d9d3e;
}

#ui-overlay[data-stage="summary"] .info-card {
    margin: auto 0;
}

#ui-overlay[data-stage="leaderboard"] {
    justify-content: center;
}

#ui-overlay[data-stage="leaderboard"] .hud-row,
#ui-overlay[data-stage="leaderboard"] .hud-pills,
#ui-overlay[data-stage="album"] .hud-row,
#ui-overlay[data-stage="album"] .hud-pills {
    display: none !important;
}

#ui-overlay[data-stage="leaderboard"] .info-card,
#ui-overlay[data-stage="album"] .info-card {
    margin: auto 0;
    padding-top: 40px;
    background:
        radial-gradient(circle at 18% 6%, rgba(255, 255, 255, 0.92), transparent 34%),
        linear-gradient(180deg, rgba(246, 253, 255, 0.98), rgba(255, 244, 224, 0.98));
    box-shadow:
        inset 0 0 0 2px rgba(90, 181, 222, 0.14),
        0 14px 24px rgba(60, 126, 158, 0.12);
}

#ui-overlay[data-stage="leaderboard"] .card-eyebrow,
#ui-overlay[data-stage="album"] .card-eyebrow {
    background: linear-gradient(180deg, #8de3ff, #49a9ef);
    border-color: rgba(221, 247, 255, 0.96);
    text-shadow: 0 2px 0 rgba(30, 102, 143, 0.24);
}

#ui-overlay[data-stage="leaderboard"] .info-card h2,
#ui-overlay[data-stage="album"] .info-card h2 {
    color: #1d5260;
}

#ui-overlay[data-stage="leaderboard"] .transform-badge,
#ui-overlay[data-stage="album"] .transform-badge {
    border-color: #bfeeff;
    background: linear-gradient(180deg, #f6fdff, #ddf5ff);
    color: #1d6a84;
}



@media (min-aspect-ratio: 10/9) {
    #ui-overlay[data-stage="play"] .brand-card,
    #ui-overlay[data-stage="review"] .brand-card,
    #ui-overlay[data-stage="summary"] .brand-card {
        display: none;
    }

    #ui-overlay[data-stage="play"] .hud-pills,
    #ui-overlay[data-stage="review"] .hud-pills,
    #ui-overlay[data-stage="summary"] .hud-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #ui-overlay[data-stage="play"] .hud-pill:nth-child(5),
    #ui-overlay[data-stage="review"] .hud-pill:nth-child(5),
    #ui-overlay[data-stage="summary"] .hud-pill:nth-child(5) {
        grid-column: 1 / -1;
    }
}

@media (max-aspect-ratio: 10/9) {
    #app {
        padding: 10px;
    }

    #game-shell {
        width: calc(100vw - 20px);
        height: calc(100dvh - 20px);
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 10px;
    }

    #game-container,
    #ui-overlay {
        border-radius: 22px;
    }

    #ui-overlay {
        max-height: 39dvh;
        padding: 10px;
        gap: 8px;
        overflow: auto;
    }

    #ui-overlay .audio-controls {
        position: fixed;
        top: 12px;
        left: 12px;
        bottom: auto;
        gap: 6px;
        z-index: 20;
    }

    .audio-toggle {
        width: 34px;
        height: 34px;
        border-width: 2px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .audio-toggle[data-enabled="false"]::after {
        width: 24px;
        height: 3px;
    }

    #ui-overlay[data-stage="play"],
    #ui-overlay[data-stage="review"],
    #ui-overlay[data-stage="summary"],
    #ui-overlay[data-stage="leaderboard"],
    #ui-overlay[data-stage="album"] {
        max-height: 32dvh;
    }

    .brand-card {
        display: none;
    }

    #ui-overlay[data-stage="menu"] .brand-card {
        display: block;
        padding: 2px 8px 0;
        margin-top: 0;
    }

    #ui-overlay[data-stage="menu"] .brand-kicker {
        min-height: 20px;
        padding: 3px 9px 2px;
        font-size: 0.52rem;
    }

    #ui-overlay[data-stage="menu"] .brand-card h1 {
        margin: 4px 0 0;
        font-size: 2rem;
        text-shadow:
            0 1px 0 rgba(255, 255, 255, 0.82),
            0 5px 0 rgba(37, 126, 84, 0.22),
            0 9px 14px rgba(36, 78, 68, 0.24);
    }

    #ui-overlay[data-stage="menu"] .brand-card::before,
    #ui-overlay[data-stage="menu"] .brand-card::after {
        width: 42px;
        height: 42px;
        top: 14px;
        opacity: 0.68;
    }

    #ui-overlay[data-stage="menu"] .brand-card h1::before,
    #ui-overlay[data-stage="menu"] .brand-card h1::after {
        width: 23px;
        height: 23px;
    }

    .hud-pills {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
    }

    .hud-pill {
        min-height: 48px;
        padding: 6px 4px;
        border-radius: 12px;
        border-width: 3px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hud-pill:nth-child(5) {
        grid-column: auto;
        min-height: 48px;
    }

    .hud-pill::before {
        display: none;
    }

    .hud-pill span {
        font-size: 0.48rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .hud-pill strong {
        font-size: 0.67rem;
        line-height: 0.98;
        white-space: normal;
    }

    .info-card {
        margin-top: 0;
        padding: 12px;
        border-radius: 17px;
        overflow: visible;
    }

    .info-card::before {
        inset: 6px;
        border-radius: 12px;
    }

    .card-eyebrow,
    #ui-overlay[data-stage="play"] .info-card p,
    #ui-overlay[data-stage="menu"] .info-card p,
    #ui-overlay[data-stage="leaderboard"] .info-card p,
    #ui-overlay[data-stage="album"] .info-card p,
    #ui-overlay[data-stage="play"] .card-meta,
    #ui-overlay[data-stage="menu"] .card-meta,
    #ui-overlay[data-stage="leaderboard"] .card-meta,
    #ui-overlay[data-stage="album"] .card-meta {
        display: none;
    }

    .info-card h2 {
        margin: 0 0 8px;
        font-size: 1.02rem;
        line-height: 1.08;
    }

    .info-card p {
        font-size: 0.82rem;
    }

    .card-meta {
        margin-top: 8px;
    }

    .transform-badge {
        padding: 6px 9px;
        font-size: 0.76rem;
    }

    .card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 8px;
        gap: 8px;
    }

    .action-button {
        min-height: 42px;
        padding: 9px 10px;
        font-size: 0.86rem;
        border-radius: 16px;
    }

    .action-button::before {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
}

@media (max-width: 520px) {
    #app {
        padding: 6px;
    }

    #game-shell {
        width: calc(100vw - 12px);
        height: calc(100dvh - 12px);
        gap: 8px;
    }

    #ui-overlay {
        max-height: 37dvh;
        padding: 8px;
    }

    .hud-pills {
        gap: 5px;
    }

    .hud-pill {
        min-height: 44px;
        padding: 6px 4px;
    }

    .hud-pill span {
        font-size: 0.5rem;
    }

    .hud-pill strong {
        font-size: 0.62rem;
    }

    .info-card {
        padding: 10px;
    }

    .info-card h2 {
        font-size: 0.96rem;
    }

    .action-button {
        min-height: 38px;
        padding: 8px 8px;
        font-size: 0.82rem;
    }
}

@media (max-aspect-ratio: 10/9) {
    #game-shell {
        width: calc(100vw - 20px);
        height: calc(100dvh - 20px);
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 8px;
    }

    #ui-overlay[data-stage="menu"] {
        max-height: 34dvh;
        padding: 10px;
        gap: 6px;
        overflow: hidden;
        border-width: 3px;
        border-radius: 24px;
    }

    #ui-overlay[data-stage="menu"]::before {
        inset: 6px;
        border-radius: 18px;
    }

    #ui-overlay[data-stage="menu"]::after {
        width: 74px;
        height: 74px;
        top: -8px;
        right: -8px;
        opacity: 0.66;
    }

    #ui-overlay[data-stage="menu"] .hud-row {
        gap: 2px;
    }

    #ui-overlay[data-stage="menu"] .brand-card {
        display: block;
        margin: 0;
        padding: 0 54px 0;
    }

    #ui-overlay[data-stage="menu"] .brand-card h1 {
        margin: 0;
        font-size: clamp(1.55rem, 7vw, 2.2rem);
        line-height: 0.84;
        -webkit-text-stroke-width: 1.5px;
        text-shadow:
            0 1px 0 rgba(255, 255, 255, 0.86),
            0 3px 0 rgba(37, 126, 84, 0.18),
            0 7px 10px rgba(36, 78, 68, 0.16);
    }

    #ui-overlay[data-stage="menu"] .brand-card h1 span:last-child {
        text-shadow:
            0 1px 0 rgba(255, 255, 255, 0.86),
            0 3px 0 rgba(200, 91, 14, 0.18),
            0 7px 10px rgba(90, 63, 26, 0.16);
    }

    #ui-overlay[data-stage="menu"] .brand-card::before {
        width: 36px;
        height: 36px;
        top: 16px;
        left: 18px;
        opacity: 0.82;
    }

    #ui-overlay[data-stage="menu"] .brand-card::after {
        width: 42px;
        height: 42px;
        top: 18px;
        right: 28px;
        opacity: 1;
        z-index: 4;
    }

    #ui-overlay[data-stage="menu"] .brand-card h1::before,
    #ui-overlay[data-stage="menu"] .brand-card h1::after {
        display: none;
    }

    #ui-overlay[data-stage="menu"] .info-card {
        margin: 4px 0 0;
        padding: 14px 12px 12px;
        min-height: 0;
        border-width: 2px;
        border-radius: 18px;
        overflow: hidden;
    }

    #ui-overlay[data-stage="menu"] .info-card::before {
        inset: 7px;
        border-radius: 13px;
    }

    #ui-overlay[data-stage="menu"] .card-eyebrow,
    #ui-overlay[data-stage="menu"] .info-card p,
    #ui-overlay[data-stage="menu"] .card-meta {
        display: none;
    }

    #ui-overlay[data-stage="menu"] .info-card h2 {
        margin: 0;
        font-size: clamp(1.25rem, 6vw, 1.62rem);
        line-height: 1.04;
        text-align: center;
    }

    #ui-overlay[data-stage="menu"] .card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 10px;
        gap: 8px;
    }

    #ui-overlay[data-stage="menu"] .action-button,
    #ui-overlay[data-stage="menu"] .action-button.secondary {
        min-height: 42px;
        padding: 7px 8px;
        border-width: 3px;
        border-radius: 15px;
        gap: 5px;
        font-size: clamp(0.72rem, 3.1vw, 0.88rem);
        line-height: 1.05;
        text-align: center;
        text-shadow: 0 1px 0 rgba(20, 111, 35, 0.3);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.78),
            inset 0 -4px 0 rgba(36, 132, 65, 0.18),
            0 3px 0 rgba(34, 133, 49, 0.58),
            0 8px 12px rgba(79, 176, 68, 0.16);
    }

    #ui-overlay[data-stage="menu"] .action-button::before,
    #ui-overlay[data-stage="menu"] .action-button.secondary::before {
        width: 28px;
        height: 28px;
    }
}

@media (min-aspect-ratio: 10/9) and (max-height: 980px) {
    :root {
        --ui-width: clamp(372px, 27vw, 440px);
    }

    #app {
        padding: 12px;
    }

    #game-shell {
        width: min(calc(100vw - 24px), 1700px);
        height: min(calc(100dvh - 24px), 1040px);
        gap: 18px;
    }

    #ui-overlay[data-stage="menu"] {
        padding: 22px 24px 24px;
    }

    #ui-overlay[data-stage="menu"]::after {
        width: 112px;
        height: 112px;
    }

    #ui-overlay[data-stage="menu"] .brand-card {
        margin-top: 0;
        padding: 2px 8px 0;
    }

    #ui-overlay[data-stage="menu"] .brand-card h1 {
        font-size: clamp(2.35rem, 3.2vw, 3.6rem);
        line-height: 0.84;
    }

    #ui-overlay[data-stage="menu"] .brand-card::before {
        width: 58px;
        height: 58px;
        top: 42px;
    }

    #ui-overlay[data-stage="menu"] .brand-card::after {
        width: 74px;
        height: 74px;
        top: 22px;
        right: 16px;
        opacity: 1;
        z-index: 4;
    }

    #ui-overlay[data-stage="menu"] .brand-card h1::before,
    #ui-overlay[data-stage="menu"] .brand-card h1::after {
        width: 24px;
        height: 24px;
    }

    #ui-overlay[data-stage="menu"] .info-card {
        margin: 8px 0 0;
        padding: 60px 28px 18px;
        min-height: 0;
    }

    #ui-overlay[data-stage="menu"] .card-eyebrow {
        top: 12px;
        left: 30px;
        min-width: 198px;
        padding: 8px 18px 7px 46px;
        font-size: 0.78rem;
    }

    #ui-overlay[data-stage="menu"] .card-eyebrow::before {
        left: 9px;
        width: 30px;
        height: 30px;
    }

    #ui-overlay[data-stage="menu"] .info-card h2 {
        margin-bottom: 10px;
        font-size: clamp(1.55rem, 2.15vw, 2.15rem);
        line-height: 1.03;
    }

    #ui-overlay[data-stage="menu"] .info-card p {
        font-size: 0.96rem;
        line-height: 1.3;
    }

    #ui-overlay[data-stage="menu"] .card-meta {
        margin-top: 14px;
    }

    #ui-overlay[data-stage="menu"] .transform-badge {
        padding: 9px 14px;
        gap: 10px;
        font-size: 0.96rem;
    }

    #ui-overlay[data-stage="menu"] .transform-badge::before {
        width: 28px;
        height: 28px;
    }

    #ui-overlay[data-stage="menu"] .card-actions {
        margin-top: 12px;
        gap: 10px;
    }

    #ui-overlay[data-stage="menu"] .action-button {
        min-height: 54px;
        border-radius: 22px;
        font-size: 1.16rem;
        padding: 10px 14px;
    }

    #ui-overlay[data-stage="menu"] .action-button::before {
        width: 40px;
        height: 40px;
    }

    #ui-overlay[data-stage="menu"] .action-button.secondary {
        min-height: 46px;
        font-size: 0.94rem;
        border-width: 3px;
    }

    #ui-overlay[data-stage="menu"] .action-button.secondary::before {
        width: 34px;
        height: 34px;
    }
}

@keyframes button-sheen {
    from {
        left: -45%;
    }

    to {
        left: 125%;
    }
}

@keyframes title-arrive {
    from {
        transform: translateY(10px) scale(0.92);
        opacity: 0;
    }

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

@media (prefers-reduced-motion: reduce) {
    .brand-card h1 {
        animation: none;
    }

    .action-button:hover:not(:disabled)::after {
        animation: none;
    }

    .action-button,
    .hud-pill {
        transition: none;
    }
}
