/* ==========================================
   RECYCLE.GAMES — Glitch Warm-Earthy Arcade
   Colors: #4A3828, #B86848, #4A7848, #FAF4E8, #FFF8EE, #1A1408, #7A6040
   Fonts: Commissioner (display/body), Fira Code (game stats)
   ========================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    background-color: #FFF8EE;
    color: #4A3828;
    overflow-x: hidden;
    line-height: 1.8;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
}

/* ==========================================
   HUD FRAME OVERLAY
   ========================================== */
.hud-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* Corner Brackets */
.hud-corner {
    position: absolute;
    width: 40px;
    height: 40px;
}

.hud-corner-tl {
    top: 12px;
    left: 12px;
    border-top: 2px solid rgba(120, 90, 50, 0.4);
    border-left: 2px solid rgba(120, 90, 50, 0.4);
}

.hud-corner-tr {
    top: 12px;
    right: 12px;
    border-top: 2px solid rgba(120, 90, 50, 0.4);
    border-right: 2px solid rgba(120, 90, 50, 0.4);
}

.hud-corner-bl {
    bottom: 12px;
    left: 12px;
    border-bottom: 2px solid rgba(120, 90, 50, 0.4);
    border-left: 2px solid rgba(120, 90, 50, 0.4);
}

.hud-corner-br {
    bottom: 12px;
    right: 12px;
    border-bottom: 2px solid rgba(120, 90, 50, 0.4);
    border-right: 2px solid rgba(120, 90, 50, 0.4);
}

/* HUD Status Bars */
.hud-status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    background: rgba(26, 20, 8, 0.08);
    border-bottom: 1px solid rgba(120, 90, 50, 0.15);
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 10px;
    color: #7A6040;
    letter-spacing: 0.05em;
}

.hud-status-bar-bottom {
    top: auto;
    bottom: 0;
    border-bottom: none;
    border-top: 1px solid rgba(120, 90, 50, 0.15);
}

.hud-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.health-bar {
    display: inline-block;
    width: 60px;
    height: 6px;
    background: rgba(74, 56, 40, 0.15);
    border-radius: 3px;
    overflow: hidden;
    vertical-align: middle;
}

.health-fill {
    display: block;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, #4A7848, #B86848);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.hud-coords {
    opacity: 0.7;
}

.hud-scroll-indicator {
    animation: hudPulse 2s ease-in-out infinite;
}

@keyframes hudPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ==========================================
   MOUNTAIN LANDSCAPE BACKGROUND
   ========================================== */
.mountain-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 400px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.25;
}

.mountain-svg {
    width: 100%;
    height: 100%;
}

.mountain-back {
    fill: #4A3828;
    opacity: 0.3;
}

.mountain-mid {
    fill: #4A7848;
    opacity: 0.25;
}

.mountain-front {
    fill: #7A6040;
    opacity: 0.2;
}

/* ==========================================
   GLITCH CANVAS OVERLAY
   ========================================== */
#glitch-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
    opacity: 0.04;
}

/* ==========================================
   CONTENT WRAPPER
   ========================================== */
.content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 40px;
}

.hero-inner {
    transform: translateY(-20px);
}

.glitch-title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 16px;
    position: relative;
}

.title-line {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: #1A1408;
    letter-spacing: 0.08em;
    position: relative;
}

.title-dot {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: #B86848;
    margin: 0 2px;
}

.glitch-title::before,
.glitch-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.glitch-title::before {
    text-shadow: 2px 0 #B86848;
    animation: glitchShift1 4s infinite;
    opacity: 0;
}

.glitch-title::after {
    text-shadow: -2px 0 #4A7848;
    animation: glitchShift2 4s infinite;
    opacity: 0;
}

@keyframes glitchShift1 {
    0%, 90%, 100% { opacity: 0; transform: translate(0); }
    92% { opacity: 0.8; transform: translate(3px, -1px); }
    94% { opacity: 0; transform: translate(-2px, 1px); }
    96% { opacity: 0.6; transform: translate(1px, 0); }
}

@keyframes glitchShift2 {
    0%, 88%, 100% { opacity: 0; transform: translate(0); }
    90% { opacity: 0.6; transform: translate(-3px, 1px); }
    93% { opacity: 0; transform: translate(2px, -1px); }
    95% { opacity: 0.5; transform: translate(-1px, 0); }
}

.hero-subtitle {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    color: #7A6040;
    letter-spacing: 0.25em;
    margin-bottom: 24px;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.divider-line {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7A6040, transparent);
}

.divider-icon {
    color: #B86848;
    font-size: 0.7rem;
}

