@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700;800&family=Nunito:wght@700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

:root {
    --pastel-meadow: #7cd992;
    --pastel-soft-white: rgba(255, 255, 255, 0.94);
    --pastel-cream: #fff9e6;
    --pastel-yellow: #ffe066;
    --pastel-orange: #ffaa5e;
    --pastel-sky: #8ecae6;
    
    --card-border: #ffd166;
    --text-main: #2b2333;
    --text-muted: #746882;
    
    --shadow-soft: 0 8px 24px rgba(43, 35, 51, 0.08), 0 3px 8px rgba(43, 35, 51, 0.05);
    --shadow-clay: 0 6px 0 #ebb23a, 0 12px 24px rgba(43, 35, 51, 0.12);
    --shadow-btn-green: 0 7px 0 #3b8a47, 0 14px 25px rgba(82, 183, 136, 0.35);
}

body {
    background-color: #f7fbf9;
    color: var(--text-main);
    font-family: 'Fredoka', 'Nunito', -apple-system, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    width: 100%;
}

body.in-game-lock {
    overflow: hidden !important;
    height: 100vh !important;
    width: 100vw !important;
}

#gameArea {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: var(--pastel-meadow);
}

#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
    z-index: 1;
}

.vignette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    background: radial-gradient(circle at center, transparent 70%, rgba(40, 30, 50, 0.16) 100%);
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.hud {
    position: absolute;
    pointer-events: auto;
}

/* Professional Studio Stats Panel Top Left */
.stats-panel {
    top: 18px;
    left: 18px;
    background: var(--pastel-soft-white);
    border: 3px solid #ffe066;
    border-radius: 20px;
    padding: 10px 18px;
    box-shadow: 0 5px 0 #ebb23a, var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(8px);
}

.stats-panel .stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-lbl {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.stats-panel .stat-value {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    margin-left: auto;
}

.stat-value.score {
    color: #ff6b6b;
    font-size: 19px;
}

.stat-value.rank {
    color: #0288d1;
}

.stat-value.kills {
    color: #9d4edd;
}

/* Buffs Tray */
.buffs-tray {
    top: 18px;
    left: 215px;
    display: flex;
    gap: 8px;
}

.buff-badge {
    background: var(--pastel-soft-white);
    border: 2.5px solid #ffd166;
    border-radius: 14px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #e67700;
    box-shadow: 0 4px 0 #ebb23a, var(--shadow-soft);
    animation: gentleBob 1.4s ease-in-out infinite alternate;
}

@keyframes gentleBob {
    0% { transform: translateY(0); }
    100% { transform: translateY(-3px); }
}

/* Top Right Leaderboard */
.leaderboard-panel {
    top: 18px;
    right: 18px;
    width: 210px;
    background: var(--pastel-soft-white);
    border: 3px solid #8ecae6;
    border-radius: 20px;
    padding: 12px 16px;
    box-shadow: 0 5px 0 #64b5f6, var(--shadow-soft);
    backdrop-filter: blur(8px);
}

.leaderboard-panel h3 {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0288d1;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leaderboard-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-item .name {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 125px;
}

.leaderboard-item.me {
    color: #d90429;
    background: #fff3bf;
    font-weight: 800;
    box-shadow: 0 2px 0 #ffd166;
}

.leaderboard-item.king {
    color: #f77f00;
    font-weight: 800;
}

/* Top Center Controls */
.top-controls {
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: var(--pastel-soft-white);
    border: 2.5px solid #ffe066;
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 #ebb23a, var(--shadow-soft);
    transition: transform 0.12s, box-shadow 0.12s;
}

.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #ebb23a;
}

.icon-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #ebb23a;
}

.hidden-icon {
    display: none !important;
}

