/* ── Safari-only gate (competitor-parity) ── */
.gf-safari-mask {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.88);
  padding: 24px;
}
.gf-safari-mask.is-on { display: flex; }
.gf-safari-card {
  width: min(340px, 92vw);
  background: #141418;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
}
.gf-safari-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.gf-safari-sub { color: var(--gf-muted); font-size: .92rem; line-height: 1.45; margin: 0 0 18px; }

/* GoFun lure — 1:1 mobile shell of gofun1688 + USDT claim progress */
:root {
  --gf-bg: #000;
  --gf-surface: #0c0c0e;
  --gf-card: #141418;
  --gf-cyan: #00E5D4;
  --gf-cyan-2: #5CE1FF;
  --gf-cyan-deep: #00B8D9;
  --gf-text: #f5f5f7;
  --gf-muted: #8e8e93;
  --gf-line: rgba(255,255,255,0.08);
  --gf-safe-b: env(safe-area-inset-bottom, 0px);
  --gf-safe-t: env(safe-area-inset-top, 0px);
  --gf-font: "SF Pro Display", "SF Pro Text", "PingFang TC", "PingFang SC", "Helvetica Neue", sans-serif;
  --gf-header-h: 52px;
  --gf-tabbar-h: 58px;
  --gf-claim-h: 210px;
  --gf-radius: 14px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--gf-bg);
  color: var(--gf-text);
  font-family: var(--gf-font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── Splash ── */
.gf-splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: #000;
  transition: opacity .45s ease, visibility .45s;
}
.gf-splash.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.gf-splash-inner { text-align: center; animation: gfFadeUp .7s ease both; }
.gf-splash-logo { margin: 0 auto 14px; filter: drop-shadow(0 0 18px rgba(0,229,212,.35)); }
.gf-splash-brand {
  font-size: 2.5rem; font-weight: 800; font-style: italic;
  letter-spacing: .02em; color: var(--gf-cyan);
}
.gf-splash-tag {
  margin-top: 10px; font-size: .7rem; letter-spacing: .22em;
  color: #fff; font-weight: 700;
}
.gf-splash-cats {
  display: flex; gap: 20px; justify-content: center; margin-top: 28px; opacity: .9; font-size: 1.2rem;
}

/* ── App shell ── */
.gf-app {
  padding:
    calc(var(--gf-header-h) + var(--gf-safe-t) + 4px)
    0
    calc(var(--gf-tabbar-h) + var(--gf-claim-h) + var(--gf-safe-b) + 12px);
  min-height: 100vh;
  background: #000;
  max-width: 480px;
  margin: 0 auto;
}

.gf-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: calc(var(--gf-header-h) + var(--gf-safe-t));
  padding: var(--gf-safe-t) 12px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--gf-line);
  max-width: 480px; margin: 0 auto;
}
.gf-brand { display: flex; align-items: center; gap: 8px; }
.gf-brand img { width: 28px; height: 28px; border-radius: 8px; }
.gf-brand span {
  font-weight: 800; font-style: italic; font-size: 1.2rem;
  color: var(--gf-cyan); letter-spacing: .01em;
}
.gf-header-actions { display: flex; gap: 8px; }

.gf-btn {
  border: 0; border-radius: 999px; padding: .52rem 1rem;
  font-size: .78rem; font-weight: 800; cursor: pointer; min-height: 36px;
  letter-spacing: .04em;
}
.gf-btn-signin {
  background: #0a0a0a; color: #fff;
  border: 1px solid rgba(255,255,255,.28);
}
.gf-btn-signup, .gf-btn-claim {
  background: linear-gradient(135deg, var(--gf-cyan), var(--gf-cyan-deep));
  color: #041018; box-shadow: 0 0 16px rgba(0,229,212,.25);
}
.gf-btn-block { width: 100%; margin-top: 4px; border-radius: 12px; min-height: 46px; font-size: .95rem; }
.gf-btn:disabled { opacity: .45; filter: grayscale(.2); }

