/* ============================================================
   casiplus.click base stylesheet
   Canvas: 320-430px mobile-first, centered phone frame on wide screens
   Palette: #EEEEEE / #B03060 / #2C3E50 / #FF6347
   Prefix: layer6f229-
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --layer6f229-ink: #2C3E50;
  --layer6f229-deep: #24344a;
  --layer6f229-night: #1b2733;
  --layer6f229-surround: #141d26;
  --layer6f229-paper: #EEEEEE;
  --layer6f229-mist: rgba(238, 238, 238, 0.72);
  --layer6f229-faint: rgba(238, 238, 238, 0.5);
  --layer6f229-mulberry: #B03060;
  --layer6f229-mulberry-deep: #8c264e;
  --layer6f229-tomato: #FF6347;
  --layer6f229-tomato-deep: #e04a33;
  --layer6f229-line: rgba(238, 238, 238, 0.14);
  --layer6f229-line-strong: rgba(238, 238, 238, 0.24);
  --layer6f229-panel: rgba(27, 39, 51, 0.66);
  --layer6f229-radius: 10px;
  --layer6f229-radius-lg: 14px;
  --layer6f229-radius-pill: 999px;
  --layer6f229-font-head: "Trebuchet MS", "Seravek", "Gill Sans", "Segoe UI", Arial, sans-serif;
  --layer6f229-font-body: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --layer6f229-header-h: 58px;
  --layer6f229-dock-h: 60px;
}

/* ---------- 2. Base & reset ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--layer6f229-surround);
  color: var(--layer6f229-paper);
  font-family: var(--layer6f229-font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  color: inherit;
}

a { color: var(--layer6f229-tomato); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--layer6f229-tomato);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Phone canvas keeps the same layout when the viewport grows */
.layer6f229-shell {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 46% at 50% 0%, rgba(176, 48, 96, 0.28), transparent 62%),
    linear-gradient(180deg, var(--layer6f229-ink) 0%, var(--layer6f229-deep) 46%, var(--layer6f229-night) 100%);
  overflow-x: clip;
}

