/* ============================================================
   33ok.homes - theme (prefix: g071-)
   Palette: #2D2D2D bg | #FFDFBA light text
            accents #FFBF00 / #FFB74D / #FFCC02
   Canvas: 320-430px mobile-first, centered on wider screens
   ============================================================ */

:root {
  --g071-bg:        #2D2D2D;
  --g071-bg-2:      #1c1c1c;
  --g071-bg-3:      #3a3a3a;
  --g071-card:      #353535;
  --g071-card-2:    #404040;
  --g071-line:      rgba(255, 223, 186, 0.14);
  --g071-text:      #FFDFBA;
  --g071-text-soft: #e9c89a;
  --g071-text-mut:  #b79a6c;
  --g071-amber:     #FFBF00;
  --g071-amber-2:   #FFB74D;
  --g071-amber-3:   #FFCC02;
  --g071-cream:     #FFDFBA;
  --g071-shadow:    0 6px 22px rgba(0, 0, 0, 0.45);
  --g071-radius:    14px;
  --g071-radius-sm: 10px;
  --g071-radius-lg: 20px;
  --g071-header-h:  58px;
  --g071-bottom-h:  64px;
  --g071-max:       480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--g071-bg);
  color: var(--g071-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi",
               "Siyam Rupali", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  /* centered mobile canvas on wide screens */
  background:
    radial-gradient(900px 540px at 50% -120px, #46341a 0%, rgba(70,52,26,0) 60%),
    var(--g071-bg);
}

a { color: var(--g071-amber-2); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--g071-amber); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; display: block; }

.g071-wrap {
  width: 100%;
  max-width: var(--g071-max);
  margin: 0 auto;
  padding-left: 14px;
  padding-right: 14px;
}

/* ============================================================
   Header (non-symmetric brand header)
   ============================================================ */
.g071-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--g071-header-h);
  background: linear-gradient(180deg, #1c1c1c 0%, #2a2418 100%);
  border-bottom: 1px solid var(--g071-line);
  box-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

.g071-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--g071-max);
  margin: 0 auto;
  padding: 0 12px;
}

.g071-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.g071-brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: radial-gradient(circle at 30% 30%, #fff3d6 0%, #FFDFBA 40%, #FFB74D 100%);
  padding: 2px;
  border: 1px solid var(--g071-amber);
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
  object-fit: cover;
}
.g071-brand__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.g071-brand__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--g071-amber-3);
  white-space: nowrap;
}
.g071-brand__tag {
  font-size: 10px;
  color: var(--g071-text-mut);
  white-space: nowrap;
}

.g071-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.25s ease, color 0.25s ease,
              box-shadow 0.25s ease;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.g071-btn:active { transform: scale(0.96); }

.g071-btn--login {
  background: transparent;
  color: var(--g071-cream);
  border: 1px solid var(--g071-amber);
}
.g071-btn--login:hover { background: rgba(255,191,0,0.10); }

.g071-btn--register {
  background: linear-gradient(135deg, #FFCC02 0%, #FFB74D 60%, #FFBF00 100%);
  color: #2a1d05;
  box-shadow: 0 4px 12px rgba(255, 191, 0, 0.35);
}
.g071-btn--register:hover { box-shadow: 0 6px 18px rgba(255, 191, 0, 0.55); }

.g071-iconbtn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,223,186,0.06);
  border: 1px solid var(--g071-line);
  color: var(--g071-cream);
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}
.g071-iconbtn:hover { background: rgba(255,191,0,0.12); color: var(--g071-amber-3); }
.g071-iconbtn svg { width: 20px; height: 20px; display: block; }

/* ============================================================
   Drawer (分区下拉菜单) - slides below header
   ============================================================ */
.g071-drawer {
  position: fixed;
  top: var(--g071-header-h);
  left: 0;
  right: 0;
  z-index: 55;
  max-width: var(--g071-max);
  margin: 0 auto;
  background: #1c1c1c;
  border-left: 1px solid var(--g071-line);
  border-right: 1px solid var(--g071-line);
  border-bottom: 1px solid var(--g071-line);
  border-radius: 0 0 var(--g071-radius-lg) var(--g071-radius-lg);
  box-shadow: var(--g071-shadow);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.g071-drawer--open { max-height: 80vh; overflow-y: auto; }

.g071-drawer__sect { padding: 12px 14px 6px; }
.g071-drawer__h {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--g071-text-mut);
  margin: 0 0 8px;
}
.g071-drawer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.g071-drawer__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: var(--g071-radius-sm);
  background: var(--g071-card);
  border: 1px solid var(--g071-line);
  color: var(--g071-text);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: background 0.22s ease, transform 0.18s ease, color 0.22s ease;
}
.g071-drawer__link:hover {
  background: var(--g071-card-2);
  color: var(--g071-amber-3);
}
.g071-drawer__link:active { transform: scale(0.97); }
.g071-drawer__link svg { width: 22px; height: 22px; color: var(--g071-amber-2); }

