/* siteapp401 - SlotRadar.
   The scraped reference (slotsup.com) is a soft grey canvas (#f4f5f7) under
   white plates with 12px corners, one signature blue (#1a85ff) that runs as a
   deep-blue to bright-blue gradient (#0053b4 -> #1a85ff), near-black ink
   (#0f121d), a light accent wash (#edeff1) and a white masthead that keeps
   the search field inline with the logo and a burger. This stylesheet keeps
   that reading for an APK directory: the same grey canvas, white header,
   blue plates, gradient hero and grouped footer columns, with a deep navy
   night mode under [data-p401-mode="dark"].
   Every rule is scoped under the p401 prefix so the file only ever affects
   this template. */

@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../siteapp/fontawesome/webfonts/fa-solid-900.woff2") format("woff2");
}
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../siteapp/fontawesome/webfonts/fa-regular-400.woff2") format("woff2");
}
@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../siteapp/fontawesome/webfonts/fa-brands-400.woff2") format("woff2");
}
.fa-solid { font-weight: 900; }

:root {
  --p401-canvas: #f4f5f7;
  --p401-surface: #ffffff;
  --p401-surface-2: #f4f5f7;
  --p401-wash: #edeff1;
  --p401-ink: #0f121d;
  --p401-ink-soft: #2b3040;
  --p401-muted: #6b7280;
  --p401-faint: #9aa3af;
  --p401-line: #e3e7ec;
  --p401-line-strong: #cfd5dd;
  --p401-brand: #1a85ff;
  --p401-brand-deep: #0053b4;
  --p401-brand-wash: #e8f2ff;
  --p401-brand-grad: linear-gradient(135deg, #0053b4 0%, #1a85ff 100%);
  --p401-head: #0f121d;
  --p401-star: #ffb400;
  --p401-shadow: 0 10px 26px rgba(15, 18, 29, .10);
  --p401-shadow-sm: 0 3px 10px rgba(15, 18, 29, .08);
  --p401-radius: 12px;
  --p401-radius-sm: 8px;
  --p401-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

[data-p401-mode='dark'] {
  --p401-canvas: #0f121d;
  --p401-surface: #171b26;
  --p401-surface-2: #1e2330;
  --p401-wash: #232937;
  --p401-ink: #e9ecf2;
  --p401-ink-soft: #c3c9d4;
  --p401-muted: #9aa3af;
  --p401-faint: #6f7889;
  --p401-line: #272d3b;
  --p401-line-strong: #363e4f;
  --p401-brand: #1a85ff;
  --p401-brand-deep: #4da3ff;
  --p401-brand-wash: #16283f;
  --p401-brand-grad: linear-gradient(135deg, #003f88 0%, #1a85ff 100%);
  --p401-head: #e9ecf2;
  --p401-star: #ffb400;
  --p401-shadow: 0 10px 26px rgba(0, 0, 0, .55);
  --p401-shadow-sm: 0 3px 10px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.p401-body {
  margin: 0;
  background: var(--p401-canvas);
  color: var(--p401-ink);
  font-family: var(--p401-body);
  font-size: 14.5px;
  line-height: 1.75;
}
.p401-body a { color: var(--p401-brand); text-decoration: none; }
.p401-body a:hover { color: var(--p401-brand-deep); }
.p401-body img { max-width: 100%; height: auto; }
.p401-body h1, .p401-body h2, .p401-body h3, .p401-body h4 {
  font-family: var(--p401-body);
  color: var(--p401-head);
  line-height: 1.3;
  margin: 0 0 .5em;
  font-weight: 700;
}
.p401-body p { margin: 0 0 1em; }
.p401-body ul, .p401-body ol { margin: 0 0 1em; padding-left: 1.25em; }

.p401-wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }

.p401-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--p401-brand); color: #ffffff; padding: 10px 16px;
}
.p401-skip:focus { left: 0; color: #ffffff; }

/* ---------- utility strip ---------- */
.p401-utility {
  background: var(--p401-brand-grad);
  font-size: 12px; color: rgba(255, 255, 255, .88);
}
.p401-utility-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 7px 0; flex-wrap: wrap;
}
.p401-utility-note { color: #ffffff; font-weight: 600; }
.p401-utility-note i { margin-right: 5px; }
.p401-utility-links { color: rgba(255, 255, 255, .88); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- masthead ---------- */
.p401-header {
  background: var(--p401-surface);
  border-bottom: 1px solid var(--p401-line);
  position: sticky; top: 0; z-index: 60;
}
.p401-header-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: flex; align-items: center; gap: 18px; padding: 12px 0;
}
.p401-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.p401-brand-mark {
  width: 44px; height: 44px; overflow: hidden;
  background: var(--p401-brand-grad);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--p401-radius);
}
.p401-brand-mark img { display: block; width: 44px; height: 44px; }
.p401-brand-word {
  font-weight: 700; font-size: 22px;
  color: var(--p401-head); letter-spacing: -.4px;
}
.p401-brand-sub {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.3px;
  color: var(--p401-brand); font-weight: 600;
  padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--p401-line-strong);
}

