/* ==========================================================================
   bit888.click — shell stylesheet
   Mobile-first canvas: 320-430px. Stroke-driven surfaces, restrained radii,
   teal (#48D1CC) + yellow (#FFEB3B) accents on a #333-family dark base.
   Prefix contract: every class and custom property begins with shellf3921-
   ========================================================================== */

:root {
  --shellf3921-bg-deep: #161616;
  --shellf3921-bg-page: #262626;
  --shellf3921-surface: #333333;
  --shellf3921-surface-2: #3a3a3a;
  --shellf3921-surface-3: #2e2e2e;
  --shellf3921-line: #4a4a4a;
  --shellf3921-line-soft: #414141;
  --shellf3921-ink: #f2f2f2;
  --shellf3921-ink-2: #cbcbcb;
  --shellf3921-ink-3: #9d9d9d;
  --shellf3921-teal: #48d1cc;
  --shellf3921-teal-deep: #2fa5a0;
  --shellf3921-teal-soft: rgba(72, 209, 204, 0.14);
  --shellf3921-teal-line: rgba(72, 209, 204, 0.48);
  --shellf3921-teal-ink: #0c2c2b;
  --shellf3921-yellow: #ffeb3b;
  --shellf3921-yellow-deep: #e8d21c;
  --shellf3921-yellow-ink: #2b2503;
  --shellf3921-ember: #ff8a65;
  --shellf3921-radius-s: 8px;
  --shellf3921-radius-m: 12px;
  --shellf3921-radius-l: 16px;
  --shellf3921-topbar-h: 58px;
  --shellf3921-bottomnav-h: 62px;
  --shellf3921-gap: 12px;
  --shellf3921-pad: 14px;
  --shellf3921-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --shellf3921-press: translateY(1px) scale(0.985);
  --shellf3921-shadow-1: 0 2px 8px rgba(0, 0, 0, 0.38);
  --shellf3921-shadow-2: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shellf3921-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

* {
  box-sizing: border-box;
}

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

body.shellf3921-page {
  margin: 0;
  font-family: var(--shellf3921-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--shellf3921-ink-2);
  background: var(--shellf3921-bg-deep);
  overflow-x: hidden;
  min-height: 100vh;
}

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

.shellf3921-page a {
  color: var(--shellf3921-teal);
  text-decoration: none;
}

.shellf3921-page button {
  font-family: inherit;
}

.shellf3921-canvas {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--shellf3921-bg-page);
  min-height: 100vh;
  box-shadow: 0 0 0 1px var(--shellf3921-line-soft);
}

.shellf3921-main {
  display: block;
  padding: calc(var(--shellf3921-topbar-h) + 6px) 0
    calc(var(--shellf3921-bottomnav-h) + 46px + env(safe-area-inset-bottom, 0px));
}

.shellf3921-sec {
  padding: 0 var(--shellf3921-pad);
  margin: 0 0 20px;
}

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

.shellf3921-skip:focus {
  left: 10px;
  top: 10px;
}

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

/* ---------- headings: rounded tags over compact body ---------- */

.shellf3921-page h1,
.shellf3921-page h2,
.shellf3921-page h3 {
  color: var(--shellf3921-ink);
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.shellf3921-h1 {
  font-size: 25px;
  line-height: 1.22;
  margin: 0 0 10px;
}

.shellf3921-h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  line-height: 1.3;
  padding: 7px 14px;
  border: 1px solid var(--shellf3921-teal-line);
  background: var(--shellf3921-teal-soft);
  color: var(--shellf3921-teal);
  border-radius: 999px;
  margin: 0 0 10px;
  max-width: 100%;
}

.shellf3921-h2::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--shellf3921-yellow);
  flex: 0 0 auto;
}

.shellf3921-h3 {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--shellf3921-teal);
  background: transparent;
  border: 1px solid var(--shellf3921-line);
  border-radius: var(--shellf3921-radius-s);
  padding: 4px 10px;
  margin: 0 0 8px;
}

.shellf3921-lede {
  font-size: 13px;
  line-height: 1.6;
  color: var(--shellf3921-ink-2);
  margin: 0 0 12px;
}

.shellf3921-note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--shellf3921-ink-3);
  margin: 8px 0 0;
}

.shellf3921-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--shellf3921-yellow);
  margin: 0 0 6px;
}

/* ---------- buttons: compact dual-button groups ---------- */

