/* ==========================================================================
   トレカ抽選ナビ / styles.css
   白ベース・スマホファースト。外部フォント/CDNは使わない（オフラインでも崩れない）。
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --bg-card: #ffffff;
  --ink: #14171c;
  --ink-2: #4d5662;
  --ink-3: #78828f;
  --line: #e5e9ee;
  --line-strong: #d3d9e1;
  --brand: #0b63ce;
  --brand-dark: #084a9c;
  --brand-weak: #eaf2fd;
  --danger: #d92d20;
  --danger-weak: #fee4e2;
  --warn: #b54708;
  --warn-weak: #fef0c7;
  --ok: #067647;
  --ok-weak: #dcfae6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 8px 24px -12px rgba(16, 24, 40, .28);
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    -apple-system, BlinkMacSystemFont, "Yu Gothic", Meiryo, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { line-height: 1.35; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px; top: -48px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--brand), #1a86ff);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { font-size: 11px; color: var(--ink-3); letter-spacing: .02em; }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--ink); }

@media (max-width: 560px) {
  .site-nav a:first-child { display: none; }
  .brand-text small { display: none; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 28px 0 22px;
  background:
    radial-gradient(120% 90% at 100% 0%, #eef5ff 0%, rgba(238, 245, 255, 0) 62%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--brand);
  background: var(--brand-weak);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.025em;
}
.sp-br { display: inline; }

.hero-lead {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  max-width: 46em;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 0;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}
.stat dt { font-size: 10.5px; color: var(--ink-3); font-weight: 600; line-height: 1.4; white-space: nowrap; }
.stat dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.stat dd small { font-size: 11px; font-weight: 700; color: var(--ink-3); margin-left: 2px; }

.hero-updated { margin-top: 12px; font-size: 11.5px; color: var(--ink-3); }

@media (min-width: 720px) {
  .hero { padding: 40px 0 30px; }
  .hero-title { font-size: 36px; }
  .hero-lead { font-size: 15px; }
  .sp-br { display: inline; }
  .stat-row { max-width: 560px; }
  .stat dd { font-size: 26px; }
}
/* --------------------------------------------------------------- section */

