/* ==========================================================================
   jili9 mobile lobby stylesheet
   Canvas target: 320-430px phone frame, centered on wide screens.
   Prefix contract: every class and variable starts with shell61c3e-
   Palette anchors: #273746 base / #FFDEAD ink / #CD853F gold /
                    #4682B4 steel / #D2B48C tan / #CCCCCC silver
   Visual direction: humanist serif headings, clear sans body,
   low-radius zoned sections, square high-contrast CTAs,
   image cards with bottom name bars, short-distance transitions.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --shell61c3e-base: #273746;
  --shell61c3e-base-deep: #1d2a35;
  --shell61c3e-base-ink: #141d26;
  --shell61c3e-base-outer: #101820;
  --shell61c3e-panel: #223140;
  --shell61c3e-ink: #ffdead;
  --shell61c3e-silver: #cccccc;
  --shell61c3e-muted: #9fb0bf;
  --shell61c3e-faint: #8b99a8;
  --shell61c3e-gold: #cd853f;
  --shell61c3e-gold-soft: rgba(205, 133, 63, 0.42);
  --shell61c3e-steel: #4682b4;
  --shell61c3e-steel-soft: rgba(70, 130, 180, 0.34);
  --shell61c3e-tan: #d2b48c;
  --shell61c3e-tan-soft: rgba(210, 180, 140, 0.24);
  --shell61c3e-line: rgba(210, 180, 140, 0.18);
  --shell61c3e-serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --shell61c3e-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shell61c3e-rail-h: 60px;
  --shell61c3e-top-h: 104px;
  --shell61c3e-tap: 44px;
}

/* --------------------------------------------------------------------------
   2. Reset and base flow
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--shell61c3e-base-outer);
  color: var(--shell61c3e-ink);
  font-family: var(--shell61c3e-sans);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: clip;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: var(--shell61c3e-tan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--shell61c3e-ink);
}

:focus-visible {
  outline: 2px solid var(--shell61c3e-steel);
  outline-offset: 2px;
}

.shell61c3e-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Phone canvas (430px ceiling, centered on desktop)
   -------------------------------------------------------------------------- */
.shell61c3e-page {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--shell61c3e-base);
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.5);
}

.shell61c3e-main {
  padding-top: calc(var(--shell61c3e-top-h) + 6px);
  /* Keep clear text above the fixed bottom rail, including safe-area phones */
  padding-bottom: calc(var(--shell61c3e-rail-h) + env(safe-area-inset-bottom, 0px) + 30px);
}

/* --------------------------------------------------------------------------
   4. Top chrome: centered identity bar + action row
   -------------------------------------------------------------------------- */
.shell61c3e-top {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, #243440 0%, #1f2c37 100%);
  border-bottom: 2px solid var(--shell61c3e-gold);
}

.shell61c3e-identbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  min-height: 56px;
  padding: 6px 10px 2px;
}

.shell61c3e-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
}

.shell61c3e-logo {
  width: 32px;
  height: 32px;
  padding: 2px;
  object-fit: contain;
  background: var(--shell61c3e-base-ink);
  border: 1px solid var(--shell61c3e-tan-soft);
  flex: none;
}

.shell61c3e-sitename {
  font-family: var(--shell61c3e-serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--shell61c3e-ink);
  line-height: 1;
  white-space: nowrap;
}

.shell61c3e-menubtn {
  width: var(--shell61c3e-tap);
  height: var(--shell61c3e-tap);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--shell61c3e-tan-soft);
  color: var(--shell61c3e-ink);
}

.shell61c3e-menubtn span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.shell61c3e-menubtn:hover,
.shell61c3e-menubtn[aria-expanded="true"] {
  border-color: var(--shell61c3e-gold);
}

.shell61c3e-identspace {
  width: var(--shell61c3e-tap);
}

/* Action row: register / login sit outside the brand cluster */
.shell61c3e-actionbar {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  padding: 4px 10px 10px;
}

