/*
 * FaucetPay affiliate display banners: one stylesheet for every size, concept
 * and locale (studio/affiliate/README.md). Positions and font sizes are set by
 * banner.js from the banner's width and height; this file holds the look.
 * No inline styles in the HTML and no external URLs (the hosted HTML5 copy
 * runs under the kit's CSP: style-src 'self').
 */
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #0d0f13; }
* { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }

.ad {
  position: relative; overflow: hidden; width: 100%; height: 100%;
  color: #fff; background: #0d0f13;
  font-family: 'Inter', 'Noto Sans', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans Arabic', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  user-select: none; -webkit-user-select: none;
}
.ad > * { position: absolute; }
.ad[data-lang="ja"] { --cjk: 'Noto Sans JP'; }
.ad[data-lang="zh"] { --cjk: 'Noto Sans SC'; }

/* Background: granite base, an indigo glow behind the hero, a cyan glow in the far corner, a hairline top light. */
.bg { inset: 0; }
.bg .base { position: absolute; inset: 0; background: linear-gradient(180deg, #12151c 0%, #0d0f13 70%, #0b0c10 100%); }
.bg .g1, .bg .g2 { position: absolute; border-radius: 50%; }
.bg .g1 { background: radial-gradient(closest-side, rgba(67, 75, 233, 0.62), rgba(67, 75, 233, 0.22) 55%, rgba(67, 75, 233, 0) 100%); }
.bg .g2 { background: radial-gradient(closest-side, rgba(70, 181, 249, 0.34), rgba(70, 181, 249, 0.10) 55%, rgba(70, 181, 249, 0) 100%); }
.bg .grid { position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); }
.bg .topline { position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(70, 181, 249, 0), rgba(70, 181, 249, 0.75) 35%, rgba(91, 141, 239, 0.75) 65%, rgba(67, 75, 233, 0)); }

.hero-glow { border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(91, 141, 239, 0.55), rgba(67, 75, 233, 0.22) 50%, rgba(67, 75, 233, 0) 100%); }
.hero { pointer-events: none; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.hero[data-blend="screen"] > img { mix-blend-mode: screen; }
/* A product card (ui/ui.js) in the hero's place: scaled from its design size, a soft shadow under it. */
.hero-ui { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45)); }
.ui-scale { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.coin-ico { border-radius: 50%; overflow: hidden; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.55); background: #1b1e23; }
.coin-ico img { width: 100%; height: 100%; display: block; }

.logo { display: block; pointer-events: none; }

.msg { display: flex; flex-direction: column; justify-content: center; gap: 0; pointer-events: none; }
.msg[data-align="center"] { align-items: center; text-align: center; }
.msg[data-align="start"] { align-items: flex-start; text-align: start; }
.t { margin: 0; overflow-wrap: normal; hyphens: manual; }
.t.fit-break { overflow-wrap: anywhere; }
/* Japanese and Chinese copy carries zero-width spaces at phrase boundaries (copy/ja.json, zh.json): break only there. */
.ad[data-script="cjk"] .t { word-break: keep-all; overflow-wrap: normal; }
.ph { display: inline-block; white-space: nowrap; }
.t-eyebrow { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #46b5f9; line-height: 1.15; white-space: nowrap; }
.t-head, .t-claim, .t-free {
  font-family: 'Inter Tight', var(--cjk, 'Inter Tight'), 'Noto Sans', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans Arabic', 'Noto Sans Devanagari', system-ui, sans-serif;
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; color: #fff; text-wrap: balance;
}
.ad[data-script="cjk"] .t-head, .ad[data-script="cjk"] .t-claim, .ad[data-script="cjk"] .t-free { letter-spacing: 0; line-height: 1.16; line-break: strict; word-break: normal; }
.ad[data-script="arabic"] .t, .ad[data-script="devanagari"] .t { letter-spacing: 0; line-height: 1.3; }
.ad[data-script="arabic"] .t-eyebrow, .ad[data-script="devanagari"] .t-eyebrow, .ad[data-script="cjk"] .t-eyebrow { text-transform: none; letter-spacing: 0.02em; }
.hl { background: linear-gradient(100deg, #46b5f9 0%, #7fa8ff 50%, #5b8def 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.t-sub { font-weight: 500; color: #ced3dc; line-height: 1.25; }
.t-free { color: #fff; }
.t-url { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500; color: #8b919c; letter-spacing: 0; line-height: 1.2; margin-top: 0.35em; font-variant-ligatures: none; }

.cta {
  display: flex; align-items: center; justify-content: center; gap: 0.42em; overflow: hidden; white-space: nowrap;
  border-radius: 999px; color: #fff; font-weight: 700; letter-spacing: 0;
  background: linear-gradient(135deg, #5b8def 0%, #434be9 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 6px 18px rgba(67, 75, 233, 0.45);
}
.cta svg { width: 0.85em; height: 0.85em; flex: none; }
.ad[dir="rtl"] .cta svg { transform: scaleX(-1); }
.cta .shine { position: absolute; top: -20%; bottom: -20%; width: 36%; left: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-160%) skewX(-18deg); }

.rg { display: flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 800; letter-spacing: 0.02em;
  color: #f5b75e; border: 1px solid rgba(245, 183, 94, 0.75); background: rgba(20, 22, 26, 0.72); line-height: 1; }

.frame { inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10); }
.click { inset: 0; display: block; z-index: 50; cursor: pointer; }
.click:focus-visible { outline: 2px solid #46b5f9; outline-offset: -2px; }
