/* ============================================================
   TTTPh (tttph.cfd) - Mobile-first gaming website
   Prefix : s057-
   Palette: #A0522D | #8B0000 | #FFB347 | #9370DB | #F0F0F0 | #1A1A1A
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --s057-brown: #A0522D;
  --s057-dark-red: #8B0000;
  --s057-amber: #FFB347;
  --s057-violet: #9370DB;
  --s057-mist: #F0F0F0;
  --s057-ink: #1A1A1A;
  --s057-bg: #140a06;
  --s057-bg-2: #21100a;
  --s057-card: #2a160e;
  --s057-card-2: #341a10;
  --s057-line: rgba(255, 179, 71, 0.18);
  --s057-text: #f6efe6;
  --s057-muted: #c8b6a6;
  --s057-gold: #FFB347;
  --s057-radius: 14px;
  --s057-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --s057-header-h: 58px;
  --s057-nav-h: 66px;
}

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, system-ui, sans-serif;
  background: radial-gradient(120% 80% at 50% -10%, #3a1c0e 0%, #1a0c06 55%, #0c0503 100%);
  color: var(--s057-text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--s057-amber);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffd089;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ---------- Layout container ---------- */
.s057-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(160, 82, 45, 0.08) 0%, rgba(20, 10, 6, 0) 30%),
    linear-gradient(0deg, rgba(139, 0, 0, 0.10) 0%, rgba(20, 10, 6, 0) 25%);
  position: relative;
  padding-bottom: calc(var(--s057-nav-h) + 24px);
}

/* ---------- Header ---------- */
.s057-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--s057-header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(26, 10, 6, 0.98) 0%, rgba(34, 16, 10, 0.96) 100%);
  border-bottom: 1px solid var(--s057-line);
  backdrop-filter: blur(8px);
}

.s057-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.s057-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 179, 71, 0.35), 0 4px 10px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.s057-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.s057-brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

.s057-brand-tag {
  font-size: 10px;
  color: var(--s057-amber);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  line-height: 1.1;
}

.s057-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.s057-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

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

.s057-btn-login {
  background: transparent;
  color: var(--s057-amber);
  border: 1px solid rgba(255, 179, 71, 0.55);
}

.s057-btn-register {
  background: linear-gradient(135deg, #FFB347 0%, #A0522D 55%, #8B0000 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(139, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.s057-menu-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--s057-line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
}

.s057-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--s057-amber);
  position: relative;
  border-radius: 2px;
}

.s057-menu-toggle span::before,
.s057-menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--s057-amber);
  border-radius: 2px;
}

.s057-menu-toggle span::before { top: -6px; }
.s057-menu-toggle span::after  { top: 6px; }

/* ---------- Slide menu ---------- */
.s057-menu {
  position: fixed;
  top: 0;
  right: -86%;
  width: 84%;
  max-width: 380px;
  height: 100vh;
  background: linear-gradient(180deg, #1d0d07 0%, #120804 100%);
  border-left: 1px solid var(--s057-line);
  z-index: 80;
  transition: right 0.28s ease;
  padding: 18px 16px calc(var(--s057-nav-h) + 20px);
  overflow-y: auto;
}

.s057-menu.s057-open {
  right: 0;
}

.s057-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.s057-menu-backdrop.s057-open {
  opacity: 1;
  pointer-events: auto;
}

.s057-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--s057-line);
}

.s057-menu-head h3 {
  font-size: 16px;
  color: #fff;
  font-weight: 800;
}

.s057-menu-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--s057-line);
  color: var(--s057-amber);
  font-size: 18px;
  line-height: 1;
}

.s057-menu-section {
  margin-bottom: 18px;
}

.s057-menu-section h4 {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--s057-violet);
  margin-bottom: 8px;
  padding-left: 4px;
}

.s057-menu-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--s057-text);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 6px;
  border: 1px solid transparent;
}

.s057-menu-list li a:hover,
.s057-menu-list li a:focus {
  background: rgba(255, 179, 71, 0.08);
  border-color: var(--s057-line);
  color: #fff;
}

.s057-menu-list li a::before {
  content: "›";
  color: var(--s057-amber);
  font-weight: 800;
  font-size: 18px;
  line-height: 0;
}

