/* ===========================================================
 * phbingo apk - layout.css
 * Mobile-first (max 430px). All custom classes use s6f7- prefix.
 * Color palette:
 *   #212F3D  dark background
 *   #D2691E  brand orange
 *   #DEB887  light tan
 *   #F4A460  sandy
 *   #FFB74D  accent amber
 * =========================================================== */

:root {
  --s6f7-bg: #212F3D;
  --s6f7-bg-soft: #1a2632;
  --s6f7-bg-card: #2a3a4a;
  --s6f7-primary: #D2691E;
  --s6f7-accent: #FFB74D;
  --s6f7-text: #DEB887;
  --s6f7-text-light: #f5e9d6;
  --s6f7-sandy: #F4A460;
  --s6f7-border: rgba(222, 184, 135, 0.18);
  --s6f7-header-h: 56px;
  --s6f7-bottomnav-h: 62px;
  --s6f7-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--s6f7-bg);
  color: var(--s6f7-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--s6f7-accent);
  text-decoration: none;
}

.s6f7-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.s6f7-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.s6f7-main {
  flex: 1;
  padding-top: calc(var(--s6f7-header-h) + 0.8rem);
  padding-bottom: 1rem;
}

/* ----------------------- Header ----------------------- */
.s6f7-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--s6f7-header-h);
  background: linear-gradient(90deg, #1a2632 0%, #212F3D 100%);
  border-bottom: 1px solid var(--s6f7-border);
  box-shadow: var(--s6f7-shadow);
}

.s6f7-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
}

.s6f7-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s6f7-text-light);
  font-weight: 700;
  font-size: 1.5rem;
}

.s6f7-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.s6f7-logo span {
  color: var(--s6f7-accent);
}

.s6f7-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.s6f7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.s6f7-btn:active {
  transform: scale(0.94);
}

.s6f7-btn-login {
  background: transparent;
  color: var(--s6f7-text);
  border: 1px solid var(--s6f7-border);
}

.s6f7-btn-register {
  background: linear-gradient(90deg, var(--s6f7-primary), var(--s6f7-accent));
  color: #1a2632;
  box-shadow: 0 3px 8px rgba(255, 183, 77, 0.25);
}

.s6f7-hamburger {
  background: transparent;
  border: none;
  color: var(--s6f7-text-light);
  font-size: 1.9rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ----------------------- Mobile menu ----------------------- */
.s6f7-mobile-menu {
  position: fixed;
  top: 0;
  right: -85%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--s6f7-bg-soft);
  z-index: 9999;
  padding: 6rem 1.4rem 2rem;
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--s6f7-border);
}

.s6f7-mobile-menu.s6f7-menu-open {
  right: 0;
}

.s6f7-mobile-menu h3 {
  color: var(--s6f7-accent);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1.4rem 0 0.6rem;
}

.s6f7-mobile-menu a {
  display: block;
  padding: 1rem 0.6rem;
  color: var(--s6f7-text-light);
  border-bottom: 1px solid var(--s6f7-border);
  font-size: 1.35rem;
}

.s6f7-mobile-menu a:active {
  background: rgba(210, 105, 30, 0.12);
}

.s6f7-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.s6f7-menu-overlay.s6f7-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.s6f7-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--s6f7-text-light);
  font-size: 2rem;
  cursor: pointer;
}

/* ----------------------- Hero slider ----------------------- */
.s6f7-slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.4rem;
  box-shadow: var(--s6f7-shadow);
  aspect-ratio: 16 / 9;
}

.s6f7-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.s6f7-slide.s6f7-slide-active {
  opacity: 1;
}

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

.s6f7-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.s6f7-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.s6f7-slider-dot.s6f7-dot-active {
  background: var(--s6f7-accent);
  width: 18px;
  border-radius: 6px;
}

/* ----------------------- Section & headings ----------------------- */
.s6f7-section {
  margin: 1.6rem 0;
  padding: 1.2rem;
  background: var(--s6f7-bg-card);
  border-radius: 14px;
  border: 1px solid var(--s6f7-border);
}

.s6f7-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--s6f7-accent);
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.s6f7-h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--s6f7-text-light);
  margin: 1rem 0;
  line-height: 1.2;
}

.s6f7-h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--s6f7-accent);
  margin: 1rem 0 0.5rem;
}

.s6f7-h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--s6f7-text);
  margin: 0.8rem 0 0.4rem;
}

.s6f7-lead {
  color: var(--s6f7-text-light);
  margin: 0 0 0.6rem;
}

/* ----------------------- Promo links ----------------------- */
.s6f7-promo-link {
  color: var(--s6f7-accent);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.s6f7-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.s6f7-cta-row .s6f7-btn {
  flex: 1 1 auto;
}

/* ----------------------- Game grid ----------------------- */
.s6f7-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.4rem 0 0.6rem;
}

.s6f7-cat-head h2 {
  color: var(--s6f7-accent);
  font-size: 1.45rem;
  margin: 0;
}

