body.mode-v3-page {
    --v3-bg-deep: #020d18;
    --v3-bg-mid: #041525;
    --v3-card: #061e30;
    --v3-card-2: #08263c;
    --v3-teal: #2cc4c4;
    --v3-text: #d4eaf8;
    --v3-muted: #79a9c6;
    --v3-border: rgba(44, 196, 196, 0.18);
    font-family: 'Barlow', 'Montserrat', sans-serif;
    margin: 0;
    min-height: 100vh;
    padding: 0 10px 28px;
    color: var(--v3-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    background:
        linear-gradient(110deg, transparent 0 30%, rgba(126, 235, 255, 0.045) 31%, transparent 42%),
        linear-gradient(115deg, transparent 0 48%, rgba(126, 235, 255, 0.035) 49%, transparent 58%),
        radial-gradient(ellipse 55% 45% at 65% 15%, rgba(6,55,95,.35) 0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 20% 85%, rgba(2,35,65,.25) 0%, transparent 60%),
        var(--v3-bg-deep) !important;
    overflow-x: hidden;
}

body.mode-v3-page.index-theme-summer,
body.mode-v3-page.global-ui-theme-summer {
    background:
        linear-gradient(110deg, transparent 0 30%, rgba(126, 235, 255, 0.045) 31%, transparent 42%),
        linear-gradient(115deg, transparent 0 48%, rgba(126, 235, 255, 0.035) 49%, transparent 58%),
        radial-gradient(ellipse 55% 45% at 65% 15%, rgba(6,55,95,.35) 0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 20% 85%, rgba(2,35,65,.25) 0%, transparent 60%),
        #020d18 !important;
}

body.mode-v3-page::before {
    content: "";
    position: fixed;
    inset: -20% 0 auto;
    height: 58%;
    pointer-events: none;
    background: radial-gradient(ellipse at 60% 0%, rgba(80, 205, 255, 0.14), transparent 64%);
    filter: blur(2px);
    z-index: 0;
}

body.mode-v3-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(126,235,255,.22) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(126,235,255,.14) 0 1px, transparent 1.5px);
    background-position: 12% 88%, 78% 72%;
    background-size: 260px 420px, 340px 500px;
    opacity: .2;
    z-index: 0;
}

body.mode-v3-page #community-boss-event {
    display: none !important;
}

body.mode-v3-page .topbar {
    width: min(1260px, calc(100% - 8px));
    margin-top: 18px;
    padding: 18px 22px;
    border: 1px solid var(--v3-border);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(4, 21, 37, 0.98), rgba(2, 13, 24, 0.98));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.mode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.topbar h1 {
    flex: 1;
    margin: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 34px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
    line-height: 1;
}

.mode-lead {
    margin: 8px 0 0;
    color: rgba(215, 232, 240, 0.7);
    font-size: 18px;
    line-height: 1.35;
}

