/* Saint Data — layout de terminal de dados: barra lateral fixa, coluna principal + trilho à direita, cartões cinza claros. */
:root {
  --bg: #ffffff;
  --side: #ffffff;
  --card: #f2f2f5;
  --card-2: #e9e9ee;
  --line: rgba(10, 10, 11, 0.08);
  --fg: #0a0a0b;
  --muted: rgba(10, 10, 11, 0.5);
  --faint: rgba(10, 10, 11, 0.06);
  --pill: rgba(10, 10, 11, 0.055);
  --pill-on: #ffffff;
  --accent: #007aff;
  --accent-soft: rgba(0, 122, 255, 0.12);
  --up: #1f8f45;
  --down: #d92d20;
  --star: #f2b100;
  --promo-1: #ffe4d6;
  --promo-2: #ffd1c0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0b; --side: #0a0a0b; --card: #17171a; --card-2: #212125; --line: rgba(255, 255, 255, 0.08);
    --fg: #f4f4f6; --muted: rgba(244, 244, 246, 0.52); --faint: rgba(255, 255, 255, 0.06); --pill: rgba(255, 255, 255, 0.07); --pill-on: #2a2a2f;
    --accent: #2f8fff; --accent-soft: rgba(47, 143, 255, 0.16); --up: #32c46c; --down: #ff5a4e; --promo-1: #3a2218; --promo-2: #2c1a12;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0b; --side: #0a0a0b; --card: #17171a; --card-2: #212125; --line: rgba(255, 255, 255, 0.08);
  --fg: #f4f4f6; --muted: rgba(244, 244, 246, 0.52); --faint: rgba(255, 255, 255, 0.06); --pill: rgba(255, 255, 255, 0.07); --pill-on: #2a2a2f;
  --accent: #2f8fff; --accent-soft: rgba(47, 143, 255, 0.16); --up: #32c46c; --down: #ff5a4e; --promo-1: #3a2218; --promo-2: #2c1a12;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 14px/1.4 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.tnum, .num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--muted); }
.chg { font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chg .tri { font-size: 8px; margin-right: 2px; vertical-align: 1px; }

/* ---------- barra lateral ---------- */
.app { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 100vh; }
.app.collapsed { grid-template-columns: 68px minmax(0, 1fr); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 14px 12px 14px; background: var(--side); border-right: 1px solid var(--line); overflow-y: auto; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 12px; }
.brand { display: flex; align-items: center; gap: 7px; font: 700 17px/1 var(--display); letter-spacing: -0.03em; }
.brand img { border-radius: 7px; }
.icon-btn { color: var(--muted); padding: 4px; border-radius: 7px; }
.icon-btn:hover { color: var(--fg); background: var(--pill); }
.search-btn { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--fg); font-size: 14px; width: 100%; text-align: left; }
.search-btn:hover { background: var(--pill); }
.nav { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.nav-group { display: flex; flex-direction: column; gap: 1px; }
.nav a, .foot-link { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.nav a:hover, .foot-link:hover { background: var(--pill); }
.nav a.on { background: var(--pill); }
.app-ic { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(160deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); display: grid; place-items: center; flex: none; }
.app-ic svg { width: 16px; height: 16px; }
.glyph { width: 20px; height: 20px; display: grid; place-items: center; flex: none; }
.glyph svg { width: 17px; height: 17px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.foot-row { display: flex; align-items: center; gap: 8px; }
.signin { background: var(--fg); color: var(--bg); font-weight: 600; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; }
.round-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--pill); color: var(--fg); }
.theme-wrap { position: relative; }
.theme-pop { position: absolute; bottom: 44px; left: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 2px; width: 150px; z-index: 30; }
.theme-pop[hidden] { display: none; }
.theme-pop button { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; font-size: 13.5px; }
.theme-pop button:hover, .theme-pop button.on { background: var(--pill); }
.sw { width: 26px; height: 18px; border-radius: 5px; border: 1px solid var(--line); }
.sw-light { background: #fff; }
.sw-dark { background: #111; }
.sw-sys { background: linear-gradient(135deg, #fff 50%, #111 50%); }
.app.collapsed .brand span, .app.collapsed .nav a span, .app.collapsed .search-btn span, .app.collapsed .foot-link span, .app.collapsed .signin { display: none; }
.app.collapsed .side-top { flex-direction: column; gap: 10px; }

/* ---------- área principal ---------- */
.main { padding-block: 22px 60px; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); outline: none; min-width: 0; }
.wrap { max-width: 960px; margin: 0 auto; }
.home { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px 32px; }
.home > .col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.loading { color: var(--muted); }

.hero-lbl { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.hero-num { font: 700 40px/1.05 var(--display); letter-spacing: -0.035em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.hero-delta { font-size: 13px; font-weight: 500; display: flex; gap: 6px; align-items: baseline; }
.hero-delta .chg { font-size: 13px; font-weight: 500; }
.hero-tools { position: absolute; right: 0; top: 0; display: flex; gap: 8px; }
.hero { position: relative; }
.chart { position: relative; margin-top: 10px; overflow: hidden; padding-top: 2px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-empty { height: 240px; border-radius: 16px; background: repeating-radial-gradient(circle at 1px 1px, var(--faint) 0 1px, transparent 1.5px 14px); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px; }
.tip { position: absolute; top: 0; font-size: 11.5px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.tip span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.seg-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--pill); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { white-space: nowrap; flex: none; padding: 5px 10px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg button.on { background: var(--pill-on); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.seg button:disabled { opacity: 0.45; cursor: default; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--down); margin-right: 5px; vertical-align: 1px; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sec-title { font: 700 24px/1.2 var(--display); letter-spacing: -0.025em; margin: 26px 0 0; }
.card { background: var(--card); border-radius: 18px; padding: 12px 14px 14px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; min-height: 22px; }
.card-h h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-h h3 small { font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.card-h .go { color: var(--muted); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; flex: none; }
.card-h .go:hover { color: var(--fg); background: var(--pill); }
.card-foot { font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* linhas de jogo */
.rows { display: flex; flex-direction: column; }
.r { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 6px 0; border-radius: 10px; }
.r.spark { grid-template-columns: 30px minmax(0, 1fr) 48px 50px; }
.r.star { grid-template-columns: 34px minmax(0, 1fr) auto 18px; padding: 6px 0; }
.r:hover .nm { color: var(--accent); }
.r .t { min-width: 0; }
.r .nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.r .sb { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.r .v { text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r .v .chg { display: block; font-size: 11.5px; }
.r .v .sbv { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.ic { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: var(--card-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--muted); overflow: hidden; flex: none; }
.r.star .ic { width: 34px; height: 34px; border-radius: 9px; }
.ic.xl { width: 80px; height: 80px; border-radius: 18px; font-size: 28px; }
.star-btn { color: var(--muted); opacity: 0.5; display: grid; place-items: center; }
.star-btn:hover { opacity: 1; }
.star-btn.on { color: var(--star); opacity: 1; }
.chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--pill); color: var(--muted); white-space: nowrap; }
.chip.green { background: rgba(31, 143, 69, 0.14); color: var(--up); }
.empty { color: var(--muted); font-size: 13px; padding: 10px 0; }

/* barras */
.hbar { display: grid; grid-template-columns: minmax(0, 88px) minmax(0, 1fr) 34px 52px; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; }
.hbar .l { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk { height: 5px; border-radius: 9px; background: var(--card-2); overflow: hidden; display: block; }
.trk i { display: block; height: 100%; border-radius: 9px; background: var(--accent); }
.hbar .p { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.hbar .chg { text-align: right; }
.ms { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 6px 0; }
.ms .trk { margin-top: 5px; height: 4px; max-width: 150px; }
.ms .v { text-align: right; font-size: 13px; font-weight: 600; }
.ms .v small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }

/* trilho direito */
.rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rail-h { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; height: 36px; }
.promo { border-radius: 18px; padding: 16px; background: linear-gradient(135deg, var(--promo-1), var(--promo-2)); display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; align-items: center; min-height: 130px; }
.promo b { font-size: 15px; display: block; margin-bottom: 6px; letter-spacing: -0.01em; }
.promo p { margin: 0; font-size: 12.5px; color: var(--muted); }
.promo .stack { position: relative; height: 90px; }
.promo .stack img, .promo .stack .ic { position: absolute; width: 52px; height: 70px; border-radius: 10px; object-fit: cover; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18); border: 2px solid #fff; }
.tabs-text { display: flex; gap: 14px; }
.tabs-text button { white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--muted); }
.tabs-text button.on { color: var(--fg); }
.qbars { display: flex; justify-content: center; align-items: end; gap: 6px; height: 64px; margin-top: 12px; }
.qbars div { flex: 1; max-width: 36px; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: end; }
.qbars i { display: block; width: 100%; background: var(--card-2); border-radius: 4px; min-height: 4px; }
.qbars i.now { background: var(--accent); }
.qbars span { font-size: 10px; color: var(--muted); }
.big-stat { font: 700 28px/1.1 var(--display); letter-spacing: -0.03em; margin-top: 2px; display: flex; gap: 8px; align-items: baseline; }
.big-stat .chg { font-size: 12px; }
.ud-bar { display: flex; height: 7px; border-radius: 9px; overflow: hidden; gap: 3px; margin: 6px 0 12px; }
.ud-bar i { display: block; height: 100%; border-radius: 9px; }
.kv { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13px; }
.kv b { font-variant-numeric: tabular-nums; }
.tm { position: relative; height: 172px; border-radius: 10px; overflow: hidden; }
.tm a { position: absolute; border: 1.5px solid var(--card); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; overflow: hidden; text-align: center; font-weight: 700; }
.tm a img { width: 34%; max-width: 46px; aspect-ratio: 1; border-radius: 8px; object-fit: cover; }
.tm a span { font-size: 11px; line-height: 1.15; padding: 2px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }

/* tabela */
.page-tabs { display: flex; gap: 22px; align-items: center; margin: 6px 0 18px; flex-wrap: wrap; }
.page-tabs a { display: flex; align-items: center; gap: 10px; font: 700 22px/1 var(--display); letter-spacing: -0.03em; color: var(--muted); padding-bottom: 12px; border-bottom: 2.5px solid transparent; }
.page-tabs a.on { color: var(--fg); border-color: var(--fg); }
.page-tabs .app-ic { width: 38px; height: 38px; border-radius: 11px; }
.page-tabs .app-ic svg { width: 26px; height: 26px; }
.page-title { display: flex; align-items: center; gap: 12px; font: 700 32px/1 var(--display); letter-spacing: -0.035em; margin: 6px 0 18px; }
.page-title .app-ic { width: 44px; height: 44px; border-radius: 12px; }
.page-title .app-ic svg { width: 30px; height: 30px; }
.toolbar { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .seg button { font-size: 13px; }
.searchbox { display: flex; align-items: center; gap: 6px; background: var(--pill); border-radius: 999px; padding: 0 12px; height: 34px; }
.searchbox input { border: 0; background: none; color: var(--fg); font: inherit; width: 180px; outline: none; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { background: var(--card); color: var(--muted); font-weight: 500; font-size: 13px; text-align: right; padding: 8px 10px; white-space: nowrap; }
.tbl th:first-child { border-radius: 10px 0 0 10px; text-align: center; }
.tbl th:last-child { border-radius: 0 10px 10px 0; }
.tbl th.l, .tbl td.l { text-align: left; }
.tbl th button { color: inherit; font-weight: inherit; }
.tbl th button.on { color: var(--fg); font-weight: 600; }
.tbl td { padding: 9px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl td.rk { text-align: center; color: var(--muted); font-weight: 600; width: 40px; }
.tbl td.rk.g1 { color: #c99a06; } .tbl td.rk.g2 { color: #8a8f99; } .tbl td.rk.g3 { color: #b8743a; }
.tbl td.pl { font-weight: 600; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: var(--faint); }
.gname { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 460px; }
.gname .ic { width: 30px; height: 30px; }
.gname > span { min-width: 0; }
.gname b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.gname small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.more-btn { display: block; margin: 16px auto 0; background: var(--pill); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 13.5px; }

/* página do jogo */
.g-wrap { max-width: 850px; margin: 0 auto; }
.g-head { display: flex; gap: 16px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.g-head h1 { font: 700 28px/1.15 var(--display); letter-spacing: -0.03em; margin: 0; }
.g-head .by { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: 13.5px; font-weight: 600; }
.g-head .by .chip { font-size: 11.5px; }
.g-head .acts { margin-left: auto; display: flex; gap: 8px; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; background: var(--bg); }
.pill-btn.icon { width: 36px; padding: 0; justify-content: center; }
.pill-btn.on { color: var(--star); }
.g-grid { display: grid; grid-template-columns: minmax(0, 1fr) 262px; gap: 40px; }
.g-side { display: flex; flex-direction: column; gap: 12px; }
.thumb { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--card); }
.thumb > .ic { position: absolute; inset: 0; margin: auto; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .play { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.g-side p { margin: 0; font-size: 13.5px; line-height: 1.4; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.facts div { background: var(--card); border-radius: 10px; padding: 8px 10px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; min-width: 0; }
.facts b { color: var(--fg); font-size: 13.5px; white-space: nowrap; }
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 16px 0 6px; }
.strip div { text-align: center; border-left: 1px solid var(--line); padding: 2px 4px; }
.strip div:first-child { border-left: 0; }
.strip small { display: block; font-size: 11.5px; color: var(--muted); }
.strip b { font-size: 17px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.strip .hot b, .strip .hot small::before { color: #e2621b; }
.strip .hot small::before { content: "✦ "; }
.g-tabs { display: flex; justify-content: space-around; border-bottom: 1px solid var(--line); margin-top: 18px; }
.g-tabs button { padding: 10px 6px; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent; font-size: 14.5px; }
.g-tabs button.on { color: var(--fg); border-color: var(--fg); }
.g-sec { margin-top: 20px; }
.g-sec h2 { font: 700 20px/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 6px; display: flex; justify-content: space-between; align-items: center; }
.g-sec .lead { font-size: 16px; font-weight: 600; margin: 4px 0 14px; }
.g-sec .lead span { color: var(--muted); font-weight: 500; }
.dbars { display: flex; align-items: end; gap: 6px; height: 120px; margin: 14px 0 6px; }
.dbars div { flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 5px; height: 100%; }
.dbars i { display: block; width: 100%; background: var(--card-2); border-radius: 4px; min-height: 3px; }
.dbars i.now { background: var(--accent); }
.dbars span { font-size: 10.5px; color: var(--muted); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.trio small { display: block; color: var(--muted); font-size: 12.5px; }
.trio b { font: 700 22px/1.2 var(--display); letter-spacing: -0.02em; }
.trio span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.desc { white-space: pre-line; overflow-wrap: anywhere; color: var(--fg); font-size: 14px; line-height: 1.5; margin: 0; }
.back { color: var(--muted); font-size: 13.5px; display: inline-block; margin-bottom: 12px; }

/* busca */
.search-layer { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.32); z-index: 50; display: flex; justify-content: center; padding: 10vh 16px 16px; }
.search-layer[hidden] { display: none; }
.search-box { width: min(560px, 100%); background: var(--bg); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; align-self: start; }
.search-box input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); font: 16px var(--font); padding: 16px 18px; outline: none; }
.search-res { max-height: 60vh; overflow-y: auto; padding: 6px 10px 10px; }
.search-res .r { padding: 7px 8px; }
.search-res .r:hover { background: var(--pill); }

/* em breve */
.soon { max-width: 520px; margin: 12vh auto 0; text-align: center; }
.soon .app-ic { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px; }
.soon .app-ic svg { width: 44px; height: 44px; }
.soon h1 { font: 700 28px/1.15 var(--display); letter-spacing: -0.03em; margin: 0 0 8px; }
.soon p { color: var(--muted); margin: 0 auto; max-width: 44ch; font-size: 15px; line-height: 1.5; }

@media (max-width: 1180px) {
  .home { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .app, .app.collapsed { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 6px; padding: 8px max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px)); border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .side-top { padding: 0; }
  .collapse, .search-btn span, .nav a span, .foot-link, .side-foot .signin { display: none; }
  .brand span { display: none; }
  .search-btn { width: auto; padding: 7px; }
  .nav { flex-direction: row; margin: 0; gap: 2px; }
  .nav-group { flex-direction: row; }
  .nav-group + .nav-group { display: none; }
  .nav a { padding: 7px; }
  .side-foot { margin: 0 0 0 auto; padding: 0; }
  .theme-pop { bottom: auto; top: 44px; left: auto; right: 0; }
  .main { padding-block: 16px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .grid2, .grid3, .trio { grid-template-columns: minmax(0, 1fr); }
  .hero-num { font-size: 34px; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
  .page-tabs { gap: 14px; }
  .page-tabs a { font-size: 18px; }
  .page-tabs .app-ic { width: 30px; height: 30px; }
  .searchbox input { width: 120px; }
}
@media (prefers-reduced-motion: no-preference) {
  .fade { animation: fade 0.28s ease both; }
  @keyframes fade { from { opacity: 0.35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