.s057-menu-cta {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.s057-menu-cta .s057-btn {
  flex: 1;
}

/* ---------- Hero ---------- */
.s057-hero {
  position: relative;
  margin: 14px 12px 6px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #4a1c0c 0%, #2a0e08 60%, #160804 100%);
  border: 1px solid var(--s057-line);
  box-shadow: var(--s057-shadow);
}

.s057-hero-slides {
  display: flex;
  transition: transform 0.55s ease;
}

.s057-hero-slide {
  min-width: 100%;
  padding: 22px 18px 24px;
  position: relative;
}

.s057-hero-eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #1a1a1a;
  background: linear-gradient(90deg, #FFB347, #9370DB);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 10px;
}

.s057-hero-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.s057-hero-title em {
  font-style: normal;
  color: var(--s057-amber);
}

.s057-hero-desc {
  font-size: 13px;
  color: var(--s057-muted);
  margin-bottom: 14px;
  max-width: 90%;
}

.s057-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.s057-hero-actions .s057-btn {
  padding: 11px 18px;
  font-size: 14px;
}

.s057-hero-actions .s057-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.s057-hero-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 6px;
}

.s057-hero-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
}

.s057-hero-dots span.active {
  background: var(--s057-amber);
  width: 18px;
  border-radius: 4px;
}

/* ---------- Marquee ---------- */
.s057-marquee {
  margin: 10px 12px 4px;
  background: linear-gradient(90deg, rgba(139, 0, 0, 0.55), rgba(147, 112, 219, 0.35));
  border: 1px solid var(--s057-line);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.s057-marquee-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #1a1a1a;
  background: var(--s057-amber);
  padding: 3px 8px;
  border-radius: 999px;
}

.s057-marquee-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 18px;
}

.s057-marquee-track span {
  position: absolute;
  white-space: nowrap;
  font-size: 12px;
  color: #fff;
  font-weight: 600;
  animation: s057-scroll 22s linear infinite;
}

@keyframes s057-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ---------- Section ---------- */
.s057-section {
  margin: 18px 12px 6px;
}

.s057-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.s057-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.s057-section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #FFB347, #8B0000);
}

.s057-section-link {
  font-size: 12px;
  color: var(--s057-amber);
  font-weight: 600;
}

/* ---------- Category chips ---------- */
.s057-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 0 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.s057-chips::-webkit-scrollbar { display: none; }

.s057-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--s057-line);
  font-size: 12px;
  font-weight: 700;
  color: var(--s057-muted);
  transition: all 0.2s ease;
}

