/* ==========================================================================
   phdream 333 login - responsive layers stylesheet
   Palette: #880E4F / #95A5A6 / #F8F8FF / #2F2F2F / #DEE2E6 / #1A1A2E
   Direction: geometric display type, near-square tool corners, pure-image
   game cards with short names, short-paragraph rhythm, motion only on CTAs.
   All classes and variables carry the shellcd50e- prefix.
   ========================================================================== */

:root {
  --shellcd50e-bg: #1A1A2E;
  --shellcd50e-bg-deep: #14142400;
  --shellcd50e-bg-out: #101020;
  --shellcd50e-surface: #2F2F2F;
  --shellcd50e-surface-hi: #3A3A4A;
  --shellcd50e-panel: #20202F;
  --shellcd50e-brand: #880E4F;
  --shellcd50e-brand-hi: #AD2D6B;
  --shellcd50e-ink: #F8F8FF;
  --shellcd50e-mute: #95A5A6;
  --shellcd50e-line: rgba(222, 226, 230, 0.16);
  --shellcd50e-line-soft: rgba(222, 226, 230, 0.09);
  --shellcd50e-display: 'Poppins', 'Segoe UI', 'Trebuchet MS', sans-serif;
  --shellcd50e-body: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shellcd50e-r: 3px;
  --shellcd50e-r-small: 2px;
  --shellcd50e-topband-h: 56px;
  --shellcd50e-bottomnav-h: 60px;
}

/* --------------------------------------------------------------------------
   Base reset and phone canvas (320-430px), centered on wide screens
   -------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background: var(--shellcd50e-bg-out);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--shellcd50e-bg);
  color: var(--shellcd50e-ink);
  font-family: var(--shellcd50e-body);
  font-size: 14px;
  line-height: 1.55;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; border: 0; }
button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--shellcd50e-ink); text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--shellcd50e-display); font-weight: 600; line-height: 1.3; }

::selection { background: var(--shellcd50e-brand); color: var(--shellcd50e-ink); }

:focus-visible {
  outline: 2px solid var(--shellcd50e-brand-hi);
  outline-offset: 2px;
  border-radius: var(--shellcd50e-r-small);
}

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

/* Body scroll lock while the sectioned menu page is open */
.shellcd50e-menu-lock { overflow: hidden; }

/* --------------------------------------------------------------------------
   Top band: minimal title action strip, fixed to the phone canvas top
   -------------------------------------------------------------------------- */
.shellcd50e-topband {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: rgba(26, 26, 46, 0.97);
  border-bottom: 1px solid var(--shellcd50e-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.shellcd50e-topband-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--shellcd50e-topband-h);
  padding: 9px 10px;
}

.shellcd50e-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-right: auto;
}

.shellcd50e-brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: var(--shellcd50e-r);
  border: 1px solid var(--shellcd50e-line);
  object-fit: cover;
}

.shellcd50e-brand-name {
  font-family: var(--shellcd50e-display);
  font-weight: 600;
  font-size: clamp(13px, 3.5vw, 15px);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shellcd50e-brand-name b {
  font-weight: 700;
  color: var(--shellcd50e-brand-hi);
}

/* Segmented action pair (Register | Login) - split CTA shape */
.shellcd50e-seg {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--shellcd50e-line);
  border-radius: var(--shellcd50e-r);
  overflow: hidden;
  flex: 0 0 auto;
}

.shellcd50e-seg-btn {
  min-height: 36px;
  padding: 0 11px;
  font-family: var(--shellcd50e-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shellcd50e-ink);
  display: inline-flex;
  align-items: center;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

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

.shellcd50e-seg-btn--fill { background: var(--shellcd50e-brand); }
.shellcd50e-seg-btn--fill:hover { background: var(--shellcd50e-brand-hi); }

.shellcd50e-seg-btn:active { transform: scale(0.94); }

/* Menu toggle */
.shellcd50e-menubtn {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--shellcd50e-line);
  border-radius: var(--shellcd50e-r);
}

