/* ==========================================================================
   nwrp.click — base stylesheet (palette-responsive-f34a7a)
   Mobile canvas 320-430px. Palette: #0F0F23 deep / #26A69A tide / #40E0D0 foam
   Direction: bold-light type pairing, round buttons on square cards,
   outlined tile game grid, verdict-first rhythm, color-only state motion.
   ========================================================================== */

:root {
  --shell4a7a4-deep: #0F0F23;
  --shell4a7a4-deep-2: #15152E;
  --shell4a7a4-deep-3: #1B1B3A;
  --shell4a7a4-tide: #26A69A;
  --shell4a7a4-foam: #40E0D0;
  --shell4a7a4-ink: #EAF7F5;
  --shell4a7a4-ink-soft: #B7CDCB;
  --shell4a7a4-ink-dim: #8CA3A6;
  --shell4a7a4-line: rgba(64, 224, 208, 0.30);
  --shell4a7a4-line-soft: rgba(38, 166, 154, 0.18);
  --shell4a7a4-wash: rgba(38, 166, 154, 0.10);
  --shell4a7a4-wash-2: rgba(64, 224, 208, 0.12);
  --shell4a7a4-radius-card: 6px;
  --shell4a7a4-radius-pill: 999px;
  --shell4a7a4-gap: 8px;
  --shell4a7a4-topbar-h: 58px;
  --shell4a7a4-tabbar-h: 60px;
  --shell4a7a4-safe-b: env(safe-area-inset-bottom, 0px);
  --shell4a7a4-font-head: "Segoe UI Semibold", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shell4a7a4-font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- base ------------------------------------------------------------- */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--shell4a7a4-deep);
  color: var(--shell4a7a4-ink);
  font-family: var(--shell4a7a4-font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
}

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: var(--shell4a7a4-foam); text-decoration: none; }

a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--shell4a7a4-foam);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--shell4a7a4-tide); color: var(--shell4a7a4-deep); }

/* ---- phone canvas ------------------------------------------------------ */

.shell4a7a4-canvas {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 42% at 50% 0%, rgba(38, 166, 154, 0.14), transparent 60%),
    var(--shell4a7a4-deep);
  overflow-x: clip;
}

@media (min-width: 480px) {
  .shell4a7a4-canvas {
    box-shadow: 0 0 0 1px var(--shell4a7a4-line-soft), 0 18px 60px rgba(0, 0, 0, 0.55);
  }
}

.shell4a7a4-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 60;
  background: var(--shell4a7a4-foam);
  color: var(--shell4a7a4-deep);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 0 0 var(--shell4a7a4-radius-card) 0;
}

.shell4a7a4-skip:focus { left: 0; }

/* ---- top identity bar --------------------------------------------------- */

.shell4a7a4-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--shell4a7a4-topbar-h);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: rgba(15, 15, 35, 0.94);
  border-bottom: 1px solid var(--shell4a7a4-line-soft);
  backdrop-filter: blur(6px);
}

/* centered identity zone: real logo image + site name only */
.shell4a7a4-brand {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  color: var(--shell4a7a4-ink);
}

.shell4a7a4-brand:hover { text-decoration: none; }

.shell4a7a4-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--shell4a7a4-line);
  object-fit: cover;
  flex: 0 0 auto;
}

.shell4a7a4-brand b {
  font-family: var(--shell4a7a4-font-head);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--shell4a7a4-foam);
  white-space: nowrap;
}

/* menu trigger */
.shell4a7a4-menubtn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--shell4a7a4-line-soft);
  border-radius: var(--shell4a7a4-radius-card);
}

.shell4a7a4-menubtn i {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--shell4a7a4-foam);
  transition: background-color 0.2s ease;
}

.shell4a7a4-menubtn:hover { border-color: var(--shell4a7a4-line); background: var(--shell4a7a4-wash); }

/* compact dual auth group lives outside the identity zone */
.shell4a7a4-auth {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shell4a7a4-auth .shell4a7a4-btn { min-height: 36px; padding: 7px 13px; font-size: 13px; }

/* ---- pills / buttons ----------------------------------------------------- */

.shell4a7a4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--shell4a7a4-radius-pill);
  font-family: var(--shell4a7a4-font-head);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.shell4a7a4-btn-solid {
  background: var(--shell4a7a4-foam);
  color: var(--shell4a7a4-deep);
}

