/* siteapp405 - BonusBeacon.
   The scraped reference (thecasinowizard.com) sits on a lilac-white canvas
   (#f8f5f8) with white panels edged in #dedede at a 16px radius, a deep
   purple masthead (#170124), a violet panel tone (#4a275f) and one hot-pink
   action colour (#e92a9f). Its signature is a wall of rounded stat cards
   and guide cards, so the APK catalogue is filed as a card grid rather than
   a table. This stylesheet keeps that reading, with a near-black plum night
   mode under [data-p405-mode="dark"].
   Every rule is scoped under the p405 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 {

  --p405-canvas: #f8f5f8;
  --p405-surface: #ffffff;
  --p405-surface-2: #f3eef4;
  --p405-wash: #f6f1f7;
  --p405-ink: #2b1b33;
  --p405-ink-soft: #4d3b56;
  --p405-muted: #7c6a85;
  --p405-faint: #a496ab;
  --p405-line: #dedede;
  --p405-line-strong: #c6c0c8;
  --p405-purple: #170124;
  --p405-purple-deep: #100019;
  --p405-violet: #4a275f;
  --p405-violet-wash: #f1e8f4;
  --p405-pink: #e92a9f;
  --p405-pink-deep: #bf1a80;
  --p405-pink-wash: #fdeaf6;
  --p405-star: #f5a623;
  --p405-shadow: 0 10px 26px rgba(23, 1, 36, .12);
  --p405-shadow-sm: 0 3px 10px rgba(23, 1, 36, .10);
  --p405-radius: 16px;
  --p405-radius-sm: 10px;
  --p405-body: 'Work Sans', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

[data-p405-mode='dark'] {
  --p405-canvas: #12071a;
  --p405-surface: #1d0f27;
  --p405-surface-2: #271634;
  --p405-wash: #22122e;
  --p405-ink: #f6eff8;
  --p405-ink-soft: #ddcfe4;
  --p405-muted: #a996b2;
  --p405-faint: #7d6a88;
  --p405-line: #35203f;
  --p405-line-strong: #4a2f57;
  --p405-purple: #f6eff8;
  --p405-purple-deep: #ffffff;
  --p405-violet: #c69ad6;
  --p405-violet-wash: #2a1535;
  --p405-pink: #ff5cbb;
  --p405-pink-deep: #ff8acd;
  --p405-pink-wash: #3a1330;
  --p405-star: #f5a623;
  --p405-shadow: 0 10px 26px rgba(0, 0, 0, .55);
  --p405-shadow-sm: 0 3px 10px rgba(0, 0, 0, .45);
}

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

body.p405-body {
  margin: 0;
  background: var(--p405-canvas);
  color: var(--p405-ink);
  font-family: var(--p405-body);
  font-size: 14.5px;
  line-height: 1.7;
  /* The reference clips sideways overflow at the body, which is also the
     cheapest way to keep a wide card grid from widening the page. */
  overflow-x: clip;
}
.p405-body a { color: var(--p405-pink-deep); text-decoration: none; }
.p405-body a:hover { color: var(--p405-pink); }
.p405-body img { max-width: 100%; height: auto; }
.p405-body h1, .p405-body h2, .p405-body h3, .p405-body h4 {
  font-family: var(--p405-body); color: var(--p405-ink); line-height: 1.3;
}
.p405-body p { margin: 0 0 1em; }
.p405-body ul, .p405-body ol { margin: 0 0 1em; padding-left: 1.25em; }

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