.species-mode-switcher {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid rgba(44, 196, 196, 0.18);
    background: rgba(2, 13, 24, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.species-mode-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    color: rgba(212, 234, 248, 0.76);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.species-mode-switcher a:hover,
.species-mode-switcher a.active {
    color: #061e30;
    background: linear-gradient(135deg, #8ff5ef, #2cc4c4);
    box-shadow: 0 8px 18px rgba(44, 196, 196, 0.22);
}

body.mode-v3-page .home-btn {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(44, 196, 196, 0.28);
    background: linear-gradient(135deg, rgba(44, 196, 196, 0.95), rgba(0, 180, 216, 0.9));
    color: #f4fdff;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
    margin-top: 8px;
}

body.mode-v3-page .game-container {
    width: min(1260px, calc(100% - 8px));
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

body.mode-v3-page .guess-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 22px;
    padding: 28px 26px 24px;
    margin-bottom: 16px;
    border-radius: 16px;
    border: 1px solid var(--v3-border);
    background:
        radial-gradient(ellipse 70% 80% at 82% 22%, rgba(44, 196, 196, 0.10), transparent 62%),
        linear-gradient(135deg, rgba(6, 30, 48, 0.96), rgba(4, 21, 37, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 18px 50px rgba(0, 0, 0, 0.4);
    overflow: visible;
}

.guess-hero-copy {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding-right: 8px;
}

.guess-hero-copy::before {
    content: ' ';
    display: block;
    width: 0;
    height: 0;
}

body.mode-v3-page .guess-hero h2 {
    margin: 0;
    font-family: 'Barlow Condensed', 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #f5fdff;
}

.guess-hero-art {
    position: relative;
    min-height: 280px;
    border-radius: 14px;
    overflow: hidden;
}

.guess-hero-bg,
.guess-hero-fg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.guess-hero-bg {
    opacity: 0.4;
    transform: scale(1.02);
    object-fit: cover;
    filter: saturate(1.05) brightness(0.85);
    z-index: 1;
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.guess-hero-fg {
    opacity: 0.9;
    transform: translateX(4%) scale(1.02);
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(0 28px 40px rgba(0,0,0,0.4));
    z-index: 2;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

body.species-mode-rays .guess-hero-bg {
    opacity: 0.42;
    transform: scale(1.28) rotate(-3deg);
    object-fit: contain;
    object-position: center;
    filter: saturate(1.1) brightness(0.75);
}

body.species-mode-rays .guess-hero-fg {
    opacity: 0.95;
    transform: translateX(4%) scale(1.08);
    object-position: center;
}

body.species-mode-mixed .guess-hero-bg {
    opacity: 0.46;
    transform: scale(1.04);
    filter: saturate(1.05) brightness(0.78);
}

body.species-mode-mixed .guess-hero-fg {
    opacity: 0.94;
    transform: translateX(2%) scale(1.04);
    object-position: center;
}

body.mode-v3-page .input-panel,
body.mode-v3-page #guesses {
    border-radius: 14px;
    border: 1px solid var(--v3-border);
    background:
        radial-gradient(circle at top right, rgba(44, 196, 196, 0.07), transparent 28%),
        linear-gradient(180deg, rgba(6, 30, 48, 0.96), rgba(2, 13, 24, 0.98));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.input-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px 18px;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.panel-header h2 {
    margin: 6px 0 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #ffffff;
}

.panel-kicker,
.mode-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(44, 196, 196, 0.12);
    border: 1px solid rgba(44, 196, 196, 0.2);
    color: #9beeff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mode-kicker {
    margin-bottom: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(44, 196, 196, 0.1);
    border: 1px solid rgba(44, 196, 196, 0.18);
    color: #dff9ff;
    font-size: 13px;
    font-weight: 800;
}

.input-panel > div[style*="position: relative"] { width: 100%; }

input {
    width: 100%;
    max-width: none;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(77, 208, 225, 0.16);
    font-size: 16px;
    background: rgba(245, 252, 255, 0.98);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #2cc4c4;
    box-shadow: 0 0 0 4px rgba(44, 196, 196, 0.14);
    background: rgba(255, 255, 255, 1);
    color: #000;
}

button:not(.home-btn) {
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #27bfd9, #0da7c8);
    color: #f9feff;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 12px 22px rgba(13, 167, 200, 0.26);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

button:hover {
    filter: brightness(1.06);
}

#guessBtn {
    min-height: 46px;
}

.category-reveal-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(174px, auto);
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.category-reveal-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.category-reveal-kicker,
#category-reveal-balance {
    color: rgba(212, 234, 248, 0.64);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#category-reveal-result {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
    color: #dff9ff;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
}

.category-reveal-panel.revealed #category-reveal-result {
    border-color: transparent;
    background: #43e97b;
    color: #061e30;
}

.category-reveal-btn {
    min-height: 44px;
    white-space: nowrap;
    align-self: center;
    border: 1px solid rgba(44, 196, 196, 0.26) !important;
    background: linear-gradient(135deg, #18b9d5, #0794b0) !important;
    box-shadow: 0 10px 20px rgba(13, 167, 200, 0.18) !important;
}

.category-reveal-btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    filter: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(223, 249, 255, 0.78) !important;
}

.sharchive-help-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(44, 196, 196, 0.2);
    border-radius: 11px;
    background: rgba(44, 196, 196, 0.07);
    color: #a8f5f2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sharchive-help-link:hover,
.sharchive-help-link:focus-visible {
    border-color: rgba(44, 196, 196, 0.48);
    background: rgba(44, 196, 196, 0.14);
    color: #e9ffff;
    transform: translateY(-1px);
    outline: none;
}

#message {
    color: rgba(142, 245, 239, 0.92);
    text-align: center;
    font-weight: 800;
    min-height: 20px;
    margin-top: 14px;
}

#guesses {
    margin-top: 18px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guess-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.25s;
    cursor: pointer;
}

.guess-card:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
    border-color: rgba(44,196,196,0.16);
}

.feedback {
    margin-top: 10px;
    display: none;
    flex-direction: column;
    gap: 7px;
}

.category {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.08);
}

