/* ==========================================================================
   bingopluz.click - mobile-first stylesheet
   File   : css/layers-mobile-4385d1.css
   Prefix : shell385d1-  (all classes and custom properties)
   Canvas : 320-430px phone frame, centered on wide screens
   Palette: #1A1A1A bg / #DCDCDC ink / #95A5A6 mist / #0097A7 teal / #2C3E50 slate
   Voice  : humanist serif headings, square high-contrast CTAs,
            grouped cover cards, restrained fade feedback
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --shell385d1-bg: #1a1a1a;
  --shell385d1-bg-raise: #232323;
  --shell385d1-slate: #2c3e50;
  --shell385d1-slate-deep: #24333f;
  --shell385d1-ink: #dcdcdc;
  --shell385d1-mist: #95a5a6;
  --shell385d1-teal: #0097a7;
  --shell385d1-teal-bright: #00b5c7;
  --shell385d1-teal-soft: rgba(0, 151, 167, 0.16);
  --shell385d1-line: rgba(220, 220, 220, 0.14);
  --shell385d1-line-soft: rgba(220, 220, 220, 0.08);
  --shell385d1-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shell385d1-font-head: Georgia, "Palatino Linotype", "Times New Roman", serif;
  --shell385d1-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --shell385d1-radius-card: 10px;
  --shell385d1-radius-chip: 7px;
  --shell385d1-radius-btn: 2px;
  --shell385d1-bar-h: 58px;
  --shell385d1-rail-h: 66px;
  --shell385d1-frame: 430px;
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--shell385d1-bg);
  color: var(--shell385d1-ink);
  font-family: var(--shell385d1-font-body);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--shell385d1-teal-bright);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

:focus-visible {
  outline: 2px solid var(--shell385d1-teal-bright);
  outline-offset: 2px;
}

/* Skip link - first tab stop */
.shell385d1-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--shell385d1-teal);
  color: #06181b;
  font-weight: 700;
  border-radius: var(--shell385d1-radius-btn);
  transition: top 0.18s ease;
}

.shell385d1-skip:focus {
  top: 8px;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   3. Phone canvas
   -------------------------------------------------------------------------- */
.shell385d1-page {
  position: relative;
  max-width: var(--shell385d1-frame);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 52% at 50% -60px, rgba(0, 151, 167, 0.14), transparent 60%),
    var(--shell385d1-bg);
}

.shell385d1-main {
  display: block;
  padding: calc(var(--shell385d1-bar-h) + 14px) 14px calc(var(--shell385d1-rail-h) + 44px);
}

/* --------------------------------------------------------------------------
   4. Top brand bar (compact, fixed)
   -------------------------------------------------------------------------- */
.shell385d1-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  max-width: var(--shell385d1-frame);
  margin: 0 auto;
  min-height: var(--shell385d1-bar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px calc(8px);
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  background: rgba(26, 26, 26, 0.96);
  border-bottom: 1px solid var(--shell385d1-line);
  backdrop-filter: blur(6px);
}

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

.shell385d1-brand-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
  border: 1px solid var(--shell385d1-line);
  object-fit: cover;
  background: var(--shell385d1-bg-raise);
}

.shell385d1-brand-name {
  font-family: var(--shell385d1-font-head);
  font-size: 1.16rem;
  letter-spacing: 0.04em;
  color: var(--shell385d1-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell385d1-brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.shell385d1-brand-link:hover,
.shell385d1-brand-link:focus-visible {
  text-decoration: none;
}

.shell385d1-brand-link:hover .shell385d1-brand-name {
  color: var(--shell385d1-teal-bright);
}

/* Top action area: register / login / menu */
.shell385d1-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

/* Square high-contrast CTA buttons */
.shell385d1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: var(--shell385d1-radius-btn);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease,
    transform 0.16s ease;
}

.shell385d1-btn:active {
  transform: translateY(1px);
}

.shell385d1-btn:hover,
.shell385d1-btn:focus-visible {
  text-decoration: none;
}

.shell385d1-btn-register {
  background: var(--shell385d1-teal);
  color: #06181b;
}

.shell385d1-btn-register:hover,
.shell385d1-btn-register:focus-visible {
  background: var(--shell385d1-teal-bright);
  color: #06181b;
}

.shell385d1-btn-login {
  background: transparent;
  color: var(--shell385d1-ink);
  border-color: var(--shell385d1-teal);
}

.shell385d1-btn-login:hover,
.shell385d1-btn-login:focus-visible {
  background: var(--shell385d1-teal-soft);
  color: var(--shell385d1-teal-bright);
}

/* Menu trigger: borderless symbol, 44px target */
.shell385d1-menu-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--shell385d1-ink);
  border-radius: var(--shell385d1-radius-chip);
}

