/* ==========================================================================
   1xbet ng login - mobile-first site chrome
   Prefix contract: every class and every custom property uses shellca340-
   Palette: #1B263B base ink / #EEEEEE paper / #FF5722 accent
            #9400D3 deep violet / #9966CC lilac / #D8BFD8 thistle
   Canvas: stable 320-430px phone layout
   ========================================================================== */

:root {
  --shellca340-ink: #1B263B;
  --shellca340-ink-2: #22304E;
  --shellca340-ink-3: #2A3A5E;
  --shellca340-paper: #EEEEEE;
  --shellca340-dim: rgba(238, 238, 238, 0.74);
  --shellca340-faint: rgba(238, 238, 238, 0.52);
  --shellca340-accent: #FF5722;
  --shellca340-accent-deep: #D9431A;
  --shellca340-accent-soft: rgba(255, 87, 34, 0.18);
  --shellca340-violet: #9400D3;
  --shellca340-lilac: #9966CC;
  --shellca340-thistle: #D8BFD8;
  --shellca340-line: rgba(216, 191, 216, 0.18);
  --shellca340-line-strong: rgba(216, 191, 216, 0.32);
  --shellca340-card: #243252;
  --shellca340-card-edge: rgba(238, 238, 238, 0.08);
  --shellca340-shadow: 0 10px 24px rgba(8, 13, 26, 0.55);
  --shellca340-radius-lg: 18px;
  --shellca340-radius-md: 14px;
  --shellca340-radius-sm: 10px;
  --shellca340-head-font: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --shellca340-body-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shellca340-topbar-h: 58px;
  --shellca340-bottombar-h: 62px;
}

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

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--shellca340-ink);
  background-image:
    radial-gradient(1200px 500px at 50% -180px, rgba(148, 0, 211, 0.28), transparent 70%),
    radial-gradient(700px 420px at 110% 12%, rgba(153, 102, 204, 0.16), transparent 72%);
  background-repeat: no-repeat;
  color: var(--shellca340-paper);
  font-family: var(--shellca340-body-font);
  font-size: 15px;
  line-height: 1.62;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--shellca340-thistle);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--shellca340-head-font);
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 0.85em;
}

.shellca340-skip {
  position: absolute;
  left: 12px;
  top: -52px;
  z-index: 200;
  background: var(--shellca340-accent);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--shellca340-radius-sm);
  transition: top 0.2s ease;
}

.shellca340-skip:focus {
  top: 10px;
}

:focus-visible {
  outline: 2px solid var(--shellca340-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.shellca340-page {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: transparent;
  position: relative;
}

/* ---------- top action band ---------- */

.shellca340-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--shellca340-topbar-h);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(27, 38, 59, 0.96);
  border-bottom: 1px solid var(--shellca340-line);
  backdrop-filter: blur(8px);
}

.shellca340-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.shellca340-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: 0 0 auto;
  border: 1px solid var(--shellca340-line-strong);
  background: #ffffff;
}

.shellca340-brand-name {
  font-family: var(--shellca340-head-font);
  font-weight: 700;
  font-size: 17px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shellca340-brand-name em {
  font-style: normal;
  color: var(--shellca340-accent);
}

.shellca340-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.shellca340-btn {
  font-family: var(--shellca340-head-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 0;
  border-radius: var(--shellca340-radius-sm);
  padding: 9px 13px;
  min-height: 38px;
  min-width: 44px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.shellca340-btn-cta {
  background: var(--shellca340-accent);
  color: #ffffff;
}

.shellca340-btn-cta:hover,
.shellca340-btn-cta:focus-visible {
  background: var(--shellca340-accent-deep);
  color: #ffffff;
  text-decoration: none;
}

.shellca340-btn-ghost {
  background: transparent;
  color: var(--shellca340-paper);
  border: 1px solid var(--shellca340-line-strong);
}

.shellca340-btn-ghost:hover,
.shellca340-btn-ghost:focus-visible {
  background: rgba(216, 191, 216, 0.12);
  color: #ffffff;
  text-decoration: none;
}

.shellca340-btn:active {
  transform: scale(0.96);
}

.shellca340-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--shellca340-line-strong);
  border-radius: var(--shellca340-radius-sm);
  cursor: pointer;
  position: relative;
}

.shellca340-menu-btn-bars,
.shellca340-menu-btn-bars::before,
.shellca340-menu-btn-bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--shellca340-paper);
  border-radius: 2px;
  position: absolute;
  left: 10px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}

