/* Rumplebitskin front door (join / sign-in gate) and site-wide theme bits.
   Palette: near-black #0a0a0a / panels #141414 #1a1a1a / lines #1e1e1e, amber #ffb020 #ffd064, white #ffffff, green #00ff88, purple #9945ff.
   Fonts: Bodoni Moda (headings), Manrope (text), IBM Plex Mono (numbers), Yellowtail (the neon sign). */
#fun-gate {
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-start; justify-content: center;
  padding: 0; font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #ffffff; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
html.fg-open, html.fg-open body { overflow: hidden; }
#fun-gate .fg-backdrop {
  position: fixed; inset: 0; background: radial-gradient(1200px 700px at 78% -10%, rgba(153, 69, 255, 0.16) 0%, rgba(0, 0, 0, 0) 55%), #0a0a0a;
}
#fun-gate .fg-stage {
  position: relative; width: 100%; max-width: 1120px; min-height: 100%; margin: 0 auto; padding: 28px 22px 32px;
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
}
#fun-gate .fg-stage.fg-stage-full { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 52px; padding: 0 0 40px; }
#fun-gate .fg-hero { display: flex; align-items: center; justify-content: center; gap: 44px; padding: 28px 22px 0; box-sizing: border-box; }
#fun-gate .fg-stage-full .fg-hero { padding: 20px 22px 0; }
#fun-gate .fg-left { flex: 1 1 0; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 14px; }
#fun-gate .fg-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
#fun-gate .fg-hero-fine { margin: 0; font-size: 13px; color: #888888; font-family: 'IBM Plex Mono', ui-monospace, monospace; }
#fun-gate .fg-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; max-width: 460px; }

/* top bar (front-door only) */
#fun-gate .fg-topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; max-width: 1120px; margin: 0 auto; width: 100%; box-sizing: border-box; }
#fun-gate .fg-topbar-brand { display: flex; align-items: center; gap: 10px; font-family: 'Bodoni Moda', Georgia, serif; font-weight: 900; font-size: 20px; color: #ffffff; }
#fun-gate .fg-topbar-brand img { border-radius: 8px; display: block; }
#fun-gate .fg-topbar-brand em { color: #ffb020; font-style: italic; }
#fun-gate .fg-topbar-nav { display: flex; align-items: center; gap: 28px; }
#fun-gate .fg-topbar-nav a { color: #aaaaaa; text-decoration: none; font-size: 14px; font-weight: 600; }
#fun-gate .fg-topbar-nav a:hover { color: #ffffff; }
#fun-gate .fg-topbar-cta { padding: 9px 18px; border-radius: 999px; border: 1.5px solid #ffb020; color: #ffd064 !important; }

/* ticker strip */
#fun-gate .fg-ticker {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 18px 22px;
  border-top: 1px solid #1e1e1e; border-bottom: 1px solid #1e1e1e; background: rgba(255, 255, 255, 0.02);
  font-family: 'Bodoni Moda', Georgia, serif; font-style: italic; font-weight: 700; font-size: 20px; color: #ffd064;
}
#fun-gate .fg-tick-dot { color: #ffb020; opacity: 0.6; font-size: 12px; }

/* features */
#fun-gate .fg-features { padding: 0 22px; max-width: 1120px; margin: 0 auto; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 28px; }
#fun-gate .fg-features-head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
#fun-gate .fg-h2 { margin: 0; font-family: 'Bodoni Moda', Georgia, serif; font-weight: 900; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.08; color: #ffffff; }
#fun-gate .fg-h2-em { font-style: italic; color: #ffd064; }
#fun-gate .fg-fcards { display: flex; gap: 18px; flex-wrap: wrap; }
#fun-gate .fg-fcard { background: #141414; border: 1px solid #1e1e1e; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 220px; min-width: 220px; box-sizing: border-box; }
#fun-gate .fg-ficon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 176, 32, 0.12); border: 1px solid rgba(255, 176, 32, 0.35); color: #ffb020; display: flex; align-items: center; justify-content: center; }
#fun-gate .fg-fcard h3 { margin: 0; font-family: 'Bodoni Moda', Georgia, serif; font-weight: 700; font-size: 22px; color: #ffffff; line-height: 1.15; }
#fun-gate .fg-fcard p { margin: 0; font-size: 15px; line-height: 1.55; color: #aaaaaa; }