.p405-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--p405-purple); color: #ffffff; padding: 10px 18px;
}
.p405-skip:focus { left: 0; color: #ffffff; }

/* ---------- utility strip ---------- */
.p405-utility {
  background: var(--p405-purple-deep); color: #c3aecd;
  font-size: 12px;
}
.p405-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;
}
.p405-utility-note { color: var(--p405-pink); font-weight: 700; }
.p405-utility-note i { margin-right: 5px; }
.p405-utility-links { color: #9c85a6; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- header ---------- */
.p405-header {
  background: var(--p405-purple); color: #ffffff;
  border-bottom: 3px solid var(--p405-pink);
  position: relative;
}
.p405-header-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: flex; align-items: center; gap: 16px; padding: 12px 0;
}
.p405-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.p405-brand-mark {
  width: 44px; height: 44px; display: inline-flex; overflow: hidden;
  border-radius: 10px;
}
.p405-brand-mark img { display: block; width: 44px; height: 44px; }
.p405-brand-word {
  font-size: 22px; font-weight: 700; color: #ffffff; letter-spacing: -.3px;
  display: block; line-height: 1.1;
}
.p405-brand-sub {
  display: block; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--p405-pink);
}
.p405-nav { display: flex; align-items: center; gap: 0; flex: 1 1 auto; flex-wrap: wrap; min-width: 0; }
.p405-nav-link {
  padding: 8px 12px; font-size: 13.5px; font-weight: 600; color: #d9c8e0;
  border-bottom: 2px solid transparent;
}
.p405-nav-link:hover { background: rgba(255, 255, 255, .08); color: var(--p405-pink); }
.p405-nav-link.is-active { color: var(--p405-pink); border-bottom-color: var(--p405-pink); }
.p405-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.p405-switch {
  display: inline-flex; overflow: hidden; border: 1px solid #4a275f;
  border-radius: 20px;
}
.p405-switch-seg {
  padding: 5px 12px; font-size: 12px; font-weight: 700; color: #cdb7d6;
  text-transform: uppercase; letter-spacing: .5px;
}
.p405-switch-seg.is-active { background: var(--p405-pink); color: #ffffff; }
.p405-mode {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid #4a275f; color: #d9c8e0;
  font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
}
.p405-mode:hover { color: #ffffff; border-color: var(--p405-pink); background: var(--p405-pink); }
.p405-burger {
  display: none; width: 38px; height: 38px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid #4a275f; color: #ffffff; font-size: 15px;
}

/* ---------- marquee ---------- */
.p405-marquee {
  background: var(--p405-violet); color: #ffffff; overflow: hidden;
  font-size: 12.5px; font-weight: 600;
}
.p405-marquee-track {
  display: flex; gap: 30px; padding: 7px 0; white-space: nowrap;
  width: max-content; animation: p405-marquee 26s linear infinite;
}
.p405-marquee-item { display: inline-flex; align-items: center; }
.p405-marquee-item i { color: var(--p405-pink); font-size: 10px; margin-right: 5px; }
@keyframes p405-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .p405-marquee-track { animation: none; }
}

/* ---------- hero ---------- */
.p405-hero {
  background: var(--p405-purple);
  background-image: linear-gradient(135deg, #170124 0%, #2c1240 55%, #4a275f 100%);
  color: #ffffff;
  padding-bottom: 30px;
}
.p405-hero-in {
  display: grid; grid-template-columns: 1fr 300px; gap: 34px;
  align-items: center; padding: 42px 0 30px;
}
.p405-hero-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--p405-pink);
  border: 1px solid rgba(233, 42, 159, .45); padding: 4px 12px; border-radius: 16px;
}
.p405-body .p405-hero-h1 {
  font-size: clamp(28px, 4.2vw, 44px); font-weight: 700; color: #ffffff;
  margin: 14px 0 12px; letter-spacing: -.8px;
}
.p405-hero-lead { color: #cdb7d6; font-size: 15px; max-width: 62ch; }
.p405-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 18px; }
.p405-hero-marks {
  list-style: none; padding: 0; margin: 0; display: flex; gap: 18px;
  flex-wrap: wrap; font-size: 12.5px; color: #b79dc3;
}
.p405-hero-marks i { color: var(--p405-pink); margin-right: 5px; }

/* Stat band: the reference's translucent stat cards. */
.p405-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.p405-stat {
  background: rgba(255, 255, 255, .05); border: 1px solid #421859;
  border-radius: var(--p405-radius); padding: 16px;
  transition: background .3s ease, transform .3s ease;
}
.p405-stat:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.p405-stat-number {
  display: block; color: #ffffff; font-size: 30px; font-weight: 700;
  line-height: 1.2; margin-bottom: 6px;
}
.p405-stat-text { display: block; color: rgba(255, 255, 255, .8); font-size: 13.5px; line-height: 1.4; }

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

