/* ==========================================================================
   A Squirrel's Birthday Reminder - Party Invitation / Celebration Theme
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Lato:wght@300;400;700;900&display=swap');

/* --- CSS Custom Properties (Light Mode) --- */
:root {
    --ink: #3a2634;
    --ink-soft: rgba(58, 38, 52, 0.75);
    --ink-muted: rgba(58, 38, 52, 0.55);
    --paper: #fff5f7;
    --paper-warm: #fef0f2;
    --paper-card: rgba(255, 255, 255, 0.82);
    --rose-gold: #b76e79;
    --rose-gold-light: #d4949d;
    --rose-gold-deep: #9c5563;
    --champagne: #f5e6cc;
    --champagne-dark: #d4b896;
    --blush: #f9d5dc;
    --confetti-1: #ff6b8a;
    --confetti-2: #ffd166;
    --confetti-3: #06d6a0;
    --confetti-4: #118ab2;
    --confetti-5: #ef476f;
    --confetti-6: #8338ec;
    --streamer-gradient: linear-gradient(90deg,
        #ff6b8a 0%, #ffd166 16%, #06d6a0 33%,
        #118ab2 50%, #8338ec 66%, #ef476f 83%, #ff6b8a 100%);
    --shadow-soft: rgba(183, 110, 121, 0.12);
    --shadow-medium: rgba(183, 110, 121, 0.18);
    --border-light: rgba(183, 110, 121, 0.18);
    --border-card: rgba(183, 110, 121, 0.15);
    --ribbon-bg: var(--rose-gold);
    --ribbon-fold: #8f4f5a;
    --sparkle-color: rgba(255, 215, 0, 0.7);
}

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

/* --- Body --- */
body {
    font-family: 'Lato', 'Century Gothic', 'Futura', sans-serif;
    background:
        radial-gradient(ellipse at 15% 5%, rgba(183, 110, 121, 0.10), transparent 50%),
        radial-gradient(ellipse at 80% 8%, rgba(245, 230, 204, 0.25), transparent 45%),
        radial-gradient(ellipse at 50% 95%, rgba(249, 213, 220, 0.15), transparent 50%),
        linear-gradient(170deg, var(--paper) 0%, var(--paper-warm) 50%, #fff8fa 100%);
    min-height: 100vh;
    padding: 0;
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Playfair Display', 'Georgia', serif;
}

h4 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

/* =====================================================================
   TOP NAVIGATION / BREADCRUMB
   ===================================================================== */
.top-nav {
    background: rgba(255, 245, 247, 0.92);
    padding: 14px 40px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-home {
    color: var(--rose-gold);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
    letter-spacing: 0.3px;
}

.nav-home:hover {
    color: var(--rose-gold-deep);
}

.nav-divider {
    color: rgba(183, 110, 121, 0.35);
    margin: 0 10px;
}

.nav-current {
    color: var(--ink-muted);
    font-weight: 400;
}

/* =====================================================================
   CONTAINER
   ===================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 40px 60px;
}

/* =====================================================================
   HERO SECTION - with confetti dots and sparkles
   ===================================================================== */
.hero {
    text-align: center;
    padding: 64px 32px 52px;
    margin-bottom: 44px;
    background:
        linear-gradient(180deg, rgba(183, 110, 121, 0.08) 0%, rgba(249, 213, 220, 0.12) 60%, transparent 100%);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow:
        0 20px 50px var(--shadow-soft),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: relative;
    overflow: hidden;
    animation: fade-in 0.8s ease-out;
}

/* Confetti scattered dots on hero */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 3px, var(--confetti-1) 100%, transparent 100%),
        radial-gradient(circle 2px, var(--confetti-2) 100%, transparent 100%),
        radial-gradient(circle 2.5px, var(--confetti-3) 100%, transparent 100%),
        radial-gradient(circle 3px, var(--confetti-4) 100%, transparent 100%),
        radial-gradient(circle 2px, var(--confetti-5) 100%, transparent 100%),
        radial-gradient(circle 2.5px, var(--confetti-6) 100%, transparent 100%),
        radial-gradient(circle 2px, var(--confetti-1) 100%, transparent 100%),
        radial-gradient(circle 3px, var(--confetti-2) 100%, transparent 100%),
        radial-gradient(circle 2px, var(--confetti-3) 100%, transparent 100%),
        radial-gradient(circle 2.5px, var(--confetti-5) 100%, transparent 100%),
        radial-gradient(circle 3px, var(--confetti-6) 100%, transparent 100%),
        radial-gradient(circle 2px, var(--confetti-4) 100%, transparent 100%),
        radial-gradient(circle 2.5px, var(--confetti-1) 100%, transparent 100%),
        radial-gradient(circle 2px, var(--confetti-2) 100%, transparent 100%);
    background-size: 6px 6px, 4px 4px, 5px 5px, 6px 6px, 4px 4px, 5px 5px,
                     4px 4px, 6px 6px, 4px 4px, 5px 5px, 6px 6px, 4px 4px,
                     5px 5px, 4px 4px;
    background-position:
        5% 12%, 12% 78%, 22% 35%, 35% 88%, 45% 18%, 55% 65%,
        65% 8%, 72% 45%, 80% 80%, 88% 22%, 92% 60%, 15% 55%,
        48% 42%, 75% 15%;
    background-repeat: no-repeat;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* CSS-only sparkle effect */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 1.5px, var(--sparkle-color) 0%, transparent 100%),
        radial-gradient(circle 1px, var(--sparkle-color) 0%, transparent 100%),
        radial-gradient(circle 2px, rgba(255, 255, 255, 0.8) 0%, transparent 100%),
        radial-gradient(circle 1.5px, var(--sparkle-color) 0%, transparent 100%),
        radial-gradient(circle 1px, rgba(255, 255, 255, 0.9) 0%, transparent 100%),
        radial-gradient(circle 1.5px, var(--sparkle-color) 0%, transparent 100%);
    background-size: 3px 3px, 2px 2px, 4px 4px, 3px 3px, 2px 2px, 3px 3px;
    background-position:
        8% 25%, 25% 70%, 42% 15%, 68% 75%, 85% 30%, 55% 50%;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: sparkle-twinkle 3s ease-in-out infinite;
}