.shell4a7a4-btn-solid:hover { background: #6BE9DC; }

.shell4a7a4-btn-ghost {
  background: transparent;
  color: var(--shell4a7a4-foam);
  border-color: var(--shell4a7a4-line);
}

.shell4a7a4-btn-ghost:hover { background: var(--shell4a7a4-wash-2); border-color: var(--shell4a7a4-foam); }

.shell4a7a4-duo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- full-height menu layer ---------------------------------------------- */

.shell4a7a4-scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(6, 6, 18, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.shell4a7a4-scrim.shell4a7a4-scrim-on { opacity: 1; visibility: visible; }

.shell4a7a4-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: var(--shell4a7a4-deep-2);
  border-right: 1px solid var(--shell4a7a4-line-soft);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.shell4a7a4-menu.shell4a7a4-menu-on { opacity: 1; visibility: visible; }

.shell4a7a4-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--shell4a7a4-line-soft);
}

.shell4a7a4-menu-top b {
  font-family: var(--shell4a7a4-font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--shell4a7a4-foam);
  letter-spacing: 0.05em;
}

.shell4a7a4-menu-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--shell4a7a4-line-soft);
  border-radius: var(--shell4a7a4-radius-card);
  color: var(--shell4a7a4-ink-soft);
  font-size: 20px;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.shell4a7a4-menu-close:hover { color: var(--shell4a7a4-foam); border-color: var(--shell4a7a4-line); }

.shell4a7a4-menu-list {
  list-style: none;
  margin: 0;
  padding: 10px 12px calc(20px + var(--shell4a7a4-safe-b));
  overflow-y: auto;
  flex: 1 1 auto;
}

.shell4a7a4-menu-list li { margin: 0; }

.shell4a7a4-menu-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 11px 12px;
  border-radius: var(--shell4a7a4-radius-card);
  border: 1px solid transparent;
  color: var(--shell4a7a4-ink);
  font-family: var(--shell4a7a4-font-head);
  font-weight: 700;
  font-size: 15px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.shell4a7a4-menu-link small {
  font-family: var(--shell4a7a4-font-body);
  font-weight: 400;
  font-size: 11.5px;
  color: var(--shell4a7a4-ink-dim);
  text-align: right;
  white-space: nowrap;
}

.shell4a7a4-menu-link:hover {
  background: var(--shell4a7a4-wash);
  border-color: var(--shell4a7a4-line-soft);
  text-decoration: none;
  color: var(--shell4a7a4-foam);
}

.shell4a7a4-menu-note {
  margin: 14px 4px 0;
  font-size: 11.5px;
  color: var(--shell4a7a4-ink-dim);
}

body.shell4a7a4-locked { overflow: hidden; }

/* ---- main flow ------------------------------------------------------------ */

.shell4a7a4-main {
  padding: calc(var(--shell4a7a4-topbar-h) + 12px) 14px
           calc(var(--shell4a7a4-tabbar-h) + 30px + var(--shell4a7a4-safe-b));
}

.shell4a7a4-section { margin: 26px 0; }

.shell4a7a4-section:first-child { margin-top: 14px; }

.shell4a7a4-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  font-family: var(--shell4a7a4-font-head);
  font-weight: 800;
  font-size: 18.5px;
  line-height: 1.3;
  color: var(--shell4a7a4-ink);
  text-wrap: balance;
}

/* depth-marker motif: tide rule with a foam diamond */
.shell4a7a4-heading::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 8px;
  border-left: 3px solid var(--shell4a7a4-tide);
  border-right: 3px solid var(--shell4a7a4-tide);
  transform: skewX(-18deg);
  background: var(--shell4a7a4-foam);
}

.shell4a7a4-lede {
  margin: 0 0 12px;
  color: var(--shell4a7a4-ink-soft);
  font-size: 14.5px;
}

.shell4a7a4-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--shell4a7a4-ink-dim);
}

.shell4a7a4-secnote {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--shell4a7a4-ink-dim);
  line-height: 1.55;
}