/* The reference keeps the search field inside the masthead. */
.p401-headsearch {
  flex: 1 1 auto; max-width: 460px; position: relative;
  display: flex; align-items: center;
}
.p401-headsearch i {
  position: absolute; left: 14px; color: var(--p401-faint); font-size: 13px;
  pointer-events: none;
}
.p401-headsearch input {
  width: 100%; border: 1px solid var(--p401-line-strong);
  background: var(--p401-surface-2); color: var(--p401-ink);
  padding: 10px 16px 10px 38px; font: inherit; font-size: 13.5px;
  border-radius: 22px;
}
.p401-headsearch input:focus {
  outline: none; border-color: var(--p401-brand);
  background: var(--p401-surface);
  box-shadow: 0 0 0 3px var(--p401-brand-wash);
}

.p401-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.p401-switch {
  display: inline-flex; border: 1px solid var(--p401-line-strong);
  overflow: hidden; background: var(--p401-surface-2);
  border-radius: 18px;
}
.p401-switch-seg {
  padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--p401-muted);
  border-radius: 16px;
}
.p401-switch-seg.is-active { background: var(--p401-brand); color: #ffffff; }
.p401-mode {
  width: 36px; height: 36px; cursor: pointer; border-radius: 50%;
  border: 1px solid var(--p401-line-strong); background: var(--p401-surface-2);
  color: var(--p401-ink-soft); font-size: 13px;
}
.p401-mode:hover { color: #ffffff; border-color: var(--p401-brand); background: var(--p401-brand); }
.p401-burger {
  display: none; width: 40px; height: 40px; cursor: pointer;
  border-radius: var(--p401-radius-sm);
  border: 1px solid var(--p401-line-strong); background: var(--p401-surface-2);
  color: var(--p401-ink); font-size: 15px;
}

/* The reference runs its category menu as a second row under the masthead. */
.p401-nav { border-top: 1px solid var(--p401-line); background: var(--p401-surface); }
.p401-nav-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; scrollbar-width: thin;
}
.p401-nav-link {
  padding: 11px 13px; font-size: 13px; font-weight: 500;
  color: var(--p401-ink-soft); white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.p401-nav-link:hover { color: var(--p401-brand); }
.p401-nav-link.is-active { color: var(--p401-brand); border-bottom-color: var(--p401-brand); }

/* ---------- hero ---------- */
.p401-hero {
  background: var(--p401-brand-grad);
  border-bottom: 1px solid var(--p401-line);
}
.p401-hero-in {
  display: grid; grid-template-columns: 1fr 300px; gap: 32px;
  align-items: center; padding: 46px 0 42px;
}
.p401-hero-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: #ffffff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  padding: 5px 13px; margin-bottom: 14px; border-radius: var(--p401-radius-sm);
}
.p401-body .p401-hero-h1 {
  font-size: clamp(32px, 4.6vw, 50px); font-weight: 700; letter-spacing: -.8px;
  margin: 0 0 10px; color: #ffffff;
}
.p401-hero-lead { color: rgba(255, 255, 255, .88); font-size: 15px; max-width: 62ch; }
.p401-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 18px; }
.p401-hero-marks {
  list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255, 255, 255, .82);
}
.p401-hero-marks i { color: #ffffff; margin-right: 5px; }

.p401-exhibit {
  margin: 0; background: var(--p401-surface); border: 1px solid var(--p401-line);
  border-top: 3px solid var(--p401-brand);
  padding: 16px; box-shadow: var(--p401-shadow-sm); position: relative;
  border-radius: var(--p401-radius);
}
.p401-exhibit-tag {
  position: absolute; top: -11px; left: 18px; background: var(--p401-brand-deep);
  color: #ffffff; font-size: 11px; font-weight: 600; padding: 4px 12px;
  letter-spacing: .5px; border-radius: var(--p401-radius-sm);
}
.p401-exhibit-shot {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; background: var(--p401-surface-2);
  border: 1px solid var(--p401-line); margin-bottom: 12px; overflow: hidden;
  border-radius: var(--p401-radius-sm);
}
.p401-exhibit-shot img { width: 112px; height: 112px; object-fit: contain; }
.p401-exhibit figcaption b {
  display: block; font-size: 15.5px; color: var(--p401-head); margin-bottom: 4px;
}
.p401-exhibit figcaption span { font-size: 12.5px; color: var(--p401-muted); }
.p401-exhibit figcaption i { font-style: normal; margin-left: 10px; }

/* ---------- buttons ---------- */
.p401-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 28px; font-weight: 600; font-size: 13.5px; letter-spacing: .2px;
  border: 1px solid transparent; cursor: pointer;
  border-radius: var(--p401-radius-sm);
  transition: background .12s ease, color .12s ease;
}
.p401-btn.is-brand { background: var(--p401-brand); color: #ffffff; box-shadow: var(--p401-shadow-sm); }
.p401-btn.is-brand:hover { background: var(--p401-brand-deep); color: #ffffff; }
.p401-btn.is-ghost { background: transparent; border-color: var(--p401-line-strong); color: var(--p401-ink); }
.p401-btn.is-ghost:hover { border-color: var(--p401-brand); color: var(--p401-brand); background: var(--p401-brand-wash); }
/* On the gradient hero the ghost button needs a light stroke and label. */
.p401-hero .p401-btn.is-ghost { border-color: rgba(255, 255, 255, .55); color: #ffffff; }
.p401-hero .p401-btn.is-ghost:hover {
  border-color: #ffffff; color: #ffffff; background: rgba(255, 255, 255, .14);
}
.p401-hero .p401-btn.is-brand { background: #ffffff; color: var(--p401-brand-deep); }
.p401-hero .p401-btn.is-brand:hover { background: #ffffff; color: var(--p401-brand); }

/* ---------- category shelf ---------- */
.p401-ribbon { background: var(--p401-surface); border-bottom: 1px solid var(--p401-line); }
.p401-ribbon-in {
  display: flex; align-items: center; gap: 6px; padding: 11px 0;
  overflow-x: auto; scrollbar-width: thin;
}
.p401-ribbon-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--p401-muted); white-space: nowrap; padding-right: 10px;
}
.p401-ribbon-link {
  font-size: 13px; font-weight: 500; color: var(--p401-ink-soft);
  padding: 6px 13px; white-space: nowrap; border: 1px solid var(--p401-line);
  background: var(--p401-surface-2); border-radius: var(--p401-radius-sm);
}
.p401-ribbon-link:hover { color: var(--p401-brand); border-color: var(--p401-brand); }
.p401-ribbon-link.is-active { background: var(--p401-brand); border-color: var(--p401-brand); color: #ffffff; }

/* ---------- frame ---------- */
.p401-frame {
  display: grid; grid-template-columns: 1fr 310px; gap: 24px;
  align-items: start; padding: 26px 0 48px;
}
.p401-maincol { min-width: 0; }

.p401-block { margin-bottom: 32px; }
.p401-block-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 14px; padding-bottom: 9px;
  border-bottom: 2px solid var(--p401-line); position: relative; flex-wrap: wrap;
}
.p401-block-head::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 76px; height: 3px;
  background: var(--p401-brand);
}
.p401-block-title {
  font-size: 20px; font-weight: 700; margin: 0; position: relative; padding-left: 15px;
  color: var(--p401-head); letter-spacing: -.2px;
}
.p401-block-title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--p401-brand);
}
.p401-block-note { font-size: 12.5px; color: var(--p401-muted); }
.p401-block-more { font-size: 13px; font-weight: 600; color: var(--p401-brand); }

