/* ============================================================
   nwr play app - interface compact stylesheet
   Mobile-first 320-430px canvas. Palette: #FFF176 on #3A3A3A.
   Design key: technical headings, near-square tool corners,
   compact square game catalogue, segmented action buttons,
   underline active markers, short vertical lift micro-motion.
   All classes and variables use the shell27e9f- prefix.
   ============================================================ */

:root {
  --shell27e9f-yellow: #FFF176;
  --shell27e9f-yellow-soft: rgba(255, 241, 118, 0.80);
  --shell27e9f-yellow-dim: rgba(255, 241, 118, 0.58);
  --shell27e9f-yellow-faint: rgba(255, 241, 118, 0.40);
  --shell27e9f-ink-on-yellow: #2A2A1C;
  --shell27e9f-bg: #3A3A3A;
  --shell27e9f-bg-panel: #343434;
  --shell27e9f-bg-lower: #2E2E2E;
  --shell27e9f-bg-deep: #262626;
  --shell27e9f-outside: #1D1D1D;
  --shell27e9f-line: rgba(255, 241, 118, 0.20);
  --shell27e9f-line-soft: rgba(255, 241, 118, 0.11);
  --shell27e9f-radius: 3px;
  --shell27e9f-radius-sm: 2px;
  --shell27e9f-font-head: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --shell27e9f-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shell27e9f-font-mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --shell27e9f-canvas: 442px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--shell27e9f-outside);
  color: var(--shell27e9f-yellow);
  font-family: var(--shell27e9f-font-body);
  font-size: 14px;
  line-height: 1.58;
  overflow-wrap: break-word;
}

body.shell27e9f-noscroll { overflow: hidden; }

/* Centered phone canvas kept on wide screens */
.shell27e9f-shell {
  max-width: var(--shell27e9f-canvas);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--shell27e9f-bg);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.55);
  position: relative;
}

.shell27e9f-shell a { color: var(--shell27e9f-yellow); }

.shell27e9f-shell a:focus-visible,
.shell27e9f-shell button:focus-visible {
  outline: 2px solid var(--shell27e9f-yellow);
  outline-offset: 2px;
  border-radius: var(--shell27e9f-radius-sm);
}

.shell27e9f-shell button {
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.shell27e9f-shell img { max-width: 100%; }

.shell27e9f-shell h1,
.shell27e9f-shell h2,
.shell27e9f-shell h3 {
  font-family: var(--shell27e9f-font-head);
  color: var(--shell27e9f-yellow);
  margin: 0;
}

/* Mono micro label used as tool-catalogue index */
.shell27e9f-kicker {
  font-family: var(--shell27e9f-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shell27e9f-yellow-dim);
}

/* ============ Edge-aligned functional header ============ */

.shell27e9f-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(38, 38, 38, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--shell27e9f-line);
}

.shell27e9f-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
}

.shell27e9f-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
}

.shell27e9f-logo {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: var(--shell27e9f-radius-sm);
  border: 1px solid var(--shell27e9f-line);
  display: block;
  object-fit: cover;
}

.shell27e9f-brandname {
  font-family: var(--shell27e9f-font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--shell27e9f-yellow);
}

/* hamburger - three flat bars, tool feel */
.shell27e9f-menubtn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--shell27e9f-line);
  border-radius: var(--shell27e9f-radius);
  padding: 0;
}

.shell27e9f-menubtn-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--shell27e9f-yellow);
}

.shell27e9f-menubtn:active { transform: translateY(-1px); }

/* segmented action row: Register | Login */
.shell27e9f-topbar-actions { padding-top: 0; }

.shell27e9f-segwrap {
  display: flex;
  width: 100%;
  border: 1px solid var(--shell27e9f-line);
  border-radius: var(--shell27e9f-radius);
  overflow: hidden;
  background: var(--shell27e9f-bg-lower);
}

