/* SpinPick — styles. Tokens follow the brand manual (Visual System §01–§09). */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); 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: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-ext-700-normal.woff2") format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); 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: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-ext-800-normal.woff2") format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); 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: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-ext-400-normal.woff2") format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); 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: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-ext-500-normal.woff2") format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); 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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-ext-600-normal.woff2") format("woff2"); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Brand palette */
  --indigo: #1E2A78;
  --indigo-600: #27358F;
  --indigo-800: #172163;
  --ink: #0F1640;
  --teal: #14B8A6;          /* decorative only: 2.5:1 on white */
  --teal-text: #0D8A7C;     /* large/bold text on white: ≥ 4:1 */
  --teal-strong: #0F766E;   /* small text on white: 5.5:1 */
  --mint: #A7F3D0;
  --mint-50: #ECFDF7;
  --mint-25: #F4FDFA;
  --soft-gray: #E5E7EB;
  --orange: #F97316;
  --orange-600: #C2410C;
  --danger: #B42318;

  /* Text */
  --text: #2B3352;
  --muted: #5B6478;

  /* Surfaces */
  --page: #FFFFFF;
  --surface: #F8FAFB;
  --border: #E2E6EE;
  --shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 10px 30px rgba(17, 24, 39, 0.10);

  /* Radius & spacing (8px scale) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --gutter: 24px;

  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--indigo);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: var(--indigo); }
button, input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
code { font-size: 0.9em; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; }

:focus-visible { outline: none; box-shadow: var(--focus); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.icon-sprite { display: none; }
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; }
.header-inner { display: flex; align-items: center; gap: 40px; min-height: 84px; }
.brand { display: inline-flex; border-radius: var(--r-sm); }
.brand img { width: 196px; height: auto; }
.site-nav { display: flex; gap: 32px; }
.site-nav a { font-size: 17px; }
.site-nav a, .footer-nav a { color: var(--text); text-decoration: none; font-weight: 500; border-radius: 4px; }
.site-nav a:hover, .footer-nav a:hover { color: var(--indigo); text-decoration: underline; text-underline-offset: 4px; }
.btn-share { margin-left: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px;
  border-radius: var(--r-md); border: 1px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not([aria-disabled="true"]) { transform: translateY(1px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 6px 16px rgba(30, 42, 120, 0.22); }
.btn-primary:hover:not([aria-disabled="true"]) { background: var(--indigo-600); }
.btn-outline { background: #fff; color: var(--indigo); border-color: #CDD3E0; }
.btn-outline:hover:not([aria-disabled="true"]) { border-color: var(--indigo); background: #F7F8FE; }
.btn-danger .icon { color: var(--danger); }
.btn-xl { min-height: 64px; font-size: 20px; font-family: var(--font-head); font-weight: 700; padding: 14px 28px; border-radius: var(--r-md); }
.btn-xl .icon { width: 24px; height: 24px; }
.btn[aria-disabled="true"], .template[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding: 4px 0 26px; }
.hero::before {
  /* Soft mint shapes behind the hero (brand "illustration & shape" language). */
  content: ""; position: absolute; inset: -84px 0 -40px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 70% at 4% 30%, rgba(167, 243, 208, .35), transparent 70%),
    radial-gradient(35% 60% at 96% 45%, rgba(167, 243, 208, .30), transparent 70%),
    radial-gradient(50% 50% at 50% 0%, rgba(236, 253, 247, .8), transparent 80%);
}
.hero h1 { font-size: clamp(2rem, 4.6vw + .5rem, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.hero h1 .accent { color: var(--teal-text); }
.lead { margin-top: 10px; font-size: clamp(1.125rem, 1vw + .8rem, 1.75rem); color: var(--muted); font-family: var(--font-body); }
.trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px; color: var(--text); font-size: 16px; }
.trust li { display: inline-flex; align-items: center; gap: 10px; }
.trust .icon { color: var(--teal-strong); width: 24px; height: 24px; stroke-width: 1.75; }

/* ---------- Tool layout ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 16px; align-items: stretch; outline: none; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); }

.wheel-card {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 28px 32px 28px;
  background: linear-gradient(180deg, var(--mint-25), #F2FBFB);
  border-color: #DCEFEE;
}
.wheel-wrap { width: 100%; display: flex; justify-content: center; }
.wheel-stage { position: relative; width: min(100%, 470px); aspect-ratio: 1; margin-top: 10px; }
.wheel { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 22px rgba(17, 24, 39, .12)); }
.wheel-rim { fill: #fff; }
.wheel .seg path { stroke: #fff; stroke-width: 3; stroke-linejoin: round; }
.wheel .seg text {
  font-family: var(--font-head); font-weight: 700; fill: var(--ink);
  dominant-baseline: central; pointer-events: none;
}
.wheel-pointer {
  position: absolute; left: 50%; top: -4.5%; width: 13%; transform: translateX(-50%);
  overflow: visible; filter: drop-shadow(0 3px 4px rgba(17, 24, 39, .2)); pointer-events: none;
}
.wheel-pointer path { fill: var(--orange); stroke: #fff; stroke-width: 4; stroke-linejoin: round; }
.wheel-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 27%; aspect-ratio: 1; border-radius: 50%;
  background: var(--indigo); color: #fff; border: 6px solid #fff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, .25);
  font: 700 clamp(18px, 4.6vw, 28px)/1 var(--font-head); cursor: pointer;
  transition: background-color .15s;
}
.wheel-hub:hover:not([aria-disabled="true"]) { background: var(--indigo-600); }
.wheel-hub:focus-visible { box-shadow: 0 0 0 3px var(--indigo), 0 0 0 6px #fff, 0 0 0 8px var(--indigo); }
.wheel-hub[aria-disabled="true"] { cursor: not-allowed; }
.is-spinning .wheel-hub[aria-disabled="true"] { cursor: progress; }

#spin { width: min(100%, 504px); }
.spin-help { color: var(--muted); font-size: 16px; text-align: center; }
.spin-help.is-error { color: var(--danger); font-weight: 500; }

/* Result */
.result {
  width: min(100%, 560px); text-align: center;
  background: #fff; border: 2px solid var(--mint); border-radius: var(--r-lg);
  padding: 18px 20px 20px; box-shadow: var(--shadow);
  animation: pop .25s ease-out;
}
.result-kicker { color: var(--teal-strong); font-weight: 600; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
.result-name {
  margin-top: 2px; font: 800 clamp(1.75rem, 3vw + 1rem, 2.5rem)/1.15 var(--font-head); color: var(--ink);
  overflow-wrap: anywhere; outline: none;
}
.result-note { margin-top: 4px; color: var(--muted); font-size: 14px; min-height: 0; }
.result-note:empty { display: none; }
.result-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.result-actions .btn { min-height: 44px; padding: 8px 16px; font-size: 15px; flex: 1 1 auto; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

/* Editor */
.editor-card { padding: 24px 24px 22px; display: flex; flex-direction: column; }
.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.editor-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.badge { background: #EEF1F7; color: var(--text); border-radius: var(--r-sm); padding: 6px 12px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.badge.is-error { background: #FEF3F2; color: var(--danger); }
.editor-label { display: block; margin: 10px 0 8px; color: var(--indigo); font-weight: 500; }
.options-input {
  width: 100%; min-height: 196px; resize: vertical;
  border: 1px solid #CDD3E0; border-radius: var(--r-md); padding: 12px 16px;
  font-size: 16px; line-height: 1.55; color: var(--ink); background: #fff;
}
.options-input:focus-visible { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(30, 42, 120, .25); }
.options-input[aria-invalid="true"] { border-color: var(--danger); }
.options-input[readonly] { background: var(--surface); color: var(--muted); cursor: not-allowed; }
.field-hint { margin-top: 8px; color: var(--muted); font-size: 14px; }
.field-error { margin-top: 8px; display: flex; gap: 8px; align-items: flex-start; color: var(--danger); font-size: 14px; font-weight: 500; }
.field-error .icon { width: 18px; height: 18px; margin-top: 1px; }

.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }

.settings { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--soft-gray); }
.switch-row { display: flex; align-items: center; gap: 14px; min-height: 48px; cursor: pointer; color: var(--text); }
.switch-row > .icon { color: var(--indigo); opacity: .8; }
.switch-text { flex: 1; }
.switch {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none; cursor: pointer;
  width: 52px; height: 30px; border-radius: 999px; background: #D5DAE3; position: relative;
  transition: background-color .2s;
}
.switch::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(17, 24, 39, .3); transition: transform .2s;
}
.switch:checked { background: var(--teal-strong); }
.switch:checked::before { transform: translateX(22px); }
/* Non-colour cue for the "on" state. */
.switch:checked::after {
  content: ""; position: absolute; left: 10px; top: 9px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.switch:focus-visible { box-shadow: var(--focus); }
.save-status { display: flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--muted); font-size: 14px; }
.save-status .icon { width: 18px; height: 18px; }
.save-status.is-warning { color: var(--orange-600); }

.templates { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--soft-gray); }
.templates h3 { font: 600 16px/1.3 var(--font-body); color: var(--ink); }
.template-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.template {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 8px 12px; border-radius: var(--r-md); border: 1px solid transparent;
  font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s, transform .1s;
}
.template .icon { width: 26px; height: 26px; }
.template:hover:not([aria-disabled="true"]) { border-color: currentColor; }
.template-lunch { background: #FFF1E3; }
.template-lunch .icon { color: var(--orange); }
.template-names { background: #EAF1FF; }
.template-names .icon { color: #2F5BD3; }
.template-activities { background: #E3F9F1; }
.template-activities .icon { color: var(--teal-strong); }

/* ---------- Info sections ---------- */
.info { margin-top: 56px; max-width: 880px; }
.info h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.info p + p { margin-top: 10px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px;
  border-radius: 50%; background: var(--indigo); color: #fff; font: 700 15px/1 var(--font-head);
}
.steps strong, .ideas strong { display: block; color: var(--ink); margin-bottom: 2px; }
.fine { margin-top: 14px; color: var(--muted); font-size: 15px; }
.ideas { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ideas li { border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: var(--r-md); padding: 14px 16px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--soft-gray); }
.footer-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand-small img { width: 112px; }
.footer-tagline { color: var(--muted); font-size: 14px; padding-left: 24px; border-left: 1px solid #CDD3E0; }
.footer-nav { margin-left: auto; display: flex; gap: 28px; font-size: 14px; }
.footer-nav a { color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; padding: 12px 16px 12px 20px; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  font-size: 15px;
}
.toast-action {
  background: transparent; color: var(--mint); border: 1px solid rgba(167, 243, 208, .5); border-radius: var(--r-sm);
  font-weight: 600; padding: 8px 12px; min-height: 40px; cursor: pointer; white-space: nowrap;
}
.toast-action:focus-visible { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--mint); }

/* ---------- Dialog ---------- */
.dialog {
  width: min(560px, calc(100% - 32px)); border: none; border-radius: var(--r-xl); padding: 24px;
  box-shadow: var(--shadow-lg); color: var(--text);
}
.dialog::backdrop { background: rgba(15, 22, 64, .45); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-head h2 { font-size: 22px; font-weight: 800; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); border: none; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface); }
.share-field { display: flex; gap: 8px; }
.share-field input {
  flex: 1; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #CDD3E0; border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); font-size: 14px;
}
.share-field input:focus-visible { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(30, 42, 120, .25); }
.share-status { margin-top: 8px; min-height: 1.5em; font-size: 14px; color: var(--teal-strong); font-weight: 500; }
.share-status.is-error { color: var(--danger); }
.share-privacy { margin-top: 12px; display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; background: var(--surface); border-radius: var(--r-md); padding: 12px; }
.share-privacy .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--indigo); }

.noscript { position: fixed; inset: auto 0 0 0; background: var(--orange-600); color: #fff; text-align: center; padding: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tool { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .wheel-card { padding: 24px 20px; }
}

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .header-inner { gap: 16px; min-height: 64px; }
  .brand img { width: 124px; }
  .site-nav { display: none; }
  .btn-share { min-height: 44px; padding: 8px 14px; }
  .hero { padding: 0 0 16px; }
  .lead { margin-top: 6px; }
  .trust { margin-top: 10px; gap: 4px 16px; font-size: 14px; }
  .trust .icon { width: 18px; height: 18px; }
  .tool { grid-template-columns: 1fr; }
  .wheel-card { gap: 16px; padding: 20px 16px; }
  .wheel-stage { width: min(100%, 420px); }
  .steps, .ideas { grid-template-columns: 1fr; }
  .info { margin-top: 40px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 20px; padding-bottom: 20px; }
  .footer-tagline { padding-left: 0; border-left: none; }
  .footer-nav { margin-left: 0; }
}

@media (max-width: 420px) {
  .btn-share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .btn-share { width: 44px; padding: 0; }
  .editor-head h2 { font-size: 24px; }
  .template-row { grid-template-columns: 1fr; }
  .template { justify-content: flex-start; padding-left: 16px; min-height: 48px; }
  .btn-xl { min-height: 56px; font-size: 18px; }
}

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

@media (forced-colors: active) {
  .wheel .seg path { stroke: CanvasText; }
  .switch { border: 1px solid CanvasText; }
}

/* ---------- 404 ---------- */
.not-found { padding-top: 48px; display: grid; gap: 16px; justify-items: start; }
.not-found h1 { font-size: 36px; font-weight: 800; }