.shellcd50e-menubtn-bar {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--shellcd50e-ink);
  border-radius: 1px;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.shellcd50e-menubtn-bar--brand { background: var(--shellcd50e-brand-hi); }

.shellcd50e-menubtn[aria-expanded="true"] .shellcd50e-menubtn-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.shellcd50e-menubtn[aria-expanded="true"] .shellcd50e-menubtn-bar:nth-child(2) { opacity: 0; }
.shellcd50e-menubtn[aria-expanded="true"] .shellcd50e-menubtn-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Sectioned menu page (slides under the top band)
   -------------------------------------------------------------------------- */
.shellcd50e-menupanel {
  position: fixed;
  top: var(--shellcd50e-topband-h);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 100%;
  max-width: 430px;
  max-height: calc(100vh - var(--shellcd50e-topband-h));
  overflow-y: auto;
  background: var(--shellcd50e-panel);
  border-bottom: 1px solid var(--shellcd50e-line);
  z-index: 55;
  padding: 6px 12px 18px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.shellcd50e-menupanel.shellcd50e-is-open {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.shellcd50e-menu-legend {
  font-family: var(--shellcd50e-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shellcd50e-mute);
  padding: 14px 2px 6px;
  border-bottom: 1px solid var(--shellcd50e-line-soft);
}

.shellcd50e-menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--shellcd50e-line-soft);
}

.shellcd50e-menu-row:last-child { border-bottom: 0; }

.shellcd50e-menu-rowtxt { min-width: 0; flex: 1 1 auto; }

.shellcd50e-menu-rowlabel {
  display: block;
  font-family: var(--shellcd50e-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--shellcd50e-ink);
}

.shellcd50e-menu-rowsub {
  display: block;
  font-size: 11.5px;
  color: var(--shellcd50e-mute);
  line-height: 1.4;
  margin-top: 1px;
}

.shellcd50e-menu-rowico {
  width: 22px; height: 22px;
  flex: 0 0 22px;
}

.shellcd50e-menu-chev {
  flex: 0 0 auto;
  font-family: var(--shellcd50e-display);
  font-size: 14px;
  color: var(--shellcd50e-mute);
}

.shellcd50e-menu-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--shellcd50e-brand);
  border-radius: var(--shellcd50e-r);
  font-family: var(--shellcd50e-display);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.12s ease;
}

.shellcd50e-menu-promo:active { transform: scale(0.97); }

.shellcd50e-menu-promo small {
  font-family: var(--shellcd50e-body);
  font-size: 10.5px;
  font-weight: 400;
  color: rgba(248, 248, 255, 0.78);
}

/* --------------------------------------------------------------------------
   Main column
   -------------------------------------------------------------------------- */
.shellcd50e-main {
  padding-top: calc(var(--shellcd50e-topband-h) + 6px);
  padding-bottom: calc(var(--shellcd50e-bottomnav-h) + 26px + env(safe-area-inset-bottom, 0px));
}

/* --------------------------------------------------------------------------
   Hero: single H1, short lead, segmented large CTA
   -------------------------------------------------------------------------- */
.shellcd50e-hero {
  padding: 10px 14px 14px;
  border-bottom: 1px solid var(--shellcd50e-line-soft);
}

.shellcd50e-hero-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 4px 0 8px;
}

.shellcd50e-hero-lead {
  font-size: 13.5px;
  color: var(--shellcd50e-mute);
  margin-bottom: 12px;
}

.shellcd50e-hero-lead strong { color: var(--shellcd50e-ink); font-weight: 600; }

.shellcd50e-herochips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.shellcd50e-herochip {
  font-family: var(--shellcd50e-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shellcd50e-mute);
  border: 1px solid var(--shellcd50e-line);
  border-radius: var(--shellcd50e-r-small);
  padding: 4px 8px;
}

.shellcd50e-herochip b { color: var(--shellcd50e-brand-hi); }

