    :root {
      --ink: #1f2630;
      --ink-muted: #3f4a57;
      --spine: rgba(60, 74, 92, 0.25);
      --accent: #c46a6a;
      --line: rgba(120, 140, 168, 0.22);
    }

html, body {
      margin: 0;
      min-height: 100%;
      font-family: var(--font-base) !important;
      font-size: 13px !important;
      color: var(--ink) !important;
      overflow-x: hidden;
      background: transparent;
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background: url('/images/diary/stars.jpg') center/cover no-repeat;
      filter: blur(4px);
      opacity: 0.5;
      z-index: -1;
      pointer-events: none;
    }

    .window-body { 
      max-width: 960px;
      margin: 0 auto;
      padding: 16px 12px 30px;
      box-sizing: border-box;
    }

    .notebook {
      position: relative;
      padding: 18px 16px 20px 22px;
      border-radius: 0;
      background: transparent;
      border: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      box-shadow: none;
      overflow: hidden;
      width: 100%;
      max-width: 960px;
      margin: 0 auto;
      box-sizing: border-box;
    }

    .diary-banner {
      text-align: center;
      margin: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100%;
      flex-direction: column;
    }

    .diary-banner img {
      max-width: 220px;
      width: 100%;
      height: auto;
      display: inline-block;
    }

    .diary-banner .me-sticker {
      display: block;
      margin: 10px auto 0;
      max-width: 260px;
      width: 100%;
      height: auto;
      opacity: 0.5;
    }

    .firstpage-sticker {
      position: absolute;
      left: 24px;
      bottom: 84px;
      width: 150px;
      height: auto;
      pointer-events: none;
      opacity: 0.9;
    }

    .firstpage-fairy {
      position: absolute;
      right: 24px;
      bottom: 24px;
      width: 180px;
      height: auto;
      pointer-events: none;
      opacity: 0.95;
    }

    .leftpage-sticker {
      position: absolute;
      left: 24px;
      bottom: 6px;
      width: 320px;
      height: auto;
      pointer-events: none;
      opacity: 0.95;
      z-index: 2;
    }

    .leftpage-flower {
      position: absolute;
      top: 18px;
      right: 18px;
      width: 180px;
      height: auto;
      pointer-events: none;
      opacity: 0.95;
      z-index: 3;
    }

    .leftpage-witch {
      position: absolute;
      top: 18px;
      right: 18px;
      width: 150px;
      height: auto;
      pointer-events: none;
      opacity: 0.95;
      z-index: 3;
    }

    .polaroid-card {
      width: 220px;
      background: #f8f8f8;
      border: 1px solid rgba(0, 0, 0, 0.15);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
      padding: 10px 10px 32px;
    }

    .leftpage-polaroid {
      position: absolute;
      left: 40px;
      top: 60px;
      transform: rotate(-3deg);
      z-index: 3;
    }

    .polaroid-card img {
      display: block;
      width: 100%;
      aspect-ratio: 3 / 4;
      height: auto;
      object-fit: cover;
    }

    .polaroid-card::after {
      content: '';
      position: absolute;
      top: -10px;
      left: 50%;
      width: 70px;
      height: 20px;
      transform: translateX(-50%) rotate(-2deg);
      background: rgba(240, 224, 180, 0.85);
      border: 1px solid rgba(200, 185, 140, 0.7);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .leftpage-polaroid-aldous {
      position: absolute;
      right: 26px;
      bottom: 28px;
      transform: rotate(2deg);
      z-index: 3;
      font-family: 'Marker Felt', 'Chalkboard SE', 'Bradley Hand', 'Comic Sans MS', 'Trebuchet MS', sans-serif;
      color: #333333;
      text-align: center;
    }

    .leftpage-1bored {
      position: absolute;
      left: 18px;
      top: 50%;
      transform: translateY(-50%);
      width: 180px;
      height: auto;
      pointer-events: none;
      opacity: 0.95;
      z-index: 2;
    }

    .polaroid-card .polaroid-caption {
      position: absolute;
      left: 10px;
      right: 10px;
      bottom: 8px;
      height: 20px;
      margin-top: 0;
      font-size: 12px;
      line-height: 1.2;
      letter-spacing: 0.02em;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .leftpage-seb {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 300px;
      max-width: 75%;
      height: auto;
      transform: translate(-50%, -50%);
      z-index: 3;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
      border-radius: 6px;
    }

    .leftpage-bunblush {
      position: absolute;
      top: 18px;
      left: 20px;
      width: 100px;
      height: auto;
      z-index: 4;
      pointer-events: none;
    }

    .leftpage-bunblush1 {
      position: absolute;
      top: 18px;
      right: 20px;
      width: 100px;
      height: auto;
      z-index: 4;
      pointer-events: none;
    }

    .leftpage-eyes {
      position: absolute;
      right: 18px;
      top: 72px;
      width: 140px;
      height: auto;
      pointer-events: none;
      opacity: 0.95;
      z-index: 3;
    }

    .leftpage-coffinmate {
      position: absolute;
      left: 24px;
      bottom: 30px;
      width: 320px;
      height: auto;
      pointer-events: none;
      opacity: 0.95;
      z-index: 3;
    }

    .leftpage-buns {
      margin-top: 0;
      transform: translateY(-100px);
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: center;
      justify-content: flex-start;
    }

    .leftpage-buns img {
      width: 120px;
      height: auto;
      display: block;
    }

    .leftpage-buns .bun2 {
      width: 330px;
    }

    .leftpage-bonnie {
      position: absolute;
      left: 50%;
      bottom: 24px;
      width: 280px;
      transform: translateX(-50%);
      height: auto;
      display: block;
      border-radius: 6px;
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
      pointer-events: none;
      z-index: 2;
    }

    .leftpage-heart {
      position: absolute;
      left: calc(50% + 110px);
      bottom: 230px;
      width: 160px;
      height: auto;
      transform: translateX(-50%);
      pointer-events: none;
      z-index: 3;
    }

    .leftpage-polaroid-dullboy {
      position: absolute;
      right: 26px;
      top: 40px;
      transform: rotate(2deg);
      z-index: 3;
    }

    .leftpage-pissed {
      position: absolute;
      left: 20px;
      bottom: 24px;
      width: 180px;
      height: auto;
      pointer-events: none;
      opacity: 0.95;
      z-index: 1;
    }

    .leftpage-curious {
      position: absolute;
      right: 20px;
      bottom: 20px;
      width: 180px;
      height: auto;
      pointer-events: none;
      opacity: 0.95;
      z-index: 1;
    }

    .leftpage-fruitstickers {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 360px;
      height: auto;
      pointer-events: none;
      opacity: 0.95;
      z-index: 2;
    }

    .leftpage-polaroid-konbini {
      position: absolute;
      left: 50%;
      bottom: 32px;
      transform: translateX(-50%) rotate(-2deg);
      z-index: 3;
    }

    .leftpage-polaroid-skr {
      position: absolute;
      left: 50%;
      top: 40px;
      transform: translateX(-50%) rotate(2deg);
      z-index: 3;
      text-align: center;
      font-family: 'Marker Felt', 'Chalkboard SE', 'Bradley Hand', 'Comic Sans MS', 'Trebuchet MS', sans-serif;
      color: #333333;
    }

    .leftpage-shy {
      position: absolute;
      left: 24px;
      bottom: 24px;
      width: 180px;
      height: auto;
      pointer-events: none;
      opacity: 0.95;
      z-index: 1;
    }

    .leftpage-skr-note {
      position: absolute;
      right: 24px;
      bottom: 105px;
      font-size: 12px;
      font-weight: 700;
      color: #2f5bb5;
      font-family: 'Courier New', Courier, monospace, Arial, sans-serif;
      text-align: right;
      pointer-events: none;
      z-index: 2;
    }

    .leftpage-polaroid-heels {
      position: absolute;
      left: 24px;
      top: 40px;
      transform: rotate(-2deg);
      z-index: 3;
    }

    .rightpage-polaroid-peanut {
      position: absolute;
      right: 26px;
      top: 110px;
      transform: rotate(-2deg);
      z-index: 3;
      text-align: center;
      font-family: 'Marker Felt', 'Chalkboard SE', 'Bradley Hand', 'Comic Sans MS', 'Trebuchet MS', sans-serif;
      color: #333333;
    }

    .rightpage-onigiri {
      position: absolute;
      left: 50%;
      bottom: 24px;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      gap: 12px;
      z-index: 3;
      pointer-events: none;
    }

    .rightpage-onigiri img {
      width: 128px;
      height: auto;
      display: block;
    }

    .rightpage-onigiri .middle {
      width: 144px;
    }

    /* image sizing unified above */

    .rightpage-johnyoko {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 260px;
      transform: translate(-50%, -50%);
      height: auto;
      display: block;
      border-radius: 6px;
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
      pointer-events: none;
      z-index: 2;
    }

    .rightpage-johnyoko-tape {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 170px;
      height: auto;
      transform: translate(-50%, -50%) translateY(-200px);
      pointer-events: none;
      z-index: 3;
    }

    .rightpage-buns {
      position: absolute;
      left: 12px;
      bottom: 10px;
      width: 240px;
      height: auto;
      pointer-events: none;
      z-index: 3;
    }

    .rightpage-catsideye {
      position: absolute;
      left: 50%;
      bottom: 8px;
      top: auto;
      width: 180px;
      height: auto;
      transform: translateX(-50%);
      pointer-events: none;
      z-index: 2;
    }

    .leftpage-cows {
      position: absolute;
      left: 50%;
      bottom: 28px;
      width: 280px;
      transform: translateX(-50%);
      height: auto;
      pointer-events: none;
      opacity: 0.95;
      z-index: 2;
    }

    .leftpage-greencat {
      position: absolute;
      right: 26px;
      bottom: 24px;
      width: 140px;
      height: auto;
      pointer-events: none;
      opacity: 0.95;
      z-index: 2;
    }

    .book-shell {
      position: relative;
      z-index: 0;
      box-sizing: border-box;
    }

    .book-wrap {
      position: relative;
      padding: 10px;
      z-index: 0;
      box-sizing: border-box;
    }
    .journal-cover {
      position: absolute;
      inset: 0;
      border-radius: 18px;
      background:
        linear-gradient(145deg, rgba(38, 78, 56, 0.95), rgba(25, 62, 44, 0.98)),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 6px, rgba(255,255,255,0) 6px 12px);
      border: 1px solid rgba(25, 40, 28, 0.45);
      z-index: 0;
      pointer-events: none;
      transition: opacity 0.4s ease;
    }

    .journal-cover::after {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 30px;
      transform: translateX(-50%);
      background: linear-gradient(180deg, rgba(10, 18, 12, 0.7), rgba(10, 18, 12, 0.25));
      box-shadow: 0 0 12px rgba(0, 0, 0, 0.28);
      border-radius: 2px;
      opacity: 0.7;
      pointer-events: none;
    }

    .cover-sticker-layer {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
    }

    .cover-sticker-region {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: calc(50% - 18px);
      padding: 24px 20px;
      overflow: hidden;
    }

    .cover-sticker {
      position: absolute;
      width: 86px;
      height: auto;
      filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
    }

    .cover-sticker.sticker-777 {
      top: 40px;
      left: 10px;
      transform: rotate(-6deg);
    }

    .cover-sticker.sticker-444 {
      right: 44px;
      bottom: 18px;
      transform: rotate(3deg);
    }

    .cover-sticker.sticker-zambia {
      top: 200px;
      left: 24px;
      width: 188px;
      transform: rotate(-2deg);
    }

    .cover-sticker.sticker-greenbf {
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 220px;
      z-index: 2;
    }

    .cover-sticker.sticker-pricetag {
      top: 24px;
      right: 39px;
      left: auto;
      width: 90px;
      transform: rotate(6deg);
    }

    .cover-sticker.sticker-tiramisu {
      top: 26px;
      right: 200px;
      left: auto;
      width: 115px;
      transform: rotate(4deg);
    }

    .cover-sticker.sticker-ghostface {
      top: 110px;
      right: 200px;
      left: auto;
      width: 80px;
      transform: rotate(-3deg);
    }

    .cover-sticker.sticker-blackcat {
      bottom: 24px;
      left: 24px;
      width: 250px;
      transform: rotate(-3deg);
    }

    .cover-sticker.sticker-nippon {
      top: 50%;
      left: 50%;
      width: 130px;
      transform: translate(40px, -50%) rotate(-4deg);
      z-index: 0;
    }

    .journal-frame {
      position: absolute;
      inset: 0;
      border-radius: 14px;
      background: transparent;
      border: 3px solid rgba(45, 90, 62, 0.85);
      z-index: 1;
      pointer-events: none;
      transition: opacity 0.4s ease;
    }

    .journal-cover::before {
      content: '';
      position: absolute;
      inset: 10px 12px;
      border-radius: 14px;
      border: 1px dashed rgba(234, 212, 168, 0.35);
      opacity: 0.8;
    }

    .book-controls {
      position: absolute;
      left: 20px;
      right: 20px;
      bottom: 10px;
      z-index: 4;
      display: flex;
      align-items: center;
      justify-content: space-between;
      pointer-events: none;
    }

    .book-controls button {
      pointer-events: auto;
      border-radius: 0;
      border: none;
      background: transparent;
      box-shadow: none;
      padding: 0;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 0;
      font-size: 24px;
      line-height: 1;
      color: var(--ink);
    }

    .book-controls button:hover {
      transform: translateY(-1px);
      text-decoration: underline;
      text-decoration-thickness: 0.5px;
      text-underline-offset: 4px;
    }

    .book-controls button:disabled {
      cursor: not-allowed;
      opacity: 0.55;
    }


    .book {
      position: relative;
      width: 100%;
      margin: 0 auto;
      perspective: 1800px;
      min-height: 420px;
      background:
        linear-gradient(90deg, rgba(0,0,0,0.1), rgba(0,0,0,0) 5%, rgba(0,0,0,0) 95%, rgba(0,0,0,0.1));
      border-radius: 14px;
      overflow: hidden;
      z-index: 2;
      box-sizing: border-box;
    }

    .book::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(0,0,0,0) 49.5%, var(--spine) 50%, rgba(0,0,0,0) 50.5%);
      pointer-events: none;
    }

    .book::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0), rgba(30, 40, 55, 0.08));
      pointer-events: none;
    }

    .binding {
      position: absolute;
      top: 14px;
      bottom: 14px;
      left: 50%;
      width: 18px;
      transform: translateX(-50%);
      pointer-events: none;
      z-index: 10;
      background: transparent;
      border-left: none;
      border-right: none;
      border-radius: 12px;
      box-shadow: none;
      opacity: 1;
    }

    .binding::before {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      background:
        repeating-linear-gradient(
          to bottom,
          rgba(10, 10, 12, 0.95) 0 2px,
          rgba(10, 10, 12, 0) 2px 4px,
          rgba(10, 10, 12, 0.95) 4px 6px,
          rgba(10, 10, 12, 0) 6px 16px
        );
      border-radius: 0;
      opacity: 0.95;
    }

    .binding::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 2px;
      background:
        repeating-linear-gradient(
          to bottom,
          rgba(255,255,255,0.2) 0 1px,
          rgba(255,255,255,0.05) 1px 4px,
          rgba(255,255,255,0) 4px 16px
        );
      opacity: 0.25;
      border-radius: 0;
    }

    .page-stack {
      position: relative;
      width: 100%;
      height: 100%;
      z-index: 2;
    }

    .page-stack.left-stack {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 50%;
      z-index: 1;
      pointer-events: none;
    }

    .page-base {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 50%;
      z-index: 0;
    }

    .page-base.left {
      left: 0;
    }

    .page-base.right {
      left: 50%;
    }

    .page-base .page-inner {
      border-left: 1px solid var(--line);
      border-right: 1px solid var(--line);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92)),
        repeating-linear-gradient(to bottom, rgba(55, 75, 105, 0.95) 0 1px, rgba(55, 75, 105, 0) 1px 16px),
        repeating-linear-gradient(to right, rgba(55, 75, 105, 0.95) 0 1px, rgba(55, 75, 105, 0) 1px 16px);
    }

    .book.cover-exposed .page-base.left {
      display: none;
    }

    .page-base.left .page-inner::after {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
    }

    .page-base.right .page-inner::after {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }

    .page {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 50%;
      transform-style: preserve-3d;
      transform-origin: left center;
      transition: transform 0.8s ease, box-shadow 0.8s ease;
      will-change: transform;
    }

    .page.right {
      left: 50%;
      transform-origin: left center;
    }

    .page.left {
      left: 0;
      transform-origin: right center;
      pointer-events: none;
    }

    .page.is-flipped {
      transform: rotateY(-180deg);
      box-shadow: none;
    }

    .page.is-flipped .page-inner {
      opacity: 1;
      filter: none;
    }

    .page-shadow {
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(0,0,0,0.12), rgba(0,0,0,0));
      opacity: 0;
      transition: opacity 0.8s ease;
      pointer-events: none;
    }

    .page.is-flipped .page-shadow {
      opacity: 0;
    }

    .page-inner {
      position: absolute;
      inset: 0;
      padding: 18px 18px 22px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92)),
        repeating-linear-gradient(to bottom, rgba(45, 65, 95, 1) 0 1px, rgba(45, 65, 95, 0) 1px 16px),
        repeating-linear-gradient(to right, rgba(45, 65, 95, 1) 0 1px, rgba(45, 65, 95, 0) 1px 16px);
      border-left: 1px solid var(--line);
      border-right: 1px solid var(--line);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
      overflow: hidden;
      backface-visibility: hidden;
    }

    .page.left .page-inner {
      background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94)),
        repeating-linear-gradient(to bottom, rgba(45, 65, 95, 1) 0 1px, rgba(45, 65, 95, 0) 1px 16px),
        repeating-linear-gradient(to right, rgba(45, 65, 95, 1) 0 1px, rgba(45, 65, 95, 0) 1px 16px);
    }

    .page-inner::before {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      width: 1px;
      background: rgba(196, 106, 106, 0.35);
      pointer-events: none;
    }

    .page-inner::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 8px;
      box-shadow: inset 0 0 0 1px rgba(120, 140, 168, 0.18);
      pointer-events: none;
    }

    .page.left .page-inner::after {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
    }

    .page.right .page-inner::after {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }

    .binding-holes {
      position: absolute;
      top: 14px;
      bottom: 14px;
      width: 6px;
      background:
        repeating-linear-gradient(
          to bottom,
          rgba(12, 12, 14, 0.65) 0 6px,
          rgba(12, 12, 14, 0) 6px 16px
        );
      background-position: 0 0;
      opacity: 0.45;
      pointer-events: none;
      z-index: 9;
    }

    .page.right .page-inner {
      border-left: 1px solid rgba(120, 140, 168, 0.2);
      border-right: none;
    }

    .page.right .page-inner::after {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }

    .page.right .page-inner::before {
      left: 22px;
    }

    .binding-holes.left {
      left: calc(50% - 12px);
    }

    .binding-holes.right {
      left: calc(50% + 6px);
    }

    .entry {
      border-radius: 10px;
      padding: 10px 8px 12px;
      display: block;
      background: transparent;
      border: none;
      box-shadow: none;
    }

    .entry-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin: -6px 0 20px;
      font-size: 12px;
      color: var(--ink-muted);
      font-weight: 700;
    }

    .entry-meta .date {
      letter-spacing: 0.01em;
      font-family: 'Courier New', Courier, monospace, Arial, sans-serif;
    }

    .entry-meta .icon {
      flex-shrink: 0;
      line-height: 1;
    }

    .entry-meta .icon img {
      display: block;
      height: 18px;
      width: auto;
    }

    .entry-body {
      margin: 0;
      color: var(--ink);
      line-height: 1.7;
      font-size: 13px;
      font-family: 'Courier New', Courier, monospace, Arial, sans-serif;
    }

    .entry-body img {
      vertical-align: middle;
    }

    .entry-body::first-letter {
      font-size: 26px;
      line-height: 1;
      font-weight: 700;
      float: left;
      margin: 2px 6px 0 0;
      color: var(--accent);
    }

    .entry-body.no-dropcap::first-letter {
      font-size: inherit;
      line-height: inherit;
      font-weight: inherit;
      float: none;
      margin: 0;
      color: inherit;
    }

    .entry-body.entry-gag {
      color: #b63a3a;
      font-weight: 700;
      letter-spacing: 0.02em;
      padding-right: 6px;
      box-sizing: border-box;
      white-space: normal;
      overflow-wrap: break-word;
      white-space: pre-line;
    }

    .entry-body.entry-gag::first-letter {
      font-size: inherit;
      line-height: inherit;
      font-weight: inherit;
      float: none;
      margin: 0;
      color: #b63a3a;
    }

    @media (max-width: 740px) {
      .window-body {
        max-width: 100vw;
        padding: 12px 8px 24px;
      }

      .notebook {
        padding: 14px 10px 16px 14px;
      }

      .entry {
        padding: 9px 10px;
      }

      .entry-meta {
        font-size: 11px;
      }

      .entry-body {
        column-width: auto;
        column-count: 1;
        column-rule: none;
      }

      .book {
        min-height: 360px;
      }

      .book-controls {
        left: 12px;
        right: 12px;
        bottom: 8px;
      }

      .page {
        width: 100%;
        left: 0 !important;
      }

      .page-base.left {
        display: none;
      }

      .binding {
        display: none;
      }

      .book-wrap {
        padding: 12px 10px 32px;
      }

      .journal-frame {
        inset: 8px;
      }
    }