.shellf3921-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  text-align: center;
  transition: background-color 0.18s var(--shellf3921-ease),
    color 0.18s var(--shellf3921-ease), border-color 0.18s var(--shellf3921-ease),
    transform 0.12s var(--shellf3921-ease), box-shadow 0.18s var(--shellf3921-ease);
}

.shellf3921-btn:active {
  transform: var(--shellf3921-press);
}

.shellf3921-btn-promo {
  background: var(--shellf3921-yellow);
  color: var(--shellf3921-yellow-ink);
  border-color: var(--shellf3921-yellow-deep);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.shellf3921-btn-promo:active {
  background: var(--shellf3921-yellow-deep);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.shellf3921-btn-ghost {
  background: rgba(72, 209, 204, 0.07);
  color: var(--shellf3921-teal);
  border-color: var(--shellf3921-teal-line);
}

.shellf3921-btn-ghost:active {
  background: var(--shellf3921-teal-soft);
}

.shellf3921-btn-teal {
  background: var(--shellf3921-teal);
  color: var(--shellf3921-teal-ink);
  border-color: var(--shellf3921-teal-deep);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.shellf3921-btn-teal:active {
  background: var(--shellf3921-teal-deep);
}

.shellf3921-btn-quiet {
  background: var(--shellf3921-surface-2);
  color: var(--shellf3921-ink-2);
  border-color: var(--shellf3921-line);
}

.shellf3921-btn-quiet:active {
  background: #444444;
}

.shellf3921-duo {
  display: flex;
  gap: 8px;
}

.shellf3921-duo > .shellf3921-btn {
  flex: 1 1 0;
  min-width: 0;
}

.shellf3921-btn-sm {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12.5px;
  border-radius: var(--shellf3921-radius-s);
}

/* ---------- top bar: minimal title-and-action band ---------- */

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

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

.shellf3921-brand img {
  width: 34px;
  height: 34px;
  border-radius: var(--shellf3921-radius-s);
  border: 1px solid var(--shellf3921-line);
  background: var(--shellf3921-surface);
  flex: 0 0 auto;
}

.shellf3921-brand span {
  font-size: 18px;
  font-weight: 800;
  color: var(--shellf3921-ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.shellf3921-topacts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.shellf3921-topacts .shellf3921-btn {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: var(--shellf3921-radius-s);
}

.shellf3921-menubtn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--shellf3921-surface-2);
  border: 1px solid var(--shellf3921-line);
  border-radius: var(--shellf3921-radius-s);
  color: var(--shellf3921-ink);
  cursor: pointer;
  transition: background-color 0.18s var(--shellf3921-ease),
    transform 0.12s var(--shellf3921-ease);
}

.shellf3921-menubtn:active {
  transform: var(--shellf3921-press);
  background: #464646;
}

.shellf3921-menubtn svg {
  width: 20px;
  height: 20px;
}

/* ---------- compact route panel (menu) ---------- */

.shellf3921-menupanel {
  position: fixed;
  top: calc(var(--shellf3921-topbar-h) - 1px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 16px);
  max-width: 414px;
  z-index: 190;
  background: var(--shellf3921-surface-3);
  border: 1px solid var(--shellf3921-line);
  border-radius: 0 0 var(--shellf3921-radius-m) var(--shellf3921-radius-m);
  border-top: none;
  padding: 10px;
  display: none;
  box-shadow: var(--shellf3921-shadow-2);
}

.shellf3921-menupanel.shellf3921-open {
  display: block;
  animation: shellf3921panelIn 0.16s var(--shellf3921-ease);
}

@keyframes shellf3921panelIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.shellf3921-menugrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.shellf3921-menulink {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--shellf3921-line-soft);
  border-radius: var(--shellf3921-radius-s);
  background: var(--shellf3921-surface);
  color: var(--shellf3921-ink-2);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.16s var(--shellf3921-ease),
    color 0.16s var(--shellf3921-ease), border-color 0.16s var(--shellf3921-ease);
}

.shellf3921-menulink:active {
  transform: var(--shellf3921-press);
  background: var(--shellf3921-teal-soft);
  color: var(--shellf3921-teal);
}

.shellf3921-menulink svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--shellf3921-teal);
}

.shellf3921-menulink.shellf3921-on {
  background: var(--shellf3921-teal-soft);
  border-color: var(--shellf3921-teal-line);
  color: var(--shellf3921-teal);
}