@keyframes sparkle-twinkle {
    0%, 100% { opacity: 0; }
    25% { opacity: 0.9; }
    50% { opacity: 0.3; }
    75% { opacity: 0.8; }
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-icon {
    font-size: 5em;
    margin-bottom: 16px;
    filter: drop-shadow(0 6px 18px rgba(183, 110, 121, 0.30));
    display: inline-block;
    animation: gentle-float 4s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ink);
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.hero .full-name {
    font-family: 'Lato', sans-serif;
    font-size: 0.42em;
    font-weight: 300;
    display: block;
    margin-top: 10px;
    color: var(--rose-gold);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.tagline {
    font-size: 1.2em;
    color: var(--ink-soft);
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* --- Version Badge: Party Favor Gift Tag --- */
.version-badge {
    display: inline-block;
    margin-top: 20px;
    background: var(--paper-card);
    color: var(--rose-gold-deep);
    padding: 8px 24px 8px 30px;
    border-radius: 6px 20px 20px 6px;
    font-weight: 700;
    font-size: 0.95em;
    font-family: 'Lato', sans-serif;
    border: 2px solid var(--rose-gold-light);
    position: relative;
    box-shadow: 0 3px 12px var(--shadow-soft);
    letter-spacing: 0.5px;
}

/* Tag "hole" */
.version-badge::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--rose-gold-light);
    background: var(--paper);
}

/* Ribbon "string" from the hole */
.version-badge::after {
    content: '';
    position: absolute;
    left: 13px;
    top: -10px;
    width: 2px;
    height: 12px;
    background: var(--rose-gold-light);
    border-radius: 1px;
    transform: rotate(-15deg);
}

/* =====================================================================
   INTRO SECTION
   ===================================================================== */
.intro-section {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 48px;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--ink-soft);
    padding: 28px 34px;
    background: var(--paper-card);
    border-radius: 18px;
    border: 1px solid var(--border-card);
    border-left: 5px solid var(--rose-gold);
    box-shadow: 0 8px 30px var(--shadow-soft);
}

/* =====================================================================
   NOTICE / TIP BOXES
   ===================================================================== */
.notice-section {
    max-width: 800px;
    margin: 0 auto 34px;
    display: grid;
    gap: 16px;
}

