/* Cities: Relax & Paint. Colours come from the app's Palette.cs and its App Store art. */
:root {
  --paper: #F9EEDA;       /* App Store screenshot backdrop */
  --panel: #FFF8EC;       /* Palette.UiPanel */
  --ink: #5A4A42;         /* Palette.UiInk */
  --ink-soft: #7A685E;
  --accent: #F7B733;      /* Palette.Accent */
  --accent-deep: #E9A21E;
  --rule: #D07D2A;        /* underline in the store art */
  --blank: #EFE6D8;       /* Palette.Blank */
  --hint: #FFD98A;        /* Palette.BlankHint */
  --wood: #BF9A78;        /* Palette.TableWood */
  --backdrop: #443B33;    /* postcard backdrop in CityPostcard.cs */
  --slot: #F1E7D6;
  --shadow: 0 10px 30px rgba(90, 64, 40, .16), 0 2px 6px rgba(90, 64, 40, .10);
  --display: "Avenir Next", "Avenir", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rule); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--panel); padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------------------------------------------------------------- header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 2px 6px rgba(90, 64, 40, .2); }
.brand span { font-weight: 700; font-size: 15px; line-height: 1.15; letter-spacing: .01em; }
.badge { display: inline-block; border-radius: 9px; flex: none; }
.badge img { height: 40px; width: auto; }
.badge-top img { height: 40px; }

/* ---------------------------------------------------------------- hero */
.hero { max-width: 1180px; margin: 0 auto; }
.hero-copy { padding: 2px 16px 12px; }
.hero-copy h1::after { margin-top: 10px; }
h1, h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.01em;
  color: #3E322C;
}
h1 { font-size: clamp(25px, 7.4vw, 31px); line-height: 1.08; margin: 0; }
h1::after, .reason h2::after, .cities h2::after {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 2px;
  background: var(--rule); margin-top: 12px;
}
.lede { margin: 8px 0 0; font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.lede-more, .badge-hero, .hero-fine { display: none; }
.fine { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); margin: 10px 0 0; }

/* ---------------------------------------------------------------- the demo screen */
.device { position: relative; }
.screen {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--wood);
  overflow: hidden;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation;
}
.sky-ext {
  position: relative; height: 0; flex: none;
  background: url(/assets/scene/clay-top.webp) 0 0 / 100% 100%;
}
.sky-ext-awake {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
  background: url(/assets/scene/awake-top.webp) 0 0 / 100% 100%;
}
.scene {
  position: relative; flex: none;
  width: 100%; aspect-ratio: 784 / 945;
  touch-action: none;
}
.scene .base { position: absolute; inset: 0; width: 100%; height: 100%; }
.layers, .targets, .fx { position: absolute; inset: 0; }
.fx { pointer-events: none; overflow: visible; }
.layer-img { position: absolute; display: block; max-width: none; pointer-events: none; }
.layer-sky { opacity: 0; transition: opacity 1.4s ease; }
.layer-piece { opacity: 0; }
.layer-group { visibility: hidden; }
.layer-awake { visibility: hidden; }
.layer-balloon { opacity: 0; }
.is-awake .layer-balloon { animation: rise 3.2s cubic-bezier(.2, .7, .2, 1) .6s forwards, bob 5s ease-in-out 3.8s infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(70%); } 30% { opacity: 1; } to { opacity: 1; transform: translateY(0); } }
@keyframes bob { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5%); } }

.target {
  position: absolute; padding: 0; margin: 0; border: 0; background: transparent;
  border-radius: 12px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.target:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px rgba(255, 217, 138, .8); }
.target[disabled] { display: none; }

