    :root {
      --bg: #050814;
      --accent: #c36a2d;
      --accent-soft: rgba(195, 106, 45, 0.15);
      --text-main: #2b2418;
      --text-soft: #5c4a32;
      --border: rgba(0, 0, 0, 0.18);
      --radius-lg: 18px;
      --radius-xl: 26px;
      --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.75);
      --transition-fast: 0.2s ease-out;
      --transition-med: 0.4s cubic-bezier(0.4, 0.2, 0.1, 1);
    }

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

    html, body {
      height: 100%;
      width: 100%;
    }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at top, #3a4a6a 0, #1a2332 50%, #0f1419 100%);
      color: var(--text-main);
      overflow: hidden;
    }

    /* ========== LAYER 1: THREE.JS INTRO ========== */

    #three-container {
      position: fixed;
      inset: 0;
      overflow: hidden;
      background: radial-gradient(circle at 10% 0%, #2a2535 0, #1a2332 45%, #0f1419 100%);
      transition: opacity 0.8s ease-out;
      z-index: 1;
    }

    #three-container canvas {
      display: block;
    }

    .three-overlay {
      position: absolute;
      inset: 0;
      pointer-events: none;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      flex-direction: column;
      text-align: center;
      color: #f4ebd6;
      z-index: 2;
      padding: 18px 16px 24px;
      background: radial-gradient(circle at top, rgba(0,0,0,0.15), transparent 70%);
    }

    .three-top-text {
      position: absolute;
      top: 18px;
      left: 50%;
      transform: translateX(-50%);
      text-align: center;
      padding: 0 16px;
      pointer-events: none;
    }

    .three-tag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.78rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      padding: 6px 12px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.35);
      background: rgba(5, 5, 8, 0.85);
      margin-bottom: 10px;
    }

    .three-tag-dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: #f4c36b;
      box-shadow: 0 0 10px rgba(244, 195, 107, 0.9);
    }

    .three-title {
      font-size: clamp(1.8rem, 3.4vw, 2.3rem);
      font-weight: 640;
      letter-spacing: 0.04em;
      margin-bottom: 6px;
      text-shadow: 0 7px 26px rgba(0, 0, 0, 0.85);
    }

    .three-subtitle {
      font-size: 0.96rem;
      max-width: 520px;
      opacity: 0.92;
      text-shadow: 0 7px 26px rgba(0, 0, 0, 0.85);
    }

    .three-subtitle span {
      color: #f4c36b;
    }

    .three-hint {
      font-size: 0.86rem;
      opacity: 0.0;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 999px;
      background: rgba(5, 5, 8, 0.85);
      border: 1px solid rgba(244, 195, 107, 0.45);
      animation: hintPulse 3.4s ease-in-out infinite;
      animation-delay: 2s;
    }

    .three-hint-icon {
      font-size: 1rem;
    }

    @keyframes hintPulse {
      0%   { opacity: 0; transform: translateY(4px); }
      20%  { opacity: 1; transform: translateY(0); }
      50%  { opacity: 1; transform: translateY(-1px); }
      80%  { opacity: 0.8; transform: translateY(1px); }
      100% { opacity: 0; transform: translateY(4px); }
    }

    /* ========== LAYER 2: TAGEBUCH ========== */

    #diary-container {
      position: fixed;
      inset: 0;
      opacity: 0;
      pointer-events: none;
      transform: scale(0.97);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
      z-index: 2;
      perspective: 1600px;
      overflow-y: auto;
    }

    body.show-diary #three-container {
      opacity: 0;
      pointer-events: none;
    }

    body.show-diary #diary-container {
      opacity: 1;
      pointer-events: auto;
      transform: scale(1);
    }

    /* Tagebuch-Styles wie vorher, leicht angepasst */

    .scene {
      width: 100%;
      min-height: 100vh;
      height: auto;
      background: radial-gradient(circle at 10% 0%, #31241a 0, #120d0a 40%, #050814 100%);
      border-radius: 0;
      box-shadow: none;
      border: none;
      padding: 16px 14px 18px;
      position: relative;
      overflow-x: hidden;
      overflow-y: auto;
    }

    .scene-inner {
      position: relative;
      z-index: 1;
      height: 100%;
      max-width: 1280px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
    }

    #diary-container .scene {
      transform-origin: left center;
      transform: rotateY(-10deg) translateX(-40px) scale(0.92);
      opacity: 0;
      transition:
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.6s ease-out;
    }

    body.show-diary #diary-container .scene {
      transform: rotateY(0deg) translateX(0) scale(1);
      opacity: 1;
    }

    .scene-header {
      margin-bottom: 10px;
      color: #f6eee0;
    }

    .scene-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.35);
      background: rgba(9, 6, 3, 0.9);
      margin-bottom: 6px;
    }

    .scene-tag-dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: #f4c36b;
      box-shadow: 0 0 10px rgba(244, 195, 107, 0.8);
    }

    .scene-title {
      font-size: clamp(1.7rem, 3vw, 2.1rem);
      letter-spacing: 0.04em;
      font-weight: 650;
    }

    .scene-subtitle {
      font-size: 0.96rem;
      max-width: 580px;
      color: rgba(247, 240, 226, 0.85);
      margin-top: 4px;
    }

    .scene-subtitle span {
      color: #f4c36b;
    }

    .divider {
      height: 1px;
      width: 100%;
      background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
      );
      margin: 8px 0 10px;
      opacity: 0.8;
    }

    .scene-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 18px;
      width: 100%;
      max-width: 1120px;
      margin: 0 auto;
      align-items: center;
      padding: 8px 0 18px;
    }

    .scene-body > * {
      width: 100%;
    }

    .navigation-panel {
      width: 100%;
      max-width: 860px;
      margin: 0 auto;
      background: rgba(7, 5, 4, 0.92);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: var(--radius-xl);
      padding: 18px 20px;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(12px);
      color: rgba(247, 240, 226, 0.92);
      display: flex;
      flex-direction: column;
      gap: 18px;
      order: -1;
      position: sticky;
      top: 10px;
      z-index: 2;
      transition: box-shadow var(--transition-fast), transform var(--transition-fast);
    }

    .nav-toggle {
      border: 1px solid rgba(244, 195, 107, 0.5);
      background: rgba(12, 9, 7, 0.85);
      color: rgba(244, 195, 107, 0.95);
      border-radius: 999px;
      padding: 8px 14px;
      font-size: 0.82rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      cursor: pointer;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
      transition: background var(--transition-fast), color var(--transition-fast);
    }

    .nav-toggle:hover {
      background: rgba(12, 8, 6, 0.95);
      color: #fdeab9;
    }

    .nav-toggle-icon {
      transition: transform var(--transition-fast);
      font-size: 0.9rem;
    }

    .navigation-panel.collapsed .nav-toggle-icon {
      transform: rotate(-90deg);
    }

    .nav-panel-content {
      display: flex;
      flex-direction: column;
      gap: 18px;
      overflow: hidden;
      transition: max-height var(--transition-med), opacity var(--transition-fast), margin var(--transition-fast);
      max-height: 1500px;
    }

    .navigation-panel.collapsed .nav-panel-content {
      max-height: 0;
      opacity: 0;
      margin-top: 0;
      pointer-events: none;
    }

    .nav-panel-headline {
      display: flex;
      flex-direction: column;
      gap: 4px;
      text-align: left;
    }

    .nav-panel-eyebrow {
      font-size: 0.73rem;
      text-transform: uppercase;
      letter-spacing: 0.35em;
      color: rgba(244, 195, 107, 0.9);
      opacity: 0.85;
    }

    .nav-panel-title {
      font-size: 1.15rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      color: #f8f1d8;
    }

    .nav-panel-description {
      font-size: 0.92rem;
      color: rgba(247, 240, 226, 0.75);
      line-height: 1.45;
    }

    .nav-section-label {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.28em;
      color: rgba(244, 195, 107, 0.75);
      display: block;
      margin-bottom: 6px;
    }

    /* Navigation Container */
    .navigation-container {
      display: flex;
      flex-direction: column;
      gap: 22px;
      align-items: stretch;
      width: 100%;
    }

    /* Monats-Navigation */
    .month-nav {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      width: 100%;
    }

    @media (min-width: 640px) {
      .month-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (min-width: 960px) {
      .month-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    .month-btn {
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(9, 6, 3, 0.65);
      color: rgba(247, 240, 226, 0.9);
      padding: 14px 16px;
      cursor: pointer;
      transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
      position: relative;
      z-index: 2;
      pointer-events: auto;
      flex: 0 0 auto;
      text-align: left;
    }

    .month-btn:hover {
      background: rgba(12, 8, 6, 0.85);
      border-color: rgba(244, 195, 107, 0.5);
      transform: translateY(-2px);
    }

    .month-btn.active {
      background: radial-gradient(circle at 30% 0, #f3d9a3 0, #c58e52 45%, #8a5a2c 100%);
      color: #221408;
      border-color: rgba(0, 0, 0, 0.35);
      box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
    }

    .month-btn-content {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .month-btn-name {
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 0.02em;
    }

    .month-btn-note {
      font-size: 0.85rem;
      color: rgba(247, 240, 226, 0.72);
    }

    .month-btn-meta {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.25em;
      color: rgba(244, 195, 107, 0.8);
    }

    /* Tagebuch-Wrapper */
    .diary-wrapper {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      min-height: 0;
      padding: 0;
      width: 100%;
      max-width: 860px;
      margin: 0 auto;
    }

    .page-nav-container {
      display: flex;
      align-items: center;
      width: 100%;
      justify-content: space-between;
      position: relative;
      z-index: 1;
      flex-wrap: wrap;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 16px;
      padding: 14px 16px;
      background: rgba(12, 8, 6, 0.7);
      box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
    }

    .page-nav-btn {
      border-radius: 999px;
      border: 1px solid rgba(0, 0, 0, 0.5);
      background: radial-gradient(circle at 30% 0, #f3d9a3 0, #c58e52 45%, #8a5a2c 100%);
      color: #221408;
      font-size: 0.92rem;
      padding: 8px 18px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      justify-content: center;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
      transition: transform var(--transition-fast), box-shadow var(--transition-fast),
        filter var(--transition-fast);
      white-space: nowrap;
      position: relative;
      z-index: 10;
      pointer-events: auto;
      flex: 0 0 auto;
      min-width: 140px;
    }

    .page-nav-btn span.icon {
      font-size: 1rem;
    }

    .page-nav-btn:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
      filter: brightness(1.05);
    }

    .page-nav-btn:disabled {
      opacity: 0.5;
      cursor: default;
      transform: none;
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
    }

    .page-indicator {
      font-size: 0.88rem;
      color: rgba(247, 240, 226, 0.9);
      font-weight: 500;
      min-width: 60px;
      text-align: center;
    }

    .page-progress {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 12px;
    }

    .page-progress-bar {
      width: 100%;
      height: 6px;
      border-radius: 999px;
      background: rgba(247, 240, 226, 0.1);
      overflow: hidden;
    }

    .page-progress-bar-fill {
      height: 100%;
      width: 0;
      border-radius: 999px;
      background: linear-gradient(90deg, #f3d9a3, #c58e52, #a96530);
      transition: width 0.3s ease-out;
    }

    .page-progress-dots {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .page-progress-dot {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: rgba(247, 240, 226, 0.2);
      border: 1px solid rgba(247, 240, 226, 0.35);
      transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .page-progress-dot.active {
      background: #f3d9a3;
      transform: scale(1.15);
      border-color: rgba(0, 0, 0, 0.4);
    }

    .page-progress-dot:disabled {
      cursor: default;
      opacity: 0.85;
    }

    .page-progress-dot:focus-visible {
      outline: 2px solid rgba(244, 195, 107, 0.9);
      outline-offset: 2px;
    }

    /* Tagebuch-Seite */
.diary-page-container {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
  padding: 0;
  max-width: 860px;
  margin: 0 auto;
}

.quick-page-controls {
  margin: 16px auto 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(7, 6, 4, 0.65);
  border: 1px solid rgba(244, 195, 107, 0.35);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
  color: #f7f0e2;
  backdrop-filter: blur(6px);
}

.quick-page-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fde9c3, #c78d53, #8a5527);
  color: #241003;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.quick-page-btn .icon {
  font-size: 1.05rem;
  line-height: 1;
}

.quick-page-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.quick-page-btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.quick-page-indicator {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 240, 226, 0.85);
  font-weight: 600;
}

.diary-page {
  width: 100%;
  min-height: 0;
  border-radius: 20px;
  background:rgb(244, 223, 190);
      border: 1px solid rgba(120, 90, 50, 0.4);
      box-shadow:
        inset 0 0 0 1px rgba(120, 90, 50, 0.35),
        0 36px 60px rgba(0, 0, 0, 0.5);
      padding: 18px 18px 20px;
      position: relative;
      overflow: hidden;
      overflow-y: auto;
    }

    .diary-spread {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .spread-left,
    .spread-right {
      width: 100%;
      padding: 0;
    }

    .spread-right {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .page-rings {
      display: none;
    }

    .book-wrapper {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      min-height: 0;
    }

    .book-nav-btn {
      border-radius: 999px;
      border: 1px solid rgba(0, 0, 0, 0.5);
      background: radial-gradient(circle at 30% 0, #f3d9a3 0, #c58e52 45%, #8a5a2c 100%);
      color: #221408;
      font-size: 0.88rem;
      padding: 7px 10px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
      transition: transform var(--transition-fast), box-shadow var(--transition-fast),
        filter var(--transition-fast);
      white-space: nowrap;
    }

    .book-nav-btn span.icon {
      font-size: 1rem;
    }

    .book-nav-btn:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
      filter: brightness(1.05);
    }

    .book-nav-btn:disabled {
      opacity: 0.5;
      cursor: default;
      transform: none;
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
    }

    .book {
      position: relative;
      width: min(960px, 100%);
      height: min(620px, 80vh);
      max-height: 720px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      perspective: 2400px;
      transform-style: preserve-3d;
      transition:
        transform 0.45s cubic-bezier(0.19, 1, 0.22, 1),
        box-shadow 0.45s ease-out;
      animation: bookFloat 12s ease-in-out infinite alternate;
    }

    .book:hover {
      box-shadow: 0 26px 60px rgba(0, 0, 0, 0.9);
    }

    @keyframes bookFloat {
      0% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
      }
      50% {
        transform: translateY(-4px) rotateX(0.4deg) rotateY(-0.8deg);
      }
      100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
      }
    }

    .book-left,
    .book-right {
      position: relative;
      height: 100%;
    }

    .paper {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 14px 0 0 14px;
      background:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.45), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(120, 90, 50, 0.35), transparent 55%),
        repeating-linear-gradient(
          to bottom,
          rgba(0, 0, 0, 0.02) 0,
          rgba(0, 0, 0, 0.02) 1px,
          transparent 1px,
          transparent 22px
        ),
        #f5e5c8;
      box-shadow:
        inset 0 0 0 1px rgba(120, 90, 50, 0.4),
        0 22px 30px rgba(0, 0, 0, 0.65);
      padding: 16px 16px 12px 20px;
      font-size: 0.9rem;
      color: var(--text-main);
      overflow: hidden;
    }

    .paper::before {
      content: "";
      position: absolute;
      inset: 14px 10px auto auto;
      width: 78px;
      height: 78px;
      border-radius: 50%;
      border: 2px solid rgba(120, 90, 50, 0.85);
      opacity: 0.13;
      transform: rotate(-8deg);
    }

    .paper::after {
      content: "";
      position: absolute;
      inset: auto auto 12px 18px;
      width: 110px;
      height: 18px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(0, 0, 0, 0.28), transparent 70%);
      filter: blur(1px);
      opacity: 0.5;
    }

    .paper-title {
      font-family: "Reenie Beanie", system-ui, sans-serif;
      font-size: 1.9rem;
      line-height: 1.2;
      margin-bottom: 5px;
    }

    .paper-sub {
      font-size: 0.88rem;
      color: var(--text-soft);
      margin-bottom: 10px;
    }

    .paper-scribble {
      font-family: "Reenie Beanie", system-ui, sans-serif;
      font-size: 1.1rem;
      color: #7b5427;
      margin-top: 8px;
    }

    .paper-list {
      margin-top: 10px;
      padding-left: 14px;
      list-style: none;
      font-size: 0.86rem;
      color: var(--text-soft);
    }

    .paper-list li {
      margin-bottom: 4px;
      position: relative;
    }

    .paper-list li::before {
      content: "✶";
      position: absolute;
      left: -12px;
      color: #b97733;
      font-size: 0.8rem;
      top: 1px;
    }

    .book-right {
      perspective: 2400px;
      transform-style: preserve-3d;
      position: relative;
    }

    .page-stack {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 0 14px 14px 0;
      box-shadow: 0 22px 30px rgba(0, 0, 0, 0.65);
      overflow: visible;
    }

    .page {
      position: absolute;
      inset: 0;
      transform-style: preserve-3d;
      transform-origin: left;
      transition:
        transform var(--transition-med),
        box-shadow 0.3s ease-out;
      cursor: pointer;
    }

    .page:nth-child(1) { z-index: 5; }
    .page:nth-child(2) { z-index: 4; }
    .page:nth-child(3) { z-index: 3; }
    .page:nth-child(4) { z-index: 2; }
    .page:nth-child(5) { z-index: 1; }

    .page-face {
      position: absolute;
      inset: 0;
      backface-visibility: hidden;
      border-radius: 0 14px 14px 0;
      background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.4), transparent 60%),
        radial-gradient(circle at 0 100%, rgba(140, 100, 55, 0.35), transparent 60%),
        repeating-linear-gradient(
          to bottom,
          rgba(0, 0, 0, 0.02) 0,
          rgba(0, 0, 0, 0.02) 1px,
          transparent 1px,
          transparent 22px
        ),
        #f3ddba;
      border-left: 1px solid rgba(120, 90, 50, 0.4);
      box-shadow: inset 0 0 0 1px rgba(120, 90, 50, 0.35);
      padding: 14px 16px 12px 14px;
      overflow: hidden;
    }

    .page-face.back {
      transform: rotateY(180deg);
    }

    .page.flipped {
      transform: rotateY(-180deg);
      box-shadow: -14px 0 26px rgba(0, 0, 0, 0.45);
    }

    .page:not(.flipped):hover {
      box-shadow: 6px 0 18px rgba(0, 0, 0, 0.4);
    }

    .page-hint {
      margin-top: 12px;
      font-size: 0.78rem;
      color: rgba(110, 82, 50, 0.9);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 255, 255, 0.5);
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid rgba(120, 90, 50, 0.3);
    }

    .page-hint span.icon {
      font-size: 0.9rem;
    }

    .page-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 6px;
    }

    .page-heading-title {
      font-family: "Reenie Beanie", system-ui, sans-serif;
      font-size: 1.5rem;
      color: #5c3a1c;
    }

    .page-heading-tag {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      padding: 3px 8px;
      border-radius: 999px;
      border: 1px solid rgba(120, 90, 50, 0.7);
      background: rgba(243, 221, 186, 0.7);
      color: #5b3f20;
      white-space: nowrap;
    }

    .page-text {
      font-size: 0.85rem;
      color: var(--text-soft);
      line-height: 1.5;
      margin-bottom: 8px;
    }

    .note-area {
      margin-top: 0;
      border-radius: 12px;
      border: 1px solid rgba(120, 90, 50, 0.35);
      background:
        repeating-linear-gradient(
          to bottom,
          rgba(255, 255, 255, 0.2) 0,
          rgba(255, 255, 255, 0.2) 1px,
          transparent 1px,
          transparent 23px
        ),
        rgba(243, 221, 186, 0.85);
      padding: 8px 12px;
    }

    .note-textarea {
      width: 100%;
      min-height: 120px;
      border: none;
      outline: none;
      resize: vertical;
      background: transparent;
      font-size: 0.9rem;
      color: var(--text-main);
      font-family: "Reenie Beanie", system-ui, sans-serif;
      line-height: 1.5;
    }

    .note-textarea::placeholder {
      color: rgba(110, 82, 50, 0.7);
    }

    .note-sublabel {
      font-size: 0.7rem;
      color: rgba(110, 82, 50, 0.75);
      text-align: right;
      margin-top: 4px;
    }

    .note-card {
      border-radius: 16px;
      border: 1px solid rgba(120, 90, 50, 0.35);
      background: rgba(255, 248, 234, 0.9);
      padding: 14px 16px 12px;
      box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .note-card-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 6px;
      font-size: 0.85rem;
      color: #5c3a1c;
    }

    .note-card-header span.icon {
      font-size: 1rem;
    }

    .note-card-title {
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 0.7rem;
      color: rgba(88, 56, 24, 0.9);
    }

    .note-card-subtitle {
      font-size: 0.7rem;
      color: rgba(110, 82, 50, 0.8);
    }

    .polaroid-layout {
      margin: 0 auto 10px;
      display: flex;
      justify-content: center;
      width: 100%;
      max-width: 720px;
      padding: 0 6px;
    }

    .polaroid {
      position: relative;
      width: 100%;
      max-width: 640px;
      aspect-ratio: 4 / 5;
      background: #fdfdf7;
      border-radius: 12px;
      box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.3);
      padding: 14px 14px 46px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      transform-origin: center;
      transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    }

    .polaroid:nth-child(1) {
      transform: rotate(-3deg);
    }

    .polaroid:nth-child(2) {
      transform: rotate(2deg);
    }

    .polaroid:hover {
      transform: translateY(-3px) scale(1.02);
      box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.3);
    }

    .polaroid-frame {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 8px;
      background:
        radial-gradient(circle at 50% 0, rgba(0, 0, 0, 0.35), transparent 65%),
        #baa687;
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(255, 255, 255, 0.8);
      font-size: 0.9rem;
      text-align: center;
      padding: 12px;
    }

    .polaroid-label {
      position: absolute;
      left: 8px;
      right: 8px;
      bottom: 12px;
      font-family: "Reenie Beanie", system-ui, sans-serif;
      color: #4c3a25;
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 2px;
      align-items: center;
      pointer-events: none;
    }

    .polaroid-label-event {
      font-size: 1.25rem;
      line-height: 1.1;
    }

    .polaroid-label-meta {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.22em;
      color: rgba(76, 58, 37, 0.7);
    }

    .polaroid-input-row {
      margin-top: 10px;
      text-align: center;
      font-size: 0.8rem;
      color: rgba(110, 82, 50, 0.85);
    }

    .polaroid-input-row input[type="file"] {
      font-size: 0.78rem;
      margin-top: 4px;
      color: inherit;
    }

    .page-list {
      margin-top: 4px;
      font-size: 0.84rem;
      color: var(--text-soft);
      line-height: 1.45;
    }

    .page-list strong {
      color: #7b5427;
    }

    .scene-footer {
      margin-top: 8px;
      font-size: 0.8rem;
      color: rgba(241, 229, 207, 0.8);
      display: flex;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }

    .scene-footer span {
      opacity: 0.9;
    }

    .scene-footer .hint {
      color: #f4c36b;
    }

    @media (min-width: 640px) {
      .scene {
        padding: 18px 22px 24px;
      }
      .scene-body {
        padding-top: 12px;
        gap: 22px;
      }
      .navigation-panel {
        position: sticky;
        top: 16px;
      }
      .page-nav-container {
        flex-wrap: nowrap;
        align-items: center;
      }
      .page-nav-btn {
        flex: 0 0 auto;
        min-width: 160px;
      }
      .page-indicator {
        order: 0;
        width: auto;
        margin-top: 0;
      }
      .diary-page {
        padding: 22px 26px;
        min-height: 420px;
      }
      .diary-page-container {
        min-height: 420px;
        padding: 0 8px;
      }
      .scene-footer {
        font-size: 0.78rem;
      }
    }

    @media (min-width: 960px) {
      .scene {
        padding: 26px 36px 34px;
      }
      .scene-body {
        gap: 28px;
      }
      .navigation-panel {
        max-width: 900px;
        position: relative;
        top: 0;
      }
      .diary-wrapper {
        max-width: 900px;
      }
      .diary-page-container {
        min-height: 520px;
        padding: 0 4px;
      }
      .diary-page {
        padding: 28px 30px;
        min-height: 520px;
      }
      .diary-spread {
        flex-direction: column;
        gap: 22px;
      }
      .spread-left,
      .spread-right {
        width: 100%;
      }
    }

    @media (min-width: 1200px) {
      .scene {
        padding: 28px 42px;
      }
      .diary-page {
        padding: 28px 34px;
      }
      .scene-subtitle {
        font-size: 1rem;
      }
      .page-heading-title {
        font-size: 1.6rem;
      }
    }
  