/* legend / video */
#fun-gate .fg-legend {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap; padding: 40px 22px;
  border-top: 1px solid #1e1e1e; border-bottom: 1px solid #1e1e1e; background: rgba(255, 255, 255, 0.015);
}
#fun-gate .fg-legend video { width: 300px; max-width: 100%; height: auto; display: block; flex-shrink: 0; border-radius: 18px; border: 1px solid #1e1e1e; box-shadow: 0 20px 50px rgba(0,0,0,.5); background: #0a0a0a; margin: 0 auto; }
#fun-gate .fg-legend-copy { display: flex; flex-direction: column; gap: 14px; flex: 1 1 320px; min-width: 260px; }
#fun-gate .fg-legend-copy p { margin: 0; font-size: 16px; line-height: 1.5; color: #aaaaaa; max-width: 540px; }

/* gallery (more mascot scenes) */
#fun-gate .fg-gallery { padding: 0 22px; max-width: 1120px; margin: 0 auto; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 22px; }
#fun-gate .fg-gallery-head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
#fun-gate .fg-gallery-grid { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-start; }
#fun-gate .fg-gallery-grid img, #fun-gate .fg-gallery-grid video {
  width: 200px; height: 260px; object-fit: cover; border-radius: 16px; border: 1px solid #1e1e1e;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); background: #0a0a0a; flex: 0 0 auto; display: block;
}
@media (max-width: 900px) {
  #fun-gate .fg-gallery-grid { justify-content: center; }
  #fun-gate .fg-gallery-grid img, #fun-gate .fg-gallery-grid video { width: 140px; height: 190px; }
}

/* steps / cover */
#fun-gate .fg-steps { padding: 0 22px; max-width: 1120px; margin: 0 auto; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 32px; }
#fun-gate .fg-steps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
#fun-gate .fg-steps-cta { width: auto; margin: 0; padding: 16px 26px; }
#fun-gate .fg-step-row { display: flex; gap: 28px; flex-wrap: wrap; }
#fun-gate .fg-step { display: flex; gap: 14px; align-items: flex-start; flex: 1 1 220px; min-width: 220px; }
#fun-gate .fg-step-n { width: 36px; height: 36px; border-radius: 999px; background: #ffb020; color: #0a0a0a; font-family: 'Bodoni Moda', Georgia, serif; font-weight: 900; font-size: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#fun-gate .fg-step h4 { margin: 0 0 4px; font-size: 16px; font-weight: 800; color: #ffffff; }
#fun-gate .fg-step p { margin: 0; font-size: 14px; line-height: 1.5; color: #aaaaaa; }

