
:root {
  --bg: #050712;
  --ink: #f4f7ff;
  --muted: #b7c3de;
  --line: rgba(160, 190, 255, 0.16);
  --blue: #7ec8ff;
  --purple: #b9a6ff;
  --green: #3dffb0;
  --hot: #ff6b8a;
  --amber: #ffd089;
  --glass: rgba(12, 16, 34, 0.78);
  --font: Sora, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Noto Sans TC", "Microsoft JhengHei", "Yu Gothic UI", "Malgun Gothic", "Leelawadee UI", "Nirmala UI", sans-serif;
  --display: Oxanium, Sora, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --safe-top: env(safe-area-inset-top);
  --safe-bot: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; }
html, body { margin: 0; max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(72, 92, 220, 0.2), transparent 55%),
    #02030a;
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img, svg { max-width: 100%; display: block; }
p, h1, h2, h3 { overflow-wrap: break-word; }
::selection { background: rgba(120, 160, 255, 0.35); }

.app {
  width: min(100%, 430px);
  margin-inline: auto;
  position: relative;
  min-height: 100dvh;
  background: var(--bg);
}
#page { position: relative; z-index: 1; padding-bottom: calc(108px + var(--safe-bot)); }
.fx {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, 430px);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #050712;
}
.fx-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
  animation: ken 20s ease-in-out infinite alternate;
}
.fx-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3,5,14,0.5) 0%, rgba(3,5,14,0.12) 30%, rgba(3,5,14,0.18) 60%, rgba(3,5,14,0.5) 100%);
}
.grid {
  position: absolute;
  inset: -30%;
  background-image:
    linear-gradient(rgba(110, 150, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 150, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: gridMove 32s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000 15%, transparent 72%);
}
.orb { position: absolute; border-radius: 50%; animation: float 18s ease-in-out infinite; }
.o1 { width: 280px; height: 280px; top: -50px; left: -80px; background: radial-gradient(circle, rgba(70, 110, 255, 0.42), transparent 68%); }
.o2 { width: 240px; height: 240px; top: 38%; right: -90px; background: radial-gradient(circle, rgba(150, 80, 255, 0.32), transparent 68%); animation-delay: -7s; }
.o3 { width: 200px; height: 200px; bottom: 8%; left: -50px; background: radial-gradient(circle, rgba(40, 220, 180, 0.16), transparent 68%); animation-delay: -3s; }
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.035), rgba(255,255,255,0.035) 1px, transparent 1px, transparent 4px);
  opacity: 0.22;
}
.net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.net path { stroke-dasharray: 3 5; animation: dash 24s linear infinite; }
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b7e4ff;
  box-shadow: 0 0 8px #69b7ff;
  animation: drift linear infinite;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(8px + var(--safe-top)) 14px 12px;
  background: linear-gradient(to bottom, rgba(5,7,18,0.94), rgba(5,7,18,0.72) 68%, rgba(5,7,18,0));
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand b, .brand small { display: block; font-family: var(--display); letter-spacing: 0.14em; }
.brand b { font-size: 12px; font-weight: 700; }
.brand small { margin-top: 1px; font-size: 9px; letter-spacing: 0.2em; color: var(--blue); }
.mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #d9f4ff;
  background: linear-gradient(160deg, rgba(90,160,255,0.25), rgba(120,80,255,0.18));
  border: 1px solid rgba(160,200,255,0.25);
  box-shadow: 0 0 16px rgba(80,140,255,0.25);
}
.lang-btn, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8,12,28,0.55);
  color: #e7f0ff;
}
.lang-btn { padding: 0 10px; font-size: 13px; font-weight: 600; }
.icon-btn { width: 40px; height: 40px; padding: 0; }
.icon-btn svg, .lang-btn svg, .mark svg { width: 18px; height: 18px; }