@media (min-width: 431px) {
  .layer6f229-shell {
    box-shadow: 0 0 0 1px rgba(238, 238, 238, 0.08), 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

/* Skip link for keyboard users */
.layer6f229-skip {
  position: absolute;
  left: 10px;
  top: -48px;
  z-index: 120;
  padding: 8px 14px;
  border-radius: 0 0 var(--layer6f229-radius) var(--layer6f229-radius);
  background: var(--layer6f229-tomato);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.layer6f229-skip:focus { top: 0; }

/* ---------- 3. Top bar (asymmetric brand header) ---------- */
.layer6f229-top {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--layer6f229-header-h);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 0 8px;
  background: rgba(27, 39, 51, 0.96);
  border-bottom: 1px solid var(--layer6f229-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.layer6f229-top.layer6f229-scrolled {
  background: rgba(20, 29, 38, 0.98);
  border-bottom-color: var(--layer6f229-line-strong);
}

/* Brand block: logo image + wordmark only */
.layer6f229-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 6px 4px 2px;
  text-decoration: none;
  color: var(--layer6f229-paper);
}

.layer6f229-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid var(--layer6f229-line-strong);
  object-fit: cover;
  background: var(--layer6f229-deep);
}

.layer6f229-word {
  font-family: var(--layer6f229-font-head);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

/* Action cluster sits outside the brand zone */
.layer6f229-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.layer6f229-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.layer6f229-btn:active { transform: translateY(1px); }

.layer6f229-btn-hot {
  background: linear-gradient(135deg, var(--layer6f229-tomato), var(--layer6f229-tomato-deep));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 99, 71, 0.32);
}

.layer6f229-btn-hot:hover { filter: brightness(1.08); }

.layer6f229-btn-ghost {
  background: rgba(238, 238, 238, 0.07);
  border-color: var(--layer6f229-line-strong);
  color: var(--layer6f229-paper);
}

.layer6f229-btn-ghost:hover { background: rgba(238, 238, 238, 0.13); }

.layer6f229-btn-sm {
  min-height: 42px;
  padding: 0 11px;
  font-size: 0.76rem;
}

/* Menu trigger */
.layer6f229-menu-btn {
  width: 44px;
  height: 42px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 9px;
  border: 1px solid var(--layer6f229-line-strong);
  background: rgba(238, 238, 238, 0.07);
  cursor: pointer;
  transition: background 0.2s ease;
}

.layer6f229-menu-btn:hover { background: rgba(238, 238, 238, 0.13); }

.layer6f229-menu-strip {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--layer6f229-paper);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- 4. Full-height menu layer ---------- */
.layer6f229-menu {
  position: fixed;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 110;
  visibility: hidden;
  pointer-events: none;
}

.layer6f229-menu.layer6f229-open {
  visibility: visible;
  pointer-events: auto;
}

.layer6f229-menu-veil {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 22, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
  border: 0;
  cursor: pointer;
}

.layer6f229-menu.layer6f229-open .layer6f229-menu-veil { opacity: 1; }

.layer6f229-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #26374d, #1c2836 70%);
  border-left: 1px solid var(--layer6f229-line-strong);
  transform: translateX(103%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px calc(18px + env(safe-area-inset-bottom));
}

.layer6f229-menu.layer6f229-open .layer6f229-menu-panel { transform: translateX(0); }

.layer6f229-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0 12px;
  border-bottom: 1px solid var(--layer6f229-line);
}

.layer6f229-menu-head .layer6f229-logo { width: 32px; height: 32px; border-radius: 8px; }

.layer6f229-menu-title {
  font-family: var(--layer6f229-font-head);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.layer6f229-menu-close {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--layer6f229-line-strong);
  background: rgba(238, 238, 238, 0.07);
  color: var(--layer6f229-paper);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.layer6f229-menu-label {
  margin: 14px 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--layer6f229-faint);
}

.layer6f229-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.layer6f229-menu-list li + li { border-top: 1px solid var(--layer6f229-line); }

.layer6f229-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 6px;
  color: var(--layer6f229-paper);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.layer6f229-menu-link:hover { color: var(--layer6f229-tomato); background: rgba(238, 238, 238, 0.05); }

.layer6f229-menu-link[aria-current="page"] { color: var(--layer6f229-tomato); }

.layer6f229-menu-tag {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--layer6f229-mulberry);
  border: 1px solid rgba(176, 48, 96, 0.55);
  background: rgba(176, 48, 96, 0.16);
  border-radius: var(--layer6f229-radius-pill);
  padding: 2px 8px;
}

.layer6f229-menu-cta {
  margin-top: 16px;
  width: 100%;
  font-size: 0.85rem;
}

.layer6f229-menu-note {
  margin: 10px 0 0;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--layer6f229-faint);
}

/* ---------- 5. Main column & hero ---------- */
.layer6f229-main {
  padding: calc(var(--layer6f229-header-h) + 14px) 12px calc(var(--layer6f229-dock-h) + 40px + env(safe-area-inset-bottom));
}

.layer6f229-hero {
  padding: 14px 2px 4px;
}

.layer6f229-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--layer6f229-radius-pill);
  border: 1px solid rgba(255, 99, 71, 0.45);
  background: rgba(255, 99, 71, 0.12);
  color: #ffb4a4;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.layer6f229-h1 {
  font-family: var(--layer6f229-font-head);
  font-size: 1.5rem;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 12px 0 10px;
  text-wrap: balance;
}

.layer6f229-h1 .layer6f229-hi { color: var(--layer6f229-tomato); }

.layer6f229-lede {
  margin: 0;
  color: var(--layer6f229-mist);
  font-size: 0.92rem;
}

/* Category jump strip */
.layer6f229-jumps {
  display: flex;
  gap: 6px;
  margin: 14px 0 0;
  padding: 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.layer6f229-jumps::-webkit-scrollbar { display: none; }

.layer6f229-jumps a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: var(--layer6f229-radius-pill);
  border: 1px solid var(--layer6f229-line-strong);
  background: rgba(238, 238, 238, 0.05);
  color: var(--layer6f229-paper);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.layer6f229-jumps a:hover { background: rgba(176, 48, 96, 0.28); color: #ffffff; }

/* ---------- 6. Promo carousel ---------- */
.layer6f229-carousel {
  position: relative;
  margin-top: 16px;
  border-radius: var(--layer6f229-radius-lg);
  overflow: hidden;
  border: 1px solid var(--layer6f229-line-strong);
  background: var(--layer6f229-deep);
}

.layer6f229-track {
  display: flex;
  transition: transform 0.45s ease;
}

.layer6f229-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
}

.layer6f229-slide-hit {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--layer6f229-deep);
  cursor: pointer;
}