.shellca340-menu-btn-bars {
  top: 15px;
}

.shellca340-menu-btn-bars::before {
  top: 6px;
}

.shellca340-menu-btn-bars::after {
  top: 12px;
}

.shellca340-menu-btn[aria-expanded="true"] .shellca340-menu-btn-bars {
  transform: translateY(6px) rotate(45deg);
}

.shellca340-menu-btn[aria-expanded="true"] .shellca340-menu-btn-bars::before {
  opacity: 0;
}

.shellca340-menu-btn[aria-expanded="true"] .shellca340-menu-btn-bars::after {
  top: 0;
  transform: rotate(-90deg);
}

/* ---------- expandable nav menu ---------- */

.shellca340-menu {
  position: fixed;
  top: var(--shellca340-topbar-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 110;
  background: #1F2B47;
  border-bottom: 1px solid var(--shellca340-line-strong);
  box-shadow: var(--shellca340-shadow);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.32s ease, opacity 0.25s ease, visibility 0.25s;
}

.shellca340-menu-open {
  max-height: 560px;
  opacity: 1;
  visibility: visible;
}

.shellca340-menu-inner {
  padding: 12px 14px 16px;
}

.shellca340-menu-title {
  font-family: var(--shellca340-head-font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--shellca340-faint);
  margin: 0 0 8px;
}

.shellca340-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.shellca340-menu-link {
  display: block;
  padding: 10px 10px;
  min-height: 44px;
  border: 1px solid var(--shellca340-line);
  border-radius: var(--shellca340-radius-sm);
  background: rgba(238, 238, 238, 0.05);
  color: var(--shellca340-paper);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.shellca340-menu-link:hover,
.shellca340-menu-link:focus-visible {
  background: rgba(255, 87, 34, 0.16);
  border-color: var(--shellca340-accent);
  color: #ffffff;
  text-decoration: none;
}

.shellca340-menu-link-current {
  background: rgba(153, 102, 204, 0.2);
  border-color: var(--shellca340-lilac);
  color: #ffffff;
}

.shellca340-menu-foot {
  display: flex;
  gap: 8px;
}

.shellca340-menu-foot .shellca340-btn {
  flex: 1 1 50%;
}

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

.shellca340-main {
  padding: calc(var(--shellca340-topbar-h) + 14px) 12px
    calc(var(--shellca340-bottombar-h) + env(safe-area-inset-bottom, 0px) + 28px);
}

.shellca340-hero {
  padding: 16px 2px 4px;
  margin-bottom: 6px;
}

.shellca340-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--shellca340-head-font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--shellca340-thistle);
  border: 1px solid var(--shellca340-line-strong);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
  background: rgba(216, 191, 216, 0.08);
}

.shellca340-hero h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  text-wrap: balance;
}

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

.shellca340-hero p {
  color: var(--shellca340-dim);
  font-size: 14px;
  margin-bottom: 14px;
}

.shellca340-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shellca340-hero-cta .shellca340-btn {
  flex: 1 1 150px;
  padding: 12px 14px;
  font-size: 14px;
  text-align: center;
}

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

.shellca340-carousel {
  position: relative;
  margin: 14px 0 4px;
  border-radius: var(--shellca340-radius-lg);
  overflow: hidden;
  border: 1px solid var(--shellca340-line);
  box-shadow: var(--shellca340-shadow);
  background: var(--shellca340-ink-2);
}

.shellca340-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.shellca340-slide {
  flex: 0 0 100%;
  position: relative;
}

.shellca340-slide-btn {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.shellca340-slide img {
  width: 100%;
  aspect-ratio: 1200 / 600;
  object-fit: cover;
}

.shellca340-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(27, 38, 59, 0.92));
  text-align: left;
  font-family: var(--shellca340-head-font);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

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