/* footer */
#fun-gate .fg-footer { padding: 24px 22px 0; max-width: 1120px; margin: 0 auto; width: 100%; box-sizing: border-box; border-top: 1px solid #1e1e1e; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
#fun-gate .fg-footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Bodoni Moda', Georgia, serif; font-weight: 900; font-size: 16px; color: #ffffff; }
#fun-gate .fg-footer-brand img { border-radius: 6px; }
#fun-gate .fg-footer-brand em { color: #ffb020; font-style: italic; }
#fun-gate .fg-footer p { margin: 0; font-size: 13px; color: #888888; max-width: 480px; }
#fun-gate .fg-footer-links { display: flex; gap: 18px; font-size: 13px; }
#fun-gate .fg-footer-links a { color: #ffd064; text-decoration: none; }
#fun-gate .fg-footer-links a:hover { color: #ffffff; }
#fun-gate .fg-eyebrow {
  align-self: flex-start; padding: 6px 13px; border: 1px solid #1e1e1e; border-radius: 999px; background: #141414;
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: 0.14em; color: #ffd064; text-transform: uppercase;
}
#fun-gate .fg-h1, #fun-gate .fg-h1 * { font-family: 'Bodoni Moda', Georgia, serif; }
#fun-gate .fg-h1 { margin: 0; font-weight: 900; font-size: clamp(34px, 5.2vw, 62px); line-height: 1.02; letter-spacing: -0.02em; color: #ffffff; }
#fun-gate .fg-h1 em { color: #ffb020; font-style: italic; }
#fun-gate .fg-tagline { margin: 0; font-size: 18px; line-height: 1.4; color: #ffffff; font-weight: 500; }
#fun-gate .fg-tagline b { color: #ffd064; font-weight: 800; }
#fun-gate .fg-art { position: relative; width: 100%; max-width: 460px; aspect-ratio: 560 / 600; margin-top: 2px; }
#fun-gate .fg-art svg { display: block; overflow: visible; }
#fun-gate .ddg-sign { font-family: 'Yellowtail', 'Brush Script MT', cursive; }
#fun-gate .ddg-mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
#fun-gate .ddg-serif { font-family: 'Bodoni Moda', Georgia, serif; }
#fun-gate .fg-card {
  position: relative; flex: 0 0 auto; width: 100%; max-width: 420px; background: linear-gradient(180deg, #1a1a1a, #141414);
  border: 1px solid #1e1e1e; border-radius: 24px; padding: 26px 22px 18px;
  box-shadow: 0 0 80px rgba(255, 176, 32, 0.12), 0 0 40px rgba(153, 69, 255, 0.16); overflow: hidden;
}
#fun-gate .fg-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #9945ff, #ffb020); }
#fun-gate .fg-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
#fun-gate .fg-logo { width: 48px; height: 48px; border-radius: 14px; background: #0a0a0a; border: 1px solid #1e1e1e; display: flex; align-items: center; justify-content: center; flex: none; }
#fun-gate h2 { margin: 0; font-family: 'Bodoni Moda', Georgia, serif; font-size: 24px; font-weight: 700; line-height: 1.1; color: #ffffff; }
#fun-gate .fg-sub { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #ffb020; font-weight: 500; margin-top: 5px; }
#fun-gate .fg-lead { font-size: 14px; line-height: 1.5; color: #eeeeee; margin: 0 0 14px; }
#fun-gate .fg-lead b { color: #ffd064; }
#fun-gate .fg-fee { background: #0a0a0a; border: 1px solid #1e1e1e; border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; text-align: center; }
#fun-gate .fg-fee-sol { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: 26px; font-weight: 600; color: #ffd064; letter-spacing: -0.01em; }
#fun-gate .fg-fee-usd { font-size: 12px; color: #888888; margin-top: 2px; }
#fun-gate .fg-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: #aaaaaa; margin-bottom: 12px; }
#fun-gate .fg-k { color: #888888; }
#fun-gate .fg-mono { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; color: #00ff88; word-break: break-all; }
#fun-gate .fg-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin: 0 0 8px; padding: 10px 14px;
  border-radius: 999px; border: 1.5px solid #1e1e1e; background: #1a1a1a; color: #ffffff; font: inherit; font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer; text-align: center; transition: transform 0.08s, opacity 0.15s, border-color 0.15s;
}
#fun-gate .fg-btn:hover { border-color: #ffb020; }
#fun-gate .fg-btn:active { transform: scale(0.98); }
#fun-gate .fg-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#fun-gate .fg-btn:focus-visible, #fun-gate .fg-link:focus-visible, #fun-gate summary:focus-visible { outline: 2px solid #00ff88; outline-offset: 2px; }
#fun-gate .fg-btn-primary { background: linear-gradient(180deg, #ffd064, #ffb020); border-color: #ffb020; color: #0a0a0a; font-weight: 800; box-shadow: 0 8px 26px rgba(227, 176, 75, 0.26); }
#fun-gate .fg-btn-primary:hover { border-color: #ffd064; opacity: 0.94; }
#fun-gate .fg-wallet img { border-radius: 6px; }
#fun-gate .fg-mobile { font-size: 12px; font-weight: 600; color: #aaaaaa; }
#fun-gate .fg-btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#fun-gate .fg-btnrow .fg-btn { font-size: 12px; margin-bottom: 8px; }
#fun-gate .fg-or { text-align: center; font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #666666; margin: 6px 0 8px; }
#fun-gate .fg-qr { width: 176px; height: 176px; margin: 0 auto 12px; background: #fff; border-radius: 14px; padding: 8px; }
#fun-gate .fg-qr svg { width: 100%; height: 100%; display: block; }
#fun-gate .fg-note { font-size: 12px; color: #aaaaaa; margin: 0 0 10px; line-height: 1.45; }
#fun-gate .fg-err { color: #ff8fa8; background: rgba(255, 85, 85, 0.08); border: 1px solid rgba(255, 85, 85, 0.25); border-radius: 10px; padding: 8px 10px; }
#fun-gate .fg-busy, #fun-gate .fg-status { display: flex; align-items: center; gap: 8px; color: #cccccc; }
#fun-gate .fg-status { font-size: 12px; margin: 4px 0 8px; }
#fun-gate .fg-fine { font-size: 11px; color: #888888; line-height: 1.5; margin: 8px 0; }
#fun-gate .fg-legal { font-size: 10px; color: #666666; text-align: center; line-height: 1.5; margin: 14px 0 0; }
#fun-gate .fg-link { background: none; border: 0; padding: 4px 2px; color: #ffd064; font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline dotted; }
#fun-gate .fg-link:hover { color: #ffffff; }
#fun-gate .fg-check { display: block; margin: 0 auto; }
#fun-gate .fg-signed { background: #0a0a0a; border: 1px solid #1e1e1e; border-radius: 12px; padding: 8px 10px; }
#fun-gate .fg-details { border: 1px solid #1e1e1e; border-radius: 12px; padding: 8px 10px; margin: 0 0 8px; }
#fun-gate .fg-details summary { cursor: pointer; font-size: 12px; font-weight: 700; color: #cccccc; }
#fun-gate .fg-addr { display: flex; align-items: center; gap: 8px; justify-content: space-between; background: #0a0a0a; border-radius: 8px; padding: 6px 8px; font-size: 10px; }
#fun-gate .fg-center { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0; }
#fun-gate .fg-spin { width: 28px; height: 28px; border: 3px solid rgba(246, 236, 216, 0.15); border-top-color: #ffb020; border-radius: 50%; animation: fgspin 0.8s linear infinite; }
#fun-gate .fg-spin-sm { width: 14px; height: 14px; border-width: 2px; flex: none; }
@keyframes fgspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #fun-gate .fg-spin { animation-duration: 2.4s; } }
#fun-gate .fg-legal a { color: #888888; text-decoration: underline; }
#fun-gate .fg-legal a:hover { color: #ffffff; }

