/* ==========================================================================
   phsky apk - site stylesheet
   File    : css/phsky-apk-viewport-0c3996.css
   Prefix  : shell0c399-  (all classes and CSS variables use this prefix)
   Canvas  : mobile-first, stable between 320px and 430px, centered phone
             canvas on wide screens (literal 430 rule below)
   Palette : #FFDFBA | #F0E68C | #FFEBCD | #141414 | #FAFAD2
             dark base #141414, light warm text tones on top
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --shell0c399-ink: #141414;            /* dark base background */
  --shell0c399-ink-2: #1e1c18;          /* raised panel tone */
  --shell0c399-ink-3: #262320;          /* hover / line tone */
  --shell0c399-peach: #FFDFBA;          /* primary warm light */
  --shell0c399-gold: #F0E68C;           /* brand gold accent */
  --shell0c399-cream: #FFEBCD;          /* soft body text */
  --shell0c399-pale: #FAFAD2;           /* highlight text */
  --shell0c399-line: rgba(240, 230, 140, 0.22);
  --shell0c399-line-soft: rgba(255, 235, 205, 0.12);
  --shell0c399-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  --shell0c399-radius-s: 5px;           /* small radius, high density */
  --shell0c399-radius-m: 9px;
  --shell0c399-radius-l: 16px;
  --shell0c399-font-head: "Arial Black", "Segoe UI", Verdana, Geneva, sans-serif;
  --shell0c399-font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --shell0c399-gap: 10px;
  --shell0c399-canvas-max: 430px;       /* phone canvas width cap (literal 430) */
  --shell0c399-dock-h: 66px;
  --shell0c399-top-h: 118px;
  --shell0c399-tap: 44px;               /* minimum touch target */
}

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

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

body {
  margin: 0;
  padding: 0;
  background: #0b0a09;
  color: var(--shell0c399-cream);
  font-family: var(--shell0c399-font-body);
  font-size: 14px;
  line-height: 1.62;
  overflow-x: hidden;
}

/* Centered phone canvas: on wide screens the page stays a 430px column */
.shell0c399-canvas {
  position: relative;
  width: 100%;
  max-width: var(--shell0c399-canvas-max); /* 430 */
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 42% at 50% 0%, rgba(240, 230, 140, 0.10), transparent 60%),
    var(--shell0c399-ink);
  box-shadow: var(--shell0c399-shadow);
  overflow-x: hidden;
}

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

a {
  color: var(--shell0c399-gold);
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--shell0c399-gold);
  outline-offset: 2px;
  border-radius: 3px;
}

.shell0c399-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--shell0c399-gold);
  color: var(--shell0c399-ink);
  padding: 8px 14px;
  font-weight: 700;
  z-index: 200;
  border-radius: 0 0 var(--shell0c399-radius-s) 0;
}

.shell0c399-skip:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   3. Fixed top header - brand row + action row (two-layer layout)
   -------------------------------------------------------------------------- */
.shell0c399-top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(20, 20, 20, 0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--shell0c399-line);
}

/* Layer 1: brand only - real logo image + site name, nothing else */
.shell0c399-brandrow {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 8px 12px 4px;
}

.shell0c399-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: var(--shell0c399-radius-s);
  border: 1px solid var(--shell0c399-line);
  background: var(--shell0c399-ink-2);
  object-fit: cover;
}

.shell0c399-sitename {
  font-family: var(--shell0c399-font-head);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.4px;
  line-height: 1.1;
  color: var(--shell0c399-pale);
  text-transform: lowercase;
}

.shell0c399-sitename b {
  color: var(--shell0c399-gold);
}

/* Layer 2: action row - register / login / menu */
.shell0c399-actionrow {
  display: grid;
  grid-template-columns: 1fr 1fr 48px;
  gap: 8px;
  align-items: center;
  padding: 4px 12px 9px;
}