/* Minimap Radar */
.minimap-container {
    bottom: 22px;
    right: 22px;
    width: 135px;
    height: 135px;
    background: rgba(30, 60, 40, 0.88);
    border: 3.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 5px 0 rgba(43, 35, 51, 0.2), 0 14px 28px rgba(43, 35, 51, 0.25);
    overflow: hidden;
    transition: background 0.4s ease;
}

#minimapCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Mobile Controls */
.mobile-controls {
    display: none;
}

@media (pointer: coarse), (max-width: 860px) {
    .mobile-controls {
        display: block;
    }
}

.joystick-zone {
    position: absolute;
    bottom: 25px;
    left: 25px;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.32);
    border: 3px dashed rgba(255, 255, 255, 0.85);
    pointer-events: auto;
    touch-action: none;
}

.joystick-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff3b0, #ffaa5e);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.mobile-boost-btn {
    position: absolute;
    bottom: 30px;
    right: 175px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ff7b90, #f05365);
    border: 3.5px solid #ffffff;
    box-shadow: 0 6px 0 #c92a42, 0 10px 20px rgba(0, 0, 0, 0.25);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    touch-action: none;
    cursor: pointer;
}

.mobile-boost-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #c92a42;
}

/* Modals */
.modal-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 45, 35, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    pointer-events: auto;
}

.modal-screen.hidden {
    display: none;
}

.home-card {
    background: #ffffff;
    border: 5px solid #ffe066;
    border-radius: 36px;
    box-shadow: 0 14px 0 #ebb23a, 0 28px 60px rgba(43, 35, 51, 0.22);
    padding: 20px 26px;
    width: 94%;
    max-width: 510px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 94vh;
    overflow-y: auto;
    animation: homePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes homePop {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Branding Header */
.home-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    width: 100%;
}

.trophy-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #fff3bf;
    border: 2px solid #ffd166;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #e67700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 0 #fcc419;
}

.brand-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2px;
}

.game-logo {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 1.5px;
    background: linear-gradient(180deg, #ff922b 0%, #f76707 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 3px 0 #ffe066);
    line-height: 1.05;
}

.game-sublogo-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6fcf5;
    border: 1.5px solid #63e6be;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 800;
    color: #0ca678;
    letter-spacing: 0.8px;
    margin-top: 3px;
}

/* Center Stage Worm Showcase */
.worm-showcase-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.canvas-stage-wrap {
    width: 280px;
    height: 115px;
    border-radius: 20px;
    background: radial-gradient(circle at center, #ffffff 40%, #e8f9ed 100%);
    border: 3px solid #b2f2bb;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05), 0 4px 12px rgba(81, 207, 102, 0.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#skinCanvas {
    width: 280px;
    height: 115px;
    display: block;
}

.skin-switch-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}

.skin-switch-btn {
    background: #fff3bf;
    border: 2px solid #ffd166;
    color: #e67700;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 0 #fcc419;
    transition: transform 0.1s;
}

.skin-switch-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #fcc419;
}

.skin-name-badge {
    background: #e6fcf5;
    border: 2px solid #63e6be;
    padding: 3px 16px;
    border-radius: 999px;
    box-shadow: 0 2px 0 #b2f2bb;
}

.skin-name-tag {
    font-size: 13px;
    font-weight: 800;
    color: #0ca678;
}

/* Name input & generator */
.name-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
}

.player-avatar-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff3bf;
    border: 2.5px solid #ffd166;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 0 #fab005;
    flex-shrink: 0;
}

.player-name-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 14px;
    border: 2.5px solid #ffe066;
    background: #fff9db;
    color: var(--text-main);
    outline: none;
    text-align: center;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.04);
    transition: all 0.18s;
}

.player-name-input:focus {
    border-color: #ff922b;
    background: #ffffff;
}

.dice-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(180deg, #74c0fc, #339af0);
    border: 2.5px solid #ffffff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 #1c7ed6;
    cursor: pointer;
    transition: transform 0.1s;
    flex-shrink: 0;
}

.dice-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1c7ed6;
}

