/* ============================================================
 * k7777 (k7777.cyou) - mobile-first stylesheet
 * Palette: #FFA500 | #40E0D0 | #0097A7 | #FFD700 | #2E4057
 * Dark #2E4057 backgrounds, light text, high contrast.
 * All custom classes use the "g08f-" prefix.
 * ============================================================ */

:root {
  --g08f-orange: #ffa500;
  --g08f-teal: #40e0d0;
  --g08f-deep: #0097a7;
  --g08f-gold: #ffd700;
  --g08f-ink: #2e4057;
  --g08f-ink-2: #24344a;
  --g08f-ink-3: #1b2738;
  --g08f-card: #2c4159;
  --g08f-line: rgba(255, 255, 255, 0.08);
  --g08f-text: #f4f7fb;
  --g08f-muted: #aab9cc;
  --g08f-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  --g08f-topbar-h: 60px;
  --g08f-bottomnav-h: 64px;
  --g08f-maxw: 430px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--g08f-ink-3);
  color: var(--g08f-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 360px at 50% -120px, rgba(0, 151, 167, 0.28), transparent 60%),
    radial-gradient(800px 320px at 100% 0%, rgba(255, 165, 0, 0.18), transparent 55%),
    linear-gradient(180deg, #20304a 0%, #182236 60%, #131b2b 100%);
  background-attachment: fixed;
}

a { color: var(--g08f-teal); text-decoration: none; }
a:hover { color: var(--g08f-gold); }
img { max-width: 100%; display: block; }

.g08f-wrap {
  max-width: var(--g08f-maxw);
  margin: 0 auto;
  padding: 0 12px;
}

.g08f-locked { overflow: hidden; }

/* ------------------------------------------------------------
 * Top action bar (LOGO-led, fixed)
 * ------------------------------------------------------------ */
.g08f-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--g08f-topbar-h);
  z-index: 60;
  background: linear-gradient(180deg, rgba(20, 30, 47, 0.98), rgba(20, 30, 47, 0.92));
  border-bottom: 1px solid var(--g08f-line);
  backdrop-filter: blur(8px);
}
.g08f-topbar-inner {
  max-width: var(--g08f-maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.g08f-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.g08f-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--g08f-orange), var(--g08f-gold));
  border: 2px solid rgba(255, 215, 0, 0.7);
  box-shadow: 0 4px 10px rgba(255, 165, 0, 0.35);
  flex: 0 0 auto;
}
.g08f-brand-name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.4px;
  color: #fff;
  line-height: 1.05;
  white-space: nowrap;
}
.g08f-brand-name span {
  color: var(--g08f-gold);
}
.g08f-brand-tag {
  font-size: 10px;
  color: var(--g08f-teal);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.g08f-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.g08f-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s;
}
.g08f-btn-login {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--g08f-line);
}
.g08f-btn-register {
  background: linear-gradient(135deg, var(--g08f-orange), var(--g08f-gold));
  color: #2a1d00;
  box-shadow: 0 6px 14px rgba(255, 165, 0, 0.35);
}
.g08f-btn:hover { transform: translateY(-1px); }
.g08f-btn:active { transform: translateY(0); }

.g08f-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--g08f-line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.g08f-menu-btn svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------
 * Compact route panel (drops down from the action bar)
 * ------------------------------------------------------------ */
.g08f-menu-panel {
  position: fixed;
  top: var(--g08f-topbar-h);
  left: 0; right: 0;
  background: linear-gradient(180deg, #1c2a40, #16223a);
  border-bottom: 1px solid var(--g08f-line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  z-index: 59;
  box-shadow: var(--g08f-shadow);
}
.g08f-menu-panel--open { max-height: 460px; }
.g08f-menu-grid {
  max-width: var(--g08f-maxw);
  margin: 0 auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.g08f-menu-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--g08f-line);
  color: var(--g08f-text);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  min-height: 60px;
  justify-content: center;
}
.g08f-menu-link small { color: var(--g08f-teal); font-size: 10px; letter-spacing: 0.4px; }
.g08f-menu-link:hover { background: rgba(64, 224, 208, 0.12); color: #fff; }

/* ------------------------------------------------------------
 * Layout containers
 * ------------------------------------------------------------ */
.g08f-main {
  padding-top: calc(var(--g08f-topbar-h) + 10px);
  padding-bottom: calc(var(--g08f-bottomnav-h) + 24px);
}

.g08f-section { margin: 22px 0; }
.g08f-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  gap: 8px;
}
.g08f-section-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  position: relative;
  padding-left: 12px;
}
.g08f-section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--g08f-orange), var(--g08f-gold));
}
.g08f-section-title em { color: var(--g08f-teal); font-style: normal; }
.g08f-section-link {
  font-size: 12px;
  color: var(--g08f-teal);
  white-space: nowrap;
}