.notice-box {
    background: linear-gradient(135deg, rgba(245, 230, 204, 0.25), rgba(255, 255, 255, 0.6));
    border: 1px solid rgba(212, 184, 150, 0.40);
    border-left: 5px solid var(--champagne-dark);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 16px rgba(212, 184, 150, 0.10);
}

.notice-box h3 {
    font-family: 'Playfair Display', serif;
    color: var(--champagne-dark);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.notice-box p {
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 10px;
}

.notice-box p:last-child {
    margin-bottom: 0;
}

/* =====================================================================
   SECTION TITLES - Ribbon / Banner Styling
   ===================================================================== */
.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    font-weight: 700;
    margin: 56px 0 32px;
    color: var(--rose-gold-deep);
    position: relative;
    display: block;
    letter-spacing: -0.3px;
}

/* Ribbon banner behind section titles */
.section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(80%, 500px);
    height: 48px;
    background: linear-gradient(135deg, rgba(183, 110, 121, 0.06), rgba(249, 213, 220, 0.12));
    border-radius: 4px;
    z-index: -1;
    border-left: 3px solid var(--rose-gold-light);
    border-right: 3px solid var(--rose-gold-light);
}

/* Decorative underline */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--streamer-gradient);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: streamer-shift 4s linear infinite;
}

@keyframes streamer-shift {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* =====================================================================
   FEATURES GRID - with streamer border-top accent
   ===================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-bottom: 50px;
}

.feature-card {
    background: var(--paper-card);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid var(--border-card);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px var(--shadow-soft);
}

/* Thin rainbow streamer border-top on feature cards */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--streamer-gradient);
    background-size: 200% 100%;
    animation: streamer-shift 5s linear infinite;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px var(--shadow-medium);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 14px;
    display: block;
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--ink);
    margin-bottom: 10px;
    font-size: 1.15em;
}

.feature-card p {
    color: var(--ink-soft);
    line-height: 1.65;
    font-size: 0.95em;
}

/* =====================================================================
   NPC BIRTHDAY SEASONS - festive icon styling
   ===================================================================== */
.npc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-bottom: 50px;
}

.npc-section {
    background: var(--paper-card);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid var(--border-card);
    box-shadow: 0 4px 16px var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

/* Season-specific top accent (streamer style) */
.npc-section.spring {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #7daa7d, #a8d5a0, #7daa7d) 1;
    border-image-slice: 1;
}
.npc-section.summer {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #e8a84c, #f5d090, #e8a84c) 1;
    border-image-slice: 1;
}
.npc-section.fall {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #c68642, #e0a86e, #c68642) 1;
    border-image-slice: 1;
}
.npc-section.winter {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #6a8fb0, #9cc0de, #6a8fb0) 1;
    border-image-slice: 1;
}

/* Fix border-radius lost with border-image by using pseudo-element overlay */
.npc-section.spring,
.npc-section.summer,
.npc-section.fall,
.npc-section.winter {
    border-top: none;
    border-image: none;
}

.npc-section.spring::before,
.npc-section.summer::before,
.npc-section.fall::before,
.npc-section.winter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.npc-section.spring::before {
    background: linear-gradient(90deg, #7daa7d, #a8d5a0, #c6e8bf, #a8d5a0, #7daa7d);
}
.npc-section.summer::before {
    background: linear-gradient(90deg, #e8a84c, #f5d090, #ffe4b5, #f5d090, #e8a84c);
}
.npc-section.fall::before {
    background: linear-gradient(90deg, #c68642, #e0a86e, #f0c89a, #e0a86e, #c68642);
}
.npc-section.winter::before {
    background: linear-gradient(90deg, #6a8fb0, #9cc0de, #c4dff0, #9cc0de, #6a8fb0);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border-light);
}

.section-icon {
    font-size: 2.2em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.section-header h3 {
    font-family: 'Playfair Display', serif;
    color: var(--ink);
    font-size: 1.25em;
}

.section-desc {
    color: var(--ink-muted);
    font-size: 0.95em;
    margin-bottom: 14px;
    line-height: 1.55;
    font-style: italic;
}

.npc-list {
    list-style: none;
}

/* Celebration-themed NPC list separators */
.npc-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--ink-soft);
    border-bottom: 1px solid transparent;
    background-image: linear-gradient(90deg,
        transparent 0%,
        rgba(183, 110, 121, 0.08) 20%,
        rgba(183, 110, 121, 0.08) 80%,
        transparent 100%);
    background-size: 100% 1px;
    background-position: bottom;
    background-repeat: no-repeat;
}

.npc-list li:last-child {
    background-image: none;
}

.npc-icon {
    font-size: 1.15em;
    width: 28px;
    text-align: center;
}

/* =====================================================================
   GIFT PREFERENCE / RARITY - styled as wrapped bows
   ===================================================================== */
.rarity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 50px;
}

.rarity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--paper-card);
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid var(--border-card);
    box-shadow: 0 3px 12px var(--shadow-soft);
    transition: transform 0.2s ease;
}

.rarity-item:hover {
    transform: translateY(-2px);
}

/* Gift bow shape for rarity dots */
.rarity-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Bow ribbon cross effect */
.rarity-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 4px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 2px;
}