.shell27e9f-seg {
  flex: 1 1 50%;
  min-height: 42px;
  background: transparent;
  border: 0;
  color: var(--shell27e9f-yellow);
  font-family: var(--shell27e9f-font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.shell27e9f-seg + .shell27e9f-seg { border-left: 1px solid var(--shell27e9f-line); }

.shell27e9f-seg-primary {
  background: var(--shell27e9f-yellow);
  color: var(--shell27e9f-ink-on-yellow);
}

.shell27e9f-seg:active { transform: translateY(-1px); }

/* ============ Sectioned slide-in menu page ============ */

.shell27e9f-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(15, 15, 15, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

.shell27e9f-scrim.shell27e9f-menu-open {
  opacity: 1;
  visibility: visible;
}

.shell27e9f-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  pointer-events: none;
}

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

.shell27e9f-menu-sheet {
  width: min(86vw, 340px);
  height: 100%;
  margin-left: max(0px, calc(50% - 221px));
  background: var(--shell27e9f-bg-deep);
  border-right: 1px solid var(--shell27e9f-line);
  transform: translateX(-102%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  padding: 14px 16px calc(24px + env(safe-area-inset-bottom, 0px));
}

.shell27e9f-menu-open .shell27e9f-menu-sheet { transform: translateX(0); }

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

.shell27e9f-menu-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.shell27e9f-menu-brand img {
  width: 26px;
  height: 26px;
  border-radius: var(--shell27e9f-radius-sm);
  border: 1px solid var(--shell27e9f-line);
  object-fit: cover;
}

.shell27e9f-menu-brand span {
  font-family: var(--shell27e9f-font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shell27e9f-yellow);
}

.shell27e9f-menuclose {
  width: 44px;
  height: 44px;
  border: 1px solid var(--shell27e9f-line);
  border-radius: var(--shell27e9f-radius);
  background: transparent;
  color: var(--shell27e9f-yellow);
  font-size: 18px;
  line-height: 1;
}

.shell27e9f-menu-actions { padding: 14px 0 4px; }

.shell27e9f-menu-group { padding: 14px 0 4px; }

.shell27e9f-menu-label {
  display: block;
  font-family: var(--shell27e9f-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shell27e9f-yellow-faint);
  margin: 0 0 6px;
}

.shell27e9f-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 6px 10px;
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--shell27e9f-line-soft);
  border-radius: var(--shell27e9f-radius-sm);
  color: var(--shell27e9f-yellow-soft);
  font-family: var(--shell27e9f-font-head);
  font-size: 13.5px;
  font-weight: 600;
}

.shell27e9f-menu-link em {
  font-style: normal;
  font-family: var(--shell27e9f-font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shell27e9f-yellow-faint);
  white-space: nowrap;
}

.shell27e9f-menu-link-active {
  color: var(--shell27e9f-yellow);
  box-shadow: inset 2px 0 0 var(--shell27e9f-yellow);
  background: rgba(255, 241, 118, 0.05);
}

.shell27e9f-menu-link:active { transform: translateY(-1px); }

/* ============ Main column ============ */

.shell27e9f-main { padding: 4px 14px 30px; }

.shell27e9f-h1 {
  font-size: 23px;
  line-height: 1.22;
  letter-spacing: 0.01em;
  margin: 10px 0 10px;
}

.shell27e9f-hero { padding-top: 14px; }

.shell27e9f-hero-lead {
  margin: 0 0 14px;
  color: var(--shell27e9f-yellow-soft);
}

/* hero segmented CTA */
.shell27e9f-cta-row {
  display: flex;
  border: 1px solid var(--shell27e9f-line);
  border-radius: var(--shell27e9f-radius);
  overflow: hidden;
  margin: 14px 0 18px;
}

.shell27e9f-cta-row .shell27e9f-seg { min-height: 46px; }

/* ============ Banner carousel ============ */

.shell27e9f-carousel {
  position: relative;
  margin: 0 0 6px;
  border: 1px solid var(--shell27e9f-line-soft);
  border-radius: var(--shell27e9f-radius);
  background: var(--shell27e9f-bg-lower);
}

.shell27e9f-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shell27e9f-track::-webkit-scrollbar { display: none; }

.shell27e9f-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 0;
  border: 0;
  background: none;
  display: block;
}

.shell27e9f-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  border-radius: var(--shell27e9f-radius-sm);
}

.shell27e9f-slide:active img { filter: brightness(1.12); }

