/* App layer on top of ds.css (the design's shared styles). Turns the fixed-size
   mockups into a responsive, accessible app. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--display); }
[hidden] { display: none !important; }
#app { outline: none; }
.ds { overflow: visible; }
.screen { width: 100%; max-width: 560px; margin: 0 auto; min-height: 100vh; }
.home { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--pine); color: var(--snow); padding: 10px 14px; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--snow); }
.btn:hover { filter: brightness(1.12); }
.btn.ghost:hover { background: var(--cream-2); filter: none; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
a { color: var(--pine); }
select.input { appearance: auto; }
.input:focus { border-color: var(--pine); }
.input[aria-invalid="true"] { border: 3px solid var(--berry); }
input[type="file"].input { padding: 8px; }
.people .rm { background: transparent; border: 0; color: inherit; font: inherit; font-size: 1.3rem; cursor: pointer; padding: 0; }
.people li.me .rm { color: var(--snow); }
.thumb img { width: 68px; height: 68px; object-fit: cover; display: block; }
.thumb.photo { padding: 0; overflow: hidden; }
.chip.frozen { background: var(--frost); color: var(--pine); }
.gift .no-back { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.confirm .row .btn { flex: 1 1 auto; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; width: max-content; max-width: min(92vw, 520px);
  background: var(--ink); color: var(--snow); padding: 12px 16px; font-weight: 600; }
.qr-tile svg { width: 150px; height: 150px; display: block; background: var(--snow); }
.music .eq.on i { animation: eq 0.9s ease-in-out infinite alternate; }
.music .eq.on i:nth-child(2) { animation-delay: -.3s; } .music .eq.on i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
input[type="range"].vol { width: 100%; min-height: 44px; accent-color: var(--berry); }
details.help { display: block; padding: 0; }
details.help summary { padding: 10px 14px; min-height: 44px; display: flex; align-items: center; cursor: pointer; list-style: none; }
details.help summary::-webkit-details-marker { display: none; }
details.help summary::after { content: "+"; margin-left: auto; font-family: var(--mono); font-size: 1.2rem; }
details.help[open] summary::after { content: "–"; }
details.help .ans { padding: 0 14px 14px; font-weight: 400; display: flex; flex-direction: column; gap: 8px; }
details.help ul { margin: 0; padding-left: 20px; }
.msg p { flex: 1; }
.plan-opt { display: flex; gap: 12px; align-items: flex-start; background: var(--snow); border: 2px solid var(--muted); padding: 12px 14px; cursor: pointer; }
.plan-opt.on { border: 3px solid var(--berry); }
.plan-opt input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--berry); flex: none; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.page-pad { padding: 0 16px 40px; }
.loading { padding: 40px 0; font-family: var(--mono); color: var(--muted); }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); } .phone { width: 280px; height: 530px; } }
@media (max-width: 380px) { .order { grid-template-columns: minmax(0, 1fr); } .who { font-size: 2.1rem; } }

/* full-screen moments */
#fx { position: fixed; inset: 0; z-index: 50; }
#fx .fx { width: 100%; height: 100%; }
#fx .fx-santa { left: calc(50% - 50px); }
#fx .fx-card { max-width: 520px; }
.anim .star { animation: fx-reveal .5s cubic-bezier(.3,1.5,.5,1) both; }
.anim .cf { animation: fx-burst 1.4s ease-out both; }
.anim .fx-kicker, .anim .fx-title, .anim .fx-card > p { animation: fx-rise .45s ease-out .15s both; }
.anim .band { animation: fx-wipe .45s ease-out both; }
.anim .band.b2 { animation: fx-wipe2 .45s ease-out .05s both; }
.anim .stamp { animation: fx-stamp .4s cubic-bezier(.3,1.6,.5,1) .15s both; }
.anim .mini-gift { animation: fx-snatch .8s cubic-bezier(.6,0,.3,1.2) .5s both; }
.anim .fx-santa { animation: fx-santa .6s cubic-bezier(.3,1.5,.5,1) .35s both; }
.fx .mini-gift { right: 0; left: auto; }
.fx .photo-reveal { width: 200px; height: 200px; object-fit: cover; border: 6px solid var(--snow); }
@keyframes fx-reveal { from { opacity: 0; transform: scale(.3) rotate(-14deg); } }
@keyframes fx-burst { from { transform: translate(0,0); opacity: 1; } to { transform: translate(var(--dx,0), var(--dy,-60px)) rotate(220deg); opacity: 0; } }
@keyframes fx-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fx-wipe { from { transform: translateX(-110%); } }
@keyframes fx-wipe2 { from { transform: translateX(110%); } }
@keyframes fx-stamp { from { opacity: 0; transform: rotate(-6deg) scale(2.2); } to { opacity: 1; transform: rotate(-6deg); } }
@keyframes fx-snatch { 0% { right: 68px; } 40% { transform: translateY(-14px) rotate(-12deg); } 100% { right: 0; transform: none; } }
@keyframes fx-santa { from { transform: translateY(140%); } }