.rarity-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 22px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 2px;
}

.rarity-dot.loved {
    background: linear-gradient(135deg, #e84393, #ff6b8a);
}

.rarity-dot.liked {
    background: linear-gradient(135deg, #d4a373, #e8c49a);
}

.rarity-label {
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 1.05em;
    letter-spacing: 0.3px;
}

/* =====================================================================
   USAGE STEPS & INSTALL STEPS
   ===================================================================== */
.usage-steps,
.install-steps {
    max-width: 720px;
    margin: 0 auto 50px;
}

.step,
.install-step {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    background: var(--paper-card);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-card);
    box-shadow: 0 4px 16px var(--shadow-soft);
    transition: border-color 0.25s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Subtle left ribbon accent on steps */
.step::before,
.install-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--rose-gold-light), var(--champagne-dark));
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.25s;
}

.step:hover,
.install-step:hover {
    border-color: rgba(183, 110, 121, 0.35);
    transform: translateY(-2px);
}

.step:hover::before,
.install-step:hover::before {
    opacity: 1;
}

.step-number {
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-deep));
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2em;
    flex-shrink: 0;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 3px 10px rgba(183, 110, 121, 0.25);
}

.step-icon {
    font-size: 2.2em;
    width: 46px;
    text-align: center;
    flex-shrink: 0;
}

.step-content h4,
.step-info h4 {
    color: var(--ink);
    margin-bottom: 6px;
    font-size: 1.08em;
}

.step-content p,
.step-info p {
    color: var(--ink-soft);
    line-height: 1.6;
    font-size: 0.95em;
}

/* =====================================================================
   KEYBIND SECTION
   ===================================================================== */
kbd {
    background: rgba(183, 110, 121, 0.08);
    border: 1px solid var(--border-light);
    border-radius: 7px;
    padding: 3px 8px;
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 0.9em;
    color: var(--rose-gold-deep);
    box-shadow: 0 2px 0 rgba(183, 110, 121, 0.15);
}

/* =====================================================================
   CONFIGURATION TABLE
   ===================================================================== */
.config-table {
    max-width: 720px;
    margin: 0 auto 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper-card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow-soft);
}

th, td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(183, 110, 121, 0.08);
}

th {
    background: linear-gradient(135deg, rgba(183, 110, 121, 0.12), rgba(212, 148, 157, 0.10));
    color: var(--ink);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    font-size: 0.95em;
    letter-spacing: 0.3px;
}

td {
    color: var(--ink-soft);
}

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

tr:hover td {
    background: rgba(183, 110, 121, 0.03);
}

code {
    background: rgba(183, 110, 121, 0.08);
    padding: 2px 8px;
    border-radius: 5px;
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 0.88em;
    color: var(--rose-gold-deep);
}

.config-note {
    text-align: center;
    color: var(--ink-muted);
    font-size: 0.95em;
    margin-bottom: 40px;
}

/* =====================================================================
   FOOTER - with confetti border-top
   ===================================================================== */
.footer {
    text-align: center;
    margin-top: 64px;
    padding: 38px 24px;
    position: relative;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 0 0 20px 20px;
}

