/* CataLift site. Colours come from the app (src/theme/colors.ts, dark theme):
   orange #ff6b35 is for text and icons on black only; #c4461a carries white text (4.96:1).
   Layout uses logical properties (inline-start/end) so Arabic and Hebrew pages mirror. */

/* ---- Fonts: Latin, Latin Extended and Vietnamese headlines; Cyrillic headlines in Oswald.
        Scripts with no web font here (Arabic, Hebrew, Devanagari, Thai, CJK) use the device's own. */
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-vietnamese.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Oswald CL"; src: url("../fonts/oswald-cyrillic.woff2") format("woff2"); font-weight: 200 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-ext.woff2") format("woff2"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --black: #000;
  --panel: #1c1c1e;
  --panel-2: #2c2c2e;
  --app-surface: #1a1a1a;
  --app-input: #2a2a2a;
  --app-border: #333;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --muted: #a1a1a6;
  --orange: #ff6b35;
  --orange-fill: #c4461a;
  --orange-press: #a83a10;
  --gold: #ffd700;
  --green: #10b981;
  --green-fill: #047857;
  --red: #ef4444;
  --purple: #9c27b0;
  --cream: #fff9f5;
  --ink: #1d1a17;
  --ink-muted: #5c544d;
  --ink-line: rgba(29, 26, 23, 0.16);

  --display: "Big Shoulders Display", "Oswald CL", "Arial Narrow", system-ui, sans-serif;
  --body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  --display-case: uppercase;
  --display-lh: 0.88;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --section: clamp(72px, 11vw, 144px);
  color-scheme: dark;
}
/* Scripts without capitals or with tall marks: device fonts, more line height, a little smaller. */
:lang(ar), :lang(he), :lang(hi), :lang(th), :lang(ja), :lang(ko), :lang(zh) {
  --display: system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  --display-lh: 1.15;
}
:lang(vi) { --body: system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif; }
:lang(th), :lang(hi) { --display-lh: 1.3; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
:lang(th) body, :lang(hi) body, :lang(ar) body { line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.paper :focus-visible, .endcard :focus-visible { outline-color: var(--orange-fill); }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Type ---- */
h1, h2 {
  font-family: var(--display); font-weight: 800;
  text-transform: var(--display-case); letter-spacing: 0.005em; line-height: var(--display-lh);
  text-wrap: balance;
}
h1 { font-size: clamp(3.5rem, 8.2vw, 7.5rem); }
h1, h2 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
/* Long words (Russian, German, Polish, Dutch...) need a smaller headline to stay in their column */
:lang(ru) h1, :lang(de) h1, :lang(pl) h1, :lang(nl) h1, :lang(sv) h1, :lang(tr) h1, :lang(id) h1, :lang(vi) h1, :lang(fr) h1, :lang(it) h1, :lang(es) h1, :lang(pt) h1 { font-size: clamp(3rem, 6.4vw, 6rem); }
:lang(ru) h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); }
:lang(ru) h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); }
/* Japanese and Chinese: break between phrases, not inside words */
:lang(ja) h1, :lang(ja) h2, :lang(ja) .h3, :lang(ja) .lede, :lang(zh) h1, :lang(zh) h2, :lang(ko) h1, :lang(ko) h2 { word-break: auto-phrase; }
:lang(ko) h1, :lang(ko) h2 { word-break: keep-all; }
h2 { font-size: clamp(2.6rem, 5.8vw, 5rem); }
:lang(ar) h1, :lang(he) h1, :lang(hi) h1, :lang(th) h1, :lang(ja) h1, :lang(ko) h1, :lang(zh) h1 { font-size: clamp(2.4rem, 5.6vw, 4.75rem); }
:lang(ar) h2, :lang(he) h2, :lang(hi) h2, :lang(th) h2, :lang(ja) h2, :lang(ko) h2, :lang(zh) h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
.h3 { font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1.05; margin-bottom: 0.5rem; }
.body, .section-head p { max-width: 58ch; color: var(--muted); }
.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head h2 { max-width: 15ch; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: #d4d4d8; max-width: 46ch; }
.fine { font-size: 0.9375rem; color: var(--muted); }
.fine.ink { color: var(--ink-muted); max-width: 70ch; margin-top: 1.5rem; }

/* ---- Buttons and badges ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 14px; cursor: pointer;
  font: 600 1.0625rem/1 var(--body); text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-fill { background: var(--orange-fill); color: #fff; }
.btn-fill:hover { background: var(--orange-press); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: #fff; }
.paper .btn-ghost { color: var(--ink); border-color: var(--ink-line); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; border-radius: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.endcard .badges { justify-content: center; }
.badge { display: block; border-radius: 9px; }
.badge img { height: 52px; width: auto; }

/* ---- Language offer ---- */
.langbar {
  display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap;
  background: var(--cream); color: var(--ink); padding: 10px var(--gutter); font-size: 0.9875rem;
}
.langbar-go { font-weight: 700; color: var(--orange-fill); }
.langbar-x { border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px 8px; color: var(--ink); }

/* ---- Nav: logo, tabs, download. On small screens the tabs become a scrolling row. ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, 0.92); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) {
  .nav { background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.nav-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { border-radius: 9px; }
.brand span { font: 800 1.75rem/1 "Big Shoulders Display", sans-serif; letter-spacing: 0.01em; }
.nav-tabs { margin-inline-start: auto; }
.nav-tabs ul { list-style: none; display: flex; gap: 4px; }
.nav-tabs a {
  display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  color: var(--muted); font-size: 0.9875rem; font-weight: 500; white-space: nowrap;
}
.nav-tabs a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-tabs a[aria-current="page"] { color: var(--text); background: rgba(255, 107, 53, 0.16); box-shadow: inset 0 -2px 0 var(--orange); }
.nav-cta { flex: none; }
@media (max-width: 900px) {
  .nav-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .nav-cta { margin-inline-start: auto; }
  .nav-tabs { order: 3; width: 100%; margin: 6px calc(var(--gutter) * -1) 0; overflow-x: auto; scrollbar-width: none; }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tabs ul { padding: 0 var(--gutter) 8px; }
}

/* ---- Page heroes ---- */
.hero, .page-hero { padding: clamp(40px, 7vw, 96px) 0 var(--section); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero-copy { display: grid; gap: 28px; align-content: start; }
.hero h1 { max-width: 14ch; }
:lang(en) .hero h1 { max-width: 9ch; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(32px, 6vw, 80px); align-items: center; }
.page-hero h1 { max-width: 16ch; margin-bottom: 24px; }
:lang(en) .page-hero h1 { max-width: 12ch; }
.page-hero-art { width: 100%; max-width: 360px; justify-self: center; }
.jump { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.jump a {
  display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: 0.9375rem;
}
.jump a:hover { border-color: var(--orange); color: var(--orange); }
@media (max-width: 900px) {
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-art { max-width: 260px; }
}

/* ---- Phone frames around real screenshots ---- */
.phone {
  width: 100%; max-width: 300px; border-radius: 42px; padding: 7px; background: #26262a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { border-radius: 35px; width: 100%; aspect-ratio: 720 / 1564; object-fit: cover; }
.paper .phone { background: var(--ink); box-shadow: 0 30px 60px -30px rgba(29, 26, 23, 0.45); }
figcaption { font-size: 0.9375rem; margin-top: 14px; max-width: 30ch; color: var(--muted); }
.paper figcaption { color: var(--ink-muted); }

/* ---- Sections ---- */
.paper { background: var(--cream); color: var(--ink); padding: var(--section) 0; }
.paper .section-head p, .paper .body { color: var(--ink-muted); }
.band { padding: var(--section) 0; border-top: 1px solid var(--line); }
.band-panel { background: var(--panel); padding: var(--section) 0; }
.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.split.flip { grid-template-columns: minmax(0, 1fr) 300px; }
.split > .phone, .split > figure { position: sticky; top: 130px; }
@media (max-width: 820px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split > .phone, .split > figure { position: static; justify-self: center; max-width: 280px; }
  .split.flip > .phone, .split.flip > figure { order: -1; }
}

/* Spec lists: term + description rows */
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.spec > div { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.paper .spec > div { border-top-color: var(--ink-line); }
.spec dt { font: 700 1.625rem/1.05 var(--display); margin-bottom: 8px; }
.spec dd { color: var(--muted); font-size: 1.0625rem; }
.paper .spec dd { color: var(--ink-muted); }
.spec .new { display: inline-block; vertical-align: middle; margin-inline-start: 8px; padding: 2px 8px; border-radius: 6px; background: var(--orange-fill); color: #fff; font: 700 0.75rem/1.4 var(--body); }
@media (max-width: 980px) { .spec { grid-template-columns: 1fr; } }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 40px; margin-top: clamp(56px, 8vw, 96px); }
@media (max-width: 760px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

.plain { list-style: none; display: grid; max-width: 56ch; }
.body-gap { margin: 24px 0 32px; }
.new-inline { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 6px; background: var(--orange-fill); color: #fff; font: 700 0.75rem/1.4 var(--body); }
.plain li { padding: 14px 0; border-top: 1px solid var(--line); color: #d4d4d8; }
.plain li strong { color: var(--text); }
.paper .plain li { border-top-color: var(--ink-line); color: var(--ink); }

/* ---- Video ---- */
.watch { padding: 0 0 var(--section); }
.watch-grid { display: grid; gap: 28px; }
.watch-grid.tall { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); align-items: center; gap: clamp(32px, 6vw, 80px); }
.watch .section-head { margin-bottom: 0; }
.video { position: relative; border-radius: 20px; overflow: hidden; background: #111; aspect-ratio: 16 / 9; }
.video.tall { aspect-ratio: 9 / 16; max-width: 320px; justify-self: center; width: 100%; border-radius: 28px; }
.video button { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: none; width: 100%; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video-icon {
  position: absolute; inset-inline-start: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; background: var(--orange-fill); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
[dir="rtl"] .video-icon { margin: -42px -42px 0 0; }
.video-icon::after {
  content: ""; position: absolute; left: 34px; top: 26px;
  border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff;
}
.video button:hover .video-icon { background: var(--orange-press); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { font-size: 0.875rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 820px) { .watch-grid.tall { grid-template-columns: 1fr; } }

/* ---- Live phone (hero) ---- */
.live { display: grid; gap: 14px; justify-items: center; }
.device {
  width: 100%; max-width: 390px; border-radius: 52px; padding: 10px; background: #1f1f22;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -40px rgba(255, 107, 53, 0.35);
}
.live-hint { font-size: 0.9375rem; color: var(--muted); max-width: 38ch; text-align: center; }
.ph {
  position: relative; height: min(760px, 82vh); min-height: 560px; border-radius: 42px; overflow: hidden;
  background: #000; color: #fff; font: 400 14px/1.35 -apple-system, system-ui, "Segoe UI", sans-serif;
  direction: inherit;
}
.ph-fallback img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 28px 0 32px; font-weight: 600; font-size: 15px; position: relative; z-index: 3; background: #000; }
.ph-island { position: absolute; left: 50%; top: 10px; width: 110px; height: 30px; margin-left: -55px; border-radius: 20px; background: #111; }
.ph-batt { width: 26px; height: 12px; border: 1.5px solid #fff; border-radius: 4px; position: relative; }
.ph-batt::after { content: ""; position: absolute; inset: 1.5px; right: 5px; background: #fff; border-radius: 1.5px; }
.ph-scroll { position: absolute; inset: 44px 0 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ph button { cursor: pointer; }
.ic { width: 20px; height: 20px; flex: none; }

.aw-top { display: grid; grid-template-columns: 32px 1fr 28px 30px; align-items: center; gap: 6px; padding: 8px 14px 12px; border-bottom: 1px solid var(--app-border); }
.aw-ic { display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; padding: 2px; color: #fff; }
.aw-ic .ic { width: 24px; height: 24px; }
.aw-top .aw-ic:first-child .ic { width: 28px; height: 28px; }
.aw-red { color: var(--red); }
.aw-or { color: var(--orange); }
.aw-title { text-align: center; display: grid; }
.aw-title strong { font-size: 18px; }
.aw-title span { font-size: 11px; color: #999; }
.aw-info { margin: 12px; padding: 14px 14px 10px; background: var(--app-surface); border-radius: 12px; border-inline-start: 4px solid var(--orange); }
.aw-when { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.aw-when b { color: var(--orange); }
.aw-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 14px; background: rgba(255, 107, 53, 0.1); border: 1px solid rgba(255, 107, 53, 0.25); color: var(--orange); font-weight: 700; font-size: 12px; white-space: nowrap; }
.aw-pill .ic { width: 13px; height: 13px; }
.aw-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0 8px; margin-top: 10px; border-top: 1px solid var(--app-border); }
.aw-row b { display: block; font-size: 14px; }
.aw-row small { color: #999; font-size: 11px; }
.aw-switch { width: 44px; height: 24px; border-radius: 12px; background: var(--app-border); position: relative; flex: none; }
.aw-switch.is-on { background: var(--orange); }
.aw-switch::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 20px; height: 20px; border-radius: 50%; background: #949494; }
.aw-switch.is-on::after { inset-inline-start: 22px; background: #fff; }
.aw-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.aw-chips button { flex: none; padding: 6px 11px; border-radius: 16px; background: var(--app-input); border: 1px solid var(--app-border); color: #999; font-weight: 600; font-size: 12px; }
.aw-chips button[aria-pressed="true"] { background: var(--orange-fill); border-color: var(--orange-fill); color: #fff; }
.aw-tools { display: grid; margin-top: 8px; }
.aw-tools button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 10px; background: var(--app-input); border: 1px solid var(--app-border); color: var(--orange); font-weight: 600; font-size: 13px; }

.aw-card { margin: 0 12px 14px; padding: 14px 12px; border-radius: 12px; background: rgba(26, 26, 26, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); }
.aw-name { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
.aw-name h4 { text-align: center; color: var(--orange); font-size: 17px; font-weight: 700; }
.aw-name-ic { display: flex; justify-content: flex-end; gap: 2px; }
.aw-name-ic .aw-ic:last-child { color: #999; }
.aw-varchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; }
.aw-varchips span { padding: 3px 7px; border-radius: 8px; background: rgba(156, 39, 176, 0.15); color: #c77dd6; font-size: 10px; font-weight: 700; }
.aw-varchips .aw-pausechip { background: rgba(255, 87, 34, 0.15); color: #ff8a65; }
.aw-rest { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.aw-ring { position: relative; width: 40px; height: 40px; }
.aw-ring svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.aw-ring circle { fill: none; stroke-width: 3; }
.aw-ring .bg { stroke: var(--app-border); }
.aw-ring .fg { stroke-linecap: round; transition: stroke 0.3s; }
.aw-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; }
.aw-rest button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(26, 26, 26, 0.9); color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; }
.aw-rest button[data-act="restpause"] { color: var(--orange); }
.aw-rest .ic { width: 18px; height: 18px; }
.aw-ready, .aw-paused { padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; color: #000; background: #4caf50; }
.aw-paused { background: #ff9500; }
.aw-last { margin-top: 10px; border-radius: 8px; border: 1px solid var(--app-border); background: rgba(26, 26, 26, 0.5); }
.aw-last-row { width: 100%; display: flex; align-items: center; gap: 6px; padding: 10px; border: 0; background: none; text-align: start; }
.aw-last-row b { font-size: 12px; color: #999; }
.aw-last-row small { font-size: 11px; color: #949494; }
.aw-last-row span { margin-inline-start: auto; font-size: 11px; color: #999; }
.aw-last-row .ic { width: 15px; height: 15px; color: #999; }
.aw-last-row[aria-expanded="true"] .aw-chev { transform: rotate(180deg); }
.aw-last-sets { list-style: none; margin: 0 10px; padding: 8px 0; border-top: 1px solid var(--app-border); display: grid; gap: 6px; font-size: 13px; }
.aw-last-sets span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--app-input); font-size: 11px; margin-inline-end: 8px; }
.aw-last-sets small { color: #999; }
.aw-last-sum { display: flex; gap: 24px; padding: 6px 10px 10px; font-size: 12px; font-weight: 600; }
.aw-last-sum small { display: block; font-size: 10px; color: #999; font-weight: 400; }
.aw-sets { width: 100%; border-collapse: collapse; margin-top: 10px; }
.aw-sets th { font-size: 11px; font-weight: 600; color: #999; padding: 4px 2px 6px; border-bottom: 1px solid var(--app-border); }
.aw-sets td { padding: 4px 2px; text-align: center; }
.aw-n { font-weight: 700; font-size: 15px; width: 30px; }
.aw-n small { display: block; font-size: 9px; color: #ff8a65; }
.aw-cell { width: 100%; min-height: 34px; padding: 6px 2px; border-radius: 10px; border: 1px solid var(--app-border); background: var(--app-surface); color: #fff; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.aw-cell.is-planned { color: #949494; }
.aw-cell.is-warm { color: #f97316; border-color: #f97316; background: rgba(249, 115, 22, 0.08); }
.aw-e1rm { width: 44px; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
tr.is-pr .aw-e1rm { color: var(--green); }
.aw-trophy { display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto 2px; border-radius: 50%; background: rgba(255, 215, 0, 0.15); border: 1px solid rgba(255, 215, 0, 0.3); color: var(--gold); }
.aw-trophy .ic { width: 14px; height: 14px; }
.aw-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.aw-foot button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-radius: 8px; background: #000; font-weight: 600; font-size: 13px; }
.aw-addset { border: 1px solid var(--orange); color: var(--orange); }
.aw-copy { border: 1px solid var(--app-border); color: #999; }
.aw-actions { display: grid; gap: 10px; padding: 0 12px 22px; }
.aw-addex { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 12px; border: 2px dashed var(--app-border); background: var(--app-surface); color: #fff; font-weight: 600; font-size: 15px; }
.aw-addex .ic { width: 24px; height: 24px; }
.aw-hold { position: relative; overflow: hidden; min-height: 54px; border: 0; border-radius: 12px; background: var(--orange-fill); color: #fff; font-weight: 700; font-size: 17px; -webkit-user-select: none; user-select: none; touch-action: none; -webkit-touch-callout: none; }
.aw-hold-fill { position: absolute; inset: 0; background: var(--green-fill); transform-origin: left center; transform: scaleX(0); }
[dir="rtl"] .aw-hold-fill { transform-origin: right center; }
.aw-hold-label { position: relative; }

/* Phone sheets and modals */
.ph-layer { position: absolute; inset: 44px 0 0; z-index: 5; }
.ph-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.ph-sheet { position: absolute; inset-inline: 0; bottom: 0; background: var(--app-surface); border-radius: 20px 20px 0 0; padding: 16px 14px 18px; max-height: 100%; overflow-y: auto; }
.ph-sheet.ph-full { top: 0; border-radius: 0; }
.ph-sheet.ph-tall { top: 30%; }
.ph-black { background: #000; }
.sh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.sh-head b { font-size: 18px; display: block; }
.sh-head small { color: #999; font-size: 13px; }
.kp-title { text-align: center; color: #999; font-weight: 600; }
.kp-value { text-align: center; font-size: 34px; font-weight: 700; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.kp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kp-grid button { aspect-ratio: 1.35; border: 0; border-radius: 12px; background: var(--app-input); color: #fff; font-size: 22px; font-weight: 600; display: grid; place-items: center; }
.kp-grid .k-c, .kp-grid .k-bw.is-on { background: var(--orange-fill); }
.kp-grid .k-bw, .kp-grid .k-wu { font-size: 15px; }
.kp-grid .k-del { background: var(--red); }
.kp-grid .k-ok { background: var(--green-fill); }
.kp-grid .k-next { color: var(--orange); }
.kp-grid .ic { width: 24px; height: 24px; }
.ph-modal { position: absolute; inset-inline: 14px; top: 50%; transform: translateY(-50%); background: var(--app-surface); border-radius: 16px; padding: 16px 0 8px; }
.md-title { text-align: center; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.md-sub { text-align: center; color: #999; font-size: 13px; padding: 0 16px 10px; }
.md-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 0; border-top: 1px solid var(--app-border); background: none; text-align: start; }
.md-row b { display: block; font-size: 15px; }
.md-row small { color: #999; font-size: 12px; }
.mr-blue { color: #3b82f6; } .mr-purple { color: #c77dd6; } .mr-red { color: #ff5722; }
.md-cancel { width: calc(100% - 32px); margin: 8px 16px 4px; padding: 12px; border: 0; border-radius: 10px; background: var(--app-input); font-weight: 600; }
.pc-box { padding: 12px; border-radius: 12px; border: 1px solid var(--orange); text-align: center; margin-bottom: 12px; }
.pc-box small { display: block; color: #999; font-size: 11px; }
.pc-box p { font-size: 15px; }
.pc-box b { font-size: 30px; }
.pc-hint { color: var(--orange) !important; }
.pc-actual { border-color: var(--app-border); }
.pc-actual.is-ok { border-color: var(--green); }
.pc-actual.is-ok small:last-child { color: var(--green); }
.pc-label { color: #999; font-size: 12px; font-weight: 600; margin: 4px 0 8px; }
.pc-bars { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pc-bars button { padding: 9px 16px; border-radius: 10px; border: 2px solid var(--app-border); background: var(--app-surface); color: #999; font-weight: 600; font-size: 14px; }
.pc-bars button[aria-pressed="true"] { background: var(--orange-fill); border-color: var(--orange); color: #fff; }
.pc-plates { display: flex; align-items: center; gap: 3px; min-height: 90px; padding: 8px; border-radius: 10px; background: #111; direction: ltr; overflow-x: auto; }
.pc-sleeve { width: 22px; height: 10px; background: #888; border-radius: 2px; flex: none; }
.pc-plate { flex: none; width: 22px; height: 40px; border-radius: 4px; background: #888; color: #000; font-size: 9px; font-weight: 800; display: grid; place-items: center; writing-mode: vertical-rl; }
/* Plate colours from the app (utils/plateColors.ts); height follows plate size */
.lb-45 { background: #ff4444; height: 80px; } .lb-35 { background: #ffaa00; height: 69px; } .lb-25 { background: #00cc00; height: 58px; }
.lb-10 { background: #ffff00; height: 41px; } .lb-5 { background: #fff; height: 36px; } .lb-2_5 { background: #888; height: 33px; }
.kg-25 { background: #ff4444; height: 80px; } .kg-20 { background: #4444ff; color: #fff; height: 70px; } .kg-15 { background: #ffdd00; height: 60px; }
.kg-10 { background: #00cc00; height: 50px; } .kg-5 { background: #fff; height: 40px; } .kg-2_5 { background: #888; height: 35px; } .kg-1_25 { background: #333; color: #fff; height: 32px; }
.pc-sum { color: #ccc; font-size: 12px; text-align: center; margin: 8px 0 12px; }
.pc-keys button { aspect-ratio: 2.2; font-size: 18px; }
.vr-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 12px; }
.vr-tabs button { padding: 8px 2px; border: 0; border-bottom: 2px solid transparent; background: none; color: #999; font-size: 12px; font-weight: 600; }
.vr-tabs button[aria-selected="true"] { color: var(--orange); border-bottom-color: var(--orange); background: rgba(255, 107, 53, 0.1); }
.vr-title { font-weight: 700; }
.vr-sub { color: #999; font-size: 12px; margin-bottom: 10px; }
.vr-opts, .pz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pz-opts { padding: 0 16px; grid-template-columns: repeat(4, 1fr); }
.vr-opts button, .pz-opts button { padding: 11px 8px; border-radius: 12px; border: 1.5px solid var(--app-border); background: var(--app-input); color: #fff; font-weight: 600; font-size: 14px; }
.vr-opts button[aria-pressed="true"], .pz-opts button[aria-pressed="true"] { background: rgba(255, 107, 53, 0.2); border-color: var(--orange); color: var(--orange); }
.vr-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 0 16px 6px; }
.ph-sheet .vr-foot { padding: 0; }
.vr-clear { margin-inline-end: auto; border: 0; background: none; color: var(--red); font-weight: 600; }
.vr-cancel, .vr-save { padding: 10px 16px; border-radius: 10px; border: 0; font-weight: 600; background: var(--app-input); }
.vr-save { background: var(--orange-fill); color: #fff; }
.al-sec { font-weight: 700; margin: 14px 0 8px; }
.al-sec span { display: inline-block; padding: 0 7px; border-radius: 8px; background: var(--green-fill); font-size: 12px; }
.al-card { padding: 12px; border-radius: 12px; background: var(--app-surface); border: 1px solid var(--app-border); margin-bottom: 8px; }
.al-card p { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.al-same { padding: 1px 6px; border-radius: 6px; background: rgba(16, 185, 129, 0.15); color: var(--green); font-size: 11px; font-weight: 700; }
.al-meta { margin: 6px 0 10px; font-size: 12px; }
.al-score { padding: 2px 8px; border-radius: 8px; color: #fff; font-weight: 700; }
.al-very { background: #4caf50; } .al-similar { background: #2196f3; } .al-some { background: #ff9800; }
.al-easy { color: #4caf50; font-weight: 600; }
.al-card button { padding: 8px 14px; border: 0; border-radius: 8px; background: var(--green-fill); color: #fff; font-weight: 600; font-size: 13px; }
.pk-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--app-surface); border: 1px solid var(--app-border); margin-bottom: 10px; }
.pk-search input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font-size: 15px; outline: none; }
.pk-list { list-style: none; display: grid; gap: 6px; }
.pk-list button { width: 100%; text-align: start; padding: 12px; border-radius: 10px; border: 1px solid var(--app-border); background: var(--app-surface); }
.pk-list small { display: block; color: #999; font-size: 12px; }
.ph-saving { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.92); display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; font-weight: 600; }
.ph-saving-cat { width: 220px; height: 220px; }

/* PR summary */
.sm { padding: 16px 14px 24px; }
.sm-xp { text-align: center; margin-bottom: 12px; }
.sm-xp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: linear-gradient(90deg, #ff6b35, #ff8c42); font-weight: 900; font-size: 16px; }
.sm-xp-pill .ic { width: 16px; height: 16px; }
.sm-head { text-align: center; margin-bottom: 14px; }
.sm-trophy { width: 70px; height: 70px; color: var(--gold); margin: 0 auto 4px; }
.sm-head h4 { color: var(--gold); font-size: 26px; font-weight: 800; }
.sm-head .sm-great { color: #fff; font-size: 30px; }
.sm-head p { color: #999; font-size: 15px; }
.sm-card { padding: 16px; border-radius: 16px; border: 2px solid var(--gold); background: var(--app-surface); margin-bottom: 12px; }
.sm-ex { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; }
.sm-ex .ic { color: var(--gold); }
.sm-set { color: var(--gold); font-weight: 600; margin: 4px 0; }
.sm-range { font-size: 13px; color: #999; }
.sm-range b { color: var(--gold); }
.sm-cmp { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--app-border); }
.sm-cmp small { display: block; font-size: 11px; color: #999; }
.sm-old { color: #999; }
.sm-new { text-align: end; }
.sm-new small:first-child { color: var(--gold); }
.sm-new b { color: var(--gold); font-size: 18px; }
.sm-first { font-size: 13px; }
.sm-stats, .sm-rpg { padding: 14px; border-radius: 16px; background: var(--app-surface); margin-bottom: 12px; font-size: 14px; }
.sm-stats-t { font-weight: 700; margin-bottom: 6px; }
.sm-stats p:not(.sm-stats-t) { display: flex; justify-content: space-between; padding: 4px 0; color: #ccc; }
.sm-green { color: var(--green); }
.sm-rpg ul { list-style: none; display: grid; gap: 6px; color: #ddd; margin-bottom: 10px; }
.sm-rpg li::before { content: "•"; color: var(--orange); margin-inline-end: 8px; }
.sm-rpg a { color: var(--orange); font-weight: 700; }
.sm-done { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--app-border); background: #3a3a3a; font-weight: 600; font-size: 17px; }

/* ---- The loop (home) ---- */
.loop-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.loop-start { text-align: center; }
.loop-start img { width: 100%; max-width: 280px; margin: 0 auto 12px; }
.loop-start p { font: 800 2rem/1 var(--display); text-transform: var(--display-case); }
.loop-list { list-style: none; display: grid; }
.loop-list li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 20px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.loop-list b { font: 800 2rem/1 var(--display); color: var(--orange); }
.loop-list span { color: #d4d4d8; }
.loop-week { margin-top: 28px; color: var(--muted); max-width: 60ch; }
@media (max-width: 820px) {
  .loop-grid { grid-template-columns: 1fr; }
  .loop-start img { max-width: 200px; }
  .loop-list li { grid-template-columns: 6.5rem 1fr; gap: 12px; }
}

/* ---- Doors to the other pages (home) ---- */
.doors { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.doors li { grid-column: span 2; }
.doors li:nth-child(1), .doors li:nth-child(2) { grid-column: span 3; }
.door { display: grid; grid-template-rows: auto 1fr; height: 100%; border-radius: 24px; overflow: hidden; text-decoration: none; background: var(--panel); border: 1px solid var(--line); transition: border-color 0.15s; }
.door:hover { border-color: var(--orange); }
.door-art { background: #111; display: grid; place-items: center; height: 200px; overflow: hidden; }
.door-art img { height: 180px; width: auto; object-fit: contain; }
.door-art.shot img { width: 70%; height: auto; margin-top: 40px; border-radius: 20px; }
.door-copy { padding: 18px 20px 22px; }
.door-copy b { display: block; font: 800 1.75rem/1 var(--display); text-transform: var(--display-case); margin-bottom: 6px; }
.door-copy span { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) {
  .doors { grid-template-columns: 1fr 1fr; }
  .doors li, .doors li:nth-child(1), .doors li:nth-child(2) { grid-column: span 1; }
}
@media (max-width: 560px) { .doors { grid-template-columns: 1fr; } }

/* ---- Climb (game) ---- */
.climb, .cat, .bosses, .dress, .faq { padding: var(--section) 0; }
.cat, .bosses, .dress { border-top: 1px solid var(--line); }
.climb-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: start; margin-top: clamp(64px, 9vw, 112px); }
.steps { list-style: none; counter-reset: step; display: grid; gap: 18px; margin: 18px 0 56px; max-width: 52ch; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 2.75rem; color: var(--muted); }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0.05em; font: 800 2.25rem/0.9 "Big Shoulders Display", sans-serif; color: var(--orange); }
.steps strong { color: var(--text); font-weight: 600; }
.nodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.nodes dt { font: 700 1.5rem/1 var(--display); color: var(--orange); margin-bottom: 6px; }
.nodes dd { font-size: 0.9875rem; color: var(--muted); }
@media (max-width: 760px) {
  .climb-grid { grid-template-columns: 1fr; }
  .climb-grid > .phone { justify-self: center; max-width: 280px; }
  .nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.promise { margin-top: clamp(72px, 10vw, 128px); padding-inline-start: clamp(20px, 3vw, 36px); border-inline-start: 6px solid var(--orange); max-width: 980px; }
.promise p { font: 700 clamp(2rem, 4.6vw, 3.75rem)/1.05 var(--display); text-wrap: balance; }
.promise footer { margin-top: 20px; color: var(--muted); max-width: 56ch; }

.run { border-radius: 28px; background: var(--panel); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); }
.run-head { margin-bottom: 20px; }
.run-head p { color: var(--muted); max-width: 60ch; }
.run-panel { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); }
.run-map {
  position: relative; aspect-ratio: 3 / 4.2; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, #2a3340 0%, #14181e 60%, #0e1013 100%);
}
.run-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.run-lines line { stroke: rgba(255, 255, 255, 0.18); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 4 4; }
.run-lines line.is-taken { stroke: var(--orange); stroke-dasharray: none; stroke-width: 3; }
.run-node {
  position: absolute; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: #23262c; border: 2px solid currentColor; padding: 0;
  opacity: 0.55; transition: opacity 0.15s, box-shadow 0.15s;
}
.run-node .ic, .run-node svg { width: 24px; height: 24px; }
.run-node:disabled { cursor: default; }
.run-node.is-next { opacity: 1; box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.35); cursor: pointer; }
.run-node.is-next:hover { box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.5); }
.run-node.is-done { opacity: 1; background: #3a2a22; }
.run-node-label { position: absolute; top: 100%; margin-top: 3px; font-size: 10px; font-weight: 700; color: #ddd; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.run-fight { color: #f87171; } .run-elite { color: #c084fc; } .run-campfire { color: #fb923c; } .run-treasure { color: #facc15; }
.run-summit { color: var(--orange); width: 58px; height: 58px; }
.run-cat { position: absolute; width: 56px; height: 56px; transform: translate(-50%, -78%); transition: left 0.45s ease, top 0.45s ease; pointer-events: none; z-index: 2; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6)); }
.run-side { display: grid; gap: 16px; align-content: start; }
.run-guardian { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: #26262a; }
.run-guardian img { width: 96px; height: 96px; border-radius: 50%; background: #e9e4de; padding: 6px; }
.run-guardian-name { font: 700 1.5rem/1 var(--display); margin-bottom: 8px; }
.run-hp { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.run-hp span { display: block; height: 100%; width: 100%; background: var(--red); border-radius: 6px; transition: width 0.4s ease; }
.run-pop { position: absolute; inset-inline-start: 60px; top: 6px; font: 800 2rem/1 "Big Shoulders Display", sans-serif; color: var(--red); opacity: 0; pointer-events: none; }
.run-pop.is-on { animation: pop 0.9s ease-out; }
.run-pop.is-static { opacity: 1; }
@keyframes pop { 0% { opacity: 0; transform: translateY(8px) scale(0.8); } 25% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-18px); } }
.run-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 20px; }
.run-stats dt { font-size: 0.8125rem; color: var(--muted); }
.run-stats dd { font: 800 1.75rem/1 var(--display); }
.run-log { min-height: 3.2em; color: #e5e5e5; }
.run-log strong { color: var(--gold); display: block; font: 800 1.75rem/1.1 var(--display); }
.run-choice { display: flex; gap: 10px; flex-wrap: wrap; }
.run-loot-label { font-size: 0.8125rem; color: var(--muted); margin-bottom: 6px; }
.run-loot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.run-loot li { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 12px; background: #26262a; font-size: 0.875rem; border: 1px solid var(--line); }
.run-loot li.rarity-legendary { border-color: #fbbf24; }
.run-loot li.rarity-epic { border-color: #a855f7; }
.run-loot li.rarity-rare { border-color: #3b82f6; }
.run-loot-empty { font-size: 0.9375rem; color: var(--muted); }
.run-note { font-size: 0.875rem; color: var(--muted); margin-top: 18px; }
@media (max-width: 820px) {
  .run-panel { grid-template-columns: 1fr; }
  .run-map { max-width: 380px; width: 100%; justify-self: center; aspect-ratio: 3 / 5; }
}
@media (max-width: 520px) {
  .run-node { width: 40px; height: 40px; }
  .run-node svg { width: 20px; height: 20px; }
  .run-summit { width: 48px; height: 48px; }
  .run-node-label { font-size: 9px; margin-top: 1px; }
  .run-cat { width: 46px; height: 46px; }
}

/* ---- Classes + quiz (game) ---- */
.quiz { color-scheme: light; border-radius: 28px; background: var(--cream); color: var(--ink); padding: clamp(20px, 4vw, 44px); margin-bottom: clamp(56px, 8vw, 96px); }
.quiz-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; align-items: start; }
.quiz fieldset { border: 0; padding: 0; display: grid; gap: 8px; }
.quiz legend { font: 700 1.5rem/1.1 var(--display); margin-bottom: 10px; padding: 0; }
.quiz label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ink-line); cursor: pointer; font-size: 1rem; background: #fff; }
.quiz label:has(input:checked) { border-color: var(--orange-fill); box-shadow: inset 0 0 0 1px var(--orange-fill); }
.quiz input { accent-color: var(--orange-fill); width: 18px; height: 18px; flex: none; }
.quiz-form .btn { grid-column: 1 / -1; justify-self: start; }
.quiz-result { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: center; outline: none; }
.quiz-kicker { color: var(--ink-muted); font-weight: 600; }
.quiz-class { font: 800 clamp(3rem, 7vw, 5.5rem)/0.9 var(--display); text-transform: var(--display-case); margin: 4px 0 12px; }
.quiz-desc { font-size: 1.25rem; margin-bottom: 8px; }
.quiz-map { color: var(--ink-muted); margin-bottom: 20px; }
.quiz-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.quiz .fine { color: var(--ink-muted); }
@media (max-width: 860px) {
  .quiz-form { grid-template-columns: 1fr; }
  .quiz-result { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .quiz-result img { width: 200px; }
  .quiz-actions { justify-content: center; }
}
.classes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.classes li { border-top: 3px solid var(--orange); padding-top: 16px; }
.classes img { width: 110px; height: 110px; margin-bottom: 8px; }
.classes h3 { font: 800 1.875rem/1 var(--display); text-transform: var(--display-case); margin-bottom: 8px; }
.classes p { font-size: 1rem; color: var(--muted); }
.classes .perk { margin-top: 8px; color: #e5e5e5; font-size: 0.9375rem; }
@media (max-width: 900px) { .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .classes { grid-template-columns: 1fr; } }

/* ---- Villains (game) ---- */
.boss-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 7vw, 104px); align-items: center; margin-bottom: clamp(48px, 7vw, 80px); }
.boss-grid h2 { max-width: 12ch; margin-bottom: 24px; }
@media (max-width: 760px) {
  .boss-grid { grid-template-columns: 1fr; }
  .boss-grid > .phone { justify-self: center; max-width: 280px; }
}
.tiers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.tiers-label { font-weight: 600; color: var(--muted); margin-inline-end: 6px; }
.tiers button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; font-weight: 600; }
.tiers button[aria-pressed="true"] { background: var(--text); color: #000; border-color: var(--text); }
.villains { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.villains li { background: #e9e4de; color: var(--ink); border-radius: 20px; padding: 16px; }
.villains img { width: 100%; aspect-ratio: 1; }
.villains h3 { font: 800 1.5rem/1 var(--display); text-transform: var(--display-case); margin: 8px 0 6px; }
.villains p { font-size: 0.9375rem; color: var(--ink-muted); }
.taunt { margin-top: 32px; font: 700 clamp(1.5rem, 3vw, 2.25rem)/1.15 var(--display); color: var(--orange); max-width: 40ch; }
@media (max-width: 1000px) { .villains { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .villains { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Dress-up (game) ---- */
.dress-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.dress-stage { border-radius: 28px; background: #e9e4de; padding: 20px; position: sticky; top: 130px; }
.dress-cat img { width: 100%; aspect-ratio: 1; border-radius: 16px; }
.gear-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gear-grid button {
  width: 100%; height: 100%; display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: 16px;
  background: var(--panel); border: 2px solid var(--line); cursor: pointer; text-align: center; position: relative;
}
.gear-grid button[aria-pressed="true"] { border-color: var(--orange); background: rgba(255, 107, 53, 0.12); }
.gear-grid button.is-found::after { content: "★"; position: absolute; top: 6px; inset-inline-end: 8px; color: var(--gold); font-size: 0.875rem; }
.gear-grid img { width: 56px; height: 56px; }
.gear-grid span { font-size: 0.875rem; font-weight: 600; line-height: 1.2; }
.gear-grid small { font-size: 0.75rem; }
.rarity-common { color: #a1a1aa; } .rarity-rare { color: #60a5fa; } .rarity-epic { color: #c084fc; } .rarity-legendary { color: #fbbf24; }
.dress-facts { color: var(--muted); margin-top: 24px; max-width: 60ch; }
@media (max-width: 820px) {
  .dress-grid { grid-template-columns: 1fr; }
  .dress-stage { position: static; max-width: 320px; justify-self: center; width: 100%; }
  .gear-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.extras { display: grid; grid-template-columns: 260px minmax(0, 1fr) 260px; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(80px, 11vw, 144px); }
.extras-copy { display: grid; gap: 8px; }
.extras-copy p { color: var(--muted); max-width: 46ch; margin-bottom: 24px; }
@media (max-width: 980px) {
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .extras-copy { grid-column: 1 / -1; grid-row: 1; }
}

/* ---- Import demo (programs) ---- */
.imp { border-radius: 28px; background: var(--panel); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); }
.imp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); }
.imp-input textarea {
  width: 100%; min-height: 340px; resize: vertical; padding: 14px; border-radius: 14px; border: 1px solid var(--line);
  background: #0d0d0e; color: #e5e5e5; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; direction: ltr; text-align: left;
}
.imp-input textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.imp-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.imp-drop { border: 2px dashed var(--line); border-radius: 14px; padding: 12px; text-align: center; color: var(--muted); font-size: 0.9375rem; margin-top: 12px; }
.imp-drop.is-over { border-color: var(--orange); color: var(--text); }
.imp-drop label { color: var(--orange); font-weight: 700; cursor: pointer; text-decoration: underline; }
.imp-out { border-radius: 14px; background: #000; padding: 16px; min-height: 340px; font: 14px/1.4 -apple-system, system-ui, sans-serif; }
.imp-out h4 { font-size: 18px; margin-bottom: 4px; }
.imp-sum { color: #999; font-size: 13px; margin-bottom: 12px; }
.imp-err { color: #fca5a5; background: rgba(239, 68, 68, 0.12); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; }
.imp-warn { color: #fcd34d; background: rgba(251, 191, 36, 0.1); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; }
.imp-warn ul, .imp-err ul { margin: 6px 0 0; padding-inline-start: 18px; }
.imp-day { border-radius: 12px; background: var(--app-surface); border: 1px solid var(--app-border); padding: 10px 12px; margin-bottom: 8px; }
.imp-day p { font-weight: 700; margin-bottom: 6px; }
.imp-day ul { list-style: none; display: grid; gap: 4px; font-size: 13px; }
.imp-day li { display: flex; gap: 8px; align-items: baseline; }
.imp-day .ok { color: var(--green); flex: none; }
.imp-day .no { color: #999; flex: none; }
.imp-day small { color: #999; margin-inline-start: auto; white-space: nowrap; }
.imp-empty { color: #888; }
.imp-note { font-size: 0.875rem; color: var(--muted); margin-top: 16px; }
@media (max-width: 860px) { .imp-grid { grid-template-columns: 1fr; } .imp-input textarea, .imp-out { min-height: 240px; } }
.formats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.formats li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; }
.paper .formats li { border-color: var(--ink-line); }

/* ---- Sample charts (progress) ---- */
.lifts { display: grid; gap: 12px; }
.lift { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.lift b { display: block; }
.lift small { color: var(--muted); }
.lift svg { width: 140px; height: 44px; }
.lift polyline { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.lift .tag { padding: 4px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.tag-up { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag-hold { background: rgba(255, 255, 255, 0.1); color: #d4d4d8; }
.tag-stall { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.lift-tip { grid-column: 1 / -1; font-size: 0.9375rem; color: #e5e5e5; padding-top: 10px; border-top: 1px solid var(--line); }
.coach { list-style: none; display: grid; gap: 10px; }
.coach li { padding: 14px 16px; border-radius: 14px; background: var(--panel); border-inline-start: 4px solid var(--orange); }
.sample { font-size: 0.8125rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 560px) { .lift { grid-template-columns: 1fr auto; } .lift svg { grid-column: 1 / -1; width: 100%; } }

/* ---- Raid demo (social) ---- */
.raid { border-radius: 28px; background: var(--panel); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); }
.raid-top { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 20px; }
.raid-top img { width: 120px; height: 120px; }
.raid-members img { border-radius: 50%; background: #e9e4de; }
.raid-boss { font: 800 1.75rem/1 var(--display); text-transform: var(--display-case); margin-bottom: 8px; }
.raid-hp { height: 16px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); overflow: hidden; position: relative; }
.raid-hp span { display: block; height: 100%; background: linear-gradient(90deg, #ef4444, #f97316); transition: width 0.3s; }
.raid-marks { display: flex; justify-content: space-between; gap: 6px; font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 560px) { .raid-marks small { display: none; } }
.raid-chest { margin-top: 8px; font-weight: 700; }
.raid-usual { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.raid-usual span { color: var(--muted); font-weight: 600; margin-inline-end: 4px; }
.raid-usual button, .raid-week button { border-radius: 999px; border: 1px solid var(--line); background: none; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.raid-usual button[aria-pressed="true"] { background: var(--text); color: #000; }
.raid-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.raid-week button { border-radius: 12px; padding: 10px 2px; display: grid; gap: 2px; justify-items: center; font-size: 0.8125rem; }
.raid-week button small { font-size: 0.6875rem; color: var(--muted); }
.raid-week button[data-state="workout"] { background: var(--orange-fill); border-color: var(--orange-fill); color: #fff; }
.raid-week button[data-state="workout"] small { color: #ffe1d4; }
.raid-week button[data-state="rest"] { background: #26323a; border-color: #3b82f6; }
.raid-members { list-style: none; display: grid; gap: 10px; }
.raid-members li { display: grid; grid-template-columns: 44px minmax(0, 7rem) minmax(0, 1fr) 3.5rem; gap: 12px; align-items: center; }
.raid-members img { width: 44px; height: 44px; }
.raid-members b { font-size: 0.9375rem; }
.raid-bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.raid-bar span { display: block; height: 100%; background: var(--orange); transition: width 0.3s; }
.raid-members output { text-align: end; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.875rem; }
.raid-note { font-size: 0.875rem; color: var(--muted); margin-top: 16px; }
@media (max-width: 560px) { .raid-members li { grid-template-columns: 36px minmax(0, 1fr) 3rem; } .raid-members li .raid-bar { grid-column: 2 / -1; grid-row: 2; } .raid-week button { padding: 8px 0; } }

/* Challenge types table */
.types { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.types li { padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.types b { display: block; font: 800 1.5rem/1 var(--display); text-transform: var(--display-case); margin-bottom: 6px; }
.types span { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) { .types { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .types { grid-template-columns: 1fr; } }

/* ---- Premium ---- */
.table-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 520px; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 12px; border-bottom: 1px solid var(--ink-line); text-align: start; vertical-align: middle; }
.compare thead th { font: 800 1.75rem/1 var(--display); text-transform: var(--display-case); text-align: center; border-bottom: 2px solid var(--ink); padding-top: 16px; vertical-align: top; }
.price { display: block; margin-top: 8px; font: 500 0.9375rem/1.35 var(--body); text-transform: none; color: var(--ink-muted); }
.compare tbody th { font-weight: 500; padding-inline-start: 0; max-width: 46ch; }
.compare td { text-align: center; width: 9.5rem; font-weight: 600; }
.compare thead th:last-child, .compare td:last-child { background: rgba(196, 70, 26, 0.07); }
.yes, .no { display: inline-block; width: 24px; height: 24px; vertical-align: middle; overflow: hidden; text-indent: 200%; white-space: nowrap; }
.yes { border-radius: 50%; background: var(--orange-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat; }
.no { background: linear-gradient(var(--ink-muted), var(--ink-muted)) center / 14px 2px no-repeat; }

/* ---- FAQ ---- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 0; padding-inline-end: 40px; position: relative; font-weight: 600; font-size: 1.125rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; inset-inline-end: 4px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: linear-gradient(var(--orange), var(--orange)) center / 16px 2px no-repeat, linear-gradient(var(--orange), var(--orange)) center / 2px 16px no-repeat;
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; padding-inline-end: 40px; color: var(--muted); max-width: 62ch; }
.faq-list a { color: var(--orange); }
@media (max-width: 820px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---- End card ---- */
.endcard { background: var(--cream); color: var(--ink); padding: var(--section) 0; text-align: center; }
.endcard-inner { display: grid; justify-items: center; gap: 20px; }
.end-cat-clip { position: relative; width: min(340px, 100%); height: 280px; overflow: hidden; }
.end-cat { position: absolute; left: 50%; top: 50%; width: 600px; height: 600px; transform: translate(-50%, -50%); }
.end-cat canvas { display: block; }
.end-mycat { display: grid; justify-items: center; gap: 10px; }
.end-mycat-art img { width: 260px; height: 260px; border-radius: 24px; }
.end-mycat p { max-width: 40ch; color: var(--ink-muted); }
.endcard h2 { max-width: 13ch; }
.endcard > .wrap > p { color: var(--ink-muted); font-size: 1.1875rem; margin-bottom: 8px; }

/* ---- Footer ---- */
.foot { padding: 56px 0 64px; border-top: 1px solid var(--line); }
.foot-inner { display: grid; grid-template-columns: auto 1fr; gap: 32px 48px; }
.foot-nav { justify-self: end; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a, .foot-langs a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.foot-links a:hover, .foot-langs a:hover { color: var(--text); text-decoration: underline; }
.foot-links a[aria-current="page"], .foot-langs a[aria-current="page"] { color: var(--text); font-weight: 700; }
.foot-h { font: 600 0.875rem/1.2 var(--body); text-transform: none; color: var(--text); margin-bottom: 12px; letter-spacing: 0; }
.foot-langs { grid-column: 1 / -1; }
.foot-langs ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 16px; }
.foot-legal { grid-column: 1 / -1; }
.foot-legal .fine { margin-top: 10px; font-size: 0.8125rem; }
.foot-copy { grid-column: 1 / -1; font-size: 0.8125rem; }
@media (max-width: 700px) {
  .foot-inner { grid-template-columns: 1fr; }
  .foot-nav { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.spec-gap { margin-top: clamp(48px, 7vw, 80px); }
.quiz .btn-ghost { color: var(--ink); border-color: rgba(29, 26, 23, 0.35); }
.quiz .btn-ghost:hover { border-color: var(--ink); }