.shell61c3e-join,
.shell61c3e-in {
  min-height: var(--shell61c3e-tap);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 0; /* square CTA direction */
  transition: filter 0.15s ease, transform 0.15s ease;
}

.shell61c3e-join {
  background: var(--shell61c3e-gold);
  border: 1px solid var(--shell61c3e-gold);
  color: #273746;
}

.shell61c3e-in {
  background: transparent;
  border: 1px solid var(--shell61c3e-ink);
  color: var(--shell61c3e-ink);
}

.shell61c3e-join:hover,
.shell61c3e-in:hover {
  filter: brightness(1.12);
}

.shell61c3e-join:active,
.shell61c3e-in:active,
.shell61c3e-gcard:active {
  transform: translateY(2px);
}

/* --------------------------------------------------------------------------
   5. Full-height menu layer
   -------------------------------------------------------------------------- */
.shell61c3e-menuwrap {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.shell61c3e-menuveil {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 22, 0.68);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.shell61c3e-menupanel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(84%, 336px);
  background: var(--shell61c3e-base-deep);
  border-right: 2px solid var(--shell61c3e-gold);
  transform: translateX(-102%);
  transition: transform 0.24s ease-out;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

.shell61c3e-menuwrap.shell61c3e-menu-on {
  pointer-events: auto;
}

.shell61c3e-menuwrap.shell61c3e-menu-on .shell61c3e-menuveil {
  opacity: 1;
}

.shell61c3e-menuwrap.shell61c3e-menu-on .shell61c3e-menupanel {
  transform: translateX(0);
}

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

.shell61c3e-menuhead .shell61c3e-brand {
  justify-content: flex-start;
}

.shell61c3e-menuclose {
  width: var(--shell61c3e-tap);
  height: var(--shell61c3e-tap);
  background: transparent;
  border: 1px solid var(--shell61c3e-tan-soft);
  color: var(--shell61c3e-ink);
  font-size: 17px;
  line-height: 1;
  flex: none;
}

.shell61c3e-menugroup {
  padding: 10px 0 4px;
  border-bottom: 1px solid var(--shell61c3e-line);
}

.shell61c3e-menuflag {
  margin: 0;
  padding: 4px 14px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--shell61c3e-gold);
}

.shell61c3e-menulink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  color: var(--shell61c3e-silver);
  text-decoration: none;
  border-top: 2px solid transparent; /* indicator line slot */
  font-size: 13.5px;
}

.shell61c3e-menulink:hover {
  color: var(--shell61c3e-ink);
  background: rgba(255, 222, 173, 0.05);
}

.shell61c3e-menulink small {
  font-size: 10px;
  color: var(--shell61c3e-faint);
  letter-spacing: 0.4px;
}

.shell61c3e-menulink-shell61c3e-here,
.shell61c3e-here {
  color: var(--shell61c3e-ink);
  border-top-color: var(--shell61c3e-gold);
  background: rgba(205, 133, 63, 0.1);
}

.shell61c3e-menucta {
  margin: auto 12px 16px;
  min-height: 48px;
  background: var(--shell61c3e-gold);
  border: 1px solid var(--shell61c3e-gold);
  color: #273746;
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  width: calc(100% - 24px);
}

/* --------------------------------------------------------------------------
   6. Hero: single H1 block + banner stage
   -------------------------------------------------------------------------- */
.shell61c3e-hero {
  padding: 14px 12px 4px;
}

.shell61c3e-h1 {
  font-family: var(--shell61c3e-serif);
  font-size: 21px;
  line-height: 1.28;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--shell61c3e-ink);
}

.shell61c3e-lead {
  margin: 0 0 12px;
  font-size: 12.8px;
  line-height: 1.6;
  color: var(--shell61c3e-silver);
}

.shell61c3e-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 430 / 186;
  overflow: hidden;
  border: 1px solid var(--shell61c3e-tan-soft);
  background: var(--shell61c3e-base-ink);
  padding: 0;
  text-align: left;
  display: block;
}

.shell61c3e-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}

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

