/* ==========================================================================
   Fruit Ninja HTML5 - Dojo Stylesheet & Editorial Guide
   ========================================================================== */

:root {
    --primary-wood: #2a1810;
    --wood-dark: #140a06;
    --wood-card: #20110a;
    --wood-border: rgba(246, 192, 38, 0.35);
    --gold: #f6c026;
    --gold-bright: #ffe66d;
    --gold-dark: #b8860b;
    --red-blade: #ff3344;
    --red-strike: #ff2a2a;
    --ice-cyan: #00e5ff;
    --frenzy-purple: #b537f2;
    --text-light: #fff5eb;
    --text-muted: #cbb49e;
    --text-dark: #22120a;
    --card-bg: rgba(32, 17, 10, 0.92);
    --modal-bg: rgba(20, 10, 6, 0.96);
    --border-gold: rgba(246, 192, 38, 0.4);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 0 20px rgba(246, 192, 38, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--wood-dark);
    font-family: var(--font-body);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.8;
}

/* ==========================================================================
   Global Site Header & Nav
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(18, 9, 5, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gold-bright);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.brand-icon {
    font-size: 1.4rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-bright);
    background: rgba(246, 192, 38, 0.1);
}

/* ==========================================================================
   Main Game Arena Hero Section
   ========================================================================== */
.game-arena-container {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 65px);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 40%, #3a2016 0%, #1c0d08 70%, #0d0604 100%);
    overflow: hidden;
}

#game-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

#game-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 2px, transparent 2px, transparent 12px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 40px);
    pointer-events: none;
    z-index: 1;
}

#gameCanvas, #splatCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

#splatCanvas {
    z-index: 2;
    pointer-events: none;
}

#gameCanvas {
    z-index: 3;
    cursor: crosshair;
}

/* Scroll Down Hint */
.scroll-down-hint {
    position: absolute;
    bottom: 16px;
    z-index: 15;
    background: rgba(20, 10, 6, 0.85);
    border: 1px solid var(--border-gold);
    border-radius: 25px;
    padding: 8px 20px;
    color: var(--gold-bright);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    transition: all 0.25s ease;
    animation: bounceHint 2s infinite ease-in-out;
}

.scroll-down-hint:hover {
    background: var(--gold);
    color: var(--wood-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.scroll-arrow {
    font-size: 1.1rem;
}

/* ==========================================================================
   HUD Layer
   ========================================================================== */
.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: opacity 0.3s ease;
}

.hud-top-left, .hud-top-center, .hud-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
}

.score-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(20, 10, 6, 0.75);
    border: 2px solid var(--border-gold);
    border-radius: 12px;
    padding: 8px 18px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
}

.score-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

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

.score-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 800;
}

.score-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(246, 192, 38, 0.5);
}

.best-card {
    display: flex;
    flex-direction: column;
    background: rgba(15, 8, 4, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 12px;
}

.best-label {
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.best-num {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-bright);
}

.timer-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 10, 6, 0.85);
    border: 2px solid var(--gold);
    border-radius: 30px;
    padding: 6px 20px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(246, 192, 38, 0.4);
    animation: pulseGlow 2s infinite ease-in-out;
}

.arcade-powers {
    display: flex;
    gap: 8px;
}

.power-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    animation: bounceBadge 0.6s infinite alternate;
}

.power-badge.freeze {
    background: rgba(0, 229, 255, 0.3);
    border: 1px solid var(--ice-cyan);
    color: #ffffff;
    box-shadow: 0 0 10px var(--ice-cyan);
}

.power-badge.frenzy {
    background: rgba(181, 55, 242, 0.3);
    border: 1px solid var(--frenzy-purple);
    color: #ffffff;
    box-shadow: 0 0 10px var(--frenzy-purple);
}

.power-badge.double {
    background: rgba(246, 192, 38, 0.3);
    border: 1px solid var(--gold);
    color: #ffffff;
    box-shadow: 0 0 10px var(--gold);
}

.strikes-container {
    display: flex;
    gap: 8px;
}

.strike-x {
    font-size: 1.8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.strike-x.struck {
    color: var(--red-strike);
    text-shadow: 0 0 12px var(--red-strike);
    transform: scale(1.3) rotate(5deg);
}

.hud-btn {
    background: rgba(25, 12, 8, 0.8);
    border: 2px solid var(--border-gold);
    border-radius: 12px;
    color: var(--gold-bright);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hud-btn:hover {
    background: var(--gold);
    color: var(--wood-dark);
    transform: scale(1.05);
}

/* ==========================================================================
   Overlay & Modal System
   ========================================================================== */
.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 5, 3, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.ui-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.hidden {
    display: none !important;
}

/* Menu Content */
.menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 960px;
    width: 90%;
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-container {
    margin-bottom: 30px;
}

.game-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.9);
}

