/*!
 * ppvip.homes stylesheet
 * Mobile-first (320-430px) gaming portal layout.
 * All custom classes/variables use the project prefix `v1d1-`.
 * Comments are in English only.
 */

:root {
  --v1d1-bg: #1e1e1e;
  --v1d1-bg-2: #2a2a2a;
  --v1d1-bg-3: #3c3c3c;
  --v1d1-surface: #232323;
  --v1d1-surface-2: #2f2f2f;
  --v1d1-text: #f4f4f4;
  --v1d1-text-dim: #b9b9b9;
  --v1d1-muted: #8c8c8c;
  --v1d1-accent: #d4af37;
  --v1d1-accent-2: #f0c850;
  --v1d1-accent-deep: #b8902a;
  --v1d1-danger: #c9484b;
  --v1d1-success: #4caf78;
  --v1d1-border: rgba(255, 255, 255, 0.08);
  --v1d1-border-strong: rgba(255, 255, 255, 0.16);
  --v1d1-radius: 10px;
  --v1d1-radius-lg: 16px;
  --v1d1-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --v1d1-header-h: 58px;
  --v1d1-bottomnav-h: 62px;
  --v1d1-max-canvas: 430px;
  --v1d1-gold-grad: linear-gradient(135deg, #f0c850 0%, #d4af37 45%, #b8902a 100%);
}

* {
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--v1d1-accent-2);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--v1d1-accent);
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Mobile canvas: keep narrow phone composition centered on wide screens. */
.v1d1-canvas {
  max-width: var(--v1d1-max-canvas);
  margin: 0 auto;
  background: var(--v1d1-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

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

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

.v1d1-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--v1d1-accent);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.18);
  flex-shrink: 0;
}

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

.v1d1-brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--v1d1-text);
}

.v1d1-brand-tag {
  font-size: 10.5px;
  color: var(--v1d1-accent-2);
  font-weight: 600;
}

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

.v1d1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.v1d1-btn-login {
  background: var(--v1d1-surface-2);
  color: var(--v1d1-text);
  border-color: var(--v1d1-border-strong);
}

.v1d1-btn-register {
  background: var(--v1d1-gold-grad);
  color: #1e1e1e;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.25);
}

.v1d1-btn:active {
  transform: translateY(1px);
}

.v1d1-iconbtn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--v1d1-surface-2);
  border: 1px solid var(--v1d1-border-strong);
  color: var(--v1d1-text);
}

.v1d1-iconbtn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.v1d1-iconbtn.v1d1-active {
  background: var(--v1d1-accent);
  color: #1e1e1e;
  border-color: var(--v1d1-accent);
}

/* ============ Route Panel (compact menu) ============ */
.v1d1-route-panel {
  position: fixed;
  top: calc(var(--v1d1-header-h) + 4px);
  right: 8px;
  left: 8px;
  max-width: 360px;
  margin-left: auto;
  background: var(--v1d1-surface);
  border: 1px solid var(--v1d1-border-strong);
  border-radius: var(--v1d1-radius-lg);
  box-shadow: var(--v1d1-shadow);
  padding: 10px;
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.v1d1-route-panel.v1d1-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.v1d1-route-title {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--v1d1-muted);
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--v1d1-border);
  margin-bottom: 6px;
}

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

.v1d1-route-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: var(--v1d1-surface-2);
  color: var(--v1d1-text);
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  border: 1px solid transparent;
}

.v1d1-route-item:hover,
.v1d1-route-item:focus {
  background: var(--v1d1-bg-3);
  text-decoration: none;
  border-color: var(--v1d1-border-strong);
}

.v1d1-route-item .v1d1-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v1d1-accent);
  flex-shrink: 0;
}

/* ============ Hero / Carousel ============ */
.v1d1-hero {
  position: relative;
  margin: 10px 10px 0;
  border-radius: var(--v1d1-radius-lg);
  overflow: hidden;
  box-shadow: var(--v1d1-shadow);
}

.v1d1-hero-viewport {
  overflow: hidden;
  border-radius: var(--v1d1-radius-lg);
}

.v1d1-hero-track {
  display: flex;
  transition: transform 0.5s ease;
}

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

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

.v1d1-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 30, 30, 0.05) 0%,
    rgba(30, 30, 30, 0.55) 70%,
    rgba(30, 30, 30, 0.92) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.v1d1-hero-caption {
  color: var(--v1d1-text);
}

.v1d1-hero-caption h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.v1d1-hero-caption p {
  margin: 0 0 8px;
  font-size: 12px;
  color: #f0e3c2;
}

