:root {
    --bg-main: #0b0c12;
    --bg-dungeon: #12141f;
    --bg-surface: #181b29;
    --bg-card: #1d2133;
    --bg-card-hover: #242940;

    --border-dark: #07080d;
    --border-stone: #333954;
    --border-gold: #eab308;
    --border-highlight: #475075;

    --text-primary: #f8fafc;
    --text-secondary: #a8b2cc;
    --text-muted: #6e7894;

    --accent-gold: #f5b041;
    --accent-gold-dark: #b45309;
    --accent-gold-soft: rgba(245, 176, 65, 0.14);
    --accent-cyan: #38bdf8;
    --accent-cyan-soft: rgba(56, 189, 248, 0.14);
    --accent-emerald: #22c55e;
    --accent-emerald-soft: rgba(34, 197, 94, 0.14);
    --accent-purple: #c084fc;
    --accent-purple-soft: rgba(192, 132, 252, 0.14);
    --accent-crimson: #ef4444;
    --accent-crimson-soft: rgba(239, 68, 68, 0.14);

    /* Item Rarity Colors */
    --rarity-common: #9ca3af;
    --rarity-uncommon: #4ade80;
    --rarity-rare: #60a5fa;
    --rarity-legendary: #fbbf24;
    --rarity-immortal: #f87171;
    --rarity-arcana: #c084fc;
    --rarity-beyond: #f472b6;
    --rarity-celestial: #22d3ee;
    --rarity-divine: #fef08a;
    --rarity-cosmic: #fb7185;

    --font-pixel: 'Silkscreen', 'Courier New', monospace;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --pixel-shadow: 0 4px 0 #06070b, inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --pixel-gold-shadow: 0 4px 0 #78350f, inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    /* Subtle pixel dungeon tile grid */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 20% 10%, rgba(245, 176, 65, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(192, 132, 252, 0.07) 0%, transparent 40%);
    background-size: 24px 24px, 24px 24px, 100% 100%, 100% 100%;
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
}

/* Custom RPG Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-stone);
    border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* =========================================================
   TOPBAR (WINDOWS TASKBAR + RPG HUD HİBRİT)
   ========================================================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 17, 26, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--border-stone);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--accent-gold);
    font-family: var(--font-pixel);
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-shadow: 2px 2px 0 #000;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.55rem;
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    color: #090c12;
    font-family: var(--font-pixel);
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid #fef08a;
    box-shadow: 0 3px 0 #78350f;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.83rem;
    font-weight: 700;
    padding: 0.42rem 0.75rem;
    border: 2px solid transparent;
    transition: all 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-card);
    border-color: var(--border-stone);
}

.nav-links a.nav-cta {
    background: var(--accent-gold-soft);
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold-dark);
}

.nav-links a.nav-cta:hover {
    background: rgba(245, 176, 65, 0.25);
    border-color: var(--accent-gold);
}

/* =========================================================
   CONTAINER & SECTIONS
   ========================================================= */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 3.25rem 0;
}

.section-header {
    margin-bottom: 1.85rem;
    border-left: 4px solid var(--accent-gold);
    padding-left: 1rem;
}

.section-kicker {
    display: inline-block;
    font-family: var(--font-pixel);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    margin-bottom: 0.35rem;
}

.section-title {
    font-family: var(--font-pixel);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.25;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0 #000;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 760px;
    font-size: 0.96rem;
}

/* =========================================================
   HERO & WINDOWS TASKBAR BATTLE WIDGET
   ========================================================= */
.hero {
    padding: 3.5rem 0 2.75rem;
    border-bottom: 3px solid var(--border-stone);
    background:
        linear-gradient(180deg, rgba(11, 12, 18, 0.72) 0%, rgba(11, 12, 18, 0.94) 100%),
        url('../assets/bg-trio-funny.jpg') center center / cover no-repeat;
}

