/* ============================================================
 * 555bd.homes - Mobile Shell Stylesheet
 * Prefix: pg02-  (all classes and CSS variables)
 * Canvas: 320-430px mobile-first; centered phone canvas on wide
 *         screens. No desktop-wide layout.
 * Palette: #141414 / #B0E0E6 / #FFE4B5 / #8B4513 / #FFEFD5
 * Comments in English.
 * ============================================================ */

:root {
  --pg02-bg: #141414;
  --pg02-bg-soft: #1d1b19;
  --pg02-bg-card: #211d18;
  --pg02-bg-elev: #2a2317;
  --pg02-text: #FFEFD5;
  --pg02-text-dim: #d8c7a4;
  --pg02-mute: #9b8d72;
  --pg02-accent: #B0E0E6;
  --pg02-accent-2: #FFE4B5;
  --pg02-brand: #8B4513;
  --pg02-line: rgba(255, 239, 213, 0.12);
  --pg02-line-strong: rgba(176, 224, 230, 0.35);
  --pg02-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --pg02-radius: 12px;
  --pg02-radius-sm: 9px;
  --pg02-gap: 12px;
  --pg02-touch: 44px;
  --pg02-header-h: 56px;
  --pg02-nav-h: 62px;
  --pg02-maxw: 430px;
}

* { box-sizing: border-box; }

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

img { max-width: 100%; display: block; }
a { color: var(--pg02-accent); text-decoration: none; }
a:hover, a:focus { color: var(--pg02-accent-2); }
button { font-family: inherit; }

/* Phone canvas frame on wide screens */
.pg02-canvas {
  width: 100%;
  max-width: var(--pg02-maxw);
  margin: 0 auto;
  background: var(--pg02-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

/* ===================== HEADER ===================== */
.pg02-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--pg02-header-h);
  background: linear-gradient(180deg, #1a1714 0%, #141414 100%);
  border-bottom: 1px solid var(--pg02-line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.pg02-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pg02-accent-2);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 18px;
  flex: 1;
  min-width: 0;
}
.pg02-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--pg02-brand);
}
.pg02-brand small {
  font-size: 11px;
  color: var(--pg02-mute);
  font-weight: 500;
  display: block;
  letter-spacing: 0;
}

.pg02-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pg02-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .15s ease, box-shadow .25s ease, background .2s;
}
.pg02-btn-login {
  background: transparent;
  color: var(--pg02-accent-2);
  border: 1px solid var(--pg02-line-strong);
}
.pg02-btn-register {
  background: linear-gradient(135deg, #8B4513 0%, #c46a1d 100%);
  color: #fff8ec;
  box-shadow: 0 0 12px rgba(196, 106, 29, 0.35);
}
.pg02-btn:hover { transform: translateY(-1px); }
.pg02-btn:active { transform: translateY(0); }

.pg02-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--pg02-line);
  background: var(--pg02-bg-elev);
  color: var(--pg02-accent-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pg02-icon-btn svg { width: 18px; height: 18px; }

/* ===================== MENU LAYER ===================== */
.pg02-menu-layer {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.55);
  visibility: hidden;
  opacity: 0;
  transition: opacity .22s ease, visibility .22s;
  z-index: 90;
}
.pg02-menu-layer.pg02-menu-open {
  visibility: visible;
  opacity: 1;
}
.pg02-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(82%, 340px);
  background: linear-gradient(180deg, #1c1814 0%, #141414 100%);
  border-left: 1px solid var(--pg02-line);
  transform: translateX(100%);
  transition: transform .26s ease;
  padding: 18px 16px calc(var(--pg02-nav-h) + 18px);
  overflow-y: auto;
}
.pg02-menu-open .pg02-menu-panel { transform: translateX(0); }

.pg02-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.pg02-menu-title {
  font-size: 16px;
  color: var(--pg02-accent-2);
  font-weight: 700;
}
.pg02-menu-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--pg02-line);
  background: transparent;
  color: var(--pg02-accent-2);
  font-size: 18px;
  cursor: pointer;
}

.pg02-menu-section {
  margin-bottom: 16px;
}
.pg02-menu-section h4 {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--pg02-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pg02-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 10px;
  color: var(--pg02-text);
  font-size: 14.5px;
  border: 1px solid transparent;
}
.pg02-menu-link:hover, .pg02-menu-link:focus {
  background: var(--pg02-bg-elev);
  border-color: var(--pg02-line);
  color: var(--pg02-accent-2);
}
.pg02-menu-link svg { width: 18px; height: 18px; color: var(--pg02-accent); }
.pg02-menu-cta {
  display: flex;
  gap: 8px;
  margin: 12px 0 18px;
}
.pg02-menu-cta .pg02-btn { flex: 1; justify-content: center; }

/* ===================== HERO ===================== */
.pg02-main { padding-bottom: calc(var(--pg02-nav-h) + 16px); }