.v1d1-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--v1d1-gold-grad);
  color: #1e1e1e;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.v1d1-hero-cta:hover {
  text-decoration: none;
  color: #1e1e1e;
  filter: brightness(1.08);
}

.v1d1-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  border: none;
}

.v1d1-hero-nav.v1d1-prev {
  left: 8px;
}

.v1d1-hero-nav.v1d1-next {
  right: 8px;
}

.v1d1-hero-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.v1d1-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  transition: all 0.2s ease;
}

.v1d1-hero-dot.v1d1-active {
  background: var(--v1d1-accent-2);
  width: 18px;
  border-radius: 5px;
}

/* ============ Quick promo strip ============ */
.v1d1-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px;
}

.v1d1-strip-item {
  background: var(--v1d1-surface);
  border: 1px solid var(--v1d1-border);
  border-radius: var(--v1d1-radius);
  padding: 10px 6px;
  text-align: center;
  color: var(--v1d1-text);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}

.v1d1-strip-item .v1d1-strip-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--v1d1-accent-2);
}

.v1d1-strip-item:hover {
  text-decoration: none;
  border-color: var(--v1d1-accent);
}

/* ============ Section headers ============ */
.v1d1-section {
  margin: 18px 10px 0;
}

.v1d1-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--v1d1-border);
}

.v1d1-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--v1d1-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.v1d1-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--v1d1-gold-grad);
  border-radius: 3px;
}

.v1d1-section-more {
  font-size: 11.5px;
  color: var(--v1d1-accent-2);
  font-weight: 600;
}

/* ============ Category directory chips ============ */
.v1d1-directory {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px;
}

.v1d1-jump {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--v1d1-surface);
  border: 1px solid var(--v1d1-border);
  color: var(--v1d1-text);
  font-size: 12px;
  font-weight: 600;
  min-height: 32px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.v1d1-jump:hover,
.v1d1-jump:focus,
.v1d1-jump.v1d1-current {
  background: var(--v1d1-accent);
  color: #1e1e1e;
  border-color: var(--v1d1-accent);
  text-decoration: none;
}

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

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

.v1d1-game-card {
  background: var(--v1d1-surface);
  border: 1px solid var(--v1d1-border);
  border-radius: var(--v1d1-radius);
  padding: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.18s ease, border-color 0.18s ease;
  min-width: 0;
}

.v1d1-game-card:hover,
.v1d1-game-card:focus {
  text-decoration: none;
  border-color: var(--v1d1-accent);
  transform: translateY(-2px);
  color: var(--v1d1-text);
}

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

.v1d1-game-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--v1d1-text);
  line-height: 1.25;
  height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============ Content blocks (long-form) ============ */
.v1d1-block {
  background: var(--v1d1-surface);
  border: 1px solid var(--v1d1-border);
  border-radius: var(--v1d1-radius-lg);
  padding: 14px;
  margin: 12px 10px 0;
}

.v1d1-block h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--v1d1-text);
}

.v1d1-block h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 4px;
  color: var(--v1d1-accent-2);
}

.v1d1-block p {
  margin: 0 0 10px;
  color: var(--v1d1-text-dim);
  font-size: 13.5px;
}

.v1d1-block ul,
.v1d1-block ol {
  margin: 0 0 10px;
  padding-left: 20px;
  color: var(--v1d1-text-dim);
  font-size: 13.5px;
}

.v1d1-block li {
  margin-bottom: 5px;
}

/* Stats / KPI grid inside content */
.v1d1-kpi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0;
}

.v1d1-kpi-item {
  background: var(--v1d1-surface-2);
  border-radius: 10px;
  padding: 10px;
  border-left: 3px solid var(--v1d1-accent);
}

.v1d1-kpi-num {
  font-size: 17px;
  font-weight: 800;
  color: var(--v1d1-accent-2);
}

.v1d1-kpi-label {
  font-size: 11.5px;
  color: var(--v1d1-muted);
}

/* Steps */
.v1d1-steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v1d1-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--v1d1-surface-2);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid var(--v1d1-border);
}

.v1d1-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--v1d1-gold-grad);
  color: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.v1d1-step-body {
  font-size: 13px;
  color: var(--v1d1-text-dim);
}

.v1d1-step-body strong {
  color: var(--v1d1-text);
  display: block;
  font-size: 13.5px;
}