.shellcd50e-ctaseg {
  display: flex;
  align-items: stretch;
  border-radius: var(--shellcd50e-r);
  overflow: hidden;
  border: 1px solid var(--shellcd50e-brand-hi);
}

.shellcd50e-ctaseg-btn {
  flex: 1 1 50%;
  min-height: 48px;
  font-family: var(--shellcd50e-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.shellcd50e-ctaseg-btn + .shellcd50e-ctaseg-btn {
  border-left: 1px solid var(--shellcd50e-brand-hi);
}

.shellcd50e-ctaseg-btn--fill { background: var(--shellcd50e-brand); color: var(--shellcd50e-ink); }
.shellcd50e-ctaseg-btn--fill:hover { background: var(--shellcd50e-brand-hi); }
.shellcd50e-ctaseg-btn--ghost { color: var(--shellcd50e-ink); }
.shellcd50e-ctaseg-btn--ghost:hover { background: rgba(136, 14, 79, 0.18); }
.shellcd50e-ctaseg-btn:active { transform: scale(0.96); }

/* --------------------------------------------------------------------------
   Promo banner carousel (three local banners)
   -------------------------------------------------------------------------- */
.shellcd50e-carousel {
  position: relative;
  margin: 12px 12px 4px;
  border-radius: var(--shellcd50e-r);
  overflow: hidden;
  border: 1px solid var(--shellcd50e-line-soft);
  background: var(--shellcd50e-surface);
}

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

.shellcd50e-carousel-slide {
  flex: 0 0 100%;
  display: block;
  width: 100%;
  position: relative;
}

.shellcd50e-carousel-slide img {
  width: 100%;
  height: 172px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.shellcd50e-carousel-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0) 0%, rgba(26, 26, 46, 0.88) 78%);
  font-family: var(--shellcd50e-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--shellcd50e-ink);
  pointer-events: none;
  text-align: left;
}

.shellcd50e-carousel-cap span {
  font-family: var(--shellcd50e-body);
  font-weight: 400;
  font-size: 10.5px;
  color: var(--shellcd50e-mute);
}

.shellcd50e-carousel-dots {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.shellcd50e-carousel-dot {
  width: 18px;
  height: 5px;
  padding: 0;
  background: rgba(248, 248, 255, 0.34);
  border-radius: 1px;
  transition: background-color 0.2s ease;
}

.shellcd50e-carousel-dot.shellcd50e-is-on { background: var(--shellcd50e-brand-hi); }

/* --------------------------------------------------------------------------
   Category jump strip (same-page anchors, horizontal rail)
   -------------------------------------------------------------------------- */
.shellcd50e-catstrip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 12px 12px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shellcd50e-catstrip::-webkit-scrollbar { display: none; }

.shellcd50e-catlink {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--shellcd50e-line);
  border-radius: var(--shellcd50e-r);
  font-family: var(--shellcd50e-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--shellcd50e-ink);
  white-space: nowrap;
}

.shellcd50e-catlink i {
  font-style: normal;
  font-size: 9.5px;
  color: var(--shellcd50e-mute);
}

.shellcd50e-catlink:hover { border-color: var(--shellcd50e-brand-hi); }

/* --------------------------------------------------------------------------
   Game sections: overline tag + H2 + short lead + dense icon grid
   -------------------------------------------------------------------------- */
.shellcd50e-gamesec { padding: 14px 12px 4px; }

.shellcd50e-gametag {
  display: inline-block;
  font-family: var(--shellcd50e-display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shellcd50e-mute);
  border-left: 3px solid var(--shellcd50e-brand);
  padding: 1px 0 1px 7px;
  margin-bottom: 7px;
}

.shellcd50e-gamesec-h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}

.shellcd50e-gamesec-lead {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--shellcd50e-mute);
  margin: 0 0 12px;
}

.shellcd50e-gamesec-lead a { color: var(--shellcd50e-ink); border-bottom: 1px solid var(--shellcd50e-brand-hi); font-weight: 600; }