.hero-tagline {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: #4A3828;
    max-width: 420px;
    margin: 0 auto;
}

.scroll-prompt {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2.5s ease-in-out infinite;
}

.scroll-arrow {
    font-size: 1.2rem;
    color: #B86848;
}

.scroll-text {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 0.65rem;
    color: #7A6040;
    letter-spacing: 0.2em;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ==========================================
   COMMON SECTION STYLES
   ========================================== */
.section {
    padding: 100px 0 60px;
    position: relative;
}

.section-hud-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.hud-bracket {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 1.4rem;
    color: rgba(120, 90, 50, 0.3);
}

.section-label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: #1A1408;
    letter-spacing: 0.12em;
}

/* ==========================================
   GAME EVENT ANIMATIONS (scroll-triggered)
   ========================================== */
.game-event {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.game-event.activated {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   MISSION BRIEFING SECTION
   ========================================== */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.mission-card {
    background: rgba(250, 244, 232, 0.7);
    border: 1px solid rgba(120, 90, 50, 0.2);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #B86848;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mission-card:hover {
    border-color: rgba(184, 104, 72, 0.4);
    box-shadow: 0 4px 20px rgba(74, 56, 40, 0.08);
}

.mission-card:hover::before {
    opacity: 1;
}

.card-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
}

.card-id {
    color: #7A6040;
    letter-spacing: 0.1em;
}

.card-status {
    padding: 2px 8px;
    border-radius: 2px;
    letter-spacing: 0.08em;
    font-size: 0.6rem;
    font-weight: 500;
}

.card-status.active {
    background: rgba(74, 120, 72, 0.15);
    color: #4A7848;
    border: 1px solid rgba(74, 120, 72, 0.3);
}

.card-status.pending {
    background: rgba(184, 104, 72, 0.12);
    color: #B86848;
    border: 1px solid rgba(184, 104, 72, 0.3);
}

.card-status.locked {
    background: rgba(74, 56, 40, 0.08);
    color: #7A6040;
    border: 1px solid rgba(74, 56, 40, 0.2);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: #B86848;
}

.icon-svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1A1408;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.card-desc {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    color: #4A3828;
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: 0.9rem;
}

.card-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(74, 56, 40, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4A7848, #B86848);
    border-radius: 2px;
    transition: width 1.2s ease;
}

.progress-label {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 0.7rem;
    color: #7A6040;
    min-width: 32px;
    text-align: right;
}

/* ==========================================
   GAME WORLD SECTION
   ========================================== */
.world-display {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.terrain-map {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.terrain-cell {
    background: rgba(250, 244, 232, 0.6);
    border: 1px solid rgba(120, 90, 50, 0.15);
    padding: 20px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.terrain-cell::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: background 0.3s ease;
}

.terrain-cell:hover {
    background: rgba(250, 244, 232, 0.9);
    border-color: rgba(120, 90, 50, 0.3);
    transform: translateY(-2px);
}

.terrain-cell.forest:hover::after { background: #4A7848; }
.terrain-cell.mountain:hover::after { background: #7A6040; }
.terrain-cell.river:hover::after { background: #4A7848; }
.terrain-cell.desert:hover::after { background: #B86848; }
.terrain-cell.ocean:hover::after { background: #4A3828; }
.terrain-cell.city:hover::after { background: #B86848; }

.terrain-icon {
    font-size: 1.4rem;
    color: #B86848;
    line-height: 1;
}

.terrain-name {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 0.65rem;
    color: #1A1408;
    letter-spacing: 0.12em;
}

.terrain-stat {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    font-size: 0.6rem;
    color: #7A6040;
}

.world-info {
    padding: 0;
}

.info-panel {
    border: 1px solid rgba(120, 90, 50, 0.2);
    padding: 28px;
    background: rgba(250, 244, 232, 0.5);
}

.info-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #1A1408;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.info-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    color: #4A3828;
    line-height: 1.8;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.info-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #B86848;
}

.stat-label {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 0.6rem;
    color: #7A6040;
    letter-spacing: 0.1em;
}

/* ==========================================
   LEADERBOARD SECTION
   ========================================== */
.leaderboard-table {
    border: 1px solid rgba(120, 90, 50, 0.2);
    overflow: hidden;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 50px 1fr 100px 80px 80px;
    padding: 12px 20px;
    background: rgba(26, 20, 8, 0.05);
    border-bottom: 1px solid rgba(120, 90, 50, 0.15);
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 0.65rem;
    color: #7A6040;
    letter-spacing: 0.1em;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 50px 1fr 100px 80px 80px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(120, 90, 50, 0.08);
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    transition: background 0.3s ease;
    cursor: default;
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row:hover {
    background: rgba(250, 244, 232, 0.6);
}

.lb-col {
    display: flex;
    align-items: center;
}

.lb-rank {
    font-weight: 500;
    color: #B86848;
}

.lb-name {
    color: #1A1408;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.lb-score {
    color: #4A7848;
    font-weight: 500;
}

.lb-items {
    color: #7A6040;
}

.lb-zone {
    color: #4A3828;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

/* ==========================================
   HOW TO PLAY SECTION
   ========================================== */
.howto-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.howto-step {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    position: relative;
    align-items: flex-start;
}

.step-number {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: rgba(184, 104, 72, 0.2);
    line-height: 1;
    min-width: 52px;
    text-align: right;
    padding-top: 4px;
}

.step-content {
    flex: 1;
    border-left: 1px solid rgba(120, 90, 50, 0.15);
    padding-left: 24px;
}

.step-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1A1408;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.step-desc {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    color: #4A3828;
    line-height: 1.7;
    font-size: 0.88rem;
}

.step-connector {
    display: none;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    padding: 100px 0 80px;
    text-align: center;
}

.cta-inner {
    padding: 60px 24px;
    border: 1px solid rgba(120, 90, 50, 0.2);
    background: rgba(250, 244, 232, 0.4);
    position: relative;
}

.cta-inner::before,
.cta-inner::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
}

.cta-inner::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid #B86848;
    border-left: 2px solid #B86848;
}

.cta-inner::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid #B86848;
    border-right: 2px solid #B86848;
}

.cta-glitch-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #1A1408;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.cta-glitch-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #B86848;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(0);
    animation: ctaGlitch 5s infinite;
    opacity: 0;
}

.cta-glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #4A7848;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translate(0);
    animation: ctaGlitch2 5s infinite;
    opacity: 0;
}

@keyframes ctaGlitch {
    0%, 85%, 100% { opacity: 0; transform: translate(0); }
    87% { opacity: 0.7; transform: translate(3px, -1px); }
    89% { opacity: 0; }
    91% { opacity: 0.5; transform: translate(-2px, 1px); }
    93% { opacity: 0; transform: translate(0); }
}

@keyframes ctaGlitch2 {
    0%, 87%, 100% { opacity: 0; transform: translate(0); }
    89% { opacity: 0.6; transform: translate(-3px, 1px); }
    91% { opacity: 0; }
    93% { opacity: 0.4; transform: translate(2px, -1px); }
    95% { opacity: 0; transform: translate(0); }
}

.cta-subtitle {
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    color: #4A3828;
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid rgba(120, 90, 50, 0.3);
    padding: 14px 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 104, 72, 0.08), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    border-color: #B86848;
    transform: translateY(-1px);
}

.cta-button:hover::before {
    left: 100%;
}

.btn-bracket {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 1rem;
    color: #B86848;
}

.btn-text {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 0.8rem;
    color: #1A1408;
    letter-spacing: 0.15em;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(120, 90, 50, 0.1);
}

.cta-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cta-stat-value {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1A1408;
}

.cta-stat-label {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 0.55rem;
    color: #7A6040;
    letter-spacing: 0.1em;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    padding: 48px 0 80px;
    border-top: 1px solid rgba(120, 90, 50, 0.12);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-logo {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1A1408;
    letter-spacing: 0.15em;
}

.footer-tagline {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    font-size: 0.6rem;
    color: #7A6040;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    font-size: 0.65rem;
    color: #7A6040;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #B86848;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer-copy-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.55rem;
    color: #7A6040;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.footer-system {
    font-family: 'Fira Code', monospace;
    font-size: 0.5rem;
    color: #7A6040;
    letter-spacing: 0.08em;
    opacity: 0.4;
}

/* ==========================================
   GLITCH SCANLINE EFFECT
   ========================================== */
.glitch-scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(184, 104, 72, 0.15);
    z-index: 98;
    pointer-events: none;
    animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
    0% { top: -2px; }
    100% { top: 100%; }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (min-width: 600px) {
    .mission-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .world-display {
        grid-template-columns: 1.2fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 599px) {
    .hud-status-bar {
        font-size: 8px;
        padding: 0 20px;
    }

    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 36px 1fr 70px 60px;
        font-size: 0.65rem;
        padding: 10px 12px;
    }

    .lb-zone {
        display: none;
    }

    .content-wrapper {
        padding: 0 16px;
    }

    .cta-stats {
        gap: 20px;
    }

    .info-stats {
        gap: 20px;
    }

    .terrain-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .terrain-cell {
        padding: 14px 8px;
    }
}