#karakterler {
    background:
        linear-gradient(180deg, rgba(11, 12, 18, 0.94) 0%, rgba(11, 12, 18, 0.76) 50%, rgba(11, 12, 18, 0.95) 100%),
        url('../assets/bg-dlc-funny.jpg') center center / cover no-repeat;
    border-top: 2px solid var(--border-stone);
    border-bottom: 2px solid var(--border-stone);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    color: var(--accent-cyan);
    border: 2px solid var(--border-stone);
    padding: 0.35rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 3px 0 #06070b;
}

.hero h1 {
    font-family: var(--font-pixel);
    font-size: clamp(1.65rem, 3.2vw, 2.45rem);
    line-height: 1.22;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 #000;
}

.hero h1 span {
    color: var(--accent-gold);
}

.hero-lead {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    font-family: var(--font-pixel);
    font-size: 0.82rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:active {
    transform: translateY(2px);
    box-shadow: none !important;
}

.btn-primary {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    color: #090c12;
    border-color: #fef08a;
    box-shadow: var(--pixel-gold-shadow);
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-highlight);
    box-shadow: var(--pixel-shadow);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

/* RPG Meta Trio Box + Taskbar Mockup */
.hero-meta-box {
    background: var(--bg-surface);
    border: 3px solid var(--border-stone);
    padding: 1.4rem;
    box-shadow: var(--pixel-shadow);
    position: relative;
}

.hero-meta-box::before {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.hero-meta-box h3 {
    font-family: var(--font-pixel);
    font-size: 0.92rem;
    color: var(--accent-gold);
    margin-bottom: 0.9rem;
    text-shadow: 2px 2px 0 #000;
}

.meta-trio {
    display: grid;
    gap: 0.7rem;
}

.meta-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-dungeon);
    border: 2px solid var(--border-stone);
    padding: 0.7rem 0.95rem;
}

.meta-slot strong {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.meta-slot span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Simulated Taskbar Battle Strip */
.taskbar-strip {
    margin-top: 1.25rem;
    background: #0d1018;
    border: 2px solid var(--border-highlight);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

.tb-party {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tb-hero {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.tb-bars {
    display: grid;
    gap: 2px;
    width: 58px;
}

.tb-hp {
    height: 5px;
    background: var(--accent-crimson);
    border: 1px solid #000;
}

.tb-mp {
    height: 4px;
    background: var(--accent-cyan);
    border: 1px solid #000;
    width: 80%;
}

.tier-tag {
    font-family: var(--font-pixel);
    font-size: 0.68rem;
    padding: 0.22rem 0.5rem;
    border: 2px solid;
    text-transform: uppercase;
}

.tier-s {
    background: var(--accent-gold-soft);
    color: var(--accent-gold);
    border-color: var(--accent-gold-dark);
}

.tier-a {
    background: var(--accent-cyan-soft);
    color: var(--accent-cyan);
    border-color: #0284c7;
}

/* Quick Stats Bar */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--bg-surface);
    border: 2px solid var(--border-stone);
    padding: 0.95rem 1.1rem;
    box-shadow: var(--pixel-shadow);
}

.stat-value {
    font-family: var(--font-pixel);
    font-size: 1.15rem;
    color: var(--accent-gold);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* =========================================================
   CONTROLS, TABS & INPUTS
   ========================================================= */
.controls-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tab-btn {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 2px solid var(--border-stone);
    padding: 0.48rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 0 #06070b;
    transition: all 0.15s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

.tab-btn.active {
    background: var(--accent-gold-soft);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.search-input {
    background: var(--bg-dungeon);
    border: 2px solid var(--border-stone);
    color: var(--text-primary);
    padding: 0.52rem 0.95rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    min-width: 260px;
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-gold);
}

/* =========================================================
   CARDS & GRIDS (PIXEL RPG FRAMES)
   ========================================================= */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.card {
    background: var(--bg-card);
    border: 2px solid var(--border-stone);
    padding: 1.3rem;
    box-shadow: var(--pixel-shadow);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
    border-color: var(--border-highlight);
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.card-title {
    font-family: var(--font-pixel);
    font-size: 0.98rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.card-subtitle {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border: 1px solid;
    white-space: nowrap;
}

.badge-free {
    background: var(--accent-emerald-soft);
    color: var(--accent-emerald);
    border-color: rgba(34, 197, 94, 0.4);
}

.badge-dlc {
    background: var(--accent-purple-soft);
    color: var(--accent-purple);
    border-color: rgba(192, 132, 252, 0.4);
}

.badge-warn {
    background: var(--accent-crimson-soft);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.45);
}

.badge-info {
    background: var(--accent-cyan-soft);
    color: var(--accent-cyan);
    border-color: rgba(56, 189, 248, 0.4);
}

/* Character Skill List */
.skill-list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    margin: 0.9rem 0;
}

.skill-list li {
    background: var(--bg-dungeon);
    border: 1px solid var(--border-stone);
    padding: 0.55rem 0.75rem;
    font-size: 0.86rem;
}

.skill-list li strong {
    color: var(--accent-gold);
}

.stat-priority {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 2px dashed var(--border-stone);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.stat-priority strong {
    color: var(--accent-cyan);
}

/* Rarity Strip */
.rarity-chain {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.15rem 0 0;
}

.rarity-chip {
    padding: 0.35rem 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--bg-dungeon);
    border: 2px solid currentColor;
    box-shadow: 0 2px 0 #000;
}

/* Interactive Boxes (Team Builder, Calculators) */
.builder-box {
    background: var(--bg-surface);
    border: 3px solid var(--accent-gold-dark);
    padding: 1.6rem;
    box-shadow: var(--pixel-shadow);
}

.builder-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.control-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.4rem;
}

.control-group select,
.control-group input {
    width: 100%;
    background: var(--bg-dungeon);
    color: var(--text-primary);
    border: 2px solid var(--border-stone);
    padding: 0.58rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    outline: none;
}

.control-group select:focus,
.control-group input:focus {
    border-color: var(--accent-gold);
}

.builder-result {
    background: var(--bg-card);
    border: 2px solid var(--border-stone);
    padding: 1.25rem;
}

/* Alert / Callout */
.callout {
    padding: 1rem 1.2rem;
    margin: 1.25rem 0;
    border: 2px solid;
    border-left-width: 6px;
    font-size: 0.9rem;
}

.callout-warn {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--accent-crimson);
    color: #fecaca;
}

.callout-tip {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--accent-emerald);
    color: #bbf7d0;
}

.callout-info {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-cyan);
    color: #bae6fd;
}