.pg02-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--pg02-line);
}
.pg02-hero-track {
  display: flex;
  transition: transform .42s ease;
  will-change: transform;
}
.pg02-slide {
  flex: 0 0 100%;
  position: relative;
}
.pg02-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.pg02-slide-cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.7) 100%);
  padding: 24px 12px 10px;
  border-radius: 0 0 var(--pg02-radius) var(--pg02-radius);
}
.pg02-slide-cap h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #fff5dd;
  line-height: 1.35;
}
.pg02-slide-cap p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--pg02-text-dim);
}
.pg02-slide-cap .pg02-btn {
  padding: 0 16px;
  font-size: 13px;
}

.pg02-hero-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.55);
  border: 1px solid var(--pg02-line);
  color: var(--pg02-accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pg02-hero-prev { left: 8px; }
.pg02-hero-next { right: 8px; }
.pg02-hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.pg02-hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 239, 213, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
}
.pg02-hero-dot[aria-current="true"] {
  background: var(--pg02-accent);
  width: 16px;
  border-radius: 4px;
}

/* ===================== SECTIONS ===================== */
.pg02-section {
  padding: 18px 12px 6px;
}
.pg02-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.pg02-section-head h2 {
  margin: 0;
  font-size: 17px;
  color: var(--pg02-accent-2);
  position: relative;
  padding-bottom: 6px;
}
.pg02-section-head h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 38px; height: 2px;
  background: var(--pg02-accent);
  border-radius: 2px;
}
.pg02-section-more {
  font-size: 12px;
  color: var(--pg02-accent);
}

.pg02-intro {
  padding: 14px 14px 4px;
}
.pg02-intro h1 {
  font-size: 21px;
  line-height: 1.35;
  margin: 0 0 8px;
  color: #fff5dd;
}
.pg02-intro h1 .pg02-hl {
  color: var(--pg02-accent);
}
.pg02-intro p {
  margin: 0 0 8px;
  color: var(--pg02-text-dim);
  font-size: 13.5px;
}

/* Filter chips */
.pg02-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 12px 10px;
  scrollbar-width: none;
}
.pg02-chips::-webkit-scrollbar { display: none; }
.pg02-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--pg02-line);
  background: var(--pg02-bg-card);
  color: var(--pg02-text-dim);
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}
.pg02-chip[aria-current="true"],
.pg02-chip:hover {
  background: var(--pg02-bg-elev);
  color: var(--pg02-accent-2);
  border-color: var(--pg02-line-strong);
}

/* ===================== GAME GRID ===================== */
.pg02-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (min-width: 360px) {
  .pg02-grid { gap: 11px; }
}
@media (min-width: 400px) {
  .pg02-grid { grid-template-columns: repeat(5, 1fr); }
}

.pg02-game {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  cursor: pointer;
  text-align: center;
  background: var(--pg02-bg-card);
  border-radius: var(--pg02-radius-sm);
  padding: 6px 4px 8px;
  border: 1px solid var(--pg02-line);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s;
}
.pg02-game:hover, .pg02-game:focus-within {
  transform: translateY(-2px);
  border-color: var(--pg02-line-strong);
  box-shadow: var(--pg02-shadow);
}
.pg02-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  object-fit: cover;
  background: #0f0e0c;
  margin-bottom: 5px;
}
.pg02-game-name {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--pg02-text);
  min-height: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 2px;
}
.pg02-game-tag {
  font-size: 9.5px;
  color: var(--pg02-brand);
  background: var(--pg02-accent-2);
  border-radius: 4px;
  padding: 1px 6px;
  display: inline-block;
  margin-top: 3px;
  font-weight: 700;
}

/* ===================== INFO CARDS ===================== */
.pg02-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pg02-card {
  background: var(--pg02-bg-card);
  border: 1px solid var(--pg02-line);
  border-radius: var(--pg02-radius);
  padding: 14px;
}
.pg02-card h3 {
  margin: 0 0 6px;
  font-size: 14.5px;
  color: var(--pg02-accent-2);
}
.pg02-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--pg02-text-dim);
}
.pg02-card-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(176, 224, 230, 0.12);
  color: var(--pg02-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.pg02-card-icon svg { width: 18px; height: 18px; }

/* Winners list */
.pg02-winners {
  background: var(--pg02-bg-card);
  border: 1px solid var(--pg02-line);
  border-radius: var(--pg02-radius);
  overflow: hidden;
}
.pg02-winner-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px dashed var(--pg02-line);
  font-size: 12.5px;
}
.pg02-winner-row:last-child { border-bottom: none; }
.pg02-winner-rank {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--pg02-brand);
  color: #fff5dd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.pg02-winner-name { color: var(--pg02-text); font-weight: 600; }
.pg02-winner-game { color: var(--pg02-mute); font-size: 11.5px; }
.pg02-winner-prize { color: var(--pg02-accent-2); font-weight: 700; }

