/* han online - core design (prefix: g320-) */
/* English comments only */
:root {
  --g320-bg: #0E1621;
  --g320-bg2: #131F30;
  --g320-bg3: #1B2A40;
  --g320-text: #F5F5F5;
  --g320-muted: #708090;
  --g320-primary: #F5C518;
  --g320-primary2: #FF4D5E;
  --g320-accent: #3DD6A6;
  --g320-border: rgba(245,245,245,0.10);
  --g320-radius: 14px;
  --g320-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--g320-bg);
  color: var(--g320-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

a { color: var(--g320-primary); text-decoration: none; }
img { max-width: 100%; display: block; }

.g320-container { width: 100%; padding: 0 1.2rem; }
.g320-wrapper { padding: 1.6rem 1.2rem; }
.g320-section { padding: 2.2rem 1.2rem; border-top: 1px solid var(--g320-border); }
.g320-section h2 { font-size: 2.0rem; line-height: 2.6rem; margin-bottom: 1.0rem; color: var(--g320-text); }
.g320-section h3 { font-size: 1.6rem; margin: 1.2rem 0 0.6rem; color: var(--g320-primary); }
.g320-section p { margin-bottom: 1.0rem; color: #DCE3EA; }
.g320-muted { color: var(--g320-muted); }

/* ===== Header ===== */
.g320-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(14,22,33,0.96);
  border-bottom: 1px solid var(--g320-border);
  max-width: 430px; margin: 0 auto;
}
.g320-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.0rem; height: 56px;
}
.g320-logo { display: flex; align-items: center; gap: 0.6rem; }
.g320-logo img { width: 30px; height: 30px; border-radius: 6px; }
.g320-logo-text { font-size: 1.5rem; font-weight: 700; color: var(--g320-text); }
.g320-logo-text span { color: var(--g320-primary); }
.g320-head-actions { display: flex; align-items: center; gap: 0.5rem; }

.g320-btn {
  border: none; cursor: pointer; border-radius: 10px;
  font-size: 1.3rem; font-weight: 700; padding: 0.7rem 1.2rem;
  min-height: 40px; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.g320-btn:active { transform: scale(0.95); }
.g320-btn-primary { background: var(--g320-primary); color: #1a1300; }
.g320-btn-ghost { background: transparent; color: var(--g320-text); border: 1px solid var(--g320-border); }
.g320-btn-promo { background: var(--g320-primary2); color: #fff; width: 100%; justify-content: center; padding: 1.0rem; font-size: 1.5rem; }

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

/* ===== Mobile expandable menu ===== */
.g320-mobile-menu {
  display: none; flex-direction: column; gap: 0.2rem;
  background: var(--g320-bg2); border-bottom: 1px solid var(--g320-border);
  padding: 0.8rem 1.0rem;
}
.g320-mobile-menu.g320-menu-open { display: flex; }
.g320-mobile-menu a {
  color: var(--g320-text); padding: 0.9rem 0.6rem;
  border-radius: 8px; display: flex; align-items: center; gap: 0.6rem;
}
.g320-mobile-menu a:hover, .g320-mobile-menu a:active { background: var(--g320-bg3); }
.g320-mobile-menu a i { color: var(--g320-primary); width: 20px; text-align: center; }

/* ===== Hero / Carousel ===== */
.g320-hero { margin-top: 56px; }
.g320-carousel { position: relative; }
.g320-slide { display: none; }
.g320-slide img { width: 100%; height: 200px; object-fit: cover; border-radius: 0 0 18px 18px; }
.g320-slide-caption {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: rgba(14,22,33,0.78); border-radius: 12px; padding: 0.8rem 1.0rem;
}
.g320-slide-caption h2 { font-size: 1.7rem; color: var(--g320-primary); margin-bottom: 0.3rem; }
.g320-slide-caption p { font-size: 1.2rem; margin: 0; }
.g320-dots { display: flex; gap: 0.5rem; justify-content: center; padding: 0.8rem 0; }
.g320-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--g320-muted); cursor: pointer; }
.g320-dot.g320-dot-active { background: var(--g320-primary); width: 22px; border-radius: 6px; }

/* ===== Filter chips ===== */
.g320-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding: 1.0rem 1.2rem; }
.g320-chips::-webkit-scrollbar { display: none; }
.g320-chip {
  flex: 0 0 auto; padding: 0.5rem 1.0rem; border-radius: 20px;
  background: var(--g320-bg2); color: var(--g320-text);
  font-size: 1.2rem; cursor: pointer; border: 1px solid var(--g320-border);
}
.g320-chip.g320-chip-active { background: var(--g320-primary); color: #1a1300; border-color: var(--g320-primary); }

/* ===== Game grid ===== */
.g320-game-group { padding: 0.6rem 1.2rem 1.2rem; }
.g320-game-group-title { font-size: 1.6rem; margin-bottom: 0.8rem; color: var(--g320-primary); display: flex; align-items: center; gap: 0.5rem; }
.g320-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.g320-card {
  background: var(--g320-bg2); border: 1px solid var(--g320-border);
  border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform 0.15s ease;
}
.g320-card:active { transform: scale(0.96); }
.g320-card img { width: 100%; height: 78px; object-fit: cover; }
.g320-card-name {
  font-size: 1.05rem; padding: 0.5rem 0.4rem; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--g320-text);
}
.g320-card-badge {
  position: relative;
}
.g320-card-badge::after {
  content: 'HOT'; position: absolute; top: 4px; right: 4px;
  background: var(--g320-primary2); color: #fff; font-size: 0.9rem;
  padding: 1px 5px; border-radius: 6px; font-weight: 700;
}