/* narrow screens: headline, then the card (so the Connect button is right there), then the door */
@media (max-width: 900px) {
  #fun-gate .fg-hero { flex-direction: column; align-items: center; gap: 14px; padding: 18px 14px 26px; }
  #fun-gate .fg-left { display: contents; }
  #fun-gate .fg-right { display: contents; }
  #fun-gate .fg-eyebrow { align-self: center; order: 1; }
  #fun-gate .fg-h1 { order: 2; text-align: center; font-size: clamp(30px, 9vw, 44px); }
  #fun-gate .fg-tagline { order: 3; text-align: center; font-size: 16px; max-width: 420px; }
  #fun-gate .fg-hero-cta { order: 4; justify-content: center; }
  #fun-gate .fg-hero-fine { order: 5; text-align: center; }
  #fun-gate .fg-card { order: 6; margin-top: 6px; }
  #fun-gate .fg-art { order: 7; max-width: 300px; margin-top: 10px; }
  #fun-gate .fg-art svg { max-height: 34vh; }
  #fun-gate .fg-topbar { flex-wrap: nowrap; gap: 10px; padding: 16px 16px; }
  #fun-gate .fg-topbar-brand { font-size: 16px; gap: 8px; min-width: 0; }
  #fun-gate .fg-topbar-brand img { flex: none; }
  #fun-gate .fg-topbar-nav { flex: none; }
  #fun-gate .fg-topbar-nav a:not(.fg-topbar-cta) { display: none; }
  #fun-gate .fg-topbar-cta { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
  #fun-gate .fg-legend { flex-direction: column; text-align: center; }
  #fun-gate .fg-legend video { width: 100%; max-width: 320px; }
  #fun-gate .fg-steps-head { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
}
@media (max-width: 380px) { #fun-gate .fg-card { padding: 22px 16px 14px; border-radius: 20px; } #fun-gate .fg-btnrow { grid-template-columns: 1fr; } }

/* site-wide theme: headings in Bodoni Moda, the header wordmark, and the door logo */
body h1, body h2, body h3 { font-family: 'Bodoni Moda', Georgia, serif; letter-spacing: 0.01em; }
.dd-logo { display: inline-flex; flex: none; }
.dd-wordmark, .dd-wordmark * { font-family: 'Bodoni Moda', Georgia, serif; }
.dd-wordmark { font-weight: 900; font-size: 19px; letter-spacing: 0.05em; color: #ffffff; line-height: 1; white-space: nowrap; }
.dd-gold { color: #ffb020; }

/* photo expiry (main feed) */
.fun-countdown { margin-top: 4px; font-size: 11px; color: #666666; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.fun-countdown.soon { color: #ffb020; }
.fun-expired { margin-top: 12px; padding: 34px 12px; border: 1px dashed #2a2a2a; border-radius: 16px; background: #141414; color: #666666; font-size: 12px; text-align: center; }
.fun-expired.sm { margin-top: 8px; padding: 14px 10px; border-radius: 12px; font-size: 11px; }
.fun-photo-warn { color: #ffb020; }

/* Tip button: a quiet amber outline instead of a solid, glowing block */
.fun-tip { background: rgba(227, 176, 75, 0.10); color: #f89f0c; border: 1px solid rgba(227, 176, 75, 0.30); box-shadow: none; }
.fun-tip:hover { background: rgba(227, 176, 75, 0.18); color: #ffb020; border-color: rgba(227, 176, 75, 0.50); }
.fun-tip:focus-visible { outline: 2px solid rgba(227, 176, 75, 0.6); outline-offset: 2px; }
