/* ==========================================================================
   TIPSTER  -  the faucet
   The shared sheet (site/styles.css) is loaded first and carries the palette,
   the Fraunces/Inter type pairing, and the button system. Only the pieces
   unique to the faucet live here.
   Every colour is written as var(--token, fallback) so the page still reads
   correctly if the shared sheet ever fails to load.
   ========================================================================== */

[hidden] { display: none !important; }

.fa-body {
  background: var(--ink, #070510);
  color: var(--text, #e6e1f7);
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  line-height: 1.7;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.ic-fill { fill: currentColor; stroke: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.fa-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .95rem clamp(1.1rem, 4vw, 2.6rem);
  border-bottom: 1px solid var(--line, rgba(200,186,240,.13));
}
.fa-head .brand { display: flex; align-items: center; gap: .6rem; }
.fa-head .brand-mark { width: 36px; height: 36px; object-fit: contain; }
.fa-head-mark {
  font-size: .7rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold, #e3c98f);
}

/* ==========================================================================
   Shell
   ========================================================================== */
.fa-main {
  flex: 1 0 auto; width: 100%; max-width: 660px; margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.6rem) clamp(1.1rem, 4vw, 1.6rem) clamp(3rem, 8vw, 4.5rem);
  display: grid; gap: clamp(1.3rem, 4vw, 1.9rem); align-content: start;
}

/* ==========================================================================
   The card  -  double frame, matching the invitation on the landing page
   ========================================================================== */
.fa-card {
  border: 1px solid rgba(227,201,143,.35); padding: 9px;
  background: linear-gradient(180deg, rgba(124,92,255,.10), rgba(9,7,20,.45));
}
.fa-card-inner {
  border: 1px solid var(--line-2, rgba(200,186,240,.26)); text-align: center;
  padding: clamp(1.9rem, 5vw, 3rem) clamp(1.2rem, 4vw, 2.4rem);
}
.fa-crest {
  width: 82px; display: block; margin: 0 auto 1.2rem;
  filter: drop-shadow(0 12px 30px var(--glow, rgba(124,92,255,.5)));
}
.fa-title {
  font-family: var(--serif, "Fraunces", Georgia, serif); font-weight: 500;
  line-height: 1.08; letter-spacing: -.01em;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  color: var(--white, #f4f1ff); margin-bottom: .75rem;
}
.fa-lede { color: var(--mut, #9d93c6); font-size: 1rem; max-width: 44ch; margin: 0 auto; }
.fa-divider {
  display: block; height: 1px; width: min(100%, 17rem);
  margin: clamp(1.5rem, 4vw, 2.1rem) auto;
  background: linear-gradient(90deg, transparent, var(--gold-dim, rgba(227,201,143,.5)), transparent);
}

/* ---- loading ---- */
.fa-loading {
  font-size: .78rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--mut-2, #6e6694);
}
.fa-loading::after {
  content: ""; display: block; width: 2.6rem; height: 1px; margin: .9rem auto 0;
  background: var(--gold-dim, rgba(227,201,143,.5));
  animation: fa-pulse 1.7s ease-in-out infinite;
}
@keyframes fa-pulse { 0%, 100% { opacity: .2; transform: scaleX(.45); } 50% { opacity: 1; transform: scaleX(1); } }

/* ---- notes ---- */
.fa-note { color: var(--mut-2, #6e6694); font-size: .84rem; max-width: 46ch; margin: 1.1rem auto 0; }
.fa-note-wide { max-width: 50ch; }

/* ==========================================================================
   Signed-in identity
   ========================================================================== */
.fa-user {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .38rem .95rem .38rem .38rem; margin-bottom: 1.6rem;
  border: 1px solid var(--line, rgba(200,186,240,.13)); border-radius: 999px;
  background: var(--panel, rgba(236,229,255,.032));
}
.fa-avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none;
  border: 1px solid var(--line-2, rgba(200,186,240,.26));
  background: var(--ink-2, #0c0918);
}
.fa-user-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.fa-user-name { font-size: .92rem; color: var(--white, #f4f1ff); }
.fa-link {
  background: none; border: 0; padding: 0; font: inherit; font-size: .74rem;
  letter-spacing: .1em; color: var(--mut-2, #6e6694); cursor: pointer;
  transition: color .25s var(--ease, ease);
}
.fa-link:hover { color: var(--gold, #e3c98f); }
.fa-link:focus-visible { outline: 1px solid var(--gold, #e3c98f); outline-offset: 3px; }

/* ==========================================================================
   Asset selector  -  radio inputs behind styled plates
   ========================================================================== */
.fa-assets { border: 0; padding: 0; margin: 0 0 1.5rem; }
.fa-legend {
  display: block; width: 100%; padding: 0; margin: 0 auto .8rem;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--mut-2, #6e6694);
}
.fa-asset-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.fa-asset { position: relative; display: block; }
.fa-asset input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.fa-asset-box {
  display: grid; gap: .1rem; min-width: 7.4rem; padding: .7rem 1.05rem;
  border: 1px solid var(--line-2, rgba(200,186,240,.26));
  background: var(--panel, rgba(236,229,255,.032));
  transition: border-color .3s var(--ease, ease), background .3s var(--ease, ease), transform .3s var(--ease, ease);
}
.fa-asset:hover .fa-asset-box { border-color: var(--gold-dim, rgba(227,201,143,.5)); transform: translateY(-1px); }
.fa-asset input:checked ~ .fa-asset-box {
  border-color: var(--gold, #e3c98f); background: rgba(227,201,143,.09);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.fa-asset input:focus-visible ~ .fa-asset-box { outline: 2px solid var(--gold, #e3c98f); outline-offset: 3px; }
.fa-asset input:disabled ~ .fa-asset-box { opacity: .45; }
.fa-asset input:disabled { cursor: default; }
.fa-asset-amt {
  font-family: var(--serif, "Fraunces", Georgia, serif); font-size: 1.3rem; line-height: 1.15;
  color: var(--gold, #e3c98f); overflow-wrap: anywhere;
}
.fa-asset-code {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--mut-2, #6e6694);
}

/* ==========================================================================
   Verification + claim
   ========================================================================== */
/* The height is reserved up front so the claim button does not jump when the
   Turnstile widget finishes rendering. */
.fa-turnstile { display: flex; justify-content: center; align-items: center; min-height: 70px; }
.fa-verify { margin-bottom: 1.25rem; }
.fa-verify-msg { color: var(--mut-2, #6e6694); font-size: .84rem; max-width: 44ch; margin: .4rem auto 0; }
.fa-claim { justify-content: center; min-width: 12.5rem; }
.fa-claim[disabled] {
  opacity: .5; cursor: not-allowed; transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

/* ==========================================================================
   Cooldown
   ========================================================================== */
.fa-cooldown { margin-top: .2rem; }
.fa-count-label {
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--mut-2, #6e6694); margin-bottom: .5rem;
}
.fa-count {
  font-family: var(--serif, "Fraunces", Georgia, serif);
  font-size: clamp(2.1rem, 7vw, 3rem); line-height: 1;
  color: var(--gold, #e3c98f); font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Result panels
   ========================================================================== */
.fa-panel {
  text-align: left; margin-top: 1.4rem; padding: .95rem 1.15rem;
  border: 1px solid var(--line, rgba(200,186,240,.13)); border-left-width: 2px;
  background: var(--panel, rgba(236,229,255,.032));
}
.fa-panel-title { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; margin-bottom: .3rem; }
.fa-panel-body { color: var(--text, #e6e1f7); font-size: .94rem; }
.fa-ok { border-left-color: var(--gold, #e3c98f); }
.fa-ok .fa-panel-title { color: var(--gold, #e3c98f); }
.fa-err { border-left-color: #d08b8b; }
.fa-err .fa-panel-title { color: #e0a5a5; }

/* ==========================================================================
   Advertisement slot
   ========================================================================== */
.fa-ad {
  border: 1px solid var(--line, rgba(200,186,240,.13));
  background: rgba(9,7,20,.45); padding: .8rem;
}
.fa-ad-label {
  font-size: .64rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--mut-2, #6e6694); text-align: center; margin-bottom: .65rem;
}
.fa-ad-frame {
  display: block; width: 100%; height: 280px; border: 0;
  background: transparent; color-scheme: dark;
}

/* ==========================================================================
   House rules
   ========================================================================== */
.fa-rules {
  border: 1px solid var(--line, rgba(200,186,240,.13));
  background: rgba(9,7,20,.35);
  padding: clamp(1.4rem, 4vw, 2rem) clamp(1.3rem, 4vw, 2.2rem);
}
.fa-rules .kicker { text-align: center; }
.fa-rules ul { list-style: none; display: grid; gap: .68rem; margin: 0; padding: 0; }
.fa-rules li {
  position: relative; padding-left: 1.5rem;
  color: var(--mut, #9d93c6); font-size: .92rem; line-height: 1.6;
}
.fa-rules li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-hi, #f4e3b2), var(--gold-lo, #c2a35b));
}
.fa-rules code { color: var(--gold, #e3c98f); font-size: .9em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.fa-foot {
  flex: none; text-align: center; padding: 2.4rem 1.4rem 3rem;
  border-top: 1px solid var(--line, rgba(200,186,240,.13));
}
.fa-foot-line { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: .9rem; }
.fa-foot-line img { width: 34px; }
.fa-foot p { color: var(--mut, #9d93c6); font-size: .86rem; }
.fa-foot a { border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.fa-foot a:hover { color: var(--white, #f4f1ff); border-bottom-color: var(--gold-dim, rgba(227,201,143,.5)); }
.fa-foot-fine {
  color: var(--mut-2, #6e6694) !important; font-size: .76rem !important;
  max-width: 52ch; margin: .5rem auto 0;
}

/* ==========================================================================
   Small screens
   ========================================================================== */
@media (max-width: 520px) {
  .fa-head-mark { display: none; }
  .fa-asset-box { min-width: 6.2rem; padding: .62rem .85rem; }
  .fa-claim { width: 100%; }
  .fa-ad-frame { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .fa-loading::after { animation: none; opacity: .6; transform: none; }
  .fa-asset-box, .fa-link { transition: none; }
  .fa-asset:hover .fa-asset-box { transform: none; }
}
