/* =============================================================
   Sun Haven Todo - Bulletin Board / Pinned Notes Theme
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Nunito+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* -----------------------------------------------------------------
   CSS VARIABLES - Light (corkboard) & Dark (chalkboard)
   ----------------------------------------------------------------- */
:root {
    --cork-bg: #c4956a;
    --cork-light: #d4a574;
    --cork-dark: #a87c55;
    --ink: #2c2318;
    --paper: #fffef9;
    --paper-warm: #fdf6ec;
    --shadow: rgba(44, 35, 24, 0.2);
    --pin-red: #d94040;
    --pin-blue: #4a7fb5;
    --pin-green: #5a9e5a;
    --pin-yellow: #d4a520;
    --sticky-yellow: #fff9c4;
    --sticky-pink: #fce4ec;
    --sticky-blue: #e3f2fd;
    --sticky-green: #e8f5e9;
    --sticky-orange: #fff3e0;
    --sticky-purple: #f3e5f5;
    --manila: #f5e6c8;
    --manila-tab: #e8d4ad;
    --tape: rgba(255, 255, 255, 0.55);
    --font-display: 'Caveat', cursive;
    --font-body: 'Nunito Sans', 'Century Gothic', 'Futura', sans-serif;
    --wavy-underline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6'%3E%3Cpath d='M0 3 Q5 0 10 3 T20 3 T30 3 T40 3' fill='none' stroke='%23a87c55' stroke-width='1.5'/%3E%3C/svg%3E");
}

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

/* -----------------------------------------------------------------
   BODY - Corkboard background
   ----------------------------------------------------------------- */