.shell4a7a4-secnote a { color: var(--shell4a7a4-foam); }

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

.shell4a7a4-hero { padding-top: 4px; }

.shell4a7a4-hero h1 {
  margin: 0 0 10px;
  font-family: var(--shell4a7a4-font-head);
  font-weight: 800;
  font-size: 27px;
  line-height: 1.22;
  letter-spacing: 0.005em;
  color: var(--shell4a7a4-ink);
  text-wrap: balance;
}

.shell4a7a4-hero h1 em {
  font-style: normal;
  color: var(--shell4a7a4-foam);
}

.shell4a7a4-hero .shell4a7a4-lede { font-size: 15px; }

.shell4a7a4-strap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0 0;
  list-style: none;
  padding: 0;
}

.shell4a7a4-strap li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--shell4a7a4-ink-soft);
  background: var(--shell4a7a4-wash);
  border: 1px solid var(--shell4a7a4-line-soft);
  border-radius: var(--shell4a7a4-radius-card);
}

.shell4a7a4-strap li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--shell4a7a4-foam);
  transform: rotate(45deg);
}

@media (min-width: 375px) {
  .shell4a7a4-strap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shell4a7a4-strap li { flex-direction: column; gap: 4px; text-align: center; font-size: 11px; }
}

/* ---- banner carousel ------------------------------------------------------- */

.shell4a7a4-carousel {
  position: relative;
  aspect-ratio: 2 / 1;
  margin: 18px 0 4px;
  border-radius: 10px;
  border: 1px solid var(--shell4a7a4-line-soft);
  background: var(--shell4a7a4-deep-2);
  overflow: hidden;
}

.shell4a7a4-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.shell4a7a4-slide.shell4a7a4-slide-on { opacity: 1; visibility: visible; pointer-events: auto; }

.shell4a7a4-slide img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.shell4a7a4-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(15, 15, 35, 0) 0%, rgba(15, 15, 35, 0.88) 78%);
  text-align: left;
}

.shell4a7a4-slide-cap b {
  font-family: var(--shell4a7a4-font-head);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--shell4a7a4-ink);
}

.shell4a7a4-slide-cap span {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--shell4a7a4-deep);
  background: var(--shell4a7a4-foam);
  border-radius: var(--shell4a7a4-radius-pill);
  padding: 5px 11px;
}

.shell4a7a4-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.shell4a7a4-dot {
  width: 44px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shell4a7a4-dot i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(234, 247, 245, 0.4);
  transition: background-color 0.2s ease;
}

.shell4a7a4-dot.shell4a7a4-dot-on i { background: var(--shell4a7a4-foam); }

.shell4a7a4-dot:hover i { background: var(--shell4a7a4-foam); }

/* ---- game grid: outlined tile cards ----------------------------------------- */

.shell4a7a4-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--shell4a7a4-gap);
}

@media (min-width: 400px) {
  .shell4a7a4-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.shell4a7a4-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 6px 6px 7px;
  background: var(--shell4a7a4-deep-2);
  border: 1px solid var(--shell4a7a4-line-soft);
  border-radius: var(--shell4a7a4-radius-card);
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.shell4a7a4-tile:hover {
  border-color: var(--shell4a7a4-foam);
  background: var(--shell4a7a4-deep-3);
}

.shell4a7a4-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--shell4a7a4-deep);
}

.shell4a7a4-tile span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 26px;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--shell4a7a4-ink-soft);
  transition: color 0.2s ease;
}

.shell4a7a4-tile:hover span { color: var(--shell4a7a4-foam); }

/* ---- winners strip ------------------------------------------------------------ */

.shell4a7a4-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--shell4a7a4-tide) transparent;
  -webkit-overflow-scrolling: touch;
}

.shell4a7a4-wchip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 216px;
  min-height: 52px;
  padding: 7px 10px;
  background: var(--shell4a7a4-deep-2);
  border: 1px solid var(--shell4a7a4-line-soft);
  border-radius: var(--shell4a7a4-radius-card);
}

.shell4a7a4-wchip img {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  object-fit: cover;
  flex: 0 0 auto;
}