.shellcd50e-gamegrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px 6px;
}

/* Wider handsets get a fifth column */
@media (min-width: 392px) {
  .shellcd50e-gamegrid { grid-template-columns: repeat(5, 1fr); gap: 10px 7px; }
}

.shellcd50e-gamecard {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--shellcd50e-surface);
  border: 1px solid var(--shellcd50e-line-soft);
  border-radius: var(--shellcd50e-r);
  padding: 4px 3px 6px;
}

.shellcd50e-gamecard:hover { border-color: var(--shellcd50e-line); }

.shellcd50e-gamecard-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--shellcd50e-r-small);
  background: var(--shellcd50e-bg);
}

.shellcd50e-gamecard-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.3;
  color: #DEE2E6;
  min-height: 27px;
}

/* --------------------------------------------------------------------------
   Editorial modules after the game floor
   -------------------------------------------------------------------------- */
.shellcd50e-module {
  margin-top: 20px;
  padding: 16px 14px;
  border-top: 1px solid var(--shellcd50e-line-soft);
}

.shellcd50e-mod-legend {
  font-family: var(--shellcd50e-display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shellcd50e-brand-hi);
  margin-bottom: 6px;
}

.shellcd50e-mod-h2 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.shellcd50e-mod-lead {
  font-size: 12.5px;
  color: var(--shellcd50e-mute);
  margin-bottom: 12px;
}

.shellcd50e-mod-lead strong, .shellcd50e-module p strong { color: var(--shellcd50e-ink); font-weight: 600; }

.shellcd50e-module p { font-size: 12.5px; color: var(--shellcd50e-mute); margin-bottom: 10px; }
.shellcd50e-module p:last-child { margin-bottom: 0; }

.shellcd50e-module a.shellcd50e-bodylink {
  color: var(--shellcd50e-ink);
  border-bottom: 1px solid var(--shellcd50e-brand-hi);
  font-weight: 600;
}

.shellcd50e-inlinelink {
  color: var(--shellcd50e-ink);
  font-weight: 600;
  border-bottom: 1px solid var(--shellcd50e-brand-hi);
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}

/* Offer rows (promotion ledger) */
.shellcd50e-promorow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--shellcd50e-line-soft);
}

.shellcd50e-promorow:last-child { border-bottom: 0; }

.shellcd50e-prorank {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--shellcd50e-brand);
  border-radius: var(--shellcd50e-r-small);
  font-family: var(--shellcd50e-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--shellcd50e-ink);
}

.shellcd50e-probody { flex: 1 1 auto; min-width: 0; }

.shellcd50e-prolabel {
  display: block;
  font-family: var(--shellcd50e-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--shellcd50e-ink);
  margin-bottom: 2px;
}

.shellcd50e-protext {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--shellcd50e-mute);
}

/* Fact ledger (definition list) */
.shellcd50e-facts {
  border: 1px solid var(--shellcd50e-line-soft);
  border-radius: var(--shellcd50e-r);
  overflow: hidden;
  margin-top: 4px;
}

.shellcd50e-fact {
  display: flex;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--shellcd50e-line-soft);
  background: var(--shellcd50e-panel);
}

.shellcd50e-fact:last-child { border-bottom: 0; }

.shellcd50e-fact dt {
  flex: 0 0 96px;
  font-family: var(--shellcd50e-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--shellcd50e-mute);
  padding-top: 1px;
}

.shellcd50e-fact dd {
  flex: 1 1 auto;
  font-size: 12.5px;
  color: var(--shellcd50e-ink);
}

/* FAQ accordion */
.shellcd50e-faqitem {
  border: 1px solid var(--shellcd50e-line-soft);
  border-radius: var(--shellcd50e-r);
  background: var(--shellcd50e-panel);
  margin-bottom: 8px;
}

.shellcd50e-faqitem:last-child { margin-bottom: 0; }

