/*! Dreamweave Halloween games - styles in the Dreamweave brand (night navy, gold, lavender; Cormorant and Karla). Every rule is scoped to .qwh-app so Divi can't leak in. */
.qwh-hub, .qwh-reveal-cat, .qwh-catmark { --qwh-cream: #F0E0C8; }
.qwh-app {
  --qwh-bg: #010F2A; --qwh-surface: #0A1A3A; --qwh-soft: #12244A; --qwh-line: #24345C;
  --qwh-ink: #EDE4D3; --qwh-muted: #B9B2AC; --qwh-ice: #C7B9DC; --qwh-lav: #B6A4CE;
  --qwh-pumpkin: #F2994A; --qwh-gold: #D9B98A;
  --qwh-cream: #F0E0C8;
  --qwh-script: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --qwh-display: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --qwh-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --qwh-mono: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  box-sizing: border-box; max-width: 960px; margin: 0 auto; color: var(--qwh-ink);
  font-family: var(--qwh-body); font-size: 17px; line-height: 1.65; text-align: left; color-scheme: dark;
}
.qwh-app *, .qwh-app *::before, .qwh-app *::after { box-sizing: border-box; }
.qwh-app [hidden] { display: none !important; }
.qwh-app p, .qwh-app h2, .qwh-app h3, .qwh-app fieldset, .qwh-app legend { margin: 0; padding: 0; border: 0; }
.qwh-app .qwh-card {
  position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--qwh-line);
  background-color: var(--qwh-bg);
  background-image:
    radial-gradient(1px 1px at 12% 6%, rgba(255,255,255,.7), transparent 60%), radial-gradient(1px 1px at 78% 3%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 42% 9%, rgba(255,255,255,.6), transparent 60%), radial-gradient(1px 1px at 90% 14%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(800px 460px at 92% -100px, rgba(242,153,74,.22), transparent 70%), radial-gradient(900px 520px at 0% -160px, rgba(182,164,206,.16), transparent 70%);
  background-repeat: no-repeat; box-shadow: 0 24px 60px -30px rgba(0,0,0,.7);
}
.qwh-app .qwh-head { padding: 30px 32px 18px; border-bottom: 1px solid var(--qwh-line); }
.qwh-app .qwh-wordmark { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; line-height: 1; color: var(--qwh-gold); }
.qwh-app .qwh-mark { display: block; width: 30px; height: 30px; flex: none; }
.qwh-app .qwh-qod { font-family: var(--qwh-display); font-size: 1.45rem; font-weight: 600; letter-spacing: .02em; color: var(--qwh-cream); line-height: 1; }
.qwh-app .qwh-hyp { font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--qwh-lav); padding-top: .2em; }
.qwh-app .qwh-title { font-family: var(--qwh-display); font-weight: 500; font-size: clamp(2.1rem, 5.5vw, 2.9rem); line-height: 1.05; color: var(--qwh-cream); }
.qwh-app .qwh-title em { font-style: italic; color: var(--qwh-pumpkin); }
.qwh-app .qwh-body { padding: 24px 32px 32px; display: flex; flex-direction: column; gap: 18px; }
.qwh-app .qwh-lead { color: var(--qwh-muted); max-width: 64ch; }
.qwh-app .qwh-lead + .qwh-lead { margin-top: 10px; }
.qwh-app .qwh-note { padding: 18px 32px 28px; color: var(--qwh-muted); }
.qwh-app .qwh-small, .qwh-app .qwh-muted { font-size: 13.5px; color: var(--qwh-muted); }
.qwh-app .qwh-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qwh-app .qwh-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; margin: 0;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none;
  color: var(--qwh-ink); background: transparent; border: 1px solid #3B4B78; border-radius: 999px; transition: border-color .15s, filter .15s, transform .1s, background-color .15s;
}
.qwh-app .qwh-btn:hover { border-color: var(--qwh-gold); }
.qwh-app .qwh-btn:active { transform: translateY(1px); }
.qwh-app .qwh-btn-primary { background: var(--qwh-gold); border-color: var(--qwh-gold); color: var(--qwh-bg); font-weight: 700; }
.qwh-app .qwh-btn-primary:hover { filter: brightness(1.08); }
.qwh-app .qwh-btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13.5px; }
.qwh-app .qwh-btn[disabled] { opacity: .5; cursor: default; }
.qwh-app .qwh-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--qwh-ice); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qwh-app :focus-visible { outline: 2px solid var(--qwh-gold); outline-offset: 2px; }

