:root {
  --bg: #000;
  --card: #0b0f15;
  --card-2: #111823;
  --pill: #161d27;
  --text: #fff;
  --muted: #9aa3af;
  --green: #4ade80;
  --blue: #4a9eff;
  --r-card: 22px;
  --r-pill: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.g { color: var(--green); }

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 96px; padding: 0 36px;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(8px);
}
.logo { display: flex; align-items: center; gap: 16px; }
.logo__tile { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: none; }
.logo__name { font-size: 34px; font-weight: 700; letter-spacing: -.01em; }
.nav { display: flex; gap: 44px; }
.nav a {
  font-size: 22px; font-weight: 500; padding: 10px 2px;
  border-bottom: 3px solid transparent;
  transition: color .15s;
}
.nav a:hover { color: var(--blue); }
.nav a.is-on { color: var(--blue); border-color: var(--blue); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 560px; height: 70vh; max-height: 760px;
  display: grid; place-items: center;
  background: #070a26;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 70% at 50% 50%, rgba(7, 10, 38, .25), rgba(7, 10, 38, .85)),
    linear-gradient(rgba(7, 10, 38, .35), rgba(0, 0, 0, .9));
}
.hero__bg {
  position: absolute; z-index: -2;
  width: 1100px; height: 1100px; left: 50%; top: 50%;
  transform: translate(-38%, -52%) rotate(-12deg);
  filter: blur(14px) saturate(.8);
  opacity: .55;
  border-radius: 120px;
}
.hero__panel {
  display: flex; align-items: center; gap: 36px;
  padding: 36px 52px;
  background: rgba(10, 10, 14, .55);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__logo { width: 124px; height: 124px; border-radius: 20px; flex: none; }
.hero__name { margin: 0; font-size: 104px; font-weight: 700; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }

/* ---------- page ---------- */
.page { max-width: 1760px; margin: 0 auto; padding: 0 110px 40px; }
.sec { padding-top: 64px; }
.sec__h { margin: 0 0 40px; font-size: 56px; font-weight: 700; letter-spacing: -.01em; }

/* ---------- game cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 300px));
  gap: 36px;
  margin-left: -22px;
}
.card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 22px;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .18s ease, background .18s;
}
a.card:hover { transform: translateY(-4px); background: var(--card-2); }
.card__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.card__name {
  margin: 26px 0 0; min-height: 2.5em;
  font-size: 24px; font-weight: 700; line-height: 1.25; text-align: center;
}
.pills { width: 100%; display: grid; gap: 10px; margin-top: 14px; padding: 0 10px; }
.pill {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--pill); border-radius: var(--r-pill);
  padding: 12px 22px; font-size: 22px;
}
.pill span { color: var(--muted); }
.pill b { font-weight: 700; }

/* 隱藏遊戲卡 */
.card--hidden {
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, .14);
  background: radial-gradient(120% 80% at 50% 30%, #1a2535 0%, #0e141d 60%, #0a0e14 100%);
}
.hid__icon {
  width: 110px; height: 110px; border-radius: 20px;
  background: #1c2533; border: 1px solid rgba(255, 255, 255, .06);
  display: grid; place-items: center; color: #8b95a3;
}
.hid__icon svg { width: 42px; height: 42px; }
.hid__n { margin: 34px 0 0; font-size: 44px; font-weight: 700; line-height: 1; color: #e6e9ee; }
.hid__t { margin: 12px 0 0; font-size: 22px; color: var(--muted); }

/* ---------- results ---------- */
.panel {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 28px;
  max-width: 1100px;
}
.res__head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.res__icon { width: 84px; height: 84px; border-radius: 14px; }
.res__title { flex: 1; min-width: 220px; }
.res__title h3 { margin: 0; font-size: 22px; font-weight: 700; }
.res__big { margin: 6px 0 0; font-size: 44px; font-weight: 900; line-height: 1.1; }
.res__big .arr { color: var(--muted); font-weight: 400; }
.res__unit { font-size: 18px; font-weight: 500; color: var(--muted); }
.pill--lg { font-size: 24px; padding: 14px 24px; }

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.step {
  display: grid; grid-template-columns: 120px 1fr 80px; align-items: center; gap: 20px;
  background: var(--pill); border-radius: var(--r-pill);
  padding: 14px 22px; font-size: 20px;
}
.step__k { color: var(--muted); }
.step__v { text-align: right; font-weight: 700; }
.step__bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.step__bar i {
  display: block; height: 100%; border-radius: 99px;
  width: calc(var(--v) / 2100 * 100%); min-width: 6px;
  background: #cfd6df;
  transform-origin: left; transform: scaleX(var(--s, 1));
  transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}
.step--peak .step__bar i { background: var(--green); }
.steps.pre .step__bar i { --s: 0; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 420px)); gap: 14px; }
.pill--link { padding: 18px 24px; transition: background .15s; }
.pill--link:hover { background: #1e2733; }
.pill--link b { font-size: 20px; overflow-wrap: anywhere; text-align: right; }

.foot { padding: 64px 110px 40px; color: #5c6570; font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero__name { font-size: 72px; }
  .hero__logo { width: 92px; height: 92px; border-radius: 16px; }
  .hero__panel { gap: 24px; padding: 28px 36px; }
  .page { padding: 0 40px 40px; }
  .foot { padding: 56px 40px 32px; }
  .grid { margin-left: 0; }
  .nav { gap: 28px; }
  .nav a { font-size: 18px; }
}
@media (max-width: 640px) {
  .hero { min-height: 340px; height: 52vh; }
  .hero__bg { width: 620px; height: 620px; border-radius: 70px; }
  .hero__panel { gap: 14px; padding: 18px 20px; border-radius: 14px; }
  .hero__logo { width: 56px; height: 56px; border-radius: 11px; }
  .hero__name { font-size: 34px; }
  .logo__tile { width: 42px; height: 42px; border-radius: 10px; }
  .bar { height: 72px; padding: 0 16px; }
  .logo__name { font-size: 20px; }
  .logo { gap: 10px; }
  .nav { gap: 12px; }
  .nav a { font-size: 13.5px; white-space: nowrap; }
  .page { padding: 0 16px 24px; }
  .foot { padding: 48px 16px 28px; }
  .sec { padding-top: 40px; }
  .sec__h { font-size: 38px; margin-bottom: 24px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 12px; border-radius: 16px; }
  .card__name { font-size: 16px; margin-top: 14px; }
  .pills { padding: 0; }
  .pill { font-size: 15px; padding: 10px 12px; }
  .hid__icon { width: 64px; height: 64px; border-radius: 14px; }
  .hid__icon svg { width: 28px; height: 28px; }
  .hid__n { font-size: 32px; margin-top: 18px; }
  .hid__t { font-size: 16px; }
  .panel { padding: 16px; }
  .res__icon { width: 60px; height: 60px; }
  .res__big { font-size: 34px; }
  .pill--lg { font-size: 18px; padding: 10px 16px; }
  .step { grid-template-columns: 74px 1fr 52px; gap: 12px; font-size: 15px; padding: 12px 14px; }
  .contact { grid-template-columns: 1fr; }
  .pill--link b { font-size: 16px; }
}
@media (max-width: 380px) {
  .nav a:not(.is-on) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