.shellcd50e-faqitem summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 11px 12px;
  font-family: var(--shellcd50e-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--shellcd50e-ink);
}

.shellcd50e-faqitem summary::-webkit-details-marker { display: none; }

.shellcd50e-faqitem summary::after {
  content: "+";
  font-size: 16px;
  font-weight: 600;
  color: var(--shellcd50e-brand-hi);
  flex: 0 0 auto;
}

.shellcd50e-faqitem[open] summary::after { content: "\2212"; }

.shellcd50e-faqitem .shellcd50e-faqanswer {
  padding: 0 12px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--shellcd50e-mute);
}

/* Criteria checklist */
.shellcd50e-critrow {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--shellcd50e-line-soft);
}

.shellcd50e-critrow:last-child { border-bottom: 0; }

.shellcd50e-critmark {
  flex: 0 0 14px;
  width: 14px; height: 14px;
  margin-top: 4px;
  border: 1px solid var(--shellcd50e-brand-hi);
  border-radius: var(--shellcd50e-r-small);
  position: relative;
}

.shellcd50e-critmark::after {
  content: "";
  position: absolute;
  left: 3px; top: 0.5px;
  width: 5px; height: 9px;
  border: solid var(--shellcd50e-brand-hi);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

.shellcd50e-critbody { flex: 1 1 auto; min-width: 0; }

.shellcd50e-critbody h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.shellcd50e-critbody p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--shellcd50e-mute);
}

/* Scenario rows (use case guidance) */
.shellcd50e-userow {
  border-left: 2px solid var(--shellcd50e-brand);
  background: var(--shellcd50e-panel);
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 0 var(--shellcd50e-r) var(--shellcd50e-r) 0;
}

.shellcd50e-userow:last-child { margin-bottom: 0; }

.shellcd50e-usewhen {
  font-family: var(--shellcd50e-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--shellcd50e-ink);
  margin-bottom: 3px;
}

.shellcd50e-usethen {
  font-size: 12px;
  line-height: 1.5;
  color: var(--shellcd50e-mute);
}

/* --------------------------------------------------------------------------
   Home extended footer: brand > promotions (5) > directory > disclaimer
   -------------------------------------------------------------------------- */
.shellcd50e-xtfoot {
  margin-top: 24px;
  border-top: 1px solid var(--shellcd50e-line);
  background: var(--shellcd50e-panel);
  padding: 18px 14px 6px;
}

.shellcd50e-xt-legend {
  font-family: var(--shellcd50e-display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shellcd50e-brand-hi);
  margin-bottom: 7px;
}

.shellcd50e-xt-brandtext {
  font-size: 12px;
  line-height: 1.55;
  color: var(--shellcd50e-mute);
  margin-bottom: 18px;
}

.shellcd50e-xt-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 18px;
}

.shellcd50e-xt-promo-btn {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--shellcd50e-line);
  border-radius: var(--shellcd50e-r);
  font-family: var(--shellcd50e-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--shellcd50e-ink);
  padding: 8px;
  text-align: center;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.shellcd50e-xt-promo-btn--fill {
  background: var(--shellcd50e-brand);
  border-color: var(--shellcd50e-brand);
}

.shellcd50e-xt-promo-btn--fill:hover { background: var(--shellcd50e-brand-hi); }
.shellcd50e-xt-promo-btn:hover { border-color: var(--shellcd50e-brand-hi); }
.shellcd50e-xt-promo-btn:active { transform: scale(0.95); }

.shellcd50e-xt-dir {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 14px;
  margin-bottom: 18px;
}

.shellcd50e-xt-dir-link {
  display: block;
  padding: 7px 2px;
  border-bottom: 1px solid var(--shellcd50e-line-soft);
  font-size: 12px;
  color: var(--shellcd50e-mute);
}

.shellcd50e-xt-dir-link b {
  display: block;
  font-family: var(--shellcd50e-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--shellcd50e-ink);
}