.shell61c3e-slide-on {
  opacity: 1;
  pointer-events: auto;
}

.shell61c3e-slidecap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: linear-gradient(180deg, rgba(20, 29, 38, 0) 0%, rgba(20, 29, 38, 0.92) 55%);
}

.shell61c3e-slidecap strong {
  font-family: var(--shell61c3e-serif);
  font-size: 14px;
  color: var(--shell61c3e-ink);
  font-weight: 700;
  line-height: 1.2;
}

.shell61c3e-slidego {
  flex: none;
  padding: 7px 12px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #273746;
  background: var(--shell61c3e-ink);
  border-radius: 0;
}

.shell61c3e-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  padding: 9px 0 2px;
}

.shell61c3e-dot {
  width: 22px;
  height: 8px;
  border: 1px solid var(--shell61c3e-tan-soft);
  background: transparent;
  padding: 0;
}

.shell61c3e-dot-on {
  background: var(--shell61c3e-gold);
  border-color: var(--shell61c3e-gold);
}

/* --------------------------------------------------------------------------
   7. Content zones (low-radius separated sections)
   -------------------------------------------------------------------------- */
.shell61c3e-sec {
  padding: 20px 12px 8px;
  border-top: 1px solid var(--shell61c3e-line);
}

.shell61c3e-sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.shell61c3e-h2 {
  font-family: var(--shell61c3e-serif);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
  color: var(--shell61c3e-ink);
}

.shell61c3e-count {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--shell61c3e-gold);
  border: 1px solid var(--shell61c3e-gold-soft);
  padding: 3px 7px;
}

.shell61c3e-secnote {
  margin: 0 0 11px;
  font-size: 12.4px;
  line-height: 1.6;
  color: var(--shell61c3e-silver);
}

.shell61c3e-glines {
  margin: 12px 0 4px;
  padding: 9px 11px;
  border-left: 2px solid var(--shell61c3e-steel);
  background: rgba(70, 130, 180, 0.08);
  font-size: 11.8px;
  line-height: 1.6;
  color: var(--shell61c3e-muted);
}

.shell61c3e-glines a {
  color: var(--shell61c3e-tan);
}

/* --------------------------------------------------------------------------
   8. Game grid: image card with bottom name bar
   -------------------------------------------------------------------------- */
.shell61c3e-ggrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px 6px;
}

.shell61c3e-gcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: var(--shell61c3e-panel);
  border: 1px solid var(--shell61c3e-tan-soft);
  border-radius: 3px;
  color: var(--shell61c3e-ink);
  text-align: center;
  transition: border-color 0.15s ease;
}

.shell61c3e-gcard:hover {
  border-color: var(--shell61c3e-gold);
}

.shell61c3e-gimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--shell61c3e-base-ink);
}

.shell61c3e-gname {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 3px;
  font-size: 10px;
  line-height: 1.25;
  color: var(--shell61c3e-ink);
  background: rgba(15, 23, 32, 0.62);
  border-top: 1px solid var(--shell61c3e-tan-soft);
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   9. Compact metric rows (label + explanation rhythm)
   -------------------------------------------------------------------------- */
.shell61c3e-mrows {
  border: 1px solid var(--shell61c3e-steel-soft);
  background: rgba(70, 130, 180, 0.06);
}

.shell61c3e-mrow {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 10px 11px;
  border-top: 1px solid rgba(70, 130, 180, 0.22);
}

.shell61c3e-mrow:first-child {
  border-top: 0;
}

.shell61c3e-mkey {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--shell61c3e-gold);
  padding-top: 2px;
  overflow-wrap: anywhere;
}

.shell61c3e-mval {
  font-size: 12.4px;
  line-height: 1.55;
  color: var(--shell61c3e-ink);
}

.shell61c3e-mnote {
  display: block;
  margin-top: 2px;
  font-size: 11.6px;
  color: var(--shell61c3e-silver);
}

/* --------------------------------------------------------------------------
   10. FAQ fold-outs
   -------------------------------------------------------------------------- */