/* ------------------------------------------------------------
 * Hero carousel
 * ------------------------------------------------------------ */
.g08f-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--g08f-shadow);
  background: #0f1828;
  margin-top: 6px;
}
.g08f-hero-track { position: relative; height: 188px; }
.g08f-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
  background: #0f1828;
}
.g08f-hero-slide--active { opacity: 1; }
.g08f-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g08f-hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 14px 16px;
  background: linear-gradient(0deg, rgba(8, 14, 26, 0.92), rgba(8, 14, 26, 0.0));
  color: #fff;
  text-align: left;
}
.g08f-hero-overlay strong { color: var(--g08f-gold); display: block; font-size: 15px; }
.g08f-hero-overlay span { font-size: 12px; color: var(--g08f-teal); }
.g08f-hero-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
}
.g08f-hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
}
.g08f-hero-dot--active { background: var(--g08f-gold); transform: scale(1.25); }

/* ------------------------------------------------------------
 * Quick category chips
 * ------------------------------------------------------------ */
.g08f-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 14px 0 4px;
}
.g08f-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--g08f-line);
  color: var(--g08f-text);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.g08f-chip-ico {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--g08f-deep), var(--g08f-teal));
  color: #06212a;
}
.g08f-chip-ico svg { width: 18px; height: 18px; }
.g08f-chip:hover { background: rgba(64, 224, 208, 0.14); color: #fff; }

/* ------------------------------------------------------------
 * Game grid (4 columns at 320px, 5 at wider)
 * ------------------------------------------------------------ */
.g08f-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 380px) {
  .g08f-grid { grid-template-columns: repeat(5, 1fr); gap: 9px; }
}
.g08f-game {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
  font-family: inherit;
}
.g08f-game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #2c4159, #1f3047);
  border: 1px solid var(--g08f-line);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}
.g08f-game-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.g08f-game:hover .g08f-game-thumb img { transform: scale(1.06); }
.g08f-game-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.18), transparent 60%);
  pointer-events: none;
}
.g08f-game-name {
  font-size: 11.5px;
  color: var(--g08f-text);
  font-weight: 600;
  line-height: 1.25;
  min-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------------------
 * Promo CTA strip
 * ------------------------------------------------------------ */
.g08f-promo-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.g08f-promo-card {
  border-radius: 14px;
  padding: 12px;
  border: 1px solid var(--g08f-line);
  background: linear-gradient(135deg, rgba(0, 151, 167, 0.32), rgba(255, 165, 0, 0.18));
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.g08f-promo-card h3 { margin: 0 0 4px; font-size: 14px; color: var(--g08f-gold); }
.g08f-promo-card p { margin: 0; font-size: 12px; color: var(--g08f-text); opacity: 0.92; }
.g08f-promo-card .g08f-promo-cta {
  margin-top: 8px;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--g08f-gold);
  color: #2a1d00;
  font-weight: 700;
  font-size: 12px;
}

/* ------------------------------------------------------------
 * Info blocks / FAQ / paragraphs
 * ------------------------------------------------------------ */
.g08f-prose {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--g08f-line);
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
}
.g08f-prose h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--g08f-gold);
}
.g08f-prose h3 {
  margin: 12px 0 4px;
  font-size: 14px;
  color: var(--g08f-teal);
}
.g08f-prose p { margin: 0 0 8px; color: var(--g08f-text); font-size: 13.5px; }
.g08f-prose ul { margin: 6px 0 10px; padding-left: 18px; }
.g08f-prose li { margin-bottom: 4px; font-size: 13px; }

.g08f-faq-item {
  border-bottom: 1px dashed var(--g08f-line);
  padding: 10px 0;
}
.g08f-faq-item:last-child { border-bottom: none; }
.g08f-faq-item h3 {
  margin: 0 0 4px;
  font-size: 13.5px;
  color: var(--g08f-gold);
}
.g08f-faq-item p { margin: 0; font-size: 13px; color: var(--g08f-text); }