.hero { position: relative; min-height: calc(100svh - 64px); display: flex; align-items: flex-end; }
.hero-content { position: relative; z-index: 1; width: 100%; padding: 8px 16px calc(96px + var(--safe-bot)); text-align: center; }
.badge, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #d5e9ff;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(160,210,255,0.28);
  background: rgba(6,12,28,0.45);
  box-shadow: 0 0 18px rgba(80,150,255,0.18);
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
h1, h2, h3 { font-family: var(--display); margin: 0; }
.hero h1 { margin-top: 8px; font-size: clamp(26px, 7.2vw, 36px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; text-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.hero h1 span, .subhead span, h2 span { display: block; }
.subhead {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 750;
  line-height: 1.12;
  color: #9be7ff;
  text-shadow: 0 0 18px rgba(80,190,255,0.28);
}
.lead { margin: 8px 0 0; color: #e4ecff; font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cta-col { display: grid; gap: 8px; margin-top: 12px; }
.btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
}
.btn.sm { min-height: 44px; font-size: 14px; }
.btn-primary {
  color: #f7fbff;
  background: linear-gradient(120deg, #3c7dff, #6d5cff 48%, #2ec8ff);
  background-size: 180% 180%;
  animation: grad 6s ease infinite;
  box-shadow: 0 10px 28px rgba(60,100,255,0.32);
}
.btn-primary.ready { animation: grad 6s ease infinite, glow 1.5s ease-in-out infinite; }
.btn-primary.ready::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 32%, rgba(255,255,255,0.42), transparent 68%);
  transform: translateX(-120%);
  animation: shimmer 1.8s ease infinite;
}
.btn-ghost {
  color: #edf4ff;
  background: rgba(7,12,26,0.62);
  border: 1px solid rgba(170,200,255,0.28);
}
.btn:active { transform: scale(0.98); }
.btn:disabled { cursor: not-allowed; opacity: 0.62; filter: saturate(0.7); animation: none; box-shadow: none; }
.btn:disabled::after { display: none; }
.hero .btn { min-height: 46px; padding: 10px 14px; }
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid #8fd0ff; outline-offset: 2px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.stat {
  padding: 8px 4px;
  text-align: center;
  animation: floaty 5.5s ease-in-out infinite;
}
.stat:nth-child(2) { animation-delay: -1.2s; }
.stat:nth-child(3) { animation-delay: -2s; }
.stat:nth-child(4) { animation-delay: -3s; }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.stat span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.25; }
.caption { margin: 6px 0 0; color: #9eaccb; font-size: 11px; }

.ticker { overflow: hidden; border-block: 1px solid rgba(140,170,255,0.12); background: rgba(8,12,28,0.45); }
.ticker-track { display: flex; gap: 28px; width: max-content; padding: 10px 0; animation: marquee 36s linear infinite; }
.ticker span { white-space: nowrap; color: #d5def3; font-size: 12px; }
.ticker i { color: #8dffe0; font-style: normal; margin-inline-end: 10px; }

.sec { padding: 26px 16px 6px; }
section[id] { scroll-margin-top: calc(72px + env(safe-area-inset-top)); }
h2 { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.08; letter-spacing: -0.03em; }
.sub { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.note, .fine {
  margin: 8px 0 0;
  color: #d5deef;
  font-size: 12px;
  line-height: 1.45;
}
.sec-tools { display: flex; justify-content: flex-end; gap: 8px; margin: 12px 0; }

.hscroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 16px 12px;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.topic-card {
  flex: 0 0 82%;
  max-width: 300px;
  scroll-snap-align: start;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 250px;
}
.card-top, .pills, .row { display: flex; align-items: center; gap: 6px; }
.card-top { justify-content: space-between; }
.idx, .rank, .top-no, .q-idx {
  font-family: var(--display);
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.tag { margin: 0; color: #c9b6ff; font-size: 12px; font-weight: 700; }
.topic-card h3, .top-card h3 { font-size: 16px; line-height: 1.3; letter-spacing: 0; }
.summary { margin: 0; color: #d5def2; font-size: 13px; flex: 1; }
.pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 6px;
  border-radius: 999px;
}
.pill.hot { color: #ffd5de; background: rgba(255,80,110,0.16); }
.pill.high { color: #ffe6bf; background: rgba(255,180,70,0.14); }
.pill.watch, .pill.trend { color: #c8ffe8; background: rgba(61,255,176,0.1); }
.glass {
  background: linear-gradient(180deg, rgba(18,24,48,0.66), rgba(8,12,24,0.58));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 14px 30px rgba(0,0,0,0.22);
}
.top-card { padding: 14px; margin-top: 10px; }
.top-card .meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.top-card p { margin: 6px 0 0; color: #d5def2; font-size: 13px; }

.radar-stage { position: relative; height: 360px; margin-top: 8px; }
.radar-disc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 158px;
  height: 158px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(140,190,255,0.45);
  box-shadow: 0 0 0 26px rgba(80,140,255,0.05), 0 0 0 52px rgba(80,140,255,0.04), inset 0 0 30px rgba(80,140,255,0.2);
  overflow: hidden;
  background: radial-gradient(circle, rgba(50,90,180,0.2), rgba(5,8,20,0.2) 70%);
}
.radar-sweep {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(130,220,255,0.08) 86%, rgba(190,250,255,0.72) 100%);
  animation: spin 4.8s linear infinite;
}
.radar-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #e8fff8;
  text-shadow: 0 0 10px rgba(80,255,200,0.45);
}
.blip {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8ffe8;
  box-shadow: 0 0 8px var(--green);
}
.blip.ping { animation: ping 1s ease; }
.radar-label {
  position: absolute;
  width: 74px;
  min-height: 30px;
  padding: 5px 4px;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 10px;
  line-height: 1.25;
  color: #e1ebff;
  background: rgba(8,14,32,0.72);
  border: 1px solid rgba(140,190,255,0.32);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.radar-label:hover { border-color: rgba(150,210,255,0.7); }
.radar-label.on {
  color: #04121c;
  background: linear-gradient(135deg, #7cf3d0, #6fc2ff);
  border-color: transparent;
  box-shadow: 0 0 14px rgba(110,200,255,0.55);
}

.quiz-card, .ai-card, .panel { padding: 14px; margin-top: 12px; }
.q-top { display: flex; justify-content: space-between; align-items: center; }
.q-title { margin: 10px 0; font-size: 18px; letter-spacing: 0; line-height: 1.3; }
.opts { display: grid; gap: 8px; }
.opt {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: start;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.opt em {
  width: 28px; height: 28px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 8px;
  font-style: normal;
  font-family: var(--display);
  background: rgba(120,160,255,0.14);
}
.opt.on { border-color: rgba(130,210,255,0.85); box-shadow: 0 0 0 1px rgba(130,210,255,0.35), 0 0 16px rgba(80,150,255,0.22); }
.q-nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 12px; }
.q-nav .only { grid-column: 1 / -1; }
.bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar > i, .bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5ec8ff, #b59cff); }
.score-num {
  margin: 6px 0;
  font-family: var(--display);
  font-size: 56px;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: #eaf5ff;
  text-shadow: 0 0 18px rgba(120, 180, 255, 0.35);
}
.score-num.good { color: #c8ffe4; }
.score-num.mid { color: #d9ecff; }
.score-num.low { color: #ffe1b5; }
.focus-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.focus-list li {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  font-size: 13px;
}
.chip.on { color: #f4fbff; border-color: rgba(120,210,255,0.8); box-shadow: 0 0 14px rgba(80,160,255,0.25); }
textarea, input, select {
  width: 100%;
  font-size: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(160,190,255,0.22);
  background: rgba(4,8,20,0.72);
  outline: none;
}
textarea { min-height: 96px; resize: vertical; }
textarea:focus, input:focus, select:focus { border-color: rgba(130,190,255,0.9); box-shadow: 0 0 0 3px rgba(80,140,255,0.18); }
::placeholder { color: #93a0bf; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9ec4ff 50%), linear-gradient(135deg, #9ec4ff 50%, transparent 50%);
  background-position: right 16px center, right 10px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-inline-end: 32px;
}
html[dir="rtl"] select { background-position: left 16px center, left 10px center; }
.ai-item, .board-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
}
.ai-item b, .board-row .rank { width: 36px; flex: 0 0 auto; font-family: var(--display); color: #9be7ff; }
.ai-item span, .board-row .name { flex: 1; }
.up { color: var(--green); animation: bump 1.3s ease-in-out infinite; }
.scanbox { margin-top: 12px; padding: 14px; }
.scanbox p { margin: 8px 0 0; }

.brand-grid, .shield-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.brand-card, .shield-card { padding: 14px; min-height: 92px; }
.mini { display: block; margin-bottom: 6px; color: #9eb0d4; font-size: 10px; letter-spacing: 0.08em; font-weight: 700; }
.brand-card strong { font-size: 16px; font-family: var(--display); letter-spacing: 0.02em; }
.shield-card { display: flex; flex-direction: column; justify-content: space-between; }
.xmark {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%;
  color: #ffd0da;
  background: rgba(255,90,120,0.14);
  border: 1px solid rgba(255,120,150,0.3);
}
.never {
  margin-top: 12px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,70,100,0.1), rgba(10,12,24,0.4));
  border: 1px solid rgba(255,120,150,0.28);
}
.never strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #ffe4ea;
}
.never p { margin: 8px 0 0; color: #f3e4ea; }

.steps { list-style: none; margin: 14px 0 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 10px; position: relative; padding-bottom: 16px; }
.steps li b {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-family: var(--display);
  background: rgba(90,140,255,0.12);
  border: 1px solid rgba(150,190,255,0.3);
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 20px;
  top: 46px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(var(--blue), transparent);
}
.steps p { margin: 8px 0 0; }

.acc { margin-top: 8px; overflow: hidden; }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: start;
  padding: 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: inherit;
}
.acc-btn:focus-visible { outline-offset: -2px; }
.chev { transition: transform 0.25s ease; flex: 0 0 auto; }
.acc.open .chev { transform: rotate(180deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; }
.acc.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { margin: 0; padding: 0 14px 14px; color: #dbe4f7; }

footer { padding: 28px 16px 8px; text-align: center; }
.foot-brand { font-family: var(--display); letter-spacing: 0.12em; font-size: 14px; }
.foot-tag { margin: 6px 0 0; color: #9be7ff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.foot-links span { font-size: 12px; padding: 6px 8px; border-radius: 999px; border: 1px solid var(--line); color: #d5def0; }
footer .fine { text-align: start; }

.dock {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 430px);
  padding: 8px 12px calc(10px + var(--safe-bot));
  background: linear-gradient(to top, rgba(5,7,18,0.97), rgba(5,7,18,0.78) 70%, transparent);
}
.dock-btn {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  border: 0;
  border-radius: 16px;
  color: #f5f9ff;
  text-align: start;
  background: linear-gradient(120deg, rgba(48,90,220,0.95), rgba(110,70,230,0.92));
  box-shadow: 0 10px 28px rgba(40,70,200,0.35);
}
.dock-btn:active { transform: scale(0.985); }
.dock-btn .label { flex: 1; font-size: 13px; font-weight: 750; line-height: 1.25; }
.dock-pill {
  flex: 0 0 auto;
  max-width: 104px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 6px 7px;
  border-radius: 999px;
  color: #d9fff0;
  background: rgba(4,20,16,0.35);
  border: 1px solid rgba(180,255,220,0.35);
}

.modal, .sheet-root { position: fixed; inset: 0; z-index: 60; }
.modal { display: none; }
.modal.show { display: block; }
.sheet-root { z-index: 70; display: flex; justify-content: center; align-items: flex-end; }
.sheet-root[hidden] { display: none !important; }
.overlay-dim { position: absolute; inset: 0; background: rgba(2,3,10,0.78); }
.modal .overlay-dim {
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(90,120,255,0.28), transparent 62%),
    #04060e;
}
.gate-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
  scrollbar-width: none;
  padding: calc(20px + var(--safe-top)) 16px calc(20px + var(--safe-bot));
  background: transparent;
  outline: none;
}
.gate-panel:focus, .gate-panel:focus-visible { outline: none; }
.gate-panel::-webkit-scrollbar { display: none; }
.gate-card {
  position: relative;
  width: min(100%, 390px);
  margin: auto;
  padding: 22px 18px 18px;
  border-radius: 28px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(16,20,44,0.97), rgba(6,8,20,0.98)) padding-box,
    linear-gradient(135deg, rgba(124,243,208,0.85), rgba(109,92,255,0.6) 45%, rgba(63,182,255,0.85)) border-box;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 24px 60px rgba(0,0,0,0.55), 0 0 60px rgba(90,120,255,0.18);
  animation: cardIn 0.45s cubic-bezier(.2,.8,.2,1);
}
.gate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(260px 160px at 50% 0%, rgba(110,140,255,0.32), transparent 70%),
    radial-gradient(200px 140px at 100% 100%, rgba(124,243,208,0.12), transparent 70%);
}
.gate-card > * { position: relative; }
.pass {
  position: relative;
  width: 228px;
  aspect-ratio: 1.586;
  margin: 16px auto 18px;
  padding: 14px 16px;
  border-radius: 16px;
  overflow: hidden;
  text-align: start;
  color: #fff;
  background:
    radial-gradient(120px 90px at 85% 15%, rgba(255,255,255,0.35), transparent 70%),
    linear-gradient(135deg, #6d5cff 0%, #3fb6ff 58%, #7cf3d0 100%);
  box-shadow: 0 18px 40px rgba(60,110,255,0.45), inset 0 1px 0 rgba(255,255,255,0.45);
  transform: perspective(700px) rotateX(10deg) rotateY(-12deg);
  animation: passFloat 4.5s ease-in-out infinite;
}
.pass-shine {
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: rotate(20deg);
  animation: passShine 3.2s ease-in-out infinite;
}
.pass-top { display: flex; justify-content: space-between; align-items: center; }
.pass-chip {
  width: 30px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, #ffe7a3, #d8a93f);
  box-shadow: inset 0 0 0 1px rgba(120,80,0,0.35);
}
.pass-big { margin-top: 12px; font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: 0.02em; text-shadow: 0 2px 10px rgba(20,30,90,0.35); }
.pass-sub { margin-top: 2px; font-family: var(--display); font-size: 12px; letter-spacing: 0.28em; opacity: 0.92; }
.pass-foot { position: absolute; left: 16px; right: 16px; bottom: 11px; display: flex; justify-content: space-between; font-size: 9.5px; letter-spacing: 0.16em; opacity: 0.85; }
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.ring-wrap { display: flex; justify-content: center; margin: 14px 0 4px; }
.gate-card .btn { margin-top: 16px; }
.modal.sf-gate { z-index: 80; }
.pass-sf { background: radial-gradient(120px 90px at 85% 15%, rgba(255,255,255,0.4), transparent 70%), linear-gradient(135deg, #1e8bff 0%, #3fb6ff 50%, #7cf3d0 100%); }
.pass-sf .pass-big { font-size: 27px; }
.sf-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.sf-actions .btn { margin-top: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sf-actions .btn svg { flex: none; }
.sf-hint { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(63,182,255,0.1); border: 1px solid rgba(63,182,255,0.28); color: #dce9ff; font-size: 12.5px; line-height: 1.5; text-align: center; word-break: break-word; }
.sf-hint[hidden] { display: none; }
.ring-wrap[hidden] { display: none; }
.ring {
  --p: 0;
  position: relative;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#7cf3d0, #6fc2ff calc(var(--p) * 360deg), rgba(255,255,255,0.08) 0);
  box-shadow: 0 0 26px rgba(110,200,255,0.3);
  transition: --p 0.2s linear;
}
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #070a1a; }
.sheet-x { position: absolute; z-index: 2; inset-inline-end: 12px; }
.sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: min(88dvh, 760px);
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(150,180,255,0.2);
  background: linear-gradient(180deg, rgba(16,20,42,0.98), rgba(7,9,20,0.98));
  box-shadow: 0 -20px 50px rgba(0,0,0,0.35);
  animation: sheetUp 0.34s cubic-bezier(.2,.8,.2,1);
}
.sheet-grip { width: 42px; height: 4px; border-radius: 99px; margin: 8px auto 0; background: rgba(255,255,255,0.22); }
.sheet-x { top: 10px; }
.sheet-body { overflow: auto; max-height: calc(88dvh - 36px); padding: 8px 16px calc(16px + var(--safe-bot)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#gateTitle, #appTitle { font-size: clamp(24px, 6.8vw, 32px); line-height: 1.1; }
.title-pre { display: block; margin-bottom: 6px; font-size: clamp(14px, 4vw, 17px); letter-spacing: 0.04em; color: #9be7ff; }
.title-main { display: block; }
.reward {
  display: block;
  margin-top: 6px;
  font-size: clamp(19px, 5.4vw, 25px);
  background: linear-gradient(90deg, #e4ff8a, #7cf3d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.center { text-align: center; }
.count-big {
  position: relative;
  font-family: var(--display);
  font-size: 38px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #eaf4ff;
  text-shadow: 0 0 18px rgba(120,200,255,0.7);
}
.disclaimer {
  margin: 14px 0;
  padding: 12px;
  border-radius: 14px;
  text-align: start;
  color: #ffe6b8;
  background: rgba(255, 190, 80, 0.1);
  border: 1px solid rgba(255, 196, 92, 0.32);
  font-size: 13px;
}

.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span { font-size: 13px; color: #d5def0; }
.err { margin: 0; min-height: 0; color: #ff9eb2; font-size: 12px; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #ff6d8a; }
.banner {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,80,110,0.1);
  border: 1px solid rgba(255,120,150,0.3);
  color: #ffd5de;
  font-size: 13px;
}
.success { text-align: center; padding-bottom: 8px; }
.success-mark {
  width: 64px; height: 64px; margin: 6px auto 8px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #d8fff0;
  background: rgba(61,255,176,0.12);
  border: 1px solid rgba(61,255,176,0.4);
}
.summary { text-align: start; margin-top: 10px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: end; }
.lang-list { display: grid; gap: 8px; margin-top: 12px; }
.lang-item {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  text-align: start;
}
.lang-item.on { border-color: rgba(130,210,255,0.8); }
.lang-item small { color: #a9b6d4; }

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: calc(96px + var(--safe-bot));
  width: min(390px, calc(100% - 24px));
  transform: translateX(-50%) translateY(8px);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(12,16,32,0.94);
  border: 1px solid rgba(160,200,255,0.24);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.noscript {
  margin: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #24180a;
  color: #ffe6b8;
}
.sheet h3 { font-size: 20px; letter-spacing: 0; line-height: 1.3; }
.points { margin: 8px 0 0; padding-inline-start: 18px; color: #e4ecff; }
.points li { margin: 6px 0; }
.sheet-actions { display: grid; gap: 10px; margin-top: 14px; }

.social { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(150,180,255,0.12); }
.soc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: #cfe0ff;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.soc-btn svg { width: 16px; height: 16px; flex: none; }
.soc-btn b { font-variant-numeric: tabular-nums; color: #fff; }
.soc-btn.on { color: #ff8fa8; border-color: rgba(255,120,150,0.45); background: rgba(255,90,120,0.12); }
.soc-btn.on svg { animation: pop 0.3s ease; }
.soc-btn:active { transform: scale(0.96); }
.comments h3 { margin: 6px 0 4px; }
.c-list { display: grid; gap: 8px; margin: 12px 0; max-height: 40dvh; overflow: auto; overscroll-behavior: contain; }
.c-item { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); }
.c-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.c-head b { color: #e8f1ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-head time { color: var(--muted, #8fa3c8); font-size: 11px; }
.c-del { margin-inline-start: auto; min-height: 28px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: #ff9eb2; font-size: 12px; }
.c-item p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #dfe8ff; font-size: 14px; }
.comments .field { margin-top: 8px; }
.comments .btn { margin-top: 10px; }
.giscus-box { min-height: 220px; margin-top: 10px; }
.giscus-box iframe { width: 100%; border: 0; color-scheme: normal; }
@keyframes pop { 50% { transform: scale(1.3); } }

.shake { animation: shake 0.35s ease; }
html.paused .fx *, html.paused .ticker-track, html.paused .radar-sweep { animation-play-state: paused !important; }

@keyframes gridMove { to { transform: translate3d(0, 44px, 0); } }
@keyframes float { 50% { transform: translate3d(14px, -16px, 0); } }
@keyframes drift {
  0% { transform: translate3d(0, 8px, 0); opacity: 0.2; }
  50% { opacity: 0.8; }
  100% { transform: translate3d(10px, -36px, 0); opacity: 0.15; }
}
@keyframes dash { to { stroke-dashoffset: -180; } }
@keyframes ken { to { transform: scale(1.06) translateY(-1.5%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes passFloat {
  0%, 100% { transform: perspective(700px) rotateX(10deg) rotateY(-12deg) translateY(0); }
  50% { transform: perspective(700px) rotateX(6deg) rotateY(10deg) translateY(-6px); }
}
@keyframes passShine { 0%, 35% { left: -60%; } 75%, 100% { left: 130%; } }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes ping { 100% { box-shadow: 0 0 0 12px rgba(61,255,176,0); } }
@keyframes grad { 50% { background-position: 100% 50%; } }
@keyframes glow { 50% { box-shadow: 0 0 0 1px rgba(190,230,255,0.45), 0 0 28px rgba(90,140,255,0.72); } }
@keyframes shimmer { to { transform: translateX(120%); } }
@keyframes floaty { 50% { transform: translateY(-4px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes sheetUp { from { transform: translateY(16px); opacity: 0.6; } }
@keyframes bump { 50% { transform: translateY(-2px); } }
@keyframes shake {
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 32px; }
  .topic-card { flex-basis: 86%; }
  .radar-stage { height: 330px; }
  .radar-label { width: 66px; font-size: 9px; }
  .pass { width: 204px; }
  .pass-big { font-size: 26px; }
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { filter: brightness(1.05); }
  .btn-ghost:hover, .opt:hover, .chip:hover, .lang-item:hover { border-color: rgba(170,210,255,0.5); }
}
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ko"] h1, html[lang="ko"] h2,
html[lang^="zh"] .kicker, html[lang="ja"] .kicker, html[lang="ko"] .kicker { letter-spacing: 0; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ko"] h1, html[lang="ko"] h2 { line-height: 1.2; }
html[dir="rtl"] body { line-height: 1.65; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .particle, .orb, .scanlines, .net { display: none !important; }
  .ticker-track { width: auto; flex-wrap: wrap; justify-content: center; padding-inline: 16px; }
  .ticker span { white-space: normal; }
  .overlay-dim { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(2,3,10,0.84); }
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
html.save-data .particle, html.save-data .orb, html.save-data .scanlines { display: none; }
html.save-data .overlay-dim { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(2,3,10,0.88); }
html.save-data .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(180deg, rgba(18,24,48,0.86), rgba(8,12,24,0.8)); }

html.m-full #watch .sec-tools { display: none; }
html.m-full .hscroll { flex-direction: column; overflow: visible; scroll-snap-type: none; }
html.m-full .topic-card { flex: none; max-width: none; min-height: 0; }
html.m-full .topic-card .summary { flex: none; }
html.m-full .topic-card .points { font-size: 13px; }
html.m-full .topic-card .sheet-actions { margin-top: 6px; }