/* Customization Section */
.custom-tabs-container {
    width: 100%;
    margin-bottom: 12px;
}

.section-label-bar {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #868e96;
    text-align: left;
    margin: 8px 0 5px 2px;
}

/* Hats / Accessories Visual Cards */
.hat-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
    margin-bottom: 8px;
}

.hat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 14px;
    padding: 7px 4px 6px 4px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 0 #dee2e6;
}

.hat-icon-slot {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hat-btn span {
    font-size: 11px;
    font-weight: 800;
    color: #495057;
}

.hat-btn:hover {
    border-color: #ffd166;
    transform: translateY(-1px);
}

.hat-btn.active {
    background: #fff9db;
    border-color: #f76707;
    box-shadow: 0 3px 0 #fab005;
    transform: scale(1.03);
}

.hat-btn.active span {
    color: #d9480f;
}

/* Arena Map Biome Badges */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
    margin-bottom: 8px;
}

.theme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 14px;
    padding: 6px 4px;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 0 #dee2e6;
}

.theme-biome-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.theme-card .theme-title {
    font-size: 11px;
    font-weight: 800;
    color: #495057;
}

.theme-card:hover {
    border-color: #ffd166;
    transform: translateY(-1px);
}

.theme-card.active {
    background: #fff9db;
    border-color: #f76707;
    box-shadow: 0 3px 0 #fab005;
    transform: scale(1.03);
}

.theme-card.active .theme-title {
    color: #d9480f;
}

/* Big Studio Play Button */
.play-btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(180deg, #51cf66 0%, #2f9e44 100%);
    border: 3.5px solid #ffffff;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 7px 0 #237032, 0 14px 25px rgba(47, 158, 68, 0.35);
    transition: all 0.12s;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 0 #237032, 0 18px 30px rgba(47, 158, 68, 0.45);
}

.play-btn:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #237032;
}
    box-shadow: var(--shadow-btn-green);
    transition: transform 0.12s, box-shadow 0.12s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 0 #3b8a47, 0 16px 28px rgba(82, 183, 136, 0.4);
}

.play-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #3b8a47;
}

/* Instructions */
.instructions {
    margin-top: 10px;
    display: flex;
    gap: 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.instruction-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.key-badge {
    background: #fff3bf;
    border: 1.5px solid #ffd166;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    color: #e67700;
}

/* Settings Modal */
.settings-card {
    max-width: 440px;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
}

.settings-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.close-btn {
    background: #f1f3f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.close-btn:hover {
    background: #e9ecef;
    color: var(--text-main);
}

.settings-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    background: #f8f9fa;
    border: 1.5px solid #e9ecef;
    border-radius: 14px;
    padding: 12px 14px;
}