/* Corner brackets for the first piece, as in the app's first run */
.corners { position: absolute; pointer-events: none; opacity: 0; transition: opacity .3s; }
.corners.on { opacity: 1; }
.corners i { position: absolute; width: 12px; height: 12px; border: 2.5px solid #3E322C; }
.corners i:nth-child(1) { left: -5px; top: -5px; border-right: 0; border-bottom: 0; border-top-left-radius: 3px; }
.corners i:nth-child(2) { right: -5px; top: -5px; border-left: 0; border-bottom: 0; border-top-right-radius: 3px; }
.corners i:nth-child(3) { left: -5px; bottom: -5px; border-right: 0; border-top: 0; border-bottom-left-radius: 3px; }
.corners i:nth-child(4) { right: -5px; bottom: -5px; border-left: 0; border-top: 0; border-bottom-right-radius: 3px; }
.corners.on i { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.18); } }

/* Hint ring: hints circle the spot you are looking for */
.ring {
  position: absolute; pointer-events: none; border-radius: 50%;
  border: 3px solid var(--hint);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 0 22px 6px rgba(255, 217, 138, .75), inset 0 0 18px rgba(255, 217, 138, .55);
  opacity: 0; transform: scale(.7); transition: opacity .3s ease, transform .45s cubic-bezier(.3, 1.4, .5, 1);
}
.ring.on { opacity: 1; transform: scale(1); animation: pulse 1.4s ease-in-out .45s infinite; }
@keyframes pulse { 50% { transform: scale(1.1); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 0 30px 10px rgba(255, 217, 138, .9), inset 0 0 18px rgba(255, 217, 138, .55); } }

.blob { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform, opacity; }
.flake { position: absolute; top: -4%; width: 9px; height: 6px; border-radius: 2px; pointer-events: none; will-change: transform; }

/* HUD: pill + hint, as in the app */
.hud {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 5;
  display: flex; justify-content: center; align-items: flex-start; pointer-events: none;
}
.pill {
  width: min(52%, 220px); padding: 6px 14px 8px; border-radius: 16px;
  background: var(--panel); box-shadow: var(--shadow);
  pointer-events: auto;
}
.pill-text { display: flex; justify-content: center; gap: 14px; font-weight: 700; font-size: 14px; letter-spacing: .08em; line-height: 1.3; }
.pill-count b { font-weight: 700; }
.bar { display: block; height: 7px; margin-top: 4px; border-radius: 4px; background: var(--blank); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--accent); transition: width .6s cubic-bezier(.3, 1.2, .5, 1); }
.pill.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.06); } }
.hint {
  position: absolute; right: 0; top: 0; pointer-events: auto;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 30%, #FFD36A, var(--accent) 60%, var(--accent-deep));
  box-shadow: 0 4px 0 #D88F16, var(--shadow);
  font: 700 24px/46px var(--ui); color: #4A3A32; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.hint:active { transform: translateY(2px); box-shadow: 0 2px 0 #D88F16, var(--shadow); }
.hint[disabled] { opacity: 0; pointer-events: none; }

.banner {
  position: absolute; z-index: 6; left: 50%; top: 64px;
  margin: 0; padding: 10px 24px; border-radius: 22px; white-space: nowrap;
  background: var(--panel); box-shadow: var(--shadow);
  font-weight: 700; font-size: 20px; letter-spacing: .06em; color: var(--ink);
  opacity: 0; transform: translate(-50%, -10px) scale(.92); pointer-events: none;
  transition: opacity .3s ease, transform .45s cubic-bezier(.3, 1.5, .5, 1);
}
.banner.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.banner.big { font-size: 24px; padding: 12px 30px; }

/* Bottom: coach line, tray, end bar */
.bottom {
  position: relative; flex: 1 0 auto;
  padding: 0 10px calc(10px + env(safe-area-inset-bottom));
  background: url(/assets/scene/table-bottom.webp) 0 0 / 100% 100%;
}
.coach {
  position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 4;
  transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 28px);
  margin: 0; padding: 8px 16px; border-radius: 16px;
  background: rgba(62, 50, 44, .84); color: #FFF8EC;
  font-size: 14px; line-height: 1.3; text-align: center; letter-spacing: .01em;
  transition: opacity .25s ease;
}
.coach.off { opacity: 0; }
.tray {
  display: flex; gap: 8px; justify-content: center;
  padding: 10px; border-radius: 20px;
  background: var(--panel); box-shadow: var(--shadow);
  min-height: 84px;
}
.slot {
  position: relative; flex: 0 1 64px; min-width: 44px; height: 64px;
  border: 0; border-radius: 12px; padding: 6px; cursor: grab;
  background: var(--slot);
  box-shadow: inset 0 -3px 0 rgba(90, 64, 40, .08), 0 1px 0 rgba(255, 255, 255, .8);
  touch-action: none; -webkit-tap-highlight-color: transparent;
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s, opacity .3s;
}
.slot img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(60, 40, 20, .25)); }
.slot[aria-pressed="true"] { transform: translateY(-5px); box-shadow: 0 0 0 3px var(--accent), 0 8px 14px rgba(90, 64, 40, .2); background: #FFF3D6; }
.slot.lifted img { opacity: .25; }
.slot.enter { animation: slot-in .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes slot-in { from { transform: translateY(14px) scale(.7); opacity: 0; } }
.slot.nope { animation: nope .4s ease; }
@keyframes nope { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.count {
  position: absolute; top: -6px; right: -6px; min-width: 26px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--accent); color: #4A3A32;
  font-size: 12.5px; font-weight: 700; line-height: 22px; text-align: center;
}
.ghost {
  position: fixed; z-index: 40; left: 0; top: 0; pointer-events: none; max-width: none;
  filter: drop-shadow(0 10px 10px rgba(60, 40, 20, .35));
  will-change: transform;
}
.endbar { display: flex; gap: 10px; padding: 10px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); min-height: 84px; align-items: center; }
.endbar[hidden], .tray[hidden] { display: none; }
.endbar .btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; font-size: 15px; letter-spacing: .03em; white-space: nowrap; }
.btn {
  flex: 1; min-height: 50px; border: 0; border-radius: 16px; cursor: pointer;
  background: #EEE3D2; box-shadow: inset 0 -4px 0 rgba(90, 64, 40, .12);
  font-weight: 700; font-size: 16px; letter-spacing: .06em; color: var(--ink);
}
.btn-accent { background: var(--accent); box-shadow: inset 0 -4px 0 #D88F16; color: #4A3A32; }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; font-size: 14px; }

.demo-note { margin: 10px 16px 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); text-align: center; }