/* Solid primary CTA */
.shell0c399-btn-solid {
  min-height: var(--shell0c399-tap);
  border: 0;
  border-radius: var(--shell0c399-radius-s);
  background: linear-gradient(135deg, var(--shell0c399-gold), var(--shell0c399-peach));
  color: #2b2313;
  font-family: var(--shell0c399-font-head);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(240, 230, 140, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Outlined secondary CTA */
.shell0c399-btn-line {
  min-height: var(--shell0c399-tap);
  border: 1.5px solid var(--shell0c399-gold);
  border-radius: var(--shell0c399-radius-s);
  background: transparent;
  color: var(--shell0c399-gold);
  font-family: var(--shell0c399-font-head);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.shell0c399-btn-solid:hover,
.shell0c399-btn-line:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.shell0c399-btn-solid:active,
.shell0c399-btn-line:active {
  transform: translateY(1px) scale(0.99);
}

/* Menu toggle burger */
.shell0c399-menubtn {
  width: 48px;
  height: 44px;
  border: 1.5px solid var(--shell0c399-line);
  border-radius: var(--shell0c399-radius-s);
  background: var(--shell0c399-ink-2);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.shell0c399-menubtn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--shell0c399-peach);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.shell0c399-menubtn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.shell0c399-menubtn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.shell0c399-menubtn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. Expandable navigation panel (slide-in)
   -------------------------------------------------------------------------- */
.shell0c399-navpanel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.32s ease, opacity 0.25s ease, transform 0.25s ease;
  background: rgba(30, 28, 24, 0.98);
  border-top: 1px solid var(--shell0c399-line-soft);
}

.shell0c399-navpanel.is-open {
  max-height: 560px;
  opacity: 1;
  transform: translateY(0);
}

.shell0c399-navgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 12px 14px;
}

.shell0c399-navlink {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--shell0c399-line-soft);
  border-radius: var(--shell0c399-radius-s);
  background: rgba(20, 20, 20, 0.6);
  color: var(--shell0c399-cream);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
}

.shell0c399-navlink:hover,
.shell0c399-navlink:focus-visible {
  border-color: var(--shell0c399-line);
  background: rgba(240, 230, 140, 0.08);
  text-decoration: none;
}

.shell0c399-navlink.is-current {
  border-color: var(--shell0c399-gold);
  color: var(--shell0c399-gold);
  background: rgba(240, 230, 140, 0.10);
}

.shell0c399-navdot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--shell0c399-gold);
}

/* --------------------------------------------------------------------------
   5. Hero + H1
   -------------------------------------------------------------------------- */
.shell0c399-main {
  padding: 14px 12px calc(var(--shell0c399-dock-h) + 30px);
}

.shell0c399-heroline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px;
}

.shell0c399-herotag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--shell0c399-ink);
  background: linear-gradient(135deg, var(--shell0c399-gold), var(--shell0c399-peach));
  border-radius: 3px;
  padding: 3px 7px;
}

.shell0c399-herosub {
  font-size: 11px;
  color: var(--shell0c399-peach);
  letter-spacing: 0.4px;
}

h1.shell0c399-h1 {
  font-family: var(--shell0c399-font-head);
  font-size: 23px;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--shell0c399-pale);
  margin: 0 0 8px;
  text-wrap: balance;
}

.shell0c399-lead {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--shell0c399-cream);
}

.shell0c399-lead b,
.shell0c399-body b {
  color: var(--shell0c399-gold);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   6. Promo carousel
   -------------------------------------------------------------------------- */
.shell0c399-carousel {
  position: relative;
  border-radius: var(--shell0c399-radius-m);
  overflow: hidden;
  border: 1px solid var(--shell0c399-line-soft);
  background: var(--shell0c399-ink-2);
  margin: 0 0 16px;
  box-shadow: var(--shell0c399-shadow);
}

.shell0c399-slidetrack {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.33, 0.9, 0.3, 1);
}

.shell0c399-slide {
  flex: 0 0 100%;
  width: 100%;
}

.shell0c399-slide a {
  display: block;
  cursor: pointer;
}

