/*!
 * hanna online - core stylesheet
 * Mobile-first gaming website base styles
 * All custom classes use the g966- prefix for namespace isolation
 * Code comments in English only
 */

:root {
  --g966-primary: #880E4F;
  --g966-accent: #FF1493;
  --g966-soft: #FF8A80;
  --g966-bg: #1A1A1A;
  --g966-bg-2: #221318;
  --g966-bg-3: #2a1015;
  --g966-text: #ffffff;
  --g966-text-muted: #c7b8c1;
  --g966-gold: #ffd166;
  --g966-card: #2a1a20;
  --g966-border: rgba(255, 138, 128, 0.25);
  --g966-radius: 12px;
  --g966-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  --g966-header-h: 64px;
  --g966-bottom-h: 62px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--g966-bg);
  color: var(--g966-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--g966-soft);
  text-decoration: none;
}

h1, h2, h3, h4 {
  margin: 0 0 1rem;
  line-height: 1.3;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

/* ============ Layout containers ============ */
.g966-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.g966-wrapper {
  padding-top: var(--g966-header-h);
  padding-bottom: calc(var(--g966-bottom-h) + 1.6rem);
}

.g966-section {
  margin: 2.2rem 0;
  padding: 1.4rem;
  background: var(--g966-bg-2);
  border-radius: var(--g966-radius);
  border: 1px solid var(--g966-border);
}

.g966-section-title {
  font-size: 1.8rem;
  color: var(--g966-gold);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.g966-section-title i {
  color: var(--g966-accent);
}

/* ============ Header ============ */
.g966-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--g966-header-h);
  background: linear-gradient(90deg, var(--g966-primary), var(--g966-bg-3));
  border-bottom: 1px solid var(--g966-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.g966-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--g966-text);
  font-weight: 800;
  font-size: 1.6rem;
}

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

.g966-logo span {
  background: linear-gradient(90deg, var(--g966-soft), var(--g966-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.g966-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-align: center;
  font-family: inherit;
}

.g966-btn:active {
  transform: scale(0.95);
}

.g966-btn-primary {
  background: linear-gradient(90deg, var(--g966-accent), var(--g966-primary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 20, 147, 0.35);
}

.g966-btn-outline {
  background: transparent;
  color: var(--g966-soft);
  border: 1px solid var(--g966-soft);
}

.g966-btn-gold {
  background: linear-gradient(90deg, var(--g966-gold), #ffae42);
  color: #3a1a00;
}

.g966-menu-btn {
  background: transparent;
  border: 1px solid var(--g966-border);
  color: var(--g966-text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

.g966-menu-btn.g966-active {
  background: var(--g966-accent);
  color: #fff;
}

/* ============ Mobile menu ============ */
.g966-mobile-menu {
  position: fixed;
  top: var(--g966-header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--g966-bg-2);
  border-bottom: 1px solid var(--g966-border);
  padding: 1rem 1.2rem 1.4rem;
  z-index: 9999;
  display: none;
  box-shadow: var(--g966-shadow);
}

.g966-mobile-menu.g966-menu-open {
  display: block;
}

.g966-mobile-menu a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--g966-text);
  border-radius: 8px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 138, 128, 0.12);
}

.g966-mobile-menu a:hover,
.g966-mobile-menu a:active {
  background: var(--g966-bg-3);
  color: var(--g966-gold);
}

.g966-mobile-menu a i {
  margin-right: 0.6rem;
  color: var(--g966-accent);
}

/* ============ Carousel ============ */
.g966-carousel {
  position: relative;
  border-radius: var(--g966-radius);
  overflow: hidden;
  margin: 1.4rem 0;
  box-shadow: var(--g966-shadow);
}

.g966-carousel-viewport {
  overflow: hidden;
}

.g966-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.g966-carousel-slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
}

.g966-carousel-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.g966-carousel-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(26, 26, 26, 0.7);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g966-gold);
}

.g966-carousel-dots {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.4rem;
}

.g966-carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
}

.g966-carousel-dot.g966-dot-active {
  background: var(--g966-gold);
  transform: scale(1.25);
}

/* ============ Hero / H1 ============ */
.g966-hero {
  text-align: center;
  padding: 1.4rem 1rem 0.4rem;
}

.g966-hero h1 {
  font-size: 2rem;
  color: var(--g966-gold);
  margin-bottom: 0.6rem;
}

.g966-hero p {
  color: var(--g966-text-muted);
  font-size: 1.35rem;
}

