/* ============================================================
 * 588h.click - Core stylesheet (prefix: pg64-)
 * Mobile-first gaming portal. Canvas: 320-430px.
 * Palette: #FAF0E6 #FF8C00 #CCCCCC #273746 #FFF176 #CD853F
 * ============================================================ */

:root {
  --pg64-cream:   #FAF0E6;
  --pg64-orange:  #FF8C00;
  --pg64-silver:  #CCCCCC;
  --pg64-ink:     #273746;
  --pg64-yellow:  #FFF176;
  --pg64-tan:     #CD853F;

  --pg64-bg:      #18222c;
  --pg64-bg-2:    #20303d;
  --pg64-card:    #22323f;
  --pg64-card-2:  #2a3d4c;
  --pg64-line:    #324654;
  --pg64-text:    #f4ecdc;
  --pg64-muted:   #b6c2cc;
  --pg64-accent:  var(--pg64-orange);
  --pg64-accent2: var(--pg64-yellow);
  --pg64-deep:    var(--pg64-ink);

  --pg64-radius:  14px;
  --pg64-radius-sm: 10px;
  --pg64-shadow: 0 8px 24px rgba(0,0,0,.32);
  --pg64-shadow-soft: 0 3px 12px rgba(0,0,0,.22);
  --pg64-pad:    14px;

  --pg64-header-h: 58px;
  --pg64-bottom-h: 64px;

  --pg64-font: "Hind Siliguri","Noto Sans Bengali","Segoe UI",system-ui,-apple-system,sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--pg64-font);
  color: var(--pg64-text);
  background:
    radial-gradient(1200px 600px at 50% -10%, #2a3d4c 0%, rgba(42,61,76,0) 60%),
    linear-gradient(180deg, #1b2731 0%, #152029 100%);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--pg64-accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* Centered phone canvas on wide screens */
.pg64-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,140,0,.05), rgba(255,140,0,0) 12%),
    linear-gradient(180deg, #1c2832 0%, #162029 100%);
  box-shadow: 0 0 60px rgba(0,0,0,.5);
  position: relative;
  padding-bottom: calc(var(--pg64-bottom-h) + 18px);
}

/* ============ Header ============ */
.pg64-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--pg64-header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, #20303d, #1a2731);
  border-bottom: 1px solid var(--pg64-line);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.pg64-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
  min-width: 0;
}
.pg64-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pg64-orange), var(--pg64-tan));
  display: grid; place-items: center;
  color: #1b1206;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.5px;
  box-shadow: 0 0 0 2px rgba(255,241,118,.25), inset 0 0 10px rgba(255,255,255,.2);
}
.pg64-brand-name {
  display: flex; flex-direction: column; line-height: 1.1; min-width: 0;
}
.pg64-brand-name b { color: var(--pg64-cream); font-size: 17px; letter-spacing: .3px; }
.pg64-brand-name span { color: var(--pg64-muted); font-size: 11px; }

.pg64-actions { display: flex; gap: 6px; align-items: center; }
.pg64-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  min-height: 36px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.pg64-btn:active { transform: translateY(1px) scale(.98); }
.pg64-btn-login {
  background: transparent;
  color: var(--pg64-cream);
  border: 1px solid var(--pg64-line);
}
.pg64-btn-login:hover { background: rgba(255,255,255,.05); text-decoration: none; }
.pg64-btn-register {
  background: linear-gradient(135deg, var(--pg64-orange), var(--pg64-tan));
  color: #1b1206;
  box-shadow: 0 4px 14px rgba(255,140,0,.35);
}
.pg64-btn-register:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(255,140,0,.5); }

.pg64-icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--pg64-line);
  color: var(--pg64-cream);
  display: grid; place-items: center;
  cursor: pointer;
}
.pg64-icon-btn:hover { background: rgba(255,140,0,.12); }
.pg64-icon-btn svg { width: 20px; height: 20px; }

/* ============ Slide-down menu ============ */
.pg64-menu {
  position: absolute;
  top: var(--pg64-header-h);
  left: 0; right: 0;
  background: #1c2832;
  border-bottom: 1px solid var(--pg64-line);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .28s ease, opacity .2s ease, padding .2s ease;
  z-index: 55;
  box-shadow: var(--pg64-shadow);
}
.pg64-menu-open {
  max-height: 540px;
  opacity: 1;
  padding: 14px 12px 18px;
}
.pg64-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--pg64-line);
  color: var(--pg64-cream);
  font-size: 13px;
  font-weight: 600;
}
.pg64-menu a:hover { background: rgba(255,140,0,.12); text-decoration: none; }
.pg64-menu a span.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pg64-accent2); flex: 0 0 auto;
}
.pg64-menu-title {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pg64-muted);
  padding: 2px 4px 4px;
}

