    /* ==========================================================================
       DESIGN SYSTEM & ANTISLOP R-01..R-40 PURPOSE DOCUMENTATION
       Design Read: Kawaii Cottagecore Scrapbook + Cozy Farming Diary for PS1 HM:BTN
       & Jaksel Mod Players | Dial: ENERGY 2 / RHYTHM 3 / MOTION 2
       - Palette (R-01, R-25, R-29): Warm Cream (#FFF8E9) & Soft White (#FFFEFA)
         paper surfaces paired with Espresso Brown ink (#59483B, >=8.2:1 AA),
         Pastel/Sage Green (#B9D8A5/#8FAF83 + #355E3B CTA), Strawberry Berry
         accent (#F5B5C2/#9E334E, >=6.9:1 on white), plus semantic season tints.
       - Typography (R-06): Baloo 2 headings (cozy storybook character),
         Nunito body (readable dense tables), Press Start 2P tiny pixel tags only.
       - Radius Hierarchy (R-11): Inputs/tables 10px, cards 18px, pixel tags 6px,
         action CTA buttons 999px pill.
       ========================================================================== */
    [hidden] { display: none !important; }
    :root {
      --cream: #FFF8E9;
      --soft-white: #FFFEFA;
      --paper-alt: #FAF0DC;
      --pastel-green: #B9D8A5;
      --sage-green: #8FAF83;
      --forest-cta: #355E3B;
      --strawberry: #F5B5C2;
      --berry-accent: #9E334E;
      --berry-soft: #FDE7EC;
      --peach: #FFD5B5;
      --butter: #F9E6A1;
      --sky: #B9DDF2;
      --brown: #59483B;
      --brown-deep: #3E3026;
      --brown-muted: #6C5849;
      --border-warm: #917761;
      --border-soft: #D9C4AA;
      --ochre-ink: #7A5610;
      --danger-ink: #8E2334;
      --danger-bg: #FFE3E6;

      --bg-page: var(--cream);
      --bg-surface: var(--soft-white);
      --bg-surface-2: var(--paper-alt);
      --ink-main: var(--brown);
      --ink-strong: var(--brown-deep);
      --ink-muted: var(--brown-muted);
      --accent-primary: var(--berry-accent);
      --accent-primary-ink: #FFFFFF;
      --accent-secondary: var(--forest-cta);
      --accent-secondary-ink: #FFFFFF;

      --shadow-card: 0 4px 0 rgba(89, 72, 59, 0.14), 0 10px 22px rgba(89, 72, 59, 0.08);
      --shadow-lift: 0 6px 0 rgba(89, 72, 59, 0.18), 0 14px 26px rgba(89, 72, 59, 0.12);
      --focus-ring: 3px solid #9E334E;

      --font-heading: 'Baloo 2', 'Segoe UI Rounded', 'Trebuchet MS', system-ui, sans-serif;
      --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
      --font-pixel: 'Press Start 2P', 'Courier New', monospace;
    }

    html[data-theme="dark"] {
      --bg-page: #231B16;
      --bg-surface: #2F251E;
      --bg-surface-2: #3A2E26;
      --ink-main: #FBF2E3;
      --ink-strong: #FFFDF8;
      --ink-muted: #DECBB7;
      --border-warm: #B89D83;
      --border-soft: #594638;
      --accent-primary: #F5B5C2;
      --accent-primary-ink: #231B16;
      --accent-secondary: #B9D8A5;
      --accent-secondary-ink: #231B16;
      --berry-soft: #4F2D36;
      --ochre-ink: #F9E6A1;
      --danger-ink: #FFB8C0;
      --danger-bg: #54252C;
      --shadow-card: 0 4px 0 rgba(0, 0, 0, 0.45), 0 10px 20px rgba(0, 0, 0, 0.35);
      --shadow-lift: 0 6px 0 rgba(0, 0, 0, 0.55), 0 14px 26px rgba(0, 0, 0, 0.42);
      --focus-ring: 3px solid #F9E6A1;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html {
      scroll-behavior: smooth;
      scroll-padding-top: 76px;
      font-size: 16px;
    }
    body {
      margin: 0;
      font-family: var(--font-body);
      background-color: var(--bg-page);
      color: var(--ink-main);
      line-height: 1.6;
      overflow-x: clip;
    }

    /* R-39 Base Interactive Cursor & Accessibility Rule */
    a[href], button, summary, select, label[for], input[type="checkbox"], input[type="radio"], [role="button"], [role="tab"] {
      cursor: pointer;
    }
    button:disabled, input:disabled, select:disabled {
      cursor: not-allowed;
      opacity: 0.58;
    }
    :focus-visible {
      outline: var(--focus-ring);
      outline-offset: 2px;
    }
    img { max-width: 100%; height: auto; display: block; }
    h1, h2, h3, h4 {
      font-family: var(--font-heading);
      color: var(--ink-strong);
      margin: 0 0 0.5rem 0;
      line-height: 1.2;
    }
    h1 { font-size: clamp(1.95rem, 4.4vw, 3.15rem); font-weight: 800; }
    h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 800; }
    h3 { font-size: clamp(1.12rem, 2vw, 1.38rem); font-weight: 700; }
    p { margin: 0 0 0.85rem 0; }
    a { color: var(--accent-primary); font-weight: 700; }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    .skip-link {
      position: fixed;
      top: -80px;
      left: 16px;
      z-index: 9999;
      background: var(--accent-primary);
      color: var(--accent-primary-ink);
      padding: 10px 18px;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 800;
    }
    .skip-link:focus { top: 12px; }

    .container {
      width: 100%;
      max-width: none;
      margin: 0;
      padding: 0 16px;
    }
    @media (min-width: 680px) { .container { padding: 0 clamp(24px, 4vw, 64px); } }

    .pixel-tag {
      font-family: var(--font-pixel);
      font-size: 0.62rem;
      letter-spacing: 0.04em;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 6px;
      background: var(--butter);
      color: #3E3026;
      border: 2px solid var(--border-warm);
      line-height: 1.35;
    }

    /* Buttons (R-11 Pill Actions vs Rectangular Inputs/Cards) */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 44px;
      padding: 10px 20px;
      border-radius: 999px;
      font-family: var(--font-heading);
      font-weight: 700;
      font-size: 1rem;
      text-decoration: none;
      border: 2px solid transparent;
      transition: transform 0.16s ease, box-shadow 0.16s ease;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn:active { transform: translateY(1px); }
    .btn-primary {
      background: var(--accent-primary);
      color: var(--accent-primary-ink);
      border-color: var(--ink-strong);
      box-shadow: 0 3px 0 var(--ink-strong);
    }
    .btn-secondary {
      background: var(--pastel-green);
      color: #2B2018;
      border-color: var(--ink-strong);
      box-shadow: 0 3px 0 var(--ink-strong);
    }
    .btn-outline {
      background: var(--bg-surface);
      color: var(--ink-strong);
      border: 2px solid var(--border-warm);
    }
    .btn-sm {
      min-height: 44px;
      padding: 6px 14px;
      font-size: 0.9rem;
    }
    .icon-btn {
      min-width: 44px;
      min-height: 44px;
      padding: 8px 12px;
      border-radius: 12px;
      border: 2px solid var(--border-warm);
      background: var(--bg-surface);
      color: var(--ink-strong);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-family: var(--font-body);
      font-weight: 700;
      font-size: 0.92rem;
    }
    .icon-btn:hover { background: var(--butter); color: #3E3026; }
    .icon-btn[aria-pressed="true"] {
      background: var(--strawberry);
      color: #3E3026;
      border-color: var(--berry-accent);
    }

    /* ==========================================================================
       STICKY NAVBAR (Compact single row + accessible dropdowns + mobile drawer)
       ========================================================================== */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 900;
      background: var(--bg-surface);
      border-bottom: 2px solid var(--border-warm);
    }
    .nav-shell {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      min-height: 58px;
    }
    .brand-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      color: var(--ink-strong);
      min-height: 44px;
      min-width: 0;
      flex: 1 1 auto;
      padding: 4px;
      border-radius: 10px;
    }
    .brand-link > span:last-child {
      min-width: 0;
      overflow: hidden;
    }
    .brand-logo-box {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: var(--pastel-green);
      border: 2px solid var(--border-warm);
      display: grid;
      place-items: center;
      flex-shrink: 0;
    }
    .brand-title {
      font-family: var(--font-heading);
      font-weight: 800;
      font-size: clamp(0.86rem, 3.3vw, 1rem);
      line-height: 1.1;
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .brand-sub {
      font-size: 0.72rem;
      color: var(--ink-muted);
      font-weight: 700;
      display: none;
    }
    .nav-search-label { display: none; }
    @media (min-width: 580px) {
      .brand-sub, .nav-search-label { display: inline-block; }
      .brand-sub { display: block; }
      .brand-link { flex: 0 1 auto; }
      .nav-shell { gap: 10px; min-height: 62px; }
    }

    .desktop-nav {
      display: none;
      align-items: center;
      gap: 4px;
    }
    @media (min-width: 1060px) { .desktop-nav { display: flex; } }

    .nav-item { position: relative; }
    .nav-link, .nav-dropdown-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      min-height: 44px;
      padding: 8px 11px;
      border-radius: 10px;
      border: 0;
      background: transparent;
      color: var(--ink-strong);
      font-family: var(--font-body);
      font-size: 0.92rem;
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
    }
    .nav-link:hover, .nav-dropdown-btn:hover, .nav-link.is-active {
      background: var(--pastel-green);
      color: #2B2018;
    }
    .nav-dropdown-panel {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      min-width: 245px;
      padding: 8px;
      border-radius: 14px;
      background: var(--bg-surface);
      border: 2px solid var(--border-warm);
      box-shadow: var(--shadow-lift);
      display: none;
      z-index: 950;
    }
    .nav-item.is-open .nav-dropdown-panel { display: grid; gap: 4px; }
    .dropdown-link {
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 44px;
      padding: 8px 12px;
      border-radius: 10px;
      text-decoration: none;
      color: var(--ink-strong);
      font-weight: 700;
      font-size: 0.9rem;
    }
    .dropdown-link:hover, .dropdown-link.is-active {
      background: var(--butter);
      color: #3E3026;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .mobile-menu-btn { display: inline-flex; }
    @media (min-width: 1060px) { .mobile-menu-btn { display: none; } }
    @media (max-width: 420px) {
      .container { padding: 0 12px; }
      .nav-actions { gap: 4px; }
      .icon-btn { padding: 6px 8px; gap: 4px; font-size: 0.82rem; }
      .brand-link { gap: 6px; padding: 2px; }
      .brand-logo-box { width: 32px; height: 32px; }
      .brand-title { font-size: 0.8rem; }
    }

    .mobile-drawer {
      display: none;
      border-top: 2px solid var(--border-soft);
      background: var(--bg-surface);
      padding: 14px 16px 20px;
      max-height: 75vh;
      overflow-y: auto;
    }
    .mobile-drawer.is-open { display: block; }
    .mobile-nav-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
      gap: 8px;
    }
    .mobile-nav-grid a, .mobile-nav-grid button {
      display: flex;
      align-items: center;
      gap: 6px;
      min-height: 44px;
      padding: 8px 10px;
      border-radius: 10px;
      background: var(--bg-surface-2);
      border: 1px solid var(--border-warm);
      color: var(--ink-strong);
      text-decoration: none;
      font-size: 0.88rem;
      font-weight: 700;
    }

    /* ==========================================================================
       SECTIONS & DECORATIVE COTTONCOTE DIVIDERS (Varied RHYTHM 3)
       ========================================================================== */
    .page-section {
      padding: clamp(1.3rem, 2.6vw, 2.1rem) 0;
    }
    .section-tint { background: var(--bg-surface-2); }
    .section-header {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 0.9rem;
    }
    .section-kicker {
      display: inline-block;
      font-weight: 800;
      font-size: 0.85rem;
      color: var(--accent-primary);
      margin-bottom: 4px;
    }
    .section-kicker::before { content: "✨ "; }
    .section-sub {
      color: var(--ink-muted);
      max-width: 66ch;
      margin: 0;
    }
    .floral-divider {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 2px 0;
      font-size: 1.15rem;
      letter-spacing: 2px;
    }
    .floral-divider::before, .floral-divider::after {
      content: "";
      flex: 1;
      height: 0;
      border-bottom: 2px dashed var(--border-warm);
    }

    /* Card Primitives (Diary paper + taped corner / dashed stitch feel) */
    .diary-card {
      background: var(--bg-surface);
      border: 2px solid var(--border-warm);
      border-radius: 18px;
      padding: 18px;
      box-shadow: var(--shadow-card);
      transition: transform 0.18s ease, box-shadow 0.18s ease;
    }
    @media (min-width: 680px) { .diary-card { padding: 22px; } }
    .diary-card.is-interactive:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-lift);
    }

    /* ==========================================================================
       HERO SECTION (Asymmetric Mineral Town Scrapbook)
       ========================================================================== */
    .hero-section {
      background: linear-gradient(180deg, #E8F6FF 0%, var(--bg-page) 82%);
      padding: clamp(2rem, 5vw, 3.8rem) 0;
      border-bottom: 2px solid var(--border-warm);
      position: relative;
    }
    html[data-theme="dark"] .hero-section {
      background: linear-gradient(180deg, #1A232D 0%, var(--bg-page) 85%);
    }
    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 24px;
      align-items: start;
    }
    .hero-grid > *, .split-2 > *, .grid-cards > *, .grid-cards-4 > *, .quick-grid > *, .diary-card {
      min-width: 0;
    }
    @media (min-width: 900px) {
      .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 36px; }
    }
    .hero-sticker-row {
      margin: 18px 0 0;
      font-size: 1.55rem;
      letter-spacing: 6px;
      line-height: 1.6;
      padding: 10px 14px;
      background: var(--bg-surface-2);
      border: 2px solid var(--border-soft);
      border-radius: 14px;
    }
    .hero-extras {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 16px;
      margin-top: 28px;
    }
    @media (min-width: 900px) {
      .hero-extras { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
    }
    .preview-strip img {
      width: 100%;
      height: auto;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      border-radius: 10px;
      border: 1px solid var(--border-soft);
      display: block;
    }
    .tagline-box {
      display: inline-block;
      background: var(--butter);
      color: #3E3026;
      border: 2px solid var(--border-warm);
      border-radius: 12px;
      padding: 8px 14px;
      font-weight: 800;
      margin: 8px 0 12px;
      font-size: 1rem;
    }
    .hero-tagline-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin: 6px 0 14px;
    }
    .hero-cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin: 16px 0 14px;
    }
    .hero-microquote {
      font-style: italic;
      color: var(--ink-muted);
      font-weight: 700;
      font-size: 0.94rem;
    }
    .hero-visual-stack {
      display: grid;
      gap: 14px;
    }
    .hero-video-frame {
      background: var(--bg-surface);
      border: 2px solid var(--border-warm);
      border-radius: 20px;
      padding: 10px;
      box-shadow: var(--shadow-card);
      overflow: hidden;
    }
    .hero-video-frame video {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 16 / 9;
      border-radius: 12px;
      background: #231B16;
    }
    .hero-video-caption {
      margin: 8px 2px 0;
      font-size: 0.78rem;
      color: var(--ink-muted);
    }
    .screenshot-slot {
      background: var(--bg-surface);
      border: 2px dashed var(--border-warm);
      border-radius: 16px;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }
    .sticker-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 11px;
      border-radius: 10px;
      background: var(--strawberry);
      color: #3E3026;
      border: 2px solid var(--border-warm);
      font-weight: 800;
      font-size: 0.85rem;
      transform: rotate(-1.5deg);
      transition: transform 0.2s ease;
    }
    .sticker-badge:hover { transform: rotate(2deg) scale(1.03); }

    /* ==========================================================================
       FORMS, SEARCH, FILTERS, CHIPS, TABLES, PROGRESS BARS
       ========================================================================== */
    .filter-bar {
      background: var(--bg-surface);
      border: 2px solid var(--border-warm);
      border-radius: 16px;
      padding: 14px;
      margin-bottom: 18px;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: flex-end;
    }
    .field-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 150px;
      flex: 1 1 170px;
    }
    .field-group label {
      font-size: 0.84rem;
      font-weight: 800;
      color: var(--ink-strong);
    }
    .input-ctrl, .select-ctrl, .textarea-ctrl {
      min-height: 44px;
      padding: 9px 12px;
      border-radius: 10px;
      border: 2px solid var(--border-warm);
      background: var(--bg-page);
      color: var(--ink-strong);
      font-family: var(--font-body);
      font-size: 0.95rem;
      font-weight: 600;
      width: 100%;
    }
    .textarea-ctrl { min-height: 82px; resize: vertical; }

    .chip-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 14px;
    }
    .chip-btn {
      min-height: 44px;
      padding: 7px 14px;
      border-radius: 12px;
      border: 2px solid var(--border-warm);
      background: var(--bg-surface);
      color: var(--ink-strong);
      font-family: var(--font-body);
      font-weight: 700;
      font-size: 0.88rem;
      transition: transform 0.14s ease, background-color 0.14s ease;
    }
    .chip-btn:hover { background: var(--butter); color: #3E3026; }
    .chip-btn[aria-pressed="true"], .chip-btn.is-active {
      background: var(--forest-cta);
      color: #FFFFFF;
      border-color: var(--ink-strong);
    }

    /* Status & Season Semantic Tags */
    .tag {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 9px;
      border-radius: 8px;
      font-size: 0.78rem;
      font-weight: 800;
      border: 1px solid var(--border-warm);
      color: #3E3026;
      background: var(--paper-alt);
    }
    html[data-theme="dark"] .tag-neutral { background: #46372C; color: #FBF2E3; }
    .tag-spring { background: var(--pastel-green); color: #2B2018; }
    .tag-summer { background: var(--peach); color: #3E3026; }
    .tag-fall { background: var(--butter); color: #3E3026; }
    .tag-winter { background: var(--sky); color: #2B2018; }
    .tag-love { background: var(--strawberry); color: #3E3026; }
    .tag-verified { background: var(--pastel-green); color: #24381E; }
    .tag-unverified { background: var(--butter); color: #4A3408; }
    .tag-missable { background: var(--danger-bg); color: var(--danger-ink); }

    /* Responsive Grids (3 states: Mobile 1 col -> Tablet 2 cols -> Desktop 3-4 cols) */
    .grid-cards {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 14px;
    }
    @media (min-width: 600px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (min-width: 980px) { .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
    .grid-cards-4 {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 12px;
    }
    @media (min-width: 560px) { .grid-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (min-width: 900px) { .grid-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

    .split-2 {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 20px;
    }
    @media (min-width: 880px) { .split-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

    /* Tables */
    .table-wrap {
      width: 100%;
      overflow-x: auto;
      background: var(--bg-surface);
      border: 2px solid var(--border-warm);
      border-radius: 16px;
      box-shadow: var(--shadow-card);
    }
    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 560px;
      font-size: 0.92rem;
    }
    th, td {
      padding: 11px 13px;
      text-align: left;
      border-bottom: 1px solid var(--border-soft);
      vertical-align: top;
    }
    thead th {
      background: var(--pastel-green);
      color: #2B2018;
      font-family: var(--font-heading);
      font-weight: 800;
      position: sticky;
      top: 0;
    }
    tbody tr:hover { background: var(--bg-surface-2); }

    /* Progress Bars */
    .progress-track {
      width: 100%;
      height: 14px;
      border-radius: 999px;
      background: var(--bg-surface-2);
      border: 1px solid var(--border-warm);
      overflow: hidden;
    }
    .progress-fill {
      height: 100%;
      background: var(--forest-cta);
      border-radius: 999px;
      transition: width 0.25s ease;
    }
    html[data-theme="dark"] .progress-fill { background: var(--pastel-green); }

    /* Quick Nav Tiles (Distinct varying visual sizes/emphasis) */
    .quick-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
      gap: 12px;
    }
    .quick-tile {
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      gap: 6px;
      padding: 18px;
      border-radius: 18px;
      background: var(--bg-surface-2);
      border: 2px solid var(--border-warm);
      text-decoration: none;
      color: var(--ink-strong);
      min-height: 118px;
      box-shadow: var(--shadow-card);
      transition: transform 0.16s ease, box-shadow 0.16s ease;
    }
    .quick-grid .quick-tile:nth-child(6n + 1) { background: var(--berry-soft); }
    .quick-grid .quick-tile:nth-child(6n + 2) { background: var(--sky); color: #2B2018; }
    .quick-grid .quick-tile:nth-child(6n + 3) { background: var(--pastel-green); color: #2B2018; }
    .quick-grid .quick-tile:nth-child(6n + 4) { background: var(--butter); color: #3E3026; }
    .quick-grid .quick-tile:nth-child(6n + 5) { background: var(--peach); color: #3E3026; }
    .quick-grid .quick-tile:nth-child(6n + 6) { background: var(--strawberry); color: #3E3026; }
    .quick-tile:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-lift);
    }
    .quick-tile::before {
      content: attr(data-icon);
      font-size: 1.7rem;
      line-height: 1;
      margin-bottom: 2px;
    }
    .quick-tile-title {
      font-family: var(--font-heading);
      font-weight: 800;
      font-size: 1rem;
    }
    .quick-tile-desc {
      font-size: 0.82rem;
      color: inherit;
      opacity: 0.9;
      font-weight: 600;
    }

    /* Calendar Grid */
    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 5px;
    }
    @media (min-width: 720px) { .calendar-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; } }
    .cal-cell {
      min-height: 70px;
      padding: 5px;
      border-radius: 10px;
      border: 2px solid var(--border-warm);
      background: var(--bg-surface);
      display: flex;
      flex-direction: column;
      gap: 3px;
      font-size: 0.72rem;
      text-align: left;
      color: var(--ink-strong);
      overflow-wrap: anywhere;
      min-width: 0;
    }
    .cal-cell.is-festival { background: var(--berry-soft); border-color: var(--berry-accent); }
    .cal-cell.is-birthday { background: var(--butter); color: #3E3026; }
    .cal-cell.is-selected { outline: 3px solid var(--forest-cta); }
    .cal-day-num { font-weight: 800; font-family: var(--font-heading); font-size: 0.92rem; }

    /* Checklist Row */
    .check-list {
      display: grid;
      gap: 8px;
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .check-item {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 44px;
      padding: 8px 12px;
      border-radius: 12px;
      background: var(--bg-surface);
      border: 1px solid var(--border-warm);
    }
    .check-item input[type="checkbox"] {
      width: 22px;
      height: 22px;
      accent-color: var(--forest-cta);
      flex-shrink: 0;
    }
    .check-item.is-done label {
      text-decoration: line-through;
      opacity: 0.72;
    }

    /* Pixel Hearts */
    .heart-row {
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }
    .heart-pop {
      animation: hpop 0.32s ease;
    }
    @keyframes hpop {
      0% { transform: scale(1); }
      45% { transform: scale(1.35); }
      100% { transform: scale(1); }
    }

    /* Empty State & Warning Banner */
    .empty-state {
      text-align: center;
      padding: 28px 18px;
      background: var(--bg-surface);
      border: 2px dashed var(--border-warm);
      border-radius: 18px;
      margin: 12px 0;
    }
    .alert-box {
      padding: 14px 16px;
      border-radius: 14px;
      border: 2px solid var(--border-warm);
      background: var(--butter);
      color: #3E3026;
      margin-bottom: 14px;
      font-weight: 700;
    }
    .alert-danger {
      background: var(--danger-bg);
      color: var(--danger-ink);
      border-color: var(--berry-accent);
    }

    /* Accordion FAQ */
    .faq-list { display: grid; gap: 10px; }
    .faq-item {
      background: var(--bg-surface);
      border: 2px solid var(--border-warm);
      border-radius: 14px;
      overflow: hidden;
    }
    .faq-trigger {
      width: 100%;
      min-height: 52px;
      padding: 14px 18px;
      border: 0;
      background: transparent;
      color: var(--ink-strong);
      font-family: var(--font-heading);
      font-weight: 800;
      font-size: 1.05rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      text-align: left;
      gap: 12px;
    }
    .faq-trigger:hover { background: var(--bg-surface-2); }
    .faq-panel {
      padding: 0 18px 16px;
      color: var(--ink-main);
      border-top: 1px dashed var(--border-soft);
      display: none;
    }
    .faq-item.is-open .faq-panel { display: block; padding-top: 12px; }

    /* Modal Dialog */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(35, 27, 22, 0.72);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
      z-index: 1200;
    }
    .modal-backdrop.is-open { display: flex; }
    .modal-dialog {
      width: 100%;
      max-width: 720px;
      max-height: 88vh;
      overflow-y: auto;
      background: var(--bg-surface);
      color: var(--ink-main);
      border: 3px solid var(--border-warm);
      border-radius: 22px;
      padding: 20px;
      box-shadow: var(--shadow-lift);
      position: relative;
    }
    .modal-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
      border-bottom: 2px dashed var(--border-soft);
      padding-bottom: 10px;
    }

    /* Toast & Back to Top */
    .toast-region {
      position: fixed;
      bottom: 80px;
      right: 16px;
      z-index: 1400;
      display: grid;
      gap: 8px;
      max-width: min(340px, calc(100vw - 32px));
    }
    .toast-msg {
      background: var(--forest-cta);
      color: #FFFFFF;
      padding: 12px 16px;
      border-radius: 14px;
      border: 2px solid var(--ink-strong);
      font-weight: 800;
      box-shadow: var(--shadow-card);
    }
    html[data-theme="dark"] .toast-msg {
      background: var(--pastel-green);
      color: #231B16;
    }
    .back-to-top {
      position: fixed;
      bottom: 18px;
      right: 18px;
      z-index: 950;
      min-height: 44px;
      padding: 10px 16px;
      border-radius: 999px;
      border: 2px solid var(--ink-strong);
      background: var(--butter);
      color: #3E3026;
      font-family: var(--font-heading);
      font-weight: 800;
      box-shadow: var(--shadow-card);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }
    .back-to-top.is-visible {
      opacity: 1;
      pointer-events: auto;
    }

    /* Character Portrait Initial Emblem & Compare Box */
    .portrait-emblem {
      width: 52px;
      height: 52px;
      border-radius: 14px;
      border: 2px solid var(--border-warm);
      display: grid;
      place-items: center;
      font-family: var(--font-heading);
      font-weight: 800;
      font-size: 1.25rem;
      color: #3E3026;
      flex-shrink: 0;
      overflow: hidden;
    }
    .code-pill {
      font-family: 'Courier New', monospace;
      font-size: 0.9rem;
      font-weight: 700;
      background: var(--bg-surface-2);
      border: 1px solid var(--border-warm);
      padding: 8px 10px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }

    /* Footer */
    .site-footer {
      background: var(--bg-surface-2);
      border-top: 3px solid var(--border-warm);
      padding: 40px 0 32px;
    }
    .site-footer a {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      padding: 4px 2px;
    }
    .site-footer h2::before { content: "🐮 "; }
    .site-footer h3::before { content: "📚 "; }
    #footer-meta-info::before { content: "💫 "; }
    .footer-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 24px;
      margin-bottom: 24px;
    }
    @media (min-width: 720px) {
      .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    }

    /* Reduced Motion Honor (R-39) */
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

    /* ==========================================================================
       MULTI-VIEW + STICKY FILTER + DOWNLOAD CARD
       ========================================================================== */
    .view[hidden] { display: none !important; }
    .sticky-filter { position: sticky; top: 64px; z-index: 760; background: var(--bg-surface); }
    @media (max-width: 680px) { .sticky-filter { top: 58px; } }
    .download-card {
      background: var(--bg-surface);
      border: 2px dashed var(--border-warm);
      border-radius: 16px;
      padding: 14px;
    }
    .sticker-row {
      margin: 14px 0 0;
      padding: 8px 10px;
      font-size: 1.3rem;
      letter-spacing: 5px;
      text-align: center;
      background: var(--bg-surface-2);
      border: 2px solid var(--border-soft);
      border-radius: 12px;
    }
    #search-dialog { max-width: 820px; }
    .preview-strip img {
      width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      border-radius: 10px;
      border: 2px solid var(--border-warm);
      background: var(--bg-surface-2);
    }
    #more-topics { margin-top: 12px; }
    #changelog-list > div > div::before {
      content: "📌";
      font-size: 1.25rem;
      margin-right: 8px;
    }
    #changelog-list > div:nth-child(3n + 2) > div::before { content: "🎨"; }
    #changelog-list > div:nth-child(3n + 3) > div::before { content: "🚀"; }
    #changelog-updated::before { content: "🗓️ "; }

    /* Identitas warga: potret asli proyek dipakai sebagai wajah tiap entri. */
    .face-card { width: 100%; max-width: 148px; aspect-ratio: 13 / 15; object-fit: cover; object-position: top center; border-radius: 14px; border: 2px solid var(--border-warm); background: var(--bg-surface-2); }
    .face-thumb { width: 46px; height: 52px; flex-shrink: 0; object-fit: cover; object-position: top center; border-radius: 9px; border: 2px solid var(--border-warm); background: var(--bg-surface-2); }
    .portrait-strip { display: flex; flex-wrap: wrap; gap: 6px; }
    .portrait-choice {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 44px;
      min-height: 44px;
      padding: 2px;
      border: 2px solid var(--border-warm);
      border-radius: 10px;
      background: var(--bg-surface);
      cursor: pointer;
    }
    .portrait-choice img { display: block; width: 56px; height: 64px; object-fit: cover; object-position: top center; border-radius: 6px; }
    .portrait-choice:hover, .portrait-choice:focus-visible { border-color: var(--berry-accent); }
    .portrait-choice[aria-pressed="true"] { border-color: var(--berry-accent); box-shadow: 0 0 0 2px var(--berry-soft); }
    .gallery-group { display: grid; gap: 12px; }
    .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
    .gallery-grid figure { margin: 0; }
    .gallery-grid img { width: 100%; aspect-ratio: 13 / 15; object-fit: cover; object-position: top center; border-radius: 12px; border: 2px solid var(--border-warm); background: var(--bg-surface-2); }
    .gallery-grid figcaption { font-size: 0.72rem; color: var(--ink-muted); font-weight: 700; padding: 4px 2px; overflow-wrap: anywhere; }

    /* Sambutan Walikota: satu adegan, tidak berulang, bisa dilewati. */
    .intro-backdrop { position: fixed; inset: 0; z-index: 1500; display: none; align-items: flex-end; justify-content: center; padding: 18px; background: rgba(35, 27, 22, 0.78); }
    .intro-backdrop.is-open { display: flex; }
    .intro-scene { width: 100%; max-width: 760px; display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: end; background: var(--bg-surface); border: 3px solid var(--border-warm); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-lift); }
    .intro-portrait-wrap { display: flex; align-items: flex-end; }
    .intro-portrait-wrap img { width: 100%; aspect-ratio: 13 / 15; object-fit: cover; object-position: top center; border-radius: 14px; border: 2px solid var(--border-warm); background: var(--bg-surface-2); }
    .intro-box h2 { margin: 4px 0 8px; font-size: 1.3rem; }
    .intro-box p { font-size: 0.94rem; margin: 0 0 12px; }
    .intro-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
    @media (max-width: 680px) {
      .intro-scene { grid-template-columns: 76px 1fr; gap: 10px; padding: 12px; }
      .intro-box h2 { font-size: 1.05rem; }
      .intro-box p { font-size: 0.86rem; }
      .intro-actions { justify-content: stretch; }
      .intro-actions .btn { flex: 1 1 0; }
    }