/* Steps */
.pg02-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.pg02-steps li {
  position: relative;
  padding: 8px 0 8px 36px;
  counter-increment: step;
  font-size: 13px;
  color: var(--pg02-text-dim);
  border-bottom: 1px dashed var(--pg02-line);
}
.pg02-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--pg02-brand);
  color: #fff5dd;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
.pg02-faq {
  border: 1px solid var(--pg02-line);
  border-radius: var(--pg02-radius);
  background: var(--pg02-bg-card);
  overflow: hidden;
}
.pg02-faq details {
  border-bottom: 1px solid var(--pg02-line);
  padding: 12px 14px;
}
.pg02-faq details:last-child { border-bottom: none; }
.pg02-faq summary {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--pg02-accent-2);
  cursor: pointer;
  list-style: none;
}
.pg02-faq summary::-webkit-details-marker { display: none; }
.pg02-faq summary::before {
  content: '+';
  display: inline-block;
  margin-right: 8px;
  color: var(--pg02-accent);
  font-weight: 700;
}
.pg02-faq details[open] summary::before { content: '−'; }
.pg02-faq p {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--pg02-text-dim);
}

/* ===================== EXTENDED FOOTER ===================== */
.pg02-ext-footer {
  background: linear-gradient(180deg, #161311 0%, #100e0c 100%);
  border-top: 1px solid var(--pg02-line);
  padding: 18px 14px 8px;
  margin-top: 12px;
}
.pg02-ext-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pg02-ext-col h4 {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--pg02-accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pg02-ext-col p {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--pg02-text-dim);
}
.pg02-ext-links {
  list-style: none;
  margin: 0; padding: 0;
}
.pg02-ext-links li { margin-bottom: 5px; }
.pg02-ext-links a {
  font-size: 12.5px;
  color: var(--pg02-text-dim);
}
.pg02-ext-links a:hover { color: var(--pg02-accent-2); }

.pg02-promo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.pg02-promo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 9px;
  background: var(--pg02-bg-elev);
  border: 1px solid var(--pg02-line-strong);
  color: var(--pg02-accent-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  text-align: center;
}
.pg02-promo-btn:hover { background: #34291a; }
.pg02-promo-btn svg { width: 14px; height: 14px; color: var(--pg02-accent); }

.pg02-disclaimer {
  font-size: 11px;
  color: var(--pg02-mute);
  border-top: 1px dashed var(--pg02-line);
  padding-top: 10px;
  margin-top: 10px;
  line-height: 1.5;
}

/* ===================== FOOTER ===================== */
.pg02-footer {
  padding: 14px 14px calc(var(--pg02-nav-h) + 18px);
  text-align: center;
  color: var(--pg02-mute);
  font-size: 11.5px;
}

/* ===================== BOTTOM NAV ===================== */
.pg02-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--pg02-maxw);
  height: var(--pg02-nav-h);
  background: linear-gradient(180deg, #1c1814 0%, #100e0c 100%);
  border-top: 1px solid var(--pg02-line);
  display: flex;
  align-items: stretch;
  z-index: 80;
}
/* Layered bottom bar: divided layers */
.pg02-nav::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--pg02-line-strong) 50%,
    transparent 100%);
}

.pg02-nav-btn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--pg02-text-dim);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  min-height: var(--pg02-touch);
  position: relative;
  padding: 6px 2px 8px;
  border-radius: 0;
}
.pg02-nav-btn svg {
  width: 20px; height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  transition: fill .15s, stroke .15s, color .15s;
}
.pg02-nav-btn.pg02-active {
  color: var(--pg02-accent-2);
}
/* Active state: underline marker */
.pg02-nav-btn.pg02-active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 4px;
  transform: translateX(-50%);
  width: 22px; height: 2px;
  background: var(--pg02-accent);
  border-radius: 2px;
}
/* Filled active state icon */
.pg02-nav-btn.pg02-active svg {
  fill: var(--pg02-accent);
  stroke: var(--pg02-accent);
  color: var(--pg02-accent-2);
}
/* Restrained glow feedback */
.pg02-nav-btn.pg02-nav-ping {
  animation: pg02Ping .42s ease;
}
@keyframes pg02Ping {
  0%   { box-shadow: inset 0 0 0 0 rgba(176, 224, 230, 0.0); }
  40%  { box-shadow: inset 0 -8px 14px -6px rgba(176, 224, 230, 0.35); }
  100% { box-shadow: inset 0 0 0 0 rgba(176, 224, 230, 0.0); }
}

.pg02-nav-promo {
  color: var(--pg02-accent-2);
  font-weight: 600;
}

/* ===================== UTIL ===================== */
.pg02-no-scroll { overflow: hidden; }
.pg02-hidden { display: none !important; }
.pg02-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Long lists render densely, prevent layout shift */
.pg02-section ul { list-style: none; margin: 0; padding: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
