:root {
  --bg: #f2f5f9;          /* washi: the page, cool and light */
  --paper: #ffffff;       /* cards */
  --paper-2: #f6f8fb;     /* insets inside cards */
  --ink: #0d1b2e;         /* 藍 ai: text and the brand tile */
  --ink-2: #39465a;
  --muted: #5a6577;       /* 4.5:1 or more on --bg, --paper and --paper-2 */
  --line: #dfe5ee;
  --line-strong: #c6d0dd;
  --accent: #1e50a2;      /* 瑠璃 ruri: links, buttons, selection, focus rings (opaque, 3:1 or more) */
  --accent-ink: #ffffff;
  --accent-hover: #17448c;
  --accent-soft: #e8eefb;
  --shu: #d93a24;         /* 朱 shu: the brand sun, Top match, warnings (shapes, not small text) */
  --shu-ink: #b02a17;     /* vermilion text */
  --shu-soft: #fdece8;
  --shu-line: #f2c4b9;
  --ok: #17734a;
  --ok-soft: #e5f3eb;
  --gold: #b07a00;        /* stars (a symbol: 3:1) */
  --gold-ink: #7a5600;    /* gold text, 4.5:1 or more on --gold-soft */
  --gold-soft: #fbf2dc;
  --marker: #fbd5cb;      /* the hero's highlighter */
  --warn-bg: #fff6f3;
  --warn-line: #f3cfc5;
  --danger: #b42318;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px #0d1b2e0a, 0 10px 30px -14px #0d1b2e24;
  --shadow-lift: 0 2px 4px #0d1b2e0d, 0 22px 44px -18px #0d1b2e3d;
  --top-bg: #f2f5f9e0;
  --mark-tile: #0d1b2e;
  --ex: #0d1b2e;
  --ex-ink: #ffffff;
  --shot-edge: #d3dae5;   /* screenshot and logo tile border */
  --top-h: 66px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: "Red Hat Text", "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-display: "Red Hat Display", "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", Meiryo, sans-serif;
  --font-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a111d; --paper: #111a2a; --paper-2: #162135; --ink: #e7ecf4; --ink-2: #b6c1d3; --muted: #8f9bb1;
    --line: #223047; --line-strong: #31415c;
    --accent: #86a7f0; --accent-ink: #0a111d; --accent-hover: #a3bdf5; --accent-soft: #18264a;
    --shu: #ff6e58; --shu-ink: #ff8a77; --shu-soft: #3a1d1a; --shu-line: #6b2f27;
    --ok: #5ccb95; --ok-soft: #12301f; --gold: #e5b543; --gold-ink: #e5b543; --gold-soft: #33280f; --marker: #5a2a22;
    --warn-bg: #24171a; --warn-line: #4d2a2a; --danger: #ff8f84;
    --shadow: 0 1px 2px #00000040, 0 10px 30px -14px #00000080;
    --shadow-lift: 0 2px 4px #00000040, 0 22px 44px -18px #000000b3;
    --top-bg: #0a111de0; --mark-tile: #1b2a45; --shot-edge: #3a4a64;
    color-scheme: dark;
  }
}