/* ---------------- The Spirit Board ---------------- */
.qwh-app .qwh-board { position: relative; width: 100%; aspect-ratio: 1000 / 640; border-radius: 22px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.qwh-app .qwh-board-svg { display: block; width: 100%; height: 100%; }
.qwh-app .qwh-board-svg text { font-family: var(--qwh-display); fill: #F0E0C8; text-anchor: middle; dominant-baseline: middle; transition: fill .4s, filter .4s; }
.qwh-app .qwh-l { font-size: 52px; font-weight: 600; }
.qwh-app .qwh-n { font-size: 40px; font-weight: 500; }
.qwh-app .qwh-yn { font-size: 40px; font-style: italic; letter-spacing: .06em; }
.qwh-app .qwh-bye { font-size: 38px; letter-spacing: .3em; }
.qwh-app .qwh-sig { font-family: var(--qwh-display) !important; font-size: 28px; font-weight: 600; letter-spacing: .06em; fill: rgba(240,224,200,.55) !important; }
.qwh-app .qwh-board-svg .is-lit { fill: #F1DDB8; filter: drop-shadow(0 0 8px rgba(217,185,138,.95)); }
.qwh-app .qwh-plan { position: absolute; width: 13%; transform: translate(-50%, -37%); pointer-events: none; filter: drop-shadow(0 0 14px rgba(217,185,138,.45)) drop-shadow(0 10px 14px rgba(0,0,0,.55)); }
.qwh-app.is-entranced .qwh-plan { filter: drop-shadow(0 0 24px rgba(217,185,138,.8)) drop-shadow(0 10px 14px rgba(0,0,0,.55)); }
.qwh-app .qwh-plan svg { display: block; width: 100%; height: auto; }
.qwh-app .qwh-answer { min-height: 1.4em; text-align: center; font-family: var(--qwh-display); font-size: clamp(2rem, 7vw, 3.2rem); letter-spacing: .3em; padding-left: .3em; color: var(--qwh-gold); text-shadow: 0 0 18px rgba(217,185,138,.5); opacity: 0; transition: opacity .6s; }
.qwh-app .qwh-answer.is-on { opacity: 1; }
.qwh-app .qwh-panel { display: flex; flex-direction: column; gap: 16px; }
.qwh-app .qwh-qs legend { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--qwh-gold); margin-bottom: 10px; }
.qwh-app .qwh-qs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qwh-app .qwh-qs legend { grid-column: 1 / -1; }
.qwh-app .qwh-q { position: relative; display: flex; cursor: pointer; margin: 0; }
.qwh-app .qwh-q input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.qwh-app .qwh-q span { display: block; width: 100%; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--qwh-line); background: var(--qwh-surface); font-family: var(--qwh-display); font-size: 1.2rem; font-style: italic; line-height: 1.3; }
.qwh-app .qwh-q input:checked + span { border-color: var(--qwh-gold); background: var(--qwh-soft); box-shadow: inset 0 0 0 1px var(--qwh-gold); }
.qwh-app .qwh-q input:focus-visible + span { outline: 2px solid var(--qwh-gold); outline-offset: 2px; }
.qwh-app .qwh-q-shown { font-family: var(--qwh-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--qwh-muted); text-align: center; }
.qwh-app .qwh-line { font-family: var(--qwh-display); font-style: italic; font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.35; text-align: center; min-height: 2.8em; color: var(--qwh-cream); }
.qwh-app .qwh-line.is-in { animation: qwh-fade 1.6s ease; }
.qwh-app .qwh-line-slow.is-in { animation-duration: 2.6s; }
.qwh-app .qwh-line-slow { line-height: 1.45; max-width: 30ch; margin: 0 auto; }
@keyframes qwh-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.qwh-app .qwh-panel > .qwh-row { justify-content: center; }
.qwh-app .qwh-result { padding: 20px 22px; border-radius: 12px; border: 1px solid rgba(217,185,138,.5); background: radial-gradient(500px 200px at 50% -40px, rgba(217,185,138,.16), transparent 70%), var(--qwh-surface); display: flex; flex-direction: column; gap: 10px; text-align: center; outline: none; }
.qwh-app .qwh-result-k { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--qwh-gold); }
.qwh-app .qwh-word { font-family: var(--qwh-display); font-size: clamp(2.2rem, 7vw, 3rem); letter-spacing: .14em; color: var(--qwh-cream); line-height: 1.1; }
.qwh-app .qwh-rec a { color: var(--qwh-gold); font-weight: 600; }

/* ---------------- Trick or Trance ---------------- */
.qwh-app .qwh-count { font-family: var(--qwh-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--qwh-gold); }
.qwh-app .qwh-pumpkins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px; border-radius: 18px; background: radial-gradient(ellipse at 50% 120%, rgba(78,107,58,.35), transparent 60%), linear-gradient(180deg, rgba(18,36,74,.45), rgba(1,15,42,.2)); }
.qwh-app .qwh-pumpkins > div { min-width: 0; }
.qwh-app .qwh-pk { position: relative; display: block; width: 100%; aspect-ratio: 13 / 11; margin: 0; padding: 6% 8% 4%; border: 0; border-radius: 16px; background: transparent; cursor: pointer; transition: transform .2s; }
.qwh-app .qwh-pk svg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 12px rgba(0,0,0,.5)); }
.qwh-app .qwh-pk .qwh-face { fill: #2A1405; transition: fill .4s; }
.qwh-app .qwh-pk .qwh-lid { transition: transform .5s; transform-origin: 65px 20px; }
.qwh-app .qwh-pk-glow { position: absolute; inset: 15% 10% 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,190,90,.5), transparent 65%); opacity: 0; transition: opacity .5s; z-index: 0; }
.qwh-app .qwh-pk:hover:not(.is-open):not([disabled]) { transform: translateY(-4px) rotate(-1.5deg); }
.qwh-app .qwh-pk:hover:not(.is-open):not([disabled]) .qwh-pk-glow { opacity: .5; }
.qwh-app .qwh-pk.is-open { cursor: default; }
.qwh-app .qwh-pk.is-open .qwh-face { fill: #FFD27A; filter: drop-shadow(0 0 6px #FFB14A); animation: qwh-flicker 2.6s infinite; }
.qwh-app .qwh-pk.is-open .qwh-lid { transform: translate(6px, -10px) rotate(18deg); }
.qwh-app .qwh-pk.is-open .qwh-pk-glow { opacity: 1; }
.qwh-app .qwh-pk.is-gold.is-open .qwh-pk-glow { background: radial-gradient(circle, rgba(255,231,168,.85), transparent 65%); }
.qwh-app .qwh-pk.is-done { opacity: .45; filter: saturate(.5); }
@keyframes qwh-flicker { 0%, 100% { opacity: 1; } 45% { opacity: .82; } 50% { opacity: .95; } 70% { opacity: .78; } }
.qwh-app .qwh-reveals { display: grid; gap: 12px; }
.qwh-app .qwh-reveal { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--qwh-line); background: var(--qwh-surface); display: flex; flex-direction: column; gap: 6px; outline: none; animation: qwh-fade .8s ease; }
.qwh-app .qwh-reveal h3 { font-family: var(--qwh-display); font-weight: 500; font-size: 1.7rem; line-height: 1.15; color: var(--qwh-cream); }
.qwh-app .qwh-kind { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.qwh-app .is-trick { border-color: rgba(201,188,255,.5); } .qwh-app .is-trick .qwh-kind { color: var(--qwh-lav); }
.qwh-app .is-treat { border-color: rgba(242,153,74,.55); } .qwh-app .is-treat .qwh-kind { color: var(--qwh-pumpkin); }
.qwh-app .is-golden { border-color: var(--qwh-gold); background: radial-gradient(500px 200px at 50% -60px, rgba(217,185,138,.25), transparent 70%), var(--qwh-surface); } .qwh-app .is-golden .qwh-kind { color: var(--qwh-gold); }
.qwh-app .qwh-code { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--qwh-gold); }
.qwh-app .qwh-code span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--qwh-muted); }
.qwh-app .qwh-code code { font-family: var(--qwh-mono); font-size: 20px; letter-spacing: .1em; color: var(--qwh-gold); background: none; padding: 0; }
.qwh-app .qwh-finale { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-top: 10px; border-top: 1px solid var(--qwh-line); }
.qwh-app .qwh-finale h3 { font-family: var(--qwh-display); font-weight: 500; font-style: italic; font-size: 2.2rem; color: var(--qwh-cream); padding-top: 8px; }
.qwh-app .qwh-spell { width: 100%; max-width: 340px; height: auto; border-radius: 10px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); }
.qwh-app .qwh-msg { font-size: 14px; color: var(--qwh-muted); min-height: 1.2em; }