.shellca340-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(238, 238, 238, 0.42);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.shellca340-dot-on {
  background: var(--shellca340-accent);
  transform: scale(1.15);
}

/* ---------- quick rail (horizontal icon-name bars) ---------- */

.shellca340-quick {
  margin: 16px 0 2px;
}

.shellca340-quick-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.shellca340-quick-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 7px;
  min-height: 46px;
  border: 1px solid var(--shellca340-line);
  border-radius: 999px;
  background: var(--shellca340-card);
  color: var(--shellca340-paper);
  font-family: var(--shellca340-head-font);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.shellca340-quick-bar img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.shellca340-quick-bar:hover,
.shellca340-quick-bar:focus-visible {
  border-color: var(--shellca340-accent);
  background: var(--shellca340-accent-soft);
  text-decoration: none;
}

/* ---------- section headers ---------- */

.shellca340-section {
  margin: 22px 0 0;
}

.shellca340-section-head {
  display: block;
  border-left: 4px solid var(--shellca340-accent);
  padding-left: 10px;
  margin-bottom: 6px;
}

.shellca340-section-head h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 2px 0 0;
  text-wrap: balance;
}

.shellca340-section-kicker {
  display: block;
  font-family: var(--shellca340-head-font);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--shellca340-faint);
  margin-bottom: 3px;
}

.shellca340-section-note {
  color: var(--shellca340-dim);
  font-size: 13px;
  margin: 0 0 10px;
}

/* ---------- game grid ---------- */

.shellca340-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shellca340-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 7px 4px 8px;
  border: 1px solid var(--shellca340-card-edge);
  border-radius: var(--shellca340-radius-md);
  background: linear-gradient(180deg, var(--shellca340-card), rgba(36, 50, 82, 0.72));
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.18s ease, background 0.2s ease;
}

.shellca340-tile:hover,
.shellca340-tile:focus-visible {
  border-color: var(--shellca340-lilac);
  background: linear-gradient(180deg, #2C3D66, rgba(46, 61, 100, 0.8));
  text-decoration: none;
}

.shellca340-tile:active {
  transform: scale(0.95);
}

.shellca340-tile-thumb {
  width: 100%;
  max-width: 74px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--shellca340-card-edge);
  background: #ffffff;
}

.shellca340-tile-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--shellca340-paper);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  word-break: break-word;
}

.shellca340-grid-more {
  margin-top: 10px;
  text-align: center;
}

.shellca340-textlink {
  display: inline-block;
  font-family: var(--shellca340-head-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--shellca340-thistle);
  border: 1px solid var(--shellca340-line-strong);
  border-radius: 999px;
  padding: 9px 18px;
  min-height: 40px;
  background: rgba(216, 191, 216, 0.07);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.shellca340-textlink:hover,
.shellca340-textlink:focus-visible {
  background: var(--shellca340-accent-soft);
  border-color: var(--shellca340-accent);
  color: #ffffff;
  text-decoration: none;
}

/* ---------- info modules: fact summary first ---------- */

.shellca340-panel {
  background: linear-gradient(180deg, rgba(36, 50, 82, 0.92), rgba(31, 43, 71, 0.92));
  border: 1px solid var(--shellca340-line);
  border-radius: var(--shellca340-radius-lg);
  padding: 14px 14px 12px;
  margin-top: 10px;
}

.shellca340-facts {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 7px;
}

.shellca340-facts li {
  position: relative;
  padding: 9px 12px 9px 34px;
  background: rgba(238, 238, 238, 0.06);
  border: 1px solid var(--shellca340-card-edge);
  border-radius: var(--shellca340-radius-sm);
  font-size: 13px;
  color: var(--shellca340-paper);
}

.shellca340-facts li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--shellca340-accent);
  box-shadow: 0 0 0 3px var(--shellca340-accent-soft);
}

.shellca340-panel p {
  color: var(--shellca340-dim);
  font-size: 13.5px;
}

.shellca340-panel p:last-child {
  margin-bottom: 0;
}