.shell0c399-slide img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.shell0c399-cdots {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.shell0c399-cdot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  border: 1px solid var(--shell0c399-gold);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.shell0c399-cdot.is-on {
  background: var(--shell0c399-gold);
  box-shadow: 0 0 8px rgba(240, 230, 140, 0.8);
}

/* --------------------------------------------------------------------------
   7. Section rhythm - intro-led blocks (lead sentence + divided sections)
   -------------------------------------------------------------------------- */
.shell0c399-sect {
  margin: 0 0 22px;
  scroll-margin-top: calc(var(--shell0c399-top-h) + 8px);
}

.shell0c399-secthead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 2px solid var(--shell0c399-line);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

h2.shell0c399-h2 {
  font-family: var(--shell0c399-font-head);
  font-size: 16.5px;
  line-height: 1.3;
  font-weight: 900;
  color: var(--shell0c399-gold);
  margin: 0;
  text-wrap: balance;
}

.shell0c399-sectnote {
  font-size: 10.5px;
  color: var(--shell0c399-peach);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

h3.shell0c399-h3 {
  font-family: var(--shell0c399-font-head);
  font-size: 13.5px;
  font-weight: 900;
  color: var(--shell0c399-pale);
  margin: 14px 0 6px;
}

.shell0c399-body {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--shell0c399-cream);
}

.shell0c399-body + .shell0c399-body {
  margin-top: -4px;
}

/* --------------------------------------------------------------------------
   8. Game grid - horizontal icon + name bars
   -------------------------------------------------------------------------- */
.shell0c399-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 4px 0 6px;
}

.shell0c399-gbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--shell0c399-line-soft);
  border-radius: var(--shell0c399-radius-s);
  background: linear-gradient(180deg, var(--shell0c399-ink-2), rgba(30, 28, 24, 0.65));
  color: var(--shell0c399-cream);
  min-height: 52px;
  transition: transform 0.16s ease, border-color 0.16s ease;
  -webkit-tap-highlight-color: rgba(240, 230, 140, 0.15);
}

.shell0c399-gbar:hover,
.shell0c399-gbar:focus-visible {
  transform: translateY(-2px);            /* light card lift */
  border-color: var(--shell0c399-line);
  text-decoration: none;
}

.shell0c399-gbar:active {
  transform: translateY(0);
}

.shell0c399-gbar img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 4px;
  object-fit: cover;
  background: #000;
}

.shell0c399-gname {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--shell0c399-pale);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shell0c399-gcount {
  font-size: 11px;
  color: var(--shell0c399-peach);
}

/* --------------------------------------------------------------------------
   9. Features / comparison rows (scannable, comparable)
   -------------------------------------------------------------------------- */
.shell0c399-featrows {
  border: 1px solid var(--shell0c399-line-soft);
  border-radius: var(--shell0c399-radius-m);
  overflow: hidden;
  margin: 8px 0 12px;
}

.shell0c399-featrow {
  display: grid;
  grid-template-columns: 92px 1fr;
  border-bottom: 1px solid var(--shell0c399-line-soft);
}

.shell0c399-featrow:last-child {
  border-bottom: 0;
}

.shell0c399-featrow dt {
  padding: 9px 10px;
  font-family: var(--shell0c399-font-head);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: var(--shell0c399-gold);
  background: rgba(240, 230, 140, 0.06);
  text-transform: uppercase;
}

.shell0c399-featrow dd {
  margin: 0;
  padding: 9px 10px;
  font-size: 12.5px;
  color: var(--shell0c399-cream);
}

/* compact chips row */
.shell0c399-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.shell0c399-chip {
  font-size: 11px;
  font-weight: 800;
  color: var(--shell0c399-ink);
  background: var(--shell0c399-peach);
  border-radius: 3px;
  padding: 3px 8px;
  letter-spacing: 0.3px;
}

.shell0c399-chip--gold {
  background: var(--shell0c399-gold);
}

.shell0c399-chip--line {
  background: transparent;
  color: var(--shell0c399-gold);
  border: 1px solid var(--shell0c399-line);
}

/* milestone / achievement ladder */
.shell0c399-milestones {
  list-style: none;
  margin: 6px 0 12px;
  padding: 0;
  display: grid;
  gap: 7px;
}

.shell0c399-milestones li {
  position: relative;
  padding: 8px 10px 8px 30px;
  border: 1px solid var(--shell0c399-line-soft);
  border-left: 3px solid var(--shell0c399-gold);
  border-radius: var(--shell0c399-radius-s);
  background: rgba(30, 28, 24, 0.55);
  font-size: 12.5px;
}

.shell0c399-milestones li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--shell0c399-gold);
  box-shadow: 0 0 6px rgba(240, 230, 140, 0.6);
}