.shell385d1-menu-btn:hover {
  color: var(--shell385d1-teal-bright);
  background: var(--shell385d1-teal-soft);
}

.shell385d1-menu-ico {
  width: 22px;
  height: 22px;
  display: block;
}

/* --------------------------------------------------------------------------
   5. Route panel (compact slide-down menu)
   -------------------------------------------------------------------------- */
.shell385d1-route {
  position: fixed;
  top: calc(var(--shell385d1-bar-h) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 85;
  max-width: var(--shell385d1-frame);
  margin: 0 auto;
  background: #202020;
  border-bottom: 1px solid var(--shell385d1-line);
  box-shadow: var(--shell385d1-shadow);
  padding: 10px 12px 14px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  max-height: calc(100vh - var(--shell385d1-bar-h));
  overflow-y: auto;
}

.shell385d1-route-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.shell385d1-route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.shell385d1-route-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 11px;
  background: var(--shell385d1-bg-raise);
  border: 1px solid var(--shell385d1-line-soft);
  border-radius: var(--shell385d1-radius-chip);
  color: var(--shell385d1-ink);
  font-size: 0.82rem;
  line-height: 1.25;
}

.shell385d1-route-link:hover,
.shell385d1-route-link:focus-visible {
  background: var(--shell385d1-teal-soft);
  border-color: var(--shell385d1-teal);
  color: var(--shell385d1-teal-bright);
  text-decoration: none;
}

.shell385d1-route-on {
  background: var(--shell385d1-teal-soft);
  border-color: var(--shell385d1-teal);
  color: var(--shell385d1-teal-bright);
  font-weight: 700;
}

.shell385d1-route-sub {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-family: var(--shell385d1-font-head);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shell385d1-mist);
}

.shell385d1-route-sub:first-child {
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.shell385d1-hero {
  margin: 2px 0 16px;
}

.shell385d1-hero-title {
  font-family: var(--shell385d1-font-head);
  font-size: 1.5rem;
  line-height: 1.24;
  margin: 0 0 10px;
  color: #f2f2f2;
}

.shell385d1-hero-title em {
  font-style: normal;
  color: var(--shell385d1-teal-bright);
}

/* Conclusion-first lead paragraph */
.shell385d1-lead {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--shell385d1-teal);
  background: var(--shell385d1-teal-soft);
  border-radius: 0 var(--shell385d1-radius-chip) var(--shell385d1-radius-chip) 0;
  color: var(--shell385d1-ink);
  font-size: 0.9rem;
}

.shell385d1-lead strong {
  color: #fff;
}

/* --------------------------------------------------------------------------
   7. Promo carousel (2:1 banners, restrained crossfade)
   -------------------------------------------------------------------------- */
.shell385d1-carousel {
  position: relative;
  margin: 0 0 14px;
  border-radius: var(--shell385d1-radius-card);
  overflow: hidden;
  border: 1px solid var(--shell385d1-line);
  background: var(--shell385d1-bg-raise);
  box-shadow: var(--shell385d1-shadow);
}

.shell385d1-slide {
  position: relative;
  display: block;
  aspect-ratio: 2 / 1;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.shell385d1-slide-on {
  opacity: 1;
}

.shell385d1-carousel .shell385d1-slide + .shell385d1-slide {
  position: absolute;
  inset: 0;
}

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

.shell385d1-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 6px 0;
}

.shell385d1-dot {
  width: 26px;
  height: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shell385d1-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(220, 220, 220, 0.5);
  transition: background 0.2s ease, transform 0.2s ease;
}

.shell385d1-dot-on::before {
  background: var(--shell385d1-teal-bright);
  transform: scale(1.35);
}

