/* ═══════════════════════════════════════════════════════
   Naruto Mythos TCG — Parchment Theme
   Palette: Warm parchment · Dark navy · Crimson · Ink black
═══════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --parchment: #f0ece3;
    --parchment-dark: #e4ddd0;
    --pattern-color: #d4ccbc;

    --navy: #1b2744;
    --navy-light: #243055;
    --gold: #d4a820;

    --ink: #1a1a1a;
    --ink-mid: #3a3a3a;
    --ink-light: #6a6560;

    --crimson: #b91c1c;
    --crimson-hover: #991b1b;

    --disclaimer-bg: #ddd8ce;
    --disclaimer-border: #b8b0a0;

    --font-display: 'Oswald', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    --max-w: 900px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    background-color: var(--parchment);
    /* Repeating ninja symbol wallpaper — shuriken + kunai only */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='185'%3E%3Cg transform='translate(52,50)' fill='%23c8c0b0'%3E%3Cpath d='M0,-27 L7,-7 L27,0 L7,7 L0,27 L-7,7 L-27,0 L-7,-7 Z'/%3E%3Ccircle r='5' fill='%23f0ece3'/%3E%3C/g%3E%3Cg transform='translate(190,55) rotate(-45)' fill='%23c8c0b0'%3E%3Cpath d='M0,-24 L6,-3 L2,16 L0,22 L-2,16 L-6,-3 Z'/%3E%3Cellipse cx='0' cy='23' rx='5' ry='2'/%3E%3Crect x='-2' y='25' width='4' height='10'/%3E%3Ccircle cx='0' cy='39' r='4' fill='none' stroke='%23c8c0b0' stroke-width='2.5'/%3E%3C/g%3E%3Cg transform='translate(28,145) rotate(-45)' fill='%23c8c0b0'%3E%3Cpath d='M0,-18 L4,-2 L2,12 L0,16 L-2,12 L-4,-2 Z'/%3E%3Cellipse cx='0' cy='17' rx='4' ry='1.5'/%3E%3Crect x='-1.5' y='19' width='3' height='8'/%3E%3Ccircle cx='0' cy='30' r='3' fill='none' stroke='%23c8c0b0' stroke-width='2'/%3E%3C/g%3E%3Cg transform='translate(134,140)' fill='%23c8c0b0'%3E%3Cpath d='M0,-20 L5,-5 L20,0 L5,5 L0,20 L-5,5 L-20,0 L-5,-5 Z'/%3E%3Ccircle r='4' fill='%23f0ece3'/%3E%3C/g%3E%3Cg transform='translate(228,143) rotate(-45)' fill='%23c8c0b0'%3E%3Cpath d='M0,-18 L4,-2 L2,12 L0,16 L-2,12 L-4,-2 Z'/%3E%3Cellipse cx='0' cy='17' rx='4' ry='1.5'/%3E%3Crect x='-1.5' y='19' width='3' height='8'/%3E%3Ccircle cx='0' cy='30' r='3' fill='none' stroke='%23c8c0b0' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 260px 185px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── TOP BAR ── */
.top-bar {
    background: var(--navy);
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.top-bar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--gold);
    text-transform: uppercase;
    white-space: nowrap;
}

.bar-emblem {
    width: 26px;
    height: 26px;
    opacity: 0.9;
    color: var(--gold);
    flex-shrink: 0;
}

/* Right nav */
.top-bar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    transition: color var(--transition);
}

.nav-link:hover {
    color: #fff;
}

.nav-bug-btn {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 8px 16px;
    background: var(--crimson);
    color: #fff;
    border: 2px solid #8b0000;
    box-shadow: 2px 2px 0 #7a0000;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
}

.nav-bug-btn:hover {
    background: var(--crimson-hover);
    transform: translate(-1px, -1px);
}

/* ── HERO ── */
.hero {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 52px 24px 48px;
    background: var(--parchment);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink);
    line-height: 1;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--ink-mid);
    max-width: 620px;
    line-height: 1.6;
}

/* Screenshot frame */
.screenshot-frame {
    width: 100%;
    max-width: 720px;
    border: 3px solid var(--ink);
    border-radius: 4px;
    background: #2a2a2a;
    overflow: hidden;
    box-shadow: 6px 6px 0 var(--ink);
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Placeholder shown when screenshot hasn't been added yet */
.screenshot-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-light);
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 0.1em;
}

.screenshot-placeholder::after {
    content: "[ Drop assets/game-screenshot.png here ]";
}

/* Hide the broken img when placeholder is active */
.screenshot-placeholder .screenshot-img {
    display: none;
}