/* ===== Info / feature blocks ===== */
.g320-cards-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.8rem; }
.g320-info-card {
  background: var(--g320-bg2); border: 1px solid var(--g320-border);
  border-radius: 12px; padding: 1.0rem;
}
.g320-info-card i { font-size: 2.4rem; color: var(--g320-primary); }
.g320-info-card h3 { margin: 0.5rem 0; }
.g320-info-card p { font-size: 1.2rem; color: #C7D0DA; margin: 0; }

.g320-rtp-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--g320-bg2); border-radius: 10px; padding: 0.8rem 1.0rem; margin-bottom: 0.6rem;
  border: 1px solid var(--g320-border);
}
.g320-rtp-row .g320-rtp-name { font-weight: 600; }
.g320-rtp-row .g320-rtp-val { color: var(--g320-accent); font-weight: 700; }

.g320-testimonial {
  background: var(--g320-bg2); border-left: 3px solid var(--g320-primary);
  border-radius: 10px; padding: 1.0rem; margin-bottom: 0.8rem;
}
.g320-testimonial p { margin: 0 0 0.5rem; font-size: 1.25rem; color: #E4EBF2; }
.g320-testimonial .g320-author { font-size: 1.1rem; color: var(--g320-muted); }

.g320-winners {
  display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.4rem;
}
.g320-winner {
  flex: 0 0 auto; background: var(--g320-bg2); border: 1px solid var(--g320-border);
  border-radius: 10px; padding: 0.7rem 0.9rem; min-width: 150px;
}
.g320-winner .g320-wname { font-weight: 700; color: var(--g320-primary); }
.g320-winner .g320-wamt { color: var(--g320-accent); font-weight: 700; font-size: 1.3rem; }
.g320-winner .g320-wgame { font-size: 1.05rem; color: var(--g320-muted); }

.g320-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.g320-pay span {
  background: var(--g320-bg2); border: 1px solid var(--g320-border);
  border-radius: 8px; padding: 0.5rem 0.9rem; font-size: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
}

.g320-cta {
  background: linear-gradient(135deg, var(--g320-primary2), #b8002a);
  border-radius: 14px; padding: 1.6rem 1.2rem; text-align: center; margin: 1.4rem 1.2rem;
}
.g320-cta h3 { color: #fff; font-size: 1.8rem; margin-bottom: 0.4rem; }
.g320-cta p { color: #ffe; margin-bottom: 1.0rem; }

.g320-app-cta {
  background: var(--g320-bg2); border: 1px solid var(--g320-border);
  border-radius: 14px; padding: 1.2rem; display: flex; align-items: center; gap: 1.0rem;
}
.g320-app-cta i { font-size: 3.0rem; color: var(--g320-primary); }

/* ===== SEO text link styling ===== */
.g320-seo-link { color: var(--g320-primary); font-weight: 600; border-bottom: 1px dashed var(--g320-primary); }

/* ===== Footer ===== */
.g320-footer {
  background: var(--g320-bg2); border-top: 1px solid var(--g320-border);
  padding: 1.8rem 1.2rem;
}
.g320-footer-brand { font-size: 1.3rem; color: #C7D0DA; margin-bottom: 1.0rem; }
.g320-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.0rem; margin-bottom: 1.0rem; }
.g320-footer-links a { color: #C7D0DA; font-size: 1.2rem; }
.g320-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.0rem; }
.g320-footer-copy { font-size: 1.1rem; color: var(--g320-muted); }

/* ===== Mobile bottom nav ===== */
.g320-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: 62px; background: rgba(14,22,33,0.98);
  border-top: 1px solid var(--g320-border);
  display: flex; justify-content: space-around; align-items: center;
}
.g320-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--g320-muted); font-size: 1.0rem; gap: 2px; min-width: 60px; min-height: 60px;
  text-decoration: none; transition: color 0.15s ease, transform 0.15s ease;
}
.g320-bottom-nav a:active { transform: scale(0.92); }
.g320-bottom-nav a i, .g320-bottom-nav a .material-icons-outlined, .g320-bottom-nav a .material-icons {
  font-size: 24px;
}
.g320-bottom-nav a.g320-bn-active { color: var(--g320-primary); }
.g320-bottom-nav a.g320-bn-promo { color: var(--g320-primary2); }
.g320-bottom-nav a.g320-bn-promo i { font-size: 26px; }
.g320-bottom-nav .g320-bn-badge {
  position: absolute; top: 6px; right: 18px;
  background: var(--g320-primary2); color: #fff; font-size: 0.9rem;
  border-radius: 8px; padding: 0 4px; font-weight: 700;
}

/* ===== Back to top ===== */
.g320-totop {
  position: fixed; right: 14px; bottom: 76px; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--g320-primary); color: #1a1300; font-size: 1.8rem; cursor: pointer;
  box-shadow: var(--g320-shadow);
}

/* ===== Desktop / responsive ===== */
@media (min-width: 769px) {
  .g320-bottom-nav { display: none; }
  .g320-mobile-menu { display: none !important; }
  .g320-desktop-nav { display: flex; gap: 1.2rem; }
}
.g320-desktop-nav { display: none; }

@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .g320-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 360px) {
  .g320-grid { grid-template-columns: repeat(2, 1fr); }
}