.shell4a7a4-wchip b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--shell4a7a4-ink);
}

.shell4a7a4-wchip small {
  display: block;
  font-size: 11px;
  color: var(--shell4a7a4-ink-dim);
}

.shell4a7a4-wchip small strong { color: var(--shell4a7a4-foam); font-weight: 700; }

/* ---- category highlight cards --------------------------------------------------- */

.shell4a7a4-hlgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.shell4a7a4-hlcard {
  padding: 11px 12px;
  background: var(--shell4a7a4-wash);
  border: 1px solid var(--shell4a7a4-line-soft);
  border-radius: var(--shell4a7a4-radius-card);
}

.shell4a7a4-hlcard b {
  display: block;
  margin: 0 0 4px;
  font-family: var(--shell4a7a4-font-head);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--shell4a7a4-foam);
}

.shell4a7a4-hlcard p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--shell4a7a4-ink-soft);
}

.shell4a7a4-hlcard p em {
  font-style: normal;
  color: var(--shell4a7a4-ink);
  font-weight: 600;
}

/* ---- quotes ------------------------------------------------------------------ */

.shell4a7a4-quote {
  margin: 0 0 10px;
  padding: 12px 13px;
  background: var(--shell4a7a4-deep-2);
  border: 1px solid var(--shell4a7a4-line-soft);
  border-left: 3px solid var(--shell4a7a4-tide);
  border-radius: var(--shell4a7a4-radius-card);
}

.shell4a7a4-quote p {
  margin: 0 0 6px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--shell4a7a4-ink-soft);
}

.shell4a7a4-quote footer {
  font-size: 11.5px;
  color: var(--shell4a7a4-ink-dim);
}

.shell4a7a4-quote footer strong { color: var(--shell4a7a4-foam); font-weight: 700; }

/* ---- direct answer block ------------------------------------------------------- */

.shell4a7a4-qa {
  padding: 13px 14px;
  background: var(--shell4a7a4-wash-2);
  border: 1px solid var(--shell4a7a4-line);
  border-radius: var(--shell4a7a4-radius-card);
}

.shell4a7a4-qa p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--shell4a7a4-ink); }

.shell4a7a4-qa p:last-child { margin: 0; color: var(--shell4a7a4-ink-soft); font-size: 13px; }

/* ---- checklist -------------------------------------------------------------------- */

.shell4a7a4-check {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shell4a7a4-check li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--shell4a7a4-line-soft);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--shell4a7a4-ink-soft);
}

.shell4a7a4-check li:last-child { border-bottom: 0; }

.shell4a7a4-check li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 4px;
  border: 1px solid var(--shell4a7a4-tide);
  background:
    linear-gradient(135deg, transparent 42%, var(--shell4a7a4-tide) 43% 57%, transparent 58%) no-repeat center /
    12px 12px;
}

.shell4a7a4-check li strong { color: var(--shell4a7a4-ink); }

/* ---- step pairs (verdict first, compare after) -------------------------------------- */

.shell4a7a4-pair {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.shell4a7a4-pair article {
  padding: 11px 12px;
  background: var(--shell4a7a4-deep-2);
  border: 1px solid var(--shell4a7a4-line-soft);
  border-radius: var(--shell4a7a4-radius-card);
}

.shell4a7a4-pair b {
  display: block;
  margin: 0 0 3px;
  font-family: var(--shell4a7a4-font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--shell4a7a4-foam);
}

.shell4a7a4-pair p { margin: 0; font-size: 12.5px; color: var(--shell4a7a4-ink-soft); }

/* ---- extended footer (homepage only) ------------------------------------------------- */

.shell4a7a4-xfoot {
  margin: 30px 0 0;
  padding: 16px 13px 14px;
  background: var(--shell4a7a4-deep-2);
  border: 1px solid var(--shell4a7a4-line-soft);
  border-radius: 10px 10px 0 0;
}

.shell4a7a4-xfoot h2 {
  margin: 0 0 8px;
  font-family: var(--shell4a7a4-font-head);
  font-weight: 800;
  font-size: 15.5px;
  color: var(--shell4a7a4-foam);
}

.shell4a7a4-xfoot p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.6; color: var(--shell4a7a4-ink-soft); }

