:root {
    --bg-light: #fcfcf9;
    --text-dark: #112017;
    --text-muted: #5c7065;
    --primary-green: #0da86c;
    --primary-yellow: #ffc700;
    --primary-red: #ff3b30;
    
    --brutal-border: 2.5px solid var(--text-dark);
    --brutal-shadow: 5px 5px 0px var(--text-dark);
    --brutal-shadow-hover: 8px 8px 0px var(--text-dark);
    --brutal-shadow-active: 2px 2px 0px var(--text-dark);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-light);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: url('images/robicat_treasure_bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    opacity: 0.99; /* Fix webkit layout glitches */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-left: var(--brutal-border);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border: var(--brutal-border);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-yellow);
}

/* Common Layout Elements */
.section-tag {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

.highlight-green {
    background: var(--primary-green);
    color: var(--bg-light);
    padding: 2px 8px;
    border: var(--brutal-border);
    display: inline-block;
    transform: rotate(-1.5deg);
}

.highlight-gold {
    background: var(--primary-yellow);
    padding: 2px 8px;
    border: var(--brutal-border);
    display: inline-block;
    transform: rotate(1deg);
}

.text-center {
    text-align: center;
}

/* Brutalist Buttons */
.btn-brutal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: var(--brutal-border);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--brutal-shadow);
    transition: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
}

.btn-green {
    background: var(--primary-green);
    color: var(--bg-light);
}

.btn-yellow {
    background: var(--primary-yellow);
}

.btn-white {
    background: var(--bg-light);
}

.btn-brutal:hover:not(:disabled) {
    transform: translate(-3px, -3px);
    box-shadow: var(--brutal-shadow-hover);
}

/* ==========================================
   2.5D PLATFORMER: SHERWOOD LAND STYLES
   ========================================== */
.mario-section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.mario-brutal-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #060e0a;
    border: 4px solid var(--fg);
    box-shadow: 12px 12px 0 var(--fg);
    overflow: hidden;
    margin-top: 30px;
    user-select: none;
}

.mario-stage-3d {
    width: 100%;
    height: 380px;
    position: relative;
}

.mario-stage-3d canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* UI Overlay Screen */
.mario-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through unless active */
}

/* Base overlay windows */
.mario-menu, .mario-game-over, .mario-victory {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 520px;
    background: var(--bg);
    border: 4px solid var(--fg);
    box-shadow: 8px 8px 0 var(--fg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    pointer-events: auto; /* Enable clicks */
}

.mario-menu-title {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--fg);
    text-shadow: 3px 3px 0 var(--primary);
    letter-spacing: 1px;
}

.mario-menu-desc {
    font-size: 1.0rem;
    color: var(--fg-muted);
    line-height: 1.5;
}

.mario-stats-box {
    width: 100%;
    border: 3px dashed var(--fg);
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.mario-action-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
}

.mario-action-buttons button {
    flex: 1;
}

/* Brutalist HUD Overlay */
.mario-hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    width: calc(100% - 40px);
}

.mario-hud-left, .mario-hud-right {
    display: flex;
    gap: 15px;
    pointer-events: auto;
}

.mario-hud-item {
    background: var(--bg);
    border: 3px solid var(--fg);
    box-shadow: 4px 4px 0 var(--fg);
    padding: 8px 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mario-hud-label {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--fg-muted);
    letter-spacing: 1px;
}

.mario-hud-val {
    font-size: 1.3rem;
    font-weight: 900;
}

.mario-hud {
    top: 72px;
    left: 14px;
    right: auto;
    width: auto;
    z-index: 12;
}

.mario-hud-left,
.mario-hud-right {
    display: none;
}

.mario-reward-panel {
    width: 224px;
    overflow: hidden;
    background: #fffdf3;
    border: 3px solid #101a13;
    box-shadow: 5px 5px 0 #101a13;
    font-family: var(--font-heading);
    pointer-events: auto;
}

.mario-reward-head {
    padding: 6px 9px;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    background: #10291c;
    color: #d8e4db;
    font-size: 0.49rem;
    font-weight: 900;
    letter-spacing: 0.35px;
}

.mario-reward-head span:first-child {
    color: #ffd24a;
    font-size: 0.59rem;
}

.mario-reward-today {
    padding: 8px 9px 5px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.mario-reward-today > span,
.mario-reward-grid span {
    color: #647269;
    font-size: 0.51rem;
    font-weight: 900;
    letter-spacing: 0.75px;
}

.mario-reward-today strong {
    color: #2d9a5f;
    font-size: 1rem;
}

.mario-reward-today small {
    color: #425149;
    font-size: 0.55rem;
}

.mario-reward-progress {
    height: 7px;
    margin: 0 9px 8px;
    overflow: hidden;
    border: 2px solid #101a13;
    background: #dce5dc;
}

.mario-reward-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #ffd24a, #4fbd78);
    transition: width 0.25s ease;
}

.mario-reward-grid {
    display: grid;
    grid-template-columns: 0.7fr 0.7fr 1.3fr;
    border-top: 2px solid #101a13;
}

.mario-reward-grid > div {
    min-width: 0;
    padding: 6px 7px 7px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mario-reward-grid > div + div {
    border-left: 2px solid #101a13;
}

.mario-reward-grid strong {
    overflow: hidden;
    color: #10291c;
    font-size: 0.72rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mario-location-banner {
    position: absolute;
    top: 78px;
    left: 50%;
    z-index: 8;
    padding: 8px 18px;
    transform: translate(-50%, -24px) rotate(-1deg);
    opacity: 0;
    background: #ffd24a;
    border: 3px solid #101a13;
    box-shadow: 4px 4px 0 #101a13;
    color: #10291c;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    pointer-events: none;
}

.mario-location-banner.show {
    animation: mario-location-in 2.2s ease both;
}

.mario-power-status {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 9;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    transform: translate(-50%, -18px) scale(0.9);
    opacity: 0;
    background: #2f9b5d;
    border: 3px solid #10291c;
    box-shadow: 4px 4px 0 #10291c;
    color: #fffdf3;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.9px;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mario-power-status.show {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
    animation: mario-power-pulse 1.15s ease-in-out infinite alternate;
}

@keyframes mario-power-pulse {
    from { box-shadow: 4px 4px 0 #10291c, 0 0 0 rgba(88, 215, 121, 0); }
    to { box-shadow: 4px 4px 0 #10291c, 0 0 20px rgba(88, 215, 121, 0.7); }
}

@keyframes mario-location-in {
    0% { opacity: 0; transform: translate(-50%, -24px) rotate(-1deg) scale(0.85); }
    15%, 72% { opacity: 1; transform: translate(-50%, 0) rotate(-1deg) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -12px) rotate(-1deg); }
}

.mario-sound-toggle,
.mario-fullscreen-toggle {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 9;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #101a13;
    background: #fffdf3;
    box-shadow: 4px 4px 0 #101a13;
    color: #10291c;
    cursor: pointer;
}

.mario-fullscreen-toggle {
    right: 68px;
    background: #ffd966;
}

.mario-sound-toggle:hover,
.mario-fullscreen-toggle:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 #101a13;
}

.mario-brutal-container:fullscreen,
.mario-brutal-container:-webkit-full-screen,
.mario-brutal-container.mario-pseudo-fullscreen {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    background: #07130d;
}

.mario-brutal-container.mario-pseudo-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

body.mario-game-expanded {
    overflow: hidden;
}

.mario-brutal-container:fullscreen .mario-stage-3d,
.mario-brutal-container:-webkit-full-screen .mario-stage-3d,
.mario-brutal-container.mario-pseudo-fullscreen .mario-stage-3d {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
}

.mario-brutal-container:fullscreen .mario-gamepad,
.mario-brutal-container:-webkit-full-screen .mario-gamepad,
.mario-brutal-container.mario-pseudo-fullscreen .mario-gamepad {
    flex: 0 0 120px;
    width: 100%;
}

.mario-brutal-container:fullscreen .mario-fullscreen-toggle,
.mario-brutal-container:-webkit-full-screen .mario-fullscreen-toggle,
.mario-brutal-container.mario-pseudo-fullscreen .mario-fullscreen-toggle {
    right: 74px;
    bottom: 18px;
}

.mario-brutal-container:fullscreen .mario-sound-toggle,
.mario-brutal-container:-webkit-full-screen .mario-sound-toggle,
.mario-brutal-container.mario-pseudo-fullscreen .mario-sound-toggle {
    right: 18px;
    bottom: 18px;
}

/* Arcade Gamepad Controller Bar */
.mario-gamepad {
    height: 120px;
    background: #111e17; /* Dark forest green console */
    border-top: 4px solid var(--fg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    box-sizing: border-box;
}

.mario-gamepad-title {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--primary-green);
    letter-spacing: 2px;
    font-family: var(--font-mono);
}

.mario-dpad {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mario-pad-btn {
    height: 50px;
    padding: 0 25px;
    background: var(--bg-light);
    border: 3px solid var(--fg);
    box-shadow: 4px 4px 0 var(--fg);
    font-size: 1.0rem;
    font-weight: 900;
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.05s, box-shadow 0.05s;
    user-select: none;
    touch-action: manipulation;
}

.mario-pad-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--fg);
}

/* Color coding buttons */
.mario-pad-btn.btn-left {
    background: #1e90ff; /* Blue */
    color: white;
}

.mario-pad-btn.btn-right {
    background: #1e90ff; /* Blue */
    color: white;
}

.mario-pad-btn.btn-jump {
    background: #ff4500; /* Red-Orange jump button */
    color: white;
    height: 55px;
    font-size: 1.1rem;
}

/* Responsive Styles for Platformer */
@media (max-width: 968px) {
    .mario-hud {
        top: 15px;
        left: 15px;
        right: 15px;
    }
    .mario-hud-item {
        padding: 6px 12px;
    }
    .mario-hud-val {
        font-size: 1.1rem;
    }
    .mario-menu, .mario-game-over, .mario-victory {
        padding: 20px;
        gap: 15px;
    }
    .mario-menu-title {
        font-size: 1.7rem;
    }
    .mario-action-buttons {
        flex-direction: column;
        gap: 10px;
    }
}


.btn-brutal:active:not(:disabled) {
    transform: translate(2px, 2px);
    box-shadow: var(--brutal-shadow-active);
}

.btn-brutal:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    border-color: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
    transform: none !important;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.15rem;
}

.w-full {
    width: 100%;
}

/* Brutalist Card Wrapper */
.brutal-card {
    background: var(--bg-light);
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow);
    border-radius: 4px;
    padding: 30px;
    transition: all 0.2s ease;
}

.brutal-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--brutal-shadow-hover);
}

