/* sidecoo 首頁（/、/atlas-ii/）。和 Lucky Charm Atlas 的 site.css 分開：那邊的頁面不受這裡影響。
   主角只有一個：首屏那雙 sidecoo 大眼睛和它舉著的三張護符。其餘版面保持安靜。
   預設深色（和全站一致）；html[data-theme="light"] 換淺色，主題記在 localStorage 'theme'。 */
@font-face{font-family:"Sidecoo Heading";src:local("Taipei Sans TC Beta Bold"),local("TaipeiSansTCBeta-Bold"),url("/fonts/heading-1d713019c4.woff2") format("woff2");font-weight:700;font-display:swap;}

:root {
  --ink: #15171B;
  --paper: #F4F4F1;
  --orange: #FF5A1F;
  --orange-deep: #C43F14;
  --gold: #F2B33D;
  --eye: #FFFFFF;

  --tier-common: #A3A5A0;
  --tier-rare: #6B8BFF;
  --tier-epic: #D45FC8;
  --tier-legendary: #F2B33D;

  --bg: var(--ink);
  --bg-2: #1C1E23;
  --surface: #22252B;
  --fg: #F4F4F1;
  --fg-2: #C4C5C0;
  --muted: #9EA09B;
  --line: #34373D;
  --accent: #FF7A47;
  --on-accent: #15171B;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);

  --font-head: 'Sidecoo Heading', 'Taipei Sans TC Beta', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 20px;
  --max: 1160px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: var(--paper);
  --bg-2: #EAEAE5;
  --surface: #FFFFFF;
  --fg: var(--ink);
  --fg-2: #3A3D44;
  --muted: #5C6068;
  --line: #D5D6D2;
  --accent: var(--orange-deep);
  --on-accent: #FFFFFF;
  --shadow: 0 18px 40px rgba(21, 23, 27, 0.18);
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.65 var(--font-body);
  overflow-wrap: break-word;
}
@media (min-width: 720px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: 0.86em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--orange); color: var(--ink); padding: 8px 14px; z-index: 30; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- eyes (logo, coin, hero) */
.logo-eyes { display: inline-flex; gap: 0.12em; padding: 0.22em 0.28em; background: var(--ink); border-radius: 0.42em; line-height: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.logo-eyes i { width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--eye); position: relative; }
.logo-eyes i::after { content: ""; position: absolute; width: 42%; height: 42%; border-radius: 50%; background: var(--ink); left: 16%; top: 30%; }
.logo-eyes.small { font-size: 22px; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-bar { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-size: 22px; letter-spacing: -0.02em; }
.logo .logo-eyes { font-size: 20px; }
.menu-btn { margin-left: auto; display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 10px; width: 42px; height: 40px; align-items: center; justify-content: center; cursor: pointer; }
.top-menu { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.top-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top-nav a { text-decoration: none; color: var(--fg-2); font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.top-nav a:hover { color: var(--fg); background: var(--bg-2); }
.top-tools { display: flex; align-items: center; gap: 10px; }
.theme-btn { background: none; border: 1px solid var(--line); color: var(--fg-2); width: 36px; height: 34px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.theme-btn:hover { color: var(--fg); }
/* Language menu (12 languages, like CharMasks): a <details> dropdown; zh-TW / zh-CN / en first, a rule, then the rest. */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--fg-2); font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; display: inline-block; flex: none; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 2px; transition: transform 150ms; }
.lang[open] summary, .lang summary:hover { color: var(--fg); }
.lang[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; list-style: none; margin: 0; padding: 6px; min-width: 220px; max-height: min(70vh, 540px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.lang-menu li:nth-child(3) { border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 4px; }
.lang-menu a { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 6px 12px; border-radius: 9px; text-decoration: none; color: var(--fg-2); font-size: 15px; }
.lang-menu a span { font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.lang-menu a:hover { background: var(--bg-2); color: var(--fg); }
.lang-menu a[aria-current] { color: var(--fg); font-weight: 600; }
.lang-menu a[aria-current]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: -6px; order: -1; }
@media (max-width: 1000px) {
  .js .top-tools { flex-wrap: wrap; align-items: flex-start; }
  .js .top-tools .theme-btn { order: -1; }
  .js .top-tools .lang { flex: 1 1 100%; }
  .js .top-menu .lang-menu { position: static; box-shadow: none; margin-top: 8px; max-height: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .js .top-menu .lang-menu li:nth-child(3) { grid-column: auto; }
  .js .top-menu .lang-menu li:nth-child(-n+3) { border-bottom: 0; margin: 0; padding: 0; }
}
/* Scripts the heading font does not cover fall back to the platform's own fonts. */
:lang(ja) { --font-head: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', sans-serif; --font-body: -apple-system, 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', 'Noto Sans JP', sans-serif; }
:lang(ko) { --font-head: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; --font-body: -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
:lang(th) { --font-head: 'Thonburi', 'Leelawadee UI', 'Noto Sans Thai', sans-serif; --font-body: -apple-system, 'Thonburi', 'Leelawadee UI', 'Noto Sans Thai', sans-serif; }
:lang(ja) .hero-title, :lang(ko) .hero-title { font-size: clamp(42px, 10vw, 80px); max-width: 8em; letter-spacing: 0; line-height: 1.15; }
:lang(th) .hero-title { line-height: 1.3; }
:lang(ru) .hero-title, :lang(vi) .hero-title, :lang(id) .hero-title, :lang(tr) .hero-title, :lang(es) .hero-title, :lang(pt) .hero-title { font-size: clamp(40px, 8.4vw, 76px); max-width: 13ch; }
h1, h2, h3, h4 { overflow-wrap: anywhere; hyphens: auto; }
.js .menu-btn { display: none; }
@media (max-width: 1000px) {
  .js .menu-btn { display: inline-flex; }
  .js .top-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 18px; flex-direction: column; align-items: stretch; gap: 14px; box-shadow: var(--shadow); }
  .js .top-menu[data-open] { display: flex; }
  .js .top-nav { flex-direction: column; }
  .js .top-nav a { font-size: 17px; padding: 10px 8px; }
  .top-bar { flex-wrap: wrap; }
  html:not(.js) .top-menu { width: 100%; margin: 0 0 10px; flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; border: 2px solid transparent; text-align: center; }
.btn-main { background: var(--orange); color: var(--ink); }
.btn-main:hover { background: #FF7A47; }
.btn-quiet { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-quiet:hover { border-color: var(--fg-2); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; justify-self: start; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 96px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; } }
.hero-kicker { color: var(--accent); font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.hero-title { font-size: clamp(46px, 11vw, 92px); line-height: 1.02; letter-spacing: -0.03em; max-width: 10ch; }
:lang(zh) .hero-title { font-size: clamp(48px, 12vw, 88px); max-width: 5.6em; letter-spacing: 0; line-height: 1.12; }
.hero-sub { margin-top: 22px; max-width: 34em; color: var(--fg-2); font-size: 18px; }
@media (min-width: 720px) { .hero-sub { font-size: 20px; } }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* The stage: the sidecoo face peeks over the three charms it is holding up. */
.hero-stage { position: relative; display: grid; justify-items: center; padding-top: 6px; order: -1; }
@media (min-width: 900px) { .hero-stage { order: 0; } }
.eyes { position: relative; z-index: 1; display: flex; gap: clamp(8px, 2vw, 16px); padding: clamp(14px, 3vw, 24px) clamp(18px, 4vw, 30px) clamp(40px, 9vw, 70px); background: var(--ink); border-radius: clamp(28px, 6vw, 46px) clamp(28px, 6vw, 46px) 18px 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10), 0 0 80px rgba(255, 90, 31, 0.22); }
.eye { width: clamp(64px, 16vw, 112px); aspect-ratio: 1; border-radius: 50%; background: var(--eye); position: relative; overflow: hidden; }
.eye i { position: absolute; width: 44%; height: 44%; border-radius: 50%; background: var(--ink); left: 28%; top: 30%; transform: translate(var(--px, -18%), var(--py, 8%)); transition: transform 120ms ease-out; }
.eye i::after { content: ""; position: absolute; width: 28%; height: 28%; border-radius: 50%; background: var(--eye); left: 20%; top: 18%; }
.eye::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(-101%); }
.blink .eye::after { animation: blink 260ms ease-in-out 1; }
@keyframes blink { 0%, 100% { transform: translateY(-101%); } 50% { transform: translateY(0); } }
.fan { position: relative; z-index: 2; margin-top: clamp(-52px, -7vw, -30px); width: min(100%, 470px); height: clamp(200px, 52vw, 300px); }
.fan .card { position: absolute; top: 0; left: 50%; width: clamp(140px, 36vw, 210px); border-radius: 16px; box-shadow: var(--shadow); transform-origin: 50% 100%; transition: transform 700ms cubic-bezier(.2, .8, .2, 1); }
.fan .left { transform: translateX(-50%) translateX(-56%) translateY(8%) rotate(-11deg); }
.fan .right { transform: translateX(-50%) translateX(56%) translateY(8%) rotate(11deg); }
.fan .mid { transform: translateX(-50%) translateY(-6%); z-index: 1; }
.js .fan:not(.open) .card { transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) {
  .fan .card, .eye i { transition: none; }
  .js .fan:not(.open) .left { transform: translateX(-50%) translateX(-56%) translateY(8%) rotate(-11deg); }
  .js .fan:not(.open) .right { transform: translateX(-50%) translateX(56%) translateY(8%) rotate(11deg); }
  .js .fan:not(.open) .mid { transform: translateX(-50%) translateY(-6%); }
}

/* ---------------------------------------------------------------- section scaffolding */
.sec { padding: 64px 0; }
@media (min-width: 900px) { .sec { padding: 96px 0; } }
.kicker { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.sec-title { font-size: clamp(30px, 5.4vw, 48px); max-width: 22ch; }
.sec-title.big { font-size: clamp(38px, 8vw, 72px); }
.sec-lead { margin-top: 14px; max-width: 38em; color: var(--fg-2); }
.sub-title { font-size: clamp(22px, 3.4vw, 28px); margin: 56px 0 10px; }
.muted { color: var(--muted); }
.fine { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 52em; }
.fine.wide { max-width: none; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
caption { text-align: left; font-family: var(--font-head); font-size: 20px; padding-bottom: 10px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
tbody th { font-weight: 600; }
tbody th a { text-decoration-color: var(--line); }

/* ---------------------------------------------------------------- journey: a real sequence, so it is a road */
.journey { padding: 56px 0 24px; border-top: 1px solid var(--line); }
.road { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.road li a { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; text-decoration: none; padding-bottom: 28px; position: relative; }
.road li a::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.road li:last-child a::before { display: none; }
.road .stop { grid-row: 1 / span 3; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--fg-2); background: var(--bg); position: relative; z-index: 1; }
.road .when { font-size: 14px; color: var(--muted); }
.road b { font-family: var(--font-head); font-size: 22px; line-height: 1.25; margin: 2px 0 6px; }
.road .what { color: var(--fg-2); font-size: 16px; }
.road li a:hover b { text-decoration: underline; text-decoration-thickness: 2px; }
.road .star .stop { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px color-mix(in srgb, var(--orange) 22%, transparent); }
.road .star b { color: var(--accent); }
@media (min-width: 900px) {
  .road { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .road li a { grid-template-columns: 1fr; padding-bottom: 0; }
  .road li a::before { left: 28px; right: -24px; top: 13px; bottom: auto; width: auto; height: 2px; }
  .road .stop { grid-row: auto; margin-bottom: 18px; }
}

/* ---------------------------------------------------------------- tickets: the checker is a ticket stub */
.tickets-grid { display: grid; gap: 40px; margin-top: 36px; align-items: start; }
@media (min-width: 900px) { .tickets-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.ticket { position: relative; display: grid; gap: 10px; padding: 28px 24px 26px; background: var(--surface); border-radius: 20px; border: 1px solid var(--line); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 92px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.ticket::before { left: -14px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -14px; clip-path: inset(0 50% 0 0); }
.ticket label { font-weight: 600; font-size: 15px; }
.ticket label + .field-row { margin-bottom: 18px; padding-bottom: 22px; border-bottom: 2px dashed var(--line); }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ticket input { flex: 1 1 220px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: 15px var(--font-mono); }
.ticket input::placeholder { color: var(--muted); }
.ticket .fine { margin-top: 4px; }
.result:empty { display: none; }
.result { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; }
.result .big { font-family: var(--font-head); font-size: 22px; color: var(--accent); }
.result .warn { color: var(--accent); }
.result pre { margin: 0; white-space: pre-wrap; word-break: break-all; font: 13px var(--font-mono); background: var(--bg); padding: 10px 12px; border-radius: 10px; }
.result table { font-size: 14px; }
.points td { color: var(--fg-2); }

/* ---------------------------------------------------------------- daily */
.daily { background: var(--bg-2); }
.week-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-top: 48px; }
.week-head h3 { font-size: clamp(22px, 3.4vw, 28px); }
.week-head p { margin-top: 4px; }
.countdown:empty { display: none; }
.countdown { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; }
.countdown.big { margin-top: 18px; font-family: var(--font-head); font-size: 24px; }
.tier-switch { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; background: var(--bg); }
.tier-switch button { border: 0; background: none; color: var(--fg-2); font: 600 14px var(--font-body); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.tier-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.tier-switch button[data-tier="rare"][aria-pressed="true"] { background: var(--tier-rare); color: var(--ink); }
.tier-switch button[data-tier="epic"][aria-pressed="true"] { background: var(--tier-epic); color: var(--ink); }
.tier-switch button[data-tier="legendary"][aria-pressed="true"] { background: var(--tier-legendary); color: var(--ink); }
.gallery { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 22px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.charm img { border-radius: 14px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.charm h4 { font-size: 17px; margin-top: 10px; }
.charm .origin { font-size: 13px; color: var(--accent); font-weight: 600; }
.charm p:last-child { font-size: 14px; color: var(--fg-2); margin-top: 4px; line-height: 1.5; }

.facts { display: grid; gap: 0 40px; margin: 56px 0 0; }
@media (min-width: 800px) { .facts { grid-template-columns: 1fr 1fr; } .facts.three { grid-template-columns: repeat(3, 1fr); } }
.facts > div { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--font-head); font-size: 20px; margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--fg-2); font-size: 16px; }
.odds { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin-top: 12px; gap: 2px; }
.odd { min-width: 6px; }
.odd.tier-common { background: var(--tier-common); }
.odd.tier-rare { background: var(--tier-rare); }
.odd.tier-epic { background: var(--tier-epic); }
.odd.tier-legendary { background: var(--tier-legendary); }

.seal-row { display: grid; gap: 22px; align-items: center; margin-top: 48px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.seal-row img { width: 160px; border-radius: 16px; }
.seal-row h3 { font-size: 24px; margin-bottom: 8px; }
.seal-row p { color: var(--fg-2); }
@media (min-width: 640px) { .seal-row { grid-template-columns: 200px 1fr; padding: 28px; } .seal-row img { width: 200px; } }
.lvl { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 14px; color: var(--ink); }
.lvl-bronze { background: #D9925B; }
.lvl-silver { background: #C9CCD1; }
.lvl-gold { background: var(--gold); }

/* ---------------------------------------------------------------- season */
.season-head { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .season-head { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.season-art { width: min(100%, 380px); border-radius: 22px; box-shadow: var(--shadow); justify-self: center; transform: rotate(2.5deg); }
.season-when { margin-top: 18px; color: var(--fg-2); max-width: 38em; }
.season-when b { color: var(--fg); }
.flow { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; counter-reset: flow; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.flow li { counter-increment: flow; padding: 22px 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.flow li:last-child { border-color: var(--orange); }
.flow-name { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.flow-name::before { content: counter(flow); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 13px; }
.flow li:last-child .flow-name::before { background: var(--orange); color: var(--ink); }
.flow b { display: block; font-family: var(--font-head); font-size: 20px; margin: 10px 0 6px; }
.flow p { color: var(--fg-2); font-size: 15px; }
.safe { margin-top: 48px; }
.safe h3 { font-size: 22px; margin-bottom: 10px; }
.safe ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 40px; }
@media (min-width: 800px) { .safe ul { grid-template-columns: 1fr 1fr; } }
.safe li { padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); position: relative; color: var(--fg-2); font-size: 16px; }
.safe li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* ---------------------------------------------------------------- after: the promise of the whole journey */
.after { background: var(--ink); color: #F4F4F1; --fg: #F4F4F1; --fg-2: #C4C5C0; --muted: #9EA09B; --line: #34373D; --accent: #FF7A47; --surface: #22252B; }
:root[data-theme="light"] .after { box-shadow: inset 0 1px 0 var(--line); }
.after-title { font-size: clamp(32px, 6.4vw, 64px); line-height: 1.12; max-width: 18ch; }
:lang(zh) .after-title { max-width: 10.5em; }
.after-pair { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); margin-top: 40px; }
.after-pair .card { width: clamp(120px, 30vw, 200px); border-radius: 16px; transform: rotate(-4deg); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.after-pair .plus { font-family: var(--font-head); font-size: clamp(32px, 6vw, 56px); color: #9EA09B; }
.coin { width: clamp(120px, 30vw, 200px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 8px; background: radial-gradient(circle at 34% 30%, #FFE29A, var(--gold) 46%, #B97A12 100%); box-shadow: inset 0 0 0 clamp(6px, 1.4vw, 10px) rgba(255, 255, 255, 0.28), 0 18px 40px rgba(0, 0, 0, .5); color: var(--ink); }
.coin .logo-eyes { font-size: clamp(26px, 6vw, 42px); }
.coin b { font-family: var(--font-head); font-size: clamp(14px, 2.6vw, 18px); letter-spacing: 0.02em; }
.after-star { margin-top: 22px; font-family: var(--font-head); font-size: clamp(20px, 3vw, 26px); color: var(--accent); }

/* ---------------------------------------------------------------- agents */
.files { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.files a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); font: 15px var(--font-mono); text-decoration: none; background: var(--surface); }
.files a:hover { border-color: var(--accent); }
.contracts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; font-size: 15px; }
.contracts dt { font-weight: 600; }
.contracts dd { margin: 0; min-width: 0; }
.contracts code, .contracts a { word-break: break-all; }
@media (max-width: 560px) { .contracts { grid-template-columns: 1fr; gap: 2px; } .contracts dd { margin-bottom: 10px; } }

/* ---------------------------------------------------------------- other collections */
.more { border-top: 1px solid var(--line); }
.shelf { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
@media (min-width: 900px) { .shelf { grid-template-columns: repeat(3, 1fr); } }
.shelf li { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.shelf img, .shelf-mark { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; }
.shelf-mark { display: grid; place-items: center; background: var(--ink); color: var(--gold); font: 700 40px/1 Georgia, 'Times New Roman', serif; box-shadow: inset 0 0 0 3px var(--gold); }
.shelf h3 { font-size: 20px; }
.shelf p { color: var(--fg-2); font-size: 15px; margin: 6px 0 14px; }
.shelf .btn { min-height: 40px; font-size: 14px; padding: 0 16px; }

/* ---------------------------------------------------------------- atlas-ii page */
.page-head { padding-bottom: 16px; }
.rounds { margin: 0; padding-left: 1.4em; color: var(--fg-2); display: grid; gap: 6px; }
.ticket-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.ticket-callout > div { max-width: 40em; }
.ticket-callout .sub-title { margin-top: 0; }
.ticket-callout p { color: var(--fg-2); }
.page-atlas-ii .sec { padding: 40px 0; }
.page-atlas-ii .page-head { padding-top: 64px; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 64px; font-size: 15px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-luck { display: flex; gap: 14px; align-items: flex-start; color: var(--fg-2); max-width: 28em; }
.foot nav { display: grid; gap: 6px; align-content: start; }
.foot h2 { font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.foot nav a { color: var(--fg-2); text-decoration: none; }
.foot nav a:hover { color: var(--fg); text-decoration: underline; }
.foot-id { margin-top: 10px; font-size: 13px; color: var(--muted); }
.foot-id a { color: inherit; }