.shell61c3e-faq {
  border: 1px solid var(--shell61c3e-tan-soft);
  background: var(--shell61c3e-panel);
  margin-bottom: 8px;
}

.shell61c3e-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--shell61c3e-ink);
  cursor: pointer;
  list-style: none;
}

.shell61c3e-faq summary::-webkit-details-marker {
  display: none;
}

.shell61c3e-faq summary::after {
  content: "+";
  flex: none;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--shell61c3e-gold-soft);
  color: var(--shell61c3e-gold);
  font-size: 14px;
  font-weight: 700;
}

.shell61c3e-faq[open] summary::after {
  content: "\2013"; /* en dash */
}

.shell61c3e-faqbody {
  padding: 0 12px 12px;
  font-size: 12.4px;
  line-height: 1.6;
  color: var(--shell61c3e-silver);
}

.shell61c3e-faqbody a {
  color: var(--shell61c3e-tan);
}

/* --------------------------------------------------------------------------
   11. Winner feed rows (icon tile + game + amount)
   -------------------------------------------------------------------------- */
.shell61c3e-wins {
  border: 1px solid var(--shell61c3e-tan-soft);
}

.shell61c3e-win {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-top: 1px solid var(--shell61c3e-line);
}

.shell61c3e-win:first-child {
  border-top: 0;
}

.shell61c3e-wintile {
  width: 34px;
  height: 34px;
  padding: 2px;
  background: var(--shell61c3e-base-ink);
  border: 1px solid var(--shell61c3e-tan-soft);
  object-fit: cover;
}

.shell61c3e-winname {
  font-size: 12.6px;
  font-weight: 700;
  color: var(--shell61c3e-ink);
  line-height: 1.3;
}

.shell61c3e-winhow {
  display: block;
  font-size: 10.8px;
  font-weight: 400;
  color: var(--shell61c3e-faint);
  margin-top: 1px;
}

.shell61c3e-winput {
  text-align: right;
  line-height: 1.25;
}

.shell61c3e-winamt {
  display: block;
  font-family: var(--shell61c3e-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--shell61c3e-gold);
  white-space: nowrap;
}

.shell61c3e-wintime {
  display: block;
  font-size: 10px;
  color: var(--shell61c3e-faint);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   12. Payment lanes
   -------------------------------------------------------------------------- */
.shell61c3e-pay {
  border: 1px solid var(--shell61c3e-gold-soft);
  background: rgba(205, 133, 63, 0.06);
  margin-bottom: 8px;
  padding: 10px 11px;
}

.shell61c3e-paytop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.shell61c3e-payname {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--shell61c3e-ink);
}

.shell61c3e-paywin {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--shell61c3e-steel);
  border: 1px solid var(--shell61c3e-steel-soft);
  padding: 2px 6px;
}

.shell61c3e-paymin {
  margin: 5px 0 4px;
  font-size: 11px;
  color: var(--shell61c3e-tan);
  letter-spacing: 0.4px;
}

.shell61c3e-paynote {
  margin: 0;
  font-size: 11.8px;
  line-height: 1.55;
  color: var(--shell61c3e-silver);
}

/* --------------------------------------------------------------------------
   13. Preparation checklist
   -------------------------------------------------------------------------- */
.shell61c3e-check {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--shell61c3e-line);
}

.shell61c3e-check:first-of-type {
  border-top: 0;
}