.shellcd50e-xt-dir-link:hover b { color: var(--shellcd50e-brand-hi); }

.shellcd50e-xt-disclaimer {
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--shellcd50e-mute);
  border: 1px solid var(--shellcd50e-line-soft);
  border-radius: var(--shellcd50e-r);
  padding: 10px 11px;
  background: rgba(47, 47, 47, 0.45);
}

/* --------------------------------------------------------------------------
   Common footer (all pages): 2026 copyright only
   -------------------------------------------------------------------------- */
.shellcd50e-foot {
  padding: 16px 14px 10px;
  border-top: 1px solid var(--shellcd50e-line-soft);
  text-align: center;
}

.shellcd50e-foot-copy {
  font-size: 11px;
  color: var(--shellcd50e-mute);
  letter-spacing: 0.02em;
}

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

/* --------------------------------------------------------------------------
   Bottom navigation rail: five roles, two-tone icons, top indicator line
   -------------------------------------------------------------------------- */
.shellcd50e-bottomnav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(26, 26, 46, 0.97);
  border-top: 1px solid var(--shellcd50e-line);
  padding: 3px 0 calc(3px + env(safe-area-inset-bottom, 0px));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.shellcd50e-bn-item {
  position: relative;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--shellcd50e-mute);
  padding: 4px 2px;
}

.shellcd50e-bn-item::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--shellcd50e-brand-hi);
  transition: width 0.16s ease;
}

.shellcd50e-bn-item.shellcd50e-is-active { color: var(--shellcd50e-ink); }

.shellcd50e-bn-item.shellcd50e-is-active::before { width: 30px; }

.shellcd50e-bn-ico {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  transition: transform 0.12s ease;
}

.shellcd50e-bn-item:active .shellcd50e-bn-ico { transform: scale(0.86); }