.title-fruit {
    color: #ff3344;
    text-shadow: 0 0 25px rgba(255, 51, 68, 0.6), 0 4px 10px rgba(0,0,0,0.8);
}

.title-ninja {
    color: var(--gold);
    text-shadow: 0 0 25px rgba(246, 192, 38, 0.6), 0 4px 10px rgba(0,0,0,0.8);
    margin-left: 12px;
}

.game-subtitle {
    font-size: 0.9rem;
    letter-spacing: 6px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 6px;
}

/* Mode Selection Cards */
.mode-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
}

.mode-card {
    background: linear-gradient(145deg, rgba(45, 25, 16, 0.9), rgba(20, 10, 6, 0.95));
    border: 2px solid var(--border-gold);
    border-radius: 18px;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s;
}

.mode-card:hover::before {
    left: 100%;
}

.mode-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--gold-bright);
    box-shadow: var(--shadow-gold), var(--shadow-soft);
}

.mode-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 192, 38, 0.25) 0%, rgba(0, 0, 0, 0.4) 80%);
    border: 2px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.mode-card:hover .mode-icon-wrapper {
    transform: scale(1.15) rotate(10deg);
}

.mode-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--gold-bright);
    margin-bottom: 4px;
}

.mode-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-play-mode {
    background: linear-gradient(135deg, var(--gold), #d49511);
    color: var(--wood-dark);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 25px;
    padding: 10px 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(212, 149, 17, 0.4);
    transition: all 0.2s ease;
    width: 100%;
}

.btn-play-mode:hover {
    background: linear-gradient(135deg, #fff078, var(--gold));
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(246, 192, 38, 0.6);
}

.menu-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.action-btn {
    background: rgba(30, 16, 10, 0.85);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(55, 30, 18, 0.95);
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    transform: translateY(-2px);
}

.action-btn.icon-only {
    padding: 10px 14px;
    font-size: 1.1rem;
}

/* Modals */
.modal-box {
    background: linear-gradient(160deg, rgba(35, 18, 11, 0.97), rgba(18, 9, 5, 0.98));
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    padding: 30px;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-soft), 0 0 35px rgba(0, 0, 0, 0.8);
    text-align: center;
    position: relative;
    animation: modalPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-box.wide-box {
    max-width: 680px;
}

.modal-box.gameover-box {
    max-width: 520px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(246, 192, 38, 0.2);
    padding-bottom: 12px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--gold-bright);
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.btn-close:hover {
    color: var(--gold-bright);
}

.btn-primary, .btn-secondary, .btn-danger {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    border-radius: 12px;
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #d49511);
    color: var(--wood-dark);
    box-shadow: 0 4px 15px rgba(246, 192, 38, 0.4);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #fff078, var(--gold));
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(45, 25, 16, 0.9);
    border: 1px solid var(--border-gold);
    color: var(--text-light);
}

.btn-danger {
    background: rgba(180, 30, 30, 0.8);
    color: #ffffff;
    border: 1px solid rgba(255, 51, 68, 0.4);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Game Over Stats */
.gameover-banner {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--red-blade);
    margin-bottom: 20px;
}

.gameover-stats {
    background: rgba(15, 8, 4, 0.6);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
}

.stat-main {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
    display: block;
}

.stat-highlight {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(246, 192, 38, 0.6);
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: rgba(30, 16, 10, 0.7);
    padding: 10px;
    border-radius: 8px;
}

.stat-sublabel {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold-bright);
}

.new-record-badge {
    margin-top: 14px;
    background: linear-gradient(90deg, #ff3344, #f6c026, #ff3344);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 900;
    padding: 8px 16px;
    border-radius: 20px;
    animation: pulseGlow 1.5s infinite alternate;
}

/* Armory Styles */
.armory-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.tab-btn {
    flex: 1;
    background: rgba(30, 16, 10, 0.6);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 10px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
}

.tab-btn.active {
    background: var(--gold);
    color: var(--wood-dark);
}

.tab-content {
    display: none;
    max-height: 50vh;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.custom-card {
    background: rgba(30, 16, 10, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-card.selected {
    border-color: var(--gold-bright);
    background: rgba(60, 32, 20, 0.95);
    box-shadow: 0 0 15px rgba(246, 192, 38, 0.4);
}

.custom-preview {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(0, 0, 0, 0.4);
}

.custom-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-light);
}

.custom-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

.custom-status {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--gold);
}

/* ==========================================================================
   Editorial Strategy Guide & Fruit Almanac (SEO Core)
   ========================================================================== */
.editorial-main {
    background: #180c07;
    border-top: 3px solid var(--border-gold);
    position: relative;
    z-index: 20;
    padding: 60px 0 80px 0;
}

.editorial-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

.guide-article {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.article-header {
    text-align: center;
    border-bottom: 2px solid var(--border-gold);
    padding-bottom: 36px;
}

.article-badge {
    display: inline-block;
    background: rgba(246, 192, 38, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold-bright);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    line-height: 1.25;
    margin-bottom: 18px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.article-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Guide Chapters */
.guide-chapter {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guide-chapter h3 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--gold-bright);
    letter-spacing: 1.5px;
    border-left: 4px solid var(--gold);
    padding-left: 14px;
    margin-bottom: 6px;
}

.guide-chapter p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Pro Tip Callout */
.pro-tip-box {
    background: linear-gradient(135deg, rgba(45, 25, 15, 0.9), rgba(25, 12, 8, 0.95));
    border: 1px solid var(--gold);
    border-left: 5px solid var(--gold-bright);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 16px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.tip-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.tip-content {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.75;
}

.tip-content strong {
    color: var(--gold-bright);
}

/* Modes Grid Guide */
.modes-grid-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.mode-guide-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.mode-guide-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(246, 192, 38, 0.2);
    padding-bottom: 10px;
}

.mode-guide-card .card-icon {
    font-size: 1.8rem;
}

.mode-guide-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--gold-bright);
}

.mode-guide-card ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mode-guide-card li {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.mode-guide-card li strong {
    color: var(--text-light);
}

/* Almanac Table */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
}

.almanac-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    text-align: left;
}