.shell4a7a4-xdir {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.shell4a7a4-xdir a {
  display: inline-block;
  min-height: 24px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--shell4a7a4-ink-soft);
  transition: color 0.2s ease;
}

.shell4a7a4-xdir a:hover { color: var(--shell4a7a4-foam); text-decoration: none; }

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

.shell4a7a4-xpromo .shell4a7a4-xact:last-child { grid-column: 1 / -1; }

.shell4a7a4-xact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 10px;
  border-radius: var(--shell4a7a4-radius-card);
  border: 1px solid var(--shell4a7a4-line);
  background: var(--shell4a7a4-wash);
  font-family: var(--shell4a7a4-font-head);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--shell4a7a4-foam);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.shell4a7a4-xact svg { flex: 0 0 auto; }

.shell4a7a4-xact:hover { background: var(--shell4a7a4-wash-2); border-color: var(--shell4a7a4-foam); color: var(--shell4a7a4-ink); }

.shell4a7a4-xdisc {
  padding-top: 12px;
  border-top: 1px dashed var(--shell4a7a4-line-soft);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--shell4a7a4-ink-dim);
}

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

.shell4a7a4-foot {
  padding: 12px 10px calc(10px);
  border-top: 1px solid var(--shell4a7a4-line-soft);
  text-align: center;
  font-size: 11.5px;
  color: var(--shell4a7a4-ink-dim);
}

.shell4a7a4-foot b { color: var(--shell4a7a4-ink-soft); font-weight: 600; }

/* ---- mobile bottom tab bar: segmented action bar ------------------------------------------ */

.shell4a7a4-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 40;
  display: flex;
  align-items: stretch;
  height: calc(var(--shell4a7a4-tabbar-h) + var(--shell4a7a4-safe-b));
  padding-bottom: var(--shell4a7a4-safe-b);
  background: rgba(15, 15, 35, 0.96);
  border-top: 1px solid var(--shell4a7a4-line-soft);
  backdrop-filter: blur(6px);
}

.shell4a7a4-tab {
  flex: 1 1 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 44px;
  color: var(--shell4a7a4-ink-dim);
  background: transparent;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.shell4a7a4-tab + .shell4a7a4-tab { border-left: 1px solid var(--shell4a7a4-line-soft); }

.shell4a7a4-tab svg { flex: 0 0 auto; }

.shell4a7a4-tab span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.shell4a7a4-tab:hover { color: var(--shell4a7a4-foam); text-decoration: none; }

.shell4a7a4-tab.shell4a7a4-tab-on {
  color: var(--shell4a7a4-foam);
  background: linear-gradient(180deg, var(--shell4a7a4-wash-2), transparent);
  box-shadow: inset 0 2px 0 var(--shell4a7a4-foam);
}

.shell4a7a4-tab.shell4a7a4-tab-on span { color: var(--shell4a7a4-foam); font-weight: 800; }

/* ---- misc ---------------------------------------------------------------------------------- */

.shell4a7a4-rule {
  border: 0;
  height: 1px;
  margin: 24px 0;
  background: linear-gradient(90deg, transparent, var(--shell4a7a4-line), transparent);
}

.shell4a7a4-kicker {
  display: inline-block;
  margin: 0 0 6px;
  padding: 4px 11px;
  border: 1px solid var(--shell4a7a4-line);
  border-radius: var(--shell4a7a4-radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--shell4a7a4-foam);
}

/* ---- about page: field notes and comparison rail ---------------------------- */
.shell4a7a4-about-intro {
  padding: 13px 14px 14px;
  border: 1px solid var(--shell4a7a4-line);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--shell4a7a4-wash-2), var(--shell4a7a4-deep-2));
}

.shell4a7a4-about-intro p { margin: 0; color: var(--shell4a7a4-ink-soft); font-size: 14px; }

.shell4a7a4-about-intro p + p { margin-top: 10px; }

.shell4a7a4-about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 0;
}

.shell4a7a4-about-facts div {
  padding: 9px 10px;
  border-left: 2px solid var(--shell4a7a4-tide);
  background: var(--shell4a7a4-deep-3);
}