.shellcd50e-bn-label {
  font-family: var(--shellcd50e-display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shellcd50e-bn-item:hover { color: var(--shellcd50e-ink); }

/* --------------------------------------------------------------------------
   Small-screen hardening (320px)
   -------------------------------------------------------------------------- */
@media (max-width: 339px) {
  .shellcd50e-seg-btn { padding: 0 8px; font-size: 10px; }
  .shellcd50e-brand-logo { width: 30px; height: 30px; flex-basis: 30px; }
  .shellcd50e-xt-promos { grid-template-columns: 1fr 1fr; }
  .shellcd50e-carousel-slide img { height: 150px; }
  .shellcd50e-hero-title { font-size: 19px; }
  .shellcd50e-fact dt { flex-basis: 86px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* Compatible accessibility and editorial additions. */
:root { --shellcd50e-topband-h: 108px; --shellcd50e-brand-hi: #EA83B4; }
html { scroll-padding-top: calc(var(--shellcd50e-topband-h) + 14px); }
.shellcd50e-topband-inner { flex-wrap: wrap; min-height: 0; padding: 6px 10px; gap: 4px 8px; }
.shellcd50e-brand { flex: 1 0 calc(100% - 58px); min-height: 44px; order: 0; }
.shellcd50e-brand-name { font-size: 15px; overflow: visible; }
.shellcd50e-menubtn { order: 1; width: 44px; height: 44px; flex-basis: 44px; }
.shellcd50e-seg { order: 2; width: 100%; }
.shellcd50e-seg-btn { min-height: 44px; flex: 1; justify-content: center; font-size: 12px; }
.shellcd50e-seg-btn--fill:hover, .shellcd50e-ctaseg-btn--fill:hover,
.shellcd50e-xt-promo-btn--fill:hover { background: #A31B60; }
.shellcd50e-menupanel { max-height: calc(100dvh - var(--shellcd50e-topband-h) - 64px); transition: none; }
.shellcd50e-menupanel a[aria-current="page"] { border-left: 3px solid var(--shellcd50e-brand-hi); padding-left: 8px; }
.shellcd50e-menu-close { display: block; min-height: 44px; width: 100%; margin: 8px 0; border: 1px solid var(--shellcd50e-line); }
.shellcd50e-brand, .shellcd50e-menu-row, .shellcd50e-xt-dir-link { min-height: 44px; }
.shellcd50e-carousel-track { transition: none; }
.shellcd50e-carousel-slide img { height: auto; aspect-ratio: 2 / 1; object-fit: contain; }
.shellcd50e-carousel-cap { position: static; background: var(--shellcd50e-panel); padding: 9px 10px; min-height: 48px; }
.shellcd50e-carousel-dots { position: static; justify-content: center; gap: 6px; background: var(--shellcd50e-panel); }
.shellcd50e-carousel-dot { width: 44px; height: 44px; background: transparent; position: relative; transition: none; }
.shellcd50e-carousel-dot::after { content: ''; position: absolute; height: 5px; left: 7px; right: 7px; top: 19px; background: #95A5A6; }
.shellcd50e-carousel-dot.shellcd50e-is-on { background: transparent; }
.shellcd50e-carousel-dot.shellcd50e-is-on::after { background: var(--shellcd50e-brand-hi); }
.shellcd50e-catstrip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); overflow: visible; gap: 5px; }
.shellcd50e-catlink { min-height: 44px; padding: 0 7px; justify-content: center; font-size: 10px; }
.shellcd50e-gamegrid { grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; }
.shellcd50e-gamecard { min-width: 0; min-height: 44px; background: transparent; border: 0; padding: 0; }
.shellcd50e-gamecard-name { display: block; overflow: visible; -webkit-line-clamp: unset; overflow-wrap: anywhere; min-height: 30px; }
.shellcd50e-hero-lead, .shellcd50e-gamesec-lead, .shellcd50e-module p,
.shellcd50e-mod-lead { font-size: 14px; line-height: 1.65; }
.shellcd50e-module h3 { font-size: 15px; margin: 14px 0 6px; }
.shellcd50e-module ul, .shellcd50e-module ol { padding-left: 20px; margin: 10px 0 14px; list-style: disc; }
.shellcd50e-module ol { list-style: decimal; }
.shellcd50e-module li { margin: 7px 0; color: var(--shellcd50e-mute); }
.shellcd50e-bodylink { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.shellcd50e-inlinelink { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; border: 1px solid var(--shellcd50e-line); margin: 3px 0; text-align: left; }
.shellcd50e-xtfoot { margin-top: 16px; }
.shellcd50e-foot { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.shellcd50e-main { padding-bottom: 20px; }
.shellcd50e-fact dt { overflow-wrap: anywhere; }
.shellcd50e-fact dd { min-width: 0; }
.shellcd50e-readsteps { counter-reset: shellcd50e-step; }
.shellcd50e-readstep { margin: 14px 0; padding: 12px; border-left: 3px solid var(--shellcd50e-brand); background: var(--shellcd50e-panel); }
.shellcd50e-readstep h3 { margin-top: 0; }
.shellcd50e-answer { border-bottom: 1px solid var(--shellcd50e-line); padding: 10px 0; }
.shellcd50e-compare { border: 1px solid var(--shellcd50e-line); padding: 12px; margin: 12px 0; }
.shellcd50e-compare h3 { margin-top: 0; }
.shellcd50e-note { border-left: 3px solid var(--shellcd50e-brand-hi); padding: 12px; background: var(--shellcd50e-panel); }
:focus-visible { outline: 3px solid #EA83B4; outline-offset: 2px; }
@media (min-width: 392px) { .shellcd50e-gamegrid { grid-template-columns: repeat(5,minmax(0,1fr)); } }

/* Print sanity */
@media print {
  .shellcd50e-topband, .shellcd50e-bottomnav, .shellcd50e-menupanel, .shellcd50e-carousel-dots { display: none; }
  body { max-width: none; color: #2F2F2F; background: #F8F8FF; }
}