.p405-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; font-weight: 700; font-size: 14px; border-radius: var(--p405-radius-sm);
  border: 1px solid transparent;
}
.p405-btn.is-brand { background: var(--p405-pink); color: #ffffff; box-shadow: var(--p405-shadow-sm); }
.p405-btn.is-brand:hover { background: var(--p405-pink-deep); color: #ffffff; }
.p405-btn.is-ghost { background: transparent; border-color: var(--p405-line-strong); color: var(--p405-ink); }
.p405-btn.is-ghost:hover { border-color: var(--p405-pink); color: var(--p405-pink-deep); background: var(--p405-pink-wash); }
.p405-hero .p405-btn.is-ghost { border-color: #4a275f; color: #d9c8e0; }
.p405-hero .p405-btn.is-ghost:hover { border-color: var(--p405-pink); color: var(--p405-pink); background: rgba(233, 42, 159, .12); }

/* ---------- category ribbon ---------- */
.p405-ribbon { background: var(--p405-surface); border-bottom: 1px solid var(--p405-line); }
.p405-ribbon-in {
  width: min(1200px, 100% - 32px); margin: 0 auto;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0;
}
.p405-ribbon-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--p405-muted); margin-right: 4px;
}
.p405-ribbon-link {
  font-size: 13px; font-weight: 600; color: var(--p405-ink-soft);
  padding: 5px 13px; border: 1px solid var(--p405-line); border-radius: 18px;
}
.p405-ribbon-link:hover { color: var(--p405-pink-deep); border-color: var(--p405-pink); }
.p405-ribbon-link.is-active { background: var(--p405-pink); border-color: var(--p405-pink); color: #ffffff; }

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

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

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

/* ---------- rail ---------- */
.p405-rail { min-width: 0; }
.p405-rail-box {
  background: var(--p405-surface); border: 1px solid var(--p405-line);
  padding: 15px 16px; margin-bottom: 16px; border-radius: var(--p405-radius);
}
.p405-rail-box.is-brand { border-left: 3px solid var(--p405-pink); }
.p405-rail-title {
  font-size: 14.5px; font-weight: 700; margin: 0 0 10px; position: relative; padding-bottom: 8px;
  border-bottom: 1px solid var(--p405-line);
}
.p405-rail-title i { color: var(--p405-pink); margin-right: 5px; }
.p405-rail-search { display: flex; gap: 8px; }
.p405-rail-search input {
  flex: 1 1 auto; min-width: 0; border: 1px solid var(--p405-line-strong);
  background: var(--p405-surface-2); color: var(--p405-ink);
  padding: 9px 13px; font: inherit; font-size: 13px; border-radius: var(--p405-radius-sm);
}
.p405-rail-search input:focus { outline: 2px solid var(--p405-pink); outline-offset: 1px; }
.p405-rail-search button {
  border: none; cursor: pointer; background: var(--p405-pink); color: #ffffff;
  padding: 0 14px; border-radius: var(--p405-radius-sm); font-size: 13px;
}
.p405-rail-search button:hover { background: var(--p405-pink-deep); }
.p405-rail-empty { font-size: 13px; color: var(--p405-muted); margin: 10px 0 0; }
.p405-rail-cta {
  background: var(--p405-purple); border-radius: var(--p405-radius); padding: 16px;
  color: #cdb7d6;
}
.p405-rail-cta p { font-size: 13.5px; margin: 0 0 12px; }

.p405-ranklist { list-style: none; margin: 0; padding: 0; }
.p405-ranklist li { border-bottom: 1px solid var(--p405-line); }
.p405-ranklist li:last-child { border-bottom: none; }
.p405-ranklist a {
  display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--p405-ink);
}
.p405-ranklist a:hover { color: var(--p405-pink-deep); }
.p405-ranklist img {
  width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px;
  background: var(--p405-surface-2); border: 1px solid var(--p405-line); border-radius: 6px;
}
.p405-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(--p405-violet-wash); color: var(--p405-violet); border-radius: 6px;
}
.p405-ranklist-text { min-width: 0; }
.p405-ranklist-text b {
  display: block; font-size: 13px; font-weight: 600; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.p405-ranklist-text small { font-size: 11.5px; color: var(--p405-muted); }
.p405-ranklist-text small i { color: var(--p405-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. */
.p405-detail {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px;
  align-items: start; padding: 22px 0 48px;
}
.p405-crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--p405-muted); margin: 0 0 12px;
}
.p405-crumb a { color: var(--p405-ink-soft); }
.p405-crumb a:hover { color: var(--p405-pink-deep); }

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

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

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

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

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

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

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

/* ---------- download zone (shared appkit markup) ---------- */
.p405-dlzone { margin: 24px 0; }
.app-dl-zone {
  background: var(--p405-surface); border: 1px solid var(--p405-line);
  border-top: 3px solid var(--p405-pink); padding: 18px; text-align: center;
  border-radius: var(--p405-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(--p405-radius-sm);
  background: var(--p405-pink); color: #ffffff;
  font: inherit; font-weight: 700; font-size: 14px;
  box-shadow: var(--p405-shadow-sm);
}
.app-dl-btn:hover { background: var(--p405-pink-deep); color: #ffffff; }
.app-dl-progress { margin-bottom: 14px; }
.app-dl-progress span { display: block; font-size: 13px; color: var(--p405-ink-soft); margin-bottom: 8px; }
.app-dl-bar {
  display: block; height: 7px; background: var(--p405-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(--p405-pink), var(--p405-violet));
  display: block;
}
.app-dl-install {
  background: var(--p405-surface-2); border: 1px solid var(--p405-line);
  padding: 12px 16px; margin-bottom: 14px; text-align: left;
  border-radius: var(--p405-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; }
.p405-body .app-dl-final,
.p405-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(--p405-radius-sm);
  background: var(--p405-pink); color: #ffffff; text-decoration: none;
  box-shadow: var(--p405-shadow-sm);
}
.p405-body .app-dl-final:hover,
.p405-body a.app-dl-final:hover { background: var(--p405-pink-deep); color: #ffffff; }
.app-dl-final[hidden] { display: none; }

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

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

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

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

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

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

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

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

@media (max-width: 420px) {
  .p405-grid { grid-template-columns: 1fr; }
  .p405-stats { grid-template-columns: 1fr; }
}