.shell4a7a4-about-facts b { display: block; color: var(--shell4a7a4-foam); font-size: 12.5px; }
.shell4a7a4-about-facts span { display: block; color: var(--shell4a7a4-ink-dim); font-size: 11.5px; line-height: 1.35; }

.shell4a7a4-about-rail {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: about-rail;
}

.shell4a7a4-about-rail li {
  counter-increment: about-rail;
  position: relative;
  padding: 11px 12px 11px 42px;
  border-bottom: 1px solid var(--shell4a7a4-line-soft);
  color: var(--shell4a7a4-ink-soft);
  font-size: 13px;
}

.shell4a7a4-about-rail li::before {
  content: counter(about-rail, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--shell4a7a4-foam);
  font-family: var(--shell4a7a4-font-head);
  font-size: 17px;
  font-weight: 800;
}

.shell4a7a4-about-rail strong { display: block; margin-bottom: 2px; color: var(--shell4a7a4-ink); }

.shell4a7a4-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: var(--shell4a7a4-deep-2);
}

.shell4a7a4-compare th,
.shell4a7a4-compare td {
  padding: 9px 8px;
  border: 1px solid var(--shell4a7a4-line-soft);
  vertical-align: top;
  text-align: left;
}

.shell4a7a4-compare th { color: var(--shell4a7a4-foam); font-weight: 800; }
.shell4a7a4-compare td { color: var(--shell4a7a4-ink-soft); line-height: 1.45; }
.shell4a7a4-compare td:first-child { color: var(--shell4a7a4-ink); font-weight: 700; }

.shell4a7a4-support-list {
  margin: 0;
  padding-left: 19px;
  color: var(--shell4a7a4-ink-soft);
  font-size: 13.5px;
}

.shell4a7a4-support-list li { padding: 5px 0; }
.shell4a7a4-support-list strong { color: var(--shell4a7a4-ink); }

/* ---- tips page: branching decisions and pocket checklist -------------------- */
.shell4a7a4-tipline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 9px;
  padding: 11px 12px;
  border: 1px solid var(--shell4a7a4-line-soft);
  background: var(--shell4a7a4-deep-2);
  border-radius: var(--shell4a7a4-radius-card);
}

.shell4a7a4-tipline:last-child { margin-bottom: 0; }

.shell4a7a4-tipline > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--shell4a7a4-tide);
  color: var(--shell4a7a4-deep);
  font-family: var(--shell4a7a4-font-head);
  font-size: 13px;
}

.shell4a7a4-tipline h3 { margin: 0 0 3px; color: var(--shell4a7a4-ink); font-size: 14px; }
.shell4a7a4-tipline p { margin: 0; color: var(--shell4a7a4-ink-soft); font-size: 12.8px; line-height: 1.52; }

.shell4a7a4-branch {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--shell4a7a4-line-soft);
  border-radius: 8px;
  overflow: hidden;
}

.shell4a7a4-branch li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--shell4a7a4-line-soft);
  font-size: 12.8px;
  line-height: 1.48;
}

.shell4a7a4-branch li:last-child { border-bottom: 0; }
.shell4a7a4-branch b { color: var(--shell4a7a4-foam); }
.shell4a7a4-branch span { color: var(--shell4a7a4-ink-soft); }

.shell4a7a4-warning {
  padding: 12px 13px;
  border: 1px solid rgba(255, 201, 92, 0.55);
  border-radius: var(--shell4a7a4-radius-card);
  background: rgba(255, 201, 92, 0.08);
  color: #F7E7B8;
  font-size: 13px;
}

.shell4a7a4-warning strong { color: #FFD478; }

.shell4a7a4-mini-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.shell4a7a4-mini-actions .shell4a7a4-btn { width: 100%; padding-left: 9px; padding-right: 9px; text-align: center; }

@media (max-width: 345px) {
  .shell4a7a4-auth { gap: 3px; }
  .shell4a7a4-auth .shell4a7a4-btn { padding-left: 8px; padding-right: 8px; }
  .shell4a7a4-about-facts { grid-template-columns: 1fr; }
  .shell4a7a4-branch li { grid-template-columns: 70px 1fr; }
}

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