/* ---------- the gift ---------- */
.gift-win { max-width: 900px; margin: 0 auto; }
.gift-stage { position: relative; }
.gift-closed { padding: clamp(2.6rem, 6vw, 4rem) 1.5rem; text-align: center; transition: opacity .3s ease; }
.gift-closed.leaving { opacity: 0; pointer-events: none; }
.gift-icon { width: 92px; height: 92px; margin: 0 auto 1.4rem; color: var(--accent); animation: giftFloat 3.5s ease-in-out infinite alternate; }
@keyframes giftFloat { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-8px) rotate(1.5deg); } }
.gift-icon svg { width: 100%; height: 100%; }
.gift-label { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 .4rem; }
.gift-sub { color: var(--text-muted); font-size: .92rem; margin: 0 0 1.6rem; }
.gift-progress { max-width: 320px; margin: 0 auto; display: none; }
.gift-progress.on { display: block; }
.gift-bar { height: 6px; border-radius: 6px; background: var(--bg-deep); overflow: hidden; border: 1px solid var(--border); }
.gift-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .35s ease; }
.gift-status { margin-top: .6rem; font-size: .7rem; color: var(--text-faint); min-height: 1em; }
.gift-open { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s cubic-bezier(.32,.72,.28,1), opacity .5s ease .15s; }
.gift-open.on { max-height: 1400px; opacity: 1; }
.gift-split { display: grid; grid-template-columns: 1.2fr 1fr; }
@media (max-width: 860px) { .gift-split { grid-template-columns: 1fr; } }
.gift-canvas { background: #101114; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; padding: 2.6rem 1.5rem; min-height: 260px; }
html[data-theme="dark"] .gift-canvas { background: #0A0B0E; }
.gift-text { font-weight: 800; font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.12; text-align: center; color: #F2F3F5; }
.tk-anim .u { display: inline-block; animation: tkIn var(--dur, .7s) cubic-bezier(.22,.61,.36,1) both; }
@keyframes tkIn { from { opacity: 0; transform: translateY(.45em); filter: blur(.1em); } to { opacity: 1; transform: none; filter: blur(0); } }
.gift-controls { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.gc-seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.gc-seg button { appearance: none; border: 0; cursor: pointer; background: transparent; color: rgba(242,243,245,.65); font: 600 .74rem/1 "Inter", sans-serif; padding: .5rem .85rem; border-radius: 7px; transition: color .18s ease, background-color .18s ease; }
.gc-seg button.active { background: rgba(255,255,255,.14); color: #fff; }
.gc-replay { appearance: none; cursor: pointer; border: 1px solid rgba(255,255,255,.16); background: transparent; color: rgba(242,243,245,.8); font: 600 .74rem/1 "Inter", sans-serif; padding: .5rem .85rem; border-radius: 9px; transition: border-color .2s ease, color .2s ease; }
.gc-replay:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.gift-details { border-left: 1px solid var(--border); background: var(--surface-2); padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
@media (max-width: 860px) { .gift-details { border-left: 0; border-top: 1px solid var(--border); } }
.gift-name { font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; }
.gift-desc { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.gift-list { display: flex; flex-direction: column; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.gift-list li { display: flex; gap: .55rem; font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.gift-list li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }
.gift-cta-row { margin-top: auto; padding-top: .6rem; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.gift-note { font-size: .7rem; color: var(--text-faint); }

/* ---------- the shelf ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.2rem; max-width: 900px; margin: 0 auto; }
.shelf-slot {
  border: 1.5px dashed var(--border-strong); border-radius: 20px;
  padding: 2rem 1.4rem; text-align: center; cursor: pointer;
  background: transparent; appearance: none; font-family: inherit; color: inherit;
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.shelf-slot:hover, .shelf-slot:focus-visible { border-color: var(--accent-ring); background: var(--surface); transform: translateY(-3px); }
.shelf-slot:hover .shelf-bow { transform: rotate(-6deg) scale(1.08); }
/* All three are spans, and all three are laid out as blocks - so all three say
   so here.

   They did not. Only .shelf-title was block, and only because of a
   style="display:block" written into the markup, which is what a previous
   pass at this bug reached for. The other two stayed inline, and on an inline
   box width and height do nothing: .shelf-bow measured 0x16 instead of 44x44,
   its svg asked for 100% of that nothing and rendered 0x134, and the caption
   was pushed 88px clear of the bottom of the card.

   The giveaway is in the rule itself: `margin: 0 auto` centers a block and
   does nothing whatsoever to an inline. The CSS was always written for a
   block; only the display was missing. */
.shelf-bow { display: block; width: 44px; height: 44px; margin: 0 auto .8rem; color: var(--text-faint); transition: transform .25s ease, color .25s ease; }
.shelf-slot:hover .shelf-bow { color: var(--accent); }
.shelf-bow svg { display: block; width: 100%; height: 100%; }
.shelf-title { display: block; font-size: .9rem; font-weight: 650; margin-bottom: .25rem; }
.shelf-sub { display: block; font-size: .72rem; color: var(--text-faint); }

/* ---------- join august ---------- */
.join-win { max-width: 900px; margin: 0 auto; }
.join-body { padding: clamp(2.4rem, 6vw, 3.8rem) clamp(1.4rem, 5vw, 3.6rem); text-align: center; }
.join-title { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.06; margin: .2rem 0 1rem; }
.join-copy { color: var(--text-muted); max-width: 46ch; margin: 0 auto; line-height: 1.6; font-size: .95rem; }
.follow-form { display: flex; justify-content: center; align-items: stretch; gap: .6rem; flex-wrap: wrap; margin-top: 1.8rem; }
.follow-field { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--border-strong); border-radius: 13px; background: var(--surface-2); padding: 0 .5rem 0 1rem; transition: border-color .2s ease, box-shadow .2s ease; }
.follow-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.follow-at { color: var(--text-faint); font-size: .85rem; }
.follow-input { appearance: none; border: 0; background: transparent; color: var(--text); font: 500 .9rem/1 "Inter", ui-sans-serif, system-ui, sans-serif; padding: .85rem .4rem .85rem 0; width: min(60vw, 240px); outline: none; }
.follow-input::placeholder { color: var(--text-faint); }
.follow-submit.is-busy { opacity: .6; pointer-events: none; }
.follow-msg { display: none; width: 100%; text-align: center; font-size: .8rem; margin: .5rem 0 0; }
.follow-form[data-gumroad-follow-state] .follow-msg { display: block; }
.follow-form[data-gumroad-follow-state="success"] .follow-msg { color: #1F9D55; }
.follow-form[data-gumroad-follow-state="error"] .follow-msg { color: #D62B33; }
.follow-form[data-gumroad-follow-state="success"] .follow-field,
.follow-form[data-gumroad-follow-state="success"] .follow-submit { display: none; }
.follow-note { font-size: .72rem; color: var(--text-faint); margin-top: 1rem; }
.follow-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); font: inherit; font-weight: 600; }
@media (max-width: 480px) { .follow-field, .follow-submit { width: 100%; justify-content: center; } .follow-input { width: 100%; } }