/* Navigation Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-light);
    border-bottom: var(--brutal-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-sticker {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: var(--brutal-border);
    box-shadow: 2px 2px 0px var(--text-dark);
}

.logo-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-dot {
    color: var(--primary-green);
}

.nav-menu {
    display: flex;
    gap: 36px;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.nav-menu a:hover {
    color: var(--primary-green);
}

/* Hero Section */
.hero-brutal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 70px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-yellow);
    border: var(--brutal-border);
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    transform: rotate(1deg);
}

.ping-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-dark);
    border-radius: 50%;
    animation: ping-anim 2s infinite;
}

@keyframes ping-anim {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-sticker-side {
    display: flex;
    justify-content: center;
    position: relative;
}

.sticker-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brutal-sticker-frame {
    background: #ffffff;
    border: var(--brutal-border);
    box-shadow: 8px 8px 0px var(--text-dark);
    padding: 12px;
    transform: rotate(2.5deg);
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.brutal-sticker-frame:hover {
    transform: rotate(0deg) scale(1.03);
}

.hero-sticker-img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    display: block;
    border: var(--brutal-border);
}

/* Speech bubble on Hero */
.hero-sticker-side .speech-bubble {
    background: #ffffff;
    border: var(--brutal-border);
    padding: 12px 20px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    position: absolute;
    top: -55px;
    left: -30px;
    transform: rotate(-6deg);
    box-shadow: 3px 3px 0px var(--text-dark);
    z-index: 10;
    white-space: nowrap;
}

.hero-sticker-side .speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 45px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--text-dark) transparent;
    display: block;
    width: 0;
}

.hero-sticker-side .speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 46px;
    border-width: 9px 9px 0;
    border-style: solid;
    border-color: #ffffff transparent;
    display: block;
    width: 0;
    z-index: 1;
}

/* Presale Section (ICO) */
.presale-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.presale-brutal-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

/* Archery SVG details */
.simulator-card {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card-header-brutal {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-brutal h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.status-sticker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-yellow);
    border: var(--brutal-border);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.svg-container-brutal {
    position: relative;
    background: #ffffff;
    border: var(--brutal-border);
    overflow: hidden;
    isolation: isolate;
}

.archer-svg-brutal {
    width: 100%;
    height: auto;
    max-height: 240px;
    display: block;
}

/* Bow String Pull animation hooks */
#bowString {
    transition: d 0.1s ease-out;
}
#arrowProjectile {
    transition: transform 0.1s ease-out;
    transform-box: fill-box;
    transform-origin: center;
}

#targetGroup,
#impactBurst {
    transform-box: fill-box;
    transform-origin: center;
}

.simulator-card.is-charging {
    box-shadow: 8px 8px 0 var(--text-dark), 0 0 0 6px rgba(255, 199, 0, 0.3);
}

.simulator-card.is-charging #arrowProjectile {
    filter: drop-shadow(0 0 5px #ffc700);
    animation: purchase-arrow-charge 0.55s ease-in-out infinite alternate;
}

.simulator-card.is-charging .status-sticker {
    background: #fff1a8;
    animation: purchase-status-pulse 0.8s steps(2, end) infinite;
}

.purchase-impact-message {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: max-content;
    max-width: calc(100% - 30px);
    padding: 12px 18px;
    border: var(--brutal-border);
    background: var(--primary-yellow);
    box-shadow: 6px 6px 0 var(--text-dark);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.2) rotate(-6deg);
}

.purchase-impact-kicker {
    color: var(--primary-red);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.purchase-impact-message strong {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.6vw, 1.55rem);
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.purchase-coin {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 2px solid var(--text-dark);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff8b5 0 12%, #ffc700 35%, #e28a00 100%);
    box-shadow: 2px 3px 0 rgba(17, 32, 23, 0.75);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 900;
    pointer-events: none;
    will-change: transform, opacity;
}

.purchase-coin::after {
    content: 'R';
}

#robiOutput.purchase-received {
    background: #fff5b8;
    color: var(--primary-green);
    font-weight: 900;
}

@keyframes purchase-arrow-charge {
    from { transform: translateY(-1px) rotate(-0.5deg); }
    to { transform: translateY(1px) rotate(0.5deg); }
}

@keyframes purchase-status-pulse {
    50% { filter: brightness(1.13); }
}

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

@media (prefers-reduced-motion: reduce) {
    .simulator-card.is-charging #arrowProjectile,
    .simulator-card.is-charging .status-sticker {
        animation: none;
    }
}

.wealth-bar-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.bar-track {
    height: 12px;
    background: #ffffff;
    border: var(--brutal-border);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-green);
    border-right: var(--brutal-border);
    transition: width 0.3s ease;
}

/* Form Card */
.form-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rate-card-brutal {
    background: var(--primary-yellow);
    border: var(--brutal-border);
    padding: 16px;
    text-align: center;
    transform: rotate(-1deg);
}

.rate-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.rate-val {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    margin-top: 4px;
    line-height: 1.2;
}

.rate-usd-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 4px;
}

.green-text {
    color: var(--primary-green);
}

.input-brutal-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-labels-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.brutal-input-box {
    display: flex;
    border: var(--brutal-border);
    background: #ffffff;
    overflow: hidden;
}

.brutal-input-box.disabled {
    background: #f1f5f9;
}

.brutal-input-box input {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.brutal-tag {
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: var(--bg-light);
    border-left: var(--brutal-border);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
}

.swap-icon-arrow {
    display: flex;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.3rem;
}

/* Addresses Bento Box */
.addresses-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.bento-address-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
}

.address-copy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: var(--brutal-border);
    padding: 12px 18px;
    font-family: monospace;
    font-size: 0.85rem;
}

.brutal-icon-btn {
    background: transparent;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.15s ease;
}

.brutal-icon-btn:hover {
    color: var(--text-dark);
    transform: scale(1.15);
}

/* Bento Tokenomics Section */
.bento-tokenomics-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-top: var(--brutal-border);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
}

.whale-wanted-poster {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    gap: 0;
    padding: 0;
    margin: 38px 0 34px;
    overflow: hidden;
    background: var(--primary-yellow);
}

.whale-wanted-art {
    min-height: 310px;
    border-right: var(--brutal-border);
    background: #cde8f4;
}

.whale-wanted-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whale-wanted-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    padding: clamp(28px, 5vw, 62px);
}

.whale-wanted-stamp {
    display: inline-block;
    padding: 7px 12px;
    border: var(--brutal-border);
    background: var(--primary-red);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: rotate(-2deg);
}

.whale-wanted-copy h3 {
    max-width: 520px;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.whale-wanted-copy p {
    max-width: 560px;
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.55;
}

@media (max-width: 968px) {
    .whale-wanted-poster {
        grid-template-columns: 1fr;
    }

    .whale-wanted-art {
        min-height: 0;
        aspect-ratio: 4 / 3;
        border-right: 0;
        border-bottom: var(--brutal-border);
    }
}

.bento-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #ffffff;
}

.box-large {
    grid-column: span 2;
}

.box-medium {
    grid-column: span 1;
}

.box-small {
    grid-column: span 1.5;
}

.bento-icon-sticker {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--brutal-border);
    font-size: 1.3rem;
}

.bg-green {
    background: var(--primary-green);
    color: var(--bg-light);
}

.bg-yellow {
    background: var(--primary-yellow);
}

.bg-red {
    background: var(--primary-red);
    color: var(--bg-light);
}

.bg-grey {
    background: var(--bg-light);
}

.bento-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.bento-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.bento-stat {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: auto;
}

.text-green { color: var(--primary-green); }
.text-yellow { color: #d97706; }

/* Roadmap Step Cards */
.roadmap-section {
    padding: 100px 40px 140px;
    max-width: 1200px;
    margin: 0 auto;
    border-top: var(--brutal-border);
}

.roadmap-flex {
    display: flex;
    gap: 30px;
}

.roadmap-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #ffffff;
    border-top: 6px solid var(--primary-green) !important;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(13, 168, 108, 0.15);
}

.roadmap-step h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.roadmap-step ul {
    list-style-type: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.roadmap-step ul li::before {
    content: "🏹";
    margin-right: 8px;
    font-size: 0.95rem;
}

/* Footer elements */
.footer {
    background: var(--bg-light);
    border-top: var(--brutal-border);
    padding: 60px 40px 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-socials {
    display: flex;
    gap: 24px;
}

.footer-socials a {
    color: var(--text-dark);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.footer-socials a:hover {
    color: var(--primary-green);
}

.footer-meta {
    border-top: 1px dashed rgba(0,0,0,0.1);
    padding-top: 30px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-meta p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-meta .disclaimer {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* --- premium reveal motion layer --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(.22,.61,.36,1), transform 0.8s cubic-bezier(.22,.61,.36,1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive elements */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .box-large, .box-medium, .box-small {
        grid-column: span 1;
    }
    .roadmap-flex {
        flex-direction: column;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }
    .hero-brutal {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
        padding-left: 20px;
        padding-right: 20px;
        gap: 40px;
    }
    .hero-text {
        align-items: center;
        text-align: center;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .hero-actions a {
        width: 100%;
    }
    .hero-sticker-side {
        order: -1;
    }
    .hero-sticker-side .speech-bubble {
        left: 50%;
        transform: translateX(-50%) rotate(-3deg);
        top: -60px;
    }
    .hero-sticker-side .speech-bubble::after {
        left: 50%;
        margin-left: -10px;
    }
    .hero-sticker-side .speech-bubble::before {
        left: 50%;
        margin-left: -9px;
    }
    .hero-sticker-img {
        width: 280px;
        height: 280px;
    }
    .presale-brutal-container {
        grid-template-columns: 1fr;
    }
    .addresses-bento {
        grid-template-columns: 1fr;
    }
}

/* --- Meme Generator Section --- */
.meme-generator-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-top: var(--brutal-border);
}

.meme-editor-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: #fdfdfa;
}

.meme-preview-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.meme-stage {
    background: #ffffff;
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow);
    padding: 8px;
}

#memeCanvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.brutal-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 18px;
    border: var(--brutal-border);
    background: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    resize: none;
}

.brutal-textarea:focus, .brutal-input-field:focus {
    background: #edf7f2;
}

.brutal-input-field {
    width: 100%;
    padding: 12px 18px;
    border: var(--brutal-border);
    background: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    outline: none;
}

.meme-action-buttons {
    margin-top: 20px;
}

/* --- Floating Zzz animations --- */
.snore-text {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--primary-green);
    pointer-events: none;
    font-size: 1.5rem;
    z-index: 1000;
    animation: snore-float 1.8s ease-out forwards;
}

@keyframes snore-float {
    0% {
        transform: translate(0, 0) scale(0.6);
        opacity: 0;
    }
    20% {
        opacity: 0.9;
    }
    100% {
        transform: translate(30px, -70px) scale(1.3);
        opacity: 0;
    }
}

/* --- Modal Certificate --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 32, 23, 0.45);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cert-modal {
    max-width: 600px;
    width: 100%;
    background: #fcfcf9;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-header h2 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.6rem;
}

.cert-close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
}

.cert-render-area {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border: var(--brutal-border);
    padding: 10px;
}

#certCanvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.cert-actions {
    display: flex;
    gap: 15px;
}

.cert-actions a, .cert-actions button {
    flex: 1;
}

@media (max-width: 968px) {
    .meme-editor-layout {
        grid-template-columns: 1fr;
    }
    .cert-actions {
        flex-direction: column;
    }
}

/* 3D Airdrop Game Section Styles */
.game-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-top: var(--brutal-border);
}