/* Line icons (24px, 1.7 stroke) drawn as masks: background-color paints them. */
:root {
  --i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E");
  --i-yen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='m8.8 7.5 3.2 4.3 3.2-4.3M12 11.8v5M9.3 12.6h5.4M9.3 15h5.4'/%3E%3C/svg%3E");
  --i-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3.8 2.5 5.1 5.6.8-4 3.9.9 5.6-5-2.6-5 2.6.9-5.6-4-3.9 5.6-.8z'/%3E%3C/svg%3E");
  --i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.2 5.2 6v5.1c0 4.3 2.9 8 6.8 9.4 3.9-1.4 6.8-5.1 6.8-9.4V6z'/%3E%3Cpath d='m9.2 12.1 2 2 3.8-3.9'/%3E%3C/svg%3E");
  --i-sendout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4.5h5.5V10M19.5 4.5 11 13M17.5 14v3.5a2 2 0 0 1-2 2h-9a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2H10'/%3E%3C/svg%3E");
  --i-swap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.5h14M15 5l3.5 3.5L15 12M19.5 15.5h-14M9 12l-3.5 3.5L9 19'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.8v5M12 16.2v.1'/%3E%3C/svg%3E");
  --i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5.2M12 7.8v.1'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13.5M13 6.5l5.5 5.5-5.5 5.5'/%3E%3C/svg%3E");
  --i-ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16 16 8M9.5 8H16v6.5'/%3E%3C/svg%3E");
  --i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  --i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6.5' y='2.8' width='11' height='18.4' rx='2.6'/%3E%3Cpath d='M10.4 5.6h3.2M11 18.2h2'/%3E%3C/svg%3E");
  --i-android: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 17.5V12a6.5 6.5 0 0 1 13 0v5.5z'/%3E%3Cpath d='M8.3 6.8 6.8 4.6M15.7 6.8l1.5-2.2M9.5 11.2v.1M14.5 11.2v.1M5.5 14h13'/%3E%3C/svg%3E");
  --i-laptop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='5' width='15' height='10.5' rx='1.6'/%3E%3Cpath d='M2.8 18.8h18.4'/%3E%3C/svg%3E");
  --i-bulb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.3 17.6h5.4M10.2 20.6h3.6M12 3.5a5.8 5.8 0 0 0-3.4 10.5c.6.5 1 1.2 1 2v.4h4.8V16c0-.8.4-1.5 1-2A5.8 5.8 0 0 0 12 3.5z'/%3E%3C/svg%3E");
  --i-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5h6.8l3.7 3.7v13.3H7z'/%3E%3Cpath d='M13.5 3.6v3.9h3.9M9.7 12h5M9.7 15.5h5'/%3E%3C/svg%3E");
  --i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.2 3.8h5.6l-.9 5.2 3 3.1H7.1l3-3.1z'/%3E%3Cpath d='M12 12.1v8.1'/%3E%3C/svg%3E");
  --i-bell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.2 16.2V11a5.8 5.8 0 0 1 11.6 0v5.2l1.6 2H4.6z'/%3E%3Cpath d='M10 20.6a2.3 2.3 0 0 0 4 0'/%3E%3C/svg%3E");
  --i-idcard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.2'/%3E%3Ccircle cx='8.8' cy='11.2' r='2.1'/%3E%3Cpath d='M5.8 16.2c.6-1.5 1.7-2.3 3-2.3s2.4.8 3 2.3M14.3 10h3.6M14.3 13.6h3.6'/%3E%3C/svg%3E");
  --i-building: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 20.5V7.5L12 3.6l7.5 3.9v13M3 20.5h18M9.8 20.5v-4.6h4.4v4.6M8.4 10.3h.1M12 10.3h.1M15.6 10.3h.1M8.4 13.4h.1M12 13.4h.1M15.6 13.4h.1'/%3E%3C/svg%3E");
  --i-person: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.2' r='3.6'/%3E%3Cpath d='M5 20c.8-3.6 3.6-5.6 7-5.6s6.2 2 7 5.6'/%3E%3C/svg%3E");
  --i-devices: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.8' y='5' width='12.4' height='9.4' rx='1.4'/%3E%3Cpath d='M1.8 17.6h10.4'/%3E%3Crect x='15.6' y='8.6' width='5.6' height='10.6' rx='1.4'/%3E%3C/svg%3E");
  --i-wallet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8V7a2.5 2.5 0 0 1 2.5-2.5h10V8'/%3E%3Crect x='3.5' y='8' width='17' height='11.5' rx='2.2'/%3E%3Cpath d='M16.2 13.7h.1'/%3E%3C/svg%3E");
  --i-ban: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
  --i-list: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6.5h10M10 12h10M10 17.5h10M4 6.5l1.2 1.2L7.6 5.3M4 12l1.2 1.2 2.4-2.4M4 17.5l1.2 1.2 2.4-2.4'/%3E%3C/svg%3E");
  --i-history: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 1 0 2.4-5.7M4 4.6v3.9h3.9M12 8v4.3l2.9 1.7'/%3E%3C/svg%3E");
  --i-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M3.6 12h16.8M12 3.5c2.3 2.4 3.4 5.2 3.4 8.5s-1.1 6.1-3.4 8.5c-2.3-2.4-3.4-5.2-3.4-8.5S9.7 5.9 12 3.5z'/%3E%3C/svg%3E");
  --i-route: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='2.3'/%3E%3Ccircle cx='18' cy='18' r='2.3'/%3E%3Cpath d='M8.3 6H15a3.5 3.5 0 0 1 0 7H9a3.5 3.5 0 0 0 0 7h6.7'/%3E%3C/svg%3E");
  --i-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v4M12 16.5v4M3.5 12h4M16.5 12h4M6 6l2.6 2.6M15.4 15.4 18 18M18 6l-2.6 2.6M8.6 15.4 6 18'/%3E%3C/svg%3E");
  --i-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12h11'/%3E%3C/svg%3E");
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.3'/%3E%3Cpath d='m15.5 15.5 4.5 4.5'/%3E%3C/svg%3E");
  --i-check-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
:root {
  --i-clock-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e50a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E");
  --i-yen-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e50a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='m8.8 7.5 3.2 4.3 3.2-4.3M12 11.8v5M9.3 12.6h5.4M9.3 15h5.4'/%3E%3C/svg%3E");
  --i-sendout-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e50a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4.5h5.5V10M19.5 4.5 11 13M17.5 14v3.5a2 2 0 0 1-2 2h-9a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2H10'/%3E%3C/svg%3E");
  --i-swap-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e50a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.5h14M15 5l3.5 3.5L15 12M19.5 15.5h-14M9 12l-3.5 3.5L9 19'/%3E%3C/svg%3E");
  --i-star-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e50a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3.8 2.5 5.1 5.6.8-4 3.9.9 5.6-5-2.6-5 2.6.9-5.6-4-3.9 5.6-.8z'/%3E%3C/svg%3E");
  --i-dash-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e50a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12h11'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    --i-check-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a111d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    --i-clock-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386a7f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E");
    --i-yen-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386a7f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='m8.8 7.5 3.2 4.3 3.2-4.3M12 11.8v5M9.3 12.6h5.4M9.3 15h5.4'/%3E%3C/svg%3E");
    --i-sendout-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386a7f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4.5h5.5V10M19.5 4.5 11 13M17.5 14v3.5a2 2 0 0 1-2 2h-9a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2H10'/%3E%3C/svg%3E");
    --i-swap-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386a7f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.5h14M15 5l3.5 3.5L15 12M19.5 15.5h-14M9 12l-3.5 3.5L9 19'/%3E%3C/svg%3E");
    --i-star-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386a7f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3.8 2.5 5.1 5.6.8-4 3.9.9 5.6-5-2.6-5 2.6.9-5.6-4-3.9 5.6-.8z'/%3E%3C/svg%3E");
    --i-dash-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386a7f0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12h11'/%3E%3C/svg%3E");
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 64px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  /* A word longer than its line (a page address or an email in a step, "coincheck.com/ja/carf_informations") breaks
     instead of pushing the page sideways on a phone. */
  overflow-wrap: break-word;
}
:lang(ja) { line-break: strict; }
body:lang(ja) { line-height: 1.85; letter-spacing: .01em; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: .02em; font-feature-settings: "palt" 1; }
/* Japanese lines break between phrases, not inside words (Chrome; elsewhere the usual rules). */
h1:lang(ja), h2:lang(ja), h3:lang(ja), .lede:lang(ja), .facts dd:lang(ja), .kf-lead:lang(ja), .btn:lang(ja), .sign:lang(ja), .ann-title { word-break: auto-phrase; }
p { margin: 0; }
strong, b { font-weight: 700; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.sr-only, .ann-sr { 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; left: 12px; top: -80px; z-index: 50; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 10px; }
/* A line icon drawn by a pseudo-element: set --i to one of the --i-* masks. */
.ex-hero .facts > div::before, .kf-sub::before, .kf-holds li::before, .kf-rule > dt::before,
.dev::before, .btn-find::after, .cta::after, .ex-card .go, .how-rank-facts::before, .how-rank-link a::before,
.note::before, .tip b::before, .step-guide a::before, .guide-link a::before, .sources a::before, .qa summary::after, .q-form-note::before,
.empty h2::before, .error::before, .ann-heading::before, .ann-pin::before, .ann-empty::before, .top-nav .lang::before,
.excluded summary::before, .works::before, ul.checks li::before, ul.crosses li::before, .status::before {
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.sign {
  display: flex; align-items: center; gap: 10px; margin: 0 0 6px;
  font: 600 12px/1.4 var(--font-ja); letter-spacing: .1em; color: var(--muted);
}
.sign::before { content: ""; flex: none; width: 18px; height: 2px; border-radius: 2px; background: var(--shu); }
.sign:lang(en) { font: 800 11.5px/1.4 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }

/* ------------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 20; background: var(--top-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--top-h); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; border-radius: 12px; }
.brand-mark { flex: none; width: 36px; height: 36px; display: block; }
.brand-mark .bm-tile { fill: var(--mark-tile); }
.brand-mark .bm-sun { fill: #ec4a30; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 800 18.5px/1.15 var(--font-display); letter-spacing: -.015em; white-space: nowrap; }
.brand-tag { font: 500 11px/1.4 var(--font-ja); letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.top-nav { display: flex; align-items: center; gap: 2px; font-size: 14.5px; font-weight: 500; }
.top-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 13px; border-radius: 999px; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease); }
.top-nav a:hover { background: var(--paper); color: var(--ink); }
.top-nav .lang { margin-left: 8px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font-weight: 700; }
.top-nav .lang::before { content: ""; --i: var(--i-globe); width: 16px; height: 16px; background: var(--muted); }
@media (max-width: 920px) { .top-nav a:not(.lang) { display: none; } }
@media (max-width: 400px) { .brand-tag { letter-spacing: .06em; } }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px;
  font: 700 15.5px/1.25 var(--font); text-align: center; text-decoration: none; cursor: pointer;
  color: var(--accent-ink); background: var(--accent); border: 1px solid transparent; border-radius: 999px;
  box-shadow: 0 1px 2px #0d1b2e1f, 0 10px 20px -12px var(--accent);
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-quiet { color: var(--ink); background: var(--paper); border-color: var(--line-strong); box-shadow: none; }
.btn-quiet:hover { background: var(--paper); border-color: var(--ink-2); }

/* ------------------------------------------------------------------ home: layout */
.home {
  display: grid; grid-template-columns: minmax(0, 1fr) 368px; column-gap: 44px; align-items: start;
  grid-template-areas: "hero side" "finder side" "rank side" "all side";
  padding-bottom: 24px;
}
.home .wrap { max-width: none; padding: 0; margin: 0; }
.hero { grid-area: hero; padding: 52px 0 28px; }
.finder { grid-area: finder; scroll-margin-top: calc(var(--top-h) + 20px); }
.home-side { grid-area: side; position: sticky; top: calc(var(--top-h) + 24px); margin-top: 52px; min-width: 0; }
.how-rank { grid-area: rank; }
.all { grid-area: all; }
@media (max-width: 1100px) {
  .home { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "finder" "side" "rank" "all"; }
  .home-side { position: static; margin-top: 44px; }
}

/* hero */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 11px; border-radius: 999px;
  font: 800 12px/1.3 var(--font-display); letter-spacing: .09em; text-transform: uppercase;
  color: var(--shu-ink); background: var(--shu-soft);
}
.eyebrow:lang(ja) { font: 700 13px/1.3 var(--font-ja); letter-spacing: .06em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--shu); box-shadow: 0 0 0 3px #d93a2433; }
.hero h1 { margin: 20px 0 18px; font-size: clamp(32px, 4.3vw, 54px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.hero h1:lang(ja) { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.3; letter-spacing: .01em; }
.hero h1 strong { font-weight: 800; background: linear-gradient(transparent 60%, var(--marker) 60%, var(--marker) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { max-width: 62ch; font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }

/* ------------------------------------------------------------------ panels, sections */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 26px; }
.section-title { font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
.home .how-rank, .home .all { margin-top: 64px; scroll-margin-top: calc(var(--top-h) + 20px); }

/* ------------------------------------------------------------------ the finder */
.finder-form { display: grid; grid-template-columns: minmax(130px, 168px) minmax(0, 1fr); gap: 20px 22px; align-items: end; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend {
  display: block; padding: 0; margin: 0 0 10px; font: 800 12px/1.4 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.field > label:lang(ja), .field > legend:lang(ja) { font: 700 13.5px/1.4 var(--font-ja); letter-spacing: .04em; text-transform: none; }
.field legend .hint { margin-left: 6px; font: 500 12.5px/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--muted); }
.age-row { position: relative; }
.age-row input {
  width: 100%; height: 58px; padding: 0 74px 0 18px; margin: 0;
  font: 800 28px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink);
  background: var(--paper-2); border: 1.5px solid var(--line-strong); border-radius: 16px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
  -moz-appearance: textfield; appearance: textfield;
}
.age-row input::-webkit-outer-spin-button, .age-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.age-row input::placeholder { color: var(--muted); opacity: .55; }
.age-row input:hover { border-color: var(--muted); }
.age-row input:focus { background: var(--paper); border-color: var(--accent); }
.age-row input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.age-unit { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 14.5px; font-weight: 600; color: var(--muted); pointer-events: none; }
.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg label { flex: 1 1 0; min-width: 118px; margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.dev {
  display: flex; align-items: center; gap: 9px; height: 58px; padding: 0 12px 0 13px; cursor: pointer; user-select: none; white-space: nowrap;
  font-size: 15.5px; font-weight: 700; color: var(--ink-2); background: var(--paper-2);
  border: 1.5px solid var(--line-strong); border-radius: 16px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.dev::before { content: ""; flex: none; width: 22px; height: 22px; background: var(--muted); transition: background-color .2s var(--ease); }
.dev-ios::before { --i: var(--i-phone); }
.dev-android::before { --i: var(--i-android); }
.dev-web::before { --i: var(--i-laptop); }
.dev::after { content: ""; flex: none; width: 20px; height: 20px; margin-left: auto; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--paper) center / 12px no-repeat; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .25s var(--ease); }
.seg label:hover .dev { border-color: var(--muted); }
.seg input:checked + .dev { color: var(--ink); background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.seg input:checked + .dev::before { background: var(--accent); }
.seg input:checked + .dev::after { background-color: var(--accent); background-image: var(--i-check-on); border-color: var(--accent); transform: scale(1.06); }
.seg input:focus-visible + .dev { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-find { grid-column: 1 / -1; justify-self: end; min-width: 240px; min-height: 56px; padding: 0 26px 0 30px; font-size: 16px; }
.btn-find::after { content: ""; --i: var(--i-arrow); width: 18px; height: 18px; background: currentColor; transition: transform .25s var(--ease); }
.btn-find:hover::after { transform: translateX(3px); }
.age-row input[aria-invalid="true"], #finder-devices[aria-invalid="true"] .dev { border-color: var(--danger); }
.error { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 8px; color: var(--danger); font-weight: 700; font-size: 14.5px; }
.error::before { content: ""; --i: var(--i-alert); flex: none; width: 18px; height: 18px; margin-top: 3px; background: currentColor; }
@media (max-width: 860px) {
  .finder-form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .btn-find { width: 100%; }
}

/* ------------------------------------------------------------------ results */
.results { scroll-margin-top: calc(var(--top-h) + 20px); }
.results:not(:empty) { margin-top: 36px; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 18px; }
.results-head .section-title { margin: 0; font-size: 24px; }
.how-rank-link { margin: 0; font-size: 14.5px; font-weight: 700; }
.how-rank-link a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; }
.how-rank-link a:hover { text-decoration: underline; }
.how-rank-link a::before { content: ""; --i: var(--i-info); width: 17px; height: 17px; background: currentColor; }
.results > .note { margin-bottom: 18px; }
.matches, .ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.ex-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); }
.match, .ex-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 26px 22px 20px;
  color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
/* The exchange's colour as a short "line" tab on the top edge, like a transit line's colour. */
.match::before, .ex-card::before { content: ""; position: absolute; top: -1px; left: 22px; width: 46px; height: 5px; border-radius: 0 0 5px 5px; background: var(--ex); }
.match:hover, .ex-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.match:focus-visible, .ex-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.match-head, .ex-card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.match h3, .ex-card h3 { min-width: 0; font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.match > p:not([class]) { flex: 1; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.ex-card > p { flex: 1; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
/* Top matches: every eligible exchange within half a star of the best (there can be several). */
.match-top { border-color: var(--shu-line); }
.match-top .match-head { padding-right: 112px; }
.badge {
  position: absolute; top: 20px; right: 18px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px;
  font: 800 11px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--shu-ink);
  background: var(--shu-soft); border-radius: 999px;
}
.badge:lang(ja) { font: 700 12px/1.2 var(--font-ja); letter-spacing: .04em; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--shu); }
/* Why a card ranks where it does (the server's reasons), or "Not rated yet". */
.match .why { list-style: none; margin: 2px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line-strong); display: grid; gap: 7px; font-size: 13.5px; line-height: 1.45; }
.why li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.why-text { color: var(--ink); }
.why-sep { display: none; }
.why-score { flex: none; padding: 3px 9px 3px 7px; border-radius: 999px; font: 800 12.5px/1.2 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink); background: var(--gold-soft); }
.why-star { color: var(--gold); margin-right: 2px; }
.match p.why-unrated { flex: none; align-self: flex-start; margin-top: 2px; padding: 3px 11px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 999px; }
.match .works { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.works::before { content: ""; --i: var(--i-devices); flex: none; width: 17px; height: 17px; background: var(--muted); }
.cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14.5px; font-weight: 700; color: var(--accent); }
.cta::after { content: ""; --i: var(--i-arrow); width: 16px; height: 16px; background: currentColor; transition: transform .3s var(--ease); }
.match:hover .cta::after { transform: translateX(4px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip { display: inline-flex; align-items: center; padding: 2px 10px; font-size: 12px; font-weight: 600; line-height: 1.6; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; }
.chip-age { color: var(--ink); background: var(--accent-soft); border-color: transparent; }
.excluded { margin-top: 20px; font-size: 14.5px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.excluded summary { display: flex; align-items: center; gap: 8px; padding: 14px 18px; cursor: pointer; font-weight: 700; list-style: none; border-radius: 16px; }
.excluded summary::-webkit-details-marker { display: none; }
.excluded summary::before { content: ""; --i: var(--i-chevron); width: 18px; height: 18px; background: var(--muted); transform: rotate(-90deg); transition: transform .25s var(--ease); }
.excluded[open] summary::before { transform: none; }
.excluded ul { margin: 0; padding: 0 18px 16px 44px; display: grid; gap: 6px; }
.excluded a { font-weight: 700; color: var(--ink); }
.empty { text-align: left; }
.empty h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 21px; }
.empty h2::before { content: ""; --i: var(--i-search); flex: none; width: 24px; height: 24px; background: var(--accent); }
.empty p { color: var(--ink-2); max-width: 60ch; }
.status { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 2px 0; padding: 5px 12px 5px 10px; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--shu-ink); background: var(--shu-soft); border-radius: 999px; }
.status::before { content: ""; --i: var(--i-alert); flex: none; width: 15px; height: 15px; background: currentColor; }
/* The results arrive in a short cascade. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.results-head, .results .match, .results .empty, .excluded { animation: rise .5s var(--ease) both; animation-delay: calc(var(--n, 0) * 45ms); }

/* ------------------------------------------------------------------ how we rank */
.how-rank-body { padding: 30px; }
.how-rank-intro { max-width: 70ch; font-size: 16.5px; color: var(--ink-2); }
.how-rank-list { list-style: none; margin: 20px 0 22px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.how-rank-list li { position: relative; margin: 0; padding: 16px 0 16px 58px; font-size: 15px; line-height: 1.7; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.how-rank-list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft) center / 22px no-repeat; }
.how-rank-list strong { font-weight: 800; color: var(--ink); }
.how-rank-list .hr-speed::before { background-image: var(--i-clock-c); }
.how-rank-list .hr-limits::before { background-image: var(--i-yen-c); }
.how-rank-list .hr-overall::before { background-image: var(--i-star-c); }
.how-rank-list .hr-unrated::before { background-image: var(--i-dash-c); }
.how-rank-facts { position: relative; padding: 16px 18px 16px 54px; font-size: 14.5px; color: var(--ink); background: var(--ok-soft); border-radius: 16px; }
.how-rank-facts::before { content: ""; --i: var(--i-shield); position: absolute; left: 18px; top: 16px; width: 22px; height: 22px; background: var(--ok); }
@media (max-width: 760px) {
  .how-rank-body { padding: 20px; }
}

/* ------------------------------------------------------------------ all exchanges */
.ex-card { padding: 24px 20px 18px; gap: 12px; }
.ex-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.ex-card .go { --i: var(--i-arrow); flex: none; width: 18px; height: 18px; background: var(--muted); transition: transform .3s var(--ease), background-color .3s var(--ease); }
.ex-card:hover .go { transform: translateX(4px); background: var(--accent); }

/* ------------------------------------------------------------------ logos */
/* The exchange's logo fitted into a white rounded tile with a hairline edge (so dark logos and white ones both
   read on light and dark pages), or its monogram on the exchange's colour. Decorative: the name is always beside
   it. The same rules are in editor.css for the admin pages. */
.ex-logo { --logo: 40px; display: inline-grid; place-items: center; flex: none; width: var(--logo); height: var(--logo); border-radius: calc(var(--logo) * .26); background: #ffffff; border: 1px solid var(--shot-edge); overflow: hidden; }
.ex-logo img { display: block; width: 100%; height: 100%; object-fit: contain; padding: calc(var(--logo) * .12); }
.ex-logo--24 { --logo: 24px; }
.ex-logo--28 { --logo: 28px; }
.ex-logo--40 { --logo: 40px; }
.ex-logo--56 { --logo: 56px; }
.ex-logo--mono { background: var(--ex); color: var(--ex-ink); font: 800 calc(var(--logo) * .44)/1 var(--font-display); letter-spacing: -.02em; }
.ex-logo--mono2 { font-size: calc(var(--logo) * .36); }

/* ------------------------------------------------------------------ official notices (the home page's right column) */
.ann {
  display: flex; flex-direction: column; min-width: 0; max-height: calc(100vh - var(--top-h) - 48px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.ann-head { padding: 22px 22px 14px; }
.ann-heading { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.ann-heading::before { content: ""; --i: var(--i-bell); flex: none; width: 22px; height: 22px; background: var(--shu); }
.ann-intro { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.ann-empty { position: relative; margin: 0 22px 8px; padding: 10px 12px 10px 38px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); background: var(--paper-2); border-radius: 12px; }
.ann-empty::before { content: ""; --i: var(--i-info); position: absolute; left: 12px; top: 11px; width: 17px; height: 17px; background: var(--muted); }
.ann-list { flex: 1 1 auto; min-height: 0; margin: 0; padding: 4px 10px 6px; list-style: none; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ann-item { position: relative; padding: 14px 12px; border-radius: 14px; transition: background-color .2s var(--ease); }
.ann-item + .ann-item::before { content: ""; position: absolute; top: 0; left: 12px; right: 12px; height: 1px; background: var(--line); }
.ann-item:hover, .ann-item:focus-within { background: var(--paper-2); }
.ann-item:hover::before, .ann-item:hover + .ann-item::before { opacity: 0; }
.ann-item--pinned { background: var(--accent-soft); }
.ann-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 13px; line-height: 1.4; }
.ann-ex { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; color: var(--ink); }
.ann-ex-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-date { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ann-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; }
.ann-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; font-size: 11.5px; font-weight: 700; line-height: 1.6; border-radius: 999px; color: var(--ink-2); background: var(--paper-2); }
.ann-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ann-chip--transfer-security { color: var(--accent); background: var(--accent-soft); }
.ann-chip--cooling-off { color: var(--gold-ink); background: var(--gold-soft); }
.ann-chip--new-accounts { color: var(--ok); background: var(--ok-soft); }
.ann-chip--scam-warning { color: var(--shu-ink); background: var(--shu-soft); }
.ann-item--pinned .ann-chip { background: var(--paper); }
.ann-pin { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.ann-pin::before { content: ""; --i: var(--i-pin); width: 14px; height: 14px; background: currentColor; }
.ann-link { display: block; font: 500 14.5px/1.65 var(--font-ja); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
/* The whole row is the link's target. */
.ann-link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.ann-item:hover .ann-title { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .22em; }
.ann-link:focus-visible { outline: none; }
.ann-link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; }
.ann-lang { font: 500 12px/1.5 var(--font); color: var(--muted); white-space: nowrap; }
.ann-ext { color: var(--accent); font-weight: 700; }
.ann-note { padding: 12px 22px 18px; font-size: 12px; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--line); }
.ann-note time { color: var(--ink-2); font-weight: 600; }
@media (max-width: 1100px) {
  .ann { max-height: none; }
  .ann-list { overflow: visible; }
}

/* ------------------------------------------------------------------ exchange page: hero */
.ex-hero { position: relative; overflow: hidden; padding: 22px 0 36px; background: var(--paper); border-bottom: 1px solid var(--line); }
.ex-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--ex); }
/* A faint wash of the exchange's colour in the corner. */
.ex-hero::after { content: ""; position: absolute; top: -220px; right: -160px; width: 620px; height: 520px; border-radius: 50%; background: var(--ex); opacity: .07; filter: blur(70px); pointer-events: none; }
.ex-hero .wrap { position: relative; z-index: 1; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.ex-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 44px; align-items: start; margin-top: 18px;
  grid-template-areas: "title facts" "lede facts" "status facts" "actions facts" "updated facts" ". facts";
}
.ex-title { grid-area: title; display: flex; align-items: center; gap: 16px; font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.ex-title > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.ex-hero .lede { grid-area: lede; margin-top: 14px; }
.ex-hero .status { grid-area: status; margin-top: 14px; }
.ex-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.ex-updated { grid-area: updated; margin-top: 14px; }
.ex-hero .facts { grid-area: facts; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.ex-hero .facts > div { position: relative; padding: 16px 16px 16px 54px; background: var(--paper); min-width: 0; }
.ex-hero .facts > div::before { content: ""; position: absolute; left: 16px; top: 17px; width: 24px; height: 24px; background: var(--ex); }
.fact-age::before { --i: var(--i-person); }
.fact-devices::before { --i: var(--i-devices); }
.fact-operator::before { --i: var(--i-building); }
.fact-fsa::before { --i: var(--i-idcard); }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 700; font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; }
.facts dd.chips { margin-top: 6px; font-weight: 600; }
/* 「関東財務局長 第00004号」 breaks at its space only, never inside the number ("第00004" / "号"). */
.facts .fact-fsa dd { word-break: keep-all; }
.fact-fsa dd { font-family: var(--font-ja); font-weight: 600; font-size: 14px; }
@media (max-width: 960px) {
  .ex-hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "lede" "status" "facts" "actions" "updated"; }
  .ex-hero .facts { margin-top: 24px; }
}
@media (max-width: 520px) {
  .ex-hero .facts { grid-template-columns: minmax(0, 1fr); }
  .ex-title { gap: 12px; }
  .ex-actions .btn { width: 100%; }
}

/* ------------------------------------------------------------------ exchange page: contents bar and sections */
.ex-body { padding-top: 8px; padding-bottom: 56px; max-width: 1120px; }
.toc {
  position: sticky; top: var(--top-h); z-index: 10; display: flex; gap: 6px; margin: 0 -24px; padding: 12px 24px;
  overflow-x: auto; scrollbar-width: none; background: var(--top-bg); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
}
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s var(--ease), color .2s var(--ease); }
.toc a:hover { color: var(--ink); border-color: var(--ex); }
.block { margin-top: 20px; padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); scroll-margin-top: calc(var(--top-h) + 72px); }
.block h2 { margin: 0 0 18px; font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.block > .sign + h2, .block .sign + h2 { margin-top: 0; }
.block ul { margin: 0; padding-left: 1.2em; }
.block li + li { margin-top: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.terms-box ul { list-style: none; padding: 0; }
.terms-box li { position: relative; padding-left: 20px; }
.terms-box li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--ex); }
.warn-box { padding: 22px 24px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 18px; }
.warn-box .sign::before { background: var(--shu); }
ul.checks, ul.crosses { list-style: none; padding-left: 0; }
ul.checks li, ul.crosses li { position: relative; padding-left: 32px; }
ul.checks li::before, ul.crosses li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; }
ul.checks li::before { --i: var(--i-check); background: var(--ok); }
ul.crosses li::before { --i: var(--i-alert); background: var(--shu); }
.highlights ul.checks, #tips ul.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.highlights ul.checks li + li, #tips ul.checks li + li { margin-top: 0; }
@media (max-width: 760px) { .highlights ul.checks, #tips ul.checks { grid-template-columns: minmax(0, 1fr); } }
.note { position: relative; margin: 0 0 18px; padding: 14px 16px 14px 46px; font-size: 14.5px; line-height: 1.65; color: var(--ink); background: var(--accent-soft); border-radius: 14px; }
.note::before { content: ""; --i: var(--i-info); position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; background: var(--accent); }
/* Links to the exchange's own pages (official, so they open in a new tab). The steps' guide links are only their
   source now (the substeps carry the procedure): small and muted. */
.guide-link { margin: -8px 0 20px; font-size: 13.5px; }
.guide-link a, .step-guide a, .kf-source { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; }
.guide-link a:hover, .step-guide a:hover, .kf-source:hover { color: var(--ink); text-decoration: underline; }
.guide-link a::before, .step-guide a::before { content: ""; --i: var(--i-doc); width: 15px; height: 15px; background: currentColor; }
.qa-guide { margin: 0 0 16px; font-size: 14px; }
.qa-guide a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--accent); text-decoration: none; }
.qa-guide a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ key facts: a spec sheet, one row per fact */
.key-facts .kf { display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: 32px; padding: 22px 0; border-top: 1px solid var(--line); }
.key-facts .kf:last-child { padding-bottom: 0; }
.key-facts .kf > * { grid-column: 2; }
.key-facts .kf > h3 { grid-column: 1; grid-row: 1 / span 20; display: flex; align-items: flex-start; gap: 12px; font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.kf > h3::before { content: ""; flex: none; width: 36px; height: 36px; margin-top: -6px; border-radius: 10px; background: var(--accent-soft) center / 20px no-repeat; }
.kf-activation > h3::before { background-image: var(--i-clock-c); }
.kf-limits > h3::before { background-image: var(--i-yen-c); }
.kf-send-out > h3::before { background-image: var(--i-sendout-c); }
.kf-transfers > h3::before { background-image: var(--i-swap-c); }
.kf-lead { font: 800 30px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.kf-lead:lang(ja) { font-size: 27px; letter-spacing: .01em; }
.kf-text { margin-top: 8px; color: var(--ink-2); max-width: 72ch; }
.kf-lead + .kf-text { margin-top: 10px; }
.kf-src { margin-top: 10px; font-size: 13px; }
.kf-source { font-size: 13px; }
.kf-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.kf-table th, .kf-table td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.kf-table thead th { padding-top: 0; border-top: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.kf-table tbody th { width: 34%; font-weight: 700; color: var(--ink); }
.block .kf-limit-list { list-style: none; margin: 0; padding: 0; }
.kf-limit-list li + li { margin-top: 6px; }
.kf-amount { font-weight: 800; font-family: var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.kf-note { color: var(--ink-2); }
.kf-none { color: var(--muted); }
.kf-limit-list .kf-source { font-size: 12px; margin-left: 2px; }
.kf-sub { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: 14px; font-weight: 700; color: var(--ok); }
.kf-sub::before { content: ""; --i: var(--i-shield); width: 20px; height: 20px; background: currentColor; }
.block .kf-holds { list-style: none; padding: 14px 16px; margin: 0; display: grid; gap: 10px; background: var(--ok-soft); border-radius: 14px; }
.block .kf-holds li { position: relative; margin: 0; padding-left: 28px; color: var(--ink); font-size: 14.5px; }
.kf-holds li::before { content: ""; --i: var(--i-check); position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background: var(--ok); }
.kf-rules { margin: 0; display: grid; gap: 14px; }
.kf-rule { position: relative; padding-left: 30px; }
.kf-rule > dt { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.kf-rule > dt::before { content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; background: var(--muted); --i: var(--i-list); }
/* Each rule's icon follows what it is, not where it sits: any of the three can be missing. */
.kf-rule-wallets > dt::before { --i: var(--i-wallet); }
.kf-rule-blocked > dt::before { --i: var(--i-ban); }
.kf-rule > dd { margin: 3px 0 0; color: var(--ink-2); }
.kf-yes, .kf-no { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 9px; font-weight: 700; border-radius: 999px; }
.kf-rule > dd.kf-yes { color: var(--ok); background: var(--ok-soft); }
.kf-rule > dd.kf-no { color: var(--shu-ink); background: var(--shu-soft); }
@media (max-width: 760px) {
  .key-facts .kf { grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
  .key-facts .kf > *, .key-facts .kf > h3 { grid-column: 1; grid-row: auto; }
  .key-facts .kf > h3 { margin-bottom: 12px; align-items: center; }
  .kf > h3::before { margin-top: 0; }
  .kf-table tbody th { width: 40%; }
}

/* ------------------------------------------------------------------ steps: a route line in the exchange's colour */
.steps { list-style: none; margin: 8px 0 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 20px; padding-bottom: 38px; }
.step:last-child { padding-bottom: 0; }
/* The line from this station to the next. */
.step:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: -2px; width: 4px; border-radius: 4px; background: var(--ex); }
.step-n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px;
  font: 800 18px/1 var(--font-display); color: var(--ink); background: var(--paper); border: 4px solid var(--ex); border-radius: 50%;
}
/* The last step is the terminus: a filled station with a ring, like an interchange. */
.step:last-child .step-n { color: var(--ex-ink); background: var(--ex); box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ex); }
.step-text { min-width: 0; padding-top: 7px; }
.step h3 { margin: 0 0 6px; font-size: 19.5px; font-weight: 700; }
.step-text > p:not([class]) { color: var(--ink-2); max-width: 70ch; }
.step .substeps { list-style: none; counter-reset: sub; margin: 14px 0 0; padding: 4px 0; max-width: 70ch; }
.step .substeps li { counter-increment: sub; position: relative; margin: 0; padding: 6px 0 6px 38px; color: var(--ink); font-size: 15px; line-height: 1.65; }
.step .substeps li + li { margin-top: 0; border-top: 1px dashed var(--line); }
.step .substeps li::before {
  content: counter(sub); position: absolute; left: 0; top: 8px; width: 24px; height: 24px; display: grid; place-items: center;
  font: 800 12px/1 var(--font-display); color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: 8px;
}
.tip { margin-top: 14px !important; padding: 12px 16px; max-width: 70ch; font-size: 14.5px; line-height: 1.6; color: var(--ink); background: var(--gold-soft); border-radius: 14px; }
.tip b { margin-right: 6px; font-weight: 800; }
.tip b::before { content: ""; --i: var(--i-bulb); display: inline-block; width: 17px; height: 17px; margin-right: 5px; vertical-align: -3px; background: var(--gold); }
.step-guide { margin-top: 12px !important; font-size: 13px; }
/* Step pictures: a screenshot or an illustration beside the text on wide screens, under it on phones. */
.step.has-pic { grid-template-columns: 46px minmax(0, 1fr) auto; column-gap: 24px; }
.step-shot, .step-ill { margin: 0; align-self: start; min-width: 0; }
.step-shot { width: 260px; max-width: 100%; }
.step-shot a { display: block; border-radius: 24px; }
.step-shot a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* A phone screenshot: rounded like the phone's screen, a hairline edge so white and black screens both stand out. */
.step-shot img { display: block; width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--shot-edge); background: var(--bg); box-shadow: var(--shadow); }
.step-ill { width: 210px; max-width: 100%; padding: 12px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px; }
.step-ill svg { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .step, .step.has-pic { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  .step-n { width: 40px; height: 40px; font-size: 16px; border-width: 3.5px; }
  .step:not(:last-child)::before { left: 18px; top: 38px; }
  .step-shot, .step-ill { grid-column: 2; margin-top: 14px; }
  .step-shot { width: min(260px, 100%); }
  .step-ill { width: min(210px, 100%); }
}

/* ------------------------------------------------------------------ application questions */
#questions { counter-reset: qa; }
.qa { counter-increment: qa; margin-top: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.qa:hover { border-color: var(--line-strong); }
.qa[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.qa summary { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 700; line-height: 1.5; border-radius: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q" counter(qa); flex: none; min-width: 36px; padding: 3px 7px; text-align: center; font: 800 12.5px/1.4 var(--font-display); color: var(--accent); background: var(--accent-soft); border-radius: 8px; margin-top: 1px; }
.qa summary::after { content: ""; --i: var(--i-chevron); flex: none; width: 20px; height: 20px; margin: 2px 0 0 auto; background: var(--muted); transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(180deg); }
.qa-q { min-width: 0; overflow-wrap: anywhere; }
.qa > :not(summary) { margin-left: 68px; margin-right: 20px; }
.qa[open] > :not(summary) { animation: rise .35s var(--ease) both; }
.qa dl { margin-top: 0; margin-bottom: 18px; }
.qa dt { margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.qa dt:lang(ja) { text-transform: none; font-size: 12.5px; }
.qa dt:first-child { margin-top: 0; }
.qa dd { margin: 4px 0 0; color: var(--ink-2); max-width: 72ch; }
.qa dt.qa-answer { color: var(--accent); }
.qa dd.qa-answer { padding: 12px 16px; color: var(--ink); background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; }
/* A question's answer choices drawn like the official form: a field title and empty radio circles. Purely a
   picture (a list, not inputs), and no choice is ever marked: the honest answer is the visitor's own. */
.q-form { margin: 0 0 18px; max-width: 580px; }
.q-form-card { padding: 16px 16px 14px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; }
.q-form-label { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.block .q-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.block .q-options li { position: relative; margin: 0; padding: 9px 14px 9px 42px; font-size: 14.5px; line-height: 1.55; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px; overflow-wrap: anywhere; }
.q-options li::before { content: ""; position: absolute; left: 14px; top: 12px; width: 16px; height: 16px; border: 2px solid var(--muted); border-radius: 50%; background: var(--paper); }
.q-opt-ja { display: inline-block; font-size: 13px; color: var(--muted); }
.q-form-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.q-form-note::before { content: ""; --i: var(--i-info); flex: none; width: 15px; height: 15px; margin-top: 3px; background: currentColor; }
/* A question's screenshot: the step screenshot's look, under the explanation. */
.q-shot { margin: 0 0 18px; }
@media (max-width: 640px) {
  .qa summary { padding: 14px; gap: 10px; }
  .qa > :not(summary) { margin-left: 14px; margin-right: 14px; }
}

/* ------------------------------------------------------------------ changes and sources */
.ex-end { margin-top: 20px; align-items: start; gap: 20px; }
.ex-end > .block { margin-top: 0; }
.ex-end:not(.grid-2) > .block + .block { margin-top: 20px; }
.changelog { list-style: none; padding: 0 !important; font-size: 14.5px; }
.changelog li { position: relative; display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 4px 14px; padding-left: 20px; }
.changelog li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--ex); }
.changelog li + li { margin-top: 12px; }
.changelog time { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.sources ul { list-style: none; padding: 0; }
.sources li + li { margin-top: 6px; }
.sources a { display: inline-flex; align-items: flex-start; gap: 7px; font-size: 13.5px; color: var(--muted); text-decoration: none; word-break: break-all; }
.sources a:hover { color: var(--ink); text-decoration: underline; }
.sources a::before { content: ""; --i: var(--i-doc); flex: none; width: 15px; height: 15px; margin-top: 3px; background: currentColor; }
@media (max-width: 520px) { .changelog li { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ error page */
.error-page { padding-top: 64px; padding-bottom: 32px; }
.error-page .panel { max-width: 580px; padding: 36px; }
.error-page h1 { margin: 6px 0 10px; font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.error-page .panel > p + p { margin-top: 10px; }
.error-page .btn { margin-top: 12px; }

/* ------------------------------------------------------------------ footer */
.foot { margin-top: 72px; padding: 40px 0 48px; background: var(--paper); border-top: 1px solid var(--line); font-size: 13.5px; }
.foot-in { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 16px 48px; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-mark { width: 40px; height: 40px; }
.foot-brand p { display: flex; flex-direction: column; }
.foot-name { font: 800 17px/1.2 var(--font-display); letter-spacing: -.01em; }
.foot-tag { font-size: 12.5px; color: var(--muted); }
.disclaimer { max-width: 78ch; color: var(--ink-2); line-height: 1.75; }
.foot-meta { grid-column: 2; color: var(--muted); }
@media (max-width: 760px) {
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-meta { grid-column: 1; }
}

/* ------------------------------------------------------------------ phones */
@media (max-width: 640px) {
  /* Only the side gutters: the shorthand would also wipe the top and bottom padding of .wrap.error-page and .wrap.ex-body. */
  .wrap { padding-left: 16px; padding-right: 16px; }
  .toc { margin: 0 -16px; padding: 10px 16px; }
  .hero { padding: 32px 0 22px; }
  .lede { font-size: 16px; }
  .panel { padding: 20px; border-radius: 20px; }
  .block { padding: 22px 18px; border-radius: 20px; }
  .block h2 { font-size: 22px; }
  .section-title { font-size: 23px; }
  .home .how-rank, .home .all { margin-top: 48px; }
  .match, .ex-card { padding: 24px 18px 18px; }
  .match-top .match-head { padding-right: 0; padding-top: 22px; }
  .badge { top: 16px; right: auto; left: 18px; }
  .warn-box { padding: 18px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .05em; padding: 6px 12px 6px 10px; }
  .eyebrow:lang(ja) { font-size: 12px; }
}
@media (max-width: 560px) {
  .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .seg label { min-width: 0; }
  .dev { position: relative; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; height: auto; min-height: 84px; padding: 12px; font-size: 14.5px; }
  .dev::after { position: absolute; top: 10px; right: 10px; margin: 0; }
}

/* ------------------------------------------------------------------ exchange colours on the dark ground */
/* Exchange colours are chosen for light pages: lift the dark ones so their lines, stations and icons still read. */
@media (prefers-color-scheme: dark) {
  .step-n, .step:not(:last-child)::before, .match::before, .ex-card::before, .ex-hero::before, .ex-hero .facts > div::before,
  .terms-box li::before, .changelog li::before { filter: brightness(1.45) saturate(1.1); }
}

/* ------------------------------------------------------------------ motion and forced colours */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .seg input:checked + .dev { outline: 2px solid Highlight; }
  .match::before, .ex-card::before, .step:not(:last-child)::before { background: CanvasText; }
}