.almanac-table th {
    background: rgba(45, 25, 16, 0.95);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--gold-bright);
    letter-spacing: 1px;
    padding: 16px 20px;
    border-bottom: 2px solid var(--border-gold);
}

.almanac-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
    color: var(--text-light);
}

.almanac-table tr:hover {
    background: rgba(60, 32, 20, 0.5);
}

/* Power Banana Cards */
.power-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.power-guide-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-soft);
}

.freeze-card {
    border: 2px solid var(--ice-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.frenzy-card {
    border: 2px solid var(--frenzy-purple);
    box-shadow: 0 0 15px rgba(181, 55, 242, 0.2);
}

.double-card {
    border: 2px solid var(--gold);
    box-shadow: 0 0 15px rgba(246, 192, 38, 0.2);
}

.power-guide-card .power-icon {
    font-size: 2.2rem;
}

.power-guide-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #ffffff;
}

.power-guide-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Ninja Tips Ordered List */
.ninja-tips-list {
    margin: 16px 0 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ninja-tips-list li {
    font-size: 1.05rem;
    line-height: 1.8;
}

.ninja-tips-list strong {
    color: var(--gold-bright);
}

.ninja-tips-list ul {
    margin-top: 8px;
    margin-left: 20px;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Blades Lore Grid */
.blades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.blade-lore-card {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.blade-emoji {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 8px;
}

.blade-lore-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold-bright);
    margin-bottom: 6px;
}

.blade-lore-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* FAQ Accordions */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item[open] {
    border-color: var(--gold-bright);
    background: rgba(40, 20, 12, 0.95);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-bright);
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 22px 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-answer p {
    font-size: 0.98rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* CTA Card */
.guide-cta {
    background: linear-gradient(135deg, rgba(50, 25, 15, 0.95), rgba(20, 10, 6, 0.98));
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    margin-top: 40px;
    box-shadow: var(--shadow-gold), var(--shadow-soft);
}

.guide-cta h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold-bright);
    margin-bottom: 10px;
}

.guide-cta p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.cta-btn {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: 30px;
}

/* ==========================================================================
   Global Semantic Footer
   ========================================================================== */
.site-footer {
    background: #0f0704;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 0 30px 0;
    color: var(--text-muted);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold-bright);
    margin: 8px 0;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h5, .footer-controls h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

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

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

.footer-links a:hover {
    color: var(--gold-bright);
}

.footer-controls p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(246, 192, 38, 0.3); }
    50% { box-shadow: 0 0 25px rgba(246, 192, 38, 0.7); }
}

@keyframes bounceBadge {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}

@keyframes bounceHint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0704;
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .site-nav {
        display: none; /* Mobile menu can be simplified */
    }
}

@media (max-width: 768px) {
    .mode-selection {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .game-title {
        font-size: 2.8rem;
    }
    .hud-top-left, .hud-top-right {
        gap: 8px;
    }
    .score-card {
        padding: 6px 12px;
    }
    .score-num {
        font-size: 1.5rem;
    }
    .menu-actions {
        flex-direction: column;
        width: 100%;
    }
    .action-btn {
        justify-content: center;
        width: 100%;
    }
    .editorial-main {
        padding: 40px 0 60px 0;
    }
    .article-title {
        font-size: 1.8rem;
    }
    .guide-chapter h3 {
        font-size: 1.4rem;
    }
    .table-responsive {
        font-size: 0.85rem;
    }
}
