/* ============================================================
 * Hellspin (hellspin.homes) - core layout stylesheet
 * Mobile-first design tuned for max-width 430px viewports.
 * Every custom class uses the `s073-` prefix for isolation.
 * Color palette: dark green base with mint + azure accents.
 * ============================================================ */

:root {
  --s073-primary: #008000;
  --s073-primary-dark: #006400;
  --s073-azure: #ADD8E6;
  --s073-mint: #98FB98;
  --s073-bg: #2D2D2D;
  --s073-bg-soft: #1c1c1c;
  --s073-bg-card: #3a3a3a;
  --s073-text: #FAFAFA;
  --s073-text-dim: #cfcfcf;
  --s073-accent: #FFD24A;
  --s073-accent-red: #E74C3C;
  --s073-radius: 14px;
  --s073-radius-sm: 8px;
  --s073-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --s073-header-h: 56px;
  --s073-bottom-h: 62px;
  font-size: 62.5%;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--s073-bg);
  color: var(--s073-text);
  line-height: 1.5rem;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--s073-mint); text-decoration: none; }
a:hover { color: var(--s073-azure); }

/* ---------------- Layout shell ---------------- */
.s073-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--s073-bg);
  min-height: 100vh;
  position: relative;
}

.s073-container {
  padding: 0 1.2rem;
  width: 100%;
}

main.s073-main {
  padding-top: calc(var(--s073-header-h) + 8px);
  padding-bottom: calc(var(--s073-bottom-h) + 24px);
}

/* ---------------- Header ---------------- */
.s073-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s073-header-h);
  background: linear-gradient(180deg, #00420f 0%, #003208 100%);
  border-bottom: 1px solid rgba(152, 251, 152, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.8rem;
  z-index: 1000;
  transition: box-shadow 0.25s ease;
}
.s073-header-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45); }

.s073-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.s073-brand img {
  width: 26px; height: 26px;
  border-radius: 6px;
}
.s073-brand-name {
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--s073-mint);
}
.s073-brand-tag {
  font-size: 1.1rem;
  color: var(--s073-azure);
  margin-left: 0.2rem;
}

.s073-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.s073-icon-btn {
  background: transparent;
  border: 1px solid rgba(173, 216, 230, 0.4);
  color: var(--s073-text);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.s073-icon-btn:hover { background: rgba(173, 216, 230, 0.12); transform: scale(1.05); }

.s073-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
  min-height: 36px;
}
.s073-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.s073-btn-register {
  background: linear-gradient(135deg, #FFD24A 0%, #FF8A00 100%);
  color: #2D2D2D;
}
.s073-btn-login {
  background: transparent;
  color: var(--s073-mint);
  border: 1px solid var(--s073-mint);
}

/* ---------------- Mobile slide-down menu ---------------- */
.s073-mobile-menu {
  position: fixed;
  top: var(--s073-header-h);
  left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #14341a;
  border-bottom: 1px solid rgba(152, 251, 152, 0.18);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  z-index: 9999;
}
.s073-mobile-menu.s073-menu-open { max-height: 420px; }
.s073-mobile-menu ul {
  list-style: none;
  margin: 0; padding: 0.4rem 0;
}
.s073-mobile-menu li a {
  display: block;
  padding: 0.85rem 1.4rem;
  color: var(--s073-text);
  font-size: 1.35rem;
  border-left: 3px solid transparent;
}
.s073-mobile-menu li a:hover {
  background: rgba(152, 251, 152, 0.08);
  border-left-color: var(--s073-mint);
  color: var(--s073-mint);
}

/* ---------------- Hero carousel ---------------- */
.s073-hero {
  position: relative;
  width: 100%;
  border-radius: var(--s073-radius);
  overflow: hidden;
  margin: 0.8rem 0 1rem;
  box-shadow: var(--s073-shadow);
  aspect-ratio: 16 / 9;
  background: #111;
}
.s073-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
}
.s073-hero-slide.s073-active { opacity: 1; }
.s073-hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.s073-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.2rem;
}
.s073-hero-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--s073-mint);
  margin: 0 0 0.2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}
.s073-hero-sub {
  font-size: 1.2rem;
  color: var(--s073-text);
  margin: 0 0 0.6rem;
}
.s073-hero-cta {
  align-self: flex-start;
  background: linear-gradient(135deg, #FFD24A 0%, #FF6A00 100%);
  color: #2D2D2D;
  font-weight: 800;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 1.25rem;
}
.s073-hero-dots {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}
.s073-hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  border: none;
  padding: 0;
}
.s073-hero-dot.s073-active {
  background: var(--s073-accent);
  width: 18px;
  border-radius: 999px;
}