body {
    font-family: var(--font-body);
    min-height: 100vh;
    padding: 0;
    color: var(--ink);
    background-color: var(--cork-bg);
    background-image:
        /* Cork texture via noise gradients */
        repeating-radial-gradient(circle at 17% 32%, rgba(139, 90, 43, 0.06) 0px, transparent 1px),
        repeating-radial-gradient(circle at 63% 68%, rgba(90, 60, 30, 0.05) 0px, transparent 1px),
        repeating-radial-gradient(circle at 80% 10%, rgba(120, 80, 40, 0.04) 0px, transparent 2px),
        radial-gradient(ellipse at 20% 0%, rgba(212, 165, 116, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(168, 124, 85, 0.4) 0%, transparent 50%),
        linear-gradient(160deg, var(--cork-light) 0%, var(--cork-bg) 40%, var(--cork-dark) 100%);
    background-attachment: fixed;
}

/* -----------------------------------------------------------------
   TOP NAVIGATION - Wooden frame edge
   ----------------------------------------------------------------- */
.top-nav {
    background: linear-gradient(180deg, #5a3e28 0%, #6b4c32 100%);
    padding: 14px 40px;
    border-bottom: 3px solid #3d2a1a;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-home {
    color: #f0d9b5;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.15em;
    transition: color 0.3s;
}

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

.nav-divider {
    color: rgba(240, 217, 181, 0.4);
    margin: 0 10px;
}

.nav-current {
    color: rgba(240, 217, 181, 0.7);
    font-family: var(--font-display);
    font-size: 1.1em;
}

/* -----------------------------------------------------------------
   CONTAINER - The bulletin board surface
   ----------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 24px auto;
    padding: 32px 40px 60px;
    background:
        /* Subtle cork noise texture */
        repeating-conic-gradient(rgba(160, 110, 60, 0.03) 0% 25%, transparent 0% 50%) 0 0 / 4px 4px,
        linear-gradient(135deg, #c9a07a 0%, #c4956a 30%, #b8895e 60%, #c4956a 100%);
    border-radius: 4px;
    border: 12px solid #5a3e28;
    border-image: linear-gradient(180deg, #6b4c32, #4a3220, #6b4c32) 1;
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* -----------------------------------------------------------------
   HERO - Large pinned note card
   ----------------------------------------------------------------- */
.hero {
    text-align: center;
    padding: 48px 32px 40px;
    margin: 0 auto 40px;
    max-width: 680px;
    background: var(--paper);
    border-radius: 3px;
    box-shadow:
        2px 3px 12px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
    transform: rotate(-0.8deg);
    position: relative;
    animation: fade-in 0.8s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Red pushpin at top center */
.hero::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle at 40% 35%, #ef5350, #c62828);
    border-radius: 50%;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        inset 0 2px 3px rgba(255, 255, 255, 0.3);
    z-index: 2;
}

/* Pin needle shadow */
.hero::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: linear-gradient(180deg, #888, transparent);
    z-index: 1;
}

.hero-icon {
    font-size: 4em;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3.4em;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
    line-height: 1;
}

.hero .full-name {
    font-family: var(--font-body);
    font-size: 0.35em;
    display: block;
    margin-top: 10px;
    color: #7a6b5a;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.tagline {
    font-family: var(--font-display);
    font-size: 1.5em;
    color: #6a5a4a;
    margin-top: 4px;
}

/* Version badge as round sticker */
.version-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    width: 72px;
    height: 72px;
    background: radial-gradient(circle at 35% 30%, #ff7043, #e64a19);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1em;
    font-family: var(--font-display);
    box-shadow:
        0 2px 8px rgba(230, 74, 25, 0.35),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transform: rotate(8deg);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* -----------------------------------------------------------------
   INTRO SECTION - Lined note paper
   ----------------------------------------------------------------- */
.intro-section {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
    font-size: 1.05em;
    line-height: 1.8;
    color: #4a3f34;
    padding: 28px 32px;
    background: var(--paper-warm);
    background-image: repeating-linear-gradient(
        transparent,
        transparent 31px,
        #d6cfc4 31px,
        #d6cfc4 32px
    );
    border-radius: 3px;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.12);
    transform: rotate(0.4deg);
    position: relative;
    border-left: 3px solid #e88888;
}

/* -----------------------------------------------------------------
   SECTION TITLES - Handwritten with wavy underline
   ----------------------------------------------------------------- */
.section-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.6em;
    font-weight: 700;
    margin: 50px 0 32px;
    color: #4a3520;
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 6px;
    background-image: var(--wavy-underline);
    background-repeat: repeat-x;
    background-size: 40px 6px;
}

/* -----------------------------------------------------------------
   KEYBIND SECTION - Quick Controls on index cards
   ----------------------------------------------------------------- */
.keybind-section {
    max-width: 700px;
    margin: 0 auto 40px;
}

.keybind-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
}

.keybind-card {
    background: var(--sticky-yellow);
    border: none;
    border-radius: 2px;
    padding: 20px 28px;
    text-align: center;
    min-width: 150px;
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.12);
    transform: rotate(-1deg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.keybind-card:nth-child(2) {
    transform: rotate(1.2deg);
    background: var(--sticky-blue);
}

.keybind-card:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 3px 6px 16px rgba(0, 0, 0, 0.18);
}

/* Tape accent at top of keybind cards */
.keybind-card::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 50px;
    height: 14px;
    background: var(--tape);
    border-radius: 1px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.keybind-keys {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.keybind-action {
    font-size: 0.9em;
    color: #5a4a3a;
    font-family: var(--font-display);
    font-size: 1.1em;
}

/* -----------------------------------------------------------------
   NOTICE SECTION - Post-it notes with folded corner
   ----------------------------------------------------------------- */
.notice-section {
    max-width: 800px;
    margin: 0 auto 35px;
    display: grid;
    gap: 20px;
}

.notice-box {
    background: var(--sticky-green);
    border: none;
    border-radius: 0 0 0 0;
    padding: 24px 28px 24px 28px;
    position: relative;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.12);
    transform: rotate(-0.5deg);
}

.notice-box:nth-child(2) {
    background: var(--sticky-orange);
    transform: rotate(0.6deg);
}

/* Folded corner */
.notice-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 28px 28px 0;
    border-color: transparent var(--cork-bg) transparent transparent;
    z-index: 2;
}

.notice-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.06) 50%);
    z-index: 1;
}

