/* ============================================================
   popyplaytime.click - Mobile-first gaming site stylesheet
   Prefix: v062-
   Palette: #2D2D2D bg | #E0E0E0 text | #00B8D4 accent
   Canvas: 320-430px (centered on wider screens)
   ============================================================ */

:root {
  --v062-bg: #2d2d2d;
  --v062-bg-2: #1f1f1f;
  --v062-bg-3: #3a3a3a;
  --v062-text: #e0e0e0;
  --v062-muted: #a8a8a8;
  --v062-accent: #00b8d4;
  --v062-accent-2: #0090a8;
  --v062-gold: #f4c542;
  --v062-danger: #ff5a5a;
  --v062-header-h: 56px;
  --v062-nav-h: 64px;
  --v062-max: 480px;
  --v062-radius: 14px;
  --v062-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--v062-bg);
  color: var(--v062-text);
  line-height: 1.55;
  font-size: 15px;
  min-width: 320px;
  max-width: var(--v062-max);
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

a { color: var(--v062-accent); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--v062-accent); outline-offset: 2px; }
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
.v062-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--v062-header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: linear-gradient(180deg, #222 0%, #2d2d2d 100%);
  border-bottom: 1px solid rgba(0, 184, 212, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.v062-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.v062-brand img.v062-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0, 184, 212, 0.5);
  background: #fff;
  flex-shrink: 0;
}

.v062-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.v062-brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
  white-space: nowrap;
}

.v062-brand-tag {
  font-size: 10px;
  color: var(--v062-accent);
  white-space: nowrap;
}

.v062-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.v062-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  min-height: 36px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  color: #fff;
}

.v062-btn:active { transform: translateY(1px) scale(0.98); }

.v062-btn-login {
  background: transparent;
  color: var(--v062-text);
  border: 1px solid rgba(224, 224, 224, 0.35);
}

.v062-btn-register {
  background: linear-gradient(135deg, var(--v062-accent) 0%, var(--v062-accent-2) 100%);
  box-shadow: 0 3px 10px rgba(0, 184, 212, 0.4);
}

.v062-menu-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(224, 224, 224, 0.25);
  border-radius: 9px;
  color: var(--v062-text);
  cursor: pointer;
}

.v062-menu-toggle svg { width: 20px; height: 20px; }

/* ---------- Expandable nav ---------- */
.v062-expand-nav {
  position: sticky;
  top: var(--v062-header-h);
  z-index: 90;
  background: var(--v062-bg-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.v062-expand-nav.v062-open { max-height: 360px; }

.v062-expand-nav-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 10px;
}

.v062-expand-nav a {
  display: block;
  padding: 10px 12px;
  background: var(--v062-bg-3);
  border-radius: 10px;
  color: var(--v062-text);
  font-size: 13px;
  font-weight: 600;
}

.v062-expand-nav a:active { background: var(--v062-accent-2); }

/* ---------- Layout containers ---------- */
.v062-main {
  padding: 0 12px 16px;
}

.v062-section {
  margin-top: 18px;
}

.v062-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(0, 184, 212, 0.3);
}

.v062-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  position: relative;
  padding-left: 12px;
}

.v062-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--v062-accent);
  border-radius: 2px;
}

.v062-section-more {
  font-size: 12px;
  color: var(--v062-accent);
}

/* ---------- Hero carousel ---------- */
.v062-hero {
  margin-top: 12px;
  border-radius: var(--v062-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--v062-shadow);
}

.v062-hero-track {
  display: flex;
  transition: transform 0.45s ease;
}

.v062-hero-slide {
  flex: 0 0 100%;
  position: relative;
}

.v062-hero-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.v062-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 12px 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 10%, rgba(0, 0, 0, 0) 100%);
}

.v062-hero-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.v062-hero-cta {
  display: inline-block;
  padding: 7px 14px;
  background: var(--v062-accent);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.v062-hero-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
}

.v062-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.v062-hero-dot.v062-active { background: var(--v062-accent); }

/* ---------- Quick category chips ---------- */
.v062-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 0 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.v062-chips::-webkit-scrollbar { display: none; }

.v062-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  background: var(--v062-bg-3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--v062-text);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.v062-chip.v062-active {
  background: linear-gradient(135deg, var(--v062-accent), var(--v062-accent-2));
  color: #fff;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.v062-games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (min-width: 375px) {
  .v062-games { gap: 10px; }
}

@media (min-width: 414px) {
  .v062-games { grid-template-columns: repeat(5, 1fr); }
}

.v062-game {
  display: block;
  background: var(--v062-bg-2);
  border-radius: 10px;
  padding: 5px;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.12s ease, border-color 0.12s ease;
  overflow: hidden;
}

.v062-game:active {
  transform: scale(0.96);
  border-color: var(--v062-accent);
}

.v062-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
}