.shellf3921-menupromo {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: var(--shellf3921-radius-s);
  border: 1px solid var(--shellf3921-yellow-deep);
  background: var(--shellf3921-yellow);
  color: var(--shellf3921-yellow-ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.shellf3921-menupromo:active {
  transform: var(--shellf3921-press);
}

.shellf3921-menupromo em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.85;
}

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

.shellf3921-hero {
  padding: 14px var(--shellf3921-pad) 4px;
}

.shellf3921-hero .shellf3921-duo {
  margin: 2px 0 0;
}

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

.shellf3921-carousel {
  position: relative;
  margin: 14px var(--shellf3921-pad) 4px;
  border: 1px solid var(--shellf3921-line);
  border-radius: var(--shellf3921-radius-m);
  background: var(--shellf3921-surface);
  overflow: hidden;
  box-shadow: var(--shellf3921-shadow-1);
}

.shellf3921-slide {
  display: none;
  margin: 0;
}

.shellf3921-slide.shellf3921-on {
  display: block;
  animation: shellf3921slideIn 0.35s var(--shellf3921-ease);
}

@keyframes shellf3921slideIn {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 1;
  }
}

.shellf3921-slidebtn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.shellf3921-slidebtn:active img {
  transform: scale(0.99);
}

.shellf3921-slidebtn img {
  width: 100%;
  aspect-ratio: 2.35 / 1;
  object-fit: cover;
  transition: transform 0.2s var(--shellf3921-ease);
}

.shellf3921-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: inline-flex;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.shellf3921-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--shellf3921-teal);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.18s var(--shellf3921-ease),
    transform 0.12s var(--shellf3921-ease);
}

.shellf3921-dot.shellf3921-on {
  background: var(--shellf3921-teal);
}

.shellf3921-dot:active {
  transform: scale(0.9);
}

/* ---------- fact strip: fact line then expand ---------- */

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

.shellf3921-facts li {
  display: block;
  background: var(--shellf3921-surface);
  border: 1px solid var(--shellf3921-line-soft);
  border-left: 3px solid var(--shellf3921-teal);
  border-radius: var(--shellf3921-radius-s);
  padding: 8px 10px;
  font-size: 12.5px;
  line-height: 1.5;
}

.shellf3921-facts strong {
  display: block;
  color: var(--shellf3921-ink);
  font-size: 13px;
  margin: 0 0 2px;
}

.shellf3921-facts span {
  color: var(--shellf3921-ink-3);
}

/* ---------- offers: rows with dual buttons ---------- */

.shellf3921-offers {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.shellf3921-offer {
  border: 1px solid var(--shellf3921-line);
  border-radius: var(--shellf3921-radius-m);
  background: linear-gradient(180deg, var(--shellf3921-surface-2), var(--shellf3921-surface));
  padding: 12px;
  box-shadow: var(--shellf3921-shadow-1);
}

.shellf3921-offer h3 {
  border: none;
  padding: 0;
  margin: 0 0 4px;
  font-size: 14.5px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--shellf3921-yellow);
}

.shellf3921-offer p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--shellf3921-ink-3);
  line-height: 1.5;
}

.shellf3921-offer .shellf3921-duo {
  margin: 0;
}

/* ---------- game sections ---------- */

.shellf3921-games {
  margin-top: 4px;
}

.shellf3921-catstrip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.shellf3921-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--shellf3921-teal-line);
  background: var(--shellf3921-teal-soft);
  color: var(--shellf3921-teal);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.16s var(--shellf3921-ease),
    color 0.16s var(--shellf3921-ease), border-color 0.16s var(--shellf3921-ease),
    transform 0.12s var(--shellf3921-ease);
}

.shellf3921-chip:active {
  transform: var(--shellf3921-press);
}

.shellf3921-chip-plain {
  border-color: var(--shellf3921-line);
  background: var(--shellf3921-surface-2);
  color: var(--shellf3921-ink-2);
}

.shellf3921-chip-plain:active {
  background: #464646;
}

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

/* light floating-layer game card: icon + name only */

.shellf3921-gcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 5px 8px;
  background: linear-gradient(180deg, var(--shellf3921-surface-2), var(--shellf3921-surface));
  border: 1px solid var(--shellf3921-line-soft);
  border-radius: 10px;
  color: var(--shellf3921-ink-2);
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: border-color 0.18s var(--shellf3921-ease),
    transform 0.12s var(--shellf3921-ease), box-shadow 0.18s var(--shellf3921-ease);
}

.shellf3921-gcard:active {
  transform: var(--shellf3921-press);
  border-color: var(--shellf3921-teal-line);
  box-shadow: 0 3px 10px rgba(72, 209, 204, 0.15);
}