.notice-box h3 {
    font-family: var(--font-display);
    color: #2e5a2e;
    margin-bottom: 10px;
    font-size: 1.45em;
}

.notice-box:nth-child(2) h3 {
    color: #8a5a20;
}

.notice-box p {
    color: #3a3a2a;
    line-height: 1.65;
    margin-bottom: 8px;
}

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

/* -----------------------------------------------------------------
   FEATURES GRID - Sticky notes / index cards
   ----------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.feature-card {
    padding: 28px 24px 24px;
    text-align: center;
    border-radius: 2px;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.12);
    border: none;
}

/* Different pastel colors per card */
.feature-card:nth-child(1) { background: var(--sticky-yellow); transform: rotate(-1.2deg); }
.feature-card:nth-child(2) { background: var(--sticky-pink); transform: rotate(0.8deg); }
.feature-card:nth-child(3) { background: var(--sticky-blue); transform: rotate(-0.6deg); }
.feature-card:nth-child(4) { background: var(--sticky-green); transform: rotate(1.4deg); }
.feature-card:nth-child(5) { background: var(--sticky-orange); transform: rotate(-1deg); }
.feature-card:nth-child(6) { background: var(--sticky-purple); transform: rotate(0.5deg); }
.feature-card:nth-child(7) { background: var(--sticky-yellow); transform: rotate(-0.8deg); }

/* Tape accent on sticky notes */
.feature-card::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(1deg);
    width: 48px;
    height: 14px;
    background: var(--tape);
    border-radius: 1px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
    transform: rotate(0deg) translateY(-6px) !important;
    box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.feature-icon {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-family: var(--font-display);
    color: var(--ink);
    margin-bottom: 8px;
    font-size: 1.4em;
}

.feature-card p {
    color: #4a4035;
    line-height: 1.55;
    font-size: 0.95em;
}

/* -----------------------------------------------------------------
   TASK CATEGORIES - Manila folder tabs
   ----------------------------------------------------------------- */
.museum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.museum-section {
    background: var(--manila);
    border-radius: 0 12px 3px 3px;
    padding: 24px;
    position: relative;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 18px;
}

/* Manila folder tab */
.museum-section::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 16px;
    width: 100px;
    height: 20px;
    border-radius: 6px 6px 0 0;
    z-index: 1;
}