/* --------------------------------------------------------------------------
   8. Quick strip: borderless symbol actions
   -------------------------------------------------------------------------- */
.shell385d1-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 20px;
}

.shell385d1-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 64px;
  padding: 9px 6px;
  background: var(--shell385d1-bg-raise);
  border: 1px solid var(--shell385d1-line-soft);
  border-radius: var(--shell385d1-radius-chip);
  color: var(--shell385d1-ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.shell385d1-quick-btn:hover,
.shell385d1-quick-btn:focus-visible {
  border-color: var(--shell385d1-teal);
  color: var(--shell385d1-teal-bright);
  background: var(--shell385d1-teal-soft);
  text-decoration: none;
}

.shell385d1-quick-ico {
  width: 21px;
  height: 21px;
  color: var(--shell385d1-teal-bright);
}

/* --------------------------------------------------------------------------
   9. Prose sections
   -------------------------------------------------------------------------- */
.shell385d1-block {
  margin: 0 0 22px;
}

.shell385d1-h2 {
  font-family: var(--shell385d1-font-head);
  font-size: 1.22rem;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #f2f2f2;
}

.shell385d1-block p {
  margin: 0 0 10px;
  color: var(--shell385d1-ink);
  font-size: 0.9rem;
}

.shell385d1-block p:last-child {
  margin-bottom: 0;
}

.shell385d1-muted {
  color: var(--shell385d1-mist);
}

/* --------------------------------------------------------------------------
   10. Game groups: grouped cover cards
   -------------------------------------------------------------------------- */
.shell385d1-group {
  margin: 0 0 18px;
  border: 1px solid var(--shell385d1-line-soft);
  border-radius: var(--shell385d1-radius-card);
  background: var(--shell385d1-bg-raise);
  overflow: hidden;
}

.shell385d1-group-cover {
  position: relative;
  padding: 13px 14px 11px;
  background: linear-gradient(135deg, var(--shell385d1-slate-deep), var(--shell385d1-slate) 78%);
  border-bottom: 1px solid var(--shell385d1-line);
}

.shell385d1-group-cover::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -22px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--shell385d1-teal-soft);
  pointer-events: none;
}

.shell385d1-group-title {
  font-family: var(--shell385d1-font-head);
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 0 0 5px;
  color: #f2f2f2;
}

.shell385d1-group-line {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--shell385d1-mist);
  max-width: 34ch;
}

.shell385d1-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-block;
  padding: 3px 8px;
  background: var(--shell385d1-teal);
  color: #06181b;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--shell385d1-radius-chip);
}

/* Tile grid: 4 cols at 320px, 5 cols from 390px */
.shell385d1-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px 7px;
  padding: 12px 10px 13px;
}

.shell385d1-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--shell385d1-ink);
  text-align: center;
}

.shell385d1-tile:hover,
.shell385d1-tile:focus-visible {
  text-decoration: none;
}

.shell385d1-tile-art {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--shell385d1-radius-chip);
  overflow: hidden;
  border: 1px solid var(--shell385d1-line-soft);
  background: #1a1a1a;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.shell385d1-tile:hover .shell385d1-tile-art,
.shell385d1-tile:focus-visible .shell385d1-tile-art {
  border-color: var(--shell385d1-teal);
  transform: translateY(-2px);
}

.shell385d1-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shell385d1-tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.64rem;
  line-height: 1.3;
  color: var(--shell385d1-mist);
  min-height: 2.6em;
  word-break: break-word;
}

.shell385d1-tile:hover .shell385d1-tile-name,
.shell385d1-tile:focus-visible .shell385d1-tile-name {
  color: var(--shell385d1-ink);
}

/* --------------------------------------------------------------------------
   11. RTP stat pair
   -------------------------------------------------------------------------- */
.shell385d1-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.shell385d1-stat {
  padding: 11px 11px 10px;
  background: var(--shell385d1-bg-raise);
  border: 1px solid var(--shell385d1-line-soft);
  border-left: 3px solid var(--shell385d1-teal);
  border-radius: var(--shell385d1-radius-chip);
}

.shell385d1-stat-num {
  display: block;
  font-family: var(--shell385d1-font-head);
  font-size: 1.06rem;
  color: var(--shell385d1-teal-bright);
  margin-bottom: 3px;
}