.shell27e9f-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 9px 0 10px;
}

.shell27e9f-dot {
  width: 22px;
  height: 6px;
  padding: 0;
  border: 1px solid var(--shell27e9f-line);
  border-radius: var(--shell27e9f-radius-sm);
  background: transparent;
}

.shell27e9f-dot-active {
  background: var(--shell27e9f-yellow);
  border-color: var(--shell27e9f-yellow);
}

/* ============ Compact metric tiles ============ */

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

.shell27e9f-tile {
  background: var(--shell27e9f-bg-panel);
  border: 1px solid var(--shell27e9f-line-soft);
  border-radius: var(--shell27e9f-radius);
  padding: 10px 11px 11px;
}

.shell27e9f-tile-num {
  display: block;
  font-family: var(--shell27e9f-font-mono);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--shell27e9f-yellow);
}

.shell27e9f-tile-label {
  display: block;
  font-family: var(--shell27e9f-font-head);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--shell27e9f-yellow-soft);
  margin-top: 3px;
}

.shell27e9f-tile-note {
  display: block;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--shell27e9f-yellow-dim);
  margin-top: 3px;
}

/* ============ Section scaffolding ============ */

.shell27e9f-sec { padding-top: 26px; }

.shell27e9f-cat-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  border-bottom: 1px solid var(--shell27e9f-line-soft);
  padding-bottom: 8px;
  margin-bottom: 9px;
}

.shell27e9f-cat-index {
  font-family: var(--shell27e9f-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--shell27e9f-yellow-dim);
  letter-spacing: 0.08em;
}

.shell27e9f-h2 {
  font-size: 16.5px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  min-width: 0;
}

.shell27e9f-cat-count {
  margin-left: auto;
  font-family: var(--shell27e9f-font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--shell27e9f-ink-on-yellow);
  background: var(--shell27e9f-yellow);
  border-radius: var(--shell27e9f-radius-sm);
  padding: 2px 7px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.shell27e9f-sec-lead {
  margin: 0 0 12px;
  color: var(--shell27e9f-yellow-soft);
}

/* ============ Game catalogue grid ============ */

.shell27e9f-grid {
  list-style: none;
  margin: 0;
  padding: 2px 0 6px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px 7px;
}

.shell27e9f-game { min-width: 0; }

.shell27e9f-game-btn {
  display: block;
  width: 100%;
  padding: 5px 5px 7px;
  background: var(--shell27e9f-bg-panel);
  border: 1px solid var(--shell27e9f-line-soft);
  border-radius: var(--shell27e9f-radius);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.shell27e9f-game-btn:hover,
.shell27e9f-game-btn:active {
  transform: translateY(-2px);
  border-color: var(--shell27e9f-line);
}

.shell27e9f-game-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--shell27e9f-radius-sm);
  background: var(--shell27e9f-bg-deep);
}

.shell27e9f-game-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  font-family: var(--shell27e9f-font-head);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--shell27e9f-yellow-soft);
  min-height: 26px;
}

/* ============ Steps ============ */

.shell27e9f-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: shell27e9fstep;
}

.shell27e9f-step {
  counter-increment: shell27e9fstep;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--shell27e9f-line-soft);
}

.shell27e9f-step:last-child { border-bottom: 0; }

.shell27e9f-step::before {
  content: counter(shell27e9fstep, decimal-leading-zero);
  font-family: var(--shell27e9f-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--shell27e9f-yellow);
  border: 1px solid var(--shell27e9f-line);
  border-radius: var(--shell27e9f-radius-sm);
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shell27e9f-step-title {
  display: block;
  font-family: var(--shell27e9f-font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--shell27e9f-yellow);
  margin-bottom: 3px;
}

.shell27e9f-step p { margin: 0; color: var(--shell27e9f-yellow-soft); }

/* ============ Fact ledger ============ */

.shell27e9f-facts { margin: 0; border-top: 1px solid var(--shell27e9f-line-soft); }

.shell27e9f-fact {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--shell27e9f-line-soft);
}

.shell27e9f-fact-key {
  font-family: var(--shell27e9f-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--shell27e9f-yellow-dim);
  padding-top: 2px;
}