.game-brutal-container {
    position: relative;
    width: 100%;
    height: 550px;
    background: #0d1e15; /* Deep forest dark background */
    overflow: hidden;
    margin-top: 40px;
}

.game-stage-3d {
    width: 100%;
    height: 100%;
    position: relative;
}

.mario-pad-btn.btn-shoot {
    background: #ffd24a;
    color: #102018;
    min-width: 130px;
}

.mario-pad-btn.btn-shoot i {
    color: #b3261e;
}

.game-stage-3d::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 8, 4, 0.18), transparent 28%, transparent 72%, rgba(0, 8, 4, 0.22)),
        radial-gradient(ellipse at center, transparent 48%, rgba(0, 9, 5, 0.34) 100%);
    box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.42);
}

.game-stage-3d.game-hit::after {
    animation: game-hit-flash 0.52s ease-out;
}

.game-stage-3d.game-dodge::after {
    animation: game-dodge-flash 0.48s ease-out;
}

@keyframes game-hit-flash {
    0% { background-color: rgba(255, 48, 32, 0.72); box-shadow: inset 0 0 120px #ff2d20; }
    35% { background-color: rgba(255, 191, 0, 0.28); }
    100% { background-color: transparent; box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.42); }
}

@keyframes game-dodge-flash {
    0% { background-color: rgba(139, 255, 72, 0.34); box-shadow: inset 0 0 95px #adff5d; }
    100% { background-color: transparent; box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.42); }
}

#gameCanvas3d {
    width: 100%;
    height: 100%;
    display: block;
}

.game-sound-toggle {
    position: absolute;
    top: auto;
    bottom: 31px;
    left: calc(50% + 155px);
    transform: none;
    z-index: 95;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid #101a13;
    background: rgba(255, 255, 255, 0.94);
    color: #102018;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 4px 4px 0 #101a13;
    transition: transform 0.15s ease, background 0.15s ease;
}

.game-sound-toggle:hover {
    background: #ffd24a;
    transform: translateY(-2px);
}

.game-sound-toggle:active {
    transform: translateY(2px);
    box-shadow: 2px 2px 0 #101a13;
}

.game-fullscreen-toggle {
    position: absolute;
    top: auto;
    bottom: 31px;
    left: calc(50% + 215px);
    transform: none;
    z-index: 95;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid #101a13;
    background: #ffd966; /* Yellow like Mario's fullscreen */
    color: #102018;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 4px 4px 0 #101a13;
    transition: transform 0.15s ease, background 0.15s ease;
}

.game-fullscreen-toggle:hover {
    background: #ffe082;
    transform: translateY(-2px);
}

.game-fullscreen-toggle:active {
    transform: translateY(2px);
    box-shadow: 2px 2px 0 #101a13;
}

/* Fullscreen styling for Sherwood Run 3D */
.game-brutal-container:fullscreen,
.game-brutal-container:-webkit-full-screen,
.game-brutal-container.game-pseudo-fullscreen {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    background: #0d1e15;
}

.game-brutal-container.game-pseudo-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

body.game-expanded {
    overflow: hidden;
}

.game-brutal-container:fullscreen .game-stage-3d,
.game-brutal-container:-webkit-full-screen .game-stage-3d,
.game-brutal-container.game-pseudo-fullscreen .game-stage-3d {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
}