.shell61c3e-checktile {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 1px solid var(--shell61c3e-gold);
  color: var(--shell61c3e-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.shell61c3e-checktxt {
  font-size: 12.4px;
  line-height: 1.55;
  color: var(--shell61c3e-ink);
}

.shell61c3e-checktxt em {
  font-style: normal;
  color: var(--shell61c3e-silver);
  font-size: 11.6px;
}

/* --------------------------------------------------------------------------
   14. Strengths / trade-offs split
   -------------------------------------------------------------------------- */
.shell61c3e-split {
  border: 1px solid var(--shell61c3e-tan-soft);
  margin-bottom: 9px;
}

.shell61c3e-splithead {
  padding: 8px 11px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.shell61c3e-splitgood .shell61c3e-splithead {
  background: rgba(205, 133, 63, 0.16);
  color: var(--shell61c3e-gold);
}

.shell61c3e-splitwatch .shell61c3e-splithead {
  background: rgba(70, 130, 180, 0.16);
  color: var(--shell61c3e-steel);
}

.shell61c3e-splitlist {
  margin: 0;
  padding: 8px 11px 10px 26px;
}

.shell61c3e-splitlist li {
  font-size: 12.2px;
  line-height: 1.55;
  color: var(--shell61c3e-silver);
  margin: 0 0 5px;
}

.shell61c3e-splitlist li:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   15. Extended footer (index only): promos > brand > directory > disclaimer
   -------------------------------------------------------------------------- */
.shell61c3e-ext {
  margin-top: 20px;
  border-top: 2px solid var(--shell61c3e-gold);
  background: var(--shell61c3e-base-deep);
}

.shell61c3e-extsec {
  padding: 15px 12px;
  border-bottom: 1px solid var(--shell61c3e-line);
}

.shell61c3e-extt {
  font-family: var(--shell61c3e-serif);
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--shell61c3e-ink);
  letter-spacing: 0.3px;
}

.shell61c3e-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-bottom: 8px;
  padding: 8px 10px;
  background: rgba(205, 133, 63, 0.1);
  border: 1px solid var(--shell61c3e-gold-soft);
  color: var(--shell61c3e-ink);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  border-radius: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.shell61c3e-promo:last-child {
  margin-bottom: 0;
}

.shell61c3e-promo:hover {
  background: rgba(205, 133, 63, 0.2);
}

.shell61c3e-promo:active {
  transform: translateY(2px);
}

.shell61c3e-promotile {
  flex: none;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--shell61c3e-gold-soft);
  background: var(--shell61c3e-base-ink);
  color: var(--shell61c3e-gold);
}

.shell61c3e-promotile svg {
  width: 16px;
  height: 16px;
}

.shell61c3e-promo small {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--shell61c3e-faint);
  margin-top: 1px;
}

.shell61c3e-brandnote {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--shell61c3e-silver);
}

.shell61c3e-dirflag {
  margin: 12px 0 5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--shell61c3e-gold);
}

.shell61c3e-dirflag:first-of-type {
  margin-top: 0;
}

.shell61c3e-dirlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shell61c3e-dirlist li {
  min-width: 0;
}

.shell61c3e-dirlist a {
  display: inline-block;
  padding: 5px 0;
  font-size: 11.8px;
  line-height: 1.35;
  text-decoration: none;
  border-bottom: 1px dotted var(--shell61c3e-tan-soft);
}

.shell61c3e-dirlist a:hover {
  color: var(--shell61c3e-ink);
  border-bottom-color: var(--shell61c3e-gold);
}

.shell61c3e-disclaim {
  margin: 0;
  font-size: 10.8px;
  line-height: 1.55;
  color: var(--shell61c3e-faint);
}

/* --------------------------------------------------------------------------
   16. Common footer (copyright only) + fixed bottom rail
   -------------------------------------------------------------------------- */
.shell61c3e-foot {
  padding: 14px 12px 6px;
  border-top: 1px solid var(--shell61c3e-line);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--shell61c3e-faint);
}

.shell61c3e-rail {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--shell61c3e-rail-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--shell61c3e-base-ink);
  border-top: 2px solid var(--shell61c3e-steel);
}

.shell61c3e-railmark {
  position: absolute;
  top: -2px;
  left: 0;
  width: 20%;
  height: 3px;
  background: var(--shell61c3e-ink);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.shell61c3e-railbtn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 4px 2px 2px;
  background: none;
  border: 0;
  color: var(--shell61c3e-muted);
  text-decoration: none;
}

a.shell61c3e-railbtn:hover {
  color: var(--shell61c3e-ink);
}