.g966-cta-row {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.g966-cta-row .g966-btn {
  flex: 1 1 auto;
  min-width: 130px;
}

/* ============ Game grid ============ */
.g966-game-block {
  margin: 1.8rem 0;
}

.g966-game-block-title {
  font-size: 1.6rem;
  color: var(--g966-gold);
  border-left: 4px solid var(--g966-accent);
  padding-left: 0.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g966-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.g966-card {
  background: var(--g966-card);
  border-radius: 10px;
  border: 1px solid var(--g966-border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.g966-card:active {
  transform: scale(0.96);
}

.g966-card img {
  width: 100%;
  height: 64px;
  object-fit: cover;
}

.g966-card-name {
  font-size: 1rem;
  color: var(--g966-text);
  padding: 0.4rem 0.2rem 0.5rem;
  line-height: 1.2;
  min-height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============ Info / feature modules ============ */
.g966-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.g966-info-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 138, 128, 0.12);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.g966-info-list li i {
  color: var(--g966-gold);
  margin-top: 0.2rem;
}

.g966-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.g966-feature-item {
  background: var(--g966-card);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid var(--g966-border);
  text-align: center;
}

.g966-feature-item i {
  font-size: 2.4rem;
  color: var(--g966-accent);
  margin-bottom: 0.5rem;
}

.g966-feature-item h3 {
  font-size: 1.3rem;
  color: var(--g966-gold);
  margin-bottom: 0.4rem;
}

.g966-feature-item p {
  font-size: 1.15rem;
  color: var(--g966-text-muted);
  margin: 0;
}

/* ============ Testimonials ============ */
.g966-testimonial {
  background: var(--g966-card);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--g966-gold);
}

.g966-testimonial .g966-stars {
  color: var(--g966-gold);
  margin-bottom: 0.4rem;
}

.g966-testimonial p {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: var(--g966-text);
}

.g966-testimonial .g966-author {
  font-size: 1.1rem;
  color: var(--g966-text-muted);
}

/* ============ Payment methods ============ */
.g966-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.g966-payment-chip {
  background: var(--g966-card);
  border: 1px solid var(--g966-border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 1.15rem;
  color: var(--g966-text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============ Winners ============ */
.g966-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(255, 138, 128, 0.15);
  font-size: 1.2rem;
}

.g966-winner span:first-child {
  color: var(--g966-gold);
  font-weight: 700;
}

.g966-winner span:last-child {
  color: var(--g966-soft);
  font-weight: 700;
}

/* ============ Footer ============ */
.g966-footer {
  background: var(--g966-bg-3);
  padding: 1.6rem 1.2rem 2rem;
  border-top: 1px solid var(--g966-border);
  margin-top: 1.4rem;
}

.g966-footer-brand {
  font-size: 1.25rem;
  color: var(--g966-text-muted);
  margin-bottom: 1rem;
}

.g966-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.g966-footer-links a {
  color: var(--g966-soft);
  font-size: 1.15rem;
  text-decoration: underline;
}

.g966-footer-copy {
  font-size: 1.1rem;
  color: var(--g966-text-muted);
  text-align: center;
}

/* ============ Bottom navigation ============ */
.g966-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--g966-bottom-h);
  background: linear-gradient(90deg, var(--g966-primary), var(--g966-bg-3));
  border-top: 1px solid var(--g966-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

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

.g966-bottom-nav-btn i,
.g966-bottom-nav-btn span.material-symbols-outlined {
  font-size: 22px;
}

.g966-bottom-nav-btn:active {
  transform: scale(0.92);
}

.g966-bottom-nav-btn.g966-nav-active {
  color: var(--g966-gold);
}

.g966-bottom-nav-btn.g966-nav-active i {
  color: var(--g966-gold);
}

/* Desktop: hide bottom nav, show desktop nav row in footer area */
@media (min-width: 769px) {
  .g966-bottom-nav { display: none; }
  body { max-width: 960px; }
  .g966-grid { grid-template-columns: repeat(6, 1fr); }
  .g966-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .g966-desktop-nav { display: flex; }
}

.g966-desktop-nav {
  display: none;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 0.8rem 0 1rem;
}

.g966-desktop-nav a {
  color: var(--g966-soft);
  font-size: 1.2rem;
}

/* ============ Utility ============ */
.g966-text-center { text-align: center; }
.g966-mt-1 { margin-top: 0.6rem; }
.g966-mt-2 { margin-top: 1.2rem; }
.g966-hidden { display: none; }

/* Inline promo link style */
.g966-promo-link {
  color: var(--g966-gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.g966-promo-link:hover {
  color: var(--g966-accent);
}