.shell27e9f-fact-val { margin: 0; color: var(--shell27e9f-yellow-soft); }

/* ============ Checklist ============ */

.shell27e9f-check {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.shell27e9f-check-item {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px dashed var(--shell27e9f-line-soft);
  color: var(--shell27e9f-yellow-soft);
}

.shell27e9f-check-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--shell27e9f-yellow-dim);
  border-radius: var(--shell27e9f-radius-sm);
}

.shell27e9f-check-item::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  width: 5px;
  height: 8px;
  border-right: 2px solid var(--shell27e9f-yellow);
  border-bottom: 2px solid var(--shell27e9f-yellow);
  transform: rotate(40deg);
}

/* ============ Inline promo text link ============ */

.shell27e9f-promotext {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--shell27e9f-yellow);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ CTA panel ============ */

.shell27e9f-ctapanel {
  background: var(--shell27e9f-bg-panel);
  border: 1px solid var(--shell27e9f-line);
  border-radius: var(--shell27e9f-radius);
  padding: 14px 13px 15px;
  margin-top: 12px;
}

.shell27e9f-ctapanel p { margin: 0 0 4px; color: var(--shell27e9f-yellow-soft); }

.shell27e9f-ctapanel .shell27e9f-cta-row { margin: 12px 0 8px; }

.shell27e9f-ctanote {
  font-size: 12px;
  color: var(--shell27e9f-yellow-dim);
  margin: 0;
}

/* ============ Extended footer (home only) ============ */

.shell27e9f-extfoot {
  margin-top: 30px;
  border-top: 1px solid var(--shell27e9f-line);
  padding-top: 20px;
}

.shell27e9f-ext-label {
  display: block;
  font-family: var(--shell27e9f-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shell27e9f-yellow-faint);
  margin: 0 0 9px;
}

.shell27e9f-ext-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 22px;
}

.shell27e9f-dir-link {
  display: block;
  min-height: 46px;
  padding: 6px 9px;
  text-decoration: none;
  background: var(--shell27e9f-bg-panel);
  border: 1px solid var(--shell27e9f-line-soft);
  border-radius: var(--shell27e9f-radius);
  font-family: var(--shell27e9f-font-head);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--shell27e9f-yellow-soft);
}

.shell27e9f-dir-link span {
  display: block;
  font-family: var(--shell27e9f-font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--shell27e9f-yellow-faint);
  margin-top: 2px;
}

.shell27e9f-dir-link:active { transform: translateY(-1px); }

.shell27e9f-ext-brand {
  margin: 0 0 22px;
  color: var(--shell27e9f-yellow-soft);
  border-left: 2px solid var(--shell27e9f-yellow-dim);
  padding-left: 11px;
}

.shell27e9f-ext-promos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 22px;
}

.shell27e9f-promo {
  min-height: 48px;
  padding: 8px 9px;
  background: var(--shell27e9f-bg-lower);
  border: 1px solid var(--shell27e9f-line);
  border-radius: var(--shell27e9f-radius);
  color: var(--shell27e9f-yellow);
  font-family: var(--shell27e9f-font-head);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  transition: transform 0.18s ease, background 0.18s ease;
}

.shell27e9f-promo:active {
  transform: translateY(-2px);
  background: rgba(255, 241, 118, 0.10);
}

.shell27e9f-promo-strong {
  background: var(--shell27e9f-yellow);
  color: var(--shell27e9f-ink-on-yellow);
  border-color: var(--shell27e9f-yellow);
}

.shell27e9f-ext-disclaimer {
  font-size: 12px;
  line-height: 1.5;
  color: var(--shell27e9f-yellow-dim);
  border-top: 1px solid var(--shell27e9f-line-soft);
  padding-top: 12px;
}

/* ============ Common footer ============ */

.shell27e9f-footer {
  padding: 16px 14px 18px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--shell27e9f-yellow-dim);
  border-top: 1px solid var(--shell27e9f-line-soft);
}

/* ============ Layered bottom bar ============ */