.shellca340-panel h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 12px 0 6px;
  color: var(--shellca340-thistle);
}

.shellca340-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.shellca340-inline-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--shellca340-thistle);
  border-bottom: 1px dashed var(--shellca340-line-strong);
  padding-bottom: 1px;
}

/* ---------- CTA band ---------- */

.shellca340-cta-band {
  margin-top: 24px;
  padding: 20px 16px;
  text-align: center;
  border-radius: var(--shellca340-radius-lg);
  border: 1px solid rgba(255, 87, 34, 0.4);
  background:
    radial-gradient(320px 140px at 50% 0%, rgba(148, 0, 211, 0.32), transparent 70%),
    linear-gradient(180deg, #2A3557, #1F2B47);
  box-shadow: var(--shellca340-shadow);
}

.shellca340-cta-band h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 8px;
}

.shellca340-cta-band p {
  color: var(--shellca340-dim);
  font-size: 13.5px;
  max-width: 34ch;
  margin: 0 auto 14px;
}

.shellca340-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.shellca340-cta-row .shellca340-btn {
  flex: 1 1 140px;
  max-width: 220px;
  padding: 12px 16px;
  font-size: 14px;
}

/* ---------- extended footer ---------- */

.shellca340-foot {
  margin-top: 26px;
  border-top: 1px solid var(--shellca340-line-strong);
  padding: 16px 12px 10px;
}

.shellca340-foot-group {
  margin-bottom: 16px;
}

.shellca340-foot-h {
  font-family: var(--shellca340-head-font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--shellca340-faint);
  margin: 0 0 8px;
}

.shellca340-foot-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.shellca340-foot-promo {
  font-family: var(--shellca340-head-font);
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  background: var(--shellca340-accent-soft);
  border: 1px solid rgba(255, 87, 34, 0.45);
  border-radius: var(--shellca340-radius-sm);
  padding: 10px 8px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.shellca340-foot-promo:hover,
.shellca340-foot-promo:focus-visible {
  background: rgba(255, 87, 34, 0.3);
}

.shellca340-foot-brand {
  font-size: 12.5px;
  color: var(--shellca340-dim);
  margin: 0;
}

.shellca340-foot-directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shellca340-foot-directory a {
  display: block;
  font-size: 12.5px;
  color: var(--shellca340-paper);
  padding: 6px 0;
  min-height: 32px;
}

.shellca340-foot-note {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--shellca340-faint);
  border-top: 1px dashed var(--shellca340-line);
  padding-top: 10px;
  margin: 4px 0 0;
}

.shellca340-copy {
  text-align: center;
  font-size: 11.5px;
  color: var(--shellca340-faint);
  padding: 12px 0 4px;
  margin: 0;
}

/* ---------- bottom nav rail ---------- */

.shellca340-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 130;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--shellca340-bottombar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(23, 32, 50, 0.98);
  border-top: 1px solid var(--shellca340-line-strong);
  backdrop-filter: blur(8px);
}

.shellca340-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 6px 2px 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--shellca340-faint);
  font-family: var(--shellca340-body-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.shellca340-tab svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shellca340-tab:hover,
.shellca340-tab:focus-visible {
  color: var(--shellca340-paper);
  text-decoration: none;
}

.shellca340-tab-label {
  line-height: 1.2;
}

.shellca340-tab::after {
  /* sliding indicator */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--shellca340-accent);
  transform: translateX(-50%);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.shellca340-tab-on {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(153, 102, 204, 0.24), rgba(153, 102, 204, 0.05));
}

.shellca340-tab-on::after {
  width: 26px;
}

.shellca340-tab-acc {
  color: var(--shellca340-accent);
}

.shellca340-tab-acc svg {
  stroke: var(--shellca340-accent);
}

/* ---------- reveal motion (restrained) ---------- */

.shellca340-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.shellca340-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ladder ---------- */

@media (min-width: 360px) {
  body { font-size: 15.5px; }
  .shellca340-hero h1 { font-size: 28px; }
  .shellca340-section-head h2 { font-size: 20px; }
  .shellca340-tile-name { font-size: 11.5px; }
}

