    @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;600;700&display=swap');

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

    :root {
      --bg-top: #12071c;
      --bg-mid: #1c1231;
      --bg-bottom: #0d233f;
      --gold: #ffd46b;
      --gold-deep: #b67a18;
      --paper: #fff9ec;
      --text-soft: rgba(255, 248, 230, 0.72);
      --panel-bg: rgba(255, 255, 255, 0.06);
      --panel-border: rgba(255, 212, 107, 0.22);
    }

    body {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      background:
        radial-gradient(circle at top, rgba(255, 212, 107, 0.16), transparent 28%),
        radial-gradient(circle at 20% 20%, rgba(255, 155, 90, 0.12), transparent 22%),
        linear-gradient(180deg, var(--bg-top), var(--bg-mid) 50%, var(--bg-bottom));
      font-family: 'Noto Sans KR', 'Segoe UI', sans-serif;
      overflow-x: hidden;
      color: #f7f0dd;
      position: relative;
      padding: 0 20px;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
      background-size: 36px 36px;
      mask-image: radial-gradient(circle at center, black, transparent 85%);
      pointer-events: none;
      opacity: 0.35;
    }

    /* Top bar */
    .top-bar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 24px;
      z-index: 100;
    }

    .home-link {
      color: rgba(255, 255, 255, 0.5);
      text-decoration: none;
      font-size: 0.9rem;
      transition: color 0.3s;
    }
    .home-link:hover { color: #ffd700; }

    .lang-toggle {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 215, 0, 0.3);
      color: #ffd700;
      padding: 6px 14px;
      border-radius: 20px;
      cursor: pointer;
      font-size: 0.85rem;
      font-family: inherit;
      transition: all 0.3s;
      letter-spacing: 1px;
    }
    .lang-toggle:hover {
      background: rgba(255, 215, 0, 0.15);
      border-color: #ffd700;
    }

    /* Header */
    .header {
      margin-top: 70px;
      text-align: center;
      margin-bottom: 18px;
      position: relative;
      z-index: 2;
    }

    .header h1 {
      font-size: 2.2rem;
      font-weight: 700;
      color: var(--gold);
      text-shadow: 0 0 24px rgba(255, 212, 107, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
    }

    .header h1 .cookie-icon {
      font-size: 2rem;
    }

    .header .subtitle {
      color: var(--text-soft);
      font-size: 1rem;
      margin-top: 10px;
      max-width: 540px;
      line-height: 1.6;
    }

    /* Cookie area */
    .cookie-scene {
      position: relative;
      width: min(420px, 92vw);
      height: 340px;
      margin: 24px auto 12px;
      cursor: pointer;
      transition: transform 0.3s;
      z-index: 2;
      outline: none;
    }
    .cookie-scene:hover:not(.cracked) { transform: scale(1.04); }
    .cookie-scene:focus-visible {
      transform: scale(1.03);
      filter: drop-shadow(0 0 18px rgba(255, 212, 107, 0.45));
    }
    .cookie-scene.cracked { cursor: default; }

    .scene-aura {
      position: absolute;
      inset: 30px 20px 36px;
      border-radius: 50%;
      background:
        radial-gradient(circle, rgba(255, 223, 150, 0.28), rgba(255, 223, 150, 0.03) 55%, transparent 72%);
      filter: blur(6px);
      animation: auraPulse 4s ease-in-out infinite;
    }

    .scene-ring {
      position: absolute;
      inset: 40px;
      border-radius: 50%;
      border: 1px solid rgba(255, 212, 107, 0.14);
      box-shadow: 0 0 40px rgba(255, 212, 107, 0.08) inset;
    }

    .scene-ring::before,
    .scene-ring::after {
      content: "";
      position: absolute;
      inset: 16px;
      border-radius: 50%;
      border: 1px dashed rgba(255, 212, 107, 0.12);
    }

    .scene-ring::after {
      inset: 34px;
      border-style: solid;
      opacity: 0.5;
    }

    .cookie-half {
      position: absolute;
      top: 42px;
      width: 190px;
      height: 236px;
      transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
      filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22));
    }

    .cookie-left {
      left: 50%;
      margin-left: -80px;
      transform: translateX(-10px);
      transform-origin: right center;
    }
    .cookie-right {
      left: 50%;
      margin-left: -80px;
      transform: translateX(10px);
      transform-origin: left center;
    }

    .cookie-scene.cracked .cookie-left {
      transform: translateX(-86px) rotate(-13deg);
    }
    .cookie-scene.cracked .cookie-right {
      transform: translateX(86px) rotate(13deg);
    }

    canvas.cookie-canvas {
      width: 100%;
      height: 100%;
    }

    /* Mini fortune slip between cookie halves */
    .mini-slip {
      position: absolute;
      top: 48%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0);
      background: linear-gradient(180deg, rgba(20, 16, 30, 0.92), rgba(12, 22, 38, 0.9));
      border: 1px solid rgba(255, 215, 0, 0.28);
      border-radius: 20px;
      padding: 28px 24px;
      width: max-content;
      min-width: 360px;
      max-width: min(92vw, 960px);
      text-align: center;
      box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
      backdrop-filter: blur(16px);
      opacity: 0;
      transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
      z-index: 10;
    }
    .mini-slip.visible {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
    .mini-slip .slip-text {
      font-size: 1.22rem;
      color: #fff7e8;
      line-height: 1.7;
      font-weight: 600;
      text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
      white-space: pre-line;
    }
    .mini-slip .slip-meta {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: nowrap;
      gap: 10px;
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.82);
      margin-top: 14px;
      border-top: 1px dashed rgba(255, 255, 255, 0.22);
      padding-top: 12px;
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: none;
      width: max-content;
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
    }
    .mini-slip .slip-meta::-webkit-scrollbar { display: none; }

    .meta-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 13px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 212, 107, 0.18);
      color: #fff7e8;
      font-weight: 600;
      white-space: nowrap;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .meta-chip.keyword {
      background: rgba(91, 153, 224, 0.18);
      color: #eef6ff;
      border-color: rgba(134, 192, 255, 0.26);
    }

    .meta-chip.color-chip {
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 212, 107, 0.18);
      color: #fff7e8;
    }

    .meta-chip .color-swatch {
      position: relative;
      width: 18px;
      height: 18px;
      border-radius: 4px;
      border: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
      flex: 0 0 auto;
      cursor: help;
    }

    .meta-chip .color-tooltip {
      position: absolute;
      left: 50%;
      bottom: calc(100% + 8px);
      transform: translateX(-50%) translateY(4px);
      padding: 6px 8px;
      border-radius: 8px;
      background: #1d1b1a;
      color: #fff8ea;
      font-size: 0.76rem;
      line-height: 1;
      opacity: 0;
      pointer-events: none;
      white-space: nowrap;
      box-shadow: 0 10px 24px rgba(0,0,0,0.22);
      transition: opacity 0.18s ease, transform 0.18s ease;
      z-index: 3;
    }

    .meta-chip .color-tooltip::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 100%;
      transform: translateX(-50%);
      border: 5px solid transparent;
      border-top-color: #1d1b1a;
    }

    .meta-chip .color-swatch:hover .color-tooltip,
    .meta-chip .color-swatch:focus-visible .color-tooltip {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .meta-chip .meta-label {
      color: rgba(255, 255, 255, 0.68);
      font-weight: 500;
    }

    .cookie-pedestal {
      position: absolute;
      left: 50%;
      bottom: 18px;
      transform: translateX(-50%);
      width: min(300px, 82vw);
      height: 58px;
      border-radius: 50%;
      background:
        radial-gradient(circle at center, rgba(255, 219, 134, 0.42), rgba(255, 219, 134, 0.1) 45%, transparent 70%),
        radial-gradient(circle at center, rgba(0, 0, 0, 0.3), transparent 74%);
      filter: blur(4px);
      pointer-events: none;
    }

    .intro-card {
      width: max-content;
      max-width: 92vw;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
      margin: 0 auto 10px;
      z-index: 2;
      transition: opacity 0.35s ease, transform 0.35s ease;
    }

    .intro-card.hidden {
      opacity: 0;
      transform: translateY(-10px);
      pointer-events: none;
    }

    .intro-panel {
      background: var(--panel-bg);
      border: 1px solid var(--panel-border);
      border-radius: 18px;
      padding: 16px 18px;
      flex: 0 0 auto;
      width: max-content;
      min-width: 220px;
      max-width: none;
      backdrop-filter: blur(12px);
      box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    }

    .intro-label {
      font-size: 0.76rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255, 239, 199, 0.56);
      margin-bottom: 8px;
    }

    .intro-value {
      font-size: 1rem;
      line-height: 1.55;
      color: #fff6dd;
      word-break: keep-all;
      white-space: nowrap;
    }

    /* Reset button */
    .reset-btn {
      margin: 30px auto 40px;
      padding: 14px 40px;
      background: transparent;
      color: #ffd700;
      border: 2px solid #ffd700;
      border-radius: 30px;
      font-size: 1.05rem;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
      opacity: 0;
      transform: translateY(10px);
      transition: all 0.5s;
    }
    .reset-btn.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .reset-btn:hover {
      background: #ffd700;
      color: #1a0a2e;
    }

    /* Instruction */
    .instruction {
      color: rgba(255, 247, 219, 0.65);
      font-size: 0.95rem;
      margin-top: 6px;
      animation: pulse 2s ease-in-out infinite;
      z-index: 2;
    }

    .status-note {
      margin-top: 10px;
      min-height: 24px;
      font-size: 0.88rem;
      color: rgba(255, 243, 221, 0.55);
      letter-spacing: 0.01em;
      text-align: center;
      z-index: 2;
    }

    .ad-section {
      width: min(920px, 92vw);
      margin: 20px auto 0;
      min-height: 120px;
      z-index: 2;
    }
    .instruction.hidden { display: none; }

    @keyframes pulse {
      0%, 100% { opacity: 0.5; }
      50% { opacity: 1; }
    }

    @keyframes auraPulse {
      0%, 100% { transform: scale(0.98); opacity: 0.75; }
      50% { transform: scale(1.02); opacity: 1; }
    }

    /* Stars */
    .star {
      position: fixed;
      background: #ffd700;
      border-radius: 50%;
      animation: twinkle 3s ease-in-out infinite;
      pointer-events: none;
    }
    @keyframes twinkle {
      0%, 100% { opacity: 0.15; }
      50% { opacity: 0.7; }
    }

    /* Particles container */
    .particles {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      z-index: 50;
    }

    /* Shake animation */
    @keyframes shake {
      0%, 100% { transform: translate(0, 0); }
      10% { transform: translate(-4px, -2px); }
      20% { transform: translate(4px, 2px); }
      30% { transform: translate(-3px, 3px); }
      40% { transform: translate(3px, -3px); }
      50% { transform: translate(-2px, 2px); }
      60% { transform: translate(2px, -2px); }
      70% { transform: translate(-3px, 1px); }
      80% { transform: translate(3px, -1px); }
      90% { transform: translate(-1px, 2px); }
    }
    .cookie-scene.shaking {
      animation: shake 0.5s ease-in-out;
    }

    @media (max-width: 640px) {
      .top-bar {
        padding: 14px 16px;
      }

      .header {
        margin-top: 84px;
      }

      .cookie-scene {
        height: 304px;
      }

      .cookie-half {
        top: 46px;
        width: 172px;
        height: 214px;
      }

      .intro-card {
        width: min(100%, 420px);
        flex-direction: column;
        align-items: stretch;
      }

      .intro-panel {
        width: 100%;
        min-width: 0;
        max-width: none;
      }

      .intro-value {
        white-space: normal;
      }

      .mini-slip {
        width: min(92vw, 460px);
        min-width: 0;
        padding: 24px 18px;
      }

      .mini-slip .slip-text {
        font-size: 1.08rem;
        white-space: normal;
        word-break: keep-all;
      }

      .mini-slip .slip-meta {
        justify-content: flex-start;
      }
    }

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