.p401-filter-note {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; background: var(--p401-brand-wash); border: 1px solid var(--p401-line);
  border-left: 4px solid var(--p401-brand); padding: 12px 16px; font-size: 13.5px;
  margin-bottom: 20px; color: var(--p401-ink); border-radius: var(--p401-radius-sm);
}
.p401-filter-note a { font-weight: 600; color: var(--p401-brand); }

/* ---------- grid + card ---------- */
.p401-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px;
}
.p401-card {
  background: var(--p401-surface); border: 1px solid var(--p401-line);
  border-left: 3px solid var(--p401-brand);
  border-radius: var(--p401-radius-sm); overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.p401-card:hover { box-shadow: var(--p401-shadow); transform: translateY(-2px); }
.p401-card-link { display: flex; gap: 12px; padding: 14px; color: var(--p401-ink); }
.p401-card-link:hover { color: var(--p401-ink); }
.p401-card-icon {
  width: 56px; height: 56px; flex: 0 0 56px;
  background: var(--p401-surface-2); border: 1px solid var(--p401-line);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  color: var(--p401-brand); font-size: 20px; border-radius: var(--p401-radius-sm);
}
.p401-card-icon img { width: 44px; height: 44px; object-fit: contain; }
.p401-card-body { min-width: 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.p401-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.p401-card-cat {
  font-size: 10.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--p401-brand-deep); background: var(--p401-brand-wash);
  padding: 2px 9px; white-space: nowrap; border-radius: var(--p401-radius-sm);
  overflow: hidden; text-overflow: ellipsis; max-width: 62%;
}
.p401-card-ver { font-size: 11.5px; color: var(--p401-faint); }
.p401-card-title {
  font-size: 15.5px; font-weight: 600; margin: 0 0 6px; line-height: 1.35;
  color: var(--p401-head);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p401-card-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 12.5px;
}
.p401-card-rate { color: var(--p401-brand); font-weight: 600; }
.p401-card-rate i { color: var(--p401-star); }
.p401-card-more { color: var(--p401-muted); white-space: nowrap; }

/* ---------- right rail ---------- */
.p401-rail { min-width: 0; }
.p401-rail-box {
  background: var(--p401-surface); border: 1px solid var(--p401-line);
  padding: 16px; margin-bottom: 16px; border-radius: var(--p401-radius-sm);
}
.p401-rail-box.is-brand { border-left: 3px solid var(--p401-brand); }
.p401-rail-title {
  font-size: 15.5px; font-weight: 700; margin: 0 0 12px; position: relative;
  padding-left: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--p401-line);
  color: var(--p401-head);
}
.p401-rail-title::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--p401-brand);
}
.p401-rail-title i { color: var(--p401-brand); margin-right: 5px; }
.p401-rail-search { display: flex; gap: 8px; }
.p401-rail-search input {
  flex: 1 1 auto; min-width: 0; border: 1px solid var(--p401-line-strong);
  padding: 10px 14px; font: inherit; font-size: 13.5px; border-radius: var(--p401-radius-sm);
  background: var(--p401-surface-2); color: var(--p401-ink);
}
.p401-rail-search input:focus { outline: 2px solid var(--p401-brand); outline-offset: 1px; }
.p401-rail-search button {
  width: 42px; flex: 0 0 42px; cursor: pointer; border-radius: var(--p401-radius-sm);
  border: none; background: var(--p401-brand); color: #ffffff; font-size: 13px;
}
.p401-rail-empty { font-size: 13px; color: var(--p401-muted); margin: 10px 0 0; }
.p401-rail-cta {
  background: var(--p401-brand-grad); color: rgba(255, 255, 255, .9);
  padding: 20px; text-align: center;
  border-left: 3px solid var(--p401-brand-deep); border-radius: var(--p401-radius-sm);
}
.p401-rail-cta p { font-size: 13.5px; margin: 0 0 12px; }
.p401-rail-cta .p401-btn.is-brand { background: #ffffff; color: var(--p401-brand-deep); }
.p401-rail-cta .p401-btn.is-brand:hover { background: #ffffff; color: var(--p401-brand); }

.p401-ranklist { list-style: none; margin: 0; padding: 0; }
.p401-ranklist li { border-bottom: 1px solid var(--p401-line); }
.p401-ranklist li:last-child { border-bottom: none; }
.p401-ranklist a {
  display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--p401-ink);
}
.p401-ranklist a:hover { color: var(--p401-brand); }
.p401-ranklist img {
  width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain;
  background: var(--p401-surface-2); border: 1px solid var(--p401-line);
  border-radius: var(--p401-radius-sm);
}
.p401-rankno {
  width: 20px; flex: 0 0 20px; font-size: 12px; font-weight: 600;
  color: var(--p401-brand); text-align: center;
}
.p401-ranklist-text { min-width: 0; }
.p401-ranklist-text b {
  display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--p401-head);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.p401-ranklist-text small { font-size: 11.5px; color: var(--p401-muted); }
.p401-ranklist-text small i { color: var(--p401-star); }

/* ---------- detail page ---------- */
.p401-detail { padding: 22px 0 48px; }
.p401-crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--p401-muted); margin: 0 0 12px;
}
.p401-crumb a { color: var(--p401-ink-soft); }
.p401-crumb a:hover { color: var(--p401-brand); }