.setting-label-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.setting-desc {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.custom-slider {
    width: 100%;
    accent-color: #51cf66;
    cursor: pointer;
}

.segmented-control {
    display: flex;
    background: #e9ecef;
    border-radius: 10px;
    padding: 3px;
    gap: 3px;
}

.seg-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.seg-btn.active {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.toggle-btn {
    align-self: flex-start;
    background: #e9ecef;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
}

.toggle-btn.active {
    background: #d3f9d8;
    color: #2b8a3e;
}

/* Game Over Card */
.gameover-stats {
    width: 100%;
    background: #fff9db;
    border: 2.5px solid #ffe066;
    border-radius: 18px;
    padding: 12px 16px;
    margin: 12px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gameover-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

.gameover-val {
    font-weight: 800;
    color: var(--text-main);
}

.death-reason {
    font-size: 13px;
    font-weight: 800;
    color: #f03e3e;
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 600px) {
    .home-card {
        padding: 18px 16px;
    }
    .game-logo {
        font-size: 34px;
    }
    .themes-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    .theme-card {
        padding: 5px 2px;
    }
    .theme-card .theme-title {
        font-size: 10px;
    }
    .stats-panel {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
    }
    .buffs-tray {
        top: 10px;
        left: 155px;
    }
    .leaderboard-panel {
        top: 10px;
        right: 10px;
        width: 135px;
        padding: 6px 10px;
    }
    .minimap-container {
        width: 95px;
        height: 95px;
        bottom: 15px;
        right: 15px;
    }
    .mobile-boost-btn {
        right: 120px;
        bottom: 22px;
        width: 68px;
        height: 68px;
        font-size: 13px;
    }
    .joystick-zone {
        left: 15px;
        bottom: 18px;
        width: 110px;
        height: 110px;
    }
}

/* Accessible SEO Content (Invisible to human eyes, 100% indexed by Google, Bing & AI crawlers) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* ====================================================================
 * MODERN KIDS GAMING PORTAL & SUBPAGE STYLING (kidworms.com)
 * ==================================================================== */

/* Sticky Top Navigation Bar */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 3.5px solid #ffe066;
    box-shadow: 0 4px 18px rgba(43, 35, 51, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 2px solid #51cf66;
    box-shadow: 0 3px 0 #3b8a47;
}

.brand-text {
    background: linear-gradient(180deg, #ff6b6b 0%, #fa5252 60%, #c92a2a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(1px 2px 0 #ffd166);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
    background: #e6fcf5;
    color: #0ca678;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-now-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #69db7c 0%, #40c057 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid #b2f2bb;
    box-shadow: 0 4px 0 #2b8a3e, 0 8px 15px rgba(64, 192, 87, 0.3);
    transition: transform 0.1s, box-shadow 0.1s;
}

.play-now-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2b8a3e, 0 10px 20px rgba(64, 192, 87, 0.4);
}

.play-now-nav-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2b8a3e;
}

/* Scroll Prompt under Game */
.scroll-hint-bar {
    background: linear-gradient(180deg, #ffffff 0%, #f1f3f5 100%);
    border-top: 3px solid #ffe066;
    border-bottom: 2px solid #e9ecef;
    padding: 12px 20px;
    text-align: center;
}

.scroll-hint-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.scroll-hint-btn:hover {
    background: #e6fcf5;
    border-color: #51cf66;
    color: #2b8a3e;
    transform: translateY(2px);
}

/* Portal Section Containers */
.portal-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6fcf5;
    border: 1.5px solid #63e6be;
    color: #0ca678;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-badge.purple {
    background: #f3f0ff;
    border-color: #d0bfff;
    color: #7950f2;
}

.section-badge.yellow {
    background: #fff9db;
    border-color: #ffe066;
    color: #e67700;
}

.section-badge.pink {
    background: #fff0f6;
    border-color: #fcc2d7;
    color: #d6336c;
}

.section-title {
    font-size: 38px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.15;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: #ffffff;
    border: 3.5px solid #e9ecef;
    border-radius: 24px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 6px 0 #e9ecef, 0 12px 24px rgba(43, 35, 51, 0.05);
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #ffe066;
    box-shadow: 0 10px 0 #f59f00, 0 18px 30px rgba(43, 35, 51, 0.1);
}

.feature-icon-bubble {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.feature-card p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Guides & How-To Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: #ffffff;
    border: 3.5px solid #dee2e6;
    border-radius: 24px;
    padding: 28px 24px;
    position: relative;
    box-shadow: 0 6px 0 #dee2e6;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ffe066;
    border: 2px solid #fab005;
    border-radius: 12px;
    font-weight: 900;
    font-size: 16px;
    color: #e67700;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Arenas Showcase Grid */
.arenas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.arena-card {
    background: #ffffff;
    border: 3.5px solid #e9ecef;
    border-radius: 22px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 0 #e9ecef;
    transition: transform 0.15s;
}

.arena-card:hover {
    transform: translateY(-3px);
}

.arena-swatch-box {
    width: 100%;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
}

.arena-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 4px;
}

.arena-card p {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Parents Safety Guarantee Banner */
.safety-banner {
    background: linear-gradient(135deg, #e6fcf5 0%, #fff9db 100%);
    border: 4px solid #63e6be;
    border-radius: 32px;
    padding: 40px 48px;
    box-shadow: 0 10px 0 #38d9a9, 0 20px 40px rgba(99, 230, 190, 0.2);
    display: flex;
    gap: 36px;
    align-items: center;
}

.safety-seal {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: #ffffff;
    border: 4px solid #51cf66;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 0 #3b8a47;
    text-align: center;
}

.safety-seal span {
    font-size: 11px;
    font-weight: 900;
    color: #2b8a3e;
    text-transform: uppercase;
}

.safety-info h3 {
    font-size: 28px;
    font-weight: 900;
    color: #2b2333;
    margin-bottom: 10px;
}

.safety-info p {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    line-height: 1.55;
    margin-bottom: 18px;
}

.safety-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.safety-pill {
    background: #ffffff;
    border: 2px solid #51cf66;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 800;
    color: #2b8a3e;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* FAQ Accordion */
.faq-list {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-card {
    background: #ffffff;
    border: 3px solid #dee2e6;
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 4px 0 #dee2e6;
    transition: all 0.15s;
}

.faq-card:hover {
    border-color: #ffd166;
}

.faq-card summary {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-card summary::-webkit-details-marker {
    display: none;
}

.faq-card p {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Call to Action Bar */
.cta-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5253 100%);
    border-radius: 28px;
    padding: 45px 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 10px 0 #c92a2a, 0 20px 40px rgba(238, 82, 83, 0.3);
    margin-top: 50px;
}

.cta-banner h2 {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 10px;
    filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.15));
}

.cta-banner p {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 24px;
    opacity: 0.95;
}

.big-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffe066;
    color: #e67700;
    font-size: 18px;
    font-weight: 900;
    padding: 14px 34px;
    border-radius: 999px;
    text-decoration: none;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 0 #fab005, 0 12px 25px rgba(0,0,0,0.15);
    transition: transform 0.1s, box-shadow 0.1s;
}

.big-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #fab005, 0 16px 30px rgba(0,0,0,0.2);
}

/* Modern Kids Gaming Footer */
.site-footer {
    background: #ffffff;
    border-top: 4px solid #ffe066;
    margin-top: 60px;
    padding: 60px 24px 30px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6fcf5;
    border: 2px solid #63e6be;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: #0ca678;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: #2b8a3e;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

/* Subpage Article & Hero Layout */
.page-hero {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-bottom: 4px solid #ffe066;
    padding: 50px 24px;
    text-align: center;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.breadcrumb a {
    color: #2b8a3e;
    text-decoration: none;
}

.page-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.15;
    margin-bottom: 12px;
}

.page-lead {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.5;
}

.page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px;
}

.content-card {
    background: #ffffff;
    border: 3.5px solid #dee2e6;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 8px 0 #dee2e6, 0 16px 32px rgba(43, 35, 51, 0.06);
    margin-bottom: 30px;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-main);
    margin-top: 28px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 800;
    color: #343a40;
    margin-top: 20px;
    margin-bottom: 8px;
}

.article-body p {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    line-height: 1.65;
    margin-bottom: 14px;
}

.article-body ul, .article-body ol {
    margin-left: 24px;
    margin-bottom: 18px;
}

.article-body li {
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 6px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 14px;
    border: 2.5px solid #dee2e6;
    background: #f8f9fa;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.15s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: #51cf66;
    background: #ffffff;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Responsive Portal Layout */
@media (max-width: 900px) {
    .features-grid, .arenas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .safety-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .nav-menu {
        display: none;
    }
    .features-grid, .arenas-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .page-title {
        font-size: 28px;
    }
    .section-title {
        font-size: 28px;
    }
    .content-card {
        padding: 24px 18px;
    }
}
