/* Advent With Friends — "winter night cabin" theme */
:root {
  --night: #0c1524;
  --ink: #2b2118;
  --cream: #fdf6ea;
  --line: #eadcc6;
  --muted: #7a6a58;
  --text: #f3ece0;
  --text2: #c9bfae;
  --gold-hi: #fbd982;
  --gold: #f0b443;
  --gold-ink: #3d2706;
  --gold-text: #f6d68a;
  --red: #c8423b;
  --green: #2f6b4f;
  --snowc: #f4f8fc;
  --font-d: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-b: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-h: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-b);
  color: var(--text);
  background: radial-gradient(1100px 620px at 75% -8%, #24395a 0%, transparent 62%), linear-gradient(180deg, #111e33 0%, var(--night) 55%, #0a111d 100%);
  background-attachment: fixed;
  line-height: 1.5;
}
/* falling snow: two tiled layers moved with transforms so they loop without a seam */
body::before, body::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: repeat;
}
body::before {
  top: -200px;
  height: calc(100vh + 200px);
  background-image: radial-gradient(2px 2px at 24px 36px, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 118px 92px, #fff 50%, transparent 52%), radial-gradient(2.2px 2.2px at 170px 160px, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 70px 140px, #fff 50%, transparent 52%);
  background-size: 200px 200px;
  opacity: .55;
  animation: awf-fall 14s linear infinite;
}
body::after {
  top: -300px;
  height: calc(100vh + 300px);
  background-image: radial-gradient(3px 3px at 60px 80px, #fff 50%, transparent 52%), radial-gradient(2.4px 2.4px at 230px 210px, #fff 50%, transparent 52%), radial-gradient(1.8px 1.8px at 150px 20px, #fff 50%, transparent 52%);
  background-size: 300px 300px;
  opacity: .3;
  animation: awf-fall2 24s linear infinite;
}
@keyframes awf-fall { to { transform: translateY(200px); } }
@keyframes awf-fall2 { to { transform: translateY(300px); } }
.topbar, main, .foot { position: relative; z-index: 1; }
img, svg { max-width: 100%; }
a { color: var(--gold-text); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 12px; z-index: 20; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid #8ec5ff; outline-offset: 2px; }

/* header */
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-d); font-weight: 700; font-size: 1.15rem; }
.brand img, .brand svg { width: 32px; height: 32px; border-radius: 8px; }
.topnav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.topnav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.topnav a:hover { background: rgba(255,255,255,.08); }
.topnav .pill { border: 1.5px solid rgba(255,255,255,.35); }
@media (max-width: 760px) {
  .topnav a:not(.pill) { display: none; }
  .brand { font-size: 1rem; white-space: nowrap; }
  .topnav .pill { white-space: nowrap; padding: 7px 12px; font-size: .88rem; }
}

/* type */
h1 { font-family: var(--font-d); font-weight: 700; color: #fff8ec; line-height: 1.08; letter-spacing: -.01em; font-size: clamp(2rem, 4.6vw, 3.3rem); margin: .3em 0 .35em; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(240,180,67,.12); border: 1px solid rgba(240,180,67,.35); color: var(--gold-text); font-weight: 600; font-size: .85rem; }
.lede { color: var(--text2); font-size: 1.08rem; line-height: 1.65; max-width: 38em; margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1.2 var(--font-b); padding: 13px 20px; border-radius: 14px; border: 0; cursor: pointer; text-decoration: none; text-align: center; transition: transform .12s, filter .12s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-gold, .btn-primary { background: linear-gradient(var(--gold-hi), var(--gold)); color: var(--gold-ink); box-shadow: 0 3px 0 #c98a26, 0 8px 18px rgba(240,180,67,.22); }
.btn-gold:hover, .btn-primary:hover { filter: brightness(1.05); }
.btn-red { background: linear-gradient(#e4605e, var(--red)); color: #fff; box-shadow: 0 3px 0 #96292f, 0 8px 18px rgba(200,66,59,.2); }
.btn-white { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: 0 2px 0 var(--line); }
.btn-wide { width: 100%; }
.btn-big { padding: 16px 20px; font-size: 1.06rem; }
.btn-small { padding: 9px 14px; font-size: .9rem; }
.awf-link { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: var(--text); font: 600 .9rem var(--font-b); cursor: pointer; }
.chip:hover { background: rgba(255,255,255,.14); }
.chip-msg { color: var(--gold-text); font-size: .85rem; }


/* layouts: the tool's wrappers use display:contents so its parts join the page grid */
.awf { --shelf-back: #1d4a3a; --shelf-frame: #7a4a2a; --plank: #c99560; --shelf-ink: rgba(255,255,255,.75); --e1: #c0423a, #9c2c27; --e2: #2f7f55, #22613f; --e3: #f1e3c6, #dcc79f; --n1: #fff4e0; --n2: #fff4e0; --n3: #7a2a1e; }
.awf[data-theme="snow"] { --shelf-back: #e3ecf4; --shelf-frame: #fbfdff; --plank: #c9d7e4; --shelf-ink: #4b5d73; --e1: #c94b4b, #a93a3a; --e2: #6fa8d6, #4f8cc0; --e3: #ffffff, #e3ebf3; --n3: #44607e; }
.awf[data-theme="candy"] { --shelf-back: #6e1d28; --shelf-frame: #4a131b; --plank: #ead2ad; --shelf-ink: rgba(255,255,255,.78); --e1: #d8505a, #b93c47; --e2: #2f7f55, #22613f; --e3: #fff3e6, #f1dcc4; }
.awf[data-mode="home"] [data-only="cal"], .awf[data-mode="cal"] [data-only="home"] { display: none !important; }
.hero { padding: 6px 0 10px; background: radial-gradient(260px 260px at 8% 18%, rgba(240,180,67,.13), transparent 70%), radial-gradient(220px 220px at 34% 48%, rgba(200,66,59,.12), transparent 70%), radial-gradient(180px 180px at 18% 70%, rgba(111,227,154,.07), transparent 70%); }
.hero-grid { display: grid; gap: 22px 52px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "board" "side"; padding: 8px 0 26px; }
.hero-grid > .awf, .hero-grid .awf-grid { display: contents; }
.hero-copy { grid-area: copy; }
.hero-grid .awf-board { grid-area: board; }
.hero-grid .awf-side { grid-area: side; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy board" "side board"; align-items: start; }
  .hero-grid .awf-board { position: sticky; top: 16px; }
}
.calpage { padding: 6px 0 30px; }
.awf[data-mode="cal"] { display: grid; gap: 18px 44px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "board" "side"; }
.awf[data-mode="cal"] > .awf-grid { display: contents; }
.cal-head { grid-area: head; }
.awf[data-mode="cal"] .awf-board { grid-area: board; }
.awf[data-mode="cal"] .awf-side { grid-area: side; }
@media (min-width: 960px) {
  .awf[data-mode="cal"] { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); grid-template-areas: "head side" "board side"; align-items: start; }
  .awf[data-mode="cal"] .awf-side { position: sticky; top: 16px; }
}
.cal-eyebrow { margin: 0; color: var(--gold-text); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.cal-h1 { margin: .15em 0 .3em; }
.cal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chip-dark { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--gold-text); font-weight: 600; font-size: .85rem; font-variant-numeric: tabular-nums; }
.chip-dark:empty { display: none; }
.cal-more { text-align: center; color: var(--text2); margin: 40px auto 0; max-width: 40em; }

/* side column + panels */
.awf-side { display: grid; gap: 16px; align-content: start; }
.panel { background: var(--cream); color: var(--ink); border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.35); overflow: hidden; }
.panel a:not(.btn), .awf-dialog a:not(.btn) { color: #9a5b14; }
.awf-create { padding: 26px 24px 22px; }
.panel-slim { padding: 16px 20px 18px; }
.panel-h { font-family: var(--font-d); font-size: 1.6rem; line-height: 1.15; margin: 0 0 6px; }
.panel-sub { color: var(--muted); margin: 0 0 6px; font-size: .95rem; }
.panel-top { display: flex; gap: 14px; align-items: center; padding: 20px 22px 16px; background: linear-gradient(135deg, #fde6cf, #fbe0e0 60%, #fdf1e4); }
.panel-title { font-family: var(--font-d); font-weight: 700; font-size: 1.28rem; line-height: 1.25; margin: 0; }
.panel-text { margin: 6px 0 0; color: #5e4f40; font-size: .95rem; line-height: 1.5; }
.panel-text:empty { display: none; }
.panel-body { padding: 18px 22px 22px; display: grid; gap: 14px; }
.awf-input { width: 100%; font: 400 1rem var(--font-b); padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.awf-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,180,67,.25); outline: none; }
.awf-label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; color: #4a3b2d; padding: 0; }
.awf-label-top { margin-top: 0; }
fieldset.bare { border: 0; margin: 0; padding: 0; min-width: 0; }
.awf-copy { display: flex; gap: 8px; }
.awf-copy .awf-input { flex: 1; min-width: 0; }
.awf-fine { font-size: .85rem; color: var(--muted); line-height: 1.45; margin: 6px 0 0; }
.awf-center { text-align: center; }
.awf-msg { font-size: .9rem; margin: 8px 0 0; color: var(--green); }
.awf-msg.is-bad { color: #b3261e; }
.awf-msg:empty { display: none; }
.awf-board .awf-msg { text-align: center; color: var(--gold-text); }
.awf-board .awf-msg.is-bad { color: #ffb4a8; }
.awf-check { display: flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; }
.awf-more summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.awf-more[open] summary { margin-bottom: 6px; }
.awf-links { text-align: center; font-size: .85rem; color: var(--muted); margin: 0; }
.awf-links a { color: var(--muted) !important; }
.awf-create .btn-big { margin-top: 18px; }

/* cabin color picker */
.look-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.look-row label, .stickers-row label, .wraps-row label { position: relative; }
.look-row input, .stickers-row input, .wraps-row input { position: absolute; opacity: 0; pointer-events: none; }
.look { display: grid; gap: 8px; justify-items: center; padding: 12px 8px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .85rem; cursor: pointer; text-align: center; }
input:checked + .look, input:checked + .wrapcard { border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; }
input:focus-visible + .look, input:focus-visible + .wrapcard, input:focus-visible + .emo { outline: 3px solid #8ec5ff; outline-offset: 2px; }
.mini { display: flex; gap: 5px; justify-content: center; align-items: flex-end; width: 100%; max-width: 96px; padding: 9px 6px 0; border: 3px solid var(--mf); border-bottom: 5px solid var(--mp); border-radius: 7px 7px 2px 2px; background: var(--mb); }
.mini i { width: 18px; height: 16px; border-radius: 2px; background: linear-gradient(90deg, transparent 40%, #f2c14e 40% 60%, transparent 60%), linear-gradient(#d9503f, #b3322b); }
.mini i:nth-child(2) { background: linear-gradient(90deg, transparent 40%, #2e8a56 40% 60%, transparent 60%), repeating-linear-gradient(135deg, #fbf3e6 0 3px, #d0383a 3px 6px); }
.mini i:nth-child(3) { background: linear-gradient(#dcc093, #c9a674); }
.mini-kraft { --mb: #1d4a3a; --mf: #7a4a2a; --mp: #c99560; }
.mini-snow { --mb: #e3ecf4; --mf: #fbfdff; --mp: #c9d7e4; }
.mini-candy { --mb: #6e1d28; --mf: #4a131b; --mp: #ead2ad; }

/* home extras */
.awf-mine { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 14px 16px; }
.awf-mine .awf-fine { color: var(--text2); }
.awf-mine-title { margin: 0 0 8px; font-weight: 600; color: var(--gold-text); }
.awf-mine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.awf-mine-list a { display: flex; justify-content: space-between; gap: 10px; color: #fff; font-weight: 600; text-decoration: none; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.07); }
.awf-mine-list a::after { content: 'Open ›'; color: var(--gold-text); flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 4px 0 20px; }


/* the gift shelf */
.awf-board { position: relative; }
.shelf { position: relative; max-width: 540px; margin: 26px auto 0; padding: 26px clamp(8px, 2vw, 16px) 10px; border: clamp(7px, 1.4vw, 11px) solid var(--shelf-frame); border-radius: 20px; background: radial-gradient(130% 60% at 50% 0%, rgba(255,255,255,.1), transparent 60%), var(--shelf-back); box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 36px rgba(0,0,0,.35); }
.garland { position: absolute; z-index: 3; left: -3%; right: -3%; top: -30px; height: 34px; border-radius: 18px; background: radial-gradient(circle at 9% 45%, var(--red) 0 4px, transparent 5px), radial-gradient(circle at 31% 62%, var(--red) 0 4px, transparent 5px), radial-gradient(circle at 54% 38%, var(--red) 0 4px, transparent 5px), radial-gradient(circle at 76% 60%, var(--red) 0 4px, transparent 5px), radial-gradient(circle at 94% 42%, var(--red) 0 4px, transparent 5px), repeating-linear-gradient(62deg, #2d6a47 0 5px, #1f5238 5px 10px, #3a8358 10px 13px); box-shadow: 0 6px 12px rgba(0,0,0,.35); }
.garland .bulbs { position: absolute; left: 3%; right: 3%; top: 24px; }
.bulbs { position: relative; z-index: 2; display: flex; justify-content: space-between; height: 22px; }
.bulbs::before { content: ''; position: absolute; left: 0; right: 0; top: -2px; height: 10px; border-bottom: 2px solid #1b3a2a; border-radius: 0 0 50% 50%; }
.bulbs i { position: relative; width: 8px; height: 12px; margin-top: 6px; border-radius: 45% 45% 50% 50%; background: #3b4250; }
.bulbs i:nth-child(even) { margin-top: 9px; }
.bulbs i::before { content: ''; position: absolute; top: -3px; left: 1px; width: 6px; height: 4px; background: #23402f; border-radius: 1px; }
.bulbs i:nth-child(4n+1) { --c: #ff6b6b; }
.bulbs i:nth-child(4n+2) { --c: #ffd36e; }
.bulbs i:nth-child(4n+3) { --c: #6fe39a; }
.bulbs i:nth-child(4n) { --c: #79c8ff; }
.bulbs i.on { background: var(--c); box-shadow: 0 0 9px 2px var(--c); animation: awf-twinkle 2.6s ease-in-out infinite; }
.bulbs i:nth-child(3n).on { animation-delay: .9s; }
.bulbs i:nth-child(3n+1).on { animation-delay: 1.7s; }
@keyframes awf-twinkle { 50% { opacity: .6; box-shadow: 0 0 4px 1px var(--c); } }
.windows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.windows li { position: relative; min-width: 0; padding: clamp(4px, 1vw, 8px) clamp(3px, 1vw, 8px) 0; border-bottom: 7px solid var(--plank); }
.windows li::after { content: ''; position: absolute; left: 0; right: 0; bottom: -15px; height: 6px; background: linear-gradient(rgba(0,0,0,.3), transparent); }
.door { --paper: linear-gradient(#dcc093, #c9a674); --ribbon: transparent; position: relative; display: block; width: 100%; padding: 12px 0 15px; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.door:focus-visible { outline: none; }
.door:focus-visible .gift { outline: 3px solid #8ec5ff; outline-offset: 6px; border-radius: 6px; }
.gift { position: relative; isolation: isolate; display: block; width: 100%; max-width: 100px; margin: 0 auto; aspect-ratio: 1 / .8; transition: transform .18s; }
.door:hover .gift { transform: translateY(-3px); }
.gift-box { position: absolute; left: 7%; right: 7%; top: 30%; bottom: 0; display: grid; place-items: center; border-radius: 3px 3px 7px 7px; background: var(--paper); box-shadow: inset 0 -9px 0 rgba(0,0,0,.13), 0 4px 0 rgba(0,0,0,.28); }
.gift-lid { position: absolute; left: 0; right: 0; top: 14%; height: 20%; z-index: 2; border-radius: 5px; background: var(--paper); box-shadow: inset 0 -5px 0 rgba(0,0,0,.2), 0 3px 4px rgba(0,0,0,.25); transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.gift-box::before, .gift-lid::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 15%; transform: translateX(-50%); background: var(--ribbon); box-shadow: inset 2px 0 0 rgba(255,255,255,.3), inset -2px 0 0 rgba(0,0,0,.15); }
.gift-bow { position: absolute; z-index: 3; left: 50%; top: 0; width: 48%; height: 22%; transform: translateX(-50%); transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.gift-bow::before, .gift-bow::after { content: ''; position: absolute; top: 0; width: 52%; height: 100%; background: var(--ribbon); box-shadow: inset -3px -3px 0 rgba(0,0,0,.18); }
.gift-bow::before { left: 0; border-radius: 70% 20% 30% 70% / 80% 30% 40% 80%; transform: rotate(-14deg); transform-origin: 100% 100%; }
.gift-bow::after { right: 0; border-radius: 20% 70% 70% 30% / 30% 80% 80% 40%; transform: rotate(14deg); transform-origin: 0 100%; }
.gift-bow i { position: absolute; z-index: 1; left: 50%; bottom: -10%; width: 26%; height: 52%; transform: translateX(-50%); border-radius: 40%; background: var(--ribbon); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.door-num { position: relative; z-index: 1; font-family: var(--font-d); font-weight: 700; font-size: clamp(1rem, 3.3vw, 1.6rem); line-height: 1; color: var(--num, #6b4320); text-shadow: 0 1px 0 rgba(0,0,0,.18); }
.door-inside { position: absolute; z-index: 1; left: 0; right: 0; top: 4%; display: grid; place-items: center; font-size: clamp(1.1rem, 3.8vw, 1.8rem); opacity: 0; transform: translateY(40%) scale(.6); transition: opacity .3s .15s, transform .45s .15s cubic-bezier(.3, 1.6, .5, 1); }
/* wrapping paper: a plain kraft box until a friend wraps it */
.wrap-classic { --paper: radial-gradient(circle, rgba(255,255,255,.18) 0 1.5px, transparent 2px) 0 0 / 12px 12px, linear-gradient(#d9503f, #b3322b); --ribbon: #f2c14e; }
.wrap-gold { --paper: repeating-linear-gradient(135deg, #fbf3e6 0 6px, #d0383a 6px 12px); --ribbon: #2e8a56; }
.wrap-frost { --paper: radial-gradient(circle, #fff 0 1.6px, transparent 2.2px) 0 0 / 13px 13px, radial-gradient(circle, rgba(255,255,255,.65) 0 1px, transparent 1.6px) 6px 7px / 13px 13px, linear-gradient(#a8d8f3, #6eaedb); --ribbon: #fdfdff; }
.wrap-midnight { --paper: radial-gradient(circle, #ffd76e 0 1.4px, transparent 2px) 0 0 / 15px 15px, radial-gradient(circle, rgba(255,255,255,.75) 0 .9px, transparent 1.4px) 7px 8px / 15px 15px, linear-gradient(#2e2c74, #1b1948); --ribbon: #f2c14e; }
.windows li:nth-child(3n+1) .door:not(.is-filled) { --paper: linear-gradient(var(--e1)); --num: var(--n1); }
.windows li:nth-child(3n+2) .door:not(.is-filled) { --paper: linear-gradient(var(--e2)); --num: var(--n2); }
.windows li:nth-child(3n) .door:not(.is-filled) { --paper: linear-gradient(var(--e3)); --num: var(--n3); }
.door:not(.is-filled) .gift-box { outline: 1.5px dashed rgba(255,255,255,.4); outline-offset: -5px; }
.windows li:nth-child(3n) .door:not(.is-filled) .gift-box { outline-color: rgba(122,42,30,.3); }
.door:not(.is-filled) .gift-box::before, .door:not(.is-filled) .gift-lid::before, .door:not(.is-filled) .gift-bow { display: none; }
.door:not(.is-filled) .gift-lid::after { content: ''; position: absolute; top: 0; bottom: 0; left: 44%; width: 12%; background: rgba(255,255,255,.2); }
.door.is-filled .gift { filter: drop-shadow(0 0 10px rgba(255,214,120,.22)); }
.door.is-filled .door-num { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: #fffaf0; color: #7a2a1e; font-size: clamp(.8rem, 2.5vw, 1.15rem); box-shadow: 0 2px 0 rgba(0,0,0,.22); }
.door.is-filled:not(.is-open):hover .gift-lid { transform: translateY(-14%) rotate(-3deg); }
.door.is-filled:not(.is-open):hover .gift-bow { transform: translate(-50%, -14%) rotate(-3deg); }
.door.is-open .gift-lid { transform: translate(18%, -78%) rotate(18deg); }
.door.is-open .gift-bow { transform: translate(-30%, -86%) rotate(18deg); }
.door.is-open .gift-box::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 34%; border-radius: 3px 3px 0 0; background: linear-gradient(rgba(255,226,150,.95), transparent); }
.door.is-open .door-inside { opacity: 1; transform: none; }
.door.is-today .gift::before { content: ''; position: absolute; z-index: -1; inset: -16% -14% -8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,220,140,.45), transparent); }
.door.is-picked .gift { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 6px; }
.door.is-locked { cursor: not-allowed; }
.door-tag { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); z-index: 3; background: var(--red); color: #fff; font: 700 .62rem/1 var(--font-b); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.door-tag:empty { display: none; }
.door.is-mine .door-tag { background: var(--green); }
.door-who { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 3; max-width: 112%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff6e4; color: #4a3524; font: 600 .64rem/1 var(--font-b); padding: 3px 7px; border-radius: 6px; box-shadow: 0 2px 0 rgba(0,0,0,.22); }
.door-who:empty { display: none; }
.door.is-wiggle .gift { animation: awf-wiggle 2.4s ease-in-out infinite; transform-origin: 50% 100%; filter: drop-shadow(0 0 14px rgba(255,214,120,.75)); }
@keyframes awf-wiggle { 0%, 34%, 100% { transform: rotate(0); } 8% { transform: rotate(-4deg); } 16% { transform: rotate(4deg); } 24% { transform: rotate(-2deg); } }
.door.is-shake .gift { animation: awf-shake .42s; }
@keyframes awf-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.shelf-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px 2px; }
.shelf-foot .awf-board-note { margin: 0; color: var(--shelf-ink); font-size: .86rem; line-height: 1.4; }
.sound-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.1rem; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.25); }


/* owner panel */
.fillcount { text-align: center; color: #5e4f40; font-weight: 600; margin: 0; }
.askday { background: #fff1e6; border: 1.5px dashed #e7a77a; border-radius: 16px; padding: 12px 14px; display: grid; gap: 10px; }
.askday p { margin: 0; font-size: .92rem; }
.apps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.app { display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: none; color: var(--ink) !important; font: 600 .72rem/1.15 var(--font-b); text-align: center; -webkit-tap-highlight-color: transparent; }
.app-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.16); transition: transform .12s; }
.app:hover .app-ico { transform: translateY(-2px); }
.app-ico svg { width: 24px; height: 24px; }
.ico-share { background: #1f5c46; }
.ico-wa { background: #25d366; }
.ico-sms { background: #34c759; }
.ico-story { background: radial-gradient(circle at 30% 110%, #ffd776 0, #f56b39 35%, #d6249f 62%, #285aeb 96%); }
.ico-copy { background: #5b4636; }
.ico-more { background: var(--ink); }
@media (max-width: 380px) { .apps { grid-template-columns: repeat(3, 1fr); row-gap: 10px; } }
.codebox { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff8ec; border: 1.5px dashed #e4cfa9; border-radius: 16px; padding: 12px 14px; }
.codebox-k { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 700; color: #8a755c; }
.codebox-v { margin: 2px 0 0; font: 700 1.3rem/1.2 var(--font-b); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.actlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.actlist button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 8px; border: 0; background: none; border-radius: 14px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.actlist button:hover { background: #f6ead6; }
.act-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #f6e7cf; font-size: 1.2rem; }
.act-t { flex: 1; display: grid; gap: 1px; font-weight: 600; }
.act-t small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.act-go { color: #b8a58c; font-size: 1.4rem; line-height: 1; }

/* friend panel + editor */
.howto { list-style: none; margin: 0; padding: 0; counter-reset: awf-s; display: grid; gap: 10px; }
.howto li { counter-increment: awf-s; display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.45; }
.howto li::before { content: counter(awf-s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.mini-gift, .ww { position: relative; isolation: isolate; flex: none; display: inline-grid; place-items: center; width: 46px; height: 40px; margin-top: 10px; border-radius: 3px 3px 6px 6px; background: var(--paper); box-shadow: inset 0 -6px 0 rgba(0,0,0,.14), 0 3px 0 rgba(0,0,0,.2); font: 700 1rem var(--font-d); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.65); }
.mini-gift::before, .ww::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 9px; transform: translateX(-50%); background: var(--ribbon); }
.mini-gift::after, .ww::after { content: ''; position: absolute; left: 50%; top: -11px; width: 26px; height: 13px; transform: translateX(-50%); background: radial-gradient(ellipse at 28% 55%, var(--ribbon) 0 45%, transparent 48%), radial-gradient(ellipse at 72% 55%, var(--ribbon) 0 45%, transparent 48%); }
.mini-gift:not([class*="wrap-"]) { --paper: radial-gradient(circle, rgba(255,255,255,.18) 0 1.5px, transparent 2px) 0 0 / 12px 12px, linear-gradient(#d9503f, #b3322b); --ribbon: #f2c14e; }
.stickers-row { display: flex; flex-wrap: wrap; gap: 8px; }
.emo { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); font-size: 1.25rem; cursor: pointer; transition: transform .12s; }
.emo:hover { transform: scale(1.08); }
input:checked + .emo { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,180,67,.4); background: #fff8e6; }
.wraps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wrapcard { display: grid; justify-items: center; gap: 7px; padding: 10px 4px 9px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .76rem; line-height: 1.15; cursor: pointer; text-align: center; }
.ww { width: 40px; height: 32px; }
.paper, .note { position: relative; background-color: #fffdf7; border: 1px solid #eadcc6; border-radius: 14px; background-image: linear-gradient(90deg, transparent 28px, #f2b8b0 28px 29.5px, transparent 29.5px), repeating-linear-gradient(180deg, transparent 0 31px, #e3eaf3 31px 32px); background-position: 0 0, 0 10px; box-shadow: 0 6px 18px rgba(80,50,20,.08); }
.paper { padding: 12px 14px 10px 40px; }
.paper-dear { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 2px; font: 700 .72rem var(--font-b); letter-spacing: .1em; text-transform: uppercase; color: #8a755c; }
.paper textarea { display: block; width: 100%; min-height: 128px; border: 0; padding: 0; background: transparent; resize: vertical; font: 500 1.35rem/32px var(--font-h); color: #2a3a6b; outline: none; }
.paper-from { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 0; font: 500 1.3rem var(--font-h); color: #6b5b4b; }
.paper-from input { flex: 1; min-width: 0; border: 0; border-bottom: 1.5px dashed #d9c7a8; background: transparent; font: 500 1.3rem var(--font-h); color: #2a3a6b; padding: 2px 4px; outline: none; }
.paper:focus-within { border-color: var(--gold); }
.ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.idea { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 12px; font: 500 .82rem var(--font-b); cursor: pointer; color: var(--ink); text-align: left; }
.idea:hover { border-color: var(--gold); }
.done-actions { display: grid; gap: 10px; text-align: center; }
.done-actions .awf-fine { margin: -4px 0 4px; }
.owes { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, #fff1e2, #fde4e4); border-radius: 16px; padding: 12px 14px; text-align: left; font-size: .9rem; color: #5e4f40; }
.owes p { margin: 0; }
.owes b { display: block; color: var(--ink); font-size: .98rem; }
.owes .mini-gift { width: 40px; height: 34px; font-size: .9rem; }

/* dialogs */
.awf-dialog { border: 0; padding: 0; border-radius: 26px; background: var(--cream); color: var(--ink); width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.awf-dialog[open] { animation: awf-pop .22s ease-out; }
@keyframes awf-pop { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.awf-dialog::backdrop { background: rgba(6,12,22,.72); backdrop-filter: blur(4px); }
.awf-dialog-in { position: relative; padding: 26px 22px 22px; display: grid; gap: 12px; }
.dlg-x { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: #7a6a58; }
.dlg-x:hover { background: #f2e6d2; }
.dlg-title { font-family: var(--font-d); font-weight: 700; font-size: 1.45rem; line-height: 1.2; margin: 0; padding-right: 34px; }
.awf-center.dlg-title, .awf-center .dlg-title { padding-inline: 34px; }
@media (max-width: 600px) {
  .awf-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92dvh; }
}
.read-head { display: flex; align-items: center; gap: 12px; }
.awf-scratch-wrap { position: relative; }
.awf-notes { display: grid; gap: 12px; min-height: 170px; max-height: 52vh; overflow: auto; align-content: start; }
.awf-scratch { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; touch-action: none; cursor: grab; transition: opacity .4s; }
.awf-scratch.is-gone { opacity: 0; }
.awf-scratch-tools { margin: 0; text-align: center; font-size: .88rem; color: var(--muted); }
.read-actions { display: grid; gap: 10px; }
.note { padding: 14px 16px 12px 40px; }
.note-stamp { position: absolute; top: 12px; right: 12px; width: 46px; height: 52px; display: grid; place-items: center; font-size: 1.5rem; background: #fff; border: 2px dashed #d9c7a8; border-radius: 4px; transform: rotate(4deg); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.note-head { margin: 0; font: 700 .7rem var(--font-b); letter-spacing: .1em; text-transform: uppercase; color: #8a755c; }
.note-fromline { margin: 2px 0 6px; font-weight: 700; padding-right: 54px; }
.note-text { margin: 0; padding-right: 40px; font: 500 1.4rem/32px var(--font-h); color: #2a3a6b; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-song { margin: 6px 0 0; font-size: .88rem; color: #5e4f40; }
.note-from { margin: 4px 0 6px; text-align: right; font: 500 1.25rem var(--font-h); color: #6b5b4b; }
.note-tools { margin: 0; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; font: 600 .85rem var(--font-b); cursor: pointer; color: var(--ink); }
.note-actions { display: flex; gap: 14px; margin: 8px 0 0; }
.done-art { position: relative; width: 132px; height: 122px; margin: 6px auto 0; }
.done-art .done-gift { position: absolute; left: 50%; bottom: 0; width: 104px; height: 84px; margin: 0; transform: translateX(-50%); font-size: 1.9rem; }
.done-art .done-gift::before { width: 18px; }
.done-art .done-gift::after { top: -22px; width: 54px; height: 26px; }
.done-env { position: absolute; left: 50%; top: 0; font-size: 2.5rem; transform: translateX(-50%) rotate(-6deg); animation: awf-tuck 1.1s ease-out both; }
@keyframes awf-tuck { from { transform: translate(-50%, -34px) rotate(-16deg); opacity: 0; } 60% { opacity: 1; } }
.keep-emoji { margin: 0; text-align: center; font-size: 2.4rem; }
.keep-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.keep-row .btn { padding-inline: 10px; font-size: .9rem; }
.awf-story-img { justify-self: center; width: min(250px, 66%); height: auto; aspect-ratio: 9 / 16; border-radius: 14px; background: #172133; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.sheet-body { display: grid; gap: 12px; }
.sheet-body .awf-fine { margin: 0; }
.sheet-list { display: grid; gap: 10px; }
.sheet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.poster-qr { justify-self: center; width: 210px; min-height: 210px; display: grid; place-items: center; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); font-size: .85rem; color: var(--muted); text-align: center; }
.poster-qr svg { width: 100%; height: auto; display: block; }
.poster-code { margin: 0; text-align: center; font: 700 1rem var(--font-b); letter-spacing: .08em; }
.awf-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1000; transform: translate(-50%, 16px); max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font: 600 .9rem/1.35 var(--font-b); text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.awf-toast.on { opacity: 1; transform: translate(-50%, 0); }
.print-poster { display: none; }
@media print {
  html.print-poster-on body::before, html.print-poster-on body::after, html.print-poster-on body > *:not(.print-poster) { display: none !important; }
  html.print-poster-on body { background: #fff; }
  html.print-poster-on .print-poster { display: block !important; color: #000; text-align: center; font-family: var(--font-b); padding-top: 1cm; }
  .print-poster h2 { font-family: var(--font-d); font-size: 30pt; margin: 0 0 10pt; }
  .print-poster .pp-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: 11pt; margin: 0 0 6pt; }
  .print-poster .pp-qr svg { width: 9cm; height: 9cm; }
  .print-poster p { font-size: 14pt; }
}


/* content sections */
.steps { padding: 48px 0 30px; }
.steps h2, .faq h2, .talk h2, .prose h2 { font-family: var(--font-d); font-weight: 700; color: #fff8ec; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; margin: 0 0 10px; }
.steps-lede { color: var(--text2); max-width: 42em; margin: 0; }
.steps-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: awf-st; }
.steps-list li { counter-increment: awf-st; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 20px; }
.steps-list li::before { content: counter(awf-st); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 50%; background: linear-gradient(var(--gold-hi), var(--gold)); color: var(--gold-ink); font-weight: 800; }
.steps-list h3 { margin: 0 0 6px; font-size: 1.08rem; color: #fff; }
.steps-list p { margin: 0; color: var(--text2); line-height: 1.55; }
.more-link { color: var(--text2); margin: 18px 0 0; }
.prose { color: var(--text2); line-height: 1.75; font-size: 1.02rem; }
.prose.wrap, .faq .wrap, .talk .wrap, .guide-head .wrap { width: min(820px, 100% - 32px); }
article.prose { padding: 26px 0 10px; }
.prose h2 { margin-top: 1.2em; }
.prose h3 { color: #fff; font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose strong { color: #fff; }
.prose blockquote { margin: 1em 0; padding: .3em 1em; border-left: 3px solid var(--gold); color: #e8dfcf; background: rgba(255,255,255,.04); border-radius: 0 12px 12px 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid rgba(255,255,255,.14); padding: 8px 10px; text-align: left; }
.prose th { color: #fff; background: rgba(255,255,255,.06); }
.faq { padding: 40px 0; }
.faq-list { display: grid; gap: 10px; margin-top: 16px; }
.faq details { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 2px 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--gold-text); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; color: var(--text2); line-height: 1.65; }
.talk { padding: 40px 0 50px; }
.talk-lede, .talk-empty { color: var(--text2); }
.talk-form { display: grid; gap: 10px; margin: 16px 0; padding: 18px; border-radius: 20px; background: var(--cream); color: var(--ink); }
.talk-form .btn { justify-self: start; }
.talk-reply { margin: 0; font-size: .88rem; }
.talk-msg { margin: 0; font-size: .88rem; color: var(--green); }
.talk-msg:empty { display: none; }
.cmt { margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.cmt-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin: 0; color: #fff; }
.cmt-head time { color: var(--text2); font-size: .8rem; }
.cmt-owner { background: var(--gold); color: var(--gold-ink); font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.cmt-to { margin: 4px 0 0; color: var(--text2); font-size: .85rem; }
.cmt-to:empty { display: none; }
.cmt-text { margin: 6px 0; color: #efe7da; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt .awf-link { color: var(--gold-text); }
.cmt-replies { margin-left: 16px; }
.guide-head { padding: 36px 0 10px; }
.guide-head h1 { margin-top: .4em; }
.guide-cta { margin: 20px 0 0; }
.guide-body { padding-top: 10px; }
.cta-band { margin: 20px 0 10px; }
.cta-band-in { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 26px; border-radius: 24px; background: linear-gradient(135deg, #1f3550, #2a2140); border: 1px solid rgba(255,255,255,.12); }
.cta-band-title { margin: 0; font-family: var(--font-d); font-size: 1.5rem; color: #fff; }
.cta-band-text { margin: 6px 0 0; color: var(--text2); }
.legal { padding: 36px 0 20px; }
.legal .updated { color: var(--text2); font-size: .9rem; }
.foot { margin-top: 40px; padding: 36px 0; border-top: 1px solid rgba(255,255,255,.08); color: var(--text2); font-size: .9rem; }
.foot-in { display: grid; gap: 18px; }
@media (min-width: 800px) { .foot-in { grid-template-columns: 1.2fr 2fr; } }
.foot-brand { margin: 0 0 6px; font-family: var(--font-d); color: #fff; font-size: 1.15rem; }
.foot-note { margin: 0; max-width: 32em; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: start; }
.foot-nav a { color: var(--text2); text-decoration: none; }
.foot-nav a:hover { color: #fff; }
.foot-copy { grid-column: 1 / -1; margin: 0; opacity: .7; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* photos and illustrations */
.hero-copy { position: relative; padding: 26px 26px 28px; border-radius: 24px; overflow: hidden; background: linear-gradient(90deg, rgba(9,16,28,.9) 0%, rgba(9,16,28,.8) 55%, rgba(9,16,28,.55) 100%), url(https://img.advent-with-friends.me/s_1l2b3q1e0f043m/hero.ef87d33e64.jpg) 72% 42% / cover; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.steps-list li { position: relative; overflow: hidden; }
.steps-list li::before { position: absolute; z-index: 1; top: 14px; left: 14px; margin: 0; }
.step-pic { aspect-ratio: 1; margin: -20px -20px 16px; background: #101b2d center / cover no-repeat; }
.steps-list li:nth-child(1) .step-pic { background-image: url(https://img.advent-with-friends.me/s_1l2b3q1e0f043m/step-1-make.ce47713291.jpg); }
.steps-list li:nth-child(2) .step-pic { background-image: url(https://img.advent-with-friends.me/s_1l2b3q1e0f043m/step-2-share.f28f1e05f1.jpg); }
.steps-list li:nth-child(3) .step-pic { background-image: url(https://img.advent-with-friends.me/s_1l2b3q1e0f043m/step-3-fill.efdb218b5e.jpg); }
.steps-list li:nth-child(4) .step-pic { background-image: url(https://img.advent-with-friends.me/s_1l2b3q1e0f043m/step-4-open.53cdea07e6.jpg); }
.who { padding: 36px 0 10px; }
.who h2 { font-family: var(--font-d); font-weight: 700; color: #fff8ec; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; margin: 0; }
.who-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 18px; }
.who-grid figure { margin: 0; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.who-grid img { display: block; width: 100%; height: auto; }
.who-grid figcaption { padding: 14px 16px 16px; color: var(--text2); font-size: .92rem; line-height: 1.5; }
.who-grid b { display: block; margin-bottom: 2px; color: #fff; font-size: 1.02rem; }


/* calendar page: friend prompt, owner live card, friend guide */
.cal-invite { display: flex; gap: 12px; align-items: flex-start; max-width: 560px; margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: var(--text); font-size: .95rem; line-height: 1.5; }
.cal-invite-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 1.2rem; }
.cal-invite b { color: #fff; }
.live { padding: 16px 18px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: var(--text); }
.live-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-weight: 700; font-size: 1.02rem; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: #ff8a80; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ff5a4e; animation: awf-pulse 1.8s infinite; }
@keyframes awf-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,78,.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255,90,78,0); } }
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.live-grid p { display: grid; gap: 4px; margin: 0; padding: 12px 6px; border-radius: 14px; background: rgba(0,0,0,.22); text-align: center; }
.live-grid b { font-family: var(--font-d); font-size: 1.6rem; line-height: 1; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.live-grid span { font-size: .78rem; color: var(--text2); }
.live-note { margin: 10px 0 0; font-size: .88rem; color: var(--text2); }
.cal-guide { display: grid; gap: 26px; max-width: 900px; margin: 52px auto 0; }
.guide-card { padding: 24px; border-radius: 24px; background: linear-gradient(135deg, rgba(240,180,67,.14), rgba(200,66,59,.12)); border: 1px solid rgba(255,255,255,.14); }
.guide-card h2, .guide-block h2 { margin: 0 0 10px; font-family: var(--font-d); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; color: #fff8ec; }
.guide-card p { margin: 0 0 16px; color: var(--text2); line-height: 1.6; }
.guide-steps { list-style: none; counter-reset: awf-g; display: grid; gap: 10px; margin: 14px 0 0; padding: 0; }
.guide-steps li { counter-increment: awf-g; position: relative; padding: 16px 18px 16px 58px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--text2); line-height: 1.55; }
.guide-steps li::before { content: counter(awf-g); position: absolute; left: 20px; top: 11px; font-family: var(--font-d); font-weight: 700; font-size: 1.6rem; color: var(--gold-text); }
.guide-steps b { color: #fff; }
.guide-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.guide-shots figure { margin: 0; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.guide-shots img { display: block; width: 100%; height: auto; }
.guide-shots figcaption { padding: 12px 16px; color: var(--text2); font-size: .9rem; }
.guide-fine { margin: 10px 0 0; color: var(--text2); font-size: .88rem; }
.guide-block details { padding: 2px 18px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.guide-block summary { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; color: #fff; }
.guide-block summary::-webkit-details-marker { display: none; }
.guide-block summary::after { content: '+'; flex: none; color: var(--gold-text); font-size: 1.3rem; line-height: 1; }
.guide-block details[open] summary::after { content: '–'; }
.guide-block details p { margin: 0 0 16px; color: var(--text2); line-height: 1.65; }
.guide-block .faq-list { margin-top: 14px; }
.guide-ideas { margin-top: 12px; }
.guide-ideas .idea { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: var(--text); padding: 10px 14px; }


@media (min-width: 960px) { .awf[data-mode="cal"] { grid-template-rows: auto 1fr; } }

.guide-block summary { display: block; position: relative; padding-right: 30px; }
.guide-block summary::after { position: absolute; right: 0; top: 13px; }


/* ---------- 2026-12 guide pages: readability + mobile nav ---------- */
.guide-head .eyebrow { margin-bottom: 22px; border-color: rgba(240,180,67,.26); }
.guide .lede { max-width: 40em; }

/* reading column: keep lines short, break long sections apart */
.prose { max-width: 68ch; }
.prose > p, .prose > ul, .prose > ol, .prose > blockquote { max-width: 66ch; }
.prose > h2 { margin-top: 2.2em; padding-top: 1.05em; border-top: 1px solid rgba(255,255,255,.13); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose > h3 { margin-top: 1.7em; }
.prose > p, .prose > li { font-size: 1.02rem; line-height: 1.72; }
.prose > ul, .prose > ol { padding-left: 1.15em; display: grid; gap: 8px; }

@media (max-width: 500px) {
  .prose > p, .prose > li, .prose > ul li, .prose > ol li { font-size: 15px; line-height: 1.7; }
  .prose > h2 { margin-top: 1.9em; padding-top: .9em; }
  .prose > h2 + p, .prose > h3 + p { margin-top: .5em; }
  .guide-head .eyebrow { margin-bottom: 18px; font-size: .8rem; }
}

/* mobile nav: every entry visible as a swipeable row of chips */
@media (max-width: 760px) {
  .topbar-in { flex-wrap: wrap; row-gap: 8px; padding-bottom: 6px; }
  .topnav { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a:not(.pill) { display: inline-flex; flex: 0 0 auto; }
  .topnav a { padding: 7px 11px; font-size: .88rem; }
}


/* ---------- pass 2: heading rhythm, mobile H1, nav fade ---------- */
.guide-head .eyebrow { margin-bottom: 26px; }
.guide-head h1 { margin-top: 6px; }
.prose > p { margin-bottom: 1.2em; }
.prose > h2 { margin-top: 2.6em; padding-top: .5em; }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose > h2 + p { margin-top: .6em; }

@media (max-width: 520px) {
  .guide-head h1 { font-size: 36px; line-height: 1.12; letter-spacing: -.01em; }
}

@media (max-width: 500px) {
  .prose > p, .prose > li, .prose > ul li, .prose > ol li { line-height: 1.65; }
}

@media (max-width: 760px) {
  .topnav {
    gap: 6px;
    padding-right: 20px;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 20px), transparent 100%);
  }
  .topnav a { padding: 6px 9px; font-size: .82rem; }
  .topnav a.pill { padding: 6px 11px; }
}


/* ---------- pass 3: title block spacing ---------- */
.guide-head h1 { margin: 6px 0 20px; }
.guide-head .lede { margin-top: 0; margin-bottom: 28px; }
.guide-head .guide-cta { margin-top: 0; }
.prose { max-width: 66ch; margin-inline: auto; }
.prose > h2 { margin-top: 2.8em; padding-top: .4em; }