.p401-summary {
  background: var(--p401-surface); border: 1px solid var(--p401-line);
  border-top: 3px solid var(--p401-brand); padding: 20px;
  border-radius: var(--p401-radius);
}
.p401-summary-top { display: flex; gap: 16px; align-items: flex-start; }
.p401-summary-icon {
  width: 80px; height: 80px; flex: 0 0 80px;
  background: var(--p401-surface-2); border: 1px solid var(--p401-line);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 26px; color: var(--p401-brand); border-radius: var(--p401-radius-sm);
}
.p401-summary-icon img { width: 64px; height: 64px; object-fit: contain; }
.p401-summary-id { min-width: 0; }
.p401-summary-cat {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase; color: var(--p401-brand-deep); background: var(--p401-brand-wash);
  padding: 3px 10px; margin-bottom: 6px; border-radius: var(--p401-radius-sm);
}
.p401-summary-title {
  font-size: clamp(23px, 3vw, 32px); font-weight: 700; margin: 0 0 8px;
  letter-spacing: -.4px;
}
.p401-summary-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p401-summary-rate { color: var(--p401-brand); font-weight: 600; font-size: 13.5px; }
.p401-summary-rate i { color: var(--p401-star); }
.p401-chip {
  font-size: 11.5px; color: var(--p401-ink-soft); background: var(--p401-surface-2);
  border: 1px solid var(--p401-line); padding: 2px 10px; border-radius: var(--p401-radius-sm);
}
.p401-summary-actions { margin: 18px 0 4px; }

