/* siteapp410 - SpinVault.
   The scraped reference (gamesville.com) sits on a white canvas with a
   black menu band (#000, links hover to the red #e63131), red action
   buttons with the amber #f7b651 hover, green rating stars (#199d28),
   pastel rounded link boxes (#ffe5e9 / #4897ff / #fff2d5), the "Outfit"
   typeface and an 8px corner radius. Its signature is the ranked
   comparison card with the green score block, so the APK catalogue files
   its popular board as ranked rows on plain cards. This stylesheet keeps
   that reading, with a near-black night mode under [data-p410-mode="dark"].
   Every rule is scoped under the p410 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 {
  --p410-canvas: #ffffff;
  --p410-surface: #ffffff;
  --p410-surface-2: #f0efef;
  --p410-wash: #f7f6f6;
  --p410-ink: #17181c;
  --p410-ink-soft: #3f434c;
  --p410-muted: #6d7280;
  --p410-faint: #9ba0ac;
  --p410-line: #e4e4e8;
  --p410-line-strong: #cfd0d6;
  --p410-black: #000000;
  --p410-red: #e63131;
  --p410-red-deep: #c01f1f;
  --p410-red-wash: #ffe5e9;
  --p410-amber: #f7b651;
  --p410-sand: #fff2d5;
  --p410-sand-ink: #8a6410;
  --p410-bluebox: #4897ff;
  --p410-bluebox-wash: #eaf3ff;
  --p410-bluebox-ink: #1b5bbf;
  --p410-green: #199d28;
  --p410-green-soft: #e2f6e5;
  --p410-star: #199d28;
  --p410-shadow: 0 10px 26px rgba(0, 0, 0, .10);
  --p410-shadow-sm: 0 3px 10px rgba(0, 0, 0, .08);
  --p410-radius: 10px;
  --p410-radius-sm: 8px;
  --p410-body: 'Outfit', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

[data-p410-mode='dark'] {
  --p410-canvas: #101114;
  --p410-surface: #18191d;
  --p410-surface-2: #212227;
  --p410-wash: #1b1c21;
  --p410-ink: #f2f2f4;
  --p410-ink-soft: #d3d4da;
  --p410-muted: #9a9ca6;
  --p410-faint: #6f717c;
  --p410-line: #2c2d33;
  --p410-line-strong: #3d3f47;
  --p410-black: #000000;
  --p410-red: #ff5151;
  --p410-red-deep: #ff7373;
  --p410-red-wash: #3a1618;
  --p410-amber: #f7b651;
  --p410-sand: #33301f;
  --p410-sand-ink: #f4d488;
  --p410-bluebox: #6facff;
  --p410-bluebox-wash: #14243b;
  --p410-bluebox-ink: #9cc4ff;
  --p410-green: #35c246;
  --p410-green-soft: #14291a;
  --p410-star: #35c246;
  --p410-shadow: 0 10px 26px rgba(0, 0, 0, .55);
  --p410-shadow-sm: 0 3px 10px rgba(0, 0, 0, .45);
}

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

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

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

.p410-skip {inset-inline-start: -9999px;   
  position: absolute;  top: 0; z-index: 100;
  background: var(--p410-black); color: #ffffff; padding: 10px 18px;}
.p410-skip:focus {inset-inline-start: 0;   color: #ffffff;}

/* ---------- utility strip ---------- */
.p410-utility {
  background: var(--p410-black); color: #c9c9c9;
  font-size: 12px;
}
.p410-utility-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; padding: 7px 0;
}
.p410-utility-note { color: var(--p410-amber); font-weight: 700; }
.p410-utility-note i { margin-right: 5px; }
.p410-utility-links { color: #9a9a9a; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- header: white logo row ---------- */
.p410-header {
  background: var(--p410-surface); color: var(--p410-ink);
  border-bottom: 1px solid var(--p410-line);
  position: relative;
}
.p410-header-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: flex; align-items: center; gap: 16px; padding: 12px 0;
}
.p410-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--p410-ink); }
.p410-brand:hover { color: var(--p410-red); }
.p410-brand-mark {
  width: 44px; height: 44px; display: inline-flex; overflow: hidden;
  border-radius: 10px;
}
.p410-brand-mark img { display: block; width: 44px; height: 44px; }
.p410-brand-word {
  font-size: 23px; font-weight: 800; color: var(--p410-ink); letter-spacing: -.4px;
  display: block; line-height: 1.1;
}
.p410-brand-sub {
  display: block; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--p410-red);
}
.p410-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.p410-switch {
  display: inline-flex; overflow: hidden; border: 1px solid var(--p410-line-strong);
  border-radius: 20px;
}
.p410-switch-seg {
  padding: 5px 12px; font-size: 12px; font-weight: 700; color: var(--p410-muted);
  text-transform: uppercase; letter-spacing: .5px;
}
.p410-switch-seg.is-active { background: var(--p410-red); color: #ffffff; }
.p410-mode {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid var(--p410-line-strong); color: var(--p410-ink-soft);
  font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
}
.p410-mode:hover { color: #ffffff; background: var(--p410-black); border-color: var(--p410-black); }
.p410-burger {
  display: none; width: 38px; height: 38px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid var(--p410-line-strong); color: var(--p410-ink); font-size: 15px;
}

/* ---------- black menu band ---------- */
.p410-menuband {
  background: var(--p410-black); color: #ffffff;
  position: relative;
}
.p410-menuband-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: flex; align-items: center; gap: 0; flex-wrap: wrap; padding: 0;
}
.p410-menuband-link {
  padding: 11px 14px; font-size: 13.5px; font-weight: 600; color: #e6e6e6;
  border-bottom: 2px solid transparent;
}
.p410-menuband-link:hover { color: var(--p410-red); background: rgba(255, 255, 255, .05); }
.p410-menuband-link.is-active { color: #ffffff; border-bottom-color: var(--p410-red); }

/* ---------- hero ---------- */
.p410-hero {
  background: var(--p410-wash);
  border-bottom: 1px solid var(--p410-line);
}
.p410-hero-in {
  display: grid; grid-template-columns: 1fr 300px; gap: 34px;
  align-items: center; padding: 42px 0 46px;
}
.p410-hero-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--p410-red);
  border: 1px solid var(--p410-red); padding: 4px 12px; border-radius: 16px;
  background: var(--p410-red-wash);
}
.p410-body .p410-hero-h1 {
  font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; color: var(--p410-ink);
  margin: 14px 0 12px; letter-spacing: -.8px;
}
.p410-hero-lead { color: var(--p410-muted); font-size: 15px; max-width: 62ch; }
.p410-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 18px; }
.p410-hero-marks {
  list-style: none; padding: 0; margin: 0; display: flex; gap: 18px;
  flex-wrap: wrap; font-size: 12.5px; color: var(--p410-muted);
}
.p410-hero-marks i { color: var(--p410-green); margin-right: 5px; }