/* Confetti-style border-top on footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--streamer-gradient);
    background-size: 200% 100%;
    animation: streamer-shift 6s linear infinite;
}

.footer p {
    color: var(--ink-muted);
    margin-bottom: 14px;
    font-size: 0.95em;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--rose-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--rose-gold-light);
    transform: scaleX(0);
    transition: transform 0.3s;
}

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

.footer-links a:hover::after {
    transform: scaleX(1);
}

/* =====================================================================
   ANIMATIONS
   ===================================================================== */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .hero {
        padding: 44px 20px 38px;
    }

    .hero h1 {
        font-size: 2.3em;
    }

    .hero-icon {
        font-size: 3.5em;
    }

    .section-title {
        font-size: 1.65em;
        margin: 42px 0 26px;
    }

    .section-title::before {
        height: 40px;
    }

    .step,
    .install-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .step-number {
        margin-bottom: 8px;
    }

    .step-icon {
        margin-bottom: 4px;
    }

    .top-nav {
        padding: 12px 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 14px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .npc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.85em;
    }

    .hero .full-name {
        font-size: 0.48em;
        letter-spacing: 1.5px;
    }

    .features-grid,
    .npc-grid,
    .rarity-grid {
        grid-template-columns: 1fr;
    }

    .section-title::before {
        width: 95%;
    }

    .intro-section {
        padding: 22px 20px;
        font-size: 1em;
    }

    .notice-box {
        padding: 18px 20px;
    }
}

/* =====================================================================
   DARK MODE
   ===================================================================== */