.s057-chip.active,
.s057-chip:hover {
  background: linear-gradient(135deg, #FFB347, #8B0000);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

/* ---------- Quick stats ---------- */
.s057-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 6px 12px 4px;
}

.s057-stat {
  background: linear-gradient(180deg, var(--s057-card) 0%, var(--s057-card-2) 100%);
  border: 1px solid var(--s057-line);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.s057-stat-num {
  font-size: 18px;
  font-weight: 900;
  color: var(--s057-amber);
  line-height: 1.1;
}

.s057-stat-label {
  font-size: 10px;
  color: var(--s057-muted);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ---------- Game grid ---------- */
.s057-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.s057-card {
  background: linear-gradient(180deg, var(--s057-card) 0%, var(--s057-card-2) 100%);
  border: 1px solid var(--s057-line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.s057-card:active {
  transform: scale(0.97);
}

.s057-card-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0e0604;
  overflow: hidden;
}

.s057-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s057-card-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(139, 0, 0, 0.85);
  color: #fff;
}

.s057-card-tag.hot     { background: rgba(255, 179, 71, 0.92); color: #1a1a1a; }
.s057-card-tag.new     { background: rgba(147, 112, 219, 0.92); color: #fff; }
.s057-card-tag.live    { background: rgba(139, 0, 0, 0.92); color: #fff; }

.s057-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 4, 2, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.s057-card:hover .s057-card-play,
.s057-card:focus-within .s057-card-play {
  opacity: 1;
}

.s057-card-play span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFB347, #8B0000);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.s057-card-body {
  padding: 7px 8px 9px;
}

.s057-card-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s057-card-meta {
  font-size: 9.5px;
  color: var(--s057-muted);
  margin-top: 2px;
  letter-spacing: 0.4px;
}

/* 4-col compact for hot/featured */
.s057-grid-compact {
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.s057-grid-compact .s057-card-name { font-size: 10.5px; }

/* ---------- Promo banner ---------- */
.s057-promo {
  margin: 18px 12px 4px;
  border-radius: 16px;
  padding: 16px 16px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 179, 71, 0.35) 0%, rgba(160, 82, 45, 0) 55%),
    linear-gradient(135deg, #5a1a0c 0%, #2a0d08 100%);
  border: 1px solid rgba(255, 179, 71, 0.35);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.s057-promo::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(147, 112, 219, 0.35) 0%, rgba(147, 112, 219, 0) 70%);
  border-radius: 50%;
}

.s057-promo-text {
  flex: 1;
  min-width: 0;
}

.s057-promo-text h3 {
  font-size: 17px;
  color: #fff;
  font-weight: 800;
  margin-bottom: 4px;
}

.s057-promo-text p {
  font-size: 12px;
  color: var(--s057-muted);
}

.s057-promo .s057-btn {
  flex-shrink: 0;
}

/* ---------- Article / SEO content ---------- */
.s057-article {
  margin: 18px 12px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--s057-line);
  border-radius: 14px;
  padding: 16px 15px;
}

.s057-article h2 {
  font-size: 17px;
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.s057-article h2::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #FFB347, #8B0000);
}

.s057-article h3 {
  font-size: 14px;
  color: var(--s057-amber);
  font-weight: 700;
  margin: 14px 0 6px;
}

.s057-article p {
  font-size: 13px;
  color: var(--s057-muted);
  margin-bottom: 8px;
}

.s057-article strong { color: #fff; }

.s057-article ul.bullets {
  margin: 6px 0 10px 4px;
}

.s057-article ul.bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--s057-muted);
  margin-bottom: 5px;
}

.s057-article ul.bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--s057-amber);
  font-size: 11px;
}

.s057-article a.inline-link {
  color: var(--s057-amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Inline tag list */
.s057-tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}

.s057-tagrow a {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(147, 112, 219, 0.15);
  border: 1px solid rgba(147, 112, 219, 0.35);
  color: #e6d8ff;
  font-weight: 600;
}

/* ---------- FAQ teaser ---------- */
.s057-faq {
  margin: 18px 12px 6px;
}

.s057-faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--s057-line);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}

.s057-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  width: 100%;
  text-align: left;
}

.s057-faq-q::after {
  content: "+";
  font-size: 18px;
  color: var(--s057-amber);
  font-weight: 800;
  transition: transform 0.2s ease;
}

.s057-faq-item.s057-open .s057-faq-q::after { transform: rotate(45deg); }

.s057-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  padding: 0 14px;
}

.s057-faq-item.s057-open .s057-faq-a {
  max-height: 320px;
  padding-bottom: 12px;
}

.s057-faq-a p {
  font-size: 12.5px;
  color: var(--s057-muted);
}

/* ---------- Steps ---------- */
.s057-steps {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.s057-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--s057-line);
  border-radius: 12px;
  padding: 11px 12px;
}

.s057-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFB347, #8B0000);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s057-step-body h4 {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2px;
}

.s057-step-body p {
  font-size: 12px;
  color: var(--s057-muted);
}

/* ---------- Footer ---------- */
.s057-footer {
  margin: 22px 12px 6px;
  background: linear-gradient(180deg, #1d0d07 0%, #120804 100%);
  border: 1px solid var(--s057-line);
  border-radius: 14px;
  padding: 16px 15px;
}

.s057-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.s057-footer-col h4 {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--s057-amber);
  margin-bottom: 8px;
}

.s057-footer-col ul li {
  margin-bottom: 5px;
}

.s057-footer-col a {
  font-size: 12px;
  color: var(--s057-muted);
}

