/* ==========================================================================
   EUREKAKIDS - Main Stylesheet
   Theme: Cute, Warm, Lively, Kid-Friendly, Fully Responsive
   ========================================================================== */

:root {
    --primary-color: #FF7675;
    --primary-hover: #E84393;
    --accent-yellow: #FFEAA7;
    --accent-orange: #FFA07A;
    --accent-blue: #74B9FF;
    --accent-green: #55EFC4;
    --accent-purple: #A29BFE;
    --bg-creamy: #FFFDF9;
    --bg-card: #FFFFFF;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --border-color: #F0ECE1;
    --shadow-soft: 0 8px 24px rgba(149, 157, 165, 0.15);
    --shadow-btn: 0 6px 0 #E17055;
    --shadow-btn-active: 0 2px 0 #E17055;
    --radius-round: 24px;
    --radius-pill: 50px;
    --font-kids: 'Fredoka', 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "微軟正黑體", "Microsoft JhengHei", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    font-family: var(--font-kids);
    background-color: var(--bg-creamy);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    user-select: none;
    -webkit-user-select: none;
}

body.modal-open {
    overflow: hidden;
}

/* Background floating decorative elements */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    filter: blur(1px);
    animation: floatCloud linear infinite;
}

.cloud-1 {
    width: 160px;
    height: 50px;
    top: 15%;
    left: -180px;
    animation-duration: 35s;
}

.cloud-2 {
    width: 220px;
    height: 65px;
    top: 55%;
    left: -240px;
    animation-duration: 45s;
    animation-delay: 12s;
}

.cloud-3 {
    width: 130px;
    height: 40px;
    top: 78%;
    left: -150px;
    animation-duration: 28s;
    animation-delay: 5s;
}

@keyframes floatCloud {
    from { transform: translateX(0); }
    to { transform: translateX(calc(100vw + 350px)); }
}

/* ==========================================================================
   Navigation & Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 3px solid #FFF0D6;
    padding: 10px 24px;
    box-shadow: 0 4px 15px rgba(253, 203, 110, 0.15);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(255, 118, 117, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-wrap:hover .brand-logo {
    transform: scale(1.08) rotate(5deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #FF7675 0%, #FF9F43 50%, #6C5CE7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.brand-slogan {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Search bar in header */
.header-search {
    flex: 1;
    max-width: 380px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    font-size: 1.1rem;
    pointer-events: none;
    opacity: 0.6;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 2.5px solid #FFEAA7;
    border-radius: var(--radius-pill);
    background: #FFFDF9;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    transition: all 0.25s ease;
}

.search-input:focus {
    border-color: #FF7675;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(255, 118, 117, 0.15);
}

/* Header Action Controls */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-header-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 2px solid #F0ECE1;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 0 #E2DED5;
}

.btn-header-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #E2DED5;
    background: #FFFDF9;
}

.btn-header-action:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #E2DED5;
}

.btn-header-action.muted {
    opacity: 0.7;
    background: #F5F6FA;
}

.btn-header-gift {
    background: #FFEAA7;
    border-color: #FDCB6E;
    box-shadow: 0 3px 0 #E17055;
    color: #D35400;
    animation: gentlePulse 2s infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.profile-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    background: #FFF0F0;
    border: 2px solid #FFD1D1;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 0 #FFB8B8;
}

.profile-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #FFB8B8;
}

.profile-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #2D3436;
}

.profile-stars {
    font-size: 0.72rem;
    font-weight: 700;
    color: #E67E22;
}

/* ==========================================================================
   Hero Banner Section
   ========================================================================== */
.hero-section {
    position: relative;
    max-width: 1280px;
    margin: 20px auto 10px;
    padding: 0 20px;
    z-index: 1;
}

.hero-banner-card {
    position: relative;
    border-radius: var(--radius-round);
    overflow: hidden;
    box-shadow: var(--shadow-soft), 0 12px 0 #FFEAA7;
    background: #FFF3B0;
    min-height: 220px;
    display: flex;
    align-items: center;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.92);
    transition: transform 10s ease;
}

.hero-banner-card:hover .hero-bg-img {
    transform: scale(1.03);
}

.hero-overlay-content {
    position: relative;
    z-index: 2;
    padding: 35px 40px;
    max-width: 600px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.85) 70%, rgba(255, 255, 255, 0) 100%);
    border-radius: var(--radius-round);
    margin: 20px;
}