/* ============================================================
   Main / sections
   ============================================================ */
.g071-main {
  padding-top: 12px;
  padding-bottom: calc(var(--g071-bottom-h) + 24px);
}

.g071-section { margin: 22px 0; }
.g071-section__h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  color: var(--g071-amber-3);
}
.g071-section__h::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, #FFCC02, #FFB74D);
}
.g071-section__sub {
  font-size: 12.5px;
  color: var(--g071-text-soft);
  margin: -6px 0 12px;
}

/* ============================================================
   Hero carousel
   ============================================================ */
.g071-hero {
  position: relative;
  border-radius: var(--g071-radius-lg);
  overflow: hidden;
  box-shadow: var(--g071-shadow);
  background: #111;
}
.g071-slides { position: relative; }
.g071-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.g071-slide--active { display: block; }
.g071-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.g071-slide__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: var(--g071-cream);
  font-size: 14px;
  font-weight: 700;
}
.g071-slide__cap small {
  display: block;
  font-weight: 500;
  color: var(--g071-amber-2);
  font-size: 11px;
  margin-top: 2px;
}

.g071-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: var(--g071-cream);
  border: 1px solid rgba(255,223,186,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
}
.g071-hero__nav:hover { background: rgba(255,191,0,0.55); }
.g071-hero__nav--prev { left: 8px; }
.g071-hero__nav--next { right: 8px; }

.g071-dots {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}
.g071-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,223,186,0.35);
  border: none;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.g071-dot--active {
  background: var(--g071-amber-3);
  width: 18px;
  border-radius: 6px;
}

/* ============================================================
   Quick action bar under hero
   ============================================================ */
.g071-quickrow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0 4px;
}
.g071-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
  background: var(--g071-card);
  border: 1px solid var(--g071-line);
  border-radius: var(--g071-radius-sm);
  color: var(--g071-text);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.18s ease, color 0.22s ease;
}
.g071-quick:hover { background: var(--g071-card-2); color: var(--g071-amber-3); }
.g071-quick:active { transform: scale(0.96); }
.g071-quick svg { width: 22px; height: 22px; color: var(--g071-amber-2); }

/* ============================================================
   Category chips
   ============================================================ */
.g071-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  -webkit-overflow-scrolling: touch;
}
.g071-chips::-webkit-scrollbar { height: 0; }
.g071-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--g071-card);
  border: 1px solid var(--g071-line);
  color: var(--g071-text-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}
.g071-chip--active {
  background: linear-gradient(135deg, #FFCC02, #FFB74D);
  color: #2a1d05;
  border-color: transparent;
}

/* ============================================================
   Game grid (4 columns)
   ============================================================ */
.g071-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 375px) {
  .g071-grid { gap: 10px; }
}

.g071-gamecard {
  background: var(--g071-card);
  border: 1px solid var(--g071-line);
  border-radius: var(--g071-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.g071-gamecard:hover {
  transform: translateY(-2px);
  border-color: var(--g071-amber);
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}
.g071-gamecard--hidden { display: none; }
.g071-gamecard__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #222;
}
.g071-gamecard__name {
  font-size: 11px;
  font-weight: 600;
  color: var(--g071-text);
  padding: 5px 6px 7px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sub-grid for "compact directory" use */
.g071-grid--5 { grid-template-columns: repeat(5, 1fr); }
.g071-grid--5 .g071-gamecard__name { font-size: 10px; padding: 4px 3px 6px; }

/* ============================================================
   Promo card cluster
   ============================================================ */
.g071-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.g071-promo {
  position: relative;
  border-radius: var(--g071-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #3a2c12 0%, #2a1d05 100%);
  border: 1px solid var(--g071-line);
  padding: 14px 12px;
  min-height: 92px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease;
}
.g071-promo:hover { transform: translateY(-2px); box-shadow: var(--g071-shadow); }
.g071-promo__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,204,2,0.15);
  color: var(--g071-amber-3);
  margin-bottom: 6px;
}
.g071-promo__t {
  font-size: 14px;
  font-weight: 800;
  color: var(--g071-cream);
  margin: 0 0 4px;
}
.g071-promo__d {
  font-size: 11.5px;
  color: var(--g071-text-soft);
  margin: 0;
  line-height: 1.45;
}

/* ============================================================
   Article / SEO text blocks
   ============================================================ */
.g071-article {
  background: var(--g071-card);
  border: 1px solid var(--g071-line);
  border-radius: var(--g071-radius);
  padding: 16px 14px;
}
.g071-article h2 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--g071-amber-3);
  margin: 16px 0 8px;
  line-height: 1.35;
}
.g071-article h2:first-child { margin-top: 0; }
.g071-article h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--g071-amber-2);
  margin: 12px 0 6px;
}
.g071-article p {
  margin: 0 0 10px;
  color: var(--g071-text);
  font-size: 14px;
  line-height: 1.75;
}
.g071-article ul, .g071-article ol {
  margin: 0 0 10px;
  padding-left: 20px;
}
.g071-article li { margin-bottom: 6px; font-size: 13.5px; }
.g071-article a { color: var(--g071-amber-2); text-decoration: underline; text-underline-offset: 2px; }