.p401-intro {
  background: var(--p401-brand-wash); border: 1px solid var(--p401-line);
  border-left: 4px solid var(--p401-brand); padding: 14px 16px; margin: 16px 0;
  font-size: 14px; color: var(--p401-ink); border-radius: var(--p401-radius-sm);
}
.p401-intro p { margin: 0; }
.p401-intro.is-steps { background: var(--p401-surface-2); border-left-color: var(--p401-brand-deep); }
.p401-intro.is-steps b { display: block; margin-bottom: 6px; }
.p401-intro.is-steps ol { margin: 0; padding-left: 1.25em; font-size: 13.5px; }

.p401-social {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; border-bottom: 1px solid var(--p401-line); padding-bottom: 14px; margin-bottom: 16px;
}
.p401-social b {
  font-size: 12px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--p401-muted);
}
.p401-social-row { display: flex; gap: 8px; }
.p401-social-row a {
  width: 36px; height: 36px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px;
  background: var(--p401-surface-2); border: 1px solid var(--p401-line);
  color: var(--p401-ink-soft); border-radius: 50%;
}
.p401-social-row a:hover { background: var(--p401-brand); border-color: var(--p401-brand); color: #ffffff; }

.p401-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px; margin: 0 0 18px;
}
.p401-fact {
  background: var(--p401-surface-2); border: 1px solid var(--p401-line); padding: 10px 12px;
  font-family: var(--p401-body); border-radius: var(--p401-radius-sm);
}
.p401-fact dt {
  font-size: 11px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase;
  color: var(--p401-muted); margin-bottom: 2px;
}
.p401-fact dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--p401-ink); }