.correct {
    background: #43e97b;
    color: black;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    margin-top: 5px;
    background: rgba(10, 35, 66, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(44,196,196,0.28);
    border-radius: 16px;
    max-height: min(42vh, 320px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.suggestions-dropdown.active {
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.suggestion-item {
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.15s ease;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-item:hover {
    background: rgba(44,196,196,0.18);
    padding-left: 20px;
    color: #9beeff;
}

.suggestion-item:last-child { border-bottom: none; }

.suggestion-item.highlighted {
    background: rgba(44,196,196,0.28);
    color: #9beeff;
}

.suggestion-item.guessed {
    opacity: 0.5;
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.suggestion-item.guessed:hover {
    background: none;
    padding-left: 16px;
    color: rgba(255, 255, 255, 0.4);
}

.suggestions-dropdown::-webkit-scrollbar {
    width: 10px;
}

.suggestions-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.suggestions-dropdown::-webkit-scrollbar-thumb {
    background: rgba(44, 196, 196, 0.55);
    border-radius: 999px;
    border: 2px solid rgba(10, 35, 66, 0.95);
}

.suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(44, 196, 196, 0.72);
}

#win-screen,
#win-lose-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10050;
    display: none;
    width: min(620px, calc(100vw - 28px));
    max-height: min(82vh, 720px);
    overflow: hidden auto;
    box-sizing: border-box;
    padding: 34px 32px 28px;
    border-radius: 28px;
    border: 1px solid rgba(118, 238, 241, 0.34);
    background:
        radial-gradient(circle at 20% 0%, rgba(142, 245, 239, 0.20), transparent 34%),
        radial-gradient(circle at 86% 12%, rgba(0, 180, 216, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(8, 42, 65, 0.98), rgba(2, 13, 24, 0.98));
    color: #f4fdff;
    text-align: center;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 0 100vmax rgba(0, 8, 15, 0.74),
        0 30px 90px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    animation: resultCardIn 0.42s cubic-bezier(.18, .88, .28, 1.18) both;
}

#win-screen.win,
#win-lose-screen.win {
    border-color: rgba(100, 255, 214, 0.46);
    box-shadow:
        0 0 0 100vmax rgba(0, 8, 15, 0.74),
        0 34px 96px rgba(0, 0, 0, 0.62),
        0 0 42px rgba(47, 229, 201, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#win-screen.lose,
#win-lose-screen.lose {
    border-color: rgba(255, 104, 104, 0.38);
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 104, 104, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(53, 20, 28, 0.98), rgba(2, 13, 24, 0.98));
}

#win-screen > :not(.bubble),
#win-lose-screen > :not(.bubble) {
    position: relative;
    z-index: 1;
}

#win-screen h2,
#win-lose-screen h2 {
    margin: 0 36px 18px !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(34px, 7vw, 56px) !important;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 0.95;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 24px rgba(96, 240, 225, 0.28);
}

#win-screen p,
#win-lose-screen p {
    color: rgba(224, 245, 255, 0.86) !important;
    font-size: 16px !important;
    line-height: 1.45;
}

#win-screen b,
#win-lose-screen b {
    color: #f7ffff;
}

#win-screen > button:first-child,
#win-lose-screen > button:first-child,
.result-close-btn {
    top: 16px !important;
    right: 16px !important;
    width: 42px !important;
    height: 42px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 14px !important;
    background: rgba(0, 14, 24, 0.55) !important;
    color: #f4fdff !important;
    box-shadow: none !important;
    backdrop-filter: blur(10px);
}

.result-reward-card,
#win-screen > div[style*="rgba(255,255,255,0.2)"],
#win-lose-screen > div[style*="rgba(255,255,255,0.2)"],
#win-lose-screen > div[style*="linear-gradient"] {
    display: grid;
    gap: 8px;
    margin: 24px 0 !important;
    padding: 18px 20px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(142, 245, 239, 0.25) !important;
    background:
        linear-gradient(135deg, rgba(142, 245, 239, 0.18), rgba(46, 118, 159, 0.20)),
        rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 14px 36px rgba(0, 0, 0, 0.22);
}