.layer6f229-slide-hit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layer6f229-slide-hit:active img { transform: scale(1.02); transition: transform 0.2s ease; }

.layer6f229-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(16, 24, 32, 0.92));
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.layer6f229-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(20, 29, 38, 0.62);
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.layer6f229-arrow:hover { background: rgba(176, 48, 96, 0.78); }

.layer6f229-arrow-prev { left: 6px; }
.layer6f229-arrow-next { right: 6px; }

.layer6f229-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 6px;
}

.layer6f229-dot {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.layer6f229-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(238, 238, 238, 0.45);
  transition: background 0.2s ease, width 0.2s ease;
}

.layer6f229-dot-on::after,
.layer6f229-dot:hover::after {
  background: var(--layer6f229-tomato);
  width: 14px;
  border-radius: var(--layer6f229-radius-pill);
}

/* ---------- 7. Perk strip ---------- */
.layer6f229-perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
  padding: 10px 8px;
  border: 1px solid var(--layer6f229-line);
  border-radius: var(--layer6f229-radius-lg);
  background: var(--layer6f229-panel);
}

.layer6f229-perk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: var(--layer6f229-paper);
}

.layer6f229-perk b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(176, 48, 96, 0.3);
  color: #ffc2b5;
  font-size: 0.72rem;
}

/* ---------- 8. Game bands (grouped cover cards) ---------- */
.layer6f229-band { margin-top: 26px; }

.layer6f229-band-cover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--layer6f229-line-strong);
  border-bottom: 0;
  border-radius: var(--layer6f229-radius-lg) var(--layer6f229-radius-lg) 0 0;
  background: linear-gradient(120deg, rgba(176, 48, 96, 0.85), rgba(176, 48, 96, 0.35));
}

.layer6f229-band-cover h2 {
  margin: 0;
  font-family: var(--layer6f229-font-head);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.layer6f229-count {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: var(--layer6f229-radius-pill);
  background: rgba(20, 29, 38, 0.55);
  border: 1px solid rgba(238, 238, 238, 0.25);
  font-size: 0.64rem;
  font-weight: 700;
  white-space: nowrap;
}

.layer6f229-band-body {
  padding: 12px 11px 13px;
  border: 1px solid var(--layer6f229-line);
  border-top: 0;
  border-radius: 0 0 var(--layer6f229-radius-lg) var(--layer6f229-radius-lg);
  background: var(--layer6f229-panel);
}

.layer6f229-lead {
  margin: 0;
  color: var(--layer6f229-mist);
  font-size: 0.84rem;
  line-height: 1.58;
}

.layer6f229-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 7px;
  margin-top: 13px;
}

/* 375-430px: five compact columns */
@media (min-width: 375px) {
  .layer6f229-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 9px; }
}

.layer6f229-gcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.layer6f229-gcard img {
  width: 100%;
  max-width: 104px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--layer6f229-line-strong);
  background: #22303f;
  transition: transform 0.18s ease, border-color 0.2s ease;
}

.layer6f229-gcard:hover img { border-color: var(--layer6f229-tomato); }

.layer6f229-gcard:active img { transform: scale(0.93); }

.layer6f229-gcard span {
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--layer6f229-paper);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Related-page chips under each category */
.layer6f229-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.layer6f229-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: var(--layer6f229-radius-pill);
  border: 1px solid var(--layer6f229-line-strong);
  background: rgba(176, 48, 96, 0.2);
  color: var(--layer6f229-paper);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.layer6f229-chip:hover { background: rgba(176, 48, 96, 0.45); color: #ffffff; }

.layer6f229-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--layer6f229-tomato);
}