[data-theme="dark"] body {
    background:
        radial-gradient(ellipse at 15% 5%, rgba(183, 110, 121, 0.06), transparent 50%),
        radial-gradient(ellipse at 80% 8%, rgba(120, 80, 60, 0.08), transparent 45%),
        linear-gradient(170deg, #1a1218 0%, #261a22 50%, #1e151b 100%);
    color: #ede4e8;
}

[data-theme="dark"] .top-nav {
    background: rgba(26, 18, 24, 0.94);
    border-bottom-color: rgba(183, 110, 121, 0.18);
}

[data-theme="dark"] .nav-current {
    color: rgba(220, 200, 210, 0.55);
}

[data-theme="dark"] .nav-divider {
    color: rgba(183, 110, 121, 0.30);
}

/* Dark Hero */
[data-theme="dark"] .hero {
    background:
        linear-gradient(180deg, rgba(183, 110, 121, 0.06) 0%, rgba(40, 25, 35, 0.4) 100%);
    border-color: rgba(183, 110, 121, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(183, 110, 121, 0.08) inset;
}

[data-theme="dark"] .hero::before {
    opacity: 0.25;
}

[data-theme="dark"] .hero::after {
    --sparkle-color: rgba(255, 215, 0, 0.5);
}

[data-theme="dark"] .hero h1 {
    color: #ede4e8;
}

[data-theme="dark"] .hero .full-name {
    color: var(--rose-gold-light);
}

[data-theme="dark"] .tagline {
    color: rgba(237, 228, 232, 0.65);
}

/* Dark Version Badge */
[data-theme="dark"] .version-badge {
    background: rgba(45, 30, 40, 0.85);
    color: var(--rose-gold-light);
    border-color: rgba(183, 110, 121, 0.35);
}

[data-theme="dark"] .version-badge::before {
    border-color: rgba(183, 110, 121, 0.35);
    background: rgba(26, 18, 24, 0.9);
}

[data-theme="dark"] .version-badge::after {
    background: rgba(183, 110, 121, 0.35);
}

/* Dark Intro */
[data-theme="dark"] .intro-section {
    background: rgba(40, 28, 36, 0.70);
    color: rgba(237, 228, 232, 0.80);
    border-color: rgba(183, 110, 121, 0.20);
    border-left-color: var(--rose-gold);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Dark Notice Boxes */
[data-theme="dark"] .notice-box {
    background: linear-gradient(135deg, rgba(120, 80, 60, 0.10), rgba(40, 28, 36, 0.5));
    border-color: rgba(212, 184, 150, 0.18);
    border-left-color: var(--champagne-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .notice-box h3 {
    color: var(--champagne-dark);
}

[data-theme="dark"] .notice-box p {
    color: rgba(237, 228, 232, 0.75);
}

/* Dark Section Titles */
[data-theme="dark"] .section-title {
    color: var(--rose-gold-light);
}

[data-theme="dark"] .section-title::before {
    background: linear-gradient(135deg, rgba(183, 110, 121, 0.06), rgba(60, 35, 50, 0.15));
    border-left-color: rgba(183, 110, 121, 0.25);
    border-right-color: rgba(183, 110, 121, 0.25);
}

/* Dark Feature Cards */
[data-theme="dark"] .feature-card {
    background: rgba(40, 28, 36, 0.75);
    border-color: rgba(183, 110, 121, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feature-card h3 {
    color: #ede4e8;
}

[data-theme="dark"] .feature-card p {
    color: rgba(237, 228, 232, 0.70);
}

/* Dark NPC Sections */
[data-theme="dark"] .npc-section {
    background: rgba(40, 28, 36, 0.75);
    border-color: rgba(183, 110, 121, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .section-header {
    border-bottom-color: rgba(183, 110, 121, 0.15);
}

[data-theme="dark"] .section-header h3 {
    color: #ede4e8;
}

[data-theme="dark"] .section-desc {
    color: rgba(237, 228, 232, 0.55);
}

[data-theme="dark"] .npc-list li {
    color: rgba(237, 228, 232, 0.80);
    background-image: linear-gradient(90deg,
        transparent 0%,
        rgba(183, 110, 121, 0.06) 20%,
        rgba(183, 110, 121, 0.06) 80%,
        transparent 100%);
}

/* Dark spring/summer/fall/winter top borders */
[data-theme="dark"] .npc-section.spring::before {
    background: linear-gradient(90deg, #5a8a5a, #7daa7d, #5a8a5a);
}
[data-theme="dark"] .npc-section.summer::before {
    background: linear-gradient(90deg, #c08840, #e8a84c, #c08840);
}
[data-theme="dark"] .npc-section.fall::before {
    background: linear-gradient(90deg, #a06830, #c68642, #a06830);
}
[data-theme="dark"] .npc-section.winter::before {
    background: linear-gradient(90deg, #5578a0, #6a8fb0, #5578a0);
}

/* Dark Rarity Items */
[data-theme="dark"] .rarity-item {
    background: rgba(40, 28, 36, 0.70);
    border-color: rgba(183, 110, 121, 0.12);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .rarity-label {
    color: rgba(237, 228, 232, 0.85);
}

/* Dark Steps */
[data-theme="dark"] .step,
[data-theme="dark"] .install-step {
    background: rgba(40, 28, 36, 0.75);
    border-color: rgba(183, 110, 121, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .step:hover,
[data-theme="dark"] .install-step:hover {
    border-color: rgba(183, 110, 121, 0.30);
}

[data-theme="dark"] .step-number {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .step-content h4,
[data-theme="dark"] .step-info h4 {
    color: #ede4e8;
}

[data-theme="dark"] .step-content p,
[data-theme="dark"] .step-info p {
    color: rgba(237, 228, 232, 0.70);
}

/* Dark Keybinds */
[data-theme="dark"] kbd {
    background: rgba(183, 110, 121, 0.10);
    border-color: rgba(183, 110, 121, 0.22);
    color: var(--rose-gold-light);
    box-shadow: 0 2px 0 rgba(183, 110, 121, 0.12);
}

/* Dark Table */
[data-theme="dark"] table {
    background: rgba(40, 28, 36, 0.80);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] th {
    background: linear-gradient(135deg, rgba(183, 110, 121, 0.12), rgba(100, 60, 75, 0.10));
    color: #ede4e8;
}

[data-theme="dark"] td {
    color: rgba(237, 228, 232, 0.75);
    border-bottom-color: rgba(183, 110, 121, 0.08);
}

[data-theme="dark"] tr:hover td {
    background: rgba(183, 110, 121, 0.04);
}

/* Dark Code */
[data-theme="dark"] code {
    background: rgba(183, 110, 121, 0.10);
    color: var(--rose-gold-light);
}

[data-theme="dark"] .config-note {
    color: rgba(237, 228, 232, 0.55);
}

/* Dark Footer */
[data-theme="dark"] .footer {
    background: rgba(26, 18, 24, 0.50);
}

[data-theme="dark"] .footer p {
    color: rgba(237, 228, 232, 0.55);
}

[data-theme="dark"] .footer-links a {
    color: var(--rose-gold-light);
}

[data-theme="dark"] .footer-links a:hover {
    color: #e8b0b8;
}

[data-theme="dark"] .footer-links a::after {
    background: rgba(183, 110, 121, 0.40);
}