/* ---------------------------------------------------------------- sections */
.reason, .cities, .final { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h2 { font-size: clamp(26px, 7vw, 36px); line-height: 1.1; margin: 0 0 14px; }
.reason { display: grid; gap: 26px; padding-top: 64px; }
.reason-time .reason-copy { order: -1; }
.reason p, .cities-head p { margin: 0 0 12px; font-size: 16.5px; }
.phone-shot { margin: 0; justify-self: center; width: min(58vw, 250px); text-align: center; }
.phone-shot img {
  width: 100%; height: auto; border-radius: 30px;
  border: 7px solid #3E322C; box-shadow: var(--shadow);
  background: #ddd;
}
.phone-shot figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }

.fan { position: relative; height: calc(min(100vw - 40px, 420px) * .5 + 100px); max-width: 420px; width: 100%; justify-self: center; }
.card {
  position: absolute; top: 20px; left: 50%; width: 50%; margin: 0;
  padding: 8px 8px 10px; border-radius: 12px; background: var(--panel);
  box-shadow: var(--shadow);
}
.card img { width: 100%; height: auto; border-radius: 6px; aspect-ratio: 1; }
.card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 8px 2px 0; font-size: 14px; }
.card figcaption b { font-weight: 700; letter-spacing: .04em; }
.card figcaption span { white-space: nowrap; font-size: 12px; padding: 1px 8px; border-radius: 8px; background: var(--blank); color: var(--ink-soft); }
.card-1 { transform: translateX(-92%) rotate(-8deg); top: 34px; }
.card-2 { transform: translateX(-50%) rotate(1deg); z-index: 2; }
.card-3 { transform: translateX(-8%) rotate(8deg); top: 38px; }