.shellf3921-gthumb {
  display: block;
  width: 100%;
  border-radius: var(--shellf3921-radius-s);
  overflow: hidden;
  border: 1px solid var(--shellf3921-line-soft);
  background: #242424;
}

.shellf3921-gthumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.shellf3921-gname {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--shellf3921-ink-2);
  min-height: 2.6em;
}

/* ---------- content modules ---------- */

.shellf3921-module {
  border: 1px solid var(--shellf3921-line);
  border-radius: var(--shellf3921-radius-m);
  background: var(--shellf3921-surface-3);
  padding: 13px 13px 14px;
  margin: 0 0 12px;
}

.shellf3921-module p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--shellf3921-ink-2);
}

.shellf3921-module p:last-child {
  margin-bottom: 0;
}

.shellf3921-module .shellf3921-h3 {
  margin-bottom: 10px;
}

.shellf3921-rows {
  display: grid;
  gap: 8px;
  margin: 0;
}

.shellf3921-row {
  border: 1px solid var(--shellf3921-line-soft);
  border-radius: var(--shellf3921-radius-s);
  background: var(--shellf3921-surface);
  padding: 9px 11px;
}

.shellf3921-row dt,
.shellf3921-row strong {
  display: block;
  font-size: 13px;
  color: var(--shellf3921-ink);
  font-weight: 700;
  margin: 0 0 3px;
}

.shellf3921-row dd,
.shellf3921-row p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--shellf3921-ink-3);
}

.shellf3921-steps {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  counter-reset: shellf3921step;
  display: grid;
  gap: 7px;
}

.shellf3921-steps li {
  counter-increment: shellf3921step;
  position: relative;
  padding: 9px 10px 9px 42px;
  border: 1px solid var(--shellf3921-line-soft);
  border-radius: var(--shellf3921-radius-s);
  background: var(--shellf3921-surface);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--shellf3921-ink-2);
}

.shellf3921-steps li::before {
  content: counter(shellf3921step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--shellf3921-teal-soft);
  border: 1px solid var(--shellf3921-teal-line);
  color: var(--shellf3921-teal);
  font-size: 11.5px;
  font-weight: 800;
}

.shellf3921-steps li strong {
  color: var(--shellf3921-ink);
}

.shellf3921-checks {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.shellf3921-checks li {
  position: relative;
  padding: 9px 10px 9px 34px;
  border: 1px solid var(--shellf3921-line-soft);
  border-radius: var(--shellf3921-radius-s);
  background: var(--shellf3921-surface);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--shellf3921-ink-2);
}

.shellf3921-checks li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 13px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--shellf3921-teal);
  border-bottom: 2px solid var(--shellf3921-teal);
  transform: rotate(-45deg);
}

.shellf3921-checks li strong {
  color: var(--shellf3921-ink);
}

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

.shellf3921-xfoot {
  border-top: 1px solid var(--shellf3921-line);
  background: var(--shellf3921-surface-3);
  padding: 18px var(--shellf3921-pad) 8px;
  margin-top: 8px;
}

.shellf3921-xfsec {
  margin: 0 0 18px;
}

.shellf3921-xfpromos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shellf3921-xfpromos .shellf3921-btn {
  width: 100%;
  min-height: 48px;
  flex-direction: column;
  gap: 2px;
  padding: 8px 6px;
  font-size: 12.5px;
  line-height: 1.25;
}

.shellf3921-xfpromos .shellf3921-btn em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.8;
}

.shellf3921-xfbrand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--shellf3921-line-soft);
  border-radius: var(--shellf3921-radius-m);
  background: var(--shellf3921-surface);
}

.shellf3921-xfbrand img {
  width: 40px;
  height: 40px;
  border-radius: var(--shellf3921-radius-s);
  border: 1px solid var(--shellf3921-line);
  flex: 0 0 auto;
}

.shellf3921-xfbrand strong {
  display: block;
  font-size: 16px;
  color: var(--shellf3921-ink);
  margin: 0 0 2px;
}

.shellf3921-xfbrand span {
  font-size: 12px;
  color: var(--shellf3921-ink-3);
  line-height: 1.45;
}

.shellf3921-xflist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.shellf3921-xflist a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--shellf3921-line-soft);
  border-radius: var(--shellf3921-radius-s);
  background: var(--shellf3921-surface);
  color: var(--shellf3921-ink-2);
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.16s var(--shellf3921-ease),
    border-color 0.16s var(--shellf3921-ease), transform 0.12s var(--shellf3921-ease);
}