/* Checklist */
.checklist {
    display: grid;
    gap: 0.65rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--bg-dungeon);
    border: 2px solid var(--border-stone);
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.check-item:hover {
    border-color: var(--accent-gold-dark);
}

.check-item input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 17px;
    height: 17px;
    accent-color: var(--accent-gold);
    cursor: pointer;
}

.check-item.done span {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    border: 2px solid var(--border-stone);
    box-shadow: var(--pixel-shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-surface);
    font-size: 0.88rem;
}

th, td {
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-stone);
}

th {
    background: var(--bg-dungeon);
    color: var(--accent-gold);
    font-family: var(--font-pixel);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--border-stone);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

tr:last-child td {
    border-bottom: none;
}

code {
    font-family: var(--font-mono);
    background: var(--bg-dungeon);
    border: 1px solid var(--border-stone);
    padding: 0.12rem 0.38rem;
    font-size: 0.84rem;
    color: var(--accent-cyan);
}

/* Footer */
footer {
    border-top: 3px solid var(--border-stone);
    background: var(--bg-surface);
    padding: 2rem 0;
    margin-top: 2rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* =========================================================
   CHARACTER PIXEL AVATARS
   ========================================================= */
.class-header-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.class-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--accent-gold-dark);
    background: var(--bg-dungeon);
    box-shadow: 0 3px 0 #000;
    flex-shrink: 0;
    image-rendering: pixelated;
}

/* =========================================================
   HERO-DRIC CUBE ROADMAP
   ========================================================= */
.cube-roadmap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.roadmap-step {
    background: var(--bg-dungeon);
    border: 2px solid var(--border-stone);
    padding: 0.9rem;
    position: relative;
}

