/* ==========================================================================
   NARUTO TEAM BATTLE - WIKI & GUIA OFICIAL STYLESHEET
   ========================================================================== */

:root {
    /* Cores Canônicas Ninja */
    --naruto-orange: #ff7b00;
    --naruto-orange-glow: rgba(255, 123, 0, 0.45);
    --naruto-blue: #0088ff;
    --naruto-blue-glow: rgba(0, 136, 255, 0.45);
    --naruto-red: #ff3344;
    --naruto-red-glow: rgba(255, 51, 68, 0.45);
    --naruto-green: #2ecc71;
    --naruto-green-glow: rgba(46, 204, 113, 0.45);
    --naruto-purple: #9b51e0;
    --naruto-purple-glow: rgba(155, 81, 224, 0.45);
    --naruto-gold: #f1c40f;
    --naruto-gold-glow: rgba(241, 196, 15, 0.45);

    /* Superfícies & Layout */
    --bg-dark: #0a0d14;
    --card-bg: rgba(18, 22, 34, 0.92);
    --card-bg-subtle: rgba(26, 32, 48, 0.7);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-border-hover: rgba(255, 123, 0, 0.5);
    --panel-bg: rgba(13, 16, 25, 0.96);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;

    /* Tipografia */
    --font-heading: 'Bebas Neue', sans-serif, system-ui;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 123, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 136, 255, 0.08) 0%, transparent 40%),
        linear-gradient(rgba(10, 13, 20, 0.94), rgba(10, 13, 20, 0.98)),
        url('../assets/images/background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #090c12;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 123, 0, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--naruto-orange);
}

/* Container Global */
.wiki-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* ==========================================================================
   STICKY NAVBAR
   ========================================================================== */
.wiki-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 13, 20, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--card-border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.3s ease;
}

.wiki-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.wiki-brand-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--naruto-orange), #ff4800);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 15px var(--naruto-orange-glow);
}

.wiki-brand-text {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    letter-spacing: 1.5px;
    line-height: 1;
}

.wiki-brand-text span {
    color: var(--naruto-orange);
}

.wiki-nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
}

.wiki-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wiki-nav-link:hover, .wiki-nav-link.active {
    color: var(--naruto-orange);
}

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

.play-game-btn {
    background: linear-gradient(135deg, var(--naruto-orange), #e65c00);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.35);
    white-space: nowrap;
}

.play-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--naruto-orange-glow);
}

/* ==========================================================================
   HERO / CABEÇALHO DA WIKI
   ========================================================================== */
.wiki-hero {
    padding: 50px 0 35px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 123, 0, 0.12);
    border: 1px solid rgba(255, 123, 0, 0.35);
    border-radius: 30px;
    color: var(--naruto-orange);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wiki-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    letter-spacing: 2.5px;
    line-height: 1;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.wiki-title span {
    background: linear-gradient(135deg, #ff9933, var(--naruto-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wiki-hero-desc {
    max-width: 760px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.wiki-stats-ribbon {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.stat-pill {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 8px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.stat-pill-icon {
    font-size: 1.25rem;
}

.stat-pill-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-pill-num {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--naruto-orange);
    line-height: 1;
}

.stat-pill-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

/* ==========================================================================
   BARRA DE PESQUISA & ATALHOS RÁPIDOS
   ========================================================================== */
.wiki-search-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-icon {
    position: absolute;
    left: 16px;
    font-size: 1.2rem;
    color: var(--text-muted);
    pointer-events: none;
}

.wiki-search-input {
    width: 100%;
    background: rgba(10, 13, 20, 0.85);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 45px 14px 48px;
    font-size: 1rem;
    color: #fff;
    font-family: var(--font-body);
    transition: all 0.25s ease;
}

.wiki-search-input:focus {
    outline: none;
    border-color: var(--naruto-orange);
    box-shadow: 0 0 15px var(--naruto-orange-glow);
    background: rgba(15, 19, 30, 0.95);
}

.wiki-search-clear {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    display: none;
    transition: color 0.2s;
}

.wiki-search-clear:hover {
    color: #fff;
}

.search-results-feedback {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   COMO COMEÇAR (QUICK START) EM 3 PASSOS
   ========================================================================== */
.quick-start-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.quick-step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.quick-step-card:hover {
    transform: translateY(-4px);
    border-color: var(--naruto-orange);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--naruto-orange);
    line-height: 1;
    min-width: 32px;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   SEÇÕES GERAIS DA WIKI
   ========================================================================== */
.wiki-section {
    margin-bottom: 70px;
    scroll-margin-top: 85px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    flex-wrap: wrap;
    gap: 14px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: 1.8rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    letter-spacing: 1.5px;
    color: #fff;
    line-height: 1;
}

.section-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Filtros da Seção de Personagens */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.filter-btn.active {
    background: var(--naruto-orange);
    color: #111;
    border-color: var(--naruto-orange);
    box-shadow: 0 0 12px var(--naruto-orange-glow);
}

/* ==========================================================================
   CARDS DE PERSONAGENS (SHOWCASE)
   ========================================================================== */
.characters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.character-showcase-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    transition: border-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.character-showcase-card:hover {
    border-color: rgba(255, 123, 0, 0.4);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
}

.character-showcase-card.unlocked-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--naruto-green), transparent);
}

.character-showcase-card.locked-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--naruto-purple), transparent);
}