.shellf3921-xflist a:active {
  transform: var(--shellf3921-press);
  color: var(--shellf3921-teal);
  border-color: var(--shellf3921-teal-line);
}

.shellf3921-xflist svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--shellf3921-teal);
}

.shellf3921-xfdisc {
  font-size: 11px;
  line-height: 1.55;
  color: var(--shellf3921-ink-3);
  border: 1px dashed var(--shellf3921-line);
  border-radius: var(--shellf3921-radius-s);
  padding: 10px 11px;
  background: rgba(0, 0, 0, 0.18);
}

/* ---------- copyright bar ---------- */

.shellf3921-copybar {
  border-top: 1px solid var(--shellf3921-line-soft);
  padding: 12px var(--shellf3921-pad) 14px;
  text-align: center;
  font-size: 11.5px;
  color: var(--shellf3921-ink-3);
  background: var(--shellf3921-bg-page);
}

.shellf3921-copybar a {
  color: var(--shellf3921-ink-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- bottom nav: center-raised, icon + label ---------- */

.shellf3921-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 180;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  height: calc(var(--shellf3921-bottomnav-h) + env(safe-area-inset-bottom, 0px));
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
  background: rgba(46, 46, 46, 0.97);
  border-top: 1px solid var(--shellf3921-line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.shellf3921-navitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 46px;
  padding: 5px 2px 3px;
  border-radius: 10px;
  color: var(--shellf3921-ink-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.18s var(--shellf3921-ease),
    color 0.18s var(--shellf3921-ease), transform 0.12s var(--shellf3921-ease);
}

.shellf3921-navitem svg {
  width: 20px;
  height: 20px;
}

.shellf3921-navitem:active {
  transform: var(--shellf3921-press);
}

.shellf3921-navitem.shellf3921-on {
  background: var(--shellf3921-teal-soft);
  color: var(--shellf3921-teal);
  border: 1px solid rgba(72, 209, 204, 0.3);
}

.shellf3921-navbonus {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  margin-top: -24px;
  padding: 0 2px 3px;
  border: none;
  background: none;
  color: var(--shellf3921-yellow-ink);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s var(--shellf3921-ease);
}

.shellf3921-navbonus:active {
  transform: var(--shellf3921-press);
}

.shellf3921-navbonus span.shellf3921-bonusring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--shellf3921-yellow);
  border: 3px solid #2b2b2b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--shellf3921-yellow-deep);
  color: var(--shellf3921-yellow-ink);
}

.shellf3921-navbonus svg {
  width: 24px;
  height: 24px;
}

.shellf3921-navbonus em {
  font-style: normal;
  color: var(--shellf3921-yellow);
  font-size: 10px;
}

/* ---------- back to top ---------- */

.shellf3921-totop {
  position: fixed;
  right: 12px;
  bottom: calc(var(--shellf3921-bottomnav-h) + 22px + env(safe-area-inset-bottom, 0px));
  z-index: 170;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--shellf3921-teal-line);
  background: rgba(51, 51, 51, 0.95);
  color: var(--shellf3921-teal);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s var(--shellf3921-ease),
    transform 0.2s var(--shellf3921-ease), background-color 0.18s var(--shellf3921-ease);
}

.shellf3921-totop.shellf3921-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.shellf3921-totop:active {
  background: var(--shellf3921-teal-soft);
}

.shellf3921-totop svg {
  width: 18px;
  height: 18px;
}

/* ---------- responsive canvas: 320-430px ---------- */

/* Narrow phones (320-374px): 4 game columns, tighter type */
@media (max-width: 374px) {
  .shellf3921-h1 {
    font-size: 22px;
  }

  .shellf3921-h2 {
    font-size: 15.5px;
  }

  .shellf3921-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 7px 5px;
  }

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

  .shellf3921-menugrid {
    grid-template-columns: 1fr;
  }

  .shellf3921-topacts .shellf3921-btn {
    padding: 8px 9px;
    font-size: 12px;
  }

  .shellf3921-brand span {
    font-size: 16.5px;
  }
}

/* Standard phones (375-430px): 5 game columns */
@media (min-width: 375px) {
  .shellf3921-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Wide phones and desktop clamp: canvas edge treatment at 430px breakpoint */
@media (min-width: 430px) {
  .shellf3921-canvas {
    box-shadow: 0 0 0 1px var(--shellf3921-line), 0 0 40px rgba(0, 0, 0, 0.5);
  }

  .shellf3921-totop {
    right: calc(50% - 215px + 12px);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .shellf3921-page *,
  .shellf3921-page *::before,
  .shellf3921-page *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