.shell385d1-stat-txt {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--shell385d1-mist);
}

/* --------------------------------------------------------------------------
   12. Pros and limitations
   -------------------------------------------------------------------------- */
.shell385d1-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.shell385d1-col {
  padding: 12px 13px;
  background: var(--shell385d1-bg-raise);
  border: 1px solid var(--shell385d1-line-soft);
  border-radius: var(--shell385d1-radius-chip);
}

.shell385d1-col-h {
  font-family: var(--shell385d1-font-head);
  font-size: 0.95rem;
  margin: 0 0 8px;
  color: var(--shell385d1-teal-bright);
}

.shell385d1-col-hold .shell385d1-col-h {
  color: var(--shell385d1-teal-bright);
}

.shell385d1-col-warn .shell385d1-col-h {
  color: var(--shell385d1-ink);
}

.shell385d1-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shell385d1-col li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--shell385d1-ink);
}

.shell385d1-col li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--shell385d1-teal);
}

.shell385d1-col-warn li::before {
  background: var(--shell385d1-mist);
}

/* --------------------------------------------------------------------------
   13. CTA block
   -------------------------------------------------------------------------- */
.shell385d1-cta {
  padding: 15px 14px;
  background: linear-gradient(150deg, var(--shell385d1-slate-deep), #1d2a35 70%);
  border: 1px solid var(--shell385d1-line);
  border-radius: var(--shell385d1-radius-card);
  text-align: center;
}

.shell385d1-cta .shell385d1-h2 {
  margin-bottom: 10px;
}

.shell385d1-cta p {
  text-align: left;
}

.shell385d1-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 13px 0 0;
}

.shell385d1-cta-row .shell385d1-btn {
  min-height: 46px;
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   14. Takeaways
   -------------------------------------------------------------------------- */
.shell385d1-keys {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: shell385d1-key;
}

.shell385d1-keys li {
  counter-increment: shell385d1-key;
  position: relative;
  padding: 8px 10px 8px 42px;
  margin: 0 0 7px;
  font-size: 0.83rem;
  line-height: 1.5;
  background: var(--shell385d1-bg-raise);
  border: 1px solid var(--shell385d1-line-soft);
  border-radius: var(--shell385d1-radius-chip);
}

.shell385d1-keys li::before {
  content: counter(shell385d1-key, decimal-leading-zero);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--shell385d1-font-head);
  font-size: 0.92rem;
  color: var(--shell385d1-teal-bright);
}

.shell385d1-keys li:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   15. Extended site footer (brand > promotions > directory > note)
   -------------------------------------------------------------------------- */
.shell385d1-xfoot {
  margin: 26px 0 0;
  padding: 15px 13px 14px;
  border: 1px solid var(--shell385d1-line-soft);
  border-radius: var(--shell385d1-radius-card);
  background: var(--shell385d1-bg-raise);
}

.shell385d1-xfoot-h {
  font-family: var(--shell385d1-font-head);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shell385d1-mist);
  margin: 0 0 9px;
}

.shell385d1-xfoot-brand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--shell385d1-line-soft);
}

.shell385d1-xfoot-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 8px;
  border: 1px solid var(--shell385d1-line);
  object-fit: cover;
}

.shell385d1-xfoot-brand p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--shell385d1-mist);
}

.shell385d1-xfoot-sec {
  padding-top: 13px;
}

.shell385d1-xfoot-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shell385d1-xfoot-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 9px;
  background: var(--shell385d1-teal-soft);
  border: 1px solid var(--shell385d1-teal);
  border-radius: var(--shell385d1-radius-btn);
  color: var(--shell385d1-teal-bright);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background 0.16s ease, color 0.16s ease;
}

.shell385d1-xfoot-promo:hover,
.shell385d1-xfoot-promo:focus-visible {
  background: var(--shell385d1-teal);
  color: #06181b;
  text-decoration: none;
}

.shell385d1-xfoot-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

.shell385d1-xfoot-dir a {
  display: block;
  padding: 6px 2px;
  font-size: 0.77rem;
  line-height: 1.35;
  color: var(--shell385d1-ink);
  border-bottom: 1px dotted var(--shell385d1-line-soft);
}