.p410-exhibit {
  margin: 0; background: var(--p410-surface); border: 1px solid var(--p410-line);
  border-top: 3px solid var(--p410-red);
  border-radius: var(--p410-radius);
  padding: 18px; text-align: center; box-shadow: var(--p410-shadow-sm);
}
.p410-exhibit-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--p410-red); background: var(--p410-red-wash);
  padding: 4px 12px; border-radius: 14px; margin-bottom: 12px;
}
.p410-exhibit-shot {
  display: block; width: 118px; height: 118px; margin: 0 auto;
  background: var(--p410-surface-2); border-radius: var(--p410-radius-sm);
  overflow: hidden;
}
.p410-exhibit-shot img { width: 112px; height: 112px; object-fit: contain; }
.p410-exhibit figcaption b {
  display: block; margin-top: 12px; font-size: 14.5px; color: var(--p410-ink);
}
.p410-exhibit figcaption span { font-size: 12.5px; color: var(--p410-muted); }
.p410-exhibit figcaption i { font-style: normal; margin-left: 10px; }
.p410-exhibit figcaption i.fa-star { color: var(--p410-star); margin-left: 0; }

.p410-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; font-weight: 700; font-size: 14px; border-radius: var(--p410-radius-sm);
  border: 1px solid transparent;
}
.p410-btn.is-brand { background: var(--p410-red); color: #ffffff; box-shadow: var(--p410-shadow-sm); }
.p410-btn.is-brand:hover { background: var(--p410-amber); color: #17181c; }
.p410-btn.is-ghost { background: transparent; border-color: var(--p410-line-strong); color: var(--p410-ink); }
.p410-btn.is-ghost:hover { border-color: var(--p410-red); color: var(--p410-red); background: var(--p410-red-wash); }

/* ---------- pastel link boxes ---------- */
.p410-boxrow { background: var(--p410-canvas); border-bottom: 1px solid var(--p410-line); }
.p410-boxrow-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; padding: 18px 0;
}
.p410-linkbox {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--p410-radius);
  border: 1px solid var(--p410-line);
  color: var(--p410-ink); font-weight: 700; font-size: 13.5px;
}
.p410-linkbox:hover { box-shadow: var(--p410-shadow-sm); color: var(--p410-ink); }
.p410-linkbox-icon {
  width: 34px; height: 34px; flex: 0 0 34px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 15px;
  border-radius: var(--p410-radius-sm); background: #ffffff;
  border: 1px solid rgba(0, 0, 0, .06);
}
.p410-linkbox.is-rose { background: var(--p410-red-wash); color: var(--p410-red-deep); }
.p410-linkbox.is-rose .p410-linkbox-icon { color: var(--p410-red); }
.p410-linkbox.is-blue { background: var(--p410-bluebox-wash); color: var(--p410-bluebox-ink); }
.p410-linkbox.is-blue .p410-linkbox-icon { color: var(--p410-bluebox); }
.p410-linkbox.is-sand { background: var(--p410-sand); color: var(--p410-sand-ink); }
.p410-linkbox.is-sand .p410-linkbox-icon { color: var(--p410-amber); }
.p410-linkbox.is-grey { background: var(--p410-surface-2); color: var(--p410-ink-soft); }
.p410-linkbox.is-grey .p410-linkbox-icon { color: var(--p410-muted); }
.p410-linkbox.is-active { outline: 2px solid var(--p410-red); outline-offset: -2px; }