/* numbered steps */
.shell0c399-steps {
  list-style: none;
  margin: 6px 0 12px;
  padding: 0;
  display: grid;
  gap: 7px;
  counter-reset: shell0c399-step;
}

.shell0c399-steps li {
  counter-increment: shell0c399-step;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 8px 9px;
  border: 1px solid var(--shell0c399-line-soft);
  border-radius: var(--shell0c399-radius-s);
  background: rgba(30, 28, 24, 0.45);
  font-size: 12.5px;
}

.shell0c399-steps li::before {
  content: counter(shell0c399-step);
  flex: 0 0 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--shell0c399-gold), var(--shell0c399-peach));
  color: var(--shell0c399-ink);
  font-family: var(--shell0c399-font-head);
  font-size: 11px;
  font-weight: 900;
}

/* inline promo text link inside copy */
.shell0c399-cta-inline {
  color: var(--shell0c399-gold);
  font-weight: 800;
  border-bottom: 1px dashed var(--shell0c399-line);
  cursor: pointer;
}

.shell0c399-cta-inline:hover {
  color: var(--shell0c399-pale);
  text-decoration: none;
}

/* wide dual CTA block */
.shell0c399-ctaduo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 4px;
}

/* --------------------------------------------------------------------------
   10. Extended homepage footer (compact groups)
   -------------------------------------------------------------------------- */
.shell0c399-extfoot {
  margin: 26px 0 0;
  border-top: 2px solid var(--shell0c399-line);
  padding-top: 14px;
}

.shell0c399-exttitle {
  font-family: var(--shell0c399-font-head);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--shell0c399-peach);
  margin: 14px 0 8px;
}

.shell0c399-exttitle:first-child {
  margin-top: 0;
}

.shell0c399-brandblurb {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--shell0c399-line-soft);
  border-radius: var(--shell0c399-radius-m);
  background: rgba(30, 28, 24, 0.5);
  padding: 10px;
  font-size: 12.5px;
}

.shell0c399-brandblurb img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: var(--shell0c399-radius-s);
  object-fit: cover;
  border: 1px solid var(--shell0c399-line);
}

/* promotion action grid - 7 short-label entries */
.shell0c399-promogrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.shell0c399-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: var(--shell0c399-tap);
  padding: 8px 10px;
  border-radius: var(--shell0c399-radius-s);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.shell0c399-promo:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.shell0c399-promo--solid {
  background: linear-gradient(135deg, var(--shell0c399-gold), var(--shell0c399-peach));
  color: #2b2313;
  border: 0;
}

.shell0c399-promo--line {
  border: 1.5px solid var(--shell0c399-gold);
  color: var(--shell0c399-gold);
  background: rgba(240, 230, 140, 0.05);
}

.shell0c399-promo span.shell0c399-promoarr {
  font-weight: 900;
}

/* page directory */
.shell0c399-dirgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.shell0c399-dirlink {
  display: block;
  padding: 8px 9px;
  border: 1px solid var(--shell0c399-line-soft);
  border-radius: var(--shell0c399-radius-s);
  background: rgba(20, 20, 20, 0.5);
  color: var(--shell0c399-cream);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.shell0c399-dirlink:hover,
.shell0c399-dirlink:focus-visible {
  border-color: var(--shell0c399-line);
  color: var(--shell0c399-gold);
  text-decoration: none;
}

.shell0c399-dirlink small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--shell0c399-peach);
  margin-top: 1px;
}

.shell0c399-disclaimer {
  margin-top: 14px;
  padding: 9px 10px;
  border: 1px dashed var(--shell0c399-line);
  border-radius: var(--shell0c399-radius-s);
  font-size: 11px;
  line-height: 1.55;
  color: var(--shell0c399-peach);
}

/* --------------------------------------------------------------------------
   11. Common footer (copyright only)
   -------------------------------------------------------------------------- */
.shell0c399-footer {
  text-align: center;
  padding: 14px 12px 8px;
  border-top: 1px solid var(--shell0c399-line-soft);
  font-size: 11.5px;
  color: var(--shell0c399-peach);
}

.shell0c399-footer b {
  color: var(--shell0c399-gold);
}

/* --------------------------------------------------------------------------
   12. Floating dock - mobile bottom nav, 5 roles
   -------------------------------------------------------------------------- */
