/* Gift tools: quiz chips, idea cards, enriched wish list, roulette. Works on the festive private page and on light pages. */
.gift-tools.panel { text-align: left; margin: 1rem 0; padding: 1.1rem 1.1rem 1.2rem; border-radius: 18px;
  background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.14); }
.gift-tools .small, .gift-tools .gq-n { color: rgb(255 255 255 / 0.78); }
.gift-tools details { margin: 0.8rem 0; }
.gift-tools summary { cursor: pointer; font-weight: 700; }
.gt-note { margin-top: 0.8rem; }
.gt-note a, .gift-tools a:not(.btn):not(.pill):not(.gi-go) { color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* quiz */
.gq fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.gq legend { font-weight: 800; margin-bottom: 0.5rem; padding: 0; }
.gq-n { font-weight: 400; font-size: 0.8rem; margin-left: 0.4rem; opacity: 0.8; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.gq-chip { position: relative; display: inline-block; margin: 0; cursor: pointer; font-size: inherit; }
.gq-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gq-chip span { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0.75rem; line-height: 1.25; border-radius: 999px;
  background: #fff; color: var(--green, #123d2f); border: 2px solid transparent; font-weight: 600; font-size: 0.95rem; user-select: none; }
.gq-chip input:checked + span { background: var(--gold, #d9a441); color: #1f2a26; border-color: #fff; }
.gq-chip input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.gq-nav { display: flex; gap: 0.5rem; }
.gq-nav [hidden], .gq-end[hidden], .gq-step[hidden] { display: none; }

/* idea cards */
.gi-grid { list-style: none; padding: 0; margin: 0.6rem 0 0.9rem; display: grid; gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
.gi-card { position: relative; display: flex; flex-direction: column; gap: 0.25rem; padding: 0.7rem 0.75rem 0.65rem;
  background: #fff; color: var(--ink, #1f2a26); border-radius: 14px; border: 2px solid transparent; }
.gi-card.liked { border-color: var(--gold, #d9a441); }
.gi-emo { font-size: 1.6rem; line-height: 1; }
.gi-label { font-weight: 700; font-size: 0.93rem; line-height: 1.25; }
.gift-tools .gi-card .gi-go { margin-top: auto; font-size: 0.85rem; font-weight: 700; color: var(--green-2, #1d5a45); }
.gi-exp { margin-top: auto; font-size: 0.8rem; color: var(--muted, #6c756f); }
.gi-like { position: absolute; top: 0.4rem; right: 0.5rem; font-size: 1.15rem; color: #d4d0c8; cursor: pointer; }
.gi-like input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gi-like input:checked + span, .gi-like.on { color: var(--red, #b8322a); }
.gi-like input:focus-visible + span { outline: 2px solid var(--green-2, #1d5a45); border-radius: 4px; }

/* enriched wish list */
.wish-x li { margin-bottom: 0.55rem; }
.wx-links { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin-top: 0.25rem; }
.pill { display: inline-block; padding: 0.18rem 0.6rem; border-radius: 999px; background: #fff; color: var(--green, #123d2f);
  font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.pill:hover { background: var(--gold, #d9a441); }

/* roulette */
.roulette { margin: 1rem 0; text-align: center; }
.roulette .rl-title { margin-bottom: 0.2rem; }
.rl-stage { position: relative; width: min(78vw, 300px); aspect-ratio: 1; margin: 0.8rem auto; }
.rl-wheel { position: absolute; inset: 0; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 10px 30px rgb(0 0 0 / 0.3);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99); }
.rl-label { position: absolute; inset: 0; padding-top: 9%; font-size: 1.45rem; line-height: 1; text-align: center;
  transform-origin: 50% 50%; pointer-events: none; }
.rl-pointer { position: absolute; left: 50%; top: -10px; z-index: 2; width: 0; height: 0; margin-left: -14px;
  border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid #fff;
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.35)); }
.roulette.rl-on .rl-items { display: none; }
.rl-items { text-align: left; }
.rl-result { font-size: 1.1rem; margin: 0.6rem 0; }
.rl-result .rl-go { margin-left: 0.4rem; }
.rl-actions { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.rl-stage[hidden], .rl-result[hidden], .rl-actions [hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .rl-wheel { transition: none; } }

/* bought */
.bought { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid rgb(255 255 255 / 0.16); }
.hero .gift-tools .btn:not(.primary) { background: #fff; border-color: #fff; color: var(--green, #123d2f); }

/* light pages (public idea hub and categories) */
.doc .gift-tools.panel { background: #fff; border-color: var(--line, #e6dfd2); }
.doc .gift-tools .small, .doc .gift-tools .gq-n { color: var(--muted, #6c756f); }
.doc .gi-card { border-color: var(--line, #e6dfd2); }
.doc .pill { background: #f1ebe0; }
.doc .rl-wheel { border-color: var(--cream, #fbf6ee); }
.doc .rl-pointer { border-top-color: var(--red, #b8322a); }
.finder-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; margin: 0.6rem 0 0.4rem; }
.finder-bar label { display: grid; gap: 0.2rem; font-weight: 700; font-size: 0.9rem; }
.finder-bar select { padding: 0.4rem 0.6rem; border-radius: 10px; border: 1px solid var(--line, #e6dfd2); font: inherit; }
.gi-grid [hidden] { display: none; }

/* swipe deck (batch 2). Without JS: a list with ✕ / ❤ radios per card. */
.sw-deck { list-style: none; padding: 0; margin: 0.6rem 0; display: grid; gap: 0.5rem; }
.sw-card { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.7rem 0.8rem; background: #fff;
  color: var(--ink, #1f2a26); border-radius: 14px; }
.sw-card .gi-label { flex: 1 1 auto; }
.sw-choice { display: flex; gap: 0.6rem; }
.sw-choice label { display: inline-flex; gap: 0.25rem; align-items: center; margin: 0; font-weight: 600; }
.swipe.sw-on .sw-deck { position: relative; height: 15rem; max-width: 20rem; margin: 0.8rem auto; display: block; }
.swipe.sw-on .sw-card { position: absolute; inset: 0; flex-direction: column; justify-content: center; text-align: center;
  touch-action: pan-y; user-select: none; cursor: grab; box-shadow: 0 10px 24px rgb(0 0 0 / 0.25);
  transition: transform 0.25s ease, opacity 0.25s ease; }
.swipe.sw-on .sw-card .gi-emo { font-size: 3.4rem; }
.swipe.sw-on .sw-card .gi-label { flex: none; font-size: 1.15rem; }
.swipe.sw-on .sw-choice { display: none; }
.swipe.sw-on .sw-card.out-yes { transform: translateX(140%) rotate(18deg) !important; opacity: 0; }
.swipe.sw-on .sw-card.out-no { transform: translateX(-140%) rotate(-18deg) !important; opacity: 0; }
.swipe .sw-card[hidden] { display: none; }
.sw-btns { display: flex; justify-content: center; align-items: center; gap: 1.2rem; }
.sw-btns[hidden] { display: none; }
.sw-btns .btn { width: 3.4rem; height: 3.4rem; border-radius: 50%; font-size: 1.4rem; padding: 0; }

/* hints and "please, no" */
.hn-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.hn-cols fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.hn-cols legend { font-weight: 800; margin-bottom: 0.35rem; padding: 0; }
.hn-cols input { margin: 0; border-color: transparent; }
@media (max-width: 640px) { .hn-cols { grid-template-columns: 1fr; } }
.gv-notes { background: rgb(255 255 255 / 0.08); border-radius: 12px; padding: 0.5rem 0.8rem; margin: 0.5rem 0; }
.gv-notes ul { margin: 0.2rem 0 0; padding-left: 1.1rem; }
.gv-notes.nope { background: rgb(184 50 42 / 0.25); }
.qq { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin: 0.3rem 0; }
.qq[hidden] { display: none; }
.qq .pill { border: 0; cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 700; }