.hero-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #FF7675;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #2D3436;
    margin-bottom: 10px;
}

.hero-title span {
    color: #FF7675;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 18px;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: #FF7675;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: 0 6px 0 #D63031;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.hero-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 9px 0 #D63031;
}

.hero-cta-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #D63031;
}

/* Safe guard banner for minors */
.safety-reminder-bar {
    max-width: 1280px;
    margin: 14px auto 0;
    padding: 0 20px;
}

.safety-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #E8F8F5;
    border: 2px solid #A8E6CF;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    color: #16A085;
}

.safety-pill .safety-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Category Navigation Bar
   ========================================================================== */
.categories-section {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 1.45rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2D3436;
}

.categories-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #FFEAA7 transparent;
}

.categories-carousel::-webkit-scrollbar {
    height: 6px;
}

.categories-carousel::-webkit-scrollbar-thumb {
    background: #FFEAA7;
    border-radius: 10px;
}

.cat-tab {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #FFFFFF;
    border: 2.5px solid #F0ECE1;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 4px 0 #E5E0D4;
}

.cat-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #E5E0D4;
    border-color: #FFD1D1;
}

.cat-tab.active {
    background: #FF7675;
    color: #FFFFFF;
    border-color: #FF7675;
    box-shadow: 0 5px 0 #D63031;
}

.cat-tab-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================================================
   Games Showcase Grid
   ========================================================================== */
.main-games-section {
    max-width: 1280px;
    margin: 24px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.game-card {
    background: var(--bg-card);
    border: 3px solid #F0ECE1;
    border-radius: var(--radius-round);
    overflow: hidden;
    box-shadow: var(--shadow-soft), 0 8px 0 #EAE5D9;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: #FFB8B8;
    box-shadow: 0 16px 32px rgba(255, 118, 117, 0.2), 0 12px 0 #FFB8B8;
}

.card-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: #FFFDF9;
}

.card-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .card-thumb {
    transform: scale(1.07);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.card-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 52, 54, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.25s ease;
    border: none;
    color: #FFFFFF;
}

.game-card:hover .card-play-overlay {
    opacity: 1;
}

.play-icon {
    width: 50px;
    height: 50px;
    background: #FF7675;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 118, 117, 0.5);
    transform: scale(0.85);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card:hover .play-icon {
    transform: scale(1.08);
}

.play-text {
    font-size: 0.92rem;
    font-weight: 800;
}

.card-content {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2D3436;
}

.card-category-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0984E3;
    background: #EAF2FB;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 12px;
    flex: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.game-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #636E72;
    background: #F8F9FA;
    padding: 2px 7px;
    border-radius: 6px;
}

.btn-play-action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: #55EFC4;
    border: 2px solid #00B894;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    color: #00624A;
    cursor: pointer;
    box-shadow: 0 4px 0 #00A381;
    transition: all 0.18s ease;
}

.btn-play-action:hover {
    background: #00B894;
    color: #FFFFFF;
    box-shadow: 0 6px 0 #00876B;
}

.btn-play-action:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #00876B;
}

/* Empty Search Result */
.empty-games-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border-radius: var(--radius-round);
    border: 3px dashed #F0ECE1;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* ==========================================================================
   Game Arena Modal (Fullscreen Play Arena)
   ========================================================================== */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(45, 52, 54, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.game-modal.active {
    display: flex;
}

.game-modal-content {
    background: #FFFFFF;
    width: 100%;
    max-width: 820px;
    max-height: 94vh;
    border-radius: var(--radius-round);
    border: 4px solid #FFEAA7;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 10px 0 #FDCB6E;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalBounceIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalBounceIn {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.game-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #FFFDF9;
    border-bottom: 3px solid #FFF0D6;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-game-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #2D3436;
}

.modal-game-category {
    font-size: 0.78rem;
    font-weight: 700;
    background: #FFEAA7;
    color: #D35400;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-btn-control {
    padding: 8px 14px;
    background: #F8F9FA;
    border: 2px solid #E2DED5;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: #2D3436;
    cursor: pointer;
    box-shadow: 0 3px 0 #D0CBC0;
    transition: all 0.18s ease;
}

.modal-btn-control:hover {
    background: #FFFFFF;
}

.modal-btn-close {
    background: #FF7675;
    color: #FFFFFF;
    border-color: #E84393;
    box-shadow: 0 3px 0 #D63031;
    font-size: 1.1rem;
    padding: 6px 14px;
}

.modal-btn-close:hover {
    background: #E84393;
}

.game-canvas-mount {
    flex: 1;
    overflow-y: auto;
    background: #FFFDF9;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Profile & Achievements Modals
   ========================================================================== */
.sub-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(45, 52, 54, 0.65);
    backdrop-filter: blur(5px);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.sub-modal.active {
    display: flex;
}

.sub-modal-box {
    background: #FFFFFF;
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-round);
    border: 3.5px solid #FFD1D1;
    box-shadow: 0 16px 40px rgba(0,0,0,0.2), 0 8px 0 #FFB8B8;
    padding: 24px;
    animation: modalBounceIn 0.3s ease;
}

.sub-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2D3436;
}