.roadmap-step.highlight {
    border-color: var(--accent-gold);
}

.roadmap-lv {
    font-family: var(--font-pixel);
    font-size: 0.76rem;
    color: var(--accent-gold);
    margin-bottom: 0.3rem;
}

.roadmap-title {
    font-weight: 800;
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
}

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

/* =========================================================
   FAQ ACCORDION (SSS)
   ========================================================= */
.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 2px solid var(--border-stone);
    box-shadow: var(--pixel-shadow);
}

.faq-item[open] {
    border-color: var(--accent-gold-dark);
}

.faq-item summary {
    padding: 1rem 1.2rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.faq-item summary::after {
    content: "+";
    font-family: var(--font-pixel);
    color: var(--accent-gold);
    font-size: 1rem;
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-body {
    padding: 0 1.2rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px dashed var(--border-stone);
    padding-top: 0.85rem;
}

/* =========================================================
   STICKY WINDOWS TASKBAR DOCK (CANLI GÖREV ÇUBUĞU)
   ========================================================= */
body {
    padding-bottom: 58px;
}

.sticky-taskbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: #0d1018;
    border-top: 3px solid var(--border-highlight);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.85);
    padding: 0.45rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.tb-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tb-start {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    color: #090c12;
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
    border: 2px solid #fef08a;
    text-decoration: none;
    font-weight: 700;
}

.tb-quick-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.3rem 0.55rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-stone);
}

.tb-quick-link:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold-dark);
}

.tb-arena {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #07090e;
    border: 1px solid var(--border-stone);
    padding: 0.25rem 0.75rem;
}

.tb-sprite {
    display: inline-block;
    animation: heroBob 0.7s infinite alternate ease-in-out;
}

.tb-sprite.delay-1 { animation-delay: 0.15s; }
.tb-sprite.delay-2 { animation-delay: 0.3s; }

.tb-dmg {
    color: var(--accent-gold);
    font-weight: 700;
    min-width: 78px;
    text-align: right;
}

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