.g071-note {
  background: rgba(255,204,2,0.07);
  border-left: 3px solid var(--g071-amber);
  padding: 10px 12px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 12.5px;
  color: var(--g071-text-soft);
}

/* FAQ */
.g071-faq {
  background: var(--g071-card);
  border: 1px solid var(--g071-line);
  border-radius: var(--g071-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.g071-faq__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--g071-cream);
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}
.g071-faq__q .g071-faq__sign {
  width: 20px; height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: var(--g071-amber);
  color: #2a1d05;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.g071-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px;
  color: var(--g071-text-soft);
  font-size: 13px;
}
.g071-faq--open .g071-faq__a { max-height: 320px; padding: 0 14px 12px; }
.g071-faq--open .g071-faq__sign { transform: rotate(45deg); }

/* ============================================================
   Two-column directory (footer extension)
   ============================================================ */
.g071-dir {
  background: var(--g071-bg-2);
  border: 1px solid var(--g071-line);
  border-radius: var(--g071-radius);
  padding: 14px;
}
.g071-dir__h {
  font-size: 13px;
  font-weight: 800;
  color: var(--g071-amber-3);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.g071-dir__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
}
.g071-dir__cols a {
  color: var(--g071-text-soft);
  font-size: 12.5px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--g071-line);
  transition: color 0.22s ease;
}
.g071-dir__cols a:hover { color: var(--g071-amber-3); }

.g071-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFCC02, #FFB74D);
  color: #2a1d05;
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
  border: none;
  margin: 14px 0 4px;
  transition: transform 0.18s ease, box-shadow 0.25s ease;
}
.g071-cta:hover { box-shadow: 0 6px 18px rgba(255,191,0,0.5); }

/* ============================================================
   Footer
   ============================================================ */
.g071-footer {
  background: #1a1a1a;
  border-top: 1px solid var(--g071-line);
  padding: 18px 0 calc(var(--g071-bottom-h) + 18px);
  margin-top: 16px;
}
.g071-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.g071-footer__brand img {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--g071-card);
  padding: 2px;
  border: 1px solid var(--g071-amber);
}
.g071-footer__name {
  font-size: 17px; font-weight: 800; color: var(--g071-amber-3);
}
.g071-footer__desc {
  font-size: 12.5px;
  color: var(--g071-text-soft);
  line-height: 1.65;
  margin: 0 0 12px;
}
.g071-footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin-bottom: 12px;
}
.g071-footer__links a {
  color: var(--g071-text-soft);
  font-size: 12.5px;
  transition: color 0.22s ease;
}
.g071-footer__links a:hover { color: var(--g071-amber-3); }
.g071-footer__copy {
  font-size: 11px;
  color: var(--g071-text-mut);
  border-top: 1px solid var(--g071-line);
  padding-top: 10px;
  line-height: 1.6;
}

/* ============================================================
   Mobile bottom nav (分区底部条)
   ============================================================ */
.g071-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  max-width: var(--g071-max);
  margin: 0 auto;
  height: var(--g071-bottom-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, #2a2418 0%, #1a1a1a 100%);
  border-top: 1px solid var(--g071-line);
  box-shadow: 0 -3px 16px rgba(0,0,0,0.5);
}
.g071-bottom__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--g071-text-mut);
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 2px 4px;
  transition: color 0.25s ease;
}
.g071-bottom__item::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #FFCC02, #FFB74D);
  transition: width 0.28s ease;
}
.g071-bottom__item:hover { color: var(--g071-cream); }
.g071-bottom__item--active { color: var(--g071-amber-3); }
.g071-bottom__item--active::before { width: 28px; }
.g071-bottom__item svg {
  width: 22px; height: 22px;
  display: block;
}
.g071-bottom__item--promo svg { color: var(--g071-amber-2); }

/* ============================================================
   Back-to-top
   ============================================================ */
.g071-totop {
  position: fixed;
  right: 14px;
  bottom: calc(var(--g071-bottom-h) + 14px);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFCC02, #FFB74D);
  color: #2a1d05;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 65;
  box-shadow: var(--g071-shadow);
}
.g071-totop--show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ============================================================
   Utility
   ============================================================ */
.g071-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;
}
.g071-center { text-align: center; }

/* Stable layout: prevent overflow from long names / fixed elements */
.g071-gamecard, .g071-promo, .g071-quick { min-width: 0; }

@media (min-width: 481px) {
  body { background: #111; }
  .g071-shell {
    max-width: var(--g071-max);
    margin: 0 auto;
    background:
      radial-gradient(900px 540px at 50% -120px, #46341a 0%, rgba(70,52,26,0) 60%),
      var(--g071-bg);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
  }
}
