

:root {
  --paper: #f4efe6;
  --paper-2: #e8e0d1;
  --card: #fffaf3;
  --ink: #1c1915;
  --muted: #5c564c;
  --line: rgba(28, 25, 21, 0.12);
  --green: #17332d;
  --green-2: #1f6a56;
  --copper: #b5522a;
  --gold: #a68445;
  --shadow: 0 18px 40px rgba(92, 42, 12, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  --lattice: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='68' height='68' viewBox='0 0 68 68'><path d='M34 2 L66 34 L34 66 L2 34 Z' fill='none' stroke='%23c4923a' stroke-opacity='0.55' stroke-width='1.25'/><path d='M34 16 L52 34 L34 52 L16 34 Z' fill='%23f0c27a' fill-opacity='0.16' stroke='%23b5522a' stroke-opacity='0.35'/><circle cx='34' cy='34' r='1.7' fill='%23e8b15a'/></svg>");
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", "Microsoft YaHei", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Microsoft JhengHei", "Yu Gothic", "Malgun Gothic", "Nirmala UI", "Leelawadee UI", "Geeza Pro", "Tahoma", "Segoe UI", sans-serif;
  --nav: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:not(.is-iphone-safari),
html:not(.is-iphone-safari) body { overflow: hidden; }
body {
  margin: 0;
  background-color: #0d1c18;
  background-image:
    radial-gradient(ellipse 42% 36% at 18% 0%, rgba(240, 194, 122, 0.55), transparent 62%),
    radial-gradient(ellipse 36% 32% at 86% 8%, rgba(181, 82, 42, 0.5), transparent 60%),
    radial-gradient(ellipse 40% 42% at 70% 100%, rgba(31, 106, 86, 0.65), transparent 62%),
    radial-gradient(ellipse 28% 24% at 8% 88%, rgba(232, 176, 90, 0.35), transparent 64%),
    linear-gradient(165deg, #16362e 0%, #0c1a17 42%, #2a1810 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(circle at 12% 20%, rgba(240, 194, 122, 0.28), transparent 26%),
    radial-gradient(circle at 88% 30%, rgba(181, 82, 42, 0.32), transparent 24%);
  animation: theater 22s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(circle at 78% 78%, rgba(31, 106, 86, 0.45), transparent 28%),
    radial-gradient(circle at 20% 84%, rgba(255, 214, 140, 0.2), transparent 22%);
  animation: theater 28s ease-in-out infinite alternate-reverse;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: var(--ink); }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
h1, h2, h3, .figure, .pull { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
h1, h2, h3, p { margin: 0; }
html[lang|="zh"] h1,
html[lang|="zh"] h2,
html[lang|="zh"] .pull,
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ko"] h1,
html[lang="ko"] h2 { line-height: 1.28; letter-spacing: 0; }
html[lang|="zh"] .eyebrow { letter-spacing: 0.12em; }

.shell {
  position: relative;
  isolation: isolate;
  z-index: 1;
  width: min(480px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  background-color: #f8d59a;
  background-image:
    radial-gradient(circle, rgba(255, 236, 190, 0.95) 0.9px, transparent 1.5px),
    repeating-linear-gradient(118deg, rgba(255, 248, 230, 0.28) 0 2px, transparent 2px 16px),
    linear-gradient(180deg, #fff3d4 0%, #f6c56d 24%, #f8d7a4 52%, #e8a15a 76%, #f6d59a 100%),
    var(--lattice);
  background-size: 18px 18px, auto, auto, 68px 68px;
  box-shadow:
    0 0 0 1px rgba(240, 194, 122, 0.7),
    0 0 0 7px rgba(16, 36, 31, 0.55),
    0 0 80px rgba(240, 194, 122, 0.18),
    0 30px 80px rgba(8, 16, 14, 0.45);
  padding-bottom: calc(var(--nav) + 28px);
}
.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 150% 78% at 112% 18%, rgba(255, 170, 40, 0.82), transparent 62%),
    radial-gradient(ellipse 140% 72% at -18% 78%, rgba(176, 52, 24, 0.5), transparent 64%),
    radial-gradient(ellipse 130% 70% at 78% 48%, rgba(14, 92, 72, 0.34), transparent 66%),
    radial-gradient(ellipse 90% 55% at 24% 36%, rgba(255, 244, 210, 0.72), transparent 68%);
  background-size: 100% 620px, 100% 740px, 100% 680px, 100% 560px;
  background-repeat: repeat-y;
  animation: bloom 14s ease-in-out infinite alternate;
}
@keyframes theater {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}
@keyframes bloom {
  from { background-position: 0 0, 0 120px, 0 40px, 0 200px; }
  to { background-position: 0 220px, 0 -140px, 0 260px, 0 -40px; }
}

.progress, .topfix, .dock {
  position: fixed;
  left: 50%;
  width: min(480px, 100%);
  transform: translateX(-50%);
  z-index: 30;
}
.progress { top: 0; height: 3px; z-index: 40; pointer-events: none; }
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #b5522a, #f0c27a 55%, #1f6a56);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.topfix {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  color: #f6f1e7;
}
.topfix.solid {
  background: rgba(255, 244, 224, 0.9);
  color: var(--ink);
  border-bottom: 1px solid rgba(166, 132, 69, 0.45);
  box-shadow: 0 12px 28px rgba(92, 48, 12, 0.12);
  backdrop-filter: blur(16px);
}
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; }
.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(12, 18, 16, 0.28));
}
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.18em;
  font-weight: 560;
  line-height: 1;
}
.brand em { display: block; margin-top: 3px; font-style: normal; font-size: 11px; letter-spacing: 0.06em; opacity: 0.82; }
html[lang|="zh"] .brand strong { letter-spacing: 0.22em; font-size: 18px; }
.lang-open {
  max-width: 118px;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}