.shell385d1-xfoot-dir a:hover,
.shell385d1-xfoot-dir a:focus-visible {
  color: var(--shell385d1-teal-bright);
  border-bottom-color: var(--shell385d1-teal);
}

.shell385d1-xfoot-note {
  margin: 13px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--shell385d1-line-soft);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--shell385d1-mist);
}

/* --------------------------------------------------------------------------
   16. Common footer (copyright only)
   -------------------------------------------------------------------------- */
.shell385d1-foot {
  padding: 14px 14px calc(var(--shell385d1-rail-h) + 30px);
  text-align: center;
  font-size: 0.72rem;
  color: var(--shell385d1-mist);
}

/* --------------------------------------------------------------------------
   17. Bottom rail: full-width nav track, 5 roles
   -------------------------------------------------------------------------- */
.shell385d1-rail {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  max-width: var(--shell385d1-frame);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: var(--shell385d1-rail-h);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(22, 22, 22, 0.97);
  border-top: 1px solid var(--shell385d1-line);
  backdrop-filter: blur(6px);
}

.shell385d1-rail-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 4px 2px;
  color: var(--shell385d1-mist);
  border-radius: var(--shell385d1-radius-chip);
  background: transparent;
  transition: color 0.16s ease;
}

.shell385d1-rail-item::before {
  content: "";
  position: absolute;
  inset: 3px 2px;
  border-radius: var(--shell385d1-radius-chip);
  background: transparent;
  transition: background 0.18s ease;
}

.shell385d1-rail-item > * {
  position: relative;
  z-index: 1;
}

.shell385d1-rail-item:hover,
.shell385d1-rail-item:focus-visible {
  text-decoration: none;
  color: var(--shell385d1-ink);
}

/* Active role sits on a background support block */
.shell385d1-rail-on {
  color: var(--shell385d1-teal-bright);
}

.shell385d1-rail-on::before {
  background: var(--shell385d1-teal-soft);
}

.shell385d1-rail-ico {
  width: 22px;
  height: 22px;
}

/* Label reveal micro-interaction */
.shell385d1-rail-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.82;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.shell385d1-rail-item:hover .shell385d1-rail-label,
.shell385d1-rail-item:focus-visible .shell385d1-rail-label,
.shell385d1-rail-on .shell385d1-rail-label {
  opacity: 1;
  transform: translateY(-1px);
}

.shell385d1-rail-promo {
  color: var(--shell385d1-ink);
}

.shell385d1-rail-promo .shell385d1-rail-ico {
  color: var(--shell385d1-teal-bright);
}

/* --------------------------------------------------------------------------
   18. Restrained reveal feedback (JS-gated, no-JS safe)
   -------------------------------------------------------------------------- */
.shell385d1-js .shell385d1-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.shell385d1-js .shell385d1-reveal.shell385d1-on {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .shell385d1-js .shell385d1-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .shell385d1-slide {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   19. Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 360px) {
  .shell385d1-hero-title {
    font-size: 1.62rem;
  }

  .shell385d1-quick-btn {
    font-size: 0.7rem;
  }
}

@media (min-width: 390px) {
  .shell385d1-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .shell385d1-tile-name {
    font-size: 0.66rem;
  }

  .shell385d1-duo {
    grid-template-columns: 1fr 1fr;
  }

  .shell385d1-block p {
    font-size: 0.93rem;
  }
}

/* Wide screens: keep the centered phone canvas readable */
@media (min-width: 480px) {
  body {
    background: #101010;
  }

  .shell385d1-page {
    border-left: 1px solid var(--shell385d1-line-soft);
    border-right: 1px solid var(--shell385d1-line-soft);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  }
}

/* Very narrow devices: tighten type so nothing overflows at 320px */
@media (max-width: 340px) {
  .shell385d1-hero-title {
    font-size: 1.38rem;
  }

  .shell385d1-brand-name {
    font-size: 1.04rem;
  }

  .shell385d1-btn {
    padding: 8px 10px;
    font-size: 0.74rem;
  }

  .shell385d1-grid {
    gap: 8px 6px;
    padding: 10px 8px 11px;
  }
}