/* ---------------- Section title ---------------- */
.s073-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--s073-mint);
  margin: 1.4rem 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.s073-section-title::before {
  content: "";
  display: inline-block;
  width: 4px; height: 1.5rem;
  background: var(--s073-accent);
  border-radius: 2px;
}
.s073-section-sub {
  color: var(--s073-text-dim);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}

/* ---------------- Game grid ---------------- */
.s073-search-bar {
  display: flex;
  align-items: center;
  background: var(--s073-bg-card);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  margin: 0.4rem 0 0.8rem;
  border: 1px solid rgba(173, 216, 230, 0.25);
}
.s073-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--s073-text);
  font-size: 1.25rem;
  outline: none;
}

.s073-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.s073-grid-4 { grid-template-columns: repeat(4, 1fr); }
.s073-game-card {
  background: var(--s073-bg-card);
  border-radius: var(--s073-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(152, 251, 152, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease;
  text-align: center;
  padding: 0.35rem 0.25rem 0.55rem;
}
.s073-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--s073-mint);
}
.s073-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}
.s073-game-name {
  display: block;
  font-size: 1.05rem;
  color: var(--s073-text);
  margin-top: 0.3rem;
  line-height: 1.25rem;
  height: 2.5rem;
  overflow: hidden;
}
.s073-hidden { display: none !important; }

/* ---------------- Category tag strip ---------------- */
.s073-cat-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.6rem;
  scrollbar-width: none;
}
.s073-cat-strip::-webkit-scrollbar { display: none; }
.s073-cat-tag {
  background: var(--s073-bg-card);
  color: var(--s073-text);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 1.15rem;
  white-space: nowrap;
  border: 1px solid rgba(173, 216, 230, 0.25);
}