.lang-open span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lang-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(12, 22, 18, 0.46);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.lang-sheet[hidden] { display: none; }
.safari-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 90% 46% at 50% 0%, rgba(255, 196, 84, 0.42), transparent 62%),
    rgba(13, 28, 24, 0.78);
}
html.is-iphone-safari .safari-gate { display: none !important; }
.safari-card {
  width: min(440px, 100%);
  background-color: #fff4df;
  background-image:
    radial-gradient(circle, rgba(166, 116, 32, 0.35) 0.8px, transparent 1.4px),
    linear-gradient(180deg, #fff8ea 0%, #f6d59a 100%);
  background-size: 18px 18px, auto;
  color: var(--ink);
  border-radius: 22px;
  padding: 22px 18px 18px;
  box-shadow: 0 24px 60px rgba(20, 12, 6, 0.35), inset 0 0 0 1px rgba(166, 132, 69, 0.5);
}
.safari-card h2 { font-size: 32px; line-height: 1.12; }
.safari-card p { margin-top: 12px; }
.safari-note { color: var(--muted); font-size: 14px; }
.safari-card .solid { width: 100%; margin-top: 16px; }
.lang-sheet-card {
  width: min(480px, 100%);
  max-height: min(82vh, 680px);
  background: #fffaf3;
  color: var(--ink);
  border-radius: 22px 22px 0 0;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 -24px 60px rgba(20, 12, 6, 0.28);
}
.lang-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang-sheet-head h2 { font-size: 28px; }
.lang-note { color: var(--muted); font-size: 13.5px; }
.lang-list { overflow: auto; display: grid; gap: 6px; padding-bottom: 8px; }
.lang-list button {
  text-align: start;
  border: 1px solid rgba(166, 132, 69, 0.35);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.lang-list button[hidden] { display: none; }
.lang-list button span { color: var(--muted); font-size: 12px; }
.lang-list button.on { background: var(--green); color: #f6f1e7; border-color: transparent; }
.lang-list button.on span { color: rgba(246, 241, 231, 0.72); }
html[dir="rtl"] select {
  background-position: 18px 55%, 12px 55%;
  padding-right: 12px;
  padding-left: 32px;
}
html[dir="rtl"] .progress span { transform-origin: 100% 50%; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #f7f2ea;
  overflow: hidden;
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 14, 0.45) 0%, rgba(10, 16, 14, 0.05) 28%, rgba(10, 16, 14, 0.2) 52%, rgba(10, 16, 14, 0.88) 100%);
}
.hero-copy { position: relative; padding: 88px 20px 72px; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 8px;
}
.hero .eyebrow { color: #e7b08a; }
h1 { font-size: 46px; line-height: 0.98; max-width: 12ch; }
.lede { margin-top: 14px; max-width: 36ch; color: rgba(247, 242, 234, 0.88); font-size: 16px; }
.hero-cap { margin-top: 18px; font-size: 12px; letter-spacing: 0.02em; color: rgba(247, 242, 234, 0.72); }

.quick {
  margin: -46px 16px 0;
  position: relative;
  background: var(--card);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.quick h2 { font-size: 28px; line-height: 1.05; }
.field label, .mini-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
input, select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 16px;
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 88px 76px; gap: 8px; }
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qcell {
  background: var(--green);
  color: #f4efe4;
  border-radius: 16px;
  padding: 12px;
  min-height: 92px;
}
.qcell .code { font-size: 12px; letter-spacing: 0.12em; opacity: 0.7; }
.qcell strong {
  display: block;
  margin: 4px 0 2px;
  font-family: var(--serif);
  font-size: 20px;
  overflow-wrap: anywhere;
  font-weight: 560;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.qcell em { font-style: normal; font-size: 11px; opacity: 0.72; font-variant-numeric: tabular-nums; }

.solid, .ghost, .texty {
  border-radius: 999px;
  padding: 12px 14px;
  border: 1px solid transparent;
}
.solid { background: var(--copper); color: #fffaf3; font-weight: 600; }
a.solid {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #fffaf3;
  cursor: pointer;
  box-sizing: border-box;
}
.ghost { background: transparent; border-color: var(--line); }
.texty { background: transparent; border-color: rgba(244, 239, 228, 0.35); color: #f4efe4; }
.solid:active, .ghost:active { transform: translateY(1px); }

.status {
  margin: 16px 18px 0;
  font-size: 13px;
  color: var(--muted);
}
.ticker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px 4px;
  scrollbar-width: none;
}
.ticker::-webkit-scrollbar, .strip::-webkit-scrollbar { display: none; }
.ticker button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 12px;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.ticker button b { font-weight: 600; margin-right: 6px; }

.jumps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 16px 6px;
}
.jumps a {
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 72px;
}
.jumps a span { color: var(--copper); font-size: 12px; letter-spacing: 0.12em; }
.jumps a strong { font-family: var(--serif); font-size: 20px; font-weight: 560; }

.block { padding: 26px 16px 8px; scroll-margin-top: 64px; }
h2 { font-size: 34px; line-height: 1.05; }
html[lang="zh-Hans"] h1 { max-width: none; }
.sheet h3 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 12px 2px 4px;
}
.result .mini-label { color: rgba(244, 239, 228, 0.68); }
.copy-row { margin-top: 10px; }
.figure { overflow-wrap: anywhere; }
.dek { margin: 8px 0 14px; color: var(--muted); }

.strip-head { padding: 22px 16px 0; }
.strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 16px 8px;
}
.strip button {
  scroll-snap-align: start;
  flex: 0 0 168px;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}
.strip img { width: 168px; height: 214px; object-fit: cover; border-radius: 16px; }
.strip strong { display: block; margin-top: 6px; font-size: 15px; }
.strip em { font-style: normal; color: var(--muted); font-size: 12px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.result {
  margin-top: 12px;
  background: var(--green);
  color: #f4efe4;
  border-radius: 22px;
  padding: 18px 16px 16px;
}
.figure {
  font-size: 42px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #f3e6cf;
}
.result .sub { margin-top: 8px; color: rgba(244, 239, 228, 0.78); font-size: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.stat { background: rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 10px; }
.stat span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}
.stat b {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.result .actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.warn { color: #f0c2a4; font-size: 13px; margin-top: 8px; }

.sheet {
  margin-top: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 10px 10px;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: end; white-space: nowrap; }
th:first-child, td:first-child { text-align: start; }
th { color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
details summary { cursor: pointer; padding: 10px 2px; color: var(--green); font-weight: 600; }

.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.swatch { width: 18px; height: 3px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.swatch.copper { background: var(--copper); }
.swatch.green { background: var(--green-2); }
canvas#save-chart { width: 100%; height: 180px; background: var(--card); border-radius: 16px; border: 1px solid var(--line); }

.seg, .presets { display: flex; gap: 6px; flex-wrap: wrap; }
.seg { background: var(--paper-2); padding: 3px; border-radius: 999px; }
.seg button, .presets button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 12px;
}
.seg button.on, .presets button.on { background: var(--green); color: #f6f1e7; }
.presets button { border: 1px solid var(--line); background: #fff; }

.donut-wrap { display: grid; grid-template-columns: 132px 1fr; gap: 12px; align-items: center; }
.donut {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  position: relative;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  background: var(--card);
  border-radius: 50%;
}
.donut-key { display: grid; gap: 4px; font-size: 12px; }
.donut-key div { display: flex; justify-content: space-between; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }

.pair-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pair-photos img { height: 148px; width: 100%; object-fit: cover; border-radius: 14px; }
.pair-photos figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.note {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.basket { display: grid; gap: 10px; margin-top: 12px; }
.basket-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
}
.basket-row strong { display: block; font-size: 14px; }
.basket-vals { display: grid; gap: 2px; margin: 4px 0 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 7px; border-radius: 99px; background: var(--paper-2); margin-top: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; }
.bar.home span { background: var(--green); }
.bar.away span { background: var(--copper); }

.shot { margin: 14px 0 0; }
.shot img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 18px; }
.shot figcaption, .aside-cap { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.essay { display: grid; gap: 12px; margin-top: 12px; }
.essay p { font-size: 16.5px; }
.pull {
  font-size: 28px;
  line-height: 1.2;
  margin: 8px 0;
}
.essay a { color: var(--copper); }

.stories { display: grid; gap: 14px; }
.story {
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.story img { width: 100%; height: 190px; object-fit: cover; }
.story div { padding: 14px; display: grid; gap: 8px; }
.story h3 { font-size: 26px; line-height: 1.15; }

.glossary { display: grid; gap: 12px; }
.glossary article {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.glossary h3 { font-family: var(--sans); font-size: 16px; letter-spacing: 0; font-weight: 600; }
.glossary p { color: var(--muted); margin-top: 4px; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.faq summary { font-weight: 600; }
.faq p { margin-top: 6px; color: var(--muted); }

.fullbleed { margin: 18px 0 0; }
.fullbleed img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.fullbleed figcaption { padding: 8px 16px 0; font-size: 12.5px; color: var(--muted); }

.footer {
  padding: 22px 16px 10px;
  color: var(--muted);
  font-size: 13.5px;
  display: grid;
  gap: 8px;
}
.footer a { color: var(--copper); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav) + 12px);
  transform: translateX(-50%) translateY(8px);
  width: max-content;
  max-width: min(420px, calc(100% - 32px));
  background: var(--ink);
  color: #f4efe4;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.dock {
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 244, 224, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(166, 132, 69, 0.5);
  box-shadow: 0 -14px 32px rgba(92, 48, 12, 0.12);
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
  z-index: 35;
}
.dock a {
  text-decoration: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 4px 0;
}
.dock a.on { color: var(--copper); }
.dock svg { width: 22px; height: 22px; }

.boot {
  margin: 12px 16px;
  padding: 12px;
  border-radius: 12px;
  background: #f3d7cc;
}

.pairs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.pairs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
}

@media (max-width: 380px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .figure { font-size: 34px; }
  .row3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body {
    background: #e8b45a;
    background-image:
      radial-gradient(ellipse 90% 46% at 100% -10%, rgba(255, 186, 60, 0.85), transparent 62%),
      radial-gradient(ellipse 80% 40% at 0% 110%, rgba(166, 48, 22, 0.4), transparent 64%),
      #f0c56a;
    background-attachment: scroll;
  }
  body::before, body::after { display: none; }
  .shell { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
  body::before, body::after, .shell::before { animation: none; }
}

  

html.is-iphone-safari .safari-gate{display:none !important}

