/* ph80 layout styles - prefix v918- */
:root {
  --v918-bg: #273746;
  --v918-bg-soft: #1b2833;
  --v918-bg-card: #2f4354;
  --v918-primary: #ADD8E6;
  --v918-text: #FFFFFF;
  --v918-text-muted: #c5d6e0;
  --v918-accent: #5dade2;
  --v918-accent-2: #48c9b0;
  --v918-warning: #f4d03f;
  --v918-danger: #e74c3c;
  --v918-border: rgba(173, 216, 230, 0.22);
  --v918-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --v918-radius: 1.2rem;
  --v918-header-h: 5.6rem;
  --v918-bottom-h: 6.2rem;
}

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

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

body {
  font-family: Inter, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5rem;
  color: var(--v918-text);
  background: linear-gradient(180deg, #1a252f 0%, var(--v918-bg) 40%, #1f2d38 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--v918-primary);
  text-decoration: none;
}

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

ul {
  list-style: none;
}

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

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

.v918-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: rgba(39, 55, 70, 0.55);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
}

/* Header */
.v918-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--v918-header-h);
  z-index: 1000;
  background: rgba(27, 40, 51, 0.96);
  border-bottom: 1px solid var(--v918-border);
  backdrop-filter: blur(10px);
}

.v918-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0 1.2rem;
}

.v918-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.v918-logo img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
  object-fit: cover;
}

.v918-logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--v918-primary);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.v918-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v918-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 4.4rem;
  min-width: 4.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.v918-btn-register {
  background: linear-gradient(135deg, #5dade2, #48c9b0);
  color: #0f1a22;
  box-shadow: 0 4px 14px rgba(93, 173, 226, 0.35);
}

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

.v918-btn-promo {
  background: linear-gradient(135deg, #f4d03f, #f39c12);
  color: #1b2833;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(244, 208, 63, 0.28);
}

.v918-btn-outline {
  border: 1px solid var(--v918-primary);
  color: var(--v918-primary);
  background: rgba(173, 216, 230, 0.08);
}

.v918-burger {
  width: 4.4rem;
  height: 4.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  color: var(--v918-primary);
  background: rgba(173, 216, 230, 0.08);
}

.v918-burger i,
.v918-burger .material-icons {
  font-size: 2.2rem;
}

/* Mobile menu */
.v918-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.v918-overlay-active {
  opacity: 1;
  visibility: visible;
}

.v918-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 320px);
  height: 100%;
  background: #15222c;
  z-index: 9999;
  transform: translateX(105%);
  transition: transform 0.28s ease;
  padding: 1.6rem;
  overflow-y: auto;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.35);
}

.v918-menu-open {
  transform: translateX(0);
}

.v918-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.v918-menu-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.8rem;
  padding: 0 1rem;
  margin-bottom: 0.6rem;
  border-radius: 1rem;
  color: var(--v918-text);
  background: rgba(173, 216, 230, 0.06);
  border: 1px solid transparent;
  font-size: 1.4rem;
  font-weight: 600;
}

.v918-menu-list a:hover,
.v918-menu-list a:focus {
  border-color: var(--v918-primary);
  background: rgba(173, 216, 230, 0.12);
}

/* Main */
.v918-main {
  padding-top: calc(var(--v918-header-h) + 1.2rem);
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  .v918-main {
    padding-bottom: 8.8rem;
  }
}

/* Hero slider */
.v918-slider {
  position: relative;
  border-radius: var(--v918-radius);
  overflow: hidden;
  margin-bottom: 1.6rem;
  box-shadow: var(--v918-shadow);
  min-height: 16rem;
}

.v918-slide {
  display: none;
  cursor: pointer;
}

.v918-slide-active {
  display: block;
  animation: v918fade 0.45s ease;
}

@keyframes v918fade {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

.v918-slide img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

.v918-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.v918-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.v918-dot-active {
  background: var(--v918-primary);
  transform: scale(1.2);
}

/* Sections */
.v918-section {
  margin-bottom: 2rem;
}

.v918-section-title {
  font-size: 1.8rem;
  line-height: 1.35;
  margin-bottom: 1.2rem;
  color: var(--v918-primary);
  font-weight: 800;
}

.v918-h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin: 1.2rem 0 1rem;
  color: var(--v918-text);
  font-weight: 800;
}

.v918-text-block {
  color: var(--v918-text-muted);
  font-size: 1.35rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.v918-text-block p {
  margin-bottom: 1rem;
}

.v918-text-block a {
  font-weight: 700;
  color: #7fd3f0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.v918-link-bold {
  font-weight: 800;
  color: var(--v918-warning);
  text-decoration: underline;
  cursor: pointer;
}

/* Game grid */
.v918-cat-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--v918-text);
  margin: 1.6rem 0 1rem;
}

.v918-cat-title i,
.v918-cat-title .material-icons,
.v918-cat-title ion-icon {
  color: var(--v918-accent);
  font-size: 2rem;
}

.v918-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.v918-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  min-width: 0;
}