.p401-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.p401-tag {
  font-size: 12.5px; font-weight: 500; padding: 5px 12px;
  background: var(--p401-surface-2); border: 1px solid var(--p401-line); color: var(--p401-ink-soft);
  border-radius: var(--p401-radius-sm);
}
.p401-tag:hover { border-color: var(--p401-brand); color: var(--p401-brand); }
.p401-tag.is-active { background: var(--p401-brand); border-color: var(--p401-brand); color: #ffffff; }

.p401-toc {
  background: var(--p401-surface); border: 1px solid var(--p401-line);
  border-left: 4px solid var(--p401-brand); padding: 16px 18px; margin: 24px 0 18px;
  border-radius: var(--p401-radius-sm);
}
.p401-toc-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; padding: 0; }
.p401-toc-title i { color: var(--p401-brand); margin-right: 5px; }
.p401-toc ol { margin: 0; padding-left: 1.25em; font-size: 13.5px; }
.p401-toc ol ol { font-size: 13px; color: var(--p401-ink-soft); margin: 2px 0 6px; }

.p401-article {
  background: var(--p401-surface); border: 1px solid var(--p401-line);
  padding: 22px 24px; font-size: 14.5px; border-radius: var(--p401-radius);
}
.p401-article h2 {
  font-size: 20px; font-weight: 700; margin: 26px 0 10px;
  padding-left: 13px; position: relative; scroll-margin-top: 90px;
}
.p401-article h2::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 22px; border-radius: 3px; background: var(--p401-brand);
}
.p401-article h3 { font-size: 17px; font-weight: 700; margin: 20px 0 8px; }
.p401-article h2:first-child { margin-top: 0; }
.p401-article ul, .p401-article ol { font-size: 14px; }
.p401-article a { color: var(--p401-brand); text-decoration: underline; }
.p401-article a:hover { color: var(--p401-brand-deep); }
.p401-article strong { color: var(--p401-head); }
.p401-article details {
  border: 1px solid var(--p401-line); padding: 10px 14px; margin: 10px 0;
  background: var(--p401-surface-2); border-radius: var(--p401-radius-sm);
}
.p401-article summary { cursor: pointer; font-weight: 600; color: var(--p401-head); }
.p401-shot { margin: 18px 0; }
.p401-shot img {
  width: 100%; max-width: 520px; display: block; margin: 0 auto;
  border: 1px solid var(--p401-line); border-radius: var(--p401-radius-sm);
}
.p401-shot figcaption {
  text-align: center; font-size: 12px; color: var(--p401-muted); margin-top: 8px;
}
.p401-related-inline {
  background: var(--p401-brand-wash); border: 1px solid var(--p401-line);
  border-left: 4px solid var(--p401-brand); padding: 10px 14px; font-size: 13.5px;
  border-radius: var(--p401-radius-sm);
}
.p401-related-inline a { color: var(--p401-brand); }