/* ============ Hero carousel ============ */
.pg64-hero {
  position: relative;
  margin: 12px;
  border-radius: var(--pg64-radius);
  overflow: hidden;
  box-shadow: var(--pg64-shadow);
  border: 1px solid var(--pg64-line);
}
.pg64-hero-track {
  display: flex;
  transition: transform .45s ease;
}
.pg64-slide {
  flex: 0 0 100%;
  position: relative;
  display: block;
}
.pg64-slide img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
}
.pg64-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,34,44,.05) 30%, rgba(24,34,44,.85) 100%);
}
.pg64-slide-caption {
  position: absolute;
  left: 14px; right: 90px; bottom: 12px;
  z-index: 2;
  color: var(--pg64-cream);
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.pg64-slide-caption b { display:block; font-size: 17px; font-weight: 800; }
.pg64-slide-caption span { font-size: 12px; color: var(--pg64-yellow); }
.pg64-hero-dots {
  position: absolute;
  bottom: 12px; right: 12px;
  z-index: 3;
  display: flex; gap: 6px;
}
.pg64-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: 0; padding: 0; cursor: pointer;
}
.pg64-dot-active {
  background: var(--pg64-orange);
  width: 18px; border-radius: 4px;
}

/* ============ Sections / titles ============ */
.pg64-section {
  margin: 18px 12px 0;
}
.pg64-section-head {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 10px;
}
.pg64-section-head h2 {
  margin: 0;
  font-size: 17px;
  color: var(--pg64-cream);
  font-weight: 800;
}
.pg64-section-head .pg64-bar {
  flex: 1; height: 1px; background: linear-gradient(90deg, var(--pg64-orange), rgba(255,140,0,0));
}
.pg64-section-head a.more {
  font-size: 11px; color: var(--pg64-accent2); font-weight: 600;
}
.pg64-kicker {
  display: inline-block;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--pg64-orange); font-weight: 800;
  margin-bottom: 2px;
}

.pg64-h1 {
  font-size: 22px;
  line-height: 1.35;
  margin: 14px 12px 6px;
  color: var(--pg64-cream);
  font-weight: 800;
}
.pg64-h1 .pg64-h1-mark { color: var(--pg64-orange); }
.pg64-lead {
  margin: 0 12px 4px;
  color: var(--pg64-muted);
  font-size: 13.5px;
}

/* ============ Game grids ============ */
.pg64-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
@media (min-width: 360px) {
  .pg64-grid { gap: 10px; }
}
@media (min-width: 395px) {
  .pg64-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
}

.pg64-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--pg64-card);
  border: 1px solid var(--pg64-line);
  border-radius: var(--pg64-radius-sm);
  padding: 6px 4px 8px;
  text-align: center;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .2s ease, border-color .2s ease;
  opacity: 0; transform: translateY(8px);
}
.pg64-card.pg64-in { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; }
.pg64-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,140,0,.55);
  box-shadow: 0 6px 18px rgba(0,0,0,.32);
  text-decoration: none;
}
.pg64-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #0f1820;
  margin-bottom: 5px;
}
.pg64-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pg64-card-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--pg64-cream);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}

/* Category sub-title strip */
.pg64-cat-head {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 8px;
}
.pg64-cat-head .pg64-tag {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pg64-orange), var(--pg64-tan));
  color: #1b1206; font-weight: 800; font-size: 13px;
}
.pg64-cat-head h3 {
  margin: 0; font-size: 15px; color: var(--pg64-cream); font-weight: 700;
}
.pg64-cat-head .pg64-bar {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--pg64-line), rgba(50,70,84,0));
}

/* ============ Promo strip ============ */
.pg64-promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 12px 0;
}
.pg64-promo-card {
  position: relative;
  border-radius: var(--pg64-radius);
  padding: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--pg64-line);
  min-height: 96px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .14s ease, box-shadow .2s ease;
}
.pg64-promo-card:hover { transform: translateY(-2px); box-shadow: var(--pg64-shadow-soft); text-decoration: none; }
.pg64-promo-card.a { background: linear-gradient(135deg, #ff8c00, #b85b00); color: #1b1206; }
.pg64-promo-card.b { background: linear-gradient(135deg, #273746, #36505f); color: var(--pg64-cream); }
.pg64-promo-card b { font-size: 15px; display:block; font-weight: 800; }
.pg64-promo-card span { font-size: 12px; opacity: .85; }
.pg64-promo-card .pg64-go {
  align-self: flex-start;
  margin-top: 8px;
  font-size: 11px; font-weight: 800;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.9); color: #1b1206;
}

/* ============ Achievements / winners / about ============ */
.pg64-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin: 14px 12px 0;
}
.pg64-stat {
  background: var(--pg64-card);
  border: 1px solid var(--pg64-line);
  border-radius: var(--pg64-radius-sm);
  padding: 12px 8px;
  text-align: center;
}
.pg64-stat b { display:block; color: var(--pg64-orange); font-size: 18px; font-weight: 800; }
.pg64-stat span { color: var(--pg64-muted); font-size: 11px; }

.pg64-winners {
  margin: 14px 12px 0;
  background: var(--pg64-card);
  border: 1px solid var(--pg64-line);
  border-radius: var(--pg64-radius);
  overflow: hidden;
}
.pg64-winners-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(50,70,84,.5);
  font-size: 12.5px;
}
.pg64-winners-row:last-child { border-bottom: 0; }
.pg64-winners-row .pg64-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pg64-tan), var(--pg64-orange));
  color: #1b1206; font-weight: 800; font-size: 12px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.pg64-winners-row b { color: var(--pg64-cream); }