@media (max-width: 960px) {
    .tb-quick-link {
        display: none;
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .stats-strip {
        grid-template-columns: 1fr;
    }

    .search-input {
        width: 100%;
    }
}

/* =========================================================
   TEMA DEĞİŞTİRME BUTONU & AÇIK TEMA (PARŞÖMEN RPG)
   ========================================================= */
.theme-toggle-btn {
    background: var(--bg-card);
    color: var(--accent-gold);
    border: 2px solid var(--border-stone);
    padding: 0.42rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 0 #06070b;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.theme-toggle-btn:hover {
    border-color: var(--accent-gold);
    background: var(--bg-card-hover);
}

.theme-toggle-btn:active {
    transform: translateY(2px);
    box-shadow: none;
}

[data-theme="light"] {
    --bg-main: #f1ece1;
    --bg-dungeon: #e6dfd0;
    --bg-surface: #f9f6ee;
    --bg-card: #fffdf7;
    --bg-card-hover: #f5efe2;

    --border-dark: #b6ab92;
    --border-stone: #c8bda3;
    --border-gold: #b45309;
    --border-highlight: #9c8f73;

    --text-primary: #1c202e;
    --text-secondary: #4a5268;
    --text-muted: #6c748a;

    --accent-gold: #b45309;
    --accent-gold-dark: #92400e;
    --accent-gold-soft: rgba(180, 83, 9, 0.12);
    --accent-cyan: #0369a1;
    --accent-cyan-soft: rgba(3, 105, 161, 0.12);
    --accent-emerald: #15803d;
    --accent-emerald-soft: rgba(21, 128, 61, 0.12);
    --accent-purple: #7e22ce;
    --accent-purple-soft: rgba(126, 34, 206, 0.12);
    --accent-crimson: #b91c1c;
    --accent-crimson-soft: rgba(185, 28, 28, 0.12);

    --pixel-shadow: 0 4px 0 #cfc5ae, inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --pixel-gold-shadow: 0 4px 0 #92400e, inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

[data-theme="light"] body {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .topbar {
    background: rgba(249, 246, 238, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .brand,
[data-theme="light"] .section-title,
[data-theme="light"] .hero h1,
[data-theme="light"] .hero-meta-box h3 {
    text-shadow: none;
}

[data-theme="light"] .hero {
    background:
        linear-gradient(180deg, rgba(241, 236, 225, 0.84) 0%, rgba(241, 236, 225, 0.95) 100%),
        url('../assets/bg-trio-funny.jpg') center center / cover no-repeat;
}

[data-theme="light"] #karakterler {
    background:
        linear-gradient(180deg, rgba(241, 236, 225, 0.95) 0%, rgba(241, 236, 225, 0.86) 50%, rgba(241, 236, 225, 0.96) 100%),
        url('../assets/bg-dlc-funny.jpg') center center / cover no-repeat;
}

[data-theme="light"] .theme-toggle-btn {
    box-shadow: 0 3px 0 #c8bda3;
}

[data-theme="light"] .taskbar-strip {
    background: #e6dfd0;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sticky-taskbar {
    background: #e6dfd0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .tb-arena {
    background: #f9f6ee;
}

[data-theme="light"] .callout-warn {
    color: #7f1d1d;
}

[data-theme="light"] .callout-tip {
    color: #14532d;
}

[data-theme="light"] .callout-info {
    color: #0c4a6e;
}

[data-theme="light"] .badge-warn {
    color: #991b1b;
}

[data-theme="light"] .rarity-chip {
    box-shadow: 0 2px 0 #c8bda3;
}

/* =========================================================
   TOPBAR ACTIONS & COMMAND PALETTE (CTRL+K)
   ========================================================= */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cmd-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(5, 6, 10, 0.78);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5.5rem 1rem 1rem;
}

.cmd-modal {
    width: 100%;
    max-width: 580px;
    background: var(--bg-surface);
    border: 3px solid var(--accent-gold);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
    padding: 1rem;
}

.cmd-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.cmd-input {
    width: 100%;
    background: var(--bg-dungeon);
    color: var(--text-primary);
    border: 2px solid var(--border-stone);
    padding: 0.65rem 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    outline: none;
}

.cmd-input:focus {
    border-color: var(--accent-gold);
}

.cmd-results {
    display: grid;
    gap: 0.45rem;
    max-height: 340px;
    overflow-y: auto;
}

.cmd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-stone);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    cursor: pointer;
}

.cmd-item:hover {
    border-color: var(--accent-gold);
    background: var(--bg-card-hover);
}

.cmd-item span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-gold);
}

/* =========================================================
   SAYFA SİSTEMİ (SPA HASH ROUTING)
   ========================================================= */
body.spa-ready section {
    display: none;
}

body.spa-ready section.page-active {
    display: block;
    animation: pageFadeIn 0.22s ease;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tb-quick-link.active,
.tb-start.active {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 0 1px var(--accent-gold-dark);
}

.tb-start.active {
    color: #090c12;
}

.page-hub {
    margin-top: 2.25rem;
}

.page-hub-title {
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-bottom: 0.9rem;
    letter-spacing: 0.03em;
}

.page-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.page-hub-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    background: var(--bg-card);
    border: 2px solid var(--border-stone);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.page-hub-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold);
    background: var(--bg-card-hover);
}

.page-hub-card strong {
    font-size: 0.96rem;
    color: var(--accent-gold);
}

.page-hub-card span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.page-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    padding-bottom: 2.25rem;
}

.pager-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.05rem;
    background: var(--bg-card);
    border: 2px solid var(--border-stone);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.pager-btn:hover {
    border-color: var(--accent-gold);
    background: var(--bg-card-hover);
    color: var(--accent-gold);
}

.pager-status {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* =========================================================
   KİŞİSEL İLERLEME TAKİPÇİSİ
   ========================================================= */
.tracker-box {
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 2px solid var(--border-stone);
}

.tracker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tracker-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.tracker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
}

/* =========================================================
   TASARIM İYİLEŞTİRMELERİ (polish layer)
   ========================================================= */
::selection { background: var(--accent-gold); color: #0b0c12; }
:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 2px; }