.shell61c3e-railtile {
  width: 34px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(210, 180, 140, 0.32);
  background: rgba(255, 222, 173, 0.05);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.shell61c3e-railtile svg {
  width: 17px;
  height: 17px;
  display: block;
}

.shell61c3e-raillabel {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.shell61c3e-railbtn[aria-current="page"] {
  color: var(--shell61c3e-ink);
}

.shell61c3e-railbtn[aria-current="page"] .shell61c3e-railtile {
  border-color: var(--shell61c3e-gold);
  background: rgba(205, 133, 63, 0.18);
}

.shell61c3e-railbtn:hover .shell61c3e-railtile {
  border-color: var(--shell61c3e-gold);
}

.shell61c3e-railgo .shell61c3e-railtile {
  background: rgba(205, 133, 63, 0.12);
  border-color: var(--shell61c3e-gold-soft);
}

/* --------------------------------------------------------------------------
   17. Short-distance reveal transitions (JS-gated)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .shell61c3e-js .shell61c3e-rv {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .shell61c3e-js .shell61c3e-rv.shell61c3e-rvin {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   18. Breakpoint ladder inside the 320-430px canvas
   -------------------------------------------------------------------------- */
/* Four columns stay default; widen type slightly from 375px */
@media (min-width: 375px) {
  .shell61c3e-h1 {
    font-size: 22.5px;
  }

  .shell61c3e-h2 {
    font-size: 18px;
  }

  .shell61c3e-gname {
    font-size: 10.5px;
  }
}

/* Five game columns on the wider half of the phone range */
@media (min-width: 400px) {
  .shell61c3e-ggrid {
    grid-template-columns: repeat(5, 1fr);
  }

  .shell61c3e-gname {
    font-size: 10px;
  }
}

/* Extra breathing room at the canvas ceiling */
@media (min-width: 430px) {
  .shell61c3e-sec {
    padding-left: 16px;
    padding-right: 16px;
  }

  .shell61c3e-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .shell61c3e-extsec {
    padding-left: 16px;
    padding-right: 16px;
  }

  .shell61c3e-dirlist {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Very narrow phones: tighten type before anything can overflow */
@media (max-width: 339px) {
  .shell61c3e-sitename {
    font-size: 20px;
  }

  .shell61c3e-h1 {
    font-size: 19px;
  }

  .shell61c3e-mrow {
    grid-template-columns: 76px 1fr;
  }

  .shell61c3e-raillabel {
    font-size: 9px;
  }
}

/* --------------------------------------------------------------------------
   19. Help-page layouts: two distinct reading patterns
   -------------------------------------------------------------------------- */
.shell61c3e-helpintro {
  padding: 16px 12px 12px;
  border-bottom: 1px solid var(--shell61c3e-line);
}

.shell61c3e-helpintro p {
  margin: 0;
  color: var(--shell61c3e-silver);
  font-size: 12.8px;
  line-height: 1.65;
}

.shell61c3e-apppath {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 13px;
}

.shell61c3e-appstep {
  min-width: 0;
  padding: 9px 7px;
  border-top: 3px solid var(--shell61c3e-gold);
  background: rgba(205, 133, 63, 0.09);
}

.shell61c3e-appstep strong {
  display: block;
  font-family: var(--shell61c3e-serif);
  font-size: 15px;
  color: var(--shell61c3e-ink);
}

.shell61c3e-appstep span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--shell61c3e-muted);
}

.shell61c3e-appcard {
  padding: 12px;
  margin-bottom: 9px;
  border-left: 3px solid var(--shell61c3e-steel);
  background: rgba(70, 130, 180, 0.08);
}

.shell61c3e-appcard h3 {
  margin: 0 0 5px;
  font-family: var(--shell61c3e-serif);
  font-size: 15px;
  line-height: 1.35;
  color: var(--shell61c3e-ink);
}

.shell61c3e-appcard p,
.shell61c3e-appcard li {
  font-size: 12.2px;
  line-height: 1.6;
  color: var(--shell61c3e-silver);
}

.shell61c3e-appcard p {
  margin: 0;
}

.shell61c3e-appcard ul {
  margin: 7px 0 0;
  padding-left: 19px;
}

.shell61c3e-appcard li + li {
  margin-top: 4px;
}

.shell61c3e-helpbutton {
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  margin-top: 10px;
  border: 1px solid var(--shell61c3e-gold);
  border-radius: 0;
  background: var(--shell61c3e-gold);
  color: var(--shell61c3e-base);
  font-size: 12.5px;
  font-weight: 800;
  text-align: left;
}

.shell61c3e-helpbutton:hover {
  filter: brightness(1.12);
}

.shell61c3e-riskline {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid var(--shell61c3e-line);
}

.shell61c3e-riskline:first-child {
  border-top: 0;
}

.shell61c3e-risktile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--shell61c3e-steel);
  color: var(--shell61c3e-steel);
  font-weight: 800;
}