.shell0c399-dock {
  position: fixed;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: calc(var(--shell0c399-canvas-max) - 20px); /* 430-based */
  z-index: 95;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 6px 4px;
  border-radius: var(--shell0c399-radius-l);
  background: rgba(24, 22, 19, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--shell0c399-line);
  box-shadow: var(--shell0c399-shadow);
}

/* Keep the dock visible inside the centered canvas on wide screens too */
@media (min-width: 431px) {
  .shell0c399-dock {
    left: 50%;
  }
}

.shell0c399-dockbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  border-radius: var(--shell0c399-radius-m);
  color: var(--shell0c399-cream);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.shell0c399-dockbtn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.18s ease;
}

.shell0c399-docklbl {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  opacity: 0.75;
  transition: opacity 0.18s ease;
}

.shell0c399-dockbtn:hover .shell0c399-docklbl,
.shell0c399-dockbtn:focus-visible .shell0c399-docklbl {
  opacity: 1;                                   /* label reveal micro-interaction */
}

.shell0c399-dockbtn:hover {
  background: rgba(240, 230, 140, 0.08);
  transform: translateY(-2px);
}

/* active role: slight lift + gold wash */
.shell0c399-dockbtn.is-active {
  background: linear-gradient(180deg, rgba(240, 230, 140, 0.16), rgba(240, 230, 140, 0.05));
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--shell0c399-line);
}

.shell0c399-dockbtn.is-active .shell0c399-docklbl {
  opacity: 1;
  color: var(--shell0c399-gold);
}

.shell0c399-dockbtn.is-active svg {
  transform: translateY(-1px) scale(1.06);
}

/* center promo role gets a stronger gold pill */
.shell0c399-dockbtn--promo {
  color: var(--shell0c399-gold);
}

.shell0c399-dockbtn--promo svg {
  filter: drop-shadow(0 2px 6px rgba(240, 230, 140, 0.45));
}

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

/* --------------------------------------------------------------------------
   13. Scroll reveal (light card lift-in, JS adds the class)
   -------------------------------------------------------------------------- */
.shell0c399-gbar,
.shell0c399-featrow,
.shell0c399-milestones li,
.shell0c399-dirlink {
  will-change: transform;
}

.shell0c399-reveal {
  opacity: 0;
  transform: translateY(8px);
}

.shell0c399-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .shell0c399-reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   14. Narrow-canvas tuning (320px floor)
   -------------------------------------------------------------------------- */
@media (max-width: 359px) {
  .shell0c399-gname { font-size: 10.5px; }
  .shell0c399-gbar img { width: 34px; height: 34px; flex-basis: 34px; }
  .shell0c399-gbar { min-height: 46px; }
  h1.shell0c399-h1 { font-size: 20.5px; }
  .shell0c399-sitename { font-size: 17px; }
  .shell0c399-docklbl { font-size: 8.5px; }
  .shell0c399-navgrid { grid-template-columns: 1fr; }
}

/* 360-430px stays on the 2-column bar grid for readable name wrapping;
   only the promo grid widens labels */
@media (min-width: 375px) {
  .shell0c399-gname { font-size: 12px; }
  .shell0c399-docklbl { font-size: 10px; }
}

@media (min-width: 400px) {
  h1.shell0c399-h1 { font-size: 24.5px; }
  .shell0c399-body, .shell0c399-lead { font-size: 14px; }
}

/* The catalogue is a four-up scan at phone width, with a denser five-up view on wider phones. */
.shell0c399-games {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.shell0c399-gbar {
  min-width: 0;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 5px 3px;
  text-align: center;
}

.shell0c399-gbar img {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.shell0c399-gname {
  width: 100%;
  font-size: 10px;
  overflow-wrap: anywhere;
}

@media (min-width: 375px) {
  .shell0c399-games { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .shell0c399-gbar { min-height: 82px; }
  .shell0c399-gbar img { width: 38px; height: 38px; flex-basis: 38px; }
  .shell0c399-gname { font-size: 10.5px; }
}

@media (max-width: 359px) {
  .shell0c399-gbar { min-height: 72px; }
  .shell0c399-gbar img { width: 28px; height: 28px; flex-basis: 28px; }
  .shell0c399-gname { font-size: 9px; }
}
