/* Hat Draw — storybook Christmas. Soft, warm, a little old-fashioned on purpose. */
@font-face { font-family: 'Fraunces'; src: url(/fonts/fraunces-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url(/fonts/fraunces-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url(/fonts/fraunces-latin-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url(/fonts/caveat-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(/fonts/nunito-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(/fonts/nunito-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --night: #14213d; --night-2: #1d2f55; --night-3: #27406f;
  --cream: #fdf6e9; --paper: #f6ead3; --paper-edge: #e6d3b1;
  --ink: #3a2e2a; --ink-soft: #7a6658;
  --red: #a8231c; --red-deep: #8e1f1a; --green: #1f6f43; --green-deep: #17553a;
  --gold: #e0b35a; --gold-soft: #f3dca6;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  --radius: 22px;
  font-size: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--night); }
a { color: var(--gold-soft); }
.card a:not(.btn) { color: var(--green); }
body {
  min-height: 100vh;
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(224,179,90,.22), transparent 60%),
    radial-gradient(900px 700px at 100% 100%, rgba(39,64,111,.8), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 70%, var(--night-3) 100%);
  background-attachment: fixed;
  padding-bottom: env(safe-area-inset-bottom);
}
body.birthday { background: linear-gradient(180deg, #2b1d3f 0%, #3b2a5c 100%); background-attachment: fixed; }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.top, main, .foot, .toast { position: relative; z-index: 1; }

/* ---------- header with fairy lights ---------- */
.top { text-align: center; padding: max(14px, env(safe-area-inset-top)) 16px 6px; }
.lights { height: 44px; margin: 0 auto 4px; max-width: 760px; }
.lights svg { width: 100%; height: 44px; overflow: visible; }
.lights .wire { fill: none; stroke: #0d1628; stroke-width: 2; }
.lights .bulb { animation: twinkle 3.2s ease-in-out infinite; transform-origin: center; filter: drop-shadow(0 0 5px currentColor); }
@keyframes twinkle { 0%, 100% { opacity: 1; } 45% { opacity: .35; } 60% { opacity: .9; } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-soft); text-decoration: none;
  font: 600 2.1rem/1 var(--serif); letter-spacing: .5px; text-shadow: 0 2px 18px rgba(224,179,90,.45); }
.brand-hat { width: 34px; height: 34px; background: url(/icons/icon.svg) center/contain no-repeat; display: inline-block; transform: rotate(-12deg); animation: bob 5s ease-in-out infinite; }
.brand-sub { font: italic 400 1.05rem/1.4 var(--serif); color: #cbd6ee; letter-spacing: 3px; text-transform: lowercase; margin-top: 4px; }
.brand-sub::before, .brand-sub::after { content: '✦'; color: var(--gold); margin: 0 10px; font-style: normal; font-size: .8em; }
@keyframes bob { 0%, 100% { transform: rotate(-12deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-3px); } }

main { max-width: 660px; margin: 0 auto; padding: 14px 16px 24px; }
.foot { text-align: center; color: #93a3c6; font: italic .9rem/1.4 var(--serif); padding: 10px 16px 30px; }
.loading { text-align: center; color: #cbd6ee; font: italic 1.1rem var(--serif); padding: 50px 0; }

/* ---------- type ---------- */
h1 { font: 600 2rem/1.2 var(--serif); margin: 8px 0 6px; color: var(--cream); text-align: center; }
.lede { text-align: center; color: #d7e0f2; font: italic 1.12rem/1.5 var(--serif); margin: 0 auto 18px; max-width: 30em; }
h2 { font: 600 1.4rem/1.25 var(--serif); margin: 0 0 10px; color: var(--red-deep); }
h3 { font: 600 1.1rem/1.3 var(--serif); margin: 0 0 6px; color: var(--ink); }
p { margin: 0 0 12px; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }
.italic { font-family: var(--serif); font-style: italic; }
.center { text-align: center; }

/* ---------- paper cards ---------- */
.card {
  position: relative; background: var(--cream); border-radius: var(--radius); padding: 22px 22px 20px; margin: 0 0 18px;
  box-shadow: 0 1px 0 var(--paper-edge) inset, 0 14px 34px rgba(5,10,25,.35);
  background-image: radial-gradient(rgba(150,110,60,.05) 1px, transparent 1px); background-size: 7px 7px;
  animation: rise .6s cubic-bezier(.2,.8,.2,1) both;
}
.card:nth-of-type(2) { animation-delay: .06s; } .card:nth-of-type(3) { animation-delay: .12s; } .card:nth-of-type(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card.warn { background-color: #fff4d6; }
.card.glow { box-shadow: 0 0 0 3px var(--gold), 0 14px 40px rgba(224,179,90,.35); }
.step { display: inline-flex; align-items: center; justify-content: center; width: 1.7em; height: 1.7em; border-radius: 50%;
  background: var(--red); color: var(--cream); font: 600 .85rem var(--sans); margin-right: 8px; vertical-align: 2px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.facts dt { color: var(--ink-soft); font-family: var(--serif); font-style: italic; }
.facts dd { margin: 0; font-weight: 700; }

/* ---------- art ---------- */
.hero { margin: 4px -4px 18px; border-radius: 26px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.45); animation: rise .8s both; }
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
@keyframes drift { from { transform: scale(1.02) translate(0,0); } to { transform: scale(1.07) translate(-1.5%, -1%); } }
.art { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.elves { width: 100%; max-width: 420px; margin: -6px auto 6px; }
.elves { position: relative; } .elves img { width: 100%; display: block; }
@keyframes sway { 0%, 100% { transform: rotate(-.6deg); } 50% { transform: rotate(.6deg); } }

/* ---------- the hat (tap to draw) ---------- */
.hat-stage { position: relative; display: block; width: 100%; max-width: 340px; margin: 4px auto 8px; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.hat-stage:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 30px; }
.hat-stage img { width: 100%; height: auto; display: block; transform-origin: 50% 85%; }
.hat-stage.ready img { animation: hatbob 3.4s ease-in-out infinite; }
.hat-stage.ready::after { content: ''; position: absolute; inset: 10% 15%; border-radius: 50%; box-shadow: 0 0 60px 20px rgba(224,179,90,.35); animation: pulse 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes hatbob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.hat-stage.shaking img { animation: shake 1.1s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
  0% { transform: rotate(0); } 10% { transform: rotate(-9deg) translateY(-4px); } 22% { transform: rotate(8deg); } 34% { transform: rotate(-7deg) translateY(-6px); }
  46% { transform: rotate(6deg); } 58% { transform: rotate(-4deg); } 70% { transform: rotate(3deg) translateY(-3px); } 85% { transform: rotate(-1deg); } 100% { transform: rotate(0); } }
.hat-hint { text-align: center; font: italic 1.1rem var(--serif); color: var(--red-deep); margin: 2px 0 8px; animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.sparkle { position: absolute; width: 10px; height: 10px; pointer-events: none; color: var(--gold);
  animation: sparkle 1.2s ease-out forwards; }
.sparkle::before { content: '✦'; position: absolute; inset: 0; font-size: 16px; line-height: 10px; text-shadow: 0 0 8px var(--gold); }
@keyframes sparkle { from { opacity: 1; transform: translate(0,0) scale(.6); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.3) rotate(120deg); } }

/* the folded slip */
.slip-wrap { perspective: 900px; margin: -40px auto 6px; width: 86%; max-width: 330px; position: relative; z-index: 2; }
.slip { position: relative; background: #fffaf0; border-radius: 6px; padding: 20px 18px 18px; text-align: center;
  box-shadow: 0 10px 24px rgba(60,35,10,.25); transform: rotate(-2deg);
  background-image: repeating-linear-gradient(0deg, transparent 0 29px, rgba(168,35,28,.09) 29px 30px); }
.slip-label { display: block; font: italic 1rem var(--serif); color: var(--ink-soft); }
.slip-name { display: block; font: 700 2.9rem/1.05 var(--hand); color: var(--red); margin-top: 6px; word-break: break-word; }
.slip-wrap.rising .slip { animation: slipup 1.4s cubic-bezier(.2,.9,.25,1) both; }
@keyframes slipup {
  0% { opacity: 0; transform: translateY(70px) rotate(8deg) rotateX(80deg) scale(.6); }
  45% { opacity: 1; transform: translateY(-26px) rotate(-6deg) rotateX(40deg) scale(.9); }
  100% { transform: translateY(0) rotate(-2deg) rotateX(0) scale(1); } }
.after-reveal { animation: rise .7s .9s both; }

/* ---------- stocking ---------- */
.stocking { position: relative; width: 190px; margin: 0 auto 6px; padding: 0; border: 0; background: none; cursor: pointer; display: block; -webkit-tap-highlight-color: transparent; }
.stocking img { width: 100%; display: block; transition: transform .35s cubic-bezier(.3,1.4,.5,1), filter .35s; }
@keyframes hang { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.stocking.bounce img { animation: plop .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes plop { 0% { transform: scale(1); } 30% { transform: scale(1.06, .94) translateY(4px); } 60% { transform: scale(.97, 1.03); } 100% { transform: scale(1); } }
.stocking-count { position: absolute; right: -6px; top: 12px; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 3px 11px;
  font: 700 .85rem var(--sans); box-shadow: 0 3px 8px rgba(0,0,0,.2); transform: rotate(8deg); }
.falling-gift { position: absolute; left: 50%; top: -60px; width: 34px; height: 30px; margin-left: -17px; z-index: 3; pointer-events: none;
  animation: fall .9s cubic-bezier(.5,0,.75,.4) forwards; }
@keyframes fall { 0% { transform: translateY(-40px) rotate(-30deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(95px) rotate(12deg) scale(.7); opacity: 0; } }
.stocking-caption { text-align: center; font: italic 1rem var(--serif); color: var(--ink-soft); margin: 0 0 12px; }

/* wishes as gift tags */
.tags { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.tag { position: relative; background: #fffaf0; border: 1px solid var(--paper-edge); border-radius: 10px 10px 10px 26px; padding: 14px 16px 12px 22px;
  box-shadow: 0 4px 10px rgba(60,35,10,.08); animation: tagin .5s cubic-bezier(.2,.9,.3,1.2) both; }
.tag::before { content: ''; position: absolute; left: 10px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--night); box-shadow: 0 0 0 2px var(--gold-soft); }
.tag.high { border-color: #e7b9a9; }
.tags.tumble .tag { animation-name: tumble; }
@keyframes tagin { from { opacity: 0; transform: translateY(10px) rotate(-1deg); } to { opacity: 1; transform: none; } }
@keyframes tumble { from { opacity: 0; transform: translateY(-50px) rotate(-6deg); } to { opacity: 1; transform: none; } }
.tag-title { font: 600 1.08rem/1.3 var(--serif); word-break: break-word; }
.tag-meta { color: var(--ink-soft); font-size: .9rem; }
.tag-prio { font: 700 1.25rem var(--hand); color: var(--red); }
.tag a { color: var(--green); font-weight: 700; }

/* ---------- forms ---------- */
label { display: block; font-weight: 700; margin: 14px 0 6px; }
label .hint { font-weight: 400; color: var(--ink-soft); font-family: var(--serif); font-style: italic; }
input, textarea, select { width: 100%; font: inherit; padding: 14px 15px; border: 2px solid var(--paper-edge); border-radius: 14px; background: #fffdf8; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,111,67,.12); }
textarea { min-height: 92px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.check input { width: 24px; height: 24px; accent-color: var(--green); }
.row { display: flex; gap: 10px; } .row > * { flex: 1; min-width: 0; }

button, .btn {
  display: inline-block; font: 700 1.05rem/1 var(--sans); cursor: pointer; text-decoration: none; text-align: center;
  border: 0; border-radius: 999px; padding: 17px 24px; min-height: 54px; background: var(--green); color: var(--cream); margin-top: 16px;
  box-shadow: 0 4px 0 var(--green-deep); transition: transform .12s, box-shadow .12s, background .2s;
}
button:hover, .btn:hover { background: #237a4b; }
button:active, .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-deep); }
button:disabled { background: #a9b5ae; box-shadow: 0 4px 0 #8f9b94; cursor: not-allowed; }
button.wide, .btn.wide { width: 100%; }
button.red { background: var(--red); box-shadow: 0 4px 0 var(--red-deep); }
button.secondary { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
button.danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
button.link { background: none; color: var(--green); padding: 8px 0; min-height: 0; margin: 0 16px 0 0; text-decoration: underline; font-weight: 700; box-shadow: none; }
button.link:active { transform: none; }

.list { list-style: none; padding: 0; margin: 0; }
.list > li { border-top: 1px dashed var(--paper-edge); padding: 14px 0; }
.list > li:first-child { border-top: 0; }
.item-title { font-weight: 700; font-size: 1.05rem; word-break: break-word; }
.item-meta { color: var(--ink-soft); font-size: .92rem; word-break: break-all; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: #efe5d2; color: #5b4c40; }
.chip.ok { background: #dff0e5; color: #17553a; } .chip.wait { background: #fbefcd; color: #7a5300; } .chip.bad { background: #f9dcd8; color: #8e1f1a; }

.thread { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #f1e6d3; white-space: pre-wrap; word-break: break-word; }
.bubble.mine { align-self: flex-end; background: #dcefe2; border-radius: 16px 16px 4px 16px; }
.bubble .who { display: block; font: italic .8rem var(--serif); color: var(--ink-soft); margin-bottom: 2px; }
.address { white-space: pre-wrap; background: #fffaf0; border: 1px dashed var(--paper-edge); border-radius: 12px; padding: 12px 14px; }

.copybox { display: flex; gap: 8px; align-items: stretch; }
.copybox input { flex: 1; font-size: .88rem; }
.copybox button { margin-top: 0; }

/* organiser's shake: slips fly out of the hat */
.flyer { position: absolute; left: 50%; top: 40%; width: 46px; height: 30px; margin: -15px 0 0 -23px; background: #fffaf0; border-radius: 3px;
  box-shadow: 0 3px 8px rgba(0,0,0,.25); pointer-events: none; z-index: 3;
  background-image: repeating-linear-gradient(0deg, transparent 0 6px, rgba(168,35,28,.25) 6px 7px);
  animation: fly 1.6s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes fly { 0% { transform: translate(0,0) rotate(0) scale(.4); opacity: 0; } 15% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--cream); color: var(--ink); z-index: 10;
  padding: 14px 22px; border-radius: 999px; max-width: 90vw; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: rise .35s both; }
.error { color: var(--red-deep); font-weight: 700; margin-top: 10px; }
details summary { cursor: pointer; font-weight: 700; color: var(--green); padding: 6px 0; }
hr { border: 0; border-top: 1px dashed var(--paper-edge); margin: 18px 0; }

@media (max-width: 420px) {
  :root { font-size: 17px; }
  h1 { font-size: 1.7rem; } .brand { font-size: 1.8rem; } .slip-name { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* art buttons are pictures, not pills */
button.hat-stage, button.stocking, button.hat-stage:hover, button.stocking:hover, button.hat-stage:active, button.stocking:active, button.hat-stage:disabled {
  background: none; box-shadow: none; border-radius: 24px; padding: 0; margin-top: 0; min-height: 0; transform: none; color: inherit; }
button.hat-stage:disabled { cursor: default; }

/* ---------- the hat reel ---------- */
.reel { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; margin: 2px 0 10px;
  background: #f3ead8 url(/art/reel-poster.jpg) center/cover; box-shadow: 0 10px 26px rgba(40,25,10,.25); container-type: inline-size; }
.reel-video, .reel-end { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-end { opacity: 0; transition: opacity .75s ease; pointer-events: none; }
.reel-name { position: absolute; left: 46.5%; width: 28.5%; top: 50%; height: 13%; display: flex; align-items: center; justify-content: center;
  white-space: nowrap; overflow: hidden; text-align: center; font: 600 6.4cqw/1 var(--serif); color: #5b3a24; letter-spacing: .02em; opacity: 0; transform: translateY(6px) scale(.96);
  transition: opacity .9s .55s ease, transform .9s .55s ease; pointer-events: none; text-shadow: 0 1px 0 rgba(255,250,235,.6); }
.reel.done .reel-end { opacity: 1; pointer-events: auto; cursor: pointer; }
.reel.done .reel-name { opacity: 1; transform: none; }
.reel-tap { position: absolute; left: 60%; top: 14%; width: 30%; height: 52%; padding: 0; margin: 0; min-height: 0; border: 0; border-radius: 50%;
  background: transparent; box-shadow: none; cursor: pointer; display: none; -webkit-tap-highlight-color: transparent; }
.reel-tap:hover, .reel-tap:active { background: transparent; box-shadow: none; transform: none; }
.reel.waiting .reel-tap { display: block; }
.reel-ring { position: absolute; inset: 8%; border-radius: 50%; border: 3px solid rgba(255,238,190,.95);
  box-shadow: 0 0 24px 6px rgba(224,179,90,.65), inset 0 0 18px rgba(255,230,170,.5); animation: ring 2.2s ease-in-out infinite; }
@keyframes ring { 0%, 100% { transform: scale(.92); opacity: .55; } 50% { transform: scale(1.04); opacity: 1; } }
.reel-tap:focus-visible .reel-ring { border-color: #fff; }
.reel-caption { color: var(--ink-soft); margin: 0 0 2px; }

.stocking { width: 210px; }
.stocking-count { right: -2px; top: 26%; }
.elves { max-width: 460px; }

/* stars that come and go around the art */
.twinkles { position: absolute; inset: 0; pointer-events: none; }
.tw { position: absolute; color: #f1cf7a; text-shadow: 0 0 6px rgba(241,207,122,.9); opacity: 0; animation: tw 4s ease-in-out infinite; }
@keyframes tw { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(30deg); } 60% { opacity: .2; } }

/* the start of the reel */
.reel-start { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  margin: 0; padding: 0; min-height: 0; border-radius: 0; box-shadow: none; cursor: pointer;
  background: radial-gradient(ellipse at center, rgba(20,33,61,.15), rgba(20,33,61,.45)); color: var(--cream); }
.reel-start:hover, .reel-start:active { background: radial-gradient(ellipse at center, rgba(20,33,61,.05), rgba(20,33,61,.35)); transform: none; box-shadow: none; }
.reel.idle .reel-start { display: flex; }
.reel-start-inner { font: italic 600 1.35rem var(--serif); padding: 12px 26px; border-radius: 999px; background: rgba(253,246,233,.92); color: var(--red-deep);
  box-shadow: 0 6px 22px rgba(0,0,0,.25); animation: breathe 2.6s ease-in-out infinite; }
.reel-sound { font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; opacity: .85; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* ---------- hover: everything answers the pointer, gently ---------- */
@media (hover: hover) and (pointer: fine) {
  .card { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--paper-edge) inset, 0 20px 44px rgba(5,10,25,.42); }
  button:not(.link):not(.reel-tap):not(.reel-start):not(.stocking):not(.hat-stage):hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--green-deep), 0 10px 22px rgba(31,111,67,.25); }
  button.red:hover { box-shadow: 0 6px 0 var(--red-deep), 0 10px 22px rgba(168,35,28,.25); }
  button.secondary:hover, button.danger:hover { box-shadow: inset 0 0 0 2px currentColor, 0 8px 18px rgba(0,0,0,.12); }
  .stocking:hover img { transform: translateY(-6px) rotate(-1.5deg); filter: drop-shadow(0 14px 16px rgba(80,40,10,.22)) brightness(1.03); }
  .stocking:hover .tw { animation-duration: 1.6s !important; }
  .elves img { transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
  .elves:hover img { transform: translateY(-4px); }
  .tag { transition: transform .25s, box-shadow .25s; }
  .tag:hover { transform: rotate(-.8deg) translateY(-2px); box-shadow: 0 8px 18px rgba(60,35,10,.14); }
  .hero { transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s; }
  .hero:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 26px 60px rgba(0,0,0,.5); }
  .brand:hover .brand-hat { animation: doff .9s ease-in-out; }
  .reel.waiting .reel-tap:hover .reel-ring { border-color: #fff; box-shadow: 0 0 34px 12px rgba(255,214,120,.85), inset 0 0 22px rgba(255,230,170,.7); }
  .reel.done .reel-end:hover { filter: brightness(1.03); }
  .card a:not(.btn), button.link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; text-decoration: none; transition: background-size .3s; }
  .card a:not(.btn):hover, button.link:hover { background-size: 100% 2px; }
  .chip { transition: transform .2s; } .chip:hover { transform: translateY(-1px); }
}
@keyframes doff { 0% { transform: rotate(-12deg); } 35% { transform: rotate(-30deg) translateY(-8px); } 70% { transform: rotate(4deg) translateY(-2px); } 100% { transform: rotate(-12deg); } }