.s057-footer-col a:hover { color: #fff; }

.s057-footer-bottom {
  border-top: 1px solid var(--s057-line);
  padding-top: 12px;
  text-align: center;
}

.s057-footer-warn {
  font-size: 10.5px;
  color: #8c7a6c;
  line-height: 1.5;
  margin-bottom: 8px;
}

.s057-footer-copy {
  font-size: 11px;
  color: #6e5d51;
}

.s057-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.s057-footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.s057-footer-brand strong {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ---------- Bottom nav ---------- */
.s057-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: var(--s057-nav-h);
  background: linear-gradient(180deg, rgba(26, 10, 6, 0.98) 0%, rgba(15, 6, 3, 1) 100%);
  border-top: 1px solid var(--s057-line);
  display: flex;
  align-items: stretch;
  z-index: 75;
  box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.5);
}

.s057-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--s057-muted);
  font-size: 10px;
  font-weight: 600;
  position: relative;
  padding: 6px 2px 8px;
}

.s057-nav-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.s057-nav-item.active {
  color: var(--s057-amber);
}

.s057-nav-item.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #FFB347, #8B0000);
}

.s057-nav-item.promo {
  color: #ffd089;
}

.s057-nav-item.promo svg {
  filter: drop-shadow(0 0 6px rgba(255, 179, 71, 0.5));
}

.s057-nav-item.fab {
  position: relative;
}

.s057-nav-item.fab svg {
  width: 30px;
  height: 30px;
  margin-top: -10px;
  padding: 5px;
  background: linear-gradient(135deg, #FFB347, #8B0000);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.55);
  fill: #fff;
}

.s057-nav-item:active svg {
  transform: scale(0.9);
}

/* ---------- Helpers ---------- */
.s057-hide { display: none !important; }

.s057-divider {
  height: 1px;
  background: var(--s057-line);
  margin: 14px 0;
}

/* ---------- Mobile canvas cap (~430px) ----------
   Mobile-first site: keep the layout within a 320–430px canvas and
   tighten spacing/typography on the smallest viewports. */
.s057-shell,
.s057-nav {
  max-width: 430px;
}

@media (max-width: 430px) {
  body {
    font-size: 14px;
  }

  .s057-shell {
    padding-bottom: calc(var(--s057-nav-h) + 18px);
  }

  .s057-header {
    padding: 0 10px;
    gap: 8px;
  }

  .s057-brand-name { font-size: 16px; }
  .s057-brand-tag  { font-size: 9px; }

  .s057-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .s057-hero {
    margin: 12px 10px 6px;
    border-radius: 16px;
  }

  .s057-hero-slide {
    padding: 18px 14px 20px;
  }

  .s057-hero-title { font-size: 22px; }
  .s057-hero-desc  { font-size: 12px; }

  .s057-marquee,
  .s057-section,
  .s057-stats,
  .s057-promo,
  .s057-article,
  .s057-faq,
  .s057-footer {
    margin-left: 10px;
    margin-right: 10px;
  }

  .s057-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .s057-stat-num { font-size: 16px; }

  .s057-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .s057-grid-compact {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .s057-card-name { font-size: 11px; }

  .s057-promo {
    padding: 14px 13px;
    gap: 10px;
    border-radius: 14px;
  }

  .s057-promo-text h3 { font-size: 15px; }
  .s057-promo-text p  { font-size: 11px; }

  .s057-article {
    padding: 14px 13px;
    border-radius: 12px;
  }

  .s057-article h2 { font-size: 15px; }
  .s057-article h3 { font-size: 13px; }
  .s057-article p  { font-size: 12.5px; }

  .s057-footer {
    padding: 14px 13px;
    border-radius: 12px;
  }

  .s057-nav-item { font-size: 9px; padding: 5px 2px 7px; }
  .s057-nav-item svg { width: 20px; height: 20px; }
}

/* Keep mobile canvas centered on wide screens */
@media (min-width: 481px) {
  body {
    background: #0a0503;
  }
}

/* Active CTA pulse */
@keyframes s057-pulse {
  0%, 100% { box-shadow: 0 6px 14px rgba(139, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
  50%      { box-shadow: 0 6px 22px rgba(255, 179, 71, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

.s057-btn-register,
.s057-nav-item.fab svg {
  animation: s057-pulse 2.6s ease-in-out infinite;
}
