:root {
    --parchment: #f4ead8;
    --parchment-dark: #e8d9bc;
    --parchment-deep: #d4bc96;
    --ink: #2c1f0e;
    --ink-faded: #5c4a30;
    --gold: #b8860b;
    --gold-light: #d4a843;
    --gold-pale: #f0d890;
    --crimson: #7a1c2e;
    --forest: #1e3d2f;
    --shadow: rgba(44, 31, 14, 0.25);
  }

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

  body {
    background: #1a120a;
    font-family: 'Cormorant Garamond', Georgia, serif;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M10 0L12 8L20 10L12 12L10 20L8 12L0 10L8 8Z' fill='%23d4a843' opacity='0.8'/%3E%3C/svg%3E") 10 10, auto;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
      radial-gradient(ellipse at 20% 50%, rgba(40, 20, 5, 0.8) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 50%, rgba(20, 30, 10, 0.6) 0%, transparent 60%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
  }

  .stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold-pale);
    border-radius: 50%;
    animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
  }
  @keyframes twinkle {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.5); }
  }

  .page-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 200px;
  }

  .header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
  }
  .header-ornament {
    font-size: 28px;
    color: var(--gold);
    letter-spacing: 20px;
    display: block;
    animation: float 4s ease-in-out infinite;
    margin-bottom: 8px;
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
  .header h1 {
    font-family: 'Uncial Antiqua', serif;
    font-size: clamp(28px, 5vw, 52px);
    color: var(--gold-light);
    letter-spacing: 6px;
    text-shadow: 0 0 40px rgba(212, 168, 67, 0.4), 2px 2px 0 rgba(0,0,0,0.5);
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .header p {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: var(--parchment-dark);
    font-size: 16px;
    opacity: 0.8;
    letter-spacing: 2px;
  }
  .divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px auto;
    width: fit-content;
  }
  .divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }
  .divider-gem {
    width: 8px;
    height: 8px;
    background: var(--gold-light);
    transform: rotate(45deg);
    box-shadow: 0 0 12px var(--gold-light);
  }

  .album-book {
    width: 100%;
    max-width: 900px;
    background: var(--parchment);
    border-radius: 4px 16px 16px 4px;
    box-shadow:
      -8px 0 0 #c9a87a,
      -16px 0 0 #a07850,
      -20px 4px 40px rgba(0,0,0,0.6),
      0 8px 60px rgba(0,0,0,0.5),
      inset 0 0 100px rgba(160, 120, 60, 0.15);
    padding: 40px;
    position: relative;
    min-height: 500px;
  }

  .album-book::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #b8860b 0%, #8b6508 30%, #c9a010 60%, #7a5200 100%);
    border-radius: 4px 0 0 4px;
  }

  .album-book::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px 16px 16px 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
  }

  .album-title-bar {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--parchment-deep);
    position: relative;
  }
  .album-title-bar h2 {
    font-family: 'Uncial Antiqua', serif;
    color: var(--ink);
    font-size: 20px;
    letter-spacing: 4px;
    font-weight: 400;
  }
  .album-title-bar .page-num {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: var(--ink-faded);
    font-size: 13px;
    margin-top: 6px;
  }

  /* Back-to-cover button */
  .back-to-cover-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid var(--parchment-deep);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--ink-faded);
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
    line-height: 1;
  }
  .back-to-cover-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 12px rgba(184,134,11,0.2);
    transform: translateY(-50%) scale(1.1);
  }

  /* Tray complete state */
  .tray-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 0 4px;
    width: 100%;
    animation: stickerPeel 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  .tray-complete-title {
    font-family: 'Uncial Antiqua', serif;
    color: var(--gold-light);
    font-size: 14px;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(212,168,67,0.35);
  }
  .tray-complete-sub {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: var(--parchment-dark);
    font-size: 12px;
    opacity: 0.55;
    letter-spacing: 1px;
  }
  .tray-reset-btn {
    margin-top: 4px;
    padding: 8px 26px;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 2px;
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 13px;
    color: var(--gold-light);
    letter-spacing: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, box-shadow 0.3s, color 0.3s;
  }
  .tray-reset-btn:hover {
    background: rgba(184,134,11,0.12);
    box-shadow: 0 0 18px rgba(184,134,11,0.2);
    color: var(--gold-pale);
  }

  .corner {
    position: absolute;
    width: 50px;
    height: 50px;
    pointer-events: none;
  }
  .corner svg { width: 100%; height: 100%; }
  .corner-tl { top: 12px; left: 18px; }
  .corner-tr { top: 12px; right: 12px; transform: scaleX(-1); }
  .corner-bl { bottom: 12px; left: 18px; transform: scaleY(-1); }
  .corner-br { bottom: 12px; right: 12px; transform: scale(-1); }

  .stickers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    padding: 10px 0;
    position: relative;
    z-index: 1;
  }

  .sticker-slot {
    aspect-ratio: 3/4;
    border: 1.5px dashed var(--parchment-deep);
    border-radius: 6px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(212, 188, 150, 0.08);
    transition: border-color 0.3s;
  }
  .sticker-slot.filled {
    border-color: transparent;
    border-style: solid;
  }
  .sticker-slot .slot-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11px;
    color: var(--parchment-deep);
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-style: italic;
  }
  .sticker-slot .slot-empty-icon {
    font-size: 28px;
    opacity: 0.2;
    user-select: none;
  }
  .placed-sticker {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
  }
  .placed-sticker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
  }
  .placed-sticker::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(44, 31, 14, 0.2), 0 2px 8px rgba(44, 31, 14, 0.3);
    pointer-events: none;
  }
  .placed-sticker::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 30px;
    height: 14px;
    background: rgba(240, 216, 144, 0.55);
    border-radius: 2px;
    z-index: 2;
  }
  .placed-sticker .sticker-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 6px 4px;
    background: linear-gradient(transparent, rgba(44, 31, 14, 0.65));
    color: var(--gold-pale);
    font-size: 10px;
    font-family: 'IM Fell English', serif;
    font-style: italic;
    text-align: center;
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .placed-sticker:hover .sticker-label { opacity: 1; }

  @keyframes stickerPeel {
    0% { transform: perspective(400px) rotateY(90deg) scale(0.8); opacity: 0; }
    60% { transform: perspective(400px) rotateY(-10deg) scale(1.05); opacity: 1; }
    100% { transform: perspective(400px) rotateY(0deg) scale(1); opacity: 1; }
  }
  .sticker-enter {
    animation: stickerPeel 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  .pack-tray {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tray-tab {
    background: var(--parchment-deep);
    border-radius: 12px 12px 0 0;
    padding: 6px 28px 4px;
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 12px;
    color: var(--ink-faded);
    letter-spacing: 2px;
    cursor: pointer;
    border: 1px solid var(--parchment-deep);
    border-bottom: none;
    transition: background 0.2s;
    user-select: none;
    position: relative;
    z-index: 1;
  }
  .tray-tab:hover { background: var(--parchment); }

  .pack-tray.collapsed .tray-tab {
    border-radius: 12px 12px 0 0;
  }

  .tray-body {
    width: 100%;
    background: linear-gradient(180deg, #2a1e0f 0%, #1a110a 100%);
    border-top: 2px solid var(--gold);
    padding: 16px 20px 24px;
    transition: max-height 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), padding 0.4s;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    max-height: 200px;
  }
  .tray-body.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-width: 0;
  }

  .tray-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .tray-header h3 {
    font-family: 'Uncial Antiqua', serif;
    color: var(--gold-light);
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 400;
  }
  .tray-count {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: var(--parchment-dark);
    font-size: 12px;
    opacity: 0.7;
  }

  .packs-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .packs-row::-webkit-scrollbar { display: none; }

  .pack {
    flex-shrink: 0;
    width: 80px;
    height: 110px;
    position: relative;
    cursor: pointer;
    transform-origin: bottom center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .pack:hover {
    transform: translateY(-12px) rotate(-2deg);
  }
  .pack:active {
    transform: translateY(-4px) scale(0.95);
  }

  .pack-inner {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .pack-body {
    position: absolute;
    inset: 0;
    border-radius: 3px 3px 4px 4px;
    overflow: hidden;
  }
  .pack-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
  }

  .pack-flap {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 44%;
    overflow: hidden;
    z-index: 2;
  }
  .pack-flap::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: inherit;
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  }

  .pack[data-style="parchment"] .pack-bg { background: linear-gradient(160deg, #e8d9bc, #c9a87a); }
  .pack[data-style="parchment"] .pack-flap { background: #d4bc96; }
  .pack[data-style="parchment"] .pack-flap::after { background: #b8986a; }
  .pack[data-style="crimson"] .pack-bg { background: linear-gradient(160deg, #8a2238, #5c1220); }
  .pack[data-style="crimson"] .pack-flap { background: #7a1c2e; }
  .pack[data-style="crimson"] .pack-flap::after { background: #5c1220; }
  .pack[data-style="forest"] .pack-bg { background: linear-gradient(160deg, #2a5040, #152e22); }
  .pack[data-style="forest"] .pack-flap { background: #1e3d2f; }
  .pack[data-style="forest"] .pack-flap::after { background: #152e22; }
  .pack[data-style="midnight"] .pack-bg { background: linear-gradient(160deg, #1e2545, #0c1228); }
  .pack[data-style="midnight"] .pack-flap { background: #181e3a; }
  .pack[data-style="midnight"] .pack-flap::after { background: #0c1228; }

  .pack-seal {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #f0d890, #b8860b);
    border: 1px solid rgba(240, 216, 144, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    position: relative;
    z-index: 3;
    margin-top: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    animation: sealPulse 3s ease-in-out infinite;
  }
  @keyframes sealPulse {
    0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 0 0 0 rgba(184, 134, 11, 0); }
    50% { box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 0 0 6px rgba(184, 134, 11, 0); }
  }

  .pack-peek {
    position: absolute;
    bottom: 0;
    left: 4px;
    right: 4px;
    height: 35px;
    border-radius: 2px;
    overflow: hidden;
    z-index: 1;
  }
  .pack-peek img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) brightness(0.6);
  }

  .pack-label {
    position: absolute;
    bottom: 38px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 9px;
    letter-spacing: 1px;
    padding: 0 4px;
  }
  .pack[data-style="parchment"] .pack-label { color: var(--ink-faded); }
  .pack[data-style="crimson"] .pack-label,
  .pack[data-style="forest"] .pack-label,
  .pack[data-style="midnight"] .pack-label { color: rgba(240, 216, 144, 0.7); }

  /* Pack open animation */
  @keyframes packOpen {
    0% { transform: translateY(-12px) rotate(-2deg); }
    30% { transform: translateY(-20px) rotate(5deg) scale(1.05); }
    60% { transform: translateY(100px) rotate(-10deg) scale(0.8); opacity: 0.5; }
    100% { transform: translateY(200px) scale(0.3); opacity: 0; }
  }
  .pack.opening {
    animation: packOpen 0.7s cubic-bezier(0.4, 0, 1, 1) forwards;
    pointer-events: none;
  }

  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
  }
  .lightbox.open {
    opacity: 1;
    pointer-events: all;
  }
  .lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 6, 2, 0.88);
    backdrop-filter: blur(4px);
  }
  .lightbox-frame {
    position: relative;
    z-index: 1;
    max-width: min(85vw, 600px);
    max-height: 85vh;
    background: var(--parchment);
    border-radius: 4px;
    padding: 16px 16px 40px;
    box-shadow: 0 0 0 1px var(--gold), 0 0 60px rgba(184, 134, 11, 0.3), 0 20px 80px rgba(0,0,0,0.8);
    transform: scale(0.8) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
  }
  .lightbox.open .lightbox-frame {
    transform: scale(1) translateY(0);
  }
  .lightbox-frame img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    border-radius: 2px;
  }
  .lightbox-caption {
    text-align: center;
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: var(--ink-faded);
    font-size: 13px;
    margin-top: 12px;
  }
  .lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s, background 0.2s;
    font-family: serif;
  }
  .lightbox-close:hover { transform: scale(1.15) rotate(90deg); background: var(--gold-light); }

  .burst-particle {
    position: fixed;
    pointer-events: none;
    z-index: 150;
    font-size: 16px;
    animation: burstFly 1s ease-out forwards;
  }
  @keyframes burstFly {
    0% { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--dr)) scale(0.3); }
  }

  .progress-wrap {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    text-align: center;
  }
  .progress-label {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: var(--ink-faded);
    font-size: 12px;
    margin-bottom: 8px;
  }
  .progress-bar-bg {
    height: 6px;
    background: var(--parchment-dark);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--parchment-deep);
  }
  .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 0 8px rgba(184, 134, 11, 0.5);
  }

  /* Responsive */
  @media (max-width: 600px) {
    .album-book { padding: 24px 16px; }
    .stickers-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .header h1 { letter-spacing: 2px; }
    .pack { width: 68px; height: 94px; }
  }

  /* Scroll shimmer on sticker */
  .placed-sticker:hover img {
    filter: brightness(1.08) saturate(1.1);
    transition: filter 0.3s;
  }

  .no-images-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: var(--ink-faded);
    font-size: 15px;
    line-height: 1.8;
  }
  .no-images-msg strong {
    display: block;
    font-size: 18px;
    color: var(--ink);
    font-family: 'Uncial Antiqua', serif;
    font-weight: 400;
    margin-bottom: 12px;
  }

  .flourish {
    text-align: center;
    color: var(--gold);
    font-size: 22px;
    letter-spacing: 8px;
    margin: 16px 0 8px;
    opacity: 0.7;
  }

  .cover-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a120a;
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .cover-overlay.opening {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
  }

  .cover-book {
    position: relative;
    width: min(480px, 90vw);
    aspect-ratio: 3/4;
    display: flex;
    filter: drop-shadow(-24px 12px 60px rgba(0,0,0,0.8));
  }

  .cover-spine {
    width: 28px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #c9a010 0%, #7a5200 30%, #b8860b 60%, #5a3c00 100%);
    border-radius: 3px 0 0 3px;
    box-shadow: inset -4px 0 8px rgba(0,0,0,0.4);
    position: relative;
  }
  .cover-spine::after {
    content: '';
    position: absolute;
    inset: 10% 3px;
    background: linear-gradient(180deg, transparent, rgba(212,168,67,0.2), transparent);
    border-radius: 2px;
  }

  .cover-face {
    flex: 1;
    background: linear-gradient(135deg, #2a1a08 0%, #1e1206 40%, #2d1e0a 100%);
    border-radius: 0 8px 8px 0;
    border: 1px solid rgba(184,134,11,0.4);
    border-left: none;
    padding: 36px 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.5), inset 0 0 40px rgba(40,20,5,0.6);
  }

  .cover-face::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: 0 8px 8px 0;
  }

  .cover-face::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(184,134,11,0.25);
    border-radius: 4px;
    pointer-events: none;
  }

  .cover-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 2;
  }
  .cover-corner svg { width: 100%; height: 100%; }
  .cover-corner-tl { top: 18px; left: 18px; }
  .cover-corner-tr { top: 18px; right: 18px; transform: scaleX(-1); }
  .cover-corner-bl { bottom: 18px; left: 18px; transform: scaleY(-1); }
  .cover-corner-br { bottom: 18px; right: 18px; transform: scale(-1); }

  .cover-top-ornament {
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 14px;
    margin-bottom: 8px;
    animation: float 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
  }

  .cover-ruling {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
    margin: 6px 0;
    position: relative;
    z-index: 1;
  }

  .cover-subtitle-top {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: var(--gold-pale);
    font-size: 11px;
    letter-spacing: 3px;
    opacity: 0.65;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    margin-bottom: 2px;
  }

  .cover-monogram {
    font-size: 38px;
    color: var(--gold-light);
    text-shadow: 0 0 30px rgba(212, 168, 67, 0.5);
    margin: 6px 0 2px;
    animation: float 5s ease-in-out infinite 1s;
    position: relative;
    z-index: 1;
  }

  .cover-title {
    font-family: 'Uncial Antiqua', serif;
    font-size: clamp(22px, 5vw, 36px);
    color: var(--gold-light);
    text-align: center;
    letter-spacing: 4px;
    line-height: 1.3;
    text-shadow: 0 0 40px rgba(212, 168, 67, 0.35), 2px 2px 0 rgba(0,0,0,0.6);
    font-weight: 400;
    margin: 6px 0;
    position: relative;
    z-index: 1;
  }

  .cover-flourish {
    color: var(--gold);
    font-size: 16px;
    letter-spacing: 8px;
    margin: 4px 0 6px;
    opacity: 0.6;
    position: relative;
    z-index: 1;
  }

  .cover-subtitle {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: var(--parchment-dark);
    font-size: 11px;
    text-align: center;
    line-height: 1.7;
    opacity: 0.6;
    letter-spacing: 1px;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
  }

  .cover-open-btn {
    margin-top: 18px;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 2px;
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 13px;
    color: var(--gold-light);
    letter-spacing: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 0 rgba(184,134,11,0);
  }
  .cover-open-btn:hover {
    background: rgba(184,134,11,0.15);
    box-shadow: 0 0 20px rgba(184,134,11,0.25);
    color: var(--gold-pale);
  }
  .cover-btn-ornament {
    font-size: 10px;
    opacity: 0.7;
  }

  .cover-hint {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: var(--parchment-deep);
    font-size: 9px;
    letter-spacing: 2px;
    opacity: 0.4;
    margin-top: 6px;
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite 2s;
  }

  .reset-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 0 8px;
    gap: 8px;
    animation: stickerPeel 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  .reset-complete-msg {
    font-family: 'Uncial Antiqua', serif;
    color: var(--gold-light);
    font-size: 15px;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(212,168,67,0.4);
  }
  .reset-complete-sub {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    color: var(--parchment-dark);
    font-size: 12px;
    opacity: 0.6;
    letter-spacing: 1px;
    margin-bottom: 8px;
  }

  .reset-btn {
    padding: 8px 22px;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 2px;
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 13px;
    color: var(--gold-light);
    letter-spacing: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, box-shadow 0.3s;
  }
  .reset-btn:hover {
    background: rgba(184,134,11,0.12);
    box-shadow: 0 0 16px rgba(184,134,11,0.2);
  }