.g08f-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.g08f-feature {
  border: 1px solid var(--g08f-line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px;
}
.g08f-feature .g08f-feature-ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--g08f-orange), var(--g08f-gold));
  color: #2a1d00;
  margin-bottom: 6px;
}
.g08f-feature h3 { margin: 0 0 3px; font-size: 13px; color: #fff; }
.g08f-feature p { margin: 0; font-size: 12px; color: var(--g08f-muted); }

/* ------------------------------------------------------------
 * Extended footer (homepage-only)
 * ------------------------------------------------------------ */
.g08f-extended {
  margin: 22px 0 8px;
  border-top: 1px solid var(--g08f-line);
  padding-top: 16px;
}
.g08f-extended-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.g08f-ext-card {
  border: 1px solid var(--g08f-line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px 12px;
}
.g08f-ext-card h4 {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--g08f-teal);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.g08f-ext-card a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  font-size: 12.5px;
  color: var(--g08f-text);
  border-bottom: 1px solid var(--g08f-line);
}
.g08f-ext-card a:last-child { border-bottom: none; }
.g08f-ext-card a::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--g08f-gold);
  flex: 0 0 auto;
}
.g08f-ext-card a:hover { color: var(--g08f-gold); }
.g08f-disclaimer {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.06);
  border: 1px dashed rgba(255, 215, 0, 0.32);
  font-size: 11.5px;
  color: var(--g08f-muted);
}
.g08f-disclaimer strong { color: var(--g08f-gold); }

/* ------------------------------------------------------------
 * Universal footer (copyright + bottom nav mount)
 * ------------------------------------------------------------ */
.g08f-footer {
  margin-top: 18px;
  padding: 14px 0 calc(var(--g08f-bottomnav-h) + 14px);
  text-align: center;
  color: var(--g08f-muted);
  font-size: 11.5px;
  border-top: 1px solid var(--g08f-line);
}
.g08f-footer small { color: var(--g08f-muted); }

/* ------------------------------------------------------------
 * Layered bottom navigation (5 roles, fixed)
 * ------------------------------------------------------------ */
.g08f-bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--g08f-bottomnav-h);
  z-index: 58;
  background: linear-gradient(180deg, rgba(22, 33, 54, 0.98), rgba(15, 24, 40, 0.99));
  border-top: 1px solid var(--g08f-line);
  backdrop-filter: blur(10px);
}
.g08f-bottomnav-inner {
  max-width: var(--g08f-maxw);
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
}
.g08f-bottomnav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--g08f-muted);
  background: transparent;
  border: none;
  padding: 6px 2px 4px;
  font-size: 10px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.g08f-bottomnav-item::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 0; height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--g08f-orange), var(--g08f-gold));
  border-radius: 0 0 4px 4px;
  transition: width 0.22s ease;
}
.g08f-bottomnav-item--active::before,
.g08f-bottomnav-item:hover::before { width: 32px; }
.g08f-bottomnav-item svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}
.g08f-bottomnav-item--active svg,
.g08f-bottomnav-item:hover svg { transform: translateY(-1px); }
.g08f-bottomnav-item--active { color: var(--g08f-teal); }
.g08f-bottomnav-item--active svg { fill: rgba(64, 224, 208, 0.18); stroke: var(--g08f-teal); }
.g08f-bottomnav-item--promo svg { stroke: var(--g08f-gold); }
.g08f-bottomnav-label {
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0.92;
}

/* ------------------------------------------------------------
 * Toast (non-blocking feedback)
 * ------------------------------------------------------------ */
.g08f-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--g08f-bottomnav-h) + 18px);
  transform: translate(-50%, 20px);
  background: rgba(15, 24, 40, 0.96);
  color: #fff;
  border: 1px solid var(--g08f-gold);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 86%;
  text-align: center;
  box-shadow: var(--g08f-shadow);
}
.g08f-toast--show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------
 * Helpers
 * ------------------------------------------------------------ */
.g08f-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.g08f-hide { display: none !important; }

/* Keep the mobile canvas on wider screens (no desktop layout). */
body { max-width: 100%; }
@media (min-width: 480px) {
  html { background: #0c1322; }
  body {
    max-width: var(--g08f-maxw);
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  }
  .g08f-topbar, .g08f-bottomnav, .g08f-menu-panel { max-width: var(--g08f-maxw); }
  .g08f-topbar { left: 50%; transform: translateX(-50%); right: auto; width: 100%; }
  .g08f-bottomnav { left: 50%; transform: translateX(-50%); right: auto; width: 100%; }
  .g08f-menu-panel { left: 50%; transform: translateX(-50%); right: auto; width: 100%; }
}