/* Play in Browser button */
.btn-play {
    display: inline-block;
    padding: 16px 52px;
    background: var(--crimson);
    color: #fff;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.12em;
    border-radius: 3px;
    border: 2px solid #8b0000;
    box-shadow: 4px 4px 0 #7a0000;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-transform: uppercase;
}

.btn-play:hover {
    background: var(--crimson-hover);
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 #7a0000;
}

.btn-play:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #7a0000;
}

/* Download row */
.download-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 15px;
}

.download-label {
    color: var(--ink-light);
    font-weight: 500;
}

.btn-dl {
    font-weight: 700;
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.btn-dl:hover {
    color: var(--crimson);
}

.dl-sep {
    color: var(--ink-light);
}

/* ── FEATURES BAR ── */
.features-bar {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px 48px;
    background: var(--parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
}

.feature {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 16px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink);
    text-align: left;
    line-height: 1.25;
}

.feat-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--ink);
}

.feat-divider {
    width: 2px;
    height: 60px;
    background: var(--ink);
    flex-shrink: 0;
}

/* ── RESOURCES ── */
.resources {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 36px 24px 40px;
    text-align: center;
    background: var(--parchment);
}

.resources-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--ink);
    margin-bottom: 18px;
}

.resources-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.res-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    transition: color var(--transition);
}

.res-link:hover {
    color: var(--crimson);
}

.res-arrow {
    font-size: 18px;
    color: var(--ink-light);
}

.pdf-badge, .discord-badge {
    opacity: 0.7;
    flex-shrink: 0;
}

.discord-badge {
    color: #5865F2;
    opacity: 1;
}

/* ── LEGAL DISCLAIMER ── */
.disclaimer {
    max-width: var(--max-w);
    margin: 0 auto 48px;
    padding: 0 24px;
    background: var(--parchment);
}

.disclaimer p {
    background: var(--disclaimer-bg);
    border: 1px solid var(--disclaimer-border);
    border-radius: 3px;
    padding: 20px 24px;
    font-size: 13px;
    color: var(--ink-mid);
    line-height: 1.65;
}

.disclaimer strong {
    color: var(--crimson);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.06em;
}

/* ── RANKED PLAY + FAQ SHARED ── */
.page-section {
    border-top: 2px solid var(--ink);
    padding: 52px 0;
    background: var(--parchment);
}

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--ink);
    margin-bottom: 12px;
}

.section-lead {
    font-size: 16px;
    color: var(--ink-mid);
    max-width: 680px;
    margin-bottom: 32px;
    line-height: 1.65;
}

/* Rank ladder */
.rank-ladder {
    border: 2px solid var(--ink);
    margin-bottom: 24px;
}

.rank-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--disclaimer-border);
}

.rank-row:last-child {
    border-bottom: none;
}

.rank-badge {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border: 2px solid currentColor;
    white-space: nowrap;
    min-width: 90px;
    text-align: center;
}

.rank-kage {
    color: #8b6914;
}

.rank-jonin {
    color: #1a5c8b;
}

.rank-chunin {
    color: #2e7d32;
}

.rank-genin {
    color: var(--ink-mid);
}

.rank-desc {
    font-size: 15px;
    color: var(--ink-mid);
    line-height: 1.5;
}

/* MMR + Promos detail grid */
.ranked-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-box {
    border: 2px solid var(--ink);
    padding: 22px;
}

.detail-box h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ink);
    margin-bottom: 10px;
}

.detail-box p {
    font-size: 14px;
    color: var(--ink-mid);
    line-height: 1.6;
    margin-bottom: 14px;
}

.detail-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-box li {
    font-size: 13px;
    color: var(--ink-mid);
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}

.detail-box li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--crimson);
    font-weight: 700;
}

/* FAQ */
.faq-list {
    border: 2px solid var(--ink);
}

.faq-item {
    padding: 20px 24px;
    border-bottom: 1px solid var(--disclaimer-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 7px;
}

.faq-item p {
    font-size: 15px;
    color: var(--ink-mid);
    line-height: 1.6;
}

.faq-item a {
    color: var(--crimson);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-item a:hover {
    color: var(--crimson-hover);
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .top-bar-brand {
        font-size: 14px;
    }

    .nav-link {
        display: none;
    }

    .ranked-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        letter-spacing: 0.02em;
    }

    .features-bar {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }

    .feature {
        width: 100%;
        border-bottom: 2px solid var(--ink);
        padding: 18px 16px;
    }

    .feat-divider {
        display: none;
    }

    .resources-links {
        gap: 20px;
        flex-direction: column;
    }

    .btn-play {
        padding: 14px 36px;
        font-size: 17px;
    }
}