@media (max-width: 640px) {
  .qwh-app .qwh-head { padding: 24px 20px 14px; }
  .qwh-app .qwh-body { padding: 18px 16px 24px; }
  .qwh-app .qwh-qs { grid-template-columns: 1fr; }
  .qwh-app .qwh-pumpkins { gap: 6px; padding: 10px; }
  .qwh-app .qwh-board { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .qwh-app .qwh-pk.is-open .qwh-face, .qwh-app .qwh-line.is-in, .qwh-app .qwh-reveal { animation: none; }
  .qwh-app .qwh-pk, .qwh-app .qwh-pk .qwh-lid { transition: none; }
}

/* ---------------- Midnight Manor ---------------- */
.qwh-app .qwh-manor-hall svg { display: block; width: 100%; height: auto; }
.qwh-app .qwh-scene { display: flex; flex-direction: column; gap: 14px; animation: qwh-fade .9s ease; }
.qwh-app .qwh-crumbs { font-family: var(--qwh-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--qwh-muted); }
.qwh-app .qwh-scene-t { font-family: var(--qwh-display); font-weight: 500; font-style: italic; font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.1; color: var(--qwh-cream); outline: none; }
.qwh-app .qwh-scene-p { font-family: var(--qwh-display); font-size: 1.3rem; line-height: 1.6; color: #E6DDCD; max-width: 60ch; }
.qwh-app .qwh-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 6px; }
.qwh-app .qwh-door { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 14px; border-radius: 14px; border: 1px solid var(--qwh-line); background: var(--qwh-surface); color: var(--qwh-ink); font: inherit; font-family: var(--qwh-display); font-size: 1.2rem; font-style: italic; line-height: 1.25; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.qwh-app .qwh-door svg { width: 46px; height: auto; }
.qwh-app .qwh-door:hover { border-color: var(--qwh-gold); transform: translateY(-2px); box-shadow: 0 0 26px -8px rgba(217,185,138,.5); }
.qwh-app .qwh-ending { padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(217,185,138,.55); background: radial-gradient(500px 200px at 50% -60px, rgba(217,185,138,.2), transparent 70%), var(--qwh-surface); text-align: center; display: flex; flex-direction: column; gap: 6px; }
.qwh-app .qwh-ending-n { font-family: var(--qwh-display); font-style: italic; font-size: 1.9rem; color: var(--qwh-cream); line-height: 1.15; }

/* ---------------- The Potion Shelf ---------------- */
.qwh-app .qwh-shelves { display: flex; flex-direction: column; gap: 18px; }
.qwh-app .qwh-shelf legend { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.qwh-app .qwh-shelf legend b { font-family: var(--qwh-display); font-size: 1.5rem; font-weight: 500; font-style: italic; color: var(--qwh-cream); }
.qwh-app .qwh-shelf legend span { font-size: 14px; color: var(--qwh-muted); }
.qwh-app .qwh-bottles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; position: relative; z-index: 1; }
.qwh-app .qwh-plank { height: 12px; margin-top: -4px; border-radius: 3px; background: linear-gradient(180deg, #5A3E26, #3A2716); box-shadow: 0 8px 14px -6px rgba(0,0,0,.6); }
.qwh-app .qwh-bottle { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; text-align: center; transition: transform .2s, background .2s; }
.qwh-app .qwh-bottle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.qwh-app .qwh-bottle-b svg { width: 52px; height: auto; display: block; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); transition: filter .3s; }
.qwh-app .qwh-bottle-n { font-family: var(--qwh-display); font-style: italic; font-size: 1.1rem; line-height: 1.2; color: var(--qwh-ink); }
.qwh-app .qwh-bottle:hover { transform: translateY(-3px); }
.qwh-app .qwh-bottle:has(input:checked) { background: var(--qwh-soft); border-color: var(--qwh-gold); }
.qwh-app .qwh-bottle:has(input:checked) svg { filter: drop-shadow(0 0 14px rgba(217,185,138,.7)); }
.qwh-app .qwh-bottle:has(input:focus-visible) { outline: 2px solid var(--qwh-gold); outline-offset: 2px; }
.qwh-app .qwh-brew-row { justify-content: center; }
.qwh-app .qwh-brew { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.qwh-app .qwh-cauldron svg { display: block; width: 220px; max-width: 60%; margin: 0 auto; }
.qwh-app .qwh-bubbles circle { fill: rgba(255,255,255,.55); animation: qwh-bubble 2.4s ease-in-out infinite; }
.qwh-app .qwh-bubbles circle:nth-child(2) { animation-delay: .6s; } .qwh-app .qwh-bubbles circle:nth-child(3) { animation-delay: 1.2s; } .qwh-app .qwh-bubbles circle:nth-child(4) { animation-delay: 1.8s; }
@keyframes qwh-bubble { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }

/* ---------------- Thirteen Candles ---------------- */
.qwh-app.qwh-game-candles .qwh-card { transition: background-color 1.2s; }
.qwh-app .qwh-candle-row { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); align-items: end; gap: 4px; padding: 26px 10px 0; border-radius: 16px; background: radial-gradient(ellipse at 50% 100%, rgba(255,190,90, calc(.28 * (1 - var(--qwh-dim, 0)))), transparent 70%); transition: background 1.2s; }
.qwh-app .qwh-candle svg { display: block; width: 100%; height: auto; }
.qwh-app .qwh-candle .qwh-flame { transform-origin: 15px 100%; transform-box: fill-box; animation: qwh-flame 1.8s ease-in-out infinite; filter: drop-shadow(0 0 6px #FFB14A); transition: opacity .5s, transform .5s; }
.qwh-app .qwh-candle:nth-child(2n) .qwh-flame { animation-duration: 2.3s; } .qwh-app .qwh-candle:nth-child(3n) .qwh-flame { animation-duration: 1.5s; }
@keyframes qwh-flame { 0%, 100% { transform: scale(1, 1) rotate(-1deg); } 50% { transform: scale(.92, 1.08) rotate(2deg); } }
.qwh-app.is-inhale .qwh-candle.is-lit .qwh-flame { transform: scale(1.12, 1.25); }
.qwh-app .qwh-candle .qwh-smoke { opacity: 0; }
.qwh-app .qwh-candle.is-out .qwh-flame { opacity: 0; animation: none; }
.qwh-app .qwh-candle.is-out .qwh-smoke { animation: qwh-smoke 2.4s ease-out forwards; }
@keyframes qwh-smoke { 0% { opacity: .9; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-24px); } }
.qwh-app .qwh-cue { text-align: center; font-family: var(--qwh-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--qwh-gold); min-height: 1.4em; }
.qwh-app .qwh-blow { min-width: 240px; }
.qwh-app.is-dark .qwh-card { background-color: #000817; }
.qwh-app .qwh-darkness { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; animation: qwh-fade 2s ease; }
@media (max-width: 640px) { .qwh-app .qwh-candle-row { gap: 2px; padding: 18px 4px 0; } .qwh-app .qwh-bottle-b svg { width: 42px; } }
@media (prefers-reduced-motion: reduce) { .qwh-app .qwh-candle .qwh-flame, .qwh-app .qwh-bubbles circle, .qwh-app .qwh-scene, .qwh-app .qwh-darkness { animation: none; } }

/* ---------------- The Halloween hub ---------------- */
.qwh-hub { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; font-family: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif; color: #EDE4D3; }
.qwh-hub .qwh-hub-head { border-radius: 16px; border: 1px solid #24345C; background: radial-gradient(800px 360px at 92% -100px, rgba(242,153,74,.22), transparent 70%), radial-gradient(800px 400px at 0% -160px, rgba(182,164,206,.16), transparent 70%), #010F2A; padding-bottom: 18px; }
.qwh-hub .qwh-head { padding: 26px 28px 12px; border: 0; }
.qwh-hub .qwh-wordmark { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; line-height: 1; color: #D9B98A; }
.qwh-hub .qwh-mark { display: block; width: 30px; height: 30px; flex: none; }
.qwh-hub .qwh-qod { font-family: "Cormorant", "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; font-weight: 600; letter-spacing: .02em; color: var(--qwh-cream); line-height: 1; }
.qwh-hub .qwh-hyp { font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #B6A4CE; padding-top: .2em; }
.qwh-hub .qwh-title { margin: 0; font-family: "Cormorant", "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: clamp(2.1rem, 5.5vw, 2.9rem); line-height: 1.05; color: var(--qwh-cream); }
.qwh-hub .qwh-title em { font-style: italic; color: #F2994A; }
.qwh-hub .qwh-hub-head > .qwh-lead { margin: 0 28px 10px; color: #B9B2AC; }
.qwh-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 28px; }
.qwh-tab { display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 8px 16px; border-radius: 999px; border: 1px solid #24345C; background: #0A1A3A; color: #EDE4D3; font: inherit; font-family: "Cormorant", "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.15rem; line-height: 1.1; cursor: pointer; transition: border-color .15s, background .15s; }
.qwh-tab:hover { border-color: #D9B98A; }
.qwh-tab[aria-selected="true"] { background: #D9B98A; border-color: #D9B98A; color: #010F2A; }
.qwh-tab:focus-visible { outline: 2px solid #D9B98A; outline-offset: 2px; }
.qwh-hub [role="tabpanel"][hidden] { display: none !important; }
.qwh-hub .qwh-app { max-width: none; }
@media (max-width: 640px) { .qwh-hub .qwh-head { padding: 22px 18px 10px; } .qwh-tabs { padding: 0 16px; gap: 6px; } .qwh-tab { font-size: 1.02rem; padding: 6px 12px; min-height: 36px; } }
.qwh-hub [role="tabpanel"] .qwh-wordmark { display: none; }

/* ---------------- The secret: the black cat's marks and reveal ---------------- */
.qwh-hub .qwh-hub-head, .qwh-app .qwh-head { position: relative; }
.qwh-catmark { position: absolute; top: 18px; right: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 999px; border: 1px solid #24345C; background: rgba(1,15,42,.75); color: #B9B2AC; font-family: "Karla", system-ui, sans-serif; font-size: 13px; line-height: 1; text-decoration: none; }
.qwh-catmark svg { width: 30px; height: 30px; display: block; }
.qwh-catmark svg path:first-child, .qwh-app .qwh-th-lockcat svg path:first-child, .qwh-app .qwh-th-cat svg path:first-child, .qwh-reveal-cat-cat svg path:first-child { stroke: #3B4B78; stroke-width: 1; }
.qwh-app .qwh-th-lockcat svg path:nth-child(2), .qwh-app .qwh-th-cat svg path:nth-child(2) { stroke: #0F2350; }
.qwh-catmark.is-open { border-color: #D9B98A; color: #D9B98A; box-shadow: 0 0 22px -6px rgba(217,185,138,.6); animation: qwh-catglow 3s ease-in-out infinite; }
.qwh-catmark.is-open:hover { color: var(--qwh-cream); }
.qwh-catmark:focus-visible { outline: 2px solid #D9B98A; outline-offset: 2px; }
.qwh-catdots { display: inline-flex; gap: 3px; }
.qwh-catdots i { display: block; width: 6px; height: 6px; border-radius: 50%; border: 1px solid #4A5A88; }
.qwh-catdots i.is-on { background: #D9B98A; border-color: #D9B98A; box-shadow: 0 0 6px rgba(217,185,138,.7); }
@keyframes qwh-catglow { 50% { box-shadow: 0 0 30px -4px rgba(217,185,138,.85); } }
@media (max-width: 640px) { .qwh-catmark { position: static; margin: 0 0 10px; } .qwh-catmark span:not(.qwh-catdots) { font-size: 12px; } }

.qwh-reveal-cat { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,8,23,.86); opacity: 0; transition: opacity .5s; font-family: "Karla", system-ui, sans-serif; }
.qwh-reveal-cat.is-in { opacity: 1; }
.qwh-reveal-cat.is-going { opacity: 0; }
.qwh-reveal-cat-in { max-width: 460px; width: 100%; padding: 30px 28px 26px; border-radius: 16px; border: 1px solid #D9B98A; background: radial-gradient(500px 240px at 50% -80px, rgba(217,185,138,.2), transparent 70%), #010F2A; color: #EDE4D3; text-align: center; box-shadow: 0 30px 80px -20px #000; outline: none; }
.qwh-reveal-cat-cat { width: 96px; margin: -8px auto 6px; transform: translateX(-140px); opacity: 0; transition: transform 1.6s cubic-bezier(.2,.7,.2,1) .2s, opacity .8s .2s; }
.qwh-reveal-cat.is-in .qwh-reveal-cat-cat { transform: none; opacity: 1; }
.qwh-reveal-cat-cat svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 14px rgba(217,185,138,.35)); }
.qwh-reveal-cat h2 { margin: 0 0 10px; font-family: "Cormorant", "Cormorant Garamond", Georgia, serif; font-weight: 500; font-style: italic; font-size: 2rem; line-height: 1.1; color: var(--qwh-cream); }
.qwh-reveal-cat h2 em { color: #F2994A; }
.qwh-reveal-cat p { margin: 0 0 20px; color: #CEC7BC; font-size: 16px; line-height: 1.55; }
.qwh-reveal-cat-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.qwh-rc-go, .qwh-rc-later { display: inline-flex; align-items: center; min-height: 44px; padding: 11px 22px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.qwh-rc-go { background: #D9B98A; border: 1px solid #D9B98A; color: #010F2A; font-weight: 700; }
.qwh-rc-later { background: transparent; border: 1px solid #3B4B78; color: #EDE4D3; }
.qwh-rc-go:focus-visible, .qwh-rc-later:focus-visible { outline: 2px solid #D9B98A; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .qwh-reveal-cat, .qwh-reveal-cat-cat { transition: none; } .qwh-catmark.is-open { animation: none; } }

/* ---------------- The Thirteenth Hour ---------------- */
.qwh-app .qwh-th-locked, .qwh-app .qwh-th-welcome { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.qwh-app .qwh-th-lockcat { width: 110px; opacity: .85; }
.qwh-app .qwh-th-lockcat svg { width: 100%; height: auto; display: block; }
.qwh-app .qwh-th-lockcat.is-open { filter: drop-shadow(0 0 18px rgba(217,185,138,.45)); }
.qwh-app .qwh-th-progress { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 360px; display: grid; gap: 8px; }
.qwh-app .qwh-th-progress li { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--qwh-line); background: var(--qwh-surface); font-family: var(--qwh-display); font-style: italic; font-size: 1.15rem; }
.qwh-app .qwh-th-progress .qwh-catdots i { width: 10px; height: 10px; }
.qwh-app .qwh-th-notes { list-style: none; margin: 0; padding: 0; color: var(--qwh-muted); font-size: 14.5px; display: grid; gap: 4px; }
.qwh-app .qwh-th-preview { padding: 10px 14px; border-radius: 8px; border: 1px dashed var(--qwh-gold); color: var(--qwh-gold); font-size: 14px; text-align: center; }
.qwh-app .qwh-th-loading { text-align: center; font-family: var(--qwh-display); font-style: italic; font-size: 1.4rem; color: var(--qwh-muted); padding: 40px 0; animation: qwh-fade 1.4s ease infinite alternate; }

.qwh-app .qwh-th-stage { position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 1 / 1; }
.qwh-app .qwh-th-clockwrap { position: absolute; inset: 0; opacity: 0; transform: scale(.92); transition: opacity 2s, transform 2.4s; }
.qwh-app .show-clock .qwh-th-clockwrap { opacity: 1; transform: none; }
.qwh-app .qwh-th-clock { width: 100%; height: 100%; display: block; overflow: visible; }
.qwh-app .qwh-th-clock .qwh-th-nums text { font-family: var(--qwh-display); font-size: 22px; font-weight: 600; fill: #F0E0C8; text-anchor: middle; dominant-baseline: middle; }
.qwh-app .qwh-th-clock .qwh-th-ticks line { stroke: #D9B98A; stroke-opacity: .55; stroke-width: 1.4; }
.qwh-app .qwh-th-xiii { font-family: var(--qwh-display); font-size: 26px; font-weight: 600; fill: #F1DDB8; text-anchor: middle; dominant-baseline: middle; opacity: 0; transition: opacity 2.5s; filter: drop-shadow(0 0 8px rgba(217,185,138,.9)); }
.qwh-app .is-xiii .qwh-th-xiii { opacity: 1; }
.qwh-app .qwh-th-nums text:first-child { transition: opacity 1.5s; }
.qwh-app .is-xiii .qwh-th-nums text:first-child { opacity: 0; }
.qwh-app .qwh-th-aura { opacity: 0; transition: opacity 2s; }
.qwh-app .is-xiii .qwh-th-aura { opacity: 1; animation: qwh-aura 5s ease-in-out infinite; }
@keyframes qwh-aura { 50% { opacity: .5; } }
.qwh-app .qwh-th-slot circle { fill: rgba(11,10,34,.6); stroke: #D9B98A; stroke-opacity: .5; stroke-dasharray: 4 4; stroke-width: 1.5; transition: fill .8s, stroke-opacity .8s; }
.qwh-app .qwh-th-slot.is-filled circle { fill: rgba(217,185,138,.16); stroke-opacity: 1; stroke-dasharray: none; filter: drop-shadow(0 0 10px rgba(217,185,138,.7)); }
.qwh-app .qwh-th-slot-in { opacity: 0; transition: opacity 1s; }
.qwh-app .qwh-th-slot.is-filled .qwh-th-slot-in { opacity: 1; }
.qwh-app .qwh-th-hands line { stroke: #D9B98A; stroke-linecap: round; }
.qwh-app .qwh-th-hh { stroke-width: 7; }
.qwh-app .qwh-th-mh { stroke-width: 4; }
.qwh-app .qwh-th-hands { transform-origin: 200px 200px; }
.qwh-app .qwh-th-hh, .qwh-app .qwh-th-mh { transform-origin: 200px 200px; }
.qwh-app .qwh-th-mh { animation: qwh-sweep 60s linear infinite; }
.qwh-app .qwh-th-hh { transform: rotate(-30deg); }
.qwh-app .is-spinning .qwh-th-mh { animation: qwh-sweep .45s linear infinite; }
.qwh-app .is-spinning .qwh-th-hh { animation: qwh-sweep 3.6s cubic-bezier(.5,0,.5,1) 1; }
.qwh-app .is-xiii .qwh-th-mh, .qwh-app .is-xiii .qwh-th-hh { animation: none; transform: rotate(0deg); }
@keyframes qwh-sweep { to { transform: rotate(360deg); } }
.qwh-app .qwh-th-cat { position: absolute; right: -4%; bottom: -2%; width: 22%; opacity: 0; transform: translateX(40px); transition: opacity 2s, transform 2.4s; }
.qwh-app .show-cat .qwh-th-cat { opacity: 1; transform: none; }
.qwh-app .qwh-th-cat svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 10px rgba(217,185,138,.3)); }
.qwh-app .qwh-th-breath { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; margin: -23% 0 0 -23%; border-radius: 50%; background: radial-gradient(circle, rgba(201,188,255,.5), rgba(201,188,255,0) 70%); opacity: 0; pointer-events: none; transition: opacity 2s; }
.qwh-app .show-breath .qwh-th-breath { opacity: 1; animation: qwh-breathe 10s ease-in-out infinite; }
@keyframes qwh-breathe { 0% { transform: scale(.55); } 40% { transform: scale(1.35); } 100% { transform: scale(.55); } }
.qwh-app .gift-rest .qwh-th-clockwrap { filter: brightness(.6) saturate(.6); transition: filter 3s; }
.qwh-app .gift-spark .qwh-th-aura { opacity: 1; animation: qwh-aura 1.4s ease-in-out infinite; }
.qwh-app .gift-midnight .qwh-th-clockwrap { filter: sepia(.4) hue-rotate(-30deg) saturate(1.6) brightness(.8); transition: filter 3s; }
.qwh-app.is-paused .qwh-th-stage * { animation-play-state: paused !important; }

.qwh-app .qwh-th-caption { font-family: var(--qwh-display); font-style: italic; font-size: clamp(1.3rem, 3.6vw, 1.75rem); line-height: 1.4; text-align: center; color: var(--qwh-cream); min-height: 4.2em; max-width: 34ch; margin: 0 auto; }
.qwh-app .qwh-th-caption.is-in { animation: qwh-fade 1.4s ease; }
.qwh-app .qwh-th-next { text-align: center; margin-top: -8px; }
.qwh-app .qwh-th-tray { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.qwh-app .qwh-th-keep { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--qwh-line); background: var(--qwh-surface); color: var(--qwh-ink); font: inherit; font-family: var(--qwh-display); font-style: italic; font-size: 1rem; line-height: 1.15; cursor: pointer; transition: border-color .2s, transform .2s, opacity .6s; }
.qwh-app .qwh-th-keep svg { width: 42px; height: 42px; }
.qwh-app .qwh-th-keep:not([disabled]):hover { border-color: var(--qwh-gold); transform: translateY(-2px); }
.qwh-app .qwh-th-keep[disabled] { cursor: default; }
.qwh-app .qwh-th-keep.is-placed { opacity: .25; }
.qwh-app .qwh-th-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qwh-app .qwh-th-doors .qwh-door small { display: block; font-family: var(--qwh-body); font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--qwh-pumpkin); margin-top: 4px; }
.qwh-app .qwh-th-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; padding-top: 10px; border-top: 1px solid var(--qwh-line); }
.qwh-app .qwh-th-vol { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--qwh-muted); }
.qwh-app .qwh-th-vol input { accent-color: #D9B98A; width: 120px; }
.qwh-app .qwh-th-wake { border-color: var(--qwh-pumpkin); color: var(--qwh-pumpkin); }
.qwh-app .qwh-th-gifts { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.qwh-app .qwh-th-gifts li { padding: 6px 14px; border-radius: 999px; border: 1px dashed var(--qwh-line); color: var(--qwh-muted); font-family: var(--qwh-display); font-style: italic; font-size: 1.1rem; }
.qwh-app .qwh-th-gifts li.is-found { border: 1px solid var(--qwh-gold); color: var(--qwh-gold); }
@media (max-width: 640px) {
  .qwh-app .qwh-th-tray { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qwh-app .qwh-th-doors { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .qwh-app .qwh-th-mh, .qwh-app .is-spinning .qwh-th-mh, .qwh-app .is-spinning .qwh-th-hh, .qwh-app .show-breath .qwh-th-breath, .qwh-app .is-xiii .qwh-th-aura { animation: none; }
  .qwh-app .show-breath .qwh-th-breath { opacity: .7; }
}

/* ---------------- The Thirteenth Hour: interactive parts ---------------- */
.qwh-app .qwh-th-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.qwh-app .qwh-th-layer > * { pointer-events: auto; }
.qwh-app .qwh-th-clockwrap { filter: brightness(calc(1 - var(--qwh-dim, 0) * .22)); }
.qwh-app .qwh-th-hint { text-align: center; min-height: 1.4em; margin: -6px 0 -8px; font-family: var(--qwh-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--qwh-gold); }
.qwh-app .qwh-th-alt { text-align: center; }
.qwh-app .qwh-th-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qwh-app .qwh-th-catbtn { position: absolute; width: 19%; aspect-ratio: 1; margin: -9.5% 0 0 -9.5%; padding: 0; border: 0; background: radial-gradient(circle, rgba(217,185,138,.18), transparent 65%); border-radius: 50%; cursor: pointer; opacity: 0; transform: scale(.8); transition: opacity .6s, transform .6s, left 0s, top 0s; }
.qwh-app .qwh-th-catbtn.is-in { opacity: 1; transform: none; animation: qwh-catpulse 2.6s ease-in-out infinite; }
.qwh-app .qwh-th-catbtn.is-moving, .qwh-app .qwh-th-catbtn.is-gone { opacity: 0; transform: translateX(30px) scale(.9); }
.qwh-app .qwh-th-catbtn svg { width: 100%; height: 100%; display: block; }
.qwh-app .qwh-th-catbtn svg path:first-child { stroke: #4A5A88; stroke-width: 1; }
@keyframes qwh-catpulse { 50% { filter: drop-shadow(0 0 14px rgba(217,185,138,.55)); } }
.qwh-app .qwh-th-dust { position: absolute; inset: 1.5%; width: 97%; height: 97%; cursor: grab; touch-action: none; transition: opacity 1.2s; z-index: 2; }
.qwh-app .qwh-th-dust.is-clean { opacity: 0; pointer-events: none; }
.qwh-app .qwh-th-ghost { opacity: 0; transition: opacity 1.2s; filter: grayscale(1) brightness(1.6); }
.qwh-app .show-ghosts .qwh-th-ghost { opacity: .28; }
.qwh-app .qwh-th-slot.is-filled .qwh-th-ghost { opacity: 0; }
.qwh-app .is-choosing .qwh-th-slot:not(.is-filled) circle { stroke-opacity: 1; stroke-dasharray: none; fill: rgba(217,185,138,.08); }
.qwh-app .qwh-th-slot[tabindex="0"] { cursor: pointer; }
.qwh-app .qwh-th-slot:focus { outline: none; }
.qwh-app .qwh-th-slot:focus-visible circle { stroke: #fff; stroke-width: 3; }
.qwh-app .qwh-th-slot.is-wrong circle { animation: qwh-nope .7s; }
@keyframes qwh-nope { 30% { stroke: #E8798A; stroke-opacity: 1; stroke-dasharray: none; fill: rgba(232,121,138,.18); } }
.qwh-app .qwh-th-keep { touch-action: none; }
.qwh-app .qwh-th-keep[aria-pressed="true"] { border-color: var(--qwh-gold); background: var(--qwh-soft); box-shadow: 0 0 18px -4px rgba(217,185,138,.6); }
.qwh-app .qwh-th-keep.is-lifted { opacity: .35; }
.qwh-th-dragghost { position: fixed; z-index: 100000; width: 56px; height: 56px; margin: -28px 0 0 -28px; pointer-events: none; filter: drop-shadow(0 0 14px rgba(217,185,138,.8)); }
.qwh-th-dragghost svg { width: 100%; height: 100%; display: block; }
.qwh-app .qwh-th-knob { fill: #D9B98A; opacity: 0; }
.qwh-app .is-winding .qwh-th-knob { opacity: 1; animation: qwh-knob 1.6s ease-in-out infinite; }
@keyframes qwh-knob { 50% { r: 13; fill: #F1DDB8; } }
.qwh-app .is-winding .qwh-th-clockwrap { cursor: grab; touch-action: none; }
.qwh-app .is-winding .qwh-th-mh, .qwh-app .is-winding .qwh-th-hh, .qwh-app .is-wound .qwh-th-mh, .qwh-app .is-wound .qwh-th-hh { animation: none; transition: transform .15s; }
.qwh-app .qwh-th-breathbtn { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; margin: -23% 0 0 -23%; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; opacity: 0; transition: opacity 1.2s; touch-action: none; -webkit-user-select: none; user-select: none; }
.qwh-app .qwh-th-breathbtn.is-shown { opacity: 1; }
.qwh-app .qwh-th-orb { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(201,188,255,.75), rgba(201,188,255,.18) 55%, rgba(201,188,255,0) 72%); transform: scale(.55); transition: transform 1.5s ease-out; animation: qwh-orb 4s ease-in-out infinite; }
.qwh-app .qwh-th-breathbtn.is-in .qwh-th-orb { transform: scale(1.3); transition: transform 4s cubic-bezier(.2,.6,.3,1); animation: none; background: radial-gradient(circle, rgba(255,231,168,.85), rgba(217,185,138,.2) 55%, rgba(217,185,138,0) 72%); }
.qwh-app .qwh-th-breathbtn.is-out .qwh-th-orb { transform: scale(.55); transition: transform 5s ease-in-out; }
@keyframes qwh-orb { 50% { opacity: .7; } }
.qwh-app .qwh-th-breathbtn:focus-visible { outline: 2px solid var(--qwh-gold); outline-offset: 4px; }
.qwh-app .qwh-th-breathdots { position: absolute; left: 0; right: 0; bottom: -18%; display: flex; gap: 8px; justify-content: center; }
.qwh-app .qwh-th-breathdots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #B6A4CE; }
.qwh-app .qwh-th-breathdots i.is-on { background: #D9B98A; border-color: #D9B98A; box-shadow: 0 0 8px rgba(217,185,138,.8); }
.qwh-app .qwh-th-lantern { position: absolute; width: 12%; margin: -8% 0 0 -6%; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0; transform: translateY(8px); transition: opacity 1s, transform 1s; }
.qwh-app .qwh-th-lantern.is-shown { opacity: 1; transform: none; }
.qwh-app .qwh-th-lantern svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 12px rgba(255,197,107,.65)); transition: filter 1.4s; }
.qwh-app .qwh-th-lantern .qwh-th-lglow { transition: opacity 1.4s; animation: qwh-flicker 2.6s infinite; }
.qwh-app .qwh-th-lantern.is-out svg { filter: none; }
.qwh-app .qwh-th-lantern.is-out .qwh-th-lglow { opacity: .08; animation: none; }
.qwh-app .qwh-th-lantern:focus-visible { outline: 2px solid var(--qwh-gold); outline-offset: 2px; border-radius: 6px; }
.qwh-app .qwh-th-stage { --qwh-dim: 0; }
.qwh-app .qwh-th-spark { position: absolute; bottom: 4%; width: 44px; height: 44px; margin-left: -22px; padding: 0; border: 0; background: none; cursor: pointer; animation: qwh-rise 6s linear forwards; }
.qwh-app .qwh-th-spark i { position: absolute; inset: 14px; border-radius: 50%; background: #F1DDB8; box-shadow: 0 0 10px 4px rgba(242,153,74,.8), 0 0 22px 8px rgba(217,185,138,.35); animation: qwh-twinkle .5s ease-in-out infinite alternate; }
.qwh-app .qwh-th-spark.is-caught { animation-play-state: paused; }
.qwh-app .qwh-th-spark.is-caught i { animation: qwh-burst .5s ease-out forwards; }
@keyframes qwh-rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(14px, -45vh); } 100% { transform: translate(-10px, -420px); opacity: 0; } }
@keyframes qwh-twinkle { to { transform: scale(.7); opacity: .8; } }
@keyframes qwh-burst { to { transform: scale(3.4); opacity: 0; } }
.qwh-app .is-flash .qwh-th-aura { animation: qwh-flash .6s ease-out; }
@keyframes qwh-flash { 0% { opacity: 1; } 100% { opacity: .3; } }
.qwh-app .qwh-th-ring { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; touch-action: none; cursor: crosshair; --qwh-warm: 0; }
.qwh-app .qwh-th-ring.is-shown { opacity: 1; }
.qwh-app .qwh-th-ring svg { width: 100%; height: 100%; display: block; }
.qwh-app .qwh-th-ring-bg { fill: none; stroke: rgba(242,153,74,.25); stroke-width: 16; }
.qwh-app .qwh-th-ring-fill { fill: none; stroke: #F2994A; stroke-width: 16; stroke-linecap: round; filter: drop-shadow(0 0 calc(4px + 14px * var(--qwh-warm)) rgba(242,153,74,.9)); transition: stroke-dasharray .2s; }
.qwh-app .qwh-th-ring-dot { fill: #F1DDB8; filter: drop-shadow(0 0 10px rgba(255,231,168,.9)); }
.qwh-app .qwh-th-ring.is-fast .qwh-th-ring-dot { fill: #8E90A8; filter: none; }
.qwh-app .qwh-th-ring.is-done .qwh-th-ring-fill { animation: qwh-aura 1.8s ease-in-out infinite; }
.qwh-app .gift-midnight .qwh-th-clockwrap { filter: sepia(.4) hue-rotate(-30deg) saturate(1.6) brightness(calc(.8 + .25 * var(--qwh-warm, 0))); }
.qwh-app .qwh-th-candlebtn { position: absolute; left: 50%; top: 50%; width: 15%; margin: -14% 0 0 -7.5%; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0; transition: opacity 1.2s; }
.qwh-app .qwh-th-candlebtn.is-shown { opacity: 1; }
.qwh-app .qwh-th-candlebtn svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 16px rgba(242,153,74,.6)); }
.qwh-app .qwh-th-cflame { transform-origin: 30px 36px; animation: qwh-flame 1.8s ease-in-out infinite; transition: opacity .3s; }
.qwh-app .qwh-th-candlebtn.is-out .qwh-th-cflame { opacity: 0; }
.qwh-app .qwh-th-candlebtn.is-out svg { filter: none; }
.qwh-app .qwh-th-candlebtn.is-out .qwh-th-csmoke { animation: qwh-smoke 2.4s ease-out forwards; }
.qwh-app .qwh-th-candlebtn:focus-visible { outline: 2px solid var(--qwh-gold); outline-offset: 4px; border-radius: 8px; }
.qwh-app .is-dark .qwh-th-clockwrap { filter: brightness(.35); transition: filter 2s; }
@media (prefers-reduced-motion: reduce) {
  .qwh-app .qwh-th-catbtn.is-in, .qwh-app .qwh-th-orb, .qwh-app .qwh-th-lantern .qwh-th-lglow, .qwh-app .qwh-th-spark i, .qwh-app .is-winding .qwh-th-knob { animation: none; }
  .qwh-app .qwh-th-spark { animation-duration: 12s !important; }
}
.qwh-app .qwh-th-catbtn:focus, .qwh-app .qwh-th-breathbtn:focus, .qwh-app .qwh-th-lantern:focus, .qwh-app .qwh-th-candlebtn:focus, .qwh-app .qwh-th-spark:focus { outline: none; }
.qwh-app .qwh-th-catbtn:focus-visible { outline: 2px solid var(--qwh-gold); outline-offset: 2px; }