/* hero demo (from the design's homepage) */
.demo-phone { display: block !important; position: relative; }
.demo-phone .scene{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden;animation:demo-in .35s ease-out both}
.demo-steps button{min-height:44px;min-width:44px;padding:8px 12px;border:2px solid #173D2E;background:transparent;color:#173D2E;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.demo-steps button[aria-pressed="true"]{background:#173D2E;color:#FFFDF8}
.demo-scanline{position:absolute;left:-10px;right:-10px;height:3px;background:#8E2321;top:0;animation:demo-scan 1.4s ease-in-out infinite alternate}
.demo-type{display:inline-block;overflow:hidden;white-space:nowrap;width:0;animation:demo-type 1.1s steps(10) .2s forwards}
.demo-caret{display:inline-block;width:2px;height:20px;background:#1E1E16;margin-left:2px;animation:demo-blink .6s step-end infinite}
.demo-btn{animation:demo-press .3s ease 1.4s both}
.demo-chip{opacity:0;animation:demo-pop .4s cubic-bezier(.3,1.6,.5,1) 1.7s forwards}
.demo-rise{opacity:0;animation:demo-rise .45s ease-out .15s forwards}
.demo-tap::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:rgba(142,35,33,.35);animation:demo-ripple .8s ease-out 1.4s both}
.demo-star{width:110px;height:110px;background:#E3C58B;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);animation:demo-reveal .5s cubic-bezier(.3,1.5,.5,1) .1s both}
.demo-cf{position:absolute;width:10px;height:10px;animation:demo-burst 1.2s ease-out .15s both}
.demo-wipe{animation:demo-wipe .45s ease-out both}
.demo-wipe2{animation:demo-wipe2 .45s ease-out .05s both}
.demo-stamp{animation:demo-stamp .4s cubic-bezier(.3,1.6,.5,1) .2s both}
.demo-gift{position:absolute;left:0;bottom:3px;width:20px;height:17px;background:#8E2321;outline:2px solid #FFFDF8;animation:demo-snatch .7s cubic-bezier(.6,0,.3,1.2) .6s both}
.demo-santa{animation:demo-santa .6s cubic-bezier(.3,1.5,.5,1) .4s both}
@keyframes demo-in{from{opacity:0}to{opacity:1}}
@keyframes demo-scan{from{top:0}to{top:127px}}
@keyframes demo-type{to{width:10ch}}
@keyframes demo-blink{50%{opacity:0}}
@keyframes demo-press{50%{transform:scale(.92)}}
@keyframes demo-pop{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}
@keyframes demo-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes demo-ripple{from{transform:scale(0);opacity:1}to{transform:scale(6);opacity:0}}
@keyframes demo-reveal{from{opacity:0;transform:scale(.3) rotate(-14deg)}to{opacity:1;transform:none}}
@keyframes demo-burst{from{transform:translate(0,0);opacity:1}to{transform:translate(var(--dx),var(--dy)) rotate(200deg);opacity:0}}
@keyframes demo-wipe{from{transform:translateX(-110%)}to{transform:none}}
@keyframes demo-wipe2{from{transform:translateX(110%)}to{transform:none}}
@keyframes demo-stamp{from{opacity:0;transform:rotate(-6deg) scale(2.2)}to{opacity:1;transform:rotate(-6deg)}}
@keyframes demo-snatch{0%{left:0}40%{transform:translateY(-14px) rotate(-12deg)}100%{left:40px;transform:none}}
@keyframes demo-santa{from{transform:translateY(120%)}to{transform:none}}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .demo-phone .scene, .demo-chip, .demo-rise { opacity: 1 !important; }
  .demo-type { width: 10ch; } .demo-gift { left: 40px; }
}

/* Tile strip runs edge to edge on every screen size (no cut-off on desktop). */
html, body { overflow-x: clip; }
.strip { margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; width: 100vw; grid-template-columns: repeat(4, 1fr); }
.strip .more { display: none; }
@media (min-width: 761px) {
  .strip { grid-template-columns: repeat(8, 1fr); }
  .strip .more { display: grid; }
  /* More breathing room between homepage sections on desktop */
  .home .wrap { gap: 28px; }
  .hero { padding: 48px 0 32px; }
  .block { padding-top: 112px; gap: 24px; }
  .foot { margin-top: 112px; }
}

/* Early-bird sale */
.sale-note { background: var(--berry); color: var(--snow); padding: 10px 14px; font-weight: 600; max-width: 520px; }
s.was { font-size: .85em; font-weight: 600; color: #B2302E; text-decoration-color: #B2302E; text-decoration-thickness: 2px; margin-right: .25em; }
.now { color: #2A5E45; }
.price s.was { font-size: .55em; vertical-align: .25em; }
.plan-opt s.was { font-size: 1em; text-decoration-thickness: 1.5px; }
.admin-table { border-collapse: collapse; font-size: .9rem; background: var(--snow); }
.admin-table th, .admin-table td { border: 1px solid var(--muted); padding: 6px 8px; text-align: right; white-space: nowrap; }
.admin-table th[scope="col"] { font-family: var(--mono); font-weight: 500; font-size: .78rem; }

/* TV mode: a 16:9 big-screen view, readable from the couch */
body.tv-mode { background: var(--cream); }
.tv { min-height: 100vh; display: flex; flex-direction: column; font-size: clamp(18px, 1.55vw, 34px); }
.tv .strip { height: 4.2vw; min-height: 48px; }
.tv .strip .more { display: grid; }
.tv .strip { grid-template-columns: repeat(8, 1fr); }
.tv .strip .st2 svg { width: 3.2vw; height: 3.3vw; min-width: 40px; min-height: 42px; }
.tv-top { display: flex; justify-content: space-between; align-items: center; padding: .6em 3vw; }
.tv .title-h { font-size: 1.2em; }
.tv .tag { font-size: .8em; }
.tv main { flex: 1; padding: 0 3vw 2.5vw; }
.tv .banner { padding: 1em 5em 1em 1.2em; }
.tv .who { font-size: 3.2em; }
.tv .eyebrow, .tv .sub { font-size: 1em; }
.tv .mono-h { font-size: .9em; margin: 1em 0 .5em; }
.tv-lobby { display: grid; grid-template-columns: auto 1fr; gap: 3vw; align-items: start; }
.tv-qr { background: var(--pine); color: var(--snow); padding: 1.5vw; display: flex; flex-direction: column; align-items: center; gap: .4em; text-align: center; }
.tv-qr svg { width: 26vw; height: 26vw; max-width: 520px; max-height: 520px; }
.tv-qr .qr-big { font-size: 1.8em; }
.tv .people li { min-height: 0; padding: .35em .8em; font-size: 1em; }
.tv-music { display: flex; gap: .6em; align-items: center; margin-top: 1em; font-weight: 600; }
.tv-music .eq { height: 1.2em; } .tv-music .eq i { width: .3em; background: var(--berry); display: block; animation: eq .9s ease-in-out infinite alternate; }
.tv-play { display: grid; grid-template-columns: 1fr 26vw; gap: 2.5vw; align-items: start; }
.tv-gifts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17vw, 1fr)); gap: .8vw; }
.tv-gifts li { display: grid; grid-template-columns: 4em 1fr; gap: .7em; align-items: center; background: var(--cream-2); padding: .6em; border: 2px solid var(--pine); }
.tv-gifts li.frozen { background: var(--frost); }
.tv-gifts .thumb, .tv-gifts .thumb img { width: 4em; height: 4em; font-size: 1.2em; }
.tv-gifts .g-desc { font-size: 1.05em; font-weight: 700; line-height: 1.2; }
.tv-gifts .g-holder { font-size: .85em; }
.tv-gifts .pip { width: .6em; height: .6em; }
.tv .order { grid-template-columns: 1fr 1fr; }
.tv .order li { font-size: .8em; padding: .35em .6em; }
.tv .log li { font-size: .8em; padding: .4em 0; }
.tv-join { display: flex; gap: .8em; align-items: center; margin-top: 1.2em; font-size: .8em; }
.tv-join svg { width: 7vw; height: 7vw; min-width: 90px; min-height: 90px; }
.tv-done { max-width: 82vw; margin: 0 auto; }
.tv-results { list-style: none; margin: .6em 7em 0 0; padding: 0; column-gap: 2.5em; }
.tv-results.two { columns: 2; }
.tv-results li { display: flex; justify-content: space-between; gap: 1em; border-top: 1px solid var(--snow); padding: .3em 0; break-inside: avoid; }
.tv-results small { font-size: .7em; display: block; text-align: right; }
.tv-note { margin-top: 1em; font-weight: 600; }
.tv-controls { position: fixed; right: 1.5vw; bottom: 1.5vw; display: flex; gap: 8px; transition: opacity .3s; z-index: 40; }
.tv-controls .btn { background: var(--snow); font-size: 16px; }
body.tv-idle .tv-controls { opacity: 0; pointer-events: none; }
body.tv-idle { cursor: none; }
.tv-mode #fx .fx-title { font-size: 5vw; }
.tv-mode #fx .fx-kicker, .tv-mode #fx .fx-card > p { font-size: 2vw; }
.tv-mode #fx .fx-card > p.stamp { font-size: 7vw; margin-bottom: .2em; }
.tv-mode #fx .star { width: 14vw; height: 14vw; }
.tv-mode #fx .fx-santa { width: 10vw; height: 10.4vw; left: calc(50% - 5vw); }
.tv-mode #fx .swap { font-size: 2vw; max-width: 60vw; margin: 0 auto; }
@media (max-width: 900px) { .tv-lobby, .tv-play { grid-template-columns: 1fr; } .tv-qr svg { width: 60vw; height: 60vw; } }

/* Homepage sale banner: full width, deep teal with soft pink text (7:1), links to the create form */
.sale-banner { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px calc(50vw - 50%); margin: 0 calc(50% - 50vw);
  background: #145049; color: #FFD6DE; font-weight: 600; text-decoration: none; text-align: left; }
.sale-banner b { color: #FFD6DE; }
.sale-banner .sale-cta { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.sale-banner:hover .sale-cta { text-decoration-thickness: 3px; }
.sale-banner:focus-visible { outline-offset: -4px; }
.sale-note { background: #F7CFD8; color: var(--ink); }
.sale-note b { color: #6E1A18; }
.tv-btn { width: 100%; background: var(--fir); color: var(--snow); }
@media (min-width: 761px) { .block { padding-top: 140px; } }

/* More room between homepage sections on phones */
@media (max-width: 760px) { .block { padding-top: 88px; } .foot { margin-top: 88px; } }

/* Footer surprise: big winking Santa */
.santa-wink { position: fixed; left: 50%; bottom: 0; z-index: 30; width: min(70vw, 300px); transform: translate(-50%, 105%); transition: transform .45s cubic-bezier(.3,1.4,.5,1); pointer-events: none; text-align: center; }
.santa-wink.show { transform: translate(-50%, 2%); }
.santa-wink svg { width: 100%; height: auto; display: block; }
.santa-bubble { display: inline-block; margin: 0 0 6px; background: var(--snow); color: var(--ink); border: 3px solid var(--pine); padding: 8px 14px; font-weight: 700; font-size: 1.1rem; }
.santa-wink.show .wink-eye { transform-box: fill-box; transform-origin: center; animation: wink .5s ease-in-out .5s 2; }
@keyframes wink { 50% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce) { .santa-wink { transition: none; } }

/* Pink, playful lobby music player */
.music.fun { position: relative; overflow: hidden; background: #F7CFD8; border: 3px solid var(--berry); color: var(--ink); }
.music.fun .mono-h { color: var(--ink); }
.music.fun .hint { color: #3D3530; }
.music-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.track-count { font-family: var(--mono); font-size: .8rem; background: var(--berry); color: var(--snow); padding: 2px 10px; border-radius: 999px; }
.music-body { position: relative; display: flex; gap: 16px; align-items: center; }
.vinyl { flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: repeating-radial-gradient(circle, #1E1E16 0 2px, #2c2b22 2px 4px); box-shadow: 0 0 0 4px var(--snow), 4px 6px 0 4px var(--berry); }
.vinyl-label { width: 40px; height: 40px; border-radius: 50%; background: #145049; display: grid; place-items: center; border: 2px solid var(--snow); }
.vinyl-label svg { width: 24px; height: 28px; }
.music.on .vinyl { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.music-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.np-pill { align-self: flex-start; font-family: var(--mono); font-size: .78rem; background: var(--snow); color: var(--ink); border: 2px solid var(--berry); padding: 1px 10px; border-radius: 999px; }
.np-title { font-stretch: 125%; font-weight: 800; font-size: 1.3rem; line-height: 1.1; overflow-wrap: anywhere; }
.np-by { font-size: .9rem; color: #3D3530; }
.music.fun .eq { height: 22px; width: auto; gap: 4px; margin-top: 6px; }
.music.fun .eq i { width: 6px; height: 30%; border-radius: 3px; background: var(--berry); }
.music.fun .eq i:nth-child(even) { background: #145049; }
.music.fun .eq.on i { animation: eq .8s ease-in-out infinite alternate; }
.music.fun .eq.on i:nth-child(2) { animation-delay: -.2s; } .music.fun .eq.on i:nth-child(3) { animation-delay: -.5s; }
.music.fun .eq.on i:nth-child(4) { animation-delay: -.35s; } .music.fun .eq.on i:nth-child(5) { animation-delay: -.65s; }
.note { position: absolute; left: 70px; bottom: 30px; font-size: 1.4rem; color: var(--berry); opacity: 0; pointer-events: none; }
.music.on .note { animation: floatnote 2.8s ease-in infinite; }
.music.on .n2 { left: 40px; color: #145049; animation-delay: .9s; }
.music.on .n3 { left: 96px; animation-delay: 1.8s; }
@keyframes floatnote { 0% { opacity: 0; transform: translate(0, 0) rotate(-10deg); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -80px) rotate(15deg); } }
.ico { display: inline-block; vertical-align: -0.125em; flex: none; }
.flake { position: absolute; color: var(--snow); font-size: 1.1rem; opacity: .9; pointer-events: none; }
.f1 { top: 8px; right: 34%; } .f2 { top: 46px; right: 12px; font-size: .9rem; } .f3 { bottom: 70px; right: 24%; font-size: .8rem; }
.music.on .flake { animation: drift 4s ease-in-out infinite alternate; }
.music.on .f2 { animation-delay: -1.5s; } .music.on .f3 { animation-delay: -3s; }
@keyframes drift { to { transform: translate(-8px, 10px) rotate(40deg); } }
.music-progress { height: 8px; background: var(--snow); border: 2px solid var(--berry); border-radius: 999px; overflow: hidden; }
.music-progress i { display: block; height: 100%; width: 0; background: var(--berry); transition: width .3s linear; }
.music.fun .btn.ghost { background: var(--snow); }

/* Footer legal links + legal pages */
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; width: 100%; }
.legal-links a { color: var(--pine); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.legal { max-width: 720px; display: flex; flex-direction: column; gap: 12px; padding-top: 32px; }
.legal h2 { font-stretch: 125%; font-weight: 800; font-size: 1.3rem; margin: 18px 0 0; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* game-over awards */
.awards { border-color: var(--gold, #E3C58B); }
.award-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.award { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--snow, #FFFDF8); border: 2px solid var(--pine, #173D2E); }
.award-icon { font-size: 2rem; line-height: 1; flex: none; }
.award-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.award-title { font-family: 'IBM Plex Mono', monospace; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #6E1A18; }
.award-who { font-stretch: 125%; font-weight: 800; font-size: 1.2rem; overflow-wrap: anywhere; }
.award-why { font-size: .95rem; }
@media (min-width: 700px) { .award-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tv-done.has-awards { max-width: 94vw; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5vw; align-items: stretch; }
.tv-awards { background: var(--snow, #FFFDF8); border: 4px solid var(--pine, #173D2E); padding: 2.5vw; display: flex; flex-direction: column; position: relative; min-height: 0; }
.tv-awards .eyebrow { font-size: 1.4vw; margin: 0; }
.tv-award { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1vw; flex: 1; }
.tv-award.on { display: flex; animation: awardIn .6s ease-out; }
.tv-award .award-icon { font-size: 7vw; }
.tv-award .award-title { font-size: 1.6vw; }
.tv-award .award-who { font-size: 3.4vw; line-height: 1.1; }
.tv-award .award-why { font-size: 1.6vw; max-width: 28vw; }
.tv-award-dots { display: flex; gap: .6vw; justify-content: center; margin: 0; }
.tv-award-dots i { width: .8vw; height: .8vw; border-radius: 50%; border: 2px solid var(--pine, #173D2E); }
.tv-award-dots i.on { background: var(--pine, #173D2E); }
@keyframes awardIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tv-award.on { animation: none; } }

/* Extra gift reveal: the gift drops in and wobbles, the lid pops off, Santa pops out with confetti and light rays.
   Without .anim (reduced motion) it shows the finished scene. */
.fx.xr { background: var(--pine); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.xr-rays { position: absolute; left: 50%; top: 38%; width: 160vmax; height: 160vmax; transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(227, 197, 139, .2) 0 7deg, transparent 7deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 0 12%, transparent 45%); mask: radial-gradient(circle, #000 0 12%, transparent 45%); }
.xr-stage { position: relative; z-index: 1; width: 220px; height: 250px; flex: none; }
.xr-gift { position: absolute; left: 35px; bottom: 0; width: 150px; height: 144px; }
.xr-box { position: absolute; left: 0; bottom: 0; width: 150px; height: 110px; z-index: 1; background: linear-gradient(90deg, #B2302E 0 43%, var(--straw) 43% 57%, #B2302E 57%); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .14); }
.xr-lid { position: absolute; left: -10px; bottom: 106px; width: 170px; height: 34px; z-index: 3; background: linear-gradient(90deg, var(--berry) 0 43%, var(--straw) 43% 57%, var(--berry) 57%); transform: translate(72px, -96px) rotate(28deg); }
.xr-bow { position: absolute; left: 50%; top: -22px; width: 0; height: 0; }
.xr-bow::before, .xr-bow::after { content: ""; position: absolute; top: 0; width: 34px; height: 24px; border: 6px solid var(--straw); border-radius: 50%; }
.xr-bow::before { right: 0; transform: rotate(-20deg); }
.xr-bow::after { left: 0; transform: rotate(20deg); }
.xr-santa { position: absolute; left: 60px; bottom: 60px; width: 100px; height: 104px; z-index: 0; transform: translateY(-58px); }
.xr-santa svg { width: 100%; height: 100%; display: block; }
.xr-cf { z-index: 1; }
.fx.xr .fx-card { gap: 6px; }
.fx.xr .fx-kicker { color: var(--straw); }
.fx.xr.anim .xr-gift { animation: xr-drop .6s cubic-bezier(.3, 1.4, .5, 1) both, xr-wobble .55s ease-in-out .6s; transform-origin: 50% 100%; }
.fx.xr.anim .xr-lid { animation: xr-lid .5s cubic-bezier(.2, 1.3, .5, 1) 1.2s both; }
.fx.xr.anim .xr-santa { animation: xr-pop .55s cubic-bezier(.3, 1.6, .5, 1) 1.3s both; }
.fx.xr.anim .xr-rays { animation: xr-fade .6s ease-out 1.3s both, xr-spin 16s linear infinite; }
.fx.xr.anim .xr-cf { animation: xr-burst 1.4s ease-out both; }
.fx.xr.anim .xr-card > * { animation: fx-rise .45s ease-out 1.55s both; }
@keyframes xr-drop { from { transform: translateY(-120vh); } }
@keyframes xr-wobble { 20% { transform: rotate(-7deg); } 45% { transform: rotate(6deg); } 70% { transform: rotate(-4deg); } 90% { transform: rotate(2deg); } }
@keyframes xr-lid { from { transform: none; } }
@keyframes xr-pop { from { transform: translateY(10px) scale(.2); opacity: 0; } }
@keyframes xr-fade { from { opacity: 0; } }
@keyframes xr-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes xr-burst { 0% { opacity: 0; transform: scale(.2); } 10% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, -60px)) rotate(220deg); } }
.tv-mode #fx .xr-stage { transform: scale(1.6); transform-origin: 50% 100%; margin-top: 18vh; }

/* "print a table sign" card on the room-is-ready screen */
.print-card { background: var(--straw); color: var(--ink); border-color: var(--ink); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.print-card-icon { width: clamp(44px, 14vw, 64px); height: auto; display: block; color: var(--ink); }
.print-card-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.print-card .mono-h { color: var(--ink); }
.print-card .btn { background: var(--ink); color: var(--snow); }

/* recap: the game as a Christmas story */
.group-photo { width: 100%; height: auto; display: block; border: 3px solid var(--pine, #173D2E); }
.recap { background: var(--snow, #FFFDF8); border: 3px solid var(--pine, #173D2E); padding: clamp(20px, 5vw, 56px); margin: 24px 0; display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.recap-h { font-stretch: 125%; font-weight: 800; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.02; margin: 0; color: var(--pine, #173D2E); }
.recap-photo { margin: 6px 0; }
.recap-photo img { width: 100%; height: auto; display: block; border: 3px solid var(--pine, #173D2E); }
.recap-photo figcaption { font-family: 'IBM Plex Mono', monospace; font-size: .9rem; margin-top: 6px; }
.recap-story p { font-size: 1.15rem; line-height: 1.65; margin: 0 0 1em; }
.recap-story p:first-child::first-letter { float: left; font-stretch: 125%; font-weight: 800; font-size: 3.6em; line-height: .85; margin: 4px 8px 0 0; color: #8E2321; }
.recap-sub { font-stretch: 125%; font-weight: 800; font-size: 1.5rem; margin: 12px 0 0; }
.recap-list { list-style: none; margin: 0; padding: 0; }
.recap-list li { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #C9BFA6; padding: 8px 0; }
.recap-list li span:last-child { text-align: right; }
.recap-end { font-stretch: 125%; font-weight: 800; font-size: 1.3rem; text-align: center; margin: 18px 0 0; color: #8E2321; }
.recap-foot { text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: .85rem; margin: 0; }
.tv-photo img { max-width: 100%; max-height: 52vh; object-fit: contain; border: 4px solid var(--pine, #173D2E); }
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; }
  .no-print, #santa-wink, #toast, #fx, .nav { display: none !important; }
  .recap-page, .recap-page .wrap { background: #fff !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .recap { border: none; padding: 0; margin: 0; max-width: none; }
  .recap-story p { font-size: 12pt; }
  .award, .recap-list li, .recap-photo { break-inside: avoid; }
  .award-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  a { color: inherit; text-decoration: none; }
}

/* Rewind! (the host undid a move) */
.fx.rewind { background: #145049; }
.fx.rewind::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,253,248,.06) 0 2px, transparent 2px 6px); }
.fx.rewind .tape { position: absolute; left: 0; right: 0; top: 10%; height: 34px; z-index: 1; background: repeating-linear-gradient(90deg, #FFD6DE 0 18px, #145049 18px 26px, #FFFDF8 26px 44px, #145049 44px 52px); }
.fx.rewind .tape.t2 { top: auto; bottom: 10%; }
.fx.rewind .rw-icon { width: 120px; color: #FFD6DE; }
.fx.rewind .rw-icon svg { width: 100%; height: auto; display: block; }
.fx.rewind .rw-stamp { color: #145049; background: #FFD6DE; }
.fx.rewind .fx-kicker { color: #FFD6DE; }
.anim.rewind .tape { animation: rw-scroll .6s linear infinite; background-size: 52px 100%; }
.anim.rewind .tape.t2 { animation-direction: reverse; }
.anim.rewind .rw-icon { animation: rw-zip .9s cubic-bezier(.5,0,.3,1) both, rw-pulse .5s ease-in-out .9s 3 alternate; }
.anim.rewind .fx-card { animation: rw-shake .5s steps(2) both; }
@keyframes rw-scroll { from { background-position: 0 0; } to { background-position: -52px 0; } }
@keyframes rw-zip { from { transform: translateX(60vw); opacity: 0; } 60% { transform: translateX(-14px); opacity: 1; } to { transform: none; } }
@keyframes rw-pulse { to { transform: translateX(-10px) scale(1.06); } }
@keyframes rw-shake { 0% { transform: translateX(6px) skewX(-4deg); filter: blur(1px); } 50% { transform: translateX(-4px) skewX(3deg); } 100% { transform: none; filter: none; } }
.tv-mode #fx .rw-icon { width: 9vw; }
.tv-mode #fx .fx.rewind .tape { top: 4%; height: 4vh; }
.tv-mode #fx .fx.rewind .tape.t2 { top: auto; bottom: 4%; }
.tv-mode #fx .fx.rewind .fx-title { font-size: 4.6vw; }
.tv-mode #fx .fx.rewind .fx-card > p.stamp { font-size: 5.5vw; }
.tv-mode #fx .fx.rewind .fx-card { gap: 1.2vh; }

/* connection banner */
.conn { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; width: min(560px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #1E1E16; color: #FFFDF8; border: 3px solid #FFD6DE; box-shadow: 6px 6px 0 #8E2321; }
.conn[hidden] { display: none !important; }
.conn-text { flex: 1; font-size: 15px; line-height: 1.4; }
.conn-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #E0603F; animation: conn-pulse 1s ease-in-out infinite alternate; }
.conn .btn { flex: none; background: #FFFDF8; color: #1E1E16; min-height: 44px; }
@keyframes conn-pulse { to { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .conn-dot { animation: none; } }
.is-offline #fx { display: none; }
.tv-mode .conn { bottom: 3vh; width: auto; max-width: 70vw; font-size: 1.6vw; }
.tv-mode .conn-text { font-size: 1.6vw; }

/* Secret Santa reveal page */
.ss-page { padding: 32px 0 64px; }
.ss-card { max-width: 640px; background: var(--snow, #FFFDF8); border: 3px solid var(--pine, #173D2E); box-shadow: 10px 10px 0 var(--berry, #8E2321); padding: clamp(20px, 5vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.ss-kicker { font-family: var(--mono); font-size: 1rem; margin: 6px 0 0; }
.ss-name { font-stretch: 125%; font-weight: 800; font-size: clamp(2.6rem, 10vw, 4.4rem); line-height: 1; color: var(--berry, #8E2321); margin: 0; overflow-wrap: anywhere; }
.ss-status { list-style: none; margin: 0; padding: 0; }
.ss-status li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #C9BFA6; padding: 10px 0; }
.ss-status .yes { color: #1F5A3D; font-weight: 700; }
.ss-status .no { color: #48443A; }

/* guide pages (/dirty-santa, /white-elephant, …) */
.guide { max-width: 760px; display: flex; flex-direction: column; gap: 18px; padding: 24px 0 40px; }
.guide .lede { max-width: none; font-size: 1.2rem; line-height: 1.6; }
.guide-h { font-stretch: 125%; font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.02; margin: 0; color: var(--pine); letter-spacing: -.015em; }
.guide h2 { font-stretch: 125%; font-weight: 800; font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.1; margin: 28px 0 10px; color: var(--pine); }
.guide h3 { font-size: 1.2rem; margin: 18px 0 6px; }
.guide p, .guide li { font-size: 1.08rem; line-height: 1.65; }
.guide ul, .guide ol { padding-left: 24px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.guide a:not(.btn) { color: var(--pine); font-weight: 600; text-underline-offset: 3px; }
.guide section { scroll-margin-top: 16px; }
.crumbs { font-size: .95rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
.toc { background: var(--snow); border: 2px solid var(--pine); padding: 14px 18px; }
.toc-h { font-family: var(--mono); margin: 0 0 6px; }
.toc a { min-height: 32px; display: inline-flex; align-items: center; }
.steps-list li::marker { font-weight: 800; color: var(--berry); }
.guide-cta { background: var(--pine); color: var(--snow); padding: clamp(20px, 4vw, 32px); margin: 24px 0; display: flex; flex-direction: column; gap: 12px; box-shadow: 10px 10px 0 var(--berry); }
.guide-cta h2 { color: var(--snow); margin: 0; }
.guide-cta .kicker, .guide-cta .hint { color: #E9DECB; }
.guide-cta .btn.ghost { color: var(--snow); border-color: var(--snow); }
.guide-links { list-style: none; padding: 0 !important; display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; }
.guide-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 2px solid var(--pine); background: var(--snow); text-decoration: none; }
.table-wrap { overflow-x: auto; }
.rules-table { border-collapse: collapse; width: 100%; background: var(--snow); font-size: 1rem; }
.rules-table th, .rules-table td { border: 1px solid #C9BFA6; padding: 10px 12px; text-align: left; vertical-align: top; }
.rules-table thead th { background: var(--pine); color: var(--snow); }
.tool { display: flex; flex-direction: column; gap: 14px; }
.tool-h { font-stretch: 125%; font-weight: 800; font-size: 1.5rem; margin: 0 !important; color: var(--pine); }
.tool textarea.input { min-height: 180px; font: inherit; resize: vertical; }
.tool-out { border-top: 3px solid var(--pine); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.draw-list { list-style: none; padding: 0 !important; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px !important; }
.draw-list li { display: flex; align-items: center; gap: 12px; background: var(--snow); border: 2px solid var(--pine); padding: 8px 12px; font-weight: 600; }
.draw-n { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: var(--berry); color: var(--snow); font-family: var(--mono); font-weight: 500; }
.btn.small { min-height: 44px; padding: 6px 12px; font-size: .95rem; }
.ss-links { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 0 !important; }
.ss-links li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid #C9BFA6; padding: 10px 0; }
.ss-who { font-weight: 700; font-size: 1.1rem; }
.ss-rules { border: 2px dashed #48443A; padding: 12px 14px; margin: 0; }
.ss-rules legend { font-weight: 600; padding: 0 6px; }
.ss-pairs { list-style: none; padding: 0 !important; }
.ss-pairs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
@media print {
  .guide-page .wrap { max-width: none; }
  .guide { padding: 0; }
  .guide-cta, .crumbs, .toc, #faq-h, .faq, .tool form, .tool-h:first-child { display: none !important; }
  .guide h2 { margin-top: 14px; }
  .guide p, .guide li { font-size: 11pt; }
}
.foot-guides { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.foot-h { font-family: var(--mono); margin: 0; }
.tool form { display: flex; flex-direction: column; gap: 16px; }
.tool form .row { row-gap: 16px; }
.ss-remind { border-top: 2px dashed #48443A; padding-top: 14px; margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }

/* printable table sign (/sign/CODE) */
.sign-sheet { background: #fff; border: 2px solid #C9BFA6; margin: 8px 0 40px; display: flex; flex-direction: column; aspect-ratio: 8.5 / 11; width: 100%; max-width: 640px; }
.sign-card { flex: 1; display: flex; flex-direction: column; background: var(--snow, #FFFDF8); color: #1E1E16; overflow: hidden; container-type: inline-size; }
.sign-card.flip { transform: rotate(180deg); }
.sign-card .strip { height: 9cqw; min-height: 0; }
.sign-card .strip .st2 svg { width: 6cqw; height: 6.2cqw; }
.sign-body { flex: 1; display: flex; align-items: center; gap: 4cqw; padding: 3cqw 5cqw; }
.sign-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.2cqw; }
.sign-kicker { font-family: var(--mono); font-size: 2.6cqw; text-transform: uppercase; letter-spacing: .06em; color: #6E1A18; margin: 0; overflow-wrap: anywhere; }
.sign-h { font-stretch: 125%; font-weight: 800; font-size: 6.4cqw; line-height: 1; margin: 0; color: var(--pine, #173D2E); }
.sign-sub { font-size: 2.8cqw; margin: 0; }
.sign-code { font-family: var(--mono); font-weight: 500; font-size: 9cqw; letter-spacing: .14em; line-height: 1; margin: 0; color: #8E2321; }
.sign-rules { margin: 1cqw 0 0; padding-left: 3.4cqw; font-size: 2.4cqw; line-height: 1.4; display: flex; flex-direction: column; gap: .6cqw; }
.sign-qr { flex: none; width: 36cqw; }
.sign-qr svg { width: 100%; height: auto; display: block; }
.sign-foot { font-family: var(--mono); font-size: 2.2cqw; text-align: center; margin: 0; padding: 1.4cqw; background: var(--pine, #173D2E); color: var(--snow, #FFFDF8); }
.sign-fold { position: relative; height: 0; border-top: 2px dashed #8B8578; }
.sign-fold span { position: absolute; right: 8px; top: -9px; background: #fff; padding: 0 6px; font-family: var(--mono); font-size: 11px; color: #48443A; }
.sign-sheet.page .sign-body { flex-direction: column; text-align: center; justify-content: center; }
.sign-sheet.page .sign-text { align-items: center; }
.sign-sheet.page .sign-h { font-size: 8.5cqw; }
.sign-sheet.page .sign-code { font-size: 12cqw; }
.sign-sheet.page .sign-qr { width: 52cqw; order: -1; }
.sign-sheet.page .sign-rules { font-size: 3cqw; text-align: left; }
@media print {
  @page { size: letter; margin: 0; }
  .sign-screen { padding: 0 !important; max-width: none !important; width: auto !important; }
  .sign-sheet { border: 0; margin: 0; max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; }
  .sign-card, .sign-foot, .sign-card .strip span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.sign-card { min-height: 0; }
.sign-card .strip { width: auto !important; margin: 0 !important; grid-template-columns: repeat(4, 1fr) !important; flex: none; }
.sign-sheet.tent .sign-body { padding: 2cqw 5cqw; gap: 3cqw; }
.sign-sheet.tent .sign-h { font-size: 5.4cqw; }
.sign-sheet.tent .sign-code { font-size: 7.6cqw; }
.sign-sheet.tent .sign-qr { width: 30cqw; }
.sign-sheet.tent .sign-rules { font-size: 2.2cqw; }
.sign-sheet.tent .sign-card .strip { height: 6cqw; }
.sign-sheet.tent .sign-foot { padding: 1cqw; }

/* reviews */
.review-panel { border-color: var(--berry, #8E2321); }
.review-form { display: flex; flex-direction: column; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; line-height: 1.45; cursor: pointer; }
.check input { width: 24px; height: 24px; flex: none; margin: 1px 0 0; accent-color: var(--berry, #8E2321); }
.voucher { font-family: var(--mono); font-size: clamp(1.2rem, 5.6vw, 2rem); letter-spacing: .04em; white-space: nowrap; background: var(--snow, #FFFDF8); border: 3px dashed var(--berry, #8E2321); color: #8E2321; padding: 10px 14px; margin: 4px 0; text-align: center; }
.rev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rev { border-top: 1px solid #C9BFA6; padding-top: 10px; }
.rev blockquote { margin: 6px 0; padding-left: 12px; border-left: 4px solid var(--pine, #173D2E); }

/* "send to a friend instead" under the review offer */
.friend-alt { margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--line, #C9BFAA); }
.friend-alt p { margin: 0 0 10px; }
.friend-note { color: var(--pine, #173D2E); font-weight: 600; }
.guide .idea-list { padding-left: 1.2em; }
.guide .idea-list li { margin: 0 0 10px; line-height: 1.5; }
/* award icons are inline SVG cartoons */
.award-icon svg { width: 2.75rem; height: 2.75rem; display: block; }
.tv-award .award-icon svg { width: 9vw; height: 9vw; margin: 0 auto; }
.demo-award-icon { flex: none; display: block; width: 34px; height: 34px; }
.demo-award-icon svg { width: 34px; height: 34px; display: block; }

.tv-btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.tv-btn .tv-ico { flex: none; }

/* ---- simplified game over (Nov 17) ---- */
.btn.green { background: var(--fir, #2A5E45); color: var(--snow, #FFFDF8); }
.btn.full { width: 100%; }
.ib { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ib svg { flex: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--pine, #173D2E); text-decoration: underline; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.link-btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-row { margin: 4px 0 0; text-align: center; }
.award-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.award-mini { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.award-mini .award-icon svg { width: 2rem; height: 2rem; }
.award-mini .award-title { font-size: .7rem; line-height: 1.25; }
.award-mini .award-who { font-stretch: 100%; font-size: .9rem; line-height: 1.25; }
.share-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.share-stack .btn { width: 100%; }
.share-stack .hint { text-align: center; }
.recap-head { display: flex; align-items: center; gap: 12px; }
.recap-ic { width: 52px; height: 46px; flex: none; }
.claims summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.claims summary::-webkit-details-marker { display: none; }
.claims[open] summary { margin-bottom: 12px; }
.panel.claims { gap: 0; } /* the hidden contents of a closed <details> would still get the panel's gap */
.claims > :not(summary) + :not(summary) { margin-top: 12px; }
.end-links { display: flex; justify-content: center; gap: 4px 14px; flex-wrap: wrap; font-size: .95rem; }
.free-game { background: var(--berry, #8E2321); color: var(--snow, #FFFDF8); position: relative; overflow: hidden; box-shadow: 6px 6px 0 var(--pine, #173D2E); border: 0; }
.free-game .fg-stripe { height: 14px; background: repeating-linear-gradient(-45deg, #FFFDF8 0 10px, #B2302E 10px 20px); }
.free-game .fg-in { padding: 22px 18px 20px; position: relative; display: flex; flex-direction: column; gap: 0; }
.free-game .fg-stamp { position: absolute; top: 18px; right: 16px; background: var(--straw, #E3C58B); color: var(--ink, #1E1E16); font-family: var(--mono); font-size: 12px; padding: 5px 10px; transform: rotate(4deg); }
.free-game .fg-gift { position: absolute; right: 14px; top: 58px; width: 84px; }
.free-game .fg-eb { margin: 0 0 8px; font-family: var(--mono); font-size: 13px; color: var(--straw, #E3C58B); }
.free-game .fg-h { font-weight: 800; font-stretch: 125%; font-size: 30px; line-height: 1; margin: 0 96px 14px 0; letter-spacing: -.5px; color: var(--snow, #FFFDF8); }
.free-game .fg-p { font-size: 14px; line-height: 1.45; margin: 0; }
.free-game .fg-btn { background: var(--snow, #FFFDF8); color: var(--berry, #8E2321); width: 100%; margin-top: 16px; }
.free-game .friend-alt { border: 0; margin: 14px 0 0; padding: 0; }
.free-game .fg-alt { margin: 0; text-align: center; font-size: 14px; }
.free-game .fg-lnk { color: var(--straw, #E3C58B); min-height: 0; }
.free-game .friend-alt .btn.ghost { color: var(--snow, #FFFDF8); border-color: var(--snow, #FFFDF8); }
.free-game .voucher { color: var(--ink, #1E1E16); }
.free-game .friend-alt .btn.primary { background: var(--snow, #FFFDF8); color: var(--berry, #8E2321); }
.free-game .voucher { background: var(--snow, #FFFDF8); color: var(--ink, #1E1E16); padding: 8px 10px; }
.saved-view { border: 2px solid var(--pine, #173D2E); background: var(--cream-2, #F3ECDF); color: var(--ink, #1E1E16); padding: 0; width: min(92vw, 560px); max-height: 90vh; overflow: auto; }
.saved-view .saved-in { padding: 18px; }
.saved-view::backdrop { background: rgba(23, 61, 46, .7); }
.saved-view .saved-imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 12px 0; }
.saved-view .saved-imgs a { display: block; }
.saved-view .saved-imgs img { width: 100%; height: auto; display: block; border: 2px solid var(--pine, #173D2E); }
.saved-view .hint { margin: 0 0 12px; text-align: center; }
.saved-view .saved-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.saved-view .saved-actions .link-btn { align-self: center; }

/* ---- host log in and "your rooms" ---- */
.guest-note { margin: 0; text-align: center; color: var(--muted); }
.guest-note a { color: var(--pine); font-weight: 700; }
.login-sent .login-ico { width: 44px; height: 44px; color: var(--straw); display: block; margin-bottom: 8px; }
.code-in { font-family: var(--mono); font-size: 1.6rem; letter-spacing: .3em; max-width: 12ch; }
.login-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.room-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.room-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; background: var(--snow); padding: 12px; }
.room-row .room-main { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.rooms-ico { width: 30px; height: 30px; color: var(--pine); flex: none; }
.pass-head { display: flex; align-items: center; gap: 12px; }
.pass-head .rooms-ico { width: 40px; height: 40px; }
.pass-status { margin: 2px 0 0; font-weight: 700; color: var(--muted); }
.pass-status.on { color: var(--pine); }
.rooms-out { justify-content: center; }
/* "Welcome" never breaks mid-word: the heading sits above Santa, so it can use the full width */
.banner.santa .who.rooms-h { padding-right: 0; overflow-wrap: normal; font-size: min(2.6rem, 10.5vw); }
@media (max-width: 380px) { .room-row { grid-template-columns: auto minmax(0, 1fr); } .room-row .btn { grid-column: 1 / -1; } }

/* ---- create form: the main section stands out; codes sit in a quieter section below ---- */
.create-form { display: flex; flex-direction: column; gap: 22px; }
.create-main { background: var(--snow); border: 3px solid var(--pine); box-shadow: 6px 6px 0 var(--berry); }
.create-main .plan-opt { background: var(--cream-2); }
.create-code { background: transparent; border: 2px dashed var(--muted); }
.create-code-h { margin: 0; font-size: 1.05rem; font-weight: 700; }

/* staging.dirtysanta.app only */
.staging-band { background: var(--straw, #E3C58B); color: var(--ink, #1E1E16); font-family: var(--mono); font-size: .8rem; text-align: center; padding: 6px 16px; }