/* ---------- frame ---------- */
.p410-frame {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px;
  padding: 26px 0 48px; align-items: start;
}
.p410-maincol { min-width: 0; }
.p410-block { margin-bottom: 32px; }
.p410-block-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; border-bottom: 2px solid var(--p410-black); padding-bottom: 8px; margin-bottom: 14px;
}
.p410-block-title {
  font-size: 19px; font-weight: 800; margin: 0; position: relative; padding-left: 13px;
}
.p410-block-title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 21px; border-radius: 3px; background: var(--p410-red);
}
.p410-block-note { font-size: 12.5px; color: var(--p410-muted); }
.p410-block-more { font-size: 13px; font-weight: 600; color: var(--p410-bluebox-ink); }

.p410-filter-note {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; background: var(--p410-sand); border: 1px solid var(--p410-line);
  border-left: 4px solid var(--p410-red); padding: 10px 14px; margin-bottom: 18px;
  font-size: 13.5px; border-radius: var(--p410-radius-sm);
}
.p410-filter-note a { font-weight: 600; color: var(--p410-red); }

/* ---------- ranked listing table ---------- */
.p410-tablewrap {
  background: var(--p410-surface); border: 1px solid var(--p410-line);
  border-radius: var(--p410-radius); overflow-x: auto; box-shadow: var(--p410-shadow-sm);
}
.p410-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.p410-table thead th {
  background: var(--p410-black); color: #ffffff; text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  padding: 10px 12px; white-space: nowrap;
}
.p410-table tbody tr { border-bottom: 1px solid var(--p410-line); }
.p410-table tbody tr:last-child { border-bottom: none; }
.p410-table tbody tr:nth-child(even) { background: var(--p410-wash); }
.p410-table tbody tr:hover { background: var(--p410-red-wash); }
.p410-table td { padding: 10px 12px; vertical-align: middle; }