.section { padding: 26px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { margin-bottom: 16px; }
.section-head h2 {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head h2::before {
  content: "";
  width: 4px; height: 18px;
  border-radius: 2px;
  background: var(--brand);
}
.section-sub { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

@media (min-width: 720px) {
  .section { padding: 36px 0; }
  .section-head h2 { font-size: 23px; }
  .section-sub { font-size: 13.5px; }
}

/* --------------------------------------------------------------- filters */

.filters {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.search-field { position: relative; }
.search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  fill: var(--ink-3);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 40px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  appearance: none;
}
.search-field input::placeholder { color: var(--ink-3); font-size: 13px; }
.search-field input:focus {
  background: #fff;
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 99, 206, .14);
}
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip-group {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.chip {
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.chip:hover { background: #e9edf3; }
.chip.is-active {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px 7px 10px;
  cursor: pointer;
  user-select: none;
  background: #fff;
}
.switch:hover { border-color: var(--line-strong); }
.switch input {
  appearance: none;
  width: 16px; height: 16px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex: 0 0 16px;
}
.switch input:checked { background: var(--brand); border-color: var(--brand); }
.switch input:checked::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 1.2px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.switch:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-weak);
  color: var(--brand-dark);
}

.sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.sort-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}
.sort-field select {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 30px 7px 10px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234d5662' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.result-count { font-size: 12px; color: var(--ink-3); font-weight: 600; }

@media (min-width: 720px) {
  .filters { padding: 14px; }
  .filter-row { gap: 10px; }
}

/* 画面が広いときだけフィルタを追従させる（スマホでは本文を隠すため追従しない） */
@media (min-width: 980px) {
  .filters {
    position: sticky;
    top: 68px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }
  .search-field { flex: 1 1 240px; }
  .filter-row { margin: 0; flex-wrap: nowrap; gap: 8px; }
  .sort-row {
    margin: 0;
    padding: 0;
    border-top: 0;
    flex: 0 0 auto;
    gap: 8px;
  }
  .result-count { white-space: nowrap; }
}

/* ----------------------------------------------------------------- cards */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card--urgent { border-color: #f6c9c4; }
.card--urgent:hover { border-color: #efb0a8; }
.card--closed { opacity: .62; }
.card--closed:hover { transform: none; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.tag--pokemon { background: #fff4e5; border-color: #ffe0b8; color: #b25b00; }
.tag--onepiece { background: #e8f3ff; border-color: #c8e2ff; color: #0b4fa8; }
.tag--both { background: #f0edff; border-color: #ddd6ff; color: #4b32b8; }

.deadline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.deadline--urgent { background: var(--danger-weak); color: var(--danger); border-color: #fbc9c4; }
.deadline--soon { background: var(--warn-weak); color: var(--warn); border-color: #fbdf9c; }
.deadline--none { background: #eef2f7; color: var(--ink-3); }

.card-title {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--brand); text-decoration: underline; }

.card-shop {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 700;
}
.card-shop span { font-weight: 500; color: var(--ink-3); }

.card-price {
  font-size: 13px;
  color: var(--ink);
  font-weight: 800;
}
.card-price small { font-size: 11px; color: var(--ink-3); font-weight: 600; margin-left: 4px; }

.meta-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--ink-2);
  padding: 10px;
  background: var(--bg-alt);
  border-radius: 10px;
}
.meta-list dt { color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.meta-list dd { margin: 0; font-weight: 600; }

.cond-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cond {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
}
.cond--yes { background: var(--ok-weak); border-color: #a9efc5; color: var(--ok); }
.cond--no { background: #f1f5f9; border-color: var(--line); color: var(--ink-2); }
.cond--unknown { background: #fff; border-color: var(--line-strong); color: var(--ink-3); border-style: dashed; }

.card-note {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--brand); color: #fff; flex: 1 1 auto; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--primary svg { width: 13px; height: 13px; fill: currentColor; }
.btn--ghost {
  background: #fff;
  color: var(--ink-2);
  border-color: var(--line);
  font-weight: 700;
  font-size: 12px;
  padding: 9px 12px;
}
.btn--ghost:hover { border-color: var(--line-strong); color: var(--ink); }
.btn--disabled {
  background: var(--bg-alt);
  color: var(--ink-3);
  border-color: var(--line);
  cursor: not-allowed;
  flex: 1 1 auto;
}

.card-source {
  font-size: 10.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.card-source a { color: var(--ink-3); text-decoration: underline; }
.card-source a:hover { color: var(--brand); }

@media (min-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

.empty, .noscript {
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  padding: 28px 16px;
  background: var(--bg-alt);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

/* ------------------------------------------------------------------- ads */

.ad-slot--top { margin-bottom: 12px; }

.ad-item { list-style: none; display: grid; }
.ad-item .ad-card { height: 100%; }

.ad-card {
  display: grid;
  gap: 4px;
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(135deg, #fbfcfe, #fbfcfe 10px, #f4f7fb 10px, #f4f7fb 20px);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 80px;
  place-content: center;
  text-align: center;
}
.ad-card b { font-size: 11px; font-weight: 800; color: var(--ink-3); letter-spacing: .06em; }
.ad-card span { font-size: 10.5px; color: var(--ink-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* --------------------------------------------------------------- CTA band */

.cta-band {
  padding: 26px 0;
  background: linear-gradient(180deg, #f3f8ff, #ffffff);
  border-block: 1px solid var(--line);
}
.cta-head h2 { font-size: 18px; font-weight: 800; }
.cta-head p { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.cta-card .asp {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.cta-card h3 { font-size: 14.5px; font-weight: 800; }
.cta-card p { font-size: 12px; color: var(--ink-2); }
.cta-card .btn { margin-top: auto; align-self: flex-start; }

.pr-note { margin-top: 10px; font-size: 10.5px; color: var(--ink-3); }

@media (min-width: 560px) { .cta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .cta-band { padding: 34px 0; } .cta-head h2 { font-size: 21px; } }

/* ---------------------------------------------------------- price table */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 660px;
}
.price-table th,
.price-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table thead th {
  background: var(--bg-alt);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-2);
  letter-spacing: .02em;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.price-table thead th small { font-weight: 600; color: var(--ink-3); }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: #fafcff; }
.price-table .name { font-weight: 800; color: var(--ink); }
.price-table .name small { display: block; font-weight: 600; color: var(--ink-3); font-size: 10.5px; margin-top: 2px; }
.price-table .num { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.price-table .num small { display: block; font-weight: 600; color: var(--ink-3); font-size: 10px; margin-top: 2px; }
.price-table .ratio { font-weight: 800; white-space: nowrap; }
.ratio--up { color: var(--danger); }
.ratio--down { color: var(--ink-3); }
.ratio--na { color: var(--ink-3); font-weight: 600; }
.price-table .src { font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }
.price-table .src a { color: var(--ink-2); }
.price-table .src span { display: block; white-space: nowrap; }

.table-note { margin-top: 10px; font-size: 11px; color: var(--ink-3); line-height: 1.6; }

/* スマホでは表ではなくカードで表示する */
.table-wrap { display: none; }

.price-cards {
  display: grid;
  gap: 10px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.price-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.price-card-head h3 { font-size: 14px; font-weight: 800; line-height: 1.4; }
.price-card-nums {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}
.price-card-nums div {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 8px 10px;
}
.price-card-nums dt { font-size: 10px; color: var(--ink-3); font-weight: 700; line-height: 1.35; }
.price-card-nums dd { margin: 3px 0 0; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.price-card-nums dd.strong { color: var(--ink); font-size: 17px; }
.price-card-nums dd small { font-weight: 700; font-size: 11px; color: var(--ink-3); }
.price-card-note { margin-top: 10px; font-size: 11.5px; color: var(--ink-2); line-height: 1.65; }
.price-card-src { margin-top: 8px; font-size: 10.5px; color: var(--ink-3); line-height: 1.6; }
.price-card-src a { color: var(--ink-2); }
.price-card-src span { display: block; }

@media (min-width: 720px) {
  .table-wrap { display: block; }
  .price-cards { display: none; }
}

/* --------------------------------------------------------------- guide */

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.guide-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.guide-card h3 { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.guide-card p { font-size: 12.5px; color: var(--ink-2); }
@media (min-width: 720px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------------------------------- footer */

.site-footer {
  margin-top: 10px;
  padding: 28px 0 36px;
  background: #101720;
  color: #c8d0da;
  font-size: 12px;
}
.footer-inner { display: grid; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.footer-brand strong { font-size: 14.5px; }
.footer-brand p { font-size: 11px; color: #93a0b0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-nav a { color: #c8d0da; text-decoration: none; font-size: 12px; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-note { color: #8e9bab; line-height: 1.75; font-size: 11px; }
.copyright { color: #6f7d8d; font-size: 10.5px; }

@media (min-width: 720px) {
  .site-footer { padding: 36px 0 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-note, .copyright { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 12px);
  z-index: 90;
  max-width: min(92vw, 420px);
  background: #101720;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
  padding: 11px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 30px -8px rgba(16, 24, 40, .55);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #9fd0ff;
}

/* ---------------------------------------------------------- about page */

.page {
  padding: 28px 0 40px;
}
.page-head h1 { font-size: 24px; font-weight: 800; }
.page-head p { margin-top: 8px; font-size: 13px; color: var(--ink-2); }

.prose { max-width: 46em; margin-top: 20px; }
.prose h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 28px 0 10px;
  padding-top: 6px;
}
.prose h3 { font-size: 14px; font-weight: 800; margin: 18px 0 6px; }
.prose p, .prose li { font-size: 13px; color: var(--ink-2); }
.prose p + p { margin-top: 8px; }
.prose ul { margin: 8px 0 0; padding-left: 1.1em; list-style: disc; }
.prose li { margin-top: 4px; }
.prose dl { margin: 10px 0 0; display: grid; gap: 8px; }
.prose .def {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.prose .def dt { font-size: 11.5px; font-weight: 800; color: var(--ink-3); }
.prose .def dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 700; }
.prose .updated { margin-top: 18px; font-size: 11px; color: var(--ink-3); }
.prose .back { margin-top: 22px; font-size: 13px; }

@media (min-width: 720px) {
  .page-head h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