.cities { padding-top: 64px; }
.city-list {
  list-style: none; margin: 18px -20px 0; padding: 4px 20px 14px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.city-list::-webkit-scrollbar { display: none; }
.city {
  scroll-snap-align: start; position: relative;
  padding: 6px 6px 10px; border-radius: 16px; background: var(--panel); box-shadow: 0 4px 12px rgba(90, 64, 40, .12);
  text-align: center;
}
.city img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 11px; background: var(--blank); }
.city b { display: block; margin-top: 7px; font-size: 15px; letter-spacing: .05em; }
.city small { display: block; font-size: 12px; color: var(--ink-soft); line-height: 1.3; }
.city .free {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  padding: 2px 14px; border-radius: 10px; background: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .06em;
}

.final { padding-top: 76px; padding-bottom: 30px; text-align: center; }
.final-icon { width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 21px; box-shadow: var(--shadow); }
.final h2 { margin-bottom: 20px; }
.badge-final img { height: 54px; margin: 0 auto; }

.foot {
  max-width: 1080px; margin: 40px auto 0; padding: 22px 20px calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(90, 74, 66, .16);
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--ink-soft);
}
.foot p { margin: 0; }
.foot nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.foot a { display: inline-block; padding: 10px 0; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- postcard */
.postcard-wrap {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(68, 59, 51, .94);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; align-items: flex-start;
}
.postcard-wrap[hidden] { display: none; }
.postcard-dialog { width: 100%; max-width: 400px; margin: auto 0; color: var(--panel); text-align: center; }
.postcard-wrap.show .paper { animation: paper-in .7s cubic-bezier(.25, 1.3, .45, 1); }
@keyframes paper-in { from { transform: translateY(40px) rotate(-3deg) scale(.92); opacity: 0; } }
.paper {
  background: var(--panel); color: var(--ink); border-radius: 18px; padding: 14px 14px 16px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35); text-align: left;
}
.photo {
  position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  cursor: ew-resize; touch-action: pan-y; background: var(--blank);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.photo-awake { clip-path: inset(0 50% 0 0); }
.seam { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--panel); pointer-events: none; }
.grip {
  position: absolute; top: 18%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 38px; border-radius: 19px; background: var(--panel); color: var(--ink);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
  font: 700 20px/36px var(--ui); text-align: center; letter-spacing: .1em;
}
.paper-text { position: relative; padding: 12px 4px 0; }
.stamp {
  position: absolute; right: 2px; top: 16px; padding: 4px 12px; border-radius: 12px;
  background: var(--blank); font-size: 13px; font-weight: 700; letter-spacing: .06em; color: rgba(90, 74, 66, .78);
}
.paper h2 { font-family: var(--ui); font-style: normal; font-weight: 700; font-size: 26px; letter-spacing: .06em; margin: 0; color: var(--ink); }
.pc-sub { margin: 0; font-size: 14px; color: rgba(90, 74, 66, .75); letter-spacing: .02em; }
.pc-note { margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; color: rgba(90, 74, 66, .9); }
.pc-msg { margin: 12px 0 8px; font-size: 14px; opacity: .85; letter-spacing: .02em; }
.pc-split { display: flex; gap: 10px; }
.pc-cta { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 248, 236, .18); }
.pc-cta-title { margin: 0; font-family: var(--display); font-style: italic; font-size: 23px; line-height: 1.2; color: #FFF8EC; }
.pc-cta-body { margin: 8px 0 16px; font-size: 15px; line-height: 1.45; opacity: .85; }
.pc-cta .badge img { height: 50px; margin: 0 auto; }
.pc-cta .fine { color: rgba(255, 248, 236, .72); }
.pc-done {
  margin-top: 14px; min-height: 44px; min-width: 120px; padding: 0 20px; border-radius: 22px; cursor: pointer;
  border: 1.5px solid rgba(255, 248, 236, .4); background: transparent; color: var(--panel);
  font-weight: 700; letter-spacing: .06em;
}
.postcard-wrap :focus-visible { outline-color: var(--hint); }

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 560px) {
  .hero { display: grid; justify-items: center; }
  .hero-copy { text-align: center; max-width: 560px; }
  h1::after { margin-left: auto; margin-right: auto; }
  .device { width: 400px; }
  .screen { border-radius: 30px; box-shadow: var(--shadow); }
  .demo-note { max-width: 400px; }
}