.result-reward-card p:first-child,
#win-screen > div[style*="rgba(255,255,255,0.2)"] p:first-child,
#win-lose-screen > div[style*="rgba(255,255,255,0.2)"] p:first-child {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(36px, 7vw, 54px) !important;
    line-height: 1;
    color: #f7ffff !important;
    text-shadow: 0 0 18px rgba(142, 245, 239, 0.24);
}

.result-reward-card p + p,
#win-screen > div[style*="rgba(255,255,255,0.2)"] p + p,
#win-lose-screen > div[style*="rgba(255,255,255,0.2)"] p + p {
    color: #8ff5ef !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

.daily-result-variants {
    margin: 18px 0 4px;
    padding: 14px;
    border: 1px solid rgba(142, 245, 239, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.daily-result-variants span {
    display: block;
    margin-bottom: 10px;
    color: rgba(224, 245, 255, 0.72);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.daily-result-variant-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.daily-result-variant {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(142, 245, 239, 0.16);
    border-radius: 12px;
    background: rgba(0, 18, 30, 0.58);
    color: #e8fbff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.daily-result-variant:hover {
    border-color: rgba(142, 245, 239, 0.52);
    background: rgba(24, 185, 213, 0.24);
    transform: translateY(-1px);
}

.daily-result-variant.active {
    border-color: rgba(142, 245, 239, 0.64);
    background: linear-gradient(135deg, rgba(24, 185, 213, 0.58), rgba(7, 148, 176, 0.38));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.result-action-row,
#win-screen > div[style*="display: flex"],
#win-lose-screen > div[style*="display: flex"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px !important;
    margin-top: 24px !important;
}

.result-action-row button,
#win-screen > div[style*="display: flex"] button,
#win-lose-screen > div[style*="display: flex"] button {
    min-height: 48px;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(142, 245, 239, 0.18) !important;
    background: linear-gradient(135deg, #18b9d5, #0794b0) !important;
    color: #f6fdff !important;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24) !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px !important;
    font-weight: 900 !important;
    letter-spacing: 1.8px !important;
}

.result-action-row button:nth-child(2),
#win-screen > div[style*="display: flex"] button:nth-child(2),
#win-lose-screen > div[style*="display: flex"] button:nth-child(2) {
    background: linear-gradient(135deg, rgba(142, 245, 239, 0.20), rgba(255, 255, 255, 0.10)) !important;
}

.result-action-row button:last-child,
#win-screen > div[style*="display: flex"] button:last-child,
#win-lose-screen > div[style*="display: flex"] button:last-child {
    background: linear-gradient(135deg, rgba(0, 23, 39, 0.96), rgba(0, 45, 68, 0.96)) !important;
}

#win-screen .bubble,
#win-lose-screen .bubble {
    z-index: 0;
    background: rgba(220, 250, 255, 0.34);
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.42);
    pointer-events: none;
    animation: resultBubbleRise 5.6s ease-in infinite;
}

@keyframes resultCardIn {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 34px)) scale(0.94);
        box-shadow:
            0 0 0 100vmax rgba(0, 8, 15, 0),
            0 18px 50px rgba(0, 0, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes resultBubbleRise {
    0% {
        transform: translateY(26px) scale(0.7);
        opacity: 0;
    }
    18% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-620px) scale(1.2);
        opacity: 0;
    }
}

@media (max-width: 640px) {
    #win-screen,
    #win-lose-screen {
        width: min(94vw, 620px);
        padding: 30px 20px 22px;
        border-radius: 22px;
    }

    .result-action-row,
    #win-screen > div[style*="display: flex"],
    #win-lose-screen > div[style*="display: flex"] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .mode-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar h1 {
        text-align: left;
    }

    body.mode-v3-page .home-btn {
        width: 100%;
    }

    body.mode-v3-page .guess-hero {
        grid-template-columns: 1fr;
        padding: 20px 18px;
    }

    .species-mode-switcher {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .species-mode-switcher a {
        padding: 0 8px;
    }

    body.mode-v3-page .guess-hero-copy,
    body.mode-v3-page .guess-hero-art {
        min-height: 180px;
    }

    .category-reveal-panel {
        grid-template-columns: 1fr;
    }

    .category-reveal-btn {
        width: 100%;
        white-space: normal;
    }

    .topbar h1 {
        font-size: clamp(2.4rem, 12vw, 3.4rem);
    }
}