.s6f7-cat-head .s6f7-more {
  font-size: 1.2rem;
  color: var(--s6f7-sandy);
}

.s6f7-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.s6f7-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--s6f7-bg-soft);
  border: 1px solid var(--s6f7-border);
  border-radius: 10px;
  padding: 0.5rem 0.4rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.s6f7-game:active {
  transform: scale(0.95);
}

.s6f7-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.s6f7-game-name {
  font-size: 1.15rem;
  color: var(--s6f7-text-light);
  line-height: 1.25;
  height: 2.8em;
  overflow: hidden;
}

/* ----------------------- Info cards ----------------------- */
.s6f7-card {
  background: var(--s6f7-bg-soft);
  border: 1px solid var(--s6f7-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.s6f7-card-title {
  color: var(--s6f7-accent);
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}

.s6f7-list {
  margin: 0.4rem 0;
  padding-left: 1.8rem;
}

.s6f7-list li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.s6f7-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.s6f7-tag {
  background: rgba(255, 183, 77, 0.12);
  color: var(--s6f7-accent);
  border: 1px solid var(--s6f7-border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 1.15rem;
}

/* ----------------------- Testimonials ----------------------- */
.s6f7-testi {
  border-left: 3px solid var(--s6f7-primary);
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.6rem;
  background: var(--s6f7-bg-soft);
  border-radius: 0 8px 8px 0;
}

.s6f7-testi-name {
  color: var(--s6f7-accent);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ----------------------- Payment row ----------------------- */
.s6f7-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.s6f7-pay span {
  background: var(--s6f7-bg-soft);
  border: 1px solid var(--s6f7-border);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 1.15rem;
  color: var(--s6f7-text);
}

/* ----------------------- Winners ----------------------- */
.s6f7-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--s6f7-border);
  font-size: 1.2rem;
}

.s6f7-winner b {
  color: var(--s6f7-accent);
}

/* ----------------------- Footer ----------------------- */
.s6f7-footer {
  margin-top: 1.6rem;
  padding: 1.6rem 1.2rem calc(var(--s6f7-bottomnav-h) + 1.4rem);
  background: var(--s6f7-bg-soft);
  border-top: 1px solid var(--s6f7-border);
  text-align: center;
}

.s6f7-footer-brand {
  color: var(--s6f7-text);
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.s6f7-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.8rem;
  margin: 0.6rem 0;
}

.s6f7-footer-links a {
  color: var(--s6f7-text);
  font-size: 1.15rem;
}

.s6f7-footer-copy {
  color: var(--s6f7-text);
  font-size: 1.1rem;
  margin-top: 0.6rem;
  opacity: 0.8;
}

/* ----------------------- Bottom nav ----------------------- */
.s6f7-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--s6f7-bottomnav-h);
  background: linear-gradient(180deg, #1a2632, #14202b);
  border-top: 1px solid var(--s6f7-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.35);
}

.s6f7-bottomnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--s6f7-text);
  font-size: 1.05rem;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.s6f7-bottomnav-btn .material-icons,
.s6f7-bottomnav-btn i,
.s6f7-bottomnav-btn ion-icon,
.s6f7-bottomnav-btn bi {
  font-size: 22px;
}

.s6f7-bottomnav-btn ion-icon {
  font-size: 24px;
}

.s6f7-bottomnav-btn:active {
  transform: scale(0.92);
}

.s6f7-bottomnav-btn.s6f7-bottomnav-active,
.s6f7-bottomnav-btn:hover {
  color: var(--s6f7-accent);
}

.s6f7-bottomnav-btn.s6f7-bottomnav-active {
  position: relative;
}

.s6f7-bottomnav-btn.s6f7-bottomnav-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--s6f7-accent);
}

.s6f7-bottomnav-center {
  background: linear-gradient(135deg, var(--s6f7-primary), var(--s6f7-accent));
  color: #1a2632;
  border-radius: 14px;
  margin: 4px;
  position: relative;
  box-shadow: 0 4px 10px rgba(255, 183, 77, 0.3);
}

/* ----------------------- Toast ----------------------- */
.s6f7-toast {
  position: fixed;
  bottom: calc(var(--s6f7-bottomnav-h) + 16px);
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--s6f7-bg-soft);
  color: var(--s6f7-accent);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--s6f7-border);
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1500;
}

.s6f7-toast.s6f7-toast-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ----------------------- Desktop ----------------------- */
@media (min-width: 769px) {
  .s6f7-bottomnav {
    display: none;
  }
  .s6f7-footer {
    padding-bottom: 1.6rem;
  }
  main.s6f7-main {
    padding-bottom: 1.6rem;
  }
}

@media (max-width: 768px) {
  main.s6f7-main {
    padding-bottom: calc(var(--s6f7-bottomnav-h) + 1rem);
  }
}

@media (max-width: 360px) {
  .s6f7-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .s6f7-btn {
    padding: 0 0.7rem;
    font-size: 1.2rem;
  }
}