.museum-section.gems::before {
    background: linear-gradient(180deg, #c68642, var(--manila));
}
.museum-section.culture::before {
    background: linear-gradient(180deg, #5b7f5b, #c2d4b0);
}
.museum-section.aquarium::before {
    background: linear-gradient(180deg, #6a8fb0, #b5cede);
}

/* Folder label styling */
.museum-section.gems { border-top: 3px solid #c68642; }
.museum-section.culture { border-top: 3px solid #5b7f5b; }
.museum-section.aquarium { border-top: 3px solid #6a8fb0; }

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
}

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

.section-header h3 {
    font-family: var(--font-display);
    color: var(--ink);
    font-size: 1.5em;
}

.section-desc {
    color: #5a4e42;
    font-size: 0.95em;
    margin-bottom: 12px;
    line-height: 1.5;
    font-style: italic;
}

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

.bundle-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #3a3228;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.1);
    font-size: 0.95em;
}

.bundle-list li:last-child {
    border-bottom: none;
}

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

/* -----------------------------------------------------------------
   PRIORITY LEVELS - Colored pushpins
   ----------------------------------------------------------------- */
.rarity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 50px;
}

.rarity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--paper);
    padding: 16px 20px;
    border-radius: 3px;
    box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Pushpin-style dots */
.rarity-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow:
        inset 0 -2px 3px rgba(0, 0, 0, 0.2),
        inset 0 2px 3px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Pin needle */
.rarity-dot::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: #888;
    border-radius: 0 0 1px 1px;
}

.rarity-dot.common { background: radial-gradient(circle at 35% 30%, #b0beb0, #7a8f7a); }
.rarity-dot.uncommon { background: radial-gradient(circle at 35% 30%, #7dcc7d, #4a8f4a); }
.rarity-dot.epic { background: radial-gradient(circle at 35% 30%, #f0c040, #c89a20); }
.rarity-dot.legendary { background: radial-gradient(circle at 35% 30%, #ef5350, #c62828); }

.rarity-label {
    color: #3a3228;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.3em;
}

/* -----------------------------------------------------------------
   USAGE STEPS - Checklist on lined paper
   ----------------------------------------------------------------- */
.usage-steps {
    max-width: 720px;
    margin: 0 auto 50px;
    background: var(--paper);
    padding: 32px 32px 24px;
    border-radius: 3px;
    box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.12);
    background-image:
        /* Ruled lines */
        repeating-linear-gradient(
            transparent,
            transparent 35px,
            #d6cfc4 35px,
            #d6cfc4 36px
        );
    /* Red margin line */
    border-left: 3px solid #e88888;
    position: relative;
}

.step {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: background 0.2s ease;
    position: relative;
}

.step:hover {
    background: rgba(255, 255, 200, 0.25);
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: radial-gradient(circle at 35% 30%, var(--pin-red), #b71c1c);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1em;
    font-family: var(--font-display);
    flex-shrink: 0;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        inset 0 2px 3px rgba(255, 255, 255, 0.2);
}

.step-content h4 {
    font-family: var(--font-display);
    color: var(--ink);
    margin-bottom: 4px;
    font-size: 1.3em;
}

.step-content p {
    color: #4a4035;
    line-height: 1.55;
}

/* -----------------------------------------------------------------
   INSTALLATION STEPS - Pinned cards
   ----------------------------------------------------------------- */
.install-steps {
    max-width: 720px;
    margin: 0 auto 50px;
    display: grid;
    gap: 18px;
}

.install-step {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    background: var(--paper);
    border-radius: 3px;
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.12);
    border: none;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.install-step:nth-child(1) { transform: rotate(-0.4deg); }
.install-step:nth-child(2) { transform: rotate(0.3deg); }
.install-step:nth-child(3) { transform: rotate(-0.2deg); }
.install-step:nth-child(4) { transform: rotate(0.5deg); }

.install-step:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow: 3px 6px 16px rgba(0, 0, 0, 0.16);
}

/* Pin accent on install steps */
.install-step::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 40% 35%, var(--pin-blue), #2a5a8a);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

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

.step-info h4 {
    font-family: var(--font-display);
    color: var(--ink);
    margin-bottom: 4px;
    font-size: 1.3em;
}

.step-info p {
    color: #4a4035;
    line-height: 1.55;
}

/* -----------------------------------------------------------------
   KBD & CODE
   ----------------------------------------------------------------- */
kbd {
    background: #f5ede0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 2px 7px;
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 0.88em;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 7px;
    border-radius: 3px;
    font-family: 'Courier New', 'Lucida Console', monospace;
    font-size: 0.88em;
    color: #6a4a2a;
}

/* -----------------------------------------------------------------
   CONFIG TABLE - Clipboard with paper
   ----------------------------------------------------------------- */
.config-section {
    max-width: 760px;
    margin: 0 auto;
}

.config-table {
    max-width: 720px;
    margin: 0 auto 20px;
    overflow-x: auto;
    background: var(--paper);
    border-radius: 3px;
    padding: 6px;
    box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.12);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Clipboard clip at top */
.config-table::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: linear-gradient(180deg, #8a8a8a, #6a6a6a);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.15);
}

/* Clipboard clip hole */
.config-table::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 8px;
    background: var(--cork-bg);
    border-radius: 0 0 4px 4px;
    z-index: 1;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

th, td {
    padding: 13px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

th {
    background: rgba(139, 90, 43, 0.12);
    color: var(--ink);
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.15em;
}

td {
    color: #4a4035;
}

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

.config-note {
    text-align: center;
    color: #6a5a4a;
    font-size: 0.92em;
    margin-bottom: 40px;
    margin-top: 8px;
}

/* -----------------------------------------------------------------
   RELATED MODS - Pinned business cards
   ----------------------------------------------------------------- */
.related-mods {
    max-width: 700px;
    margin: 40px auto;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 3px;
    text-decoration: none;
    background: var(--paper);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s, box-shadow 0.25s;
    color: inherit;
    position: relative;
}

.related-card:nth-child(1) { transform: rotate(-0.6deg); }
.related-card:nth-child(2) { transform: rotate(0.4deg); }
.related-card:nth-child(3) { transform: rotate(-0.3deg); }

/* Pin on business cards */
.related-card::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.related-card:nth-child(1)::before { background: radial-gradient(circle at 40% 35%, var(--pin-red), #b71c1c); }
.related-card:nth-child(2)::before { background: radial-gradient(circle at 40% 35%, var(--pin-green), #2e6a2e); }
.related-card:nth-child(3)::before { background: radial-gradient(circle at 40% 35%, var(--pin-yellow), #a08010); }

.related-card:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 3px 6px 16px rgba(0, 0, 0, 0.16);
}

.related-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.related-info h4 {
    margin-bottom: 4px;
    font-size: 1.05em;
    font-family: var(--font-display);
    font-size: 1.25em;
    color: var(--ink);
}

.related-info p {
    font-size: 0.88em;
    color: #6a5a4a;
    margin: 0;
    line-height: 1.4;
}

/* -----------------------------------------------------------------
   FOOTER - Bottom edge of bulletin board
   ----------------------------------------------------------------- */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 28px 20px;
    position: relative;
    background: linear-gradient(0deg, rgba(90, 62, 40, 0.15), transparent);
    border-radius: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        rgba(90, 62, 40, 0.3) 0px,
        rgba(90, 62, 40, 0.3) 8px,
        transparent 8px,
        transparent 14px
    );
}

.footer p {
    color: #5a4a3a;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 1.15em;
}

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

.footer-links a {
    color: #6a4a2a;
    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: 2px;
    background: var(--pin-red);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.footer-links a:hover {
    color: var(--pin-red);
}

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

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

/* -----------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------- */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px 40px;
        margin: 12px 8px;
        border-width: 8px;
    }

    .hero {
        padding: 40px 20px 32px;
        transform: rotate(0deg);
    }

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

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

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

    .section-title {
        font-size: 2.1em;
    }

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

    .step-number {
        margin: 0 auto 10px;
    }

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

    .install-step:nth-child(n) {
        transform: rotate(0deg);
    }

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

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

    .feature-card:nth-child(n) {
        transform: rotate(0deg);
    }

    .keybind-card,
    .keybind-card:nth-child(2) {
        transform: rotate(0deg);
    }

    .notice-box,
    .notice-box:nth-child(2) {
        transform: rotate(0deg);
    }

    .related-card:nth-child(n) {
        transform: rotate(0deg);
    }

    .intro-section {
        transform: rotate(0deg);
    }

    .usage-steps {
        padding: 24px 20px 18px;
    }
}

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

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

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

    .version-badge {
        width: 60px;
        height: 60px;
        font-size: 0.9em;
    }

    .keybind-grid {
        flex-direction: column;
        align-items: center;
    }

    .keybind-card {
        min-width: 0;
        width: 100%;
    }
}

/* =================================================================
   DARK MODE - Chalkboard Theme
   ================================================================= */
[data-theme="dark"] body {
    background-color: #1a1a1a;
    background-image:
        /* Chalk dust noise */
        repeating-radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.01) 0px, transparent 1px),
        repeating-radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.008) 0px, transparent 2px),
        repeating-radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.006) 0px, transparent 1px),
        linear-gradient(160deg, #1e1e1e 0%, #1a1a1a 40%, #161616 100%);
    background-attachment: fixed;
    color: #e8e4df;
}

/* Dark nav - blackboard frame */
[data-theme="dark"] .top-nav {
    background: linear-gradient(180deg, #111, #1a1a1a);
    border-bottom-color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .nav-home { color: #90caf9; }
[data-theme="dark"] .nav-home:hover { color: #bbdefb; }
[data-theme="dark"] .nav-divider { color: rgba(255, 255, 255, 0.2); }
[data-theme="dark"] .nav-current { color: rgba(255, 255, 255, 0.5); }

/* Dark container - chalkboard surface */
[data-theme="dark"] .container {
    background:
        repeating-conic-gradient(rgba(255, 255, 255, 0.008) 0% 25%, transparent 0% 50%) 0 0 / 3px 3px,
        linear-gradient(135deg, #1e2e1e 0%, #1a2a1a 30%, #162016 60%, #1a2a1a 100%);
    border-color: #333;
    border-image: linear-gradient(180deg, #2a2a2a, #1a1a1a, #2a2a2a) 1;
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Dark hero - chalk on board */
[data-theme="dark"] .hero {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(circle at 40% 35%, #ef5350, #c62828);
}

[data-theme="dark"] .hero h1 { color: #fff; }
[data-theme="dark"] .hero .full-name { color: #90caf9; }
[data-theme="dark"] .tagline { color: rgba(255, 255, 255, 0.6); }

[data-theme="dark"] .version-badge {
    background: radial-gradient(circle at 35% 30%, #ef5350, #c62828);
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.4);
}

/* Dark intro */
[data-theme="dark"] .intro-section {
    background: rgba(30, 30, 30, 0.7);
    background-image: repeating-linear-gradient(
        transparent,
        transparent 31px,
        rgba(255, 255, 255, 0.05) 31px,
        rgba(255, 255, 255, 0.05) 32px
    );
    color: rgba(255, 255, 255, 0.75);
    border-left-color: #ef5350;
}

/* Dark section titles - chalk style */
[data-theme="dark"] .section-title {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .section-title::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6'%3E%3Cpath d='M0 3 Q5 0 10 3 T20 3 T30 3 T40 3' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* Dark keybind cards */
[data-theme="dark"] .keybind-card {
    background: rgba(255, 249, 196, 0.1);
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .keybind-card:nth-child(2) {
    background: rgba(227, 242, 253, 0.1);
}

[data-theme="dark"] .keybind-card::before {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .keybind-action { color: rgba(255, 255, 255, 0.7); }

/* Dark notice boxes */
[data-theme="dark"] .notice-box {
    background: rgba(76, 175, 80, 0.08);
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.15);
}

[data-theme="dark"] .notice-box:nth-child(2) {
    background: rgba(255, 152, 0, 0.08);
    border-color: rgba(255, 152, 0, 0.15);
}

[data-theme="dark"] .notice-box::before {
    border-right-color: #1a2a1a;
}

[data-theme="dark"] .notice-box h3 { color: #81c784; }
[data-theme="dark"] .notice-box:nth-child(2) h3 { color: #ffb74d; }
[data-theme="dark"] .notice-box p { color: rgba(255, 255, 255, 0.75); }

/* Dark feature cards - chalk note colors */
[data-theme="dark"] .feature-card {
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .feature-card:nth-child(1) { background: rgba(255, 235, 59, 0.08); }
[data-theme="dark"] .feature-card:nth-child(2) { background: rgba(244, 143, 177, 0.08); }
[data-theme="dark"] .feature-card:nth-child(3) { background: rgba(100, 181, 246, 0.08); }
[data-theme="dark"] .feature-card:nth-child(4) { background: rgba(129, 199, 132, 0.08); }
[data-theme="dark"] .feature-card:nth-child(5) { background: rgba(255, 183, 77, 0.08); }
[data-theme="dark"] .feature-card:nth-child(6) { background: rgba(206, 147, 216, 0.08); }
[data-theme="dark"] .feature-card:nth-child(7) { background: rgba(255, 235, 59, 0.08); }

[data-theme="dark"] .feature-card::before {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .feature-card h3 { color: #fff; }
[data-theme="dark"] .feature-card p { color: rgba(255, 255, 255, 0.7); }

/* Dark museum/category sections */
[data-theme="dark"] .museum-section {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .museum-section.gems { border-top-color: #ffb74d; }
[data-theme="dark"] .museum-section.culture { border-top-color: #81c784; }
[data-theme="dark"] .museum-section.aquarium { border-top-color: #64b5f6; }

[data-theme="dark"] .museum-section.gems::before { background: linear-gradient(180deg, #ffb74d, rgba(30, 30, 30, 0.8)); }
[data-theme="dark"] .museum-section.culture::before { background: linear-gradient(180deg, #81c784, rgba(30, 30, 30, 0.8)); }
[data-theme="dark"] .museum-section.aquarium::before { background: linear-gradient(180deg, #64b5f6, rgba(30, 30, 30, 0.8)); }

[data-theme="dark"] .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .section-header h3 { color: #fff; }
[data-theme="dark"] .section-desc { color: rgba(255, 255, 255, 0.55); }

[data-theme="dark"] .bundle-list li {
    color: rgba(255, 255, 255, 0.75);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Dark priority dots */
[data-theme="dark"] .rarity-item {
    background: rgba(30, 30, 30, 0.7);
    box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

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

/* Dark usage steps - chalkboard lined */
[data-theme="dark"] .usage-steps {
    background: rgba(30, 30, 30, 0.7);
    background-image: repeating-linear-gradient(
        transparent,
        transparent 35px,
        rgba(255, 255, 255, 0.04) 35px,
        rgba(255, 255, 255, 0.04) 36px
    );
    border-left-color: #ef5350;
    box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .step:hover {
    background: rgba(255, 255, 200, 0.04);
}

[data-theme="dark"] .step-content h4,
[data-theme="dark"] .step-info h4 { color: #fff; }
[data-theme="dark"] .step-content p,
[data-theme="dark"] .step-info p { color: rgba(255, 255, 255, 0.7); }

/* Dark install steps */
[data-theme="dark"] .install-step {
    background: rgba(30, 30, 30, 0.7);
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Dark kbd and code */
[data-theme="dark"] kbd {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] code {
    background: rgba(255, 255, 255, 0.08);
    color: #ffb74d;
}

/* Dark config table */
[data-theme="dark"] .config-table {
    background: rgba(30, 30, 30, 0.7);
    box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .config-table::before {
    background: linear-gradient(180deg, #555, #3a3a3a);
}

[data-theme="dark"] .config-table::after {
    background: #1a2a1a;
}

[data-theme="dark"] th {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

[data-theme="dark"] td {
    color: rgba(255, 255, 255, 0.75);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .config-note { color: rgba(255, 255, 255, 0.5); }

/* Dark related cards */
[data-theme="dark"] .related-card {
    background: rgba(30, 30, 30, 0.7);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .related-card:hover {
    box-shadow: 3px 6px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .related-info h4 { color: #fff; }
[data-theme="dark"] .related-info p { color: rgba(255, 255, 255, 0.55); }

/* Dark footer */
[data-theme="dark"] .footer {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), transparent);
}

[data-theme="dark"] .footer::before {
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0px,
        rgba(255, 255, 255, 0.1) 8px,
        transparent 8px,
        transparent 14px
    );
}

[data-theme="dark"] .footer p { color: rgba(255, 255, 255, 0.5); }

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

[data-theme="dark"] .footer-links a::after {
    background: #90caf9;
}

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