/* ---------- 9. Editorial modules ---------- */
.layer6f229-doc {
  margin-top: 26px;
  padding: 15px 13px 16px;
  border: 1px solid var(--layer6f229-line);
  border-radius: var(--layer6f229-radius-lg);
  background: linear-gradient(180deg, rgba(36, 52, 74, 0.9), rgba(27, 39, 51, 0.9));
}

.layer6f229-doc h2 {
  margin: 0 0 10px;
  font-family: var(--layer6f229-font-head);
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
}

.layer6f229-doc h3 {
  margin: 16px 0 6px;
  font-family: var(--layer6f229-font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffb4a4;
}

.layer6f229-doc p {
  margin: 0 0 10px;
  color: var(--layer6f229-mist);
  font-size: 0.85rem;
  line-height: 1.6;
}

.layer6f229-doc p:last-child { margin-bottom: 0; }

.layer6f229-doc a { color: #ff8a73; text-decoration: underline; text-underline-offset: 3px; }

.layer6f229-doc a:hover { color: var(--layer6f229-tomato); }

.layer6f229-steps {
  margin: 12px 0 12px;
  padding: 0 0 0 4px;
  list-style: none;
  counter-reset: layer6f229-step;
}

.layer6f229-steps li {
  counter-increment: layer6f229-step;
  position: relative;
  padding: 0 0 12px 34px;
  color: var(--layer6f229-mist);
  font-size: 0.84rem;
  line-height: 1.58;
}

.layer6f229-steps li:last-child { padding-bottom: 0; }

.layer6f229-steps li::before {
  content: counter(layer6f229-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 99, 71, 0.16);
  border: 1px solid rgba(255, 99, 71, 0.5);
  color: #ffb4a4;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Category mini cards inside module B */
.layer6f229-minis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.layer6f229-mini {
  padding: 10px 10px 11px;
  border: 1px solid var(--layer6f229-line);
  border-radius: var(--layer6f229-radius);
  background: rgba(238, 238, 238, 0.045);
}

.layer6f229-mini b {
  display: block;
  font-family: var(--layer6f229-font-head);
  font-size: 0.8rem;
  color: var(--layer6f229-paper);
  margin-bottom: 4px;
}

.layer6f229-mini span { font-size: 0.72rem; line-height: 1.5; color: var(--layer6f229-mist); }

/* Relationship list inside module D */
.layer6f229-rel {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.layer6f229-rel li {
  position: relative;
  padding: 8px 0 8px 20px;
  border-top: 1px dashed var(--layer6f229-line);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--layer6f229-mist);
}

.layer6f229-rel li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  transform: rotate(45deg);
  background: rgba(176, 48, 96, 0.75);
}

.layer6f229-rel b { color: var(--layer6f229-paper); }

/* ---------- 10. Extended footer (homepage directory) ---------- */
.layer6f229-xfoot {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--layer6f229-line-strong);
}

.layer6f229-xtitle {
  margin: 0 0 10px;
  font-family: var(--layer6f229-font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--layer6f229-faint);
}

.layer6f229-dir {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.layer6f229-dir a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  color: var(--layer6f229-paper);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--layer6f229-line);
  transition: color 0.2s ease;
}

.layer6f229-dir a:hover { color: var(--layer6f229-tomato); }

.layer6f229-dir a::before {
  content: "›";
  color: var(--layer6f229-mulberry);
  font-weight: 700;
}

.layer6f229-brandnote {
  margin: 0 0 16px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--layer6f229-mist);
}

.layer6f229-promos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.layer6f229-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: var(--layer6f229-radius);
  border: 1px solid rgba(255, 99, 71, 0.5);
  background: linear-gradient(135deg, rgba(255, 99, 71, 0.16), rgba(176, 48, 96, 0.22));
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.layer6f229-promo:hover { filter: brightness(1.15); }

.layer6f229-promo:active { transform: translateY(1px); }

.layer6f229-promo-wide { grid-column: 1 / -1; }

.layer6f229-promo svg { flex: 0 0 auto; }

.layer6f229-fineprint {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--layer6f229-radius);
  border: 1px dashed var(--layer6f229-line-strong);
  font-size: 0.68rem;
  line-height: 1.55;
  color: var(--layer6f229-faint);
}