.p410-row-rank {
  width: 46px; text-align: center; font-weight: 800; font-size: 15px;
  color: #ffffff; background: var(--p410-green);
}
.p410-row-app a { display: flex; align-items: center; gap: 11px; color: var(--p410-ink); }
.p410-row-app { min-width: 220px; }
.p410-row-app a:hover { color: var(--p410-red); }
.p410-row-icon {
  width: 40px; height: 40px; flex: 0 0 40px; overflow: hidden;
  background: var(--p410-surface-2); border: 1px solid var(--p410-line);
  border-radius: var(--p410-radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
}
.p410-row-icon img { width: 38px; height: 38px; object-fit: contain; }
.p410-row-text { min-width: 0; }
.p410-row-text b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.p410-row-text small { display: block; font-size: 11.5px; color: var(--p410-muted); }
.p410-row-ver, .p410-row-size, .p410-row-dl { color: var(--p410-muted); white-space: nowrap; font-size: 12.5px; }
.p410-row-rate { color: var(--p410-ink); font-weight: 700; white-space: nowrap; }
.p410-row-rate i { color: var(--p410-star); }
.p410-row-cta a {
  display: inline-block; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--p410-red); color: #ffffff; padding: 6px 13px; border-radius: 16px;
}
.p410-row-cta a:hover { background: var(--p410-amber); color: #17181c; }

/* ---------- card shelf ---------- */
.p410-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.p410-card {
  background: var(--p410-surface); border: 1px solid var(--p410-line);
  border-top: 3px solid var(--p410-red); border-radius: var(--p410-radius-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}
.p410-card:hover { box-shadow: var(--p410-shadow); transform: translateY(-2px); }
.p410-card-link { display: flex; gap: 12px; padding: 14px; color: var(--p410-ink); }
.p410-card-link:hover { color: var(--p410-ink); }
.p410-card-icon {
  width: 56px; height: 56px; flex: 0 0 56px; overflow: hidden;
  background: var(--p410-surface-2); border: 1px solid var(--p410-line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--p410-ink-soft); border-radius: var(--p410-radius-sm);
}
.p410-card-icon img { width: 44px; height: 44px; object-fit: contain; }
.p410-card-body { min-width: 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.p410-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.p410-card-cat {
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--p410-red); background: var(--p410-red-wash); padding: 3px 9px;
  border-radius: 12px;
}
.p410-card-ver { font-size: 11.5px; color: var(--p410-faint); }
.p410-card-title {
  font-size: 13.5px; font-weight: 700; margin: 0 0 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.p410-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.p410-card-rate { color: var(--p410-ink); font-weight: 700; font-size: 12.5px; }
.p410-card-rate i { color: var(--p410-star); }
.p410-card-more { color: var(--p410-muted); font-size: 12px; white-space: nowrap; }

/* ---------- rail ---------- */
.p410-rail { min-width: 0; }
.p410-rail-box {
  background: var(--p410-surface); border: 1px solid var(--p410-line);
  padding: 15px 16px; margin-bottom: 16px; border-radius: var(--p410-radius);
}
.p410-rail-box.is-brand { border-top: 3px solid var(--p410-red); }
.p410-rail-title {
  font-size: 14.5px; font-weight: 800; margin: 0 0 10px; position: relative; padding-bottom: 8px;
  border-bottom: 1px solid var(--p410-line);
}
.p410-rail-title i { color: var(--p410-red); margin-right: 5px; }
.p410-rail-search { display: flex; gap: 8px; }
.p410-rail-search input {
  flex: 1 1 auto; min-width: 0; border: 1px solid var(--p410-line-strong);
  background: var(--p410-surface-2); color: var(--p410-ink);
  padding: 9px 13px; font: inherit; font-size: 13px; border-radius: var(--p410-radius-sm);
}
.p410-rail-search input:focus { outline: 2px solid var(--p410-red); outline-offset: 1px; }
.p410-rail-search button {
  border: none; cursor: pointer; background: var(--p410-red); color: #ffffff;
  padding: 0 14px; border-radius: var(--p410-radius-sm); font-size: 13px;
}
.p410-rail-search button:hover { background: var(--p410-amber); color: #17181c; }
.p410-rail-empty { font-size: 13px; color: var(--p410-muted); margin: 10px 0 0; }
.p410-rail-cta {
  background: var(--p410-black); border-radius: var(--p410-radius); padding: 16px;
  color: #c9c9c9;
}
.p410-rail-cta p { font-size: 13.5px; margin: 0 0 12px; }
.p410-rail-cta .p410-btn.is-ghost { border-color: #4a4a4a; color: #e6e6e6; }

.p410-ranklist { list-style: none; margin: 0; padding: 0; }
.p410-ranklist li { border-bottom: 1px solid var(--p410-line); }
.p410-ranklist li:last-child { border-bottom: none; }
.p410-ranklist a {
  display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--p410-ink);
}
.p410-ranklist a:hover { color: var(--p410-red); }
.p410-ranklist img {
  width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px;
  background: var(--p410-surface-2); border: 1px solid var(--p410-line); border-radius: 8px;
}
.p410-rankno {
  width: 24px; height: 24px; flex: 0 0 24px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  background: var(--p410-green); color: #ffffff; border-radius: 6px;
}
.p410-ranklist-text { min-width: 0; }
.p410-ranklist-text b {
  display: block; font-size: 13px; font-weight: 600; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.p410-ranklist-text small { font-size: 11.5px; color: var(--p410-muted); }
.p410-ranklist-text small i { color: var(--p410-star); }

/* ---------- detail page ---------- */
/* The detail page reuses the frame's two-column split, so the rail sits
   beside the article instead of dropping below it. */
.p410-detail {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px;
  align-items: start; padding: 22px 0 48px;
}
.p410-crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--p410-muted); margin: 0 0 12px;
}
.p410-crumb a { color: var(--p410-ink-soft); }
.p410-crumb a:hover { color: var(--p410-red); }

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

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

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

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

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

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

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

/* ---------- download zone (shared appkit markup) ---------- */
.p410-dlzone { margin: 24px 0; }
.app-dl-zone {
  background: var(--p410-surface); border: 1px solid var(--p410-line);
  border-top: 3px solid var(--p410-red); padding: 18px; text-align: center;
  border-radius: var(--p410-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(--p410-radius-sm);
  background: var(--p410-red); color: #ffffff;
  font: inherit; font-weight: 700; font-size: 14px;
  box-shadow: var(--p410-shadow-sm);
}
.app-dl-btn:hover { background: var(--p410-amber); color: #17181c; }
.app-dl-progress { margin-bottom: 14px; }
.app-dl-progress span { display: block; font-size: 13px; color: var(--p410-ink-soft); margin-bottom: 8px; }
.app-dl-bar {
  display: block; height: 7px; background: var(--p410-surface-2);
  overflow: hidden; position: relative; border-radius: 4px;
}
.app-dl-bar b {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, var(--p410-red), var(--p410-amber));
  display: block;
}
.app-dl-install {
  background: var(--p410-surface-2); border: 1px solid var(--p410-line);
  padding: 12px 16px; margin-bottom: 14px; text-align: left;
  border-radius: var(--p410-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; }
.p410-body .app-dl-final,
.p410-body a.app-dl-final {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 30px; font-weight: 700; font-size: 14px;
  border-radius: var(--p410-radius-sm);
  background: var(--p410-green); color: #ffffff; text-decoration: none;
  box-shadow: var(--p410-shadow-sm);
}
.p410-body .app-dl-final:hover,
.p410-body a.app-dl-final:hover { background: var(--p410-green); color: #ffffff; filter: brightness(1.08); }
.app-dl-final[hidden] { display: none; }

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

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

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

/* ---------- dock ---------- */
.p410-dock {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 70;
  background: var(--p410-black); border: 1px solid #3a3a3a;
  padding: 6px; box-shadow: var(--p410-shadow); border-radius: 24px;
  /* The dock floats over the page, so it never grows past the viewport. */
  max-width: calc(100% - 24px);
}
.p410-dock-btn {
  padding: 9px 22px; font-size: 13px; font-weight: 700;
  color: #c9c9c9; background: transparent; border-radius: 18px;
}
.p410-dock-btn:hover { background: rgba(255, 255, 255, .10); color: var(--p410-amber); }
.p410-dock-btn.is-brand { background: var(--p410-red); color: #ffffff; }
.p410-dock-btn.is-brand:hover { background: var(--p410-amber); color: #17181c; }

/* ---------- footer ---------- */
.p410-foot { background: var(--p410-black); color: #9a9a9a; margin-top: 20px; }
.p410-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;
}
.p410-foot-logo {
  font-weight: 800; font-size: 21px; color: #ffffff;
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 10px;
}
.p410-foot-logo:hover { color: var(--p410-amber); }
.p410-foot-logo img { width: 30px; height: 30px; border-radius: 7px; }
.p410-foot-text { font-size: 13px; color: #9a9a9a; margin: 0 0 12px; }
.p410-foot-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.p410-age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; font-size: 12px; font-weight: 700;
  color: #17181c; background: var(--p410-amber); border-radius: 50%;
}
.p410-org-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: #9a9a9a;
  background: rgba(255, 255, 255, .06); border: 1px solid #3a3a3a;
  padding: 6px 12px; border-radius: 18px;
}
.p410-org-badge i { color: var(--p410-green); }
.p410-foot-col { display: flex; flex-direction: column; gap: 8px; }
.p410-foot-title {
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--p410-amber); margin: 0 0 4px; position: relative; padding-bottom: 8px;
}
.p410-foot-title::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 42px; height: 2px;
  background: var(--p410-red);
}
.p410-foot-col a { font-size: 13px; color: #9a9a9a; }
.p410-foot-col a:hover { color: var(--p410-amber); }
.p410-foot-note { font-size: 12.5px; color: #6f6f6f; margin: 4px 0 0; }
.p410-foot-social { display: flex; gap: 8px; margin-top: 6px; }
.p410-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: #9a9a9a;
  border: 1px solid #3a3a3a; border-radius: 50%;
}
.p410-foot-social a:hover { background: var(--p410-red); border-color: var(--p410-red); color: #ffffff; }
.p410-foot-base {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  border-top: 1px solid #3a3a3a; padding: 14px 0 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #6f6f6f;
}
.p410-foot-base p { margin: 0; }

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

@media (max-width: 900px) {
  .p410-hero-in { grid-template-columns: 1fr; padding: 30px 0; }
  .p410-exhibit { max-width: 340px; }
  .p410-frame { grid-template-columns: 1fr; }
  .p410-detail { grid-template-columns: 1fr; }
  .p410-rail { order: -1; }
  .p410-foot-in { grid-template-columns: 1fr 1fr; }
  .p410-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p410-boxrow-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .p410-burger { display: inline-flex; align-items: center; justify-content: center; }
  .p410-menuband {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    z-index: 60; border-top: 1px solid #2c2d33;
  }
  .p410-menuband-in { flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px; }
  .p410-body.is-drawer-open .p410-menuband { display: block; }
  .p410-menuband-link { border-bottom: 1px solid #2c2d33; }
  .p410-menuband-link.is-active { border-bottom-color: var(--p410-red); }
  .p410-header-in { position: relative; flex-wrap: wrap; }
  .p410-brand-sub { display: none; }
  .p410-brand-word { font-size: 19px; }
  .p410-tools { margin-left: auto; }
  .p410-card-link { flex-direction: column; gap: 10px; }
  .p410-card-icon { width: 52px; height: 52px; flex: 0 0 52px; }
  .p410-summary-top { gap: 12px; }
  .p410-summary-icon { width: 64px; height: 64px; flex: 0 0 64px; }
  .p410-summary-icon img { width: 50px; height: 50px; }
  .p410-foot-in { grid-template-columns: 1fr; }
  .p410-article { padding: 18px 16px; }
  .p410-dock { bottom: 10px; }
}

@media (max-width: 420px) {
  .p410-grid { grid-template-columns: 1fr; }
  .p410-boxrow-in { grid-template-columns: 1fr; }
}