.v918-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1rem;
  object-fit: cover;
  background: var(--v918-bg-soft);
  border: 1px solid var(--v918-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.v918-game-item:active img,
.v918-game-item:hover img {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px rgba(93, 173, 226, 0.28);
}

.v918-game-name {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--v918-text-muted);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

/* Cards / modules */
.v918-card {
  background: var(--v918-bg-card);
  border: 1px solid var(--v918-border);
  border-radius: var(--v918-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--v918-shadow);
}

.v918-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--v918-primary);
}

.v918-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.v918-feature-item {
  background: rgba(0, 0, 0, 0.16);
  border-radius: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--v918-border);
}

.v918-feature-item .material-icons,
.v918-feature-item i,
.v918-feature-item ion-icon {
  font-size: 2.4rem;
  color: var(--v918-accent-2);
  margin-bottom: 0.6rem;
}

.v918-feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.v918-feature-item p {
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--v918-text-muted);
}

/* RTP */
.v918-rtp-list {
  display: grid;
  gap: 0.8rem;
}

.v918-rtp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--v918-border);
}

.v918-rtp-name {
  font-weight: 700;
  font-size: 1.25rem;
}

.v918-rtp-value {
  color: var(--v918-accent-2);
  font-weight: 800;
  font-size: 1.3rem;
}

.v918-bar {
  height: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.6rem;
}

.v918-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #48c9b0, #5dade2);
}

/* FAQ */
.v918-faq-item {
  border: 1px solid var(--v918-border);
  border-radius: 1rem;
  margin-bottom: 0.8rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.14);
}

.v918-faq-q {
  width: 100%;
  text-align: left;
  padding: 1.2rem;
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--v918-text);
}

.v918-faq-a {
  display: none;
  padding: 0 1.2rem 1.2rem;
  color: var(--v918-text-muted);
  font-size: 1.25rem;
  line-height: 1.55;
}

.v918-faq-open .v918-faq-a {
  display: block;
}

.v918-faq-open .v918-faq-q {
  color: var(--v918-primary);
}

/* Testimonials / winners */
.v918-testi-grid,
.v918-winner-grid {
  display: grid;
  gap: 1rem;
}

.v918-testi-card,
.v918-winner-card {
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid var(--v918-border);
  border-radius: 1rem;
  padding: 1.2rem;
}

.v918-testi-card strong,
.v918-winner-card strong {
  color: var(--v918-primary);
  display: block;
  margin-bottom: 0.4rem;
}

.v918-stars {
  color: var(--v918-warning);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

/* CTA boxes */
.v918-cta-box {
  text-align: center;
  padding: 2rem 1.4rem;
  border-radius: 1.4rem;
  background: linear-gradient(145deg, rgba(93, 173, 226, 0.18), rgba(72, 201, 176, 0.12));
  border: 1px solid var(--v918-border);
  margin-bottom: 1.6rem;
}

.v918-cta-box h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--v918-text);
}

.v918-cta-box p {
  color: var(--v918-text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.55;
  font-size: 1.3rem;
}

.v918-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* Payment */
.v918-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.v918-pay-item {
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid var(--v918-border);
  border-radius: 1rem;
  min-height: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--v918-text-muted);
}

.v918-pay-item i,
.v918-pay-item .material-icons {
  font-size: 2.2rem;
  color: var(--v918-accent);
}

/* Footer */
.v918-footer {
  background: #15222c;
  border-top: 1px solid var(--v918-border);
  padding: 2rem 1.2rem 2.4rem;
}

.v918-footer-brand {
  color: var(--v918-text-muted);
  font-size: 1.25rem;
  line-height: 1.55;
  margin-bottom: 1.4rem;
}

.v918-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.v918-footer-links a {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: rgba(173, 216, 230, 0.06);
  color: var(--v918-primary);
  font-size: 1.2rem;
  font-weight: 600;
}

.v918-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.v918-footer-copy {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Bottom nav - unique pill style */
.v918-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--v918-bottom-h);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(180deg, #1e3040 0%, #15222c 100%);
  border-top: 1px solid rgba(173, 216, 230, 0.28);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35);
  padding: 0.4rem 0.6rem calc(0.4rem + env(safe-area-inset-bottom));
}

.v918-bottom-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--v918-text-muted);
  border-radius: 1.2rem;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
  font-size: 1rem;
  font-weight: 600;
}

.v918-bottom-item i,
.v918-bottom-item .material-icons,
.v918-bottom-item ion-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.v918-bottom-item span {
  font-size: 1rem;
  line-height: 1.1;
}

.v918-bottom-item:active {
  transform: scale(0.92);
}

.v918-bottom-item.v918-active {
  color: #0f1a22;
  background: linear-gradient(145deg, #ADD8E6, #5dade2);
  box-shadow: 0 4px 12px rgba(93, 173, 226, 0.35);
}

.v918-bottom-item.v918-promo-nav {
  color: var(--v918-warning);
}

@media (min-width: 769px) {
  .v918-bottom-nav {
    display: none;
  }
  .v918-main {
    padding-bottom: 3rem;
  }
  body {
    background: #0f171e;
  }
}

/* Desktop widen slightly for readability while keeping mobile-first shell */
@media (min-width: 431px) {
  .v918-game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