.pg64-winners-row .pg64-amt { margin-left: auto; color: var(--pg64-yellow); font-weight: 700; }

.pg64-about {
  margin: 14px 12px 0;
  background: var(--pg64-card);
  border: 1px solid var(--pg64-line);
  border-radius: var(--pg64-radius);
  padding: 14px;
}
.pg64-about h2 { margin: 0 0 6px; font-size: 16px; color: var(--pg64-cream); }
.pg64-about p { margin: 0 0 10px; color: var(--pg64-muted); font-size: 13.5px; }
.pg64-about p:last-child { margin-bottom: 0; }
.pg64-about a { color: var(--pg64-orange); font-weight: 700; }

/* Inline chips */
.pg64-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 10px 12px 0;
}
.pg64-chip {
  font-size: 11.5px; font-weight: 700;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--pg64-line);
  color: var(--pg64-cream);
  cursor: pointer;
}
.pg64-chip-active {
  background: linear-gradient(135deg, var(--pg64-orange), var(--pg64-tan));
  color: #1b1206; border-color: transparent;
}

/* ============ Extended footer (home only) ============ */
.pg64-ext {
  margin: 22px 12px 0;
  background: linear-gradient(180deg, #1f2e39, #1a2731);
  border: 1px solid var(--pg64-line);
  border-radius: var(--pg64-radius);
  padding: 14px;
}
.pg64-ext h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--pg64-orange);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.pg64-ext p { margin: 0 0 10px; color: var(--pg64-muted); font-size: 13px; }
.pg64-ext-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px;
  margin: 8px 0 12px;
}
.pg64-ext-grid a {
  color: var(--pg64-cream); font-size: 12.5px; font-weight: 600;
  padding: 4px 0;
}
.pg64-ext-grid a:hover { color: var(--pg64-orange); }
.pg64-ext-promos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.pg64-ext-promo {
  display: block;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,140,0,.12);
  border: 1px solid rgba(255,140,0,.4);
  color: var(--pg64-cream);
  font-size: 12px; font-weight: 700;
  text-align: center;
}
.pg64-ext-promo:hover { background: rgba(255,140,0,.22); text-decoration: none; }
.pg64-disclaimer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--pg64-line);
  font-size: 11.5px;
  color: var(--pg64-silver);
  line-height: 1.55;
}

/* ============ Footer (copyright only) ============ */
.pg64-footer {
  margin-top: 18px;
  padding: 12px;
  text-align: center;
  font-size: 11.5px;
  color: var(--pg64-muted);
  border-top: 1px solid var(--pg64-line);
}

/* ============ Bottom navigation (5 roles) ============ */
.pg64-bottom {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: var(--pg64-bottom-h);
  background: linear-gradient(180deg, #20303d, #18222c);
  border-top: 1px solid var(--pg64-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 80;
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}
.pg64-bottom-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  background: transparent;
  border: 0;
  color: var(--pg64-muted);
  font-family: inherit;
  font-size: 10px; font-weight: 600;
  cursor: pointer;
  padding: 6px 2px;
  position: relative;
  text-decoration: none;
  transition: color .15s ease;
}
.pg64-bottom-item:hover { text-decoration: none; }
.pg64-bottom-item svg { width: 22px; height: 22px; }
.pg64-bottom-item .pg64-b-label { line-height: 1; }
.pg64-bottom-active {
  color: var(--pg64-orange);
}
.pg64-bottom-active::before {
  content: "";
  position: absolute;
  top: 0; left: 28%; right: 28%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--pg64-orange), var(--pg64-yellow));
  box-shadow: 0 0 12px rgba(255,140,0,.7);
}
.pg64-bottom-promo {
  color: var(--pg64-cream);
}
.pg64-bottom-promo .pg64-b-pill {
  background: linear-gradient(135deg, var(--pg64-orange), var(--pg64-tan));
  color: #1b1206;
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  margin-top: -12px;
  box-shadow: 0 4px 14px rgba(255,140,0,.45);
}
.pg64-bottom-promo .pg64-b-pill svg { width: 18px; height: 18px; }

/* Utility */
.pg64-reveal {}
.pg64-hidden { display: none !important; }
.pg64-pg64-fine { color: var(--pg64-muted); font-size: 12px; }

/* Long content typography */
.pg64-prose {
  margin: 14px 12px 0;
  background: var(--pg64-card);
  border: 1px solid var(--pg64-line);
  border-radius: var(--pg64-radius);
  padding: 14px;
  color: var(--pg64-muted);
  font-size: 13.5px;
}
.pg64-prose h2 { color: var(--pg64-cream); font-size: 16px; margin: 14px 0 6px; }
.pg64-prose h2:first-child { margin-top: 0; }
.pg64-prose h3 { color: var(--pg64-orange); font-size: 14px; margin: 12px 0 4px; }
.pg64-prose p { margin: 0 0 10px; }
.pg64-prose a { color: var(--pg64-orange); font-weight: 700; }