/* Inline promo CTA */
.v1d1-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #2a2210 0%, #3c3c3c 60%, #1e1e1e 100%);
  border: 1px solid var(--v1d1-accent-deep);
  border-radius: var(--v1d1-radius-lg);
  padding: 12px 14px;
  margin: 12px 10px 0;
}

.v1d1-cta-text {
  font-size: 13px;
  color: var(--v1d1-text);
  min-width: 60%;
}

.v1d1-cta-text strong {
  color: var(--v1d1-accent-2);
  display: block;
  font-size: 15px;
}

.v1d1-cta-btn {
  background: var(--v1d1-gold-grad);
  color: #1e1e1e !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  border: none;
}

.v1d1-cta-btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

/* ============ Featured / promo banner blocks ============ */
.v1d1-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 10px 0;
}

.v1d1-feature-card {
  position: relative;
  border-radius: var(--v1d1-radius-lg);
  overflow: hidden;
  border: 1px solid var(--v1d1-border);
  background: var(--v1d1-surface);
}

.v1d1-feature-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.v1d1-feature-body {
  padding: 10px 12px 12px;
}

.v1d1-feature-body h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--v1d1-text);
}

.v1d1-feature-body p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--v1d1-text-dim);
}

/* ============ Extended footer (homepage-only directory) ============ */
.v1d1-footer-ext {
  margin: 18px 10px 0;
  background: var(--v1d1-surface);
  border: 1px solid var(--v1d1-border);
  border-radius: var(--v1d1-radius-lg);
  padding: 14px;
}

.v1d1-footer-ext h2 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--v1d1-text);
}

.v1d1-footer-ext p {
  font-size: 12.5px;
  color: var(--v1d1-text-dim);
  margin: 0 0 10px;
}

.v1d1-dir-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.v1d1-dir-grid a {
  display: block;
  background: var(--v1d1-surface-2);
  border: 1px solid var(--v1d1-border);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--v1d1-text);
  font-size: 12px;
  font-weight: 600;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.v1d1-dir-grid a:hover {
  background: var(--v1d1-bg-3);
  text-decoration: none;
  border-color: var(--v1d1-border-strong);
}

.v1d1-promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0;
}

.v1d1-promo-row a {
  text-align: center;
  background: var(--v1d1-gold-grad);
  color: #1e1e1e;
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 11.5px;
  font-weight: 800;
}

.v1d1-promo-row a:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.v1d1-promo-row a.v1d1-alt {
  background: var(--v1d1-surface-2);
  color: var(--v1d1-accent-2);
  border: 1px solid var(--v1d1-border-strong);
}

.v1d1-disclaimer {
  font-size: 11px;
  color: var(--v1d1-muted);
  border-top: 1px dashed var(--v1d1-border);
  padding-top: 8px;
  margin-top: 4px;
}

/* ============ Footer ============ */
.v1d1-footer {
  text-align: center;
  padding: 16px 14px calc(var(--v1d1-bottomnav-h) + 18px);
  font-size: 11.5px;
  color: var(--v1d1-muted);
  border-top: 1px solid var(--v1d1-border);
  margin-top: 16px;
}

.v1d1-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.v1d1-footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.v1d1-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin: 8px 0;
}

.v1d1-footer-links a {
  color: var(--v1d1-text-dim);
  font-size: 11.5px;
}

/* ============ Bottom navigation ============ */
.v1d1-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--v1d1-bottomnav-h);
  background: linear-gradient(180deg, #262626 0%, #161616 100%);
  border-top: 1px solid var(--v1d1-border-strong);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 70;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.v1d1-bottomnav-inner {
  max-width: var(--v1d1-max-canvas);
  width: 100%;
  margin: 0 auto;
  display: flex;
}

.v1d1-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--v1d1-text-dim);
  font-size: 10px;
  font-weight: 600;
  padding: 6px 2px;
  position: relative;
  background: transparent;
  border: none;
  min-height: 44px;
  transition: color 0.18s ease, transform 0.18s ease;
}

.v1d1-nav-item:hover {
  text-decoration: none;
  color: var(--v1d1-text);
}

.v1d1-nav-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.v1d1-nav-item.v1d1-current {
  color: var(--v1d1-accent-2);
  transform: translateY(-2px);
}

.v1d1-nav-item.v1d1-current::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  background: var(--v1d1-gold-grad);
  border-radius: 0 0 4px 4px;
}

.v1d1-nav-item.v1d1-promo {
  color: var(--v1d1-accent-2);
}

.v1d1-nav-item.v1d1-promo svg {
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}

/* Accessibility focus */
:focus-visible {
  outline: 2px solid var(--v1d1-accent-2);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