/* Topo do Card de Personagem */
.character-hero-header {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.hero-avatar-img {
    width: 105px;
    height: 105px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--naruto-blue);
    background: #111520;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.hero-badge-tag {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.hero-badge-tag.initial {
    background: rgba(46, 204, 113, 0.2);
    color: var(--naruto-green);
    border: 1px solid var(--naruto-green);
}

.hero-badge-tag.unlockable {
    background: rgba(155, 81, 224, 0.2);
    color: var(--naruto-purple);
    border: 1px solid var(--naruto-purple);
}

.hero-info-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 250px;
}

.hero-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    letter-spacing: 1.5px;
    color: #fff;
    line-height: 1;
}

.hero-role-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--naruto-orange);
    border: 1px solid rgba(255, 123, 0, 0.3);
}

.hero-lore-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.hero-unlock-info {
    font-size: 0.8rem;
    color: #d6bbfb;
    background: rgba(155, 81, 224, 0.12);
    border-left: 3px solid var(--naruto-purple);
    padding: 4px 10px;
    border-radius: 0 6px 6px 0;
}

/* Grid de Atributos Base */
.hero-stats-panel {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    background: rgba(10, 13, 20, 0.6);
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.stat-metric-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 100px;
    flex: 1;
}

.stat-metric-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-metric-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1;
}

.stat-metric-value.health {
    color: var(--naruto-red);
}

.stat-metric-value.chakra {
    color: var(--naruto-blue);
}

.stat-metric-value.attack {
    color: var(--naruto-orange);
}

/* Ação Defensiva */
.defense-action-box {
    background: linear-gradient(135deg, rgba(20, 26, 40, 0.8), rgba(14, 18, 28, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--naruto-blue);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.defense-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.defense-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.defense-icon-badge {
    font-size: 1.25rem;
}

.defense-name {
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
}

.defense-type-pill {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(0, 136, 255, 0.15);
    color: var(--naruto-blue);
    border: 1px solid rgba(0, 136, 255, 0.35);
}

.defense-chips-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.defense-desc-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Catálogo de Jutsus do Personagem */
.jutsus-catalogue-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--naruto-orange);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -10px;
}

.hero-jutsus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.jutsu-card {
    background: rgba(14, 18, 28, 0.95);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s, border-color 0.2s;
}

.jutsu-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 123, 0, 0.4);
}

.jutsu-card-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.jutsu-thumb-img {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--naruto-orange);
    background: #090c12;
    flex-shrink: 0;
}

.jutsu-header-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.jutsu-name-text {
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.2;
}

.jutsu-type-tag {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
}

.jutsu-type-tag.ninjutsu {
    background: rgba(0, 136, 255, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(0, 136, 255, 0.4);
}

.jutsu-type-tag.taijutsu {
    background: rgba(255, 123, 0, 0.18);
    color: #fb923c;
    border: 1px solid rgba(255, 123, 0, 0.4);
}

.jutsu-type-tag.genjutsu {
    background: rgba(155, 81, 224, 0.18);
    color: #c084fc;
    border: 1px solid rgba(155, 81, 224, 0.4);
}

.jutsu-chips-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.74rem;
}