@media (min-width: 410px) {
  /* widen to 5 tiles per row on 410-430px phones */
  .shellca340-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
  .shellca340-tile-thumb { max-width: 78px; }
  .shellca340-foot-promos { gap: 8px; }
}

@media (max-width: 430px) and (min-width: 320px) {
  .shellca340-page { box-shadow: none; }
}

@media (min-width: 431px) {
  body {
    background-color: #10182B;
  }
  .shellca340-page {
    box-shadow: 0 0 0 1px rgba(216, 191, 216, 0.1), 0 18px 48px rgba(0, 0, 0, 0.5);
    min-height: 100vh;
  }
}

/* ---------- accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shellca340-carousel-track { transition: none; }
  .shellca340-reveal { opacity: 1; transform: none; transition: none; }
  .shellca340-btn, .shellca340-tile, .shellca340-tab::after { transition: none; }
}

@media (prefers-contrast: more) {
  :root {
    --shellca340-dim: #EEEEEE;
    --shellca340-faint: #EEEEEE;
    --shellca340-line: rgba(238, 238, 238, 0.5);
    --shellca340-line-strong: rgba(238, 238, 238, 0.7);
  }
}

/* ---------- help page reading tools ---------- */

.shellca340-help-intro {
  margin: 0 0 14px;
  color: var(--shellca340-dim);
  font-size: 14px;
}

.shellca340-steps {
  list-style: none;
  counter-reset: shellca340-step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.shellca340-steps li {
  counter-increment: shellca340-step;
  position: relative;
  padding: 11px 12px 11px 42px;
  border: 1px solid var(--shellca340-card-edge);
  border-radius: var(--shellca340-radius-sm);
  background: rgba(238, 238, 238, 0.06);
  color: var(--shellca340-paper);
  font-size: 13.5px;
}

.shellca340-steps li::before {
  content: counter(shellca340-step, decimal-leading-zero);
  position: absolute;
  left: 11px;
  top: 11px;
  min-width: 22px;
  color: var(--shellca340-accent);
  font-family: var(--shellca340-head-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.shellca340-callout {
  border-left: 3px solid var(--shellca340-accent);
  padding: 10px 12px;
  margin: 10px 0 0;
  background: rgba(255, 87, 34, 0.1);
  border-radius: 0 var(--shellca340-radius-sm) var(--shellca340-radius-sm) 0;
  color: var(--shellca340-paper);
  font-size: 13.5px;
}

.shellca340-answer {
  padding: 11px 0 2px;
  border-top: 1px solid var(--shellca340-line);
}

.shellca340-answer:first-child {
  border-top: 0;
  padding-top: 0;
}

.shellca340-answer h3 {
  margin-top: 0;
  color: #ffffff;
}

.shellca340-answer p:last-child {
  margin-bottom: 0;
}

.shellca340-compare {
  display: grid;
  gap: 8px;
  margin: 0;
}

.shellca340-compare article {
  padding: 11px 12px;
  border: 1px solid var(--shellca340-line);
  border-radius: var(--shellca340-radius-sm);
  background: rgba(216, 191, 216, 0.07);
}

.shellca340-compare h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.shellca340-compare p {
  margin: 0;
}

.shellca340-help-footer {
  margin-top: 24px;
  padding: 16px 12px calc(var(--shellca340-bottombar-h) + 10px);
  border-top: 1px solid var(--shellca340-line-strong);
  text-align: center;
}

.shellca340-help-footer p {
  color: var(--shellca340-faint);
  font-size: 11.5px;
  margin: 0 auto 10px;
}

.shellca340-help-footer .shellca340-inline-links {
  justify-content: center;
  margin-top: 0;
}

@media (min-width: 360px) {
  .shellca340-compare { grid-template-columns: 1fr 1fr; }
}

@media print {
  .shellca340-topbar,
  .shellca340-menu,
  .shellca340-tabbar,
  .shellca340-carousel-dots {
    display: none;
  }
  body { background: #ffffff; color: #111111; }
}