/* ---------- download zone (shared appkit markup) ---------- */
.p401-dlzone { margin: 24px 0; }
.app-dl-zone {
  background: var(--p401-surface); border: 1px solid var(--p401-line);
  border-top: 3px solid var(--p401-brand); padding: 18px; text-align: center;
  border-radius: var(--p401-radius);
}
.app-dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 30px; border: none; cursor: pointer; border-radius: var(--p401-radius-sm);
  background: var(--p401-brand); color: #ffffff;
  font: inherit; font-weight: 600; font-size: 14px;
  box-shadow: var(--p401-shadow-sm);
}
.app-dl-btn:hover { background: var(--p401-brand-deep); color: #ffffff; }
.app-dl-progress { margin-bottom: 14px; }
.app-dl-progress span { display: block; font-size: 13px; color: var(--p401-ink-soft); margin-bottom: 8px; }
.app-dl-bar {
  display: block; height: 7px; background: var(--p401-surface-2);
  overflow: hidden; position: relative; border-radius: 4px;
}
.app-dl-bar b {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--p401-brand-grad);
  display: block;
}
.app-dl-install {
  background: var(--p401-surface-2); border: 1px solid var(--p401-line);
  padding: 12px 16px; margin-bottom: 14px; text-align: left;
  border-radius: var(--p401-radius-sm);
}
.app-dl-install b { display: block; margin-bottom: 6px; }
.app-dl-install ol { margin: 0; padding-left: 1.25em; font-size: 13.5px; }
.p401-body .app-dl-final,
.p401-body a.app-dl-final {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 30px; font-weight: 600; font-size: 14px;
  border-radius: var(--p401-radius-sm);
  background: var(--p401-brand); color: #ffffff; text-decoration: none;
  box-shadow: var(--p401-shadow-sm);
}
.p401-body .app-dl-final:hover,
.p401-body a.app-dl-final:hover { background: var(--p401-brand-deep); color: #ffffff; }
.app-dl-final[hidden] { display: none; }

/* ---------- comments ---------- */
.p401-comments {
  background: var(--p401-surface); border: 1px solid var(--p401-line);
  border-top: 3px solid var(--p401-brand); padding: 18px; margin: 24px 0 0;
  border-radius: var(--p401-radius);
}
.p401-comments-title { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.p401-comments-title i { color: var(--p401-brand); margin-right: 5px; }
.p401-cform label { display: block; margin-bottom: 12px; }
.p401-cform label > span {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: var(--p401-muted); margin-bottom: 5px;
}
.p401-cform input, .p401-cform textarea {
  width: 100%; border: 1px solid var(--p401-line-strong);
  padding: 10px 14px; font: inherit; font-size: 14px; border-radius: var(--p401-radius-sm);
  background: var(--p401-surface-2); color: var(--p401-ink);
}
.p401-cform input:focus, .p401-cform textarea:focus {
  outline: 2px solid var(--p401-brand); outline-offset: 1px; border-color: var(--p401-brand);
}
.p401-cform small { display: block; font-size: 11.5px; color: var(--p401-muted); margin-top: 4px; }
.p401-cform button {
  border: none; cursor: pointer; background: var(--p401-brand); color: #ffffff;
  padding: 11px 26px; font: inherit; font-weight: 600; font-size: 13.5px;
  border-radius: var(--p401-radius-sm);
}
.p401-cform button:hover { background: var(--p401-brand-deep); color: #ffffff; }
.p401-cform-success {
  margin: 12px 0 0; font-size: 13.5px; color: #0a6f4a;
  background: var(--p401-brand-wash); padding: 9px 12px; border-radius: var(--p401-radius-sm);
}

/* ---------- landing ---------- */
.p401-landing {
  background: var(--p401-surface); border: 1px solid var(--p401-line);
  border-top: 3px solid var(--p401-brand); padding: 24px; max-width: 840px; margin: 0 auto;
  border-radius: var(--p401-radius);
}
.p401-landing-id { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.p401-landing-idmain { min-width: 0; }
.p401-landing-title { font-size: clamp(23px, 3vw, 32px); font-weight: 700; margin: 4px 0 6px; letter-spacing: -.4px; }
.p401-facts.is-landing { margin-bottom: 18px; }
.p401-landing-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.p401-landing-actions .p401-btn.is-ghost { border-color: var(--p401-line-strong); color: var(--p401-ink); }
.p401-landing-actions .p401-btn.is-ghost:hover { border-color: var(--p401-brand); background: var(--p401-brand-wash); color: var(--p401-brand); }

/* ---------- 404 ---------- */
.p401-nf { text-align: center; padding: 60px 20px 80px; }
.p401-nf-stamp {
  display: inline-block; font-weight: 700;
  font-size: 56px; color: var(--p401-brand); line-height: 1;
  border: 2px dashed var(--p401-brand-deep); padding: 12px 26px; margin-bottom: 18px;
  border-radius: var(--p401-radius);
}
.p401-nf h1 { font-size: 27px; font-weight: 700; color: var(--p401-head); }
.p401-nf p { color: var(--p401-ink-soft); }
.p401-nf .p401-btn.is-brand { margin-top: 6px; }

/* ---------- dock ---------- */
.p401-dock {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 70;
  background: var(--p401-head); border: 1px solid #2a3040;
  padding: 6px; box-shadow: var(--p401-shadow); border-radius: 24px;
}
.p401-dock-btn {
  padding: 9px 22px; font-size: 13px; font-weight: 600;
  color: #c7ccd8; background: transparent;
  border-radius: 18px;
}
.p401-dock-btn:hover { background: rgba(255, 255, 255, .08); color: var(--p401-brand); }
.p401-dock-btn.is-brand { background: var(--p401-brand); color: #ffffff; }
.p401-dock-btn.is-brand:hover { background: var(--p401-brand-deep); color: #ffffff; }

/* ---------- footer ---------- */
.p401-foot { background: var(--p401-head); border-top: 1px solid var(--p401-line); color: #9aa3af; margin-top: 20px; }
.p401-foot-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 26px;
  padding: 36px 0 26px;
}
.p401-foot-logo {
  display: inline-block; margin-bottom: 10px;
  font-weight: 700; font-size: 22px; color: #ffffff;
}
.p401-foot-logo img { display: block; height: 26px; width: auto; }
.p401-foot-text { font-size: 13px; color: #9aa3af; margin: 0 0 12px; }
.p401-foot-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.p401-age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; font-size: 12px; font-weight: 700;
  color: #ffffff; background: var(--p401-brand); border-radius: 50%;
}
.p401-org-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: #9aa3af;
  background: rgba(255, 255, 255, .06); border: 1px solid #2a3040;
  padding: 6px 12px; border-radius: 18px;
}
.p401-org-badge i { color: var(--p401-brand); }
.p401-foot-col { display: flex; flex-direction: column; gap: 8px; }
.p401-foot-title {
  font-size: 12.5px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase;
  color: #ffffff; margin: 0 0 4px; position: relative; padding-bottom: 8px;
}
.p401-foot-title::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 42px; height: 2px;
  background: var(--p401-brand);
}
.p401-foot-col a { font-size: 13px; color: #9aa3af; }
.p401-foot-col a:hover { color: var(--p401-brand); }
.p401-foot-note { font-size: 12.5px; color: #6f7889; margin: 4px 0 0; }
.p401-foot-social { display: flex; gap: 8px; margin-top: 6px; }
.p401-foot-social a {
  width: 34px; height: 34px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 12.5px;
  background: rgba(255, 255, 255, .06); color: #9aa3af;
  border: 1px solid #2a3040; border-radius: 50%;
}
.p401-foot-social a:hover { background: var(--p401-brand); border-color: var(--p401-brand); color: #ffffff; }
.p401-foot-base {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  border-top: 1px solid #2a3040; padding: 14px 0 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #6f7889;
}
.p401-foot-base p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .p401-frame { grid-template-columns: 1fr 290px; }
  .p401-hero-in { grid-template-columns: 1fr 260px; }
}

@media (max-width: 900px) {
  .p401-hero-in { grid-template-columns: 1fr; padding: 30px 0; }
  .p401-exhibit { max-width: 340px; }
  .p401-frame { grid-template-columns: 1fr; }
  .p401-rail { order: -1; }
  .p401-foot-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .p401-burger { display: inline-flex; align-items: center; justify-content: center; }
  .p401-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--p401-surface); border-bottom: 1px solid var(--p401-line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px;
    box-shadow: var(--p401-shadow-sm);
  }
  .p401-body.is-drawer-open .p401-nav { display: flex; }
  .p401-header-in { position: relative; flex-wrap: wrap; }
  .p401-brand-sub { display: none; }
  .p401-brand-word { font-size: 19px; }
  .p401-headsearch { order: 3; flex-basis: 100%; max-width: none; }
  .p401-tools { margin-left: auto; }
  .p401-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p401-card-link { flex-direction: column; gap: 10px; }
  .p401-card-icon { width: 52px; height: 52px; flex: 0 0 52px; }
  .p401-card-title { -webkit-line-clamp: 3; }
  .p401-summary-top { gap: 12px; }
  .p401-summary-icon { width: 64px; height: 64px; flex: 0 0 64px; }
  .p401-summary-icon img { width: 50px; height: 50px; }
  .p401-foot-in { grid-template-columns: 1fr; }
  .p401-article { padding: 18px 16px; }
  .p401-dock { bottom: 10px; }
}

@media (max-width: 420px) {
  .p401-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p401-card { padding: 10px 10px 12px; }
  .p401-card-icon { width: 44px; height: 44px; flex: 0 0 44px; }
}