/* ── Hero carousel ── */
.gf-hero { padding: 10px 12px 0; }
.gf-carousel {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16 / 9; background: #111;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}
.gf-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .55s ease; pointer-events: none;
}
.gf-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.gf-slide img { width: 100%; height: 100%; object-fit: cover; }
.gf-slide-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, transparent 55%);
  pointer-events: none;
}
.gf-slide-cta-wrap {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
}
.gf-claim-hero-btn, .gf-watch-btn {
  border: 0; border-radius: 999px;
  padding: 10px 18px; font-weight: 800; font-size: .82rem;
  background: linear-gradient(90deg, #1ad4ff, #00e5d4);
  color: #041018; box-shadow: 0 0 20px rgba(0,229,212,.45);
  animation: gfGlow 2.2s ease-in-out infinite;
}
.gf-slide-css-bg { position: absolute; inset: 0; }
.gf-slide-bonus {
  background:
    radial-gradient(circle at 78% 45%, rgba(0,229,212,.35), transparent 42%),
    linear-gradient(135deg, #0b1a22, #101018 55%, #1a0a28);
}
.gf-slide-copy {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 18px 20px; max-width: 70%;
}
.gf-slide-kicker {
  font-size: .68rem; letter-spacing: .16em; color: var(--gf-cyan); font-weight: 800;
}
.gf-slide-copy h2 { margin: 6px 0; font-size: 1.35rem; }
.gf-slide-copy p { margin: 0 0 12px; color: #c8c8cc; font-size: .82rem; line-height: 1.4; }

.gf-dots {
  display: flex; gap: 5px; justify-content: center; padding: 10px 0 2px;
}
.gf-dots i {
  display: block; width: 14px; height: 3px; border-radius: 99px;
  background: rgba(255,255,255,.22);
  transition: width .25s ease, background .25s ease;
}
.gf-dots i.is-on { width: 28px; background: var(--gf-cyan); }

/* Floating claim pill */
.gf-float-claim {
  position: sticky; top: calc(var(--gf-header-h) + var(--gf-safe-t) + 8px);
  z-index: 45; margin: 10px 12px 0;
  width: calc(100% - 24px); max-width: 456px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(0,229,212,.35);
  border-radius: 14px; padding: 10px 14px;
  background: linear-gradient(90deg, rgba(0,229,212,.16), rgba(12,12,14,.95));
  color: #fff; font-weight: 800; font-size: .92rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  animation: gfFloatIn .6s ease both;
}
.gf-float-ico {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gf-cyan); color: #041018; font-weight: 900;
}
.gf-float-pct {
  margin-left: auto; color: var(--gf-cyan);
  font-variant-numeric: tabular-nums; font-size: .95rem;
}

/* Sections */
.gf-sec { padding: 16px 0 4px; }
.gf-sec-head {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px 10px;
}
.gf-sec-head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.gf-sec-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gf-cyan); box-shadow: 0 0 10px rgba(0,229,212,.7);
}
.gf-sec-more { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.gf-linkish {
  border: 0; background: transparent; color: var(--gf-muted);
  font-size: .8rem; font-weight: 700;
}
.gf-chev {
  width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid var(--gf-line); background: #121214;
  color: #fff; font-size: 1rem; line-height: 1;
}

.gf-hscroll {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 0 14px 6px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gf-hscroll::-webkit-scrollbar { display: none; }

.gf-game {
  flex: 0 0 118px; scroll-snap-align: start;
  border-radius: 12px; overflow: hidden; position: relative;
  background: #1a1a1e; aspect-ratio: 3 / 4;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.gf-game img { width: 100%; height: 100%; object-fit: cover; }
.gf-game-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 7px;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  font-size: .68rem; font-weight: 700; color: #eee;
}
.gf-game-meta i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gf-cyan); box-shadow: 0 0 6px var(--gf-cyan);
}
.gf-game-css {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px; background-size: cover;
}
.gf-game-title { font-weight: 800; font-size: .78rem; margin-bottom: 28px; text-shadow: 0 2px 8px #000; }
.gf-g-mask { background: linear-gradient(160deg, #3a1d5c, #12081f 60%), radial-gradient(circle at 70% 30%, #ffd36a, transparent 40%); }
.gf-g-queen { background: linear-gradient(160deg, #5c1d3a, #12080f 60%), radial-gradient(circle at 30% 20%, #ff7ac3, transparent 42%); }
.gf-g-seth { background: linear-gradient(160deg, #1d3a5c, #080f12 60%), radial-gradient(circle at 60% 25%, #5ce1ff, transparent 40%); }

/* Category tiles */
.gf-cats { padding: 8px 12px 4px; display: grid; gap: 10px; }
.gf-cats-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gf-cat-lg {
  position: relative; min-height: 96px; border-radius: var(--gf-radius);
  background-size: cover; background-position: center;
  overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.gf-cat-lg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.72));
}
.gf-cat-lg span {
  position: absolute; left: 12px; bottom: 10px; z-index: 1;
  font-weight: 800; font-size: .95rem;
}
.gf-cats-row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gf-cat-sm {
  border-radius: 12px; background: #121216;
  border: 1px solid var(--gf-line);
  padding: 8px 4px 10px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.gf-cat-sm img {
  width: 44px; height: 44px; object-fit: cover; border-radius: 10px;
}
.gf-cat-sm span { font-size: .62rem; font-weight: 700; color: #d4d4d8; line-height: 1.2; }

/* Live casino cards */
.gf-live {
  flex: 0 0 148px; aspect-ratio: 3 / 4; border-radius: 12px;
  position: relative; overflow: hidden; scroll-snap-align: start;
  background-size: cover; background-position: center top;
}
.gf-live-a { background: linear-gradient(180deg, transparent 35%, #000 95%), radial-gradient(circle at 50% 28%, #6b3a4a, #1a0c12 70%); }
.gf-live-b { background: linear-gradient(180deg, transparent 35%, #000 95%), radial-gradient(circle at 50% 28%, #3a4a6b, #0c121a 70%); }
.gf-live-c { background: linear-gradient(180deg, transparent 35%, #000 95%), radial-gradient(circle at 50% 28%, #4a3a6b, #120c1a 70%); }
.gf-live-d { background: linear-gradient(180deg, transparent 35%, #000 95%), radial-gradient(circle at 50% 28%, #3a6b4a, #0c1a12 70%); }
.gf-live::before {
  content: ""; position: absolute; inset: 18% 22% 38%;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(180deg, #f2c9b0, #c48a6a);
  opacity: .92;
}
.gf-live-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: .58rem; font-weight: 800; padding: 3px 6px;
  border-radius: 6px; background: rgba(0,0,0,.55); color: #fff;
}
.gf-live-name {
  position: absolute; left: 8px; right: 8px; bottom: 10px;
  font-size: .68rem; font-weight: 800; line-height: 1.25;
  text-transform: uppercase; letter-spacing: .02em;
}

/* Footer */
.gf-footer {
  padding: 28px 16px 20px; text-align: center;
  color: var(--gf-muted); font-size: .7rem; line-height: 1.65;
}
.gf-footer a { color: var(--gf-cyan); }
.gf-footer-title { color: #bbb; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gf-copy { opacity: .55; margin-top: 10px; }

/* Live Chat tab */
.gf-livechat {
  position: fixed; right: 0; top: 42%; z-index: 70;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  writing-mode: vertical-rl; text-orientation: mixed;
  background: linear-gradient(180deg, var(--gf-cyan), var(--gf-cyan-deep));
  color: #041018; font-size: .7rem; font-weight: 800;
  letter-spacing: .06em; padding: 14px 7px;
  border-radius: 10px 0 0 10px;
  box-shadow: -4px 4px 18px rgba(0,229,212,.3);
}
.gf-livechat svg { writing-mode: horizontal-tb; transform: rotate(90deg); }

/* Bottom tab bar */
.gf-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  height: calc(var(--gf-tabbar-h) + var(--gf-safe-b));
  padding: 6px 4px var(--gf-safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(18,18,20,.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--gf-line);
  max-width: 480px; margin: 0 auto;
}
.gf-tabbar button {
  border: 0; background: transparent; color: #9a9aa0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: .6rem; font-weight: 700;
}
.gf-tabbar button.is-active { color: var(--gf-cyan); }
.gf-tb-ico { font-size: 1.05rem; line-height: 1.2; }

/* ── Claim drawer ── */
.gf-claim {
  position: fixed; left: 0; right: 0; bottom: calc(var(--gf-tabbar-h) + var(--gf-safe-b));
  z-index: 90;
  background: rgba(12,12,14,.97);
  backdrop-filter: blur(22px);
  border-top: 1px solid rgba(0,229,212,.28);
  border-radius: 20px 20px 0 0;
  padding: 8px 16px 14px;
  box-shadow: 0 -14px 40px rgba(0,0,0,.5);
  max-width: 480px; margin: 0 auto;
  transition: transform .35s ease;
}
.gf-claim.is-expanded { --gf-claim-h: 320px; }
.gf-claim-handle {
  width: 42px; height: 4px; border-radius: 99px;
  background: rgba(255,255,255,.18); margin: 2px auto 10px;
}
.gf-claim-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 6px; gap: 10px;
}
.gf-claim-title { font-weight: 800; font-size: .98rem; }
.gf-claim-sub { color: var(--gf-muted); font-size: .78rem; margin-top: 2px; min-height: 1.2em; }
.gf-claim-amt {
  color: var(--gf-cyan); font-weight: 900; font-variant-numeric: tabular-nums;
  white-space: nowrap; font-size: 1.05rem;
}

.gf-claim-progress { text-align: center; }
.gf-ring-wrap {
  position: relative; width: 108px; height: 108px; margin: 2px auto 6px;
}
.gf-ring { width: 108px; height: 108px; transform: rotate(-90deg); }
.gf-ring-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 8; }
.gf-ring-fill {
  fill: none; stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 326.73; stroke-dashoffset: 326.73;
  transition: stroke-dashoffset .35s ease;
  filter: drop-shadow(0 0 8px rgba(0,229,212,.4));
}
.gf-claim.is-progressing .gf-ring-wrap { animation: gfPulse 1.6s ease-in-out infinite; }
.gf-claim.is-progressing .gf-bar-fill {
  background-size: 200% 100%; animation: gfShimmer 1.4s linear infinite;
}
.gf-pct {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.55rem; font-weight: 900; font-variant-numeric: tabular-nums;
}
.gf-pct small { font-size: .72rem; margin-left: 1px; }
.gf-bar {
  margin: 8px 0 10px; height: 6px; border-radius: 99px;
  background: rgba(255,255,255,.08); overflow: hidden;
}
.gf-bar-fill {
  height: 100%; width: 0%; border-radius: inherit;
  background: linear-gradient(90deg, var(--gf-cyan-deep), var(--gf-cyan), var(--gf-cyan-deep));
  background-size: 200% 100%; transition: width .35s ease;
}
.gf-btn-claim { width: 100%; border-radius: 12px; min-height: 44px; margin-top: 4px; }

/* Login gate */
.gf-login-gate { text-align: center; padding: 2px 0 4px; }
.gf-gate-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(0,229,212,.12); color: var(--gf-cyan);
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
}
.gf-login-gate h2 { margin: 10px 0 4px; font-size: 1.15rem; }
.gf-gate-sub { margin: 0 0 12px; color: var(--gf-muted); font-size: .82rem; }
.gf-auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px;
}
.gf-auth-tabs button {
  border: 1px solid var(--gf-line); background: transparent; color: var(--gf-muted);
  border-radius: 10px; padding: 10px; font-weight: 800;
}
.gf-auth-tabs button.active {
  color: #041018; background: var(--gf-cyan); border-color: transparent;
}
.gf-auth-form { display: grid; gap: 8px; text-align: left; }
.gf-auth-form label {
  display: grid; gap: 5px; font-size: .74rem; color: var(--gf-muted);
}
.gf-auth-form input {
  width: 100%; border-radius: 12px; border: 1px solid var(--gf-line);
  background: #0a0a0c; color: var(--gf-text);
  padding: 12px 14px; font-size: 1rem; min-height: 44px;
}
.gf-auth-msg { margin-top: 8px; color: var(--gf-cyan); font-size: .85rem; }

.gf-claim.is-complete .gf-claim-progress { display: none; }
.gf-claim.is-complete #gfLoginGate { display: block; }

@keyframes gfFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes gfFloatIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes gfPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes gfShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes gfGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(0,229,212,.35); }
  50% { box-shadow: 0 0 26px rgba(0,229,212,.65); }
}

@media (min-width: 481px) {
  .gf-header, .gf-claim, .gf-tabbar, .gf-app { left: 50%; right: auto; width: 480px; transform: none; }
  .gf-header, .gf-claim, .gf-tabbar { margin-left: calc(50vw - 240px); margin-right: auto; }
  .gf-livechat { right: calc(50vw - 240px); }
}