/* ---------------- Cards & features ---------------- */
.s073-card {
  background: var(--s073-bg-card);
  border-radius: var(--s073-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(173, 216, 230, 0.12);
}
.s073-card h3 {
  margin: 0 0 0.4rem;
  color: var(--s073-mint);
  font-size: 1.35rem;
}
.s073-card p {
  margin: 0 0 0.4rem;
  color: var(--s073-text-dim);
  font-size: 1.2rem;
}
.s073-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.s073-feature {
  background: linear-gradient(135deg, #13381a 0%, #1d4e29 100%);
  border-radius: var(--s073-radius-sm);
  padding: 0.8rem;
  text-align: center;
}
.s073-feature .material-icons,
.s073-feature ion-icon {
  font-size: 2.4rem;
  color: var(--s073-accent);
}
.s073-feature h4 { margin: 0.3rem 0 0; font-size: 1.2rem; color: var(--s073-mint); }
.s073-feature p { margin: 0.2rem 0 0; font-size: 1.05rem; color: var(--s073-text-dim); }

/* ---------------- FAQ accordion (static) ---------------- */
.s073-faq-item {
  background: var(--s073-bg-card);
  border-radius: var(--s073-radius-sm);
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--s073-primary);
}
.s073-faq-item h4 {
  margin: 0 0 0.3rem;
  color: var(--s073-mint);
  font-size: 1.25rem;
}
.s073-faq-item p { margin: 0; font-size: 1.18rem; color: var(--s073-text-dim); }

/* ---------------- Testimonials ---------------- */
.s073-testi {
  background: var(--s073-bg-card);
  border-radius: var(--s073-radius-sm);
  padding: 0.8rem;
  margin-bottom: 0.6rem;
  border-left: 3px solid var(--s073-azure);
}
.s073-testi-stars { color: var(--s073-accent); font-size: 1.1rem; }
.s073-testi p { margin: 0.3rem 0; font-size: 1.18rem; color: var(--s073-text); }
.s073-testi-meta { color: var(--s073-mint); font-size: 1.05rem; }

/* ---------------- Winners / payment strip ---------------- */
.s073-winner-strip,
.s073-pay-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: none;
}
.s073-winner-strip::-webkit-scrollbar,
.s073-pay-strip::-webkit-scrollbar { display: none; }
.s073-winner {
  background: linear-gradient(135deg, #2c1a00 0%, #4d2b00 100%);
  border-radius: var(--s073-radius-sm);
  padding: 0.55rem 0.8rem;
  min-width: 150px;
  border: 1px solid rgba(255, 210, 74, 0.25);
}
.s073-winner .amt { color: var(--s073-accent); font-weight: 800; font-size: 1.35rem; }
.s073-winner .who { color: var(--s073-text-dim); font-size: 1.05rem; }
.s073-pay {
  background: #143a1f;
  color: var(--s073-mint);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  min-width: 90px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  border: 1px solid rgba(152, 251, 152, 0.18);
}

/* ---------------- Inline CTA banner ---------------- */
.s073-cta {
  background: linear-gradient(135deg, #006400 0%, #008000 60%, #00a300 100%);
  border-radius: var(--s073-radius);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  text-align: center;
  border: 1px solid rgba(152, 251, 152, 0.4);
}
.s073-cta h3 { margin: 0 0 0.3rem; color: #fff; font-size: 1.5rem; }
.s073-cta p { margin: 0 0 0.6rem; color: #eaffea; font-size: 1.18rem; }

/* ---------------- RTP table ---------------- */
.s073-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.15rem;
  background: var(--s073-bg-card);
  border-radius: var(--s073-radius-sm);
  overflow: hidden;
}
.s073-rtp-table th,
.s073-rtp-table td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid rgba(173, 216, 230, 0.1);
}
.s073-rtp-table th { background: #1c4724; color: var(--s073-mint); }
.s073-rtp-table td.amt { color: var(--s073-accent); font-weight: 700; }

/* ---------------- Footer ---------------- */
.s073-footer {
  background: #111;
  padding: 1.4rem 1.2rem 2.4rem;
  border-top: 1px solid rgba(152, 251, 152, 0.15);
  color: var(--s073-text-dim);
  font-size: 1.15rem;
}
.s073-footer h4 { color: var(--s073-mint); margin: 0.6rem 0 0.3rem; font-size: 1.3rem; }
.s073-footer p { margin: 0 0 0.6rem; }
.s073-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin: 0.4rem 0;
}
.s073-footer-links a {
  color: var(--s073-azure);
  font-size: 1.1rem;
}
.s073-footer-aff {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.6rem;
}
.s073-footer-aff button {
  background: linear-gradient(135deg, #FFD24A, #FF6A00);
  border: none;
  color: #2D2D2D;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 1.1rem;
  cursor: pointer;
}
.s073-copy {
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 1.05rem;
  color: #888;
}

/* ---------------- Back-to-top FAB ---------------- */
.s073-to-top {
  position: fixed;
  right: 14px;
  bottom: calc(var(--s073-bottom-h) + 12px);
  z-index: 998;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--s073-accent);
  color: #2D2D2D;
  border: none;
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: var(--s073-shadow);
  cursor: pointer;
  display: none;
}

/* ---------------- Mobile bottom nav ---------------- */
.s073-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s073-bottom-h);
  background: linear-gradient(180deg, #01310a 0%, #001f06 100%);
  border-top: 1px solid rgba(152, 251, 152, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  padding: 4px 2px 6px;
}
.s073-bottom-nav a,
.s073-bottom-nav button {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--s073-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 54px;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 2px;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}
.s073-bottom-nav a.active,
.s073-bottom-nav button.active {
  color: var(--s073-accent);
}
.s073-bottom-nav a.active::before,
.s073-bottom-nav button.active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--s073-accent);
  border-radius: 999px;
}
.s073-bottom-nav .material-icons { font-size: 22px; }
.s073-bottom-nav ion-icon { font-size: 22px; }
.s073-bottom-nav .fa,
.s073-bottom-nav .fas,
.s073-bottom-nav .far { font-size: 20px; }
.s073-bottom-nav a:active,
.s073-bottom-nav button:active { transform: scale(0.92); }
.s073-bottom-nav .badge {
  position: absolute;
  top: 4px; right: 18px;
  background: var(--s073-accent-red);
  color: #fff;
  font-size: 0.9rem;
  padding: 1px 5px;
  border-radius: 999px;
  font-weight: 700;
}

/* ---------------- Desktop: hide bottom nav, widen shell ---------------- */
@media (min-width: 769px) {
  .s073-bottom-nav { display: none; }
  .s073-to-top { display: block; }
  main.s073-main { padding-bottom: 40px; }
}
@media (min-width: 431px) and (max-width: 768px) {
  .s073-to-top { display: block; }
}

/* Utility */
.s073-mt { margin-top: 1rem; }
.s073-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.s073-pill {
  display: inline-block;
  background: rgba(152, 251, 152, 0.12);
  color: var(--s073-mint);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 1.05rem;
  margin: 0.1rem;
}
.s073-text-accent { color: var(--s073-accent); font-weight: 700; }