.jutsu-chip {
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.jutsu-chip.chakra {
    background: rgba(0, 136, 255, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(0, 136, 255, 0.3);
}

.jutsu-chip.damage {
    background: rgba(255, 51, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(255, 51, 68, 0.3);
}

.jutsu-chip.heal {
    background: rgba(46, 204, 113, 0.15);
    color: #86efac;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.jutsu-chip.cooldown {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.jutsu-chip.badge-special {
    background: rgba(241, 196, 15, 0.15);
    color: #fde047;
    border: 1px solid rgba(241, 196, 15, 0.35);
}

.jutsu-desc-content {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.jutsu-protip-box {
    margin-top: auto;
    background: rgba(255, 123, 0, 0.06);
    border-left: 2px solid var(--naruto-orange);
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
    font-size: 0.76rem;
    color: #fdba74;
}

/* ==========================================================================
   REGRAS & MECÂNICAS DE COMBATE
   ========================================================================== */
.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.mechanic-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s, border-color 0.2s;
}

.mechanic-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 123, 0, 0.4);
}

.mechanic-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mechanic-icon {
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
}

.mechanic-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.mechanic-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.mechanic-highlight-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.mechanic-highlight-list li {
    font-size: 0.84rem;
    color: #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.mechanic-highlight-list li span.bullet {
    color: var(--naruto-orange);
    font-weight: 800;
}

/* Tabela de Atalhos de Teclado */
.shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.88rem;
}

.shortcuts-table th {
    text-align: left;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--card-border);
}

.shortcuts-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.kbd-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 3px 8px;
    font-family: monospace;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
    font-size: 0.85rem;
}

/* ==========================================================================
   MODOS DE JOGO
   ========================================================================== */
.modes-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

.mode-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.mode-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.mode-detail-card.versus-mode::before {
    background: var(--naruto-green);
}

.mode-detail-card.tower-mode::before {
    background: var(--naruto-orange);
}

.mode-detail-card.missions-mode::before {
    background: var(--naruto-purple);
}

.mode-detail-card.ranking-mode::before {
    background: linear-gradient(90deg, #ffb300, #e53935);
}

.mode-detail-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mode-detail-icon {
    font-size: 2.2rem;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-detail-title-box h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: #fff;
    line-height: 1;
}

.mode-detail-title-box span {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--naruto-orange);
}

.mode-detail-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

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

.mode-features-list li {
    font-size: 0.85rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* ==========================================================================
   ARENAS DE BATALHA
   ========================================================================== */
.arenas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.arena-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, border-color 0.25s;
}

.arena-card:hover {
    transform: translateY(-4px);
    border-color: var(--naruto-orange);
}

.arena-img-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.arena-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.arena-card:hover .arena-img {
    transform: scale(1.06);
}

.arena-badge-overlay {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.arena-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.arena-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: #fff;
}

.arena-desc {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ==========================================================================
   COMPOSIÇÕES DE EQUIPE & ESTRATÉGIAS
   ========================================================================== */
.team-comps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 22px;
}

.comp-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comp-title {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
}

.comp-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 123, 0, 0.15);
    color: var(--naruto-orange);
    border: 1px solid rgba(255, 123, 0, 0.35);
}

.comp-avatars-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.comp-ninja-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--naruto-blue);
    background: #0d1117;
}

.comp-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   GLOSSÁRIO SHINOBI
   ========================================================================== */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.glossary-card {
    background: rgba(14, 18, 28, 0.85);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.glossary-term {
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--naruto-orange);
    display: flex;
    align-items: center;
    gap: 6px;
}

.glossary-def {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ==========================================================================
   FOOTER DA WIKI & BOTÃO VOLTAR AO TOPO
   ========================================================================== */
.wiki-footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 20px 20px;
    text-align: center;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-play-btn {
    background: linear-gradient(135deg, var(--naruto-orange), #ff4800);
    color: #fff;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px var(--naruto-orange-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.footer-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--naruto-orange-glow);
}

.back-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 20, 32, 0.9);
    border: 1px solid var(--naruto-orange);
    color: var(--naruto-orange);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 999;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background: var(--naruto-orange);
    color: #111;
    transform: translateY(-3px);
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 900px) {
    .wiki-navbar {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .wiki-nav-links {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .character-hero-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .hero-jutsus-grid {
        grid-template-columns: 1fr;
    }

    .stat-pill {
        width: 100%;
    }

    .hero-stats-panel {
        flex-direction: column;
    }

    .shortcuts-table th:nth-child(3),
    .shortcuts-table td:nth-child(3) {
        display: none;
    }
}