.v062-game-name {
  font-size: 11px;
  color: var(--v062-text);
  margin-top: 4px;
  font-weight: 600;
  line-height: 1.2;
  height: 26px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- Promo / feature cards ---------- */
.v062-promo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.v062-promo-card {
  background: linear-gradient(135deg, #3a3a3a 0%, #2d2d2d 100%);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 184, 212, 0.2);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.v062-promo-card:active { transform: scale(0.98); }

.v062-promo-icon {
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--v062-accent);
}

.v062-promo-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.v062-promo-desc {
  font-size: 11px;
  color: var(--v062-muted);
  line-height: 1.4;
}

/* ---------- Info / SEO article blocks ---------- */
.v062-card {
  background: var(--v062-bg-2);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.v062-card h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
  font-weight: 700;
}

.v062-card p {
  font-size: 13px;
  color: var(--v062-muted);
  margin-bottom: 6px;
}

.v062-card a {
  font-weight: 600;
}

.v062-list {
  padding-left: 18px;
  margin: 6px 0;
}

.v062-list li {
  font-size: 13px;
  color: var(--v062-muted);
  margin-bottom: 4px;
}

/* ---------- Achievement grid ---------- */
.v062-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0;
}

.v062-stat {
  background: var(--v062-bg-3);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}

.v062-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--v062-accent);
}

.v062-stat-label {
  font-size: 10px;
  color: var(--v062-muted);
  margin-top: 2px;
}

/* ---------- Tricks horizontal scroll ---------- */
.v062-scroll-x {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.v062-scroll-x::-webkit-scrollbar { display: none; }

.v062-scroll-x .v062-card {
  flex: 0 0 220px;
  margin-bottom: 0;
}

/* ---------- CTA banner ---------- */
.v062-cta {
  background: linear-gradient(135deg, var(--v062-accent) 0%, var(--v062-accent-2) 100%);
  border-radius: 14px;
  padding: 16px;
  color: #fff;
  text-align: center;
  margin: 18px 0;
  box-shadow: 0 6px 18px rgba(0, 184, 212, 0.35);
}

.v062-cta h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.v062-cta p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.v062-cta .v062-btn {
  background: #fff;
  color: var(--v062-accent-2);
  font-size: 14px;
  padding: 10px 22px;
}

/* ---------- Extended footer ---------- */
.v062-ext-footer {
  margin-top: 22px;
  padding: 16px 12px;
  background: var(--v062-bg-2);
  border-top: 1px solid rgba(0, 184, 212, 0.15);
}

.v062-ext-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.v062-ext-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}

.v062-ext-brand-text {
  font-size: 12px;
  color: var(--v062-muted);
  line-height: 1.4;
}

.v062-ext-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.v062-ext-promos button {
  background: var(--v062-bg-3);
  color: var(--v062-text);
  border: 1px solid rgba(0, 184, 212, 0.3);
  border-radius: 9px;
  padding: 9px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.v062-ext-promos button:active { background: var(--v062-accent-2); }

.v062-ext-dir-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 10px 0 6px;
}

.v062-ext-dir {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.v062-ext-dir a {
  font-size: 12px;
  color: var(--v062-muted);
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.v062-ext-dir a:hover { color: var(--v062-accent); }

.v062-ext-disclaimer {
  font-size: 11px;
  color: var(--v062-muted);
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.5;
}

/* ---------- Copyright footer (above bottom nav) ---------- */
.v062-footer {
  padding: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--v062-muted);
  background: var(--v062-bg-2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: calc(var(--v062-nav-h) + 12px);
}

/* ---------- Mobile bottom navigation ---------- */
.v062-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--v062-max);
  height: var(--v062-nav-h);
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border-top: 1px solid rgba(0, 184, 212, 0.3);
  display: flex;
  align-items: stretch;
  z-index: 95;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.45);
}

.v062-bottom-nav button,
.v062-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: 0;
  color: var(--v062-muted);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 2px 4px;
  position: relative;
  cursor: pointer;
  min-height: 44px;
  transition: color 0.15s ease;
}

.v062-bottom-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.v062-bottom-nav .v062-active {
  color: var(--v062-accent);
}

.v062-bottom-nav .v062-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  background: var(--v062-accent);
  border-radius: 0 0 4px 4px;
}

.v062-bottom-nav .v062-active svg {
  fill: rgba(0, 184, 212, 0.25);
  stroke: var(--v062-accent);
}

.v062-bottom-nav .v062-nav-center {
  position: relative;
}

.v062-bottom-nav .v062-nav-center .v062-nav-orb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v062-accent), var(--v062-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -14px;
  box-shadow: 0 4px 12px rgba(0, 184, 212, 0.5);
  border: 3px solid #1a1a1a;
}

.v062-bottom-nav .v062-nav-center .v062-nav-orb svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}

.v062-bottom-nav .v062-nav-center .v062-nav-label {
  margin-top: 2px;
}

/* ---------- Utility ---------- */
.v062-hidden { display: none !important; }

.v062-section-text {
  font-size: 13px;
  color: var(--v062-muted);
  margin-bottom: 8px;
}

.v062-h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 18px 0 8px;
  padding-left: 12px;
  position: relative;
}

.v062-h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--v062-accent);
  border-radius: 2px;
}

/* Maintain mobile canvas on very small screens */
@media (max-width: 359px) {
  body { font-size: 14px; }
  .v062-games { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .v062-game-name { font-size: 10px; }
}