/* ---------- 11. Common footer & dock ---------- */
.layer6f229-foot {
  margin-top: 20px;
  padding: 12px 6px 8px;
  border-top: 1px solid var(--layer6f229-line);
  text-align: center;
  font-size: 0.7rem;
  color: var(--layer6f229-faint);
}

.layer6f229-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 5px 2px calc(5px + env(safe-area-inset-bottom));
  background: rgba(20, 29, 38, 0.97);
  border-top: 1px solid var(--layer6f229-line-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.layer6f229-dock > * + * { border-left: 1px solid var(--layer6f229-line); }

.layer6f229-dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 4px 2px;
  color: var(--layer6f229-mist);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  background: transparent;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  cursor: pointer;
  transition: color 0.25s ease;
}

.layer6f229-dock-item:hover { color: var(--layer6f229-paper); }

.layer6f229-dock-item svg { width: 21px; height: 21px; }

.layer6f229-dock-item .layer6f229-dock-tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Active page: label emphasis + top pill */
.layer6f229-dock-item.layer6f229-here { color: var(--layer6f229-tomato); font-weight: 700; }

.layer6f229-dock-item.layer6f229-here::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: var(--layer6f229-radius-pill);
  background: var(--layer6f229-tomato);
}

/* Promo roles keep a warm accent dot */
.layer6f229-dock-item.layer6f229-dock-promo::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 18%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--layer6f229-mulberry);
}

/* ---------- 12. Wide-screen polish ---------- */
@media (min-width: 430px) {
  .layer6f229-h1 { font-size: 1.62rem; }
  .layer6f229-slide-cap { font-size: 0.78rem; }
  .layer6f229-doc p, .layer6f229-lead { font-size: 0.87rem; }
}

/* ---------- 13. Motion & a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

::selection { background: rgba(176, 48, 96, 0.6); color: #ffffff; }

/* ---------- 14. Help-page additions (Part1) ---------- */

/* Checkbox-style checklist (bonus page) */
.layer6f229-check {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.layer6f229-check li {
  position: relative;
  padding: 7px 0 7px 30px;
  border-top: 1px solid var(--layer6f229-line);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--layer6f229-mist);
}

.layer6f229-check li:first-child { border-top: 0; }

.layer6f229-check li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 99, 71, 0.6);
  background: rgba(255, 99, 71, 0.1);
}

.layer6f229-check li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 15px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--layer6f229-tomato);
  border-bottom: 2px solid var(--layer6f229-tomato);
  transform: rotate(-45deg);
}

.layer6f229-check b { color: var(--layer6f229-paper); }

/* Term definition rows (bonus page) */
.layer6f229-defs {
  margin: 12px 0 0;
  padding: 0;
}

.layer6f229-def {
  padding: 9px 0;
  border-top: 1px dashed var(--layer6f229-line);
}

.layer6f229-def:first-child { border-top: 0; }

.layer6f229-def dt {
  margin: 0 0 3px;
  font-family: var(--layer6f229-font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffb4a4;
}

.layer6f229-def dd {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--layer6f229-mist);
}

/* Visible Q&A card (safety page) */
.layer6f229-qa {
  margin-top: 12px;
  padding: 12px 12px 13px;
  border: 1px solid var(--layer6f229-line);
  border-left: 3px solid var(--layer6f229-mulberry);
  border-radius: var(--layer6f229-radius);
  background: rgba(238, 238, 238, 0.04);
}

.layer6f229-qa h3 {
  margin: 0 0 6px;
  font-family: var(--layer6f229-font-head);
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--layer6f229-paper);
}

.layer6f229-qa p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--layer6f229-mist);
}

/* Inline text-style promo trigger */
.layer6f229-linkline {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: #ff8a73;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.layer6f229-linkline:hover { color: var(--layer6f229-tomato); }

/* Mid-article promo band */
.layer6f229-ctaband {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 2px;
  padding: 11px 12px;
  border-radius: var(--layer6f229-radius);
  border: 1px solid rgba(255, 99, 71, 0.45);
  background: linear-gradient(120deg, rgba(255, 99, 71, 0.14), rgba(176, 48, 96, 0.2));
}

.layer6f229-ctaband p {
  flex: 1 1 150px;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--layer6f229-paper);
}

.layer6f229-ctaband .layer6f229-btn { flex: 0 0 auto; }