.shell61c3e-riskline strong {
  display: block;
  margin-bottom: 2px;
  color: var(--shell61c3e-ink);
  font-size: 12.5px;
}

.shell61c3e-riskline span {
  display: block;
  color: var(--shell61c3e-silver);
  font-size: 11.8px;
  line-height: 1.55;
}

.shell61c3e-route {
  counter-reset: shell61c3e-route;
}

.shell61c3e-routeitem {
  position: relative;
  display: grid;
  grid-template-columns: 33px 1fr;
  gap: 10px;
  padding: 0 0 16px;
}

.shell61c3e-routeitem::before {
  content: counter(shell61c3e-route);
  counter-increment: shell61c3e-route;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--shell61c3e-gold);
  color: var(--shell61c3e-gold);
  font-weight: 800;
}

.shell61c3e-routeitem:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;
  bottom: 0;
  left: 15px;
  border-left: 1px solid var(--shell61c3e-steel-soft);
}

.shell61c3e-routeitem h3 {
  margin: 0 0 4px;
  font-family: var(--shell61c3e-serif);
  font-size: 15px;
  line-height: 1.3;
  color: var(--shell61c3e-ink);
}

.shell61c3e-routeitem p {
  margin: 0;
  color: var(--shell61c3e-silver);
  font-size: 12.2px;
  line-height: 1.6;
}

.shell61c3e-errorgrid {
  display: grid;
  gap: 7px;
}

.shell61c3e-erroritem {
  padding: 10px 11px;
  border: 1px solid var(--shell61c3e-tan-soft);
  background: rgba(210, 180, 140, 0.06);
}

.shell61c3e-erroritem strong {
  display: block;
  color: var(--shell61c3e-ink);
  font-size: 12.5px;
}

.shell61c3e-erroritem span {
  display: block;
  margin-top: 3px;
  color: var(--shell61c3e-silver);
  font-size: 11.8px;
  line-height: 1.55;
}

.shell61c3e-conclusion {
  padding: 12px;
  border: 2px solid var(--shell61c3e-gold);
  background: rgba(205, 133, 63, 0.12);
  color: var(--shell61c3e-ink);
  font-family: var(--shell61c3e-serif);
  font-size: 15px;
  line-height: 1.45;
}

.shell61c3e-conclusion small {
  display: block;
  margin-top: 5px;
  color: var(--shell61c3e-silver);
  font-family: var(--shell61c3e-sans);
  font-size: 11.5px;
  line-height: 1.55;
}

.shell61c3e-related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.shell61c3e-relateditem {
  min-width: 0;
  padding: 10px;
  border-top: 2px solid var(--shell61c3e-steel);
  background: rgba(70, 130, 180, 0.08);
}

.shell61c3e-relateditem strong {
  display: block;
  font-family: var(--shell61c3e-serif);
  font-size: 14px;
  color: var(--shell61c3e-ink);
}

.shell61c3e-relateditem span {
  display: block;
  margin-top: 4px;
  color: var(--shell61c3e-muted);
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 339px) {
  .shell61c3e-apppath,
  .shell61c3e-related {
    grid-template-columns: 1fr;
  }
}
