

:root {
  --bg: #07080c;
  --card: #141822;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f5fb;
  --muted: #8b93a7;
  --blue: #3d6bff;
  --blue-2: #8fb0ff;
  --yes: #22c55e;
  --yes-bg: rgba(34, 197, 94, 0.14);
  --no: #f43f5e;
  --no-bg: rgba(244, 63, 94, 0.14);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
html.booting body { visibility: hidden; }
body {
  font-family: Inter, "PingFang SC", "Noto Sans SC", "Noto Sans", "Noto Naskh Arabic", "Noto Sans Thai", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Myanmar", "Noto Sans Ethiopic", "Noto Sans Hebrew", "Noto Sans Georgian", "Noto Sans Armenian", "Noto Sans Khmer", "Noto Sans Lao", "Noto Sans Sinhala", sans-serif;
  background: #05060a;
  color: var(--text);
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.hidden { display: none !important; }

.stage { min-height: 100dvh; }
.phone {
  min-height: 100dvh;
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.notch { display: none; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 8px;
}
.brand { display: flex; align-items: center; gap: 8px; }
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  background: #1b2030;
  flex: 0 0 auto;
}
.brand strong { display: block; font-size: 16px; letter-spacing: -0.03em; }
.brand span { display: block; color: var(--muted); font-size: 11px; }
.top-actions { display: flex; gap: 6px; }
.chip {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #1b2030;
  font-size: 11px;
  font-weight: 600;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip.ghost { background: rgba(255,255,255,.06); }
.chip.balance { background: linear-gradient(135deg, #2a46c9, #3d6bff); }

.content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 14px 92px;
  overscroll-behavior: contain;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  background: #121622;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.search span { color: var(--muted); font-size: 18px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; }

.gift {
  margin-top: 12px;
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a274d, #15203b);
  border: 1px solid rgba(61,107,255,.35);
}
.gift b { color: var(--blue-2); font-size: 13px; }
.gift span { color: #d5dcf0; font-size: 12px; line-height: 1.35; }
.gift em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  background: var(--blue);
  border-radius: 999px;
  padding: 6px 8px;
}

.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 14px 0 8px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats button {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #161b28;
  color: #c5ccdd;
  font-size: 13px;
  font-weight: 600;
}
.cats button.on { background: #fff; color: #0b0d12; }
.source, .muted, .hint { color: var(--muted); font-size: 12px; line-height: 1.5; }

.feed { display: grid; gap: 8px; padding-bottom: 12px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}
.card.sk {
  height: 148px;
  background: linear-gradient(90deg, #141822, #1b2130, #141822);
  background-size: 200% 100%;
  animation: shine 1.2s infinite;
}
@keyframes shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.card-head { display: flex; gap: 10px; margin-bottom: 10px; }
.card-head img, .ph {
  width: 44px; height: 44px; border-radius: 12px;
  object-fit: cover; background: #222838; flex: 0 0 auto;
}
.card-head h3, .sheet h3 { margin: 0; font-size: 15px; line-height: 1.35; }
.card-head p, .desc { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.row .label { font-size: 13px; color: #d7dce8; }
.row.col { display: block; }
.row-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btns button, .btn {
  height: 38px; border-radius: 12px; font-size: 12px; font-weight: 700;
}
.yes { background: var(--yes-bg); color: var(--yes); }
.no { background: var(--no-bg); color: var(--no); }
.btn { width: 100%; background: var(--blue); color: #fff; margin-top: 8px; }
.btn.ghost { background: #1b2130; }

.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10,12,18,.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.tabbar button {
  color: #7f8798;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.tabbar button.on { color: #fff; }
.ico { width: 18px; height: 18px; border: 1.6px solid currentColor; border-radius: 5px; }
.ico.portfolio { border-radius: 99px; }
.ico.profile { border-radius: 99px 99px 4px 4px; }

.mask {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: flex-end;
  z-index: 60;
}
.sheet {
  width: 100%;
  max-height: 86%;
  overflow: auto;
  background: #12151e;
  border-radius: 22px 22px 0 0;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  animation: up .28s ease;
}
@keyframes up {
  from { transform: translateY(24px); opacity: .6; }
  to { transform: none; opacity: 1; }
}
.handle { width: 42px; height: 4px; border-radius: 99px; background: #2c3344; margin: 4px auto 12px; }
.field { display: grid; gap: 6px; margin: 10px 0; font-size: 12px; color: var(--muted); }
.field input {
  height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #0d1018; padding: 0 12px; outline: none;
}
.captcha-row { display: flex; gap: 10px; align-items: end; }
.grow { flex: 1; }
.captcha { height: 44px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.captcha canvas { display: block; }
.err { color: #ff7b8c; font-size: 12px; }
.link { width: 100%; margin-top: 10px; color: var(--blue-2); font-size: 13px; }
.claim { text-align: center; padding: 12px 0 8px; }
.coin {
  width: 72px; height: 72px; margin: 8px auto 12px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #ffe08a, #d4a017);
  color: #3a2a00; font-weight: 800; font-size: 18px;
}
.pick {
  display: flex; justify-content: space-between; align-items: center;
  background: #1a2140; border-radius: 12px; padding: 12px; margin: 8px 0;
}
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick button { height: 34px; border-radius: 10px; background: #1b2130; font-size: 12px; font-weight: 700; }
.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.meta-grid div { background: #0f1320; border-radius: 12px; padding: 10px; }
.meta-grid span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.page-title { margin: 6px 0 12px; font-size: 19px; }
.stat {
  background: var(--card); border-radius: 16px; padding: 14px;
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.stat b { font-size: 20px; }
.profile-card { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.profile-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.stack { display: grid; gap: 8px; }
.empty { text-align: center; padding: 40px 12px; color: var(--muted); }
.lang-list { display: grid; gap: 8px; }
.lang-list button {
  height: 44px; border-radius: 12px; background: #1b2130;
  text-align: left; padding: 0 14px; font-weight: 600;
}
.lang-list button.on { background: var(--blue); }
.success-mask { align-items: center; padding: 20px; }
.success {
  width: 100%; background: #12151e; border-radius: 22px;
  padding: 24px 18px 18px; text-align: center; animation: up .28s ease;
}
.check {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yes);
  color: #052e16; font-size: 28px; font-weight: 800;
}
.toast {
  position: absolute; left: 16px; right: 16px;
  top: calc(18px + env(safe-area-inset-top));
  background: #22283a; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px;
  text-align: center; font-size: 13px; z-index: 30;
}

@media (min-width: 540px) {
  .stage {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 0%, #1a2450 0%, transparent 42%), #05060a;
  }
  .phone {
    width: 390px;
    height: min(844px, 96dvh);
    min-height: 0;
    border-radius: 40px;
    border: 10px solid #171717;
    box-shadow: 0 18px 50px rgba(0,0,0,.45), inset 0 0 0 1px #2a2a2a;
  }
  .notch, .notch {
    display: block;
    position: absolute;
    top: 8px; left: 50%;
    width: 118px; height: 22px;
    transform: translateX(-50%);
    background: #000;
    border-radius: 20px;
    z-index: 5;
  }
  .topbar, .topbar { padding-top: 34px; }
}

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 8px; }
.brand { display: flex; align-items: center; gap: 8px; }
.top-actions { display: flex; gap: 6px; }
.chip { height: 30px; padding: 0 10px; border-radius: 999px; background: #1b2030; font-size: 11px; font-weight: 600; max-width: 168px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.ghost { background: rgba(255,255,255,.06); }
.chip.balance { background: linear-gradient(135deg, #2a46c9, #3d6bff); }
.content { flex: 1; min-height: 0; overflow: auto; padding: 0 14px 92px; overscroll-behavior: contain; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(10,12,18,.92); backdrop-filter: blur(16px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.tabbar button { color: #7f8798; font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.tabbar button.on { color: #fff; }
.ico { width: 18px; height: 18px; border: 1.6px solid currentColor; border-radius: 5px; }
.ico.portfolio { border-radius: 99px; }
.ico.profile { border-radius: 99px 99px 4px 4px; }
.notch { display: none; }
.card-head { display: flex; gap: 10px; margin-bottom: 10px; }
.card-head img, .ph, .ph { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #222838; flex: 0 0 auto; }
.handle { width: 42px; height: 4px; border-radius: 99px; background: #2c3344; margin: 4px auto 12px; }
.lang-list { display: grid; gap: 8px; }
.lang-list button { height: 44px; border-radius: 12px; background: #1b2130; text-align: left; padding: 0 14px; font-weight: 600; }
.lang-list button.on { background: var(--blue); }
.captcha-row { display: flex; gap: 10px; align-items: end; }
.profile-card { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.success-mask { align-items: center; padding: 20px; z-index: 50; }

.welcome-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 20px;
}
.welcome-card {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #1a2748, #12151e);
  border: 1px solid rgba(61, 107, 255, 0.35);
  border-radius: 22px;
  padding: 22px 18px 18px;
  text-align: center;
  animation: pop 0.28s ease;
}
.welcome-card.shrink {
  animation: shrink-away 0.26s ease forwards;
}
@keyframes pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes shrink-away {
  to { transform: scale(0.18) translate(140px, 220px); opacity: 0; }
}
.welcome-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
  color: #c5ccdd;
}
.welcome-card h3 { margin: 8px 0; font-size: 18px; }
.welcome-card .desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.gift-mini {
  position: absolute;
  right: 14px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 35;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2a46c9, #3d6bff);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(61, 107, 255, 0.4);
  animation: pop 0.28s ease;
}

@media (min-width: 540px) {
  .topbar, .topbar { padding-top: 34px; }
}

    
.lang-search {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0d1018;
  padding: 0 12px;
  margin: 4px 0 10px;
  outline: none;
}
.lang-list {
  max-height: 46dvh;
  overflow: auto;
  padding-bottom: 8px;
}
.lang-list button {
  height: auto;
  min-height: 44px;
  white-space: normal;
  line-height: 1.35;
}
html.safari-restricted .topbar,
html.safari-restricted .content,
html.safari-restricted .tabbar,
html.safari-restricted .welcome-mask,
html.safari-restricted .gift-mini,
html.safari-restricted #toast {
  visibility: hidden !important;
  pointer-events: none !important;
}
html.safari-restricted #langChip {
  visibility: visible !important;
  pointer-events: auto !important;
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 14px;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
html.safari-restricted #mask,
html.safari-restricted .access-gate {
  visibility: visible !important;
}
html.safari-restricted #mask { z-index: 130; visibility: visible !important; pointer-events: auto !important; }
html.safari-restricted #mask .sheet { background: #12151e; }
html.booting.safari-restricted .access-gate { visibility: visible; }
.access-gate { display: none; }
html.safari-restricted .access-gate {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(52px + env(safe-area-inset-top)) 18px calc(16px + env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(62, 224, 255, 0.16), transparent 46%),
    radial-gradient(90% 70% at 100% 100%, rgba(28, 42, 107, 0.55), transparent 50%),
    #070b14;
}
html.safari-allowed .access-gate { display: none !important; }
.access-field, .access-field svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.access-field { pointer-events: none; }
.curve {
  fill: none;
  stroke: rgba(126, 232, 255, 0.45);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 8 14;
  animation: safari-drift 22s linear infinite;
}
.curve.dim { stroke: rgba(126, 232, 255, 0.18); }
.node { fill: #8ef3ff; opacity: 0.75; }
.access-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 224, 255, 0.18), transparent 68%);
  filter: blur(8px);
  animation: safari-glow 14s ease-in-out infinite;
  pointer-events: none;
}
.access-loader, .safari-panel { position: relative; z-index: 1; width: min(100%, 316px); }
.access-loader {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #d5e4f2;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
}
.access-gate.is-checking .access-loader { display: flex; }
.access-gate.is-checking .safari-panel { display: none; }
.loader-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  border: 1px solid rgba(180, 230, 255, 0.28);
  box-shadow: 0 0 32px rgba(62, 224, 255, 0.25), inset 0 1px 0 rgba(255,255,255,.35);
  font-size: 19px;
}
.safari-panel {
  max-height: 100%;
  overflow: auto;
  text-align: center;
  color: #f4f7fb;
  padding: 16px 14px 14px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(22, 34, 68, 0.72), rgba(8, 12, 24, 0.9));
  border: 1px solid rgba(170, 220, 255, 0.28);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -24px 40px rgba(10, 40, 80, 0.28);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  animation: safari-enter 0.55s cubic-bezier(.2,.8,.2,1);
}
.safari-brand { display: flex; align-items: center; justify-content: center; gap: 8px; }
.safari-logo {
  width: 28px; height: 28px; border-radius: 8px; object-fit: cover; background: #15203a;
}
.safari-brand b { font-size: 15px; letter-spacing: -0.03em; }
.safari-stage { position: relative; height: 112px; margin: 2px 0 0; }
.safari-curve {
  position: absolute; inset: 28px 0 0; width: 100%; height: 92px;
}
.safari-curve path {
  fill: none; stroke: url(#safariStroke); stroke-width: 2.4;
  stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220;
  animation: safari-draw 2.4s ease forwards;
}
.compass {
  position: absolute; left: 50%; top: 8px; width: 58px; height: 58px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 18px rgba(62, 224, 255, 0.45));
  animation: safari-float 4.8s ease-in-out infinite;
}
.safari-kicker {
  margin: 0; color: #8ef3ff; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
}
.safari-panel h2 {
  margin: 6px 0 0; font-size: 20px; line-height: 1.28; letter-spacing: -0.03em;
  white-space: pre-line; text-wrap: balance;
}
.safari-sub, .safari-note, .safari-hint {
  color: #c5d4e4; font-size: 13.5px; line-height: 1.55; text-wrap: pretty;
}
.safari-sub { margin: 8px 0 0; }
.safari-note { margin: 8px 0 0; color: #9fb4c9; font-size: 12px; }
.safari-go {
  width: 100%; min-height: 50px; height: auto; margin-top: 12px; padding: 12px 14px;
  border-radius: 16px; color: #041018; font-size: 16px; font-weight: 700; line-height: 1.25;
  white-space: normal; background: linear-gradient(180deg, #b8fbff 0%, #3ee0ff 42%, #2f7bff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 24px rgba(47, 123, 255, 0.28);
}
.safari-go:active { transform: translateY(1px) scale(0.985); }
.safari-go[aria-busy="true"] { opacity: 0.82; }
.safari-hint { margin: 12px 0 0; }
@keyframes safari-drift { to { stroke-dashoffset: -220; } }
@keyframes safari-glow { 50% { transform: scale(1.08); opacity: 0.7; } }
@keyframes safari-enter { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes safari-draw { to { stroke-dashoffset: 0; } }
@keyframes safari-float { 50% { transform: translateX(-50%) translateY(-5px); } }
@media (prefers-reduced-motion: reduce) {
  .access-glow, .curve, .compass, .safari-panel, .safari-curve path { animation: none !important; }
  .safari-curve path { stroke-dashoffset: 0; }
}
@media (max-width: 359px) {
  .safari-panel h2 { font-size: 18px; }
  .safari-go { font-size: 15px; }
}


/* === Vivid Full-Screen Safari Gate Redesign === */
html.safari-restricted .access-gate {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 65% at 15% 0%, rgba(61, 107, 255, 0.34), transparent 55%),
    radial-gradient(95% 55% at 92% 18%, rgba(62, 224, 255, 0.24), transparent 52%),
    radial-gradient(80% 50% at 10% 92%, rgba(34, 197, 94, 0.16), transparent 55%),
    radial-gradient(85% 55% at 95% 96%, rgba(244, 63, 94, 0.16), transparent 55%),
    linear-gradient(180deg, #090e1c 0%, #07080c 52%, #0a1020 100%);
}
html.safari-restricted #langChip {
  top: calc(14px + env(safe-area-inset-top));
  right: 16px;
  z-index: 95;
  background: rgba(20, 26, 44, 0.78);
  border: 1px solid rgba(143, 176, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (min-width: 540px) {
  html.safari-restricted #langChip {
    top: 36px;
  }
}
.access-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 176, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 176, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 40%, #000 35%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 35%, transparent 90%);
  pointer-events: none;
}
.access-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  pointer-events: none;
  opacity: 0.65;
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.access-orb.orb-1 {
  width: 240px; height: 240px; top: -60px; left: -50px;
  background: radial-gradient(circle, rgba(61, 107, 255, 0.55), transparent 70%);
}
.access-orb.orb-2 {
  width: 220px; height: 220px; top: 22%; right: -70px;
  background: radial-gradient(circle, rgba(62, 224, 255, 0.42), transparent 70%);
  animation-delay: -4s;
}
.access-orb.orb-3 {
  width: 210px; height: 210px; bottom: -50px; left: 10%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.28), transparent 70%);
  animation-delay: -8s;
}
.access-panel-wrap,
.safari-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: calc(16px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  text-align: center;
  overflow-y: auto;
  gap: 8px;
}
@media (min-width: 540px) {
  .safari-panel {
    padding-top: 38px;
  }
}
.safari-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding-right: 96px;
}
.safari-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  background: rgba(20, 24, 34, 0.72);
  border: 1px solid rgba(143, 176, 255, 0.22);
}
.safari-logo {
  width: 26px; height: 26px; border-radius: 7px; object-fit: cover;
}
.safari-brand b {
  font-size: 14px; font-weight: 800; letter-spacing: -0.02em; color: #f3f5fb;
}
.safari-bonus-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.36);
}
.safari-bonus-pill i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.safari-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin: auto 0;
}
.safari-stage {
  position: relative;
  width: 100%;
  height: 124px;
  margin: 0;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(22, 31, 56, 0.78), rgba(14, 18, 30, 0.88));
  border: 1px solid rgba(143, 176, 255, 0.22);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px;
}
.safari-curve {
  position: absolute;
  inset: 14px 0 24px;
  width: 100%;
  height: 104px;
  opacity: 0.9;
}
.safari-curve path {
  fill: none;
  stroke: url(#safariStroke);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: safari-draw 2s ease forwards;
}
.compass-wrap {
  position: relative;
  width: 66px;
  height: 66px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  z-index: 2;
}
.compass-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #3d6bff, #3ee0ff, #22c55e, #f43f5e, #8fb0ff, #3d6bff);
  opacity: 0.82;
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: spin-slow 9s linear infinite;
}
.compass {
  position: relative;
  left: auto; top: auto;
  transform: none;
  width: 58px; height: 58px;
  filter: drop-shadow(0 0 18px rgba(62, 224, 255, 0.5));
  animation: compass-bob 4.2s ease-in-out infinite;
}
.compass-needle {
  transform-origin: 46px 46px;
  animation: needle-sway 3.6s ease-in-out infinite;
}
.safari-ticker {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
}
.tick-yes { color: #4ade80; }
.tick-no { color: #fb7185; }
.tick-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.35);
  overflow: hidden;
}
.tick-bar span {
  display: block;
  height: 100%;
  width: 68%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #3ee0ff);
  animation: bar-breathe 3.8s ease-in-out infinite;
}
.safari-kicker {
  margin: 2px 0 0;
  color: #7ee8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.safari-panel h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 10%, #c8e6ff 58%, #7ee8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: pre-line;
  text-wrap: balance;
}
.safari-sub {
  margin: 0;
  color: #b7c4dc;
  font-size: 13px;
  line-height: 1.5;
}
.safari-feature-card {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(61, 107, 255, 0.18), rgba(62, 224, 255, 0.1) 52%, rgba(34, 197, 94, 0.12));
  border: 1px solid rgba(110, 210, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.safari-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.safari-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3ee0ff, #3d6bff);
  box-shadow: 0 0 10px rgba(62, 224, 255, 0.8);
}
.safari-dot.green {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}
.safari-note {
  margin: 0;
  color: #eaf3ff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.safari-additional {
  margin: 0;
  color: #9cb4d6;
  font-size: 12px;
  line-height: 1.48;
}
.safari-cta-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.safari-go {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 48px;
  margin-top: 0;
  padding: 13px 16px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #03111c;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #9cf8ff 0%, #3ee0ff 38%, #4b8bff 75%, #7c9cff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 28px rgba(61, 107, 255, 0.42),
    0 0 22px rgba(62, 224, 255, 0.25);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.safari-go::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-22deg);
  animation: btn-sheen 3.2s ease-in-out infinite;
  pointer-events: none;
}
.safari-go svg {
  width: 20px; height: 20px; flex: 0 0 auto;
}
.safari-go:active { transform: translateY(1px) scale(0.985); }
.safari-hint {
  margin: 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(20, 28, 48, 0.82);
  border: 1px solid rgba(143, 176, 255, 0.24);
  color: #cfe0ff;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(18px, 16px) scale(1.12); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes compass-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes needle-sway {
  0%, 100% { transform: rotate(-16deg); }
  50% { transform: rotate(22deg); }
}
@keyframes bar-breathe {
  0%, 100% { width: 64%; }
  50% { width: 76%; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
@keyframes btn-sheen {
  0%, 62% { left: -65%; }
  100% { left: 130%; }
}