.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: rgba(17, 32, 23, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.game-menu, .game-over-screen {
    background: #fcfcf9;
    border: var(--brutal-border);
    padding: 30px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 6px 6px 0px #000;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.game-menu-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.2rem;
    line-height: 1.1;
    color: var(--text-dark);
}

.game-menu-title.text-red {
    color: var(--primary-red);
}

.game-menu-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.game-stats-box {
    background: #ffffff;
    border: var(--brutal-border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.game-hud {
    position: absolute;
    top: 110px;
    left: 20px;
    right: auto;
    z-index: 90;
    pointer-events: none;
}

.game-reward-panel {
    width: 218px;
    overflow: hidden;
    background: #fffdf3;
    border: 3px solid #101a13;
    box-shadow: 5px 5px 0 #101a13;
    pointer-events: auto;
    font-family: var(--font-heading);
}

.reward-panel-head {
    min-height: 31px;
    padding: 6px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: #10291c;
    color: #ffffff;
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.7px;
}

.reward-panel-head > span:first-child {
    color: #ffd24a;
    white-space: nowrap;
}

.reward-panel-head .hud-reset {
    color: #d5e2d8;
    font-size: 0.49rem;
    letter-spacing: 0.35px;
    white-space: nowrap;
}

.reward-today-row {
    padding: 9px 10px 6px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.reward-today-label,
.reward-mini-grid span {
    color: #647269;
    font-size: 0.54rem;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.reward-today-row strong {
    color: #2d9a5f;
    font-size: 1.08rem;
    line-height: 1;
    white-space: nowrap;
}

.reward-today-row small {
    color: #425149;
    font-size: 0.57rem;
}

.reward-progress {
    height: 7px;
    margin: 0 10px 9px;
    overflow: hidden;
    background: #dce5dc;
    border: 2px solid #101a13;
}

.reward-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #ffd24a, #4fbd78);
    transition: width 0.25s ease;
}

.reward-mini-grid {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    border-top: 2px solid #101a13;
}

.reward-mini-grid > div {
    min-width: 0;
    padding: 7px 9px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reward-mini-grid > div + div {
    border-left: 2px solid #101a13;
}

.reward-mini-grid strong {
    overflow: hidden;
    color: #10291c;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .game-hud {
        top: 102px;
        left: 10px;
    }

    .game-reward-panel {
        width: 190px;
        transform: scale(0.9);
        transform-origin: top left;
    }
}

.hud-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.hud-val {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-dark);
}

.hud-val.text-green {
    color: var(--primary-green);
}

.mobile-controls {
    display: flex; /* Always visible */
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    justify-content: center;
    gap: 20px;
    z-index: 90;
    padding: 0 20px;
}

.btn-ctrl {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: var(--brutal-border);
    font-size: 1.6rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000;
    transition: transform 0.1s, box-shadow 0.1s;
    user-select: none;
    touch-action: manipulation;
}

.btn-ctrl:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

.btn-ctrl-jump {
    width: 70px;
    height: 70px;
    background: var(--primary-yellow);
}

.game-action-buttons {
    display: flex;
    gap: 15px;
}

.game-action-buttons button {
    flex: 1;
}

/* Responsive Styles for Game */
@media (max-width: 968px) {
    .mobile-controls {
        display: flex;
    }
    .game-hud {
        top: 15px;
        left: 15px;
        right: 15px;
    }
    .hud-item {
        padding: 6px 12px;
    }
    .hud-val {
        font-size: 1.1rem;
    }
    .game-menu, .game-over-screen {
        padding: 20px;
        gap: 15px;
    }
    .game-menu-title {
        font-size: 1.7rem;
    }
    .game-action-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Sherwood Run 2.5D — premium runner visual system */
.game-brutal-container {
    height: 640px;
    border: 4px solid #102c22;
    border-radius: 26px;
    background: #102c22;
    box-shadow: 0 24px 60px rgba(16, 44, 34, 0.28), 10px 10px 0 #102c22;
    isolation: isolate;
    scroll-margin-top: 112px;
    padding: 0;
    transition: none;
}

/* Shared Sherwood pause system */
.sherwood-pause-toggle {
    position: absolute;
    top: 18px;
    right: 138px;
    z-index: 80;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    padding: 0;
    color: var(--game-ink);
    background: linear-gradient(180deg, #fff8dc, #eadcb3);
    border: 3px solid var(--game-ink);
    border-radius: 14px;
    box-shadow: 5px 5px 0 var(--game-ink);
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.sherwood-pause-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 5px 7px 0 var(--game-ink);
}

.sherwood-pause-toggle:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--game-ink);
}

.sherwood-pause-toggle:focus-visible {
    outline: 3px solid var(--game-gold);
    outline-offset: 3px;
}

.sherwood-pause-toggle.is-paused {
    color: #fff8dc;
    background: linear-gradient(180deg, #4f8d5d, var(--game-green));
}

.sherwood-pause-explorer { right: 76px; }

.sherwood-pause-overlay {
    position: absolute;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 23, 15, .72);
    backdrop-filter: blur(5px) saturate(.8);
}

.sherwood-pause-overlay[hidden] { display: none !important; }

.sherwood-pause-window {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    transform: none !important;
}

.sherwood-pause-kicker {
    color: #77542a;
    font-family: var(--font-heading);
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sherwood-pause-title {
    color: var(--game-green);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 950;
    line-height: .92;
    letter-spacing: -.04em;
}

.sherwood-pause-window p {
    max-width: 390px;
    margin: 0;
    color: #385342;
    font-weight: 700;
    line-height: 1.45;
}

.sherwood-pause-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(100%, 360px);
    gap: 12px;
}

.sherwood-pause-actions button {
    min-height: 54px;
    padding: 12px 18px;
    color: var(--game-ink);
    border: 3px solid var(--game-ink);
    border-radius: 12px;
    box-shadow: 4px 4px 0 var(--game-ink);
    font-family: var(--font-heading);
    font-weight: 950;
    cursor: pointer;
}

.sherwood-resume-btn { background: linear-gradient(180deg, #77b884, #4f8d5d); }
.sherwood-restart-btn { background: linear-gradient(180deg, #ffd86b, #f0b836); }

.sherwood-pause-actions button:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--game-ink);
}

.sherwood-pause-window small {
    color: #6d806f;
    font-size: .68rem;
    font-weight: 800;
}

@media (max-width: 720px) {
    .sherwood-pause-toggle {
        top: 10px;
        right: 118px;
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .sherwood-pause-explorer { right: 68px; }
    .sherwood-pause-overlay { padding: 14px; }
    .sherwood-pause-window { gap: 13px; }
}

@media (max-width: 430px) {
    .sherwood-pause-actions { grid-template-columns: 1fr; }
    .sherwood-pause-actions button { min-height: 50px; }
    .sherwood-pause-window small { display: none; }
}

/* Sherwood Land thumb controller */
.mario-gamepad {
    height: auto;
    min-height: 132px;
    padding: 12px 20px 16px;
    gap: 10px;
    background:
        linear-gradient(180deg, rgba(255, 244, 214, .07), transparent 38%),
        #10291d;
    border-top: 3px solid var(--game-ink);
    box-shadow: inset 0 2px 0 rgba(255, 244, 214, .14);
}

.mario-gamepad-head {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
}

.mario-gamepad-title {
    color: #8ac17f;
    font-family: var(--font-heading);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .18em;
}

.mario-gamepad-hint {
    color: rgba(255, 244, 214, .58);
    font-family: var(--font-body);
    font-size: .66rem;
    font-weight: 700;
}

.mario-dpad {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(250px, 1fr);
    width: min(100%, 720px);
    gap: 20px;
}

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

.mario-pad-btn {
    min-width: 0;
    height: 60px;
    padding: 0 18px;
    justify-content: center;
    gap: 10px;
    border: 2px solid #173728;
    border-radius: 14px;
    box-shadow: 0 5px 0 #07170f, 0 10px 20px rgba(0, 0, 0, .2);
    font-family: var(--font-heading);
    font-size: .86rem;
    letter-spacing: .035em;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.mario-pad-btn i { font-size: 1.12rem; }

.mario-pad-btn span {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.mario-pad-btn small {
    margin-top: 5px;
    font-family: var(--font-body);
    font-size: .53rem;
    font-weight: 800;
    letter-spacing: .07em;
    opacity: .68;
}

.mario-pad-btn.btn-left,
.mario-pad-btn.btn-right {
    color: var(--game-ink);
    background: linear-gradient(180deg, #fff8dc, #e9dbb2);
}

.mario-pad-btn.btn-jump {
    height: 60px;
    color: #fff8dc;
    background: linear-gradient(180deg, #4f8d5d, #2f6a3d);
    font-size: .86rem;
}

.mario-pad-btn.btn-shoot {
    min-width: 0;
    color: var(--game-ink);
    background: linear-gradient(180deg, #ffd86b, #f0b836);
}

.mario-pad-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 0 #07170f, 0 12px 22px rgba(0, 0, 0, .24);
}

.mario-pad-btn:active,
.mario-pad-btn.is-pressed {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #07170f, 0 4px 10px rgba(0, 0, 0, .2);
}

.mario-pad-btn:focus-visible {
    outline: 3px solid #fff4d6;
    outline-offset: 3px;
}

.mario-brutal-container:fullscreen .mario-gamepad,
.mario-brutal-container:-webkit-full-screen .mario-gamepad,
.mario-brutal-container.mario-pseudo-fullscreen .mario-gamepad {
    flex-basis: 132px;
}

@media (max-width: 720px) {
    .mario-gamepad {
        min-height: 154px;
        padding: 10px 12px 14px;
        gap: 8px;
    }

    .mario-gamepad-head {
        justify-content: space-between;
        gap: 8px;
    }

    .mario-gamepad-hint { font-size: .58rem; }

    .mario-dpad {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 14px;
    }

    .mario-control-cluster { gap: 7px; }

    .mario-pad-btn {
        min-height: 72px;
        height: 72px;
        padding: 0 8px;
        border-radius: 16px;
        font-size: .72rem;
    }

    .mario-pad-btn.btn-jump { height: 72px; font-size: .72rem; }
    .mario-pad-btn i { font-size: 1rem; }
    .mario-pad-btn small { display: none; }

    .mario-brutal-container:fullscreen .mario-gamepad,
    .mario-brutal-container:-webkit-full-screen .mario-gamepad,
    .mario-brutal-container.mario-pseudo-fullscreen .mario-gamepad {
        flex-basis: 154px;
    }
}

@media (max-width: 430px) {
    .mario-gamepad-title { font-size: .62rem; }
    .mario-gamepad-hint { display: none; }
    .mario-pad-btn { gap: 5px; }
}

.game-brutal-container:hover {
    transform: none;
    box-shadow: 0 24px 60px rgba(16, 44, 34, 0.28), 10px 10px 0 #102c22;
}

.game-stage-3d {
    border-radius: 21px;
    overflow: hidden;
}

.game-stage-3d::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background:
        radial-gradient(circle at 28% 12%, rgba(255, 226, 142, 0.24), transparent 32%),
        radial-gradient(ellipse at 50% 55%, rgba(255, 244, 193, 0.08), transparent 46%);
    mix-blend-mode: screen;
}

.game-stage-3d::after {
    z-index: 7;
    background:
        linear-gradient(180deg, rgba(5, 22, 16, 0.12), transparent 25%, transparent 68%, rgba(5, 22, 16, 0.28)),
        radial-gradient(ellipse at center, transparent 46%, rgba(6, 25, 18, 0.38) 100%);
    box-shadow: inset 0 0 110px rgba(5, 20, 14, 0.34);
}

.game-speed-lines {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(72deg, transparent 0 48%, rgba(255,255,255,.34) 49%, transparent 50%) 0 0 / 180px 100%,
        linear-gradient(108deg, transparent 0 48%, rgba(255,243,196,.28) 49%, transparent 50%) 0 0 / 230px 100%;
    transform: scale(1.18);
    transition: opacity .35s ease;
    animation: sherwood-speed-lines .58s linear infinite;
}

.game-speed-lines.is-fast { opacity: .24; }

@keyframes sherwood-speed-lines {
    to { background-position: -180px 80px, 230px 110px; }
}

.game-overlay {
    background: linear-gradient(180deg, rgba(7, 30, 21, 0.28), rgba(7, 30, 21, 0.66));
    backdrop-filter: blur(8px) saturate(1.12);
}

.game-menu,
.game-over-screen {
    max-width: 520px;
    gap: 18px;
    padding: 34px 38px 32px;
    color: #fff3c4;
    background:
        linear-gradient(145deg, rgba(43, 89, 59, .97), rgba(14, 48, 34, .98)),
        #173c2b;
    border: 2px solid rgba(255, 229, 149, .72);
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(4, 20, 14, .46), inset 0 0 0 5px rgba(10, 37, 26, .6);
}

.game-menu::before,
.game-over-screen::before {
    content: "";
    width: 64px;
    height: 4px;
    margin: -8px auto 0;
    border-radius: 999px;
    background: #ffd35a;
    box-shadow: 0 0 18px rgba(255, 211, 90, .5);
}

.game-menu-kicker {
    color: #a9d887;
    font-family: var(--font-heading);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .22em;
}

.game-menu-title {
    color: #fff3c4;
    font-size: clamp(2.1rem, 5vw, 3.45rem);
    letter-spacing: -.045em;
    text-shadow: 0 4px 0 rgba(5, 24, 16, .65);
}

.game-menu-title span { color: #ffd35a; }
.game-menu-title.text-red { color: #ff8b78; }

.game-menu-desc {
    max-width: 430px;
    margin: 0 auto;
    color: #e3edcf;
    font-size: .98rem;
}

.game-menu-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.game-menu-controls span {
    padding: 9px 6px;
    border: 1px solid rgba(255, 243, 196, .22);
    border-radius: 12px;
    background: rgba(4, 24, 16, .28);
    color: #bcd1b5;
    font-family: var(--font-heading);
    font-size: .57rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.game-menu-controls b {
    display: block;
    margin-bottom: 3px;
    color: #ffd35a;
    font-size: .72rem;
}

#startGameBtn,
#retryGameBtn {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffe27d, #f4bd37);
    color: #173c2b;
    box-shadow: 0 6px 0 #9b6b1d, 0 12px 24px rgba(4, 20, 14, .28);
}

#startGameBtn:hover,
#retryGameBtn:hover { transform: translateY(-2px); }

.game-stats-box {
    color: #173c2b;
    background: #fff8dc;
    border: 0;
    border-radius: 14px;
}

.game-hud {
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.game-reward-panel {
    width: 204px;
    border: 1px solid rgba(255, 243, 196, .48);
    border-radius: 16px;
    background: rgba(10, 42, 29, .82);
    box-shadow: 0 12px 28px rgba(4, 22, 14, .32);
    color: #fff3c4;
    backdrop-filter: blur(12px);
}

.reward-panel-head { background: rgba(4, 24, 16, .5); }
.reward-today-label,
.reward-mini-grid span { color: #bcd1b5; }
.reward-today-row strong { color: #ffd35a; }
.reward-today-row small { color: #dbe8d1; }
.reward-progress { background: rgba(255,255,255,.16); border: 0; border-radius: 999px; }
.reward-mini-grid { border-top-color: rgba(255,255,255,.14); }
.reward-mini-grid > div + div { border-left-color: rgba(255,255,255,.14); }
.reward-mini-grid strong { color: #fff3c4; }

.game-run-telemetry {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    grid-template-columns: repeat(3, minmax(78px, 1fr));
    min-width: 300px;
    overflow: hidden;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 243, 196, .42);
    border-radius: 16px;
    background: rgba(9, 38, 27, .78);
    box-shadow: 0 10px 28px rgba(4, 22, 14, .28);
    backdrop-filter: blur(12px);
}

.game-run-telemetry > div {
    padding: 9px 12px 10px;
    text-align: center;
}

.game-run-telemetry > div + div { border-left: 1px solid rgba(255,255,255,.13); }
.game-run-telemetry span {
    display: block;
    color: #9fc6a4;
    font-family: var(--font-heading);
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: .12em;
}
.game-run-telemetry strong {
    color: #fff3c4;
    font-family: var(--font-heading);
    font-size: 1rem;
}
.game-run-telemetry .telemetry-streak strong { color: #ffd35a; }

.mobile-controls { bottom: 22px; gap: 16px; }
.btn-ctrl {
    width: 58px;
    height: 58px;
    border: 2px solid rgba(255, 243, 196, .72);
    background: rgba(12, 49, 34, .82);
    color: #fff3c4;
    box-shadow: 0 7px 18px rgba(4, 20, 14, .34);
    backdrop-filter: blur(8px);
}
.btn-ctrl-jump {
    width: 68px;
    height: 68px;
    background: linear-gradient(180deg, #ffe27d, #efb52e);
    color: #173c2b;
}

.game-sound-toggle,
.game-fullscreen-toggle {
    bottom: 28px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 243, 196, .66);
    background: rgba(12, 49, 34, .82);
    color: #fff3c4;
    box-shadow: 0 7px 18px rgba(4, 20, 14, .34);
    backdrop-filter: blur(8px);
}
.game-sound-toggle { left: auto; right: 74px; }
.game-fullscreen-toggle { left: auto; right: 22px; background: rgba(255, 211, 90, .88); color: #173c2b; }

@media (max-width: 720px) {
    .game-section { padding: 72px 10px; }
    .game-brutal-container { height: min(690px, 80vh); border-radius: 18px; }
    .game-stage-3d { border-radius: 13px; }
    .game-overlay { padding: 12px; }
    .game-menu, .game-over-screen { max-width: 350px; padding: 24px 18px 22px; gap: 13px; }
    .game-menu-title { font-size: 1.95rem; }
    .game-menu-desc { font-size: .84rem; }
    .game-hud { top: 10px; left: 10px; right: 10px; }
    .game-reward-panel { width: 170px; transform: none; }
    .game-run-telemetry { top: 126px; min-width: 235px; grid-template-columns: repeat(3, 1fr); }
    .game-run-telemetry > div { padding: 7px 6px; }
    .game-run-telemetry strong { font-size: .82rem; }
    .game-menu-controls { grid-template-columns: 1fr; }
    .game-menu-controls span { display: flex; justify-content: center; gap: 8px; }
    .game-menu-controls b { margin: 0; }
    .game-sound-toggle,
    .game-fullscreen-toggle { top: 190px; bottom: auto; }
    .game-sound-toggle { right: 62px; }
    .game-fullscreen-toggle { right: 12px; }
}

/* ==========================================
   3D EXPLORATION: SHERWOOD EXPLORER 3D STYLES
   ========================================== */
.explorer-section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.explorer-brutal-container {
    position: relative;
    width: 100%;
    height: 600px;
    background: #040806;
    border: 4px solid var(--fg);
    box-shadow: 12px 12px 0 var(--fg);
    overflow: hidden;
    margin-top: 30px;
    user-select: none;
}

.explorer-stage-3d {
    width: 100%;
    height: 100%;
    position: relative;
}

.explorer-stage-3d canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Loading Screen Overlay */
.explorer-loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #040806;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 30;
    pointer-events: auto;
}

.explorer-loader-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-green);
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #000;
}

.explorer-loader-desc {
    font-size: 0.95rem;
    color: #8da497;
}

.explorer-progressbar-container {
    width: 70%;
    max-width: 450px;
    height: 30px;
    background: #111e17;
    border: 3px solid var(--fg);
    box-shadow: 4px 4px 0 var(--fg);
    overflow: hidden;
    position: relative;
}

.explorer-progressbar {
    height: 100%;
    width: 0%;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #111e17;
    font-size: 0.95rem;
    transition: width 0.1s ease;
}

/* Start Menu & Interaction Overlay */
.explorer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

.explorer-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 550px;
    background: var(--bg);
    border: 4px solid var(--fg);
    box-shadow: 8px 8px 0 var(--fg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    pointer-events: auto;
}

.explorer-menu-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--fg);
    text-shadow: 3px 3px 0 var(--yellow);
    letter-spacing: 1px;
}

.explorer-menu-desc {
    font-size: 1.0rem;
    color: var(--fg-muted);
    line-height: 1.6;
    text-align: left;
    width: 100%;
    border: 3px dashed var(--fg);
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    box-sizing: border-box;
}

.explorer-menu-desc strong {
    color: var(--primary-green);
}

/* Brutalist HUD Overlay */
.explorer-hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 15;
    width: calc(100% - 40px);
}

.explorer-hud-controls {
    background: var(--bg);
    border: 3px solid var(--fg);
    box-shadow: 4px 4px 0 var(--fg);
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fg);
}

.explorer-key-tag {
    font-family: var(--font-mono);
    font-weight: 900;
    background: #111e17;
    border: 2px solid var(--fg);
    padding: 2px 6px;
    color: var(--primary-green);
    margin-right: 5px;
}

.explorer-hud-position {
    background: var(--bg);
    border: 3px solid var(--fg);
    box-shadow: 4px 4px 0 var(--fg);
    padding: 8px 15px;
    pointer-events: auto;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--primary-green);
}

@media (max-width: 768px) {
    .explorer-hud {
        flex-direction: column;
        gap: 10px;
    }
    .explorer-hud-controls {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    .explorer-menu-title {
        font-size: 1.8rem;
    }
}

/* Floating Gamepad Overlay for 3D Explorer */
.explorer-controls-overlay {
    position: absolute;
    bottom: 120px; /* Elevated above the debug log panel */
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    z-index: 20;
    width: calc(100% - 40px);
}

.explorer-dpad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    pointer-events: auto;
}

.dpad-row {
    display: flex;
    gap: 5px;
}

.explorer-btn {
    width: 50px;
    height: 50px;
    background: #ffffff !important;
    border: 3px solid var(--fg) !important;
    box-shadow: 3px 3px 0 var(--fg) !important;
    font-weight: 900;
    color: var(--fg) !important;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    transition: transform 0.05s, box-shadow 0.05s;
    border-radius: 4px;
}

.explorer-btn:active {
    transform: translate(2px, 2px) !important;
    box-shadow: 1px 1px 0 var(--fg) !important;
}

.explorer-btn.btn-forward { background: #1e90ff !important; color: white !important; }
.explorer-btn.btn-backward { background: #1e90ff !important; color: white !important; }
.explorer-btn.btn-left { background: #1e90ff !important; color: white !important; }
.explorer-btn.btn-right { background: #1e90ff !important; color: white !important; }

.explorer-btn.btn-jump {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #ff4500 !important;
    color: white !important;
    font-size: 0.9rem;
    box-shadow: 4px 4px 0 var(--fg) !important;
    pointer-events: auto;
}

.explorer-btn.btn-jump:active {
    transform: translate(3px, 3px) !important;
    box-shadow: 1px 1px 0 var(--fg) !important;
}

.explorer-hud-controls {
    background: #ffffff !important;
    color: #000000 !important;
}

.explorer-hud-position {
    background: #ffffff !important;
    color: var(--primary-green) !important;
}

/* --- High Contrast Text Overrides for Complex Backgrounds --- */
.hero-subtitle, .section-desc {
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    text-shadow: 
        2px 2px 0px #ffffff, 
        -2px -2px 0px #ffffff, 
        2px -2px 0px #ffffff, 
        -2px 2px 0px #ffffff, 
        0px 0px 8px #ffffff,
        0px 0px 15px #ffffff !important;
}

.hero-title, .section-title {
    text-shadow: 
        2.5px 2.5px 0px #ffffff, 
        -2.5px -2.5px 0px #ffffff, 
        2.5px -2.5px 0px #ffffff, 
        -2.5px 2.5px 0px #ffffff, 
        0px 0px 10px #ffffff !important;
}

/* ==========================================
   2D ARCHERY: SHERWOOD ARCHERY DEFENSE STYLES
   ========================================== */
.archery-section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.archery-brutal-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #060e0a;
    border: 4px solid var(--fg);
    box-shadow: 12px 12px 0 var(--fg);
    overflow: hidden;
    margin-top: 30px;
    user-select: none;
}

.archery-stage-2d {
    width: 100%;
    height: 100%;
    position: relative;
}

.archery-stage-2d canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: #092219;
}

/* Sound / Fullscreen buttons */
.archery-sound-toggle, .archery-fullscreen-toggle {
    position: absolute;
    top: 15px;
    z-index: 15;
    width: 40px;
    height: 40px;
    border: 3px solid var(--fg);
    background: var(--bg);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 3px 3px 0 var(--fg);
    border-radius: 4px;
    transition: transform 0.05s, box-shadow 0.05s;
    pointer-events: auto;
}

.archery-sound-toggle {
    right: 70px;
}

.archery-fullscreen-toggle {
    right: 15px;
}

.archery-sound-toggle:hover, .archery-fullscreen-toggle:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--fg);
}

.archery-sound-toggle:active, .archery-fullscreen-toggle:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--fg);
}

/* UI Overlay Screen */
.archery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* Base overlay windows */
.archery-menu, .archery-gameover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 520px;
    background: var(--bg);
    border: 4px solid var(--fg);
    box-shadow: 8px 8px 0 var(--fg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    pointer-events: auto;
}

.archery-menu-title {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--fg);
    text-shadow: 3px 3px 0 var(--primary-yellow);
    letter-spacing: 1px;
}

.archery-menu-desc {
    font-size: 1.0rem;
    color: var(--fg-muted);
    line-height: 1.5;
}

/* HUD Panel */
.archery-hud {
    position: absolute;
    top: 15px;
    left: 85px; /* Shift past 80px wide tower */
    z-index: 12;
    display: flex;
    gap: 15px;
    pointer-events: auto;
}

.archery-hud-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid var(--text-dark);
    padding: 10px 15px;
    box-shadow: 4px 4px 0 var(--text-dark);
    color: white;
}

.archery-hud-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 14px;
}

.archery-hud-label {
    opacity: 0.6;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.archery-hud-val {
    font-weight: 900;
    font-size: 16px;
}

.archery-reward-panel {
    background: #fffdf3; /* Light parchment background */
    border: 3px solid var(--text-dark);
    padding: 12px;
    width: 220px;
    box-shadow: 4px 4px 0 var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.archery-reward-head {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-family: var(--font-heading);
    font-weight: bold;
    color: #ffd700;
    background: #10291c;
    margin: -12px -12px 0 -12px;
    padding: 6px 12px;
    border-bottom: 3px solid var(--text-dark);
}

.archery-reward-today {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-top: 4px;
}

.archery-reward-today strong {
    font-size: 13px;
    color: var(--primary-green);
}

.archery-reward-progress {
    height: 8px;
    background: #e2e8f0;
    border: 2px solid var(--text-dark);
    overflow: hidden;
    position: relative;
}

.archery-reward-progress span {
    display: block;
    height: 100%;
    background: var(--primary-green);
    width: 0%;
}

.archery-reward-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    border-top: 2px dashed #cbd5e1;
    padding-top: 6px;
    text-align: center;
}

.archery-reward-grid div {
    display: flex;
    flex-direction: column;
}

.archery-reward-grid span {
    font-size: 8px;
    color: var(--text-muted);
    font-weight: bold;
}

.archery-reward-grid strong {
    font-size: 10px;
    color: var(--text-dark);
}

/* Gameover Screen overlay */
.archery-gameover-title {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--text-dark);
    text-shadow: 3px 3px 0 var(--primary-red);
    text-transform: uppercase;
}

.archery-gameover-desc {
    font-size: 1.0rem;
    color: var(--text-muted);
}

.archery-final-stats {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.archery-stat-card {
    border: 3px solid var(--text-dark);
    padding: 15px;
    background: #fdfcf7;
    box-shadow: 4px 4px 0 var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.archery-stat-card span {
    font-size: 11px;
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--text-muted);
    text-transform: uppercase;
}

.archery-stat-card strong {
    font-size: 20px;
    font-weight: 900;
}

/* Fullscreen support */
.archery-brutal-container:fullscreen {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border: none;
    box-shadow: none;
}

.archery-brutal-container:fullscreen .archery-stage-2d {
    width: 100%;
    height: 100%;
}

/* Patrol of Sherwood — warm storybook visual layer */
.archery-section {
    padding: 82px 24px;
    max-width: 1240px;
}

.archery-brutal-container {
    height: 620px;
    padding: 0;
    margin-top: 34px;
    background: #6f9f55;
    border: 5px solid #173728;
    border-radius: 22px;
    box-shadow: 0 20px 0 #173728, 0 30px 60px rgba(23, 55, 40, .25);
    isolation: isolate;
}

.archery-brutal-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    border: 7px solid rgba(255, 244, 214, .23);
    border-radius: 16px;
    box-shadow: inset 0 0 70px rgba(23, 55, 40, .17);
}

.archery-stage-2d canvas {
    background: #8bc7c2;
    touch-action: none;
}

.archery-menu,
.archery-gameover {
    max-width: 610px;
    padding: 34px 38px;
    gap: 16px;
    color: #173728;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,.72), transparent 34%),
        linear-gradient(145deg, #fff9e9, #f2ddb0);
    border: 4px solid #173728;
    border-radius: 26px 12px 26px 12px;
    box-shadow: 10px 12px 0 #173728, 0 22px 48px rgba(23, 55, 40, .3);
}

.archery-menu::before,
.archery-gameover::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 2px dashed rgba(139, 90, 50, .4);
    border-radius: 18px 7px 18px 7px;
    pointer-events: none;
}

.archery-menu-kicker {
    position: relative;
    color: #8b5a32;
    font: 900 .72rem/1 var(--font-heading);
    letter-spacing: .2em;
}

.archery-menu-title,
.archery-gameover-title {
    position: relative;
    color: #173728;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: .95;
    text-shadow: 3px 3px 0 #f5b942;
}

.archery-menu-desc,
.archery-gameover-desc {
    position: relative;
    max-width: 500px;
    color: #4f5945;
    font-size: .98rem;
}

.archery-menu-legend {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 9px;
}

.archery-menu-legend span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 7px;
    color: #245a36;
    background: rgba(255, 244, 214, .75);
    border: 2px solid #8b5a32;
    border-radius: 12px 5px 12px 5px;
    font: 800 .75rem/1.15 var(--font-heading);
}

.archery-menu .btn-brutal,
.archery-gameover .btn-brutal {
    position: relative;
    border-color: #173728;
    border-radius: 13px 6px 13px 6px;
    box-shadow: 5px 6px 0 #173728;
}

.archery-sound-toggle,
.archery-fullscreen-toggle {
    top: 16px;
    width: 43px;
    height: 43px;
    color: #173728;
    background: rgba(255, 244, 214, .92);
    border: 3px solid #173728;
    border-radius: 50%;
    box-shadow: 3px 4px 0 #173728;
}

.archery-sound-toggle { right: 70px; }
.archery-fullscreen-toggle { right: 16px; }

.archery-hud {
    top: 14px;
    left: 14px;
    gap: 10px;
}

.archery-reward-panel {
    width: 230px;
    padding: 11px;
    background: rgba(255, 249, 233, .92);
    border: 3px solid #173728;
    border-radius: 14px 6px 14px 6px;
    box-shadow: 4px 5px 0 #173728;
    backdrop-filter: blur(8px);
}

.archery-reward-head {
    color: #fff4d6;
    background: #245a36;
    border-color: #173728;
    border-radius: 10px 3px 0 0;
}

.archery-reward-progress { border-color: #173728; border-radius: 6px; }
.archery-reward-progress span { background: linear-gradient(90deg, #6f9f55, #f5b942); }

.archery-hud-left {
    padding: 9px 12px;
    gap: 6px;
    color: #fff4d6;
    background: rgba(23, 55, 40, .88);
    border: 3px solid #173728;
    border-radius: 12px 5px 12px 5px;
    box-shadow: 4px 5px 0 #173728;
    backdrop-filter: blur(7px);
}

.archery-controls {
    position: absolute;
    z-index: 15;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    pointer-events: none;
}

.archery-move-controls {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    pointer-events: auto;
}

.archery-control-btn,
.archery-fire-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #173728;
    background: rgba(255, 244, 214, .93);
    border: 3px solid #173728;
    box-shadow: 3px 4px 0 #173728;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.archery-control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.archery-jump-btn { transform: translateY(-13px); background: #dce9bd; }

.archery-fire-btn {
    min-width: 154px;
    min-height: 54px;
    gap: 8px;
    padding: 10px 18px;
    color: #fff4d6;
    background: linear-gradient(145deg, #c95a50, #8f3d38);
    border-radius: 18px 7px 18px 7px;
    font: 900 .76rem/1 var(--font-heading);
    letter-spacing: .06em;
    pointer-events: auto;
}

.archery-fire-btn i { font-size: 1.1rem; }
.archery-control-btn:active,
.archery-fire-btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 #173728; }
.archery-jump-btn:active { transform: translate(2px, -10px); }

.archery-stat-card {
    background: rgba(255, 249, 233, .8);
    border-color: #173728;
    border-radius: 14px 5px 14px 5px;
    box-shadow: 4px 5px 0 #173728;
}

.archery-brutal-container:fullscreen,
.archery-brutal-container.archery-pseudo-fullscreen {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}

@media (max-width: 760px) {
    .archery-section { padding: 58px 10px; }
    .archery-brutal-container { height: min(680px, 78vh); min-height: 520px; border-width: 3px; border-radius: 14px; box-shadow: 0 12px 0 #173728; }
    .archery-menu, .archery-gameover { width: calc(100% - 28px); padding: 26px 20px; }
    .archery-menu-legend { grid-template-columns: 1fr; gap: 5px; }
    .archery-menu-legend span { min-height: 34px; }
    .archery-hud { left: 8px; top: 8px; }
    .archery-reward-panel { width: 195px; padding: 8px; }
    .archery-hud-left { display: none; }
    .archery-sound-toggle, .archery-fullscreen-toggle { top: 9px; width: 39px; height: 39px; }
    .archery-sound-toggle { right: 58px; }
    .archery-fullscreen-toggle { right: 9px; }
    .archery-controls { right: 9px; bottom: 10px; left: 9px; }
    .archery-control-btn { width: 46px; height: 46px; }
    .archery-fire-btn { min-width: 58px; width: 58px; min-height: 58px; padding: 0; border-radius: 50%; }
    .archery-fire-btn span { display: none; }
}

/* Guild proof: a compact trust layer between the presale and the games. */
.presale-fineprint {
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 2px dashed var(--text-dark);
    background: #fff9dc;
    color: #4b554f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.guild-proof-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 76px 40px;
    scroll-margin-top: 105px;
}

#presale,
#rewards-ledger,
#tokenomics,
#meme-generator {
    scroll-margin-top: 105px;
}

.guild-path-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 36px;
}

.guild-path-card {
    position: relative;
    min-height: 250px;
    padding: 28px;
    background: #fffdf6;
}

.guild-path-card:nth-child(2) {
    background: #fff2aa;
}

.guild-path-card:nth-child(3) {
    background: #dff5e8;
}

.guild-path-card:nth-child(4) {
    background: #f8ddd7;
}

.guild-step {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 24px;
    border: 3px solid var(--text-dark);
    border-radius: 50%;
    background: var(--primary-yellow);
    font-family: var(--font-heading);
    font-weight: 900;
}

.ecosystem-status {
    display: block;
    min-height: 30px;
    margin: -3px 0 10px;
    color: var(--primary-green);
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1.3;
}

.guild-path-card h3,
.guild-proof-board h3 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 900;
    text-transform: uppercase;
}

.guild-path-card p,
.guild-proof-board p {
    margin: 0;
    color: #425047;
    font-weight: 600;
    line-height: 1.55;
}

.guild-path-card a {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-green);
    font-family: var(--font-heading);
    font-weight: 900;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.guild-proof-board {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 34px;
    align-items: center;
    margin-top: 28px;
    padding: 34px;
    color: #fffdf4;
    background: var(--text-dark);
    box-shadow: 8px 8px 0 var(--primary-yellow);
}

.guild-proof-board h3,
.guild-proof-board p {
    color: inherit;
}

.guild-proof-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-yellow);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
}

.guild-proof-links {
    display: grid;
    gap: 10px;
}

.guild-proof-links a {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border: 2px solid #fffdf4;
    color: #fffdf4;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.guild-proof-links a:hover,
.guild-proof-links a:focus-visible {
    color: var(--text-dark);
    background: var(--primary-yellow);
    outline: none;
}

.guild-proof-links span {
    color: var(--primary-yellow);
    font-family: monospace;
}

.guild-proof-links a:hover span,
.guild-proof-links a:focus-visible span {
    color: inherit;
}

@media (max-width: 820px) {
    .guild-path-grid,
    .guild-proof-board {
        grid-template-columns: 1fr;
    }

    .guild-proof-section {
        padding: 56px 20px;
    }

    .guild-path-card {
        min-height: auto;
    }
}

@media (min-width: 821px) and (max-width: 1100px) {
    .guild-path-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .guild-proof-links a {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

/* Sherwood Farm 2.5D Styles */
.farm-section {
    position: relative;
    background: #fdfcf7;
}

.farm-brutal-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #0d1e15; /* Dark background */
    overflow: hidden;
    margin-top: 40px;
}

/* Overlays */
.farm-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none; /* Let clicks pass to canvas if not inside active UI */
    display: flex;
    align-items: center;
    justify-content: center;
}

.farm-menu, .farm-gameover {
    pointer-events: auto;
    background: #fffdf3;
    border: 3px solid var(--text-dark);
    box-shadow: 6px 6px 0 var(--text-dark);
    padding: 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 520px;
    width: 90%;
    text-align: center;
}

.farm-gameover-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-green);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.farm-gameover-desc {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* HUD Overlay Panel */
.farm-hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 15;
}

.farm-hud-left {
    display: flex;
    gap: 12px;
    pointer-events: auto;
}

.farm-hud-item {
    background: #fffdf3;
    border: 3px solid var(--text-dark);
    box-shadow: 4px 4px 0 var(--text-dark);
    padding: 10px 18px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.farm-hud-label {
    font-size: 9px;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.farm-hud-val {
    font-size: 16px;
    font-weight: 900;
    font-family: var(--font-heading);
}

.farm-hud-right {
    background: #fffdf3;
    border: 3px solid var(--text-dark);
    box-shadow: 4px 4px 0 var(--text-dark);
    padding: 12px 16px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 220px;
    pointer-events: auto;
}

.farm-reward-today {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: bold;
    color: var(--text-dark);
}

.farm-reward-progress {
    height: 8px;
    background: #ffffff;
    border: 2px solid var(--text-dark);
    border-radius: 4px;
    overflow: hidden;
}

.farm-reward-progress span {
    display: block;
    height: 100%;
    background: var(--primary-green);
    width: 0%;
    transition: width 0.3s ease;
}

/* Sound & Fullscreen Buttons */
.farm-sound-toggle, .farm-fullscreen-toggle {
    position: absolute;
    top: 15px;
    z-index: 15;
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border: 3px solid var(--text-dark);
    border-radius: 4px;
    background: #fffdf3;
    box-shadow: 3px 3px 0 var(--text-dark);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.05s, box-shadow 0.05s;
}

.farm-sound-toggle {
    right: 70px;
}

.farm-fullscreen-toggle {
    right: 15px;
}

.farm-sound-toggle:active, .farm-fullscreen-toggle:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--text-dark);
}

/* Final Stats card for Farm end screen */
.farm-final-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    margin-bottom: 10px;
}

.farm-stat-card {
    background: #ffffff;
    border: 3px solid var(--text-dark);
    padding: 12px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.farm-stat-card span {
    font-size: 11px;
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--text-muted);
    text-transform: uppercase;
}

.farm-stat-card strong {
    font-size: 20px;
    font-weight: 900;
}

/* Fullscreen support for farm */
.farm-brutal-container:fullscreen {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border: none;
    box-shadow: none;
}

.farm-brutal-container:fullscreen .farm-stage-2d {
    width: 100%;
    height: 100%;
}

/* Sherwood Harvest — hand-painted 2D rebuild */
.farm-section {
    background:
        radial-gradient(circle at 15% 10%, rgba(245, 185, 66, 0.16), transparent 30%),
        linear-gradient(180deg, #fffaf0 0%, #f3f7e9 100%);
}

.farm-section-tag {
    background: #2f6a3d;
    color: #fff4d6;
}

.farm-brutal-container {
    height: min(680px, 72vw);
    min-height: 500px;
    max-height: 680px;
    background: #416f3d;
    border: 4px solid #173728;
    border-radius: 18px;
    box-shadow: 10px 10px 0 #173728, 0 24px 60px rgba(23, 55, 40, 0.22);
    isolation: isolate;
}

.farm-stage-2d {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #6fa44c;
}

.farm-stage-2d canvas {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
    touch-action: none;
    cursor: crosshair;
}

.farm-overlay {
    background: transparent;
}

.farm-menu,
.farm-gameover {
    width: min(90%, 520px);
    padding: 30px 32px 28px;
    color: #173728;
    background:
        linear-gradient(rgba(255, 244, 214, 0.96), rgba(255, 250, 237, 0.96)),
        repeating-linear-gradient(0deg, transparent, transparent 7px, rgba(107, 63, 34, 0.05) 8px);
    border: 4px solid #173728;
    border-radius: 16px;
    box-shadow: 9px 9px 0 #173728, 0 28px 90px rgba(16, 35, 25, 0.32);
}

.farm-menu h3 {
    margin: 4px 0 12px;
    font-family: var(--font-heading);
    font-size: clamp(27px, 4vw, 42px);
    font-weight: 950;
    line-height: 0.95;
    letter-spacing: -1px;
    color: #2f6a3d;
}

.farm-menu p {
    max-width: 470px;
    margin: 0 0 20px;
    color: #385342;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.farm-menu-kicker {
    display: inline-flex;
    padding: 5px 10px;
    color: #fff4d6;
    background: #6b3f22;
    border: 2px solid #173728;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.farm-menu-footnote {
    margin-top: 14px;
    color: #647466;
    font-size: 11px;
    font-weight: 800;
}

.farm-hud {
    top: 16px;
    left: 16px;
    right: 16px;
    gap: 10px;
}

.farm-hud-left {
    gap: 8px;
}

.farm-hud-item,
.farm-hud-right {
    color: #173728;
    background: rgba(255, 244, 214, 0.93);
    border: 3px solid #173728;
    border-radius: 12px;
    box-shadow: 4px 4px 0 #173728;
    backdrop-filter: blur(8px);
}

.farm-hud-item {
    min-width: 94px;
    padding: 9px 13px;
}

.farm-hud-val {
    white-space: nowrap;
}

.farm-hud-right {
    width: 205px;
    margin-right: 106px;
}

.farm-reward-progress {
    background: #f0dfb9;
    border-color: #173728;
}

.farm-reward-progress span {
    background: linear-gradient(90deg, #2f6a3d, #72b84a, #f5b942);
}

.farm-sound-toggle,
.farm-fullscreen-toggle {
    top: 16px;
    color: #173728;
    background: #fff4d6;
    border-color: #173728;
    border-radius: 12px;
    box-shadow: 3px 3px 0 #173728;
}

.farm-controls {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 16;
    pointer-events: auto;
}

.farm-action-btn {
    min-width: 158px;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 18px;
    color: #173728;
    background: #f5b942;
    border: 3px solid #173728;
    border-radius: 14px;
    box-shadow: 5px 5px 0 #173728;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
    transition: transform 100ms ease, box-shadow 100ms ease, background 180ms ease;
}

.farm-action-btn.is-ready {
    background: #fff4d6;
    transform: translateY(-2px);
    animation: farm-action-pulse 1.4s ease-in-out infinite;
}

.farm-action-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 #173728;
}

.farm-action-key {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #fff4d6;
    background: #173728;
    border-radius: 8px;
    font-size: 12px;
}

.farm-walk-hint {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 14;
    padding: 7px 11px;
    color: #fff4d6;
    background: rgba(23, 55, 40, 0.82);
    border: 2px solid rgba(255, 244, 214, 0.72);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
}

.farm-toast {
    position: absolute;
    left: 50%;
    top: 112px;
    z-index: 18;
    max-width: min(80%, 460px);
    padding: 10px 16px;
    color: #173728;
    background: #fff4d6;
    border: 3px solid #173728;
    border-radius: 12px;
    box-shadow: 4px 4px 0 #173728;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -10px) scale(0.96);
    transition: opacity 180ms ease, transform 180ms ease;
}

.farm-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.farm-gameover-title {
    margin-top: 10px;
    color: #2f6a3d;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1;
}

.farm-stat-card {
    background: rgba(255, 255, 255, 0.66);
    border-color: #173728;
    border-radius: 12px;
}

@keyframes farm-action-pulse {
    0%, 100% { box-shadow: 5px 5px 0 #173728, 0 0 0 0 rgba(245, 185, 66, 0.5); }
    50% { box-shadow: 5px 5px 0 #173728, 0 0 0 8px rgba(245, 185, 66, 0); }
}

@media (max-width: 760px) {
    .farm-section {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .farm-brutal-container {
        height: 70vh;
        min-height: 560px;
        border-radius: 12px;
        box-shadow: 6px 6px 0 #173728;
    }

    .farm-hud {
        left: 9px;
        right: 9px;
        top: 9px;
        flex-direction: column;
    }

    .farm-hud-left {
        max-width: calc(100% - 92px);
        gap: 5px;
    }

    .farm-hud-item {
        min-width: 0;
        padding: 7px 9px;
    }

    .farm-hud-label { font-size: 8px; }
    .farm-hud-val { font-size: 12px; }

    .farm-hud-right {
        width: 190px;
        margin-right: 0;
        padding: 8px 10px;
    }

    .farm-walk-hint {
        display: none;
    }

    .farm-action-btn {
        min-width: 136px;
        min-height: 52px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .farm-menu,
    .farm-gameover {
        padding: 24px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .farm-action-btn.is-ready {
        animation: none;
    }
}

/* ==========================================================================
   Sherwood Egg Patrol — hand-painted four-lane arcade
   ========================================================================== */

.egg-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 40px;
    border-top: var(--brutal-border);
}

.egg-section-tag { background: #f4a43a; }

.egg-game-shell {
    position: relative;
    height: min(72vh, 720px);
    min-height: 590px;
    margin-top: 34px;
    padding: 0;
    scroll-margin-top: 116px;
    overflow: hidden;
    border: 4px solid #172a20;
    border-radius: 20px;
    background: #172a20;
    box-shadow: 10px 10px 0 #172a20, 0 24px 70px rgba(23, 42, 32, .22);
    isolation: isolate;
}

.egg-game-shell:hover {
    transform: none;
    box-shadow: 10px 10px 0 #172a20, 0 24px 70px rgba(23, 42, 32, .22);
}

.egg-stage,
#eggPatrolCanvas {
    width: 100%;
    height: 100%;
}

.egg-stage { position: relative; }

#eggPatrolCanvas {
    display: block;
    cursor: default;
    touch-action: none;
}

.egg-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.egg-menu,
.egg-gameover {
    width: min(92%, 535px);
    padding: 30px 34px;
    color: #172a20;
    background: linear-gradient(145deg, rgba(255, 246, 218, .98), rgba(245, 220, 166, .96));
    border: 4px solid #172a20;
    border-radius: 18px;
    box-shadow: 8px 8px 0 #172a20, inset 0 0 0 2px rgba(255,255,255,.65);
    text-align: center;
    pointer-events: auto;
}

.egg-menu h3,
.egg-gameover h3 {
    margin: 9px 0 12px;
    color: #2f6a3d;
    font-family: var(--font-heading);
    font-size: clamp(33px, 5vw, 54px);
    font-weight: 950;
    letter-spacing: -2px;
    line-height: .92;
    text-shadow: 2px 2px 0 #ffd35a;
}

.egg-menu p,
.egg-gameover p {
    margin: 0 auto 18px;
    max-width: 455px;
    color: #405245;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
}

.egg-menu small {
    display: block;
    margin-top: 14px;
    color: #657166;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.egg-kicker {
    display: inline-flex;
    padding: 6px 11px;
    color: #fff0c2;
    background: #5b321c;
    border: 2px solid #172a20;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 1.5px;
}

.egg-key-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin: 0 0 20px;
}

.egg-key-guide span {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: #5b321c;
    background: rgba(255,255,255,.48);
    border: 2px solid rgba(91,50,28,.24);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.egg-key-guide kbd,
.egg-touch-controls kbd {
    display: inline-grid;
    place-items: center;
    width: 25px;
    height: 25px;
    color: #fff0c2;
    background: #172a20;
    border: 0;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 11px;
    box-shadow: inset 0 -2px rgba(0,0,0,.25);
}

.egg-hud {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 116px;
    z-index: 15;
    display: flex;
    gap: 9px;
    pointer-events: none;
}

.egg-hud-card {
    min-width: 92px;
    padding: 8px 12px;
    color: #172a20;
    background: rgba(255, 240, 194, .92);
    border: 3px solid #172a20;
    border-radius: 12px;
    box-shadow: 3px 3px 0 #172a20;
    backdrop-filter: blur(8px);
}

.egg-hud-card span,
.egg-final-grid span {
    display: block;
    font-family: var(--font-heading);
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 1px;
}

.egg-hud-card strong {
    display: block;
    margin-top: 2px;
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1;
}

.egg-combo-card strong { color: #b85f19; }
.egg-earned-card { margin-left: auto; }
.egg-earned-card strong { color: #2f6a3d; }

.egg-icon-button {
    position: absolute;
    top: 14px;
    z-index: 18;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    color: #172a20;
    background: #fff0c2;
    border: 3px solid #172a20;
    border-radius: 11px;
    box-shadow: 3px 3px 0 #172a20;
    cursor: pointer;
}

.egg-icon-button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #172a20; }
.egg-sound { right: 63px; }
.egg-fullscreen { right: 14px; }

.egg-touch-controls {
    position: absolute;
    inset: 0;
    z-index: 14;
    pointer-events: none;
}

.egg-touch-controls button {
    position: absolute;
    width: 76px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff0c2;
    background: linear-gradient(145deg, rgba(47,106,61,.94), rgba(23,55,40,.94));
    border: 3px solid #fff0c2;
    border-radius: 14px;
    box-shadow: 4px 4px 0 #172a20, inset 0 0 0 1px rgba(255,255,255,.18);
    font-size: 18px;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 80ms ease, filter 120ms ease;
    touch-action: manipulation;
}

.egg-touch-controls button.is-active {
    filter: brightness(1.25) saturate(1.2);
    transform: scale(1.06);
    box-shadow: 0 0 0 5px rgba(255,211,90,.35), 4px 4px 0 #172a20;
}

.egg-touch-controls button:nth-child(1) { left: 16px; bottom: 90px; }
.egg-touch-controls button:nth-child(2) { right: 16px; bottom: 90px; }
.egg-touch-controls button:nth-child(3) { left: 16px; bottom: 20px; }
.egg-touch-controls button:nth-child(4) { right: 16px; bottom: 20px; }

.egg-toast {
    position: absolute;
    left: 50%;
    top: 84px;
    z-index: 19;
    padding: 8px 16px;
    color: #172a20;
    background: #ffd35a;
    border: 3px solid #172a20;
    border-radius: 999px;
    box-shadow: 3px 3px 0 #172a20;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 950;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -9px) scale(.94);
    transition: opacity 160ms ease, transform 160ms ease;
}

.egg-toast.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }

.egg-final-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin: 18px 0;
}

.egg-final-grid > div {
    padding: 12px 8px;
    background: rgba(255,255,255,.55);
    border: 2px solid #172a20;
    border-radius: 11px;
}

.egg-final-grid strong {
    display: block;
    margin-top: 5px;
    color: #2f6a3d;
    font-family: var(--font-heading);
    font-size: 22px;
}

.egg-gameover-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-width: 320px;
    margin: 0 auto;
}

@media (max-width: 760px) {
    .egg-section {
        width: calc(100% + 80px);
        max-width: none;
        margin-left: -40px;
        padding: 58px 13px;
    }
    .egg-game-shell { min-height: 600px; height: 76vh; border-radius: 13px; box-shadow: 6px 6px 0 #172a20; }
    .egg-menu, .egg-gameover { padding: 24px 18px; }
    .egg-hud { top: 8px; left: 8px; right: 104px; gap: 5px; flex-wrap: wrap; }
    .egg-hud-card { min-width: 68px; padding: 6px 8px; }
    .egg-hud-card strong { font-size: 14px; }
    .egg-earned-card { margin-left: 0; }
    .egg-icon-button { top: 8px; width: 39px; height: 39px; }
    .egg-sound { right: 53px; }
    .egg-fullscreen { right: 8px; }
    .egg-touch-controls button { width: 62px; height: 52px; }
    .egg-touch-controls button:nth-child(1), .egg-touch-controls button:nth-child(2) { bottom: 79px; }
    .egg-touch-controls button:nth-child(3), .egg-touch-controls button:nth-child(4) { bottom: 16px; }
    .egg-touch-controls button:nth-child(1), .egg-touch-controls button:nth-child(3) { left: 10px; }
    .egg-touch-controls button:nth-child(2), .egg-touch-controls button:nth-child(4) { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .egg-touch-controls button,
    .egg-toast { transition: none; }
}

/* ==========================================================================
   Unified Sherwood game presentation — Harvest frame and parchment windows
   ========================================================================== */

:root {
    --game-ink: #173728;
    --game-green: #2f6a3d;
    --game-frame: #52764a;
    --game-parchment: #fff4d6;
    --game-cream: #fffaf0;
    --game-gold: #f5b942;
    --game-danger: #d9504d;
}

.game-ui-section {
    position: relative;
    width: 100%;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 40px !important;
    overflow: visible;
    background:
        radial-gradient(circle at 15% 10%, rgba(245, 185, 66, .16), transparent 30%),
        linear-gradient(180deg, var(--game-cream) 0%, #f3f7e9 100%) !important;
    border-top: 3px solid var(--game-ink) !important;
}

.game-ui-ribbon {
    display: block;
    width: 100%;
    margin: 0 0 22px !important;
    padding: 6px 14px;
    color: var(--game-parchment) !important;
    background: var(--game-green) !important;
    border: 2px solid var(--game-ink);
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(23, 55, 40, .16);
    font-family: var(--font-heading);
    font-size: 12px !important;
    font-weight: 950 !important;
    line-height: 1.15;
    letter-spacing: 1.6px !important;
    text-align: center;
}

.game-ui-section > .section-title {
    margin: 0 0 18px;
    color: var(--game-ink);
    font-family: var(--font-heading);
    font-size: clamp(32px, 4.4vw, 54px);
    font-weight: 950;
    line-height: .95;
    letter-spacing: -2px;
    text-shadow: 3px 3px 0 rgba(82, 118, 74, .22);
}

.game-ui-section > .section-desc {
    max-width: 760px;
    margin: 0 auto 34px;
    color: #385342;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.55;
}

.game-ui-shell {
    position: relative;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--game-frame) !important;
    border: 4px solid var(--game-ink) !important;
    border-radius: 18px !important;
    box-shadow: 10px 10px 0 var(--game-ink), 0 24px 60px rgba(23, 55, 40, .22) !important;
    isolation: isolate;
}

.game-ui-shell:hover {
    transform: none !important;
    box-shadow: 10px 10px 0 var(--game-ink), 0 24px 60px rgba(23, 55, 40, .22) !important;
}

.game-ui-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 40;
    border: 7px solid rgba(82, 118, 74, .92);
    border-radius: 14px;
    box-shadow: inset 0 0 0 2px rgba(255, 244, 214, .28);
    pointer-events: none;
}

.game-ui-window {
    width: min(90%, 520px) !important;
    max-width: 520px !important;
    padding: 30px 32px 28px !important;
    color: var(--game-ink) !important;
    background:
        linear-gradient(rgba(255, 244, 214, .97), rgba(255, 250, 237, .97)),
        repeating-linear-gradient(0deg, transparent, transparent 7px, rgba(107, 63, 34, .05) 8px) !important;
    border: 4px solid var(--game-ink) !important;
    border-radius: 16px !important;
    box-shadow: 9px 9px 0 var(--game-ink), 0 28px 90px rgba(16, 35, 25, .32) !important;
    backdrop-filter: none !important;
}

.game-ui-window :is(
    .game-menu-title,
    .mario-menu-title,
    .explorer-menu-title,
    .archery-menu-title,
    .archery-gameover-title,
    .farm-gameover-title,
    .egg-gameover-title,
    h3
) {
    color: var(--game-green) !important;
    font-family: var(--font-heading) !important;
    font-size: clamp(28px, 4vw, 42px) !important;
    font-weight: 950 !important;
    line-height: .95 !important;
    letter-spacing: -1px !important;
    text-shadow: none !important;
}

.game-ui-window .text-red { color: var(--game-danger) !important; }
.game-ui-window .text-green { color: var(--game-green) !important; }

.game-ui-window :is(
    .game-menu-desc,
    .mario-menu-desc,
    .explorer-menu-desc,
    .archery-menu-desc,
    .archery-gameover-desc,
    .farm-gameover-desc,
    .egg-gameover-desc,
    p
) {
    color: #385342 !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.55 !important;
}

.game-ui-window :is(.game-menu-kicker, .archery-menu-kicker, .farm-menu-kicker, .egg-kicker) {
    display: inline-flex;
    padding: 5px 10px;
    color: var(--game-parchment) !important;
    background: #6b3f22 !important;
    border: 2px solid var(--game-ink) !important;
    border-radius: 999px !important;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.game-ui-shell .btn-brutal {
    border: 3px solid var(--game-ink);
    border-radius: 11px;
    box-shadow: 5px 5px 0 var(--game-ink);
}

.game-ui-shell .btn-brutal:hover:not(:disabled) {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--game-ink);
}

.game-reward-panel,
.mario-reward-panel,
.archery-reward-panel,
.farm-hud-item,
.farm-hud-right,
.egg-hud-card,
.explorer-hud-controls,
.explorer-hud-position {
    color: var(--game-ink) !important;
    background: rgba(255, 244, 214, .94) !important;
    border: 3px solid var(--game-ink) !important;
    border-radius: 12px !important;
    box-shadow: 4px 4px 0 var(--game-ink) !important;
    backdrop-filter: blur(8px);
}

:is(
    .game-sound-toggle, .game-fullscreen-toggle,
    .mario-sound-toggle, .mario-fullscreen-toggle,
    .explorer-fullscreen-btn,
    .archery-sound-toggle, .archery-fullscreen-toggle,
    .farm-sound-toggle, .farm-fullscreen-toggle,
    .egg-icon-button
) {
    color: var(--game-ink) !important;
    background: var(--game-parchment) !important;
    border: 3px solid var(--game-ink) !important;
    border-radius: 12px !important;
    box-shadow: 3px 3px 0 var(--game-ink) !important;
}

:is(
    .game-ui-shell:fullscreen,
    .game-ui-shell:-webkit-full-screen,
    .game-pseudo-fullscreen,
    .mario-pseudo-fullscreen,
    .archery-pseudo-fullscreen
) {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 760px) {
    #presale > .game-ui-section {
        width: calc(100% + 80px) !important;
        max-width: none !important;
        margin-left: -40px !important;
    }

    .game-ui-section {
        padding: 48px 14px !important;
    }

    .game-ui-ribbon {
        margin-bottom: 18px !important;
        padding: 6px 8px;
        font-size: 10px !important;
    }

    .game-ui-section > .section-title {
        margin-bottom: 14px;
        font-size: clamp(29px, 10vw, 42px);
        letter-spacing: -1.2px;
    }

    .game-ui-section > .section-desc {
        margin-bottom: 26px;
        font-size: 14px;
    }

    .game-ui-shell {
        border-width: 3px !important;
        border-radius: 12px !important;
        box-shadow: 6px 6px 0 var(--game-ink), 0 16px 40px rgba(23, 55, 40, .2) !important;
    }

    .game-ui-shell:hover {
        box-shadow: 6px 6px 0 var(--game-ink), 0 16px 40px rgba(23, 55, 40, .2) !important;
    }

    .game-ui-shell::before {
        border-width: 5px;
        border-radius: 9px;
    }

    .game-ui-window {
        width: calc(100% - 28px) !important;
        padding: 24px 18px !important;
        border-width: 3px !important;
        border-radius: 12px !important;
        box-shadow: 6px 6px 0 var(--game-ink), 0 18px 50px rgba(16, 35, 25, .28) !important;
    }
}