@media (min-width: 960px) {
  .top { padding-top: 22px; }
  .badge-top { display: none; }
  .hero {
    grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; align-items: center; justify-items: start;
    column-gap: 72px; padding: 8px 40px 0;
  }
  .hero-copy { grid-row: 1 / 3; text-align: left; padding: 0; max-width: 520px; }
  h1 { font-size: 64px; }
  .hero-copy h1::after { margin-left: 0; width: 64px; margin-top: 22px; }
  .lede { font-size: 20px; margin-top: 22px; }
  .lede-more { display: inline; }
  .badge-hero, .hero-fine { display: block; }
  .badge-hero { margin-top: 28px; width: max-content; }
  .badge-hero img { height: 54px; }
  .hero-fine { margin-top: 12px; }
  .device {
    width: 404px; padding: 12px; border-radius: 54px;
    background: #2F2723;
    box-shadow: 0 0 0 2px #4A3E37 inset, 0 30px 60px rgba(70, 45, 25, .28), 0 6px 14px rgba(70, 45, 25, .2);
  }
  .screen { border-radius: 42px; box-shadow: none; }
  .sky-ext { height: 96px; }
  .bottom { padding-bottom: 16px; }
  .hud { top: 46px; }
  .banner { top: 104px; }
  .demo-note { grid-column: 2; max-width: 404px; margin-top: 14px; }

  .reason { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding-top: 110px; }
  .reason-copy { max-width: 440px; }
  .reason p { font-size: 19px; }
  .reason-time .phone-shot { width: 270px; justify-self: end; }
  .reason-time .reason-copy { order: 0; }
  .fan { height: 400px; max-width: 520px; }
  .cities { padding-top: 110px; }
  .cities-head { max-width: 640px; }
  .cities-head p { font-size: 19px; }
  .city-list { grid-auto-flow: row; grid-template-columns: repeat(10, 1fr); grid-auto-columns: auto; overflow: visible; margin: 26px 0 0; padding: 0; gap: 12px; }
  .city { padding: 4px 4px 8px; border-radius: 12px; }
  .city img { border-radius: 9px; }
  .city b { font-size: 12.5px; letter-spacing: .02em; }
  .city small { font-size: 11px; }
  .city .free { top: 8px; font-size: 11px; padding: 1px 10px; }
  .final { padding-top: 120px; }
  h2 { font-size: 44px; }
  .postcard-wrap { align-items: center; }
}

@media (max-width: 359px) {
  .brand span { font-size: 14px; }
  .brand img { width: 40px; height: 40px; }
  .pill-text { font-size: 13px; gap: 10px; letter-spacing: .05em; }
  .tray { gap: 6px; padding: 8px; }
  .coach { font-size: 13px; }
  .banner { font-size: 17px; }
  .banner.big { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .is-awake .layer-balloon { animation: none; opacity: 1; }
  .ring.on, .corners.on i { animation: none; }
}

/* ---------------------------------------------------------------- legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 8px 20px 0; }
.legal h1 { font-size: clamp(28px, 7vw, 40px); margin: 14px 0 18px; }
.legal h2 { font-family: var(--ui); font-style: normal; font-weight: 700; font-size: 20px; letter-spacing: .01em; margin: 34px 0 8px; color: #3E322C; }
.legal p, .legal td, .legal th { font-size: 17px; line-height: 1.65; }
.legal a { color: #9A5418; text-underline-offset: 2px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--panel); border-radius: 12px; overflow: hidden; }
.legal th, .legal td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #EADCC6; font-size: 15px; vertical-align: top; }
.legal nav.sub { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.legal nav.sub a { display: inline-block; padding: 10px 0; }
.legal-foot { max-width: 760px; }