body {
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
        radial-gradient(ellipse 60% 40% at 15% 0%, rgba(245,176,65,0.12), transparent 70%),
        radial-gradient(ellipse 50% 40% at 90% 15%, rgba(192,132,252,0.11), transparent 70%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(56,189,248,0.07), transparent 70%);
    background-attachment: fixed;
}

.topbar { backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.nav-links a { border-radius: 6px; }
.nav-links a:hover { transform: translateY(-1px); }

.hero { padding-top: 4.5rem; padding-bottom: 3.5rem; }
.hero h1 {
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.hero h1 span {
    background: linear-gradient(90deg, #fde68a, #f5b041 50%, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 0 rgba(0,0,0,0.5));
}
.hero-lead { font-size: 1.08rem; max-width: 60ch; }

.btn { border-radius: 8px; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-primary { box-shadow: var(--pixel-gold-shadow), 0 8px 24px rgba(245,176,65,0.25); }

.hero-meta-box, .card, .stat-card, .builder-box, .tracker-box, .faq-item, .roadmap-step, .page-hub-card {
    border-radius: 12px;
}
.hero-meta-box { box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(245,176,65,0.15); }

.card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.45), 0 0 0 1px var(--border-highlight);
}
.stat-card { transition: transform .2s ease, border-color .2s ease; }
.stat-card:hover { transform: translateY(-3px); border-color: var(--accent-gold); }

.section-header { border-left-width: 5px; border-image: linear-gradient(180deg, var(--accent-gold), var(--accent-purple)) 1; }
.section-title { letter-spacing: -0.01em; }

.badge, .tier-tag, .rarity-chip, .tab-btn { border-radius: 6px; }
.tab-btn { transition: all .15s ease; }
.search-input, .control-group input { border-radius: 8px; }

.faq-item { transition: border-color .2s ease, background .2s ease; }
.faq-item:hover { border-color: var(--border-highlight); }

.table-wrap { border-radius: 12px; overflow: auto; }

::-webkit-scrollbar-thumb { border-radius: 6px; }

/* Kaydırınca beliren bölümler */
@media (prefers-reduced-motion: no-preference) {
    @keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
    .hero-grid > div, .stat-card { animation: fadeUp .6s ease both; }
    .hero-grid > div:nth-child(2) { animation-delay: .12s; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

/* Mobil */
@media (max-width: 720px) {
    .hero { padding-top: 2.5rem; }
    .hero h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
    .nav-links { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
    .nav-links a { white-space: nowrap; }
    section { padding: 2.25rem 0; }
}

/* Oyun seçici */
.game-picker { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1rem; margin:2rem 0 1.5rem; }
.game-card { display:flex; align-items:center; gap:1rem; padding:1.1rem 1.3rem; text-decoration:none; color:var(--text-primary); background:var(--bg-card); border:2px solid var(--border-stone); border-radius:14px; position:relative; transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.game-card:hover { transform:translateY(-3px); box-shadow:0 12px 28px rgba(0,0,0,.35); }
.game-card.game-active { border-color:var(--accent-gold); }
.game-card.game-val:hover { border-color:#ff4655; }
.game-card.game-val em { color:#ff4655; }
.game-emoji { font-size:2rem; }
.game-card strong { display:block; font-size:1.05rem; }
.game-card small { display:block; color:var(--text-secondary); font-size:.82rem; margin-top:.15rem; }
.game-card em { margin-left:auto; font-style:normal; font-size:.78rem; font-weight:800; color:var(--accent-gold); white-space:nowrap; }
.update-log { list-style:none; display:grid; gap:1rem; }
.update-log li { background:var(--bg-card); border:1px solid var(--border-stone); border-left:4px solid var(--accent-gold); border-radius:10px; padding:1rem 1.2rem; }
.update-log time { font-family:var(--font-mono); font-size:.8rem; color:var(--text-muted); }
.update-log h3 { margin:.2rem 0 .4rem; }
.update-log ul { margin-left:1.2rem; color:var(--text-secondary); font-size:.92rem; }