.avatar-selector-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.avatar-options-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.avatar-opt {
    height: 52px;
    border: 2px solid #F0ECE1;
    border-radius: 14px;
    background: #FFFDF9;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.avatar-opt:hover, .avatar-opt.selected {
    border-color: #FF7675;
    background: #FFEAA7;
    transform: scale(1.08);
}

.input-kids {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #F0ECE1;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    outline: none;
    margin-bottom: 18px;
}

.input-kids:focus {
    border-color: #FF7675;
}

.achievements-list {
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.ach-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 2px solid #F0ECE1;
    background: #FFFDF9;
}

.ach-item.unlocked {
    background: #F0FFF4;
    border-color: #55EFC4;
}

.ach-item.locked {
    opacity: 0.6;
    background: #F8F9FA;
}

.ach-badge {
    font-size: 1.6rem;
}

.ach-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #2D3436;
}

.ach-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Achievement Toast
   ========================================================================== */
.achievement-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #FFFFFF;
    border: 3px solid #FDCB6E;
    box-shadow: 0 10px 30px rgba(253, 203, 110, 0.4), 0 5px 0 #E17055;
    border-radius: 20px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2000;
    transform: translateY(-80px) scale(0.9);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.achievement-toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast-icon {
    font-size: 2.2rem;
}

.toast-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #E67E22;
}

.toast-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #2D3436;
}

.toast-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #FFFFFF;
    border-top: 3px solid #FFF0D6;
    padding: 40px 20px 90px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    max-width: 360px;
}

.footer-info-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #2D3436;
}

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

.footer-links-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links-list a:hover {
    color: #FF7675;
}

.footer-bottom {
    max-width: 1280px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid #F0ECE1;
    text-align: center;
    font-size: 0.85rem;
    color: #A4B0BE;
    font-weight: 600;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar
   ========================================================================== */
.mobile-nav-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 2.5px solid #FFF0D6;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.06);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    z-index: 99;
    justify-content: space-around;
}

.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
}

.mob-nav-item.active, .mob-nav-item:hover {
    color: #FF7675;
}

.mob-nav-icon {
    font-size: 1.3rem;
}

/* ==========================================================================
   Responsive Breakpoints (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 900px) {
    .hero-banner-card {
        min-height: 260px;
    }
    .hero-overlay-content {
        max-width: 100%;
        margin: 12px;
        padding: 24px 20px;
        background: rgba(255, 255, 255, 0.92);
    }
    .hero-title {
        font-size: 1.7rem;
    }
    .header-search {
        display: none; /* Hide header search on tablet/mobile, use in-page search */
    }
}

@media (max-width: 680px) {
    .site-header {
        padding: 8px 14px;
    }
    .brand-name {
        font-size: 1.3rem;
    }
    .brand-logo {
        width: 42px;
        height: 42px;
    }
    .btn-header-action span:not(.btn-icon) {
        display: none;
    }
    .profile-pill .profile-name {
        display: none;
    }
    .mobile-nav-bar {
        display: flex;
    }
    .games-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .game-modal {
        padding: 6px;
    }
    .game-modal-content {
        max-height: 98vh;
        border-radius: 18px;
    }
    .game-modal-header {
        padding: 10px 14px;
    }
    .modal-game-title {
        font-size: 1.1rem;
    }
    .safety-pill {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 0.8rem;
    }
}