.shell27e9f-bnav {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: flex;
  background: linear-gradient(180deg, #2B2B2B 0%, #232323 100%);
  border-top: 1px solid var(--shell27e9f-line);
  box-shadow: 0 -6px 14px rgba(0, 0, 0, 0.35);
  padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
}

.shell27e9f-bnav-item {
  position: relative;
  flex: 1 1 20%;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  border: 0;
  background: none;
  text-decoration: none;
  color: var(--shell27e9f-yellow-dim);
  transition: transform 0.16s ease, color 0.16s ease;
}

.shell27e9f-bnav-item::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: transparent;
}

.shell27e9f-bnav-item:active { transform: translateY(-2px); }

.shell27e9f-bnav-active {
  color: var(--shell27e9f-yellow);
}

.shell27e9f-bnav-active::before { background: var(--shell27e9f-yellow); }

.shell27e9f-bnav-ico {
  width: 22px;
  height: 22px;
  display: block;
}

.shell27e9f-bnav-label {
  font-family: var(--shell27e9f-font-mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* ============ Reveal micro-motion ============ */

.shell27e9f-reveal {
  opacity: 0;
  transform: translateY(10px);
}

.shell27e9f-reveal-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.34s ease, transform 0.34s ease;
}

/* ============ Breakpoints ============ */

@media (min-width: 375px) {
  .shell27e9f-grid { gap: 10px 8px; }
  .shell27e9f-h1 { font-size: 25px; }
  .shell27e9f-fact { grid-template-columns: 122px minmax(0, 1fr); }
}

@media (min-width: 430px) {
  .shell27e9f-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .shell27e9f-h1 { font-size: 27px; }
  .shell27e9f-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .shell27e9f-shell *,
  .shell27e9f-menu-sheet {
    transition: none !important;
    animation: none !important;
  }
  .shell27e9f-reveal,
  .shell27e9f-reveal-in {
    opacity: 1;
    transform: none;
  }
}

/* ============ Help desk layouts ============ */
.shell27e9f-help-hero { padding-top: 14px; }
.shell27e9f-help-pulse {
  display: grid;
  gap: 6px;
  margin: 14px 0 16px;
  padding: 12px;
  border-left: 3px solid var(--shell27e9f-yellow);
  background: var(--shell27e9f-bg-panel);
  color: var(--shell27e9f-yellow-soft);
}
.shell27e9f-help-pulse strong { font-size: 14px; line-height: 1.42; color: var(--shell27e9f-yellow); }
.shell27e9f-help-note { margin: 14px 0 0; color: var(--shell27e9f-yellow-dim); }
.shell27e9f-review-matrix { border-top: 1px solid var(--shell27e9f-line-soft); }
.shell27e9f-review-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--shell27e9f-line-soft);
}
.shell27e9f-review-row p { margin: 0; color: var(--shell27e9f-yellow-soft); }
.shell27e9f-review-key,
.shell27e9f-device-tag {
  font-family: var(--shell27e9f-font-mono);
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--shell27e9f-yellow);
}
.shell27e9f-proof-grid,
.shell27e9f-mistake-grid,
.shell27e9f-help-actions,
.shell27e9f-device-branches,
.shell27e9f-file-split { display: grid; gap: 8px; }
.shell27e9f-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shell27e9f-proof,
.shell27e9f-mistake,
.shell27e9f-device,
.shell27e9f-file-panel,
.shell27e9f-trouble {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--shell27e9f-line-soft);
  background: var(--shell27e9f-bg-panel);
  border-radius: var(--shell27e9f-radius);
}
.shell27e9f-proof h3,
.shell27e9f-mistake h3,
.shell27e9f-device h3,
.shell27e9f-file-panel h3,
.shell27e9f-trouble h3 { margin: 7px 0 5px; font-size: 13.5px; line-height: 1.3; }
.shell27e9f-proof p,
.shell27e9f-mistake p,
.shell27e9f-device p,
.shell27e9f-file-panel p,
.shell27e9f-trouble p { margin: 0; color: var(--shell27e9f-yellow-soft); }
.shell27e9f-trouble-list { display: grid; gap: 8px; }
.shell27e9f-trouble { border-left: 3px solid var(--shell27e9f-yellow-dim); }
.shell27e9f-mistake-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shell27e9f-mistake span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--shell27e9f-line);
  color: var(--shell27e9f-yellow);
  font-family: var(--shell27e9f-font-mono);
  font-size: 11px;
}
.shell27e9f-help-action {
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid var(--shell27e9f-line);
  border-radius: var(--shell27e9f-radius);
  background: var(--shell27e9f-bg-lower);
  color: var(--shell27e9f-yellow);
  text-align: left;
  font: 600 12px/1.35 var(--shell27e9f-font-head);
}
.shell27e9f-help-action:hover,
.shell27e9f-help-action:active { transform: translateY(-2px); background: rgba(255, 241, 118, .1); }
.shell27e9f-help-action .shell27e9f-kicker { display: block; margin-bottom: 3px; }
.shell27e9f-help-action-strong { background: var(--shell27e9f-yellow); color: var(--shell27e9f-ink-on-yellow); }
.shell27e9f-help-action-strong .shell27e9f-kicker { color: rgba(42, 42, 28, .68); }
.shell27e9f-route-map { padding: 2px 0; }
.shell27e9f-route-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-items: start; }
.shell27e9f-route-step > span,
.shell27e9f-filter-num {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--shell27e9f-yellow-dim);
  color: var(--shell27e9f-yellow);
  font: 700 11px var(--shell27e9f-font-mono);
}
.shell27e9f-route-step h3 { margin: 1px 0 4px; font-size: 14px; }
.shell27e9f-route-step p { margin: 0; color: var(--shell27e9f-yellow-soft); }
.shell27e9f-route-line { width: 1px; height: 17px; margin: 0 0 0 16px; background: var(--shell27e9f-line); }
.shell27e9f-file-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shell27e9f-file-panel { display: flex; flex-direction: column; gap: 7px; }
.shell27e9f-file-panel .shell27e9f-help-action { margin-top: auto; }
.shell27e9f-mini-list { list-style: none; padding: 0; margin: 0; color: var(--shell27e9f-yellow-soft); }
.shell27e9f-mini-list li { padding: 6px 0 6px 15px; border-bottom: 1px dashed var(--shell27e9f-line-soft); position: relative; }
.shell27e9f-mini-list li::before { content: ""; position: absolute; left: 1px; top: 13px; width: 6px; height: 6px; background: var(--shell27e9f-yellow); }
.shell27e9f-qa-stack { display: grid; gap: 7px; }
.shell27e9f-qa { border: 1px solid var(--shell27e9f-line-soft); background: var(--shell27e9f-bg-panel); }
.shell27e9f-qa summary { min-height: 46px; padding: 12px 34px 12px 11px; cursor: pointer; position: relative; color: var(--shell27e9f-yellow); font: 700 13px/1.35 var(--shell27e9f-font-head); }
.shell27e9f-qa summary::after { content: "+"; position: absolute; right: 12px; top: 10px; font: 700 18px var(--shell27e9f-font-mono); }
.shell27e9f-qa[open] summary::after { content: "-"; }
.shell27e9f-qa p { margin: 0; padding: 0 11px 12px; color: var(--shell27e9f-yellow-soft); }
.shell27e9f-device-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shell27e9f-device { display: flex; flex-direction: column; gap: 7px; }
.shell27e9f-device .shell27e9f-help-action { margin-top: auto; }
.shell27e9f-filter-board { border-top: 1px solid var(--shell27e9f-line-soft); }
.shell27e9f-filter-line { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--shell27e9f-line-soft); }
.shell27e9f-filter-line h3 { margin: 1px 0 3px; font-size: 13.5px; }
.shell27e9f-filter-line p { margin: 0; color: var(--shell27e9f-yellow-soft); }
.shell27e9f-filter-mark { padding-top: 9px; color: var(--shell27e9f-yellow-dim); font: 9px var(--shell27e9f-font-mono); letter-spacing: .08em; }
@media (min-width: 375px) {
  .shell27e9f-help-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 430px) {
  .shell27e9f-proof-grid,
  .shell27e9f-mistake-grid,
  .shell27e9f-device-branches,
  .shell27e9f-file-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
