/* ==========================================================================
   1xbet ph - screen stylesheet
   Mobile-first casino canvas (320-430px). All custom classes/variables use
   the `vc55-` prefix. Palette: #FF91A4 / #FF69B4 / #F08080 / #0E1621.
   ========================================================================== */

:root {
  --vc55-bg: #0E1621;
  --vc55-bg-soft: #15203380;
  --vc55-card: #16223a;
  --vc55-card-2: #1d2c49;
  --vc55-pink: #FF69B4;
  --vc55-pink-soft: #FF91A4;
  --vc55-coral: #F08080;
  --vc55-gold: #ffd27a;
  --vc55-text: #f6f1ff;
  --vc55-muted: #b7b0cd;
  --vc55-line: #2a3759;
  --vc55-radius: 14px;
  --vc55-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  --vc55-header-h: 58px;
  --vc55-bar-h: 60px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--vc55-bg);
  color: var(--vc55-text);
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.55;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 105, 180, 0.18), transparent 60%),
    radial-gradient(90% 50% at 100% 0%, rgba(240, 128, 128, 0.12), transparent 60%),
    var(--vc55-bg);
}

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

a { color: var(--vc55-pink-soft); text-decoration: none; }
a:hover, a:focus { color: var(--vc55-gold); }

h1, h2, h3 { margin: 0 0 8px; line-height: 1.25; font-weight: 700; }

.vc55-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--vc55-header-h) 0 calc(var(--vc55-bar-h) + 16px);
  min-height: 100vh;
}

.vc55-container { padding: 0 14px; }

/* ===================== Header ===================== */
.vc55-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--vc55-header-h);
  background: linear-gradient(180deg, rgba(14, 22, 33, 0.98), rgba(14, 22, 33, 0.86));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--vc55-line);
}

.vc55-header-inner {
  max-width: 480px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

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

.vc55-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--vc55-pink);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.18);
  flex: 0 0 auto;
}

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

.vc55-brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--vc55-text);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc55-brand-tag {
  font-size: 10.5px;
  color: var(--vc55-coral);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.vc55-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.vc55-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.25s ease, color 0.25s ease;
}

.vc55-btn:active { transform: scale(0.96); }

.vc55-btn-primary {
  background: linear-gradient(135deg, var(--vc55-pink), var(--vc55-coral));
  color: #1a0b14;
  box-shadow: 0 6px 18px rgba(255, 105, 180, 0.32);
}

.vc55-btn-ghost {
  background: transparent;
  color: var(--vc55-text);
  border: 1px solid var(--vc55-line);
}

.vc55-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--vc55-card);
  border: 1px solid var(--vc55-line);
  color: var(--vc55-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.vc55-icon-btn svg { width: 20px; height: 20px; }

/* ===================== Expandable menu ===================== */
.vc55-menu-panel {
  position: fixed;
  top: calc(var(--vc55-header-h) - 6px);
  left: 0;
  right: 0;
  z-index: 55;
  background: var(--vc55-card);
  border-bottom: 1px solid var(--vc55-line);
  box-shadow: var(--vc55-shadow);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
  max-height: 70vh;
  overflow-y: auto;
}

.vc55-menu-panel.vc55-menu-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.vc55-menu-inner { max-width: 480px; margin: 0 auto; padding: 8px 12px 14px; }

.vc55-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.vc55-menu-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 11px;
  border-radius: 11px;
  background: var(--vc55-card-2);
  border: 1px solid var(--vc55-line);
  color: var(--vc55-text);
  min-height: 44px;
}

.vc55-menu-link:hover { background: #24365c; }

.vc55-menu-link strong { font-size: 13.5px; color: var(--vc55-text); }
.vc55-menu-link span { font-size: 11.5px; color: var(--vc55-muted); }

/* ===================== Hero carousel ===================== */
.vc55-hero {
  position: relative;
  margin: 12px 0 4px;
  border-radius: var(--vc55-radius);
  overflow: hidden;
  box-shadow: var(--vc55-shadow);
  border: 1px solid var(--vc55-line);
}

.vc55-hero-viewport { overflow: hidden; }

.vc55-hero-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

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

.vc55-hero-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.vc55-hero-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: linear-gradient(180deg, rgba(14, 22, 33, 0), rgba(14, 22, 33, 0.78));
  padding: 22px 12px 10px;
  border-radius: 10px;
  color: #fff;
}

.vc55-hero-caption h2 {
  font-size: 17px;
  color: var(--vc55-pink-soft);
  margin: 0 0 2px;
}

.vc55-hero-caption p {
  margin: 0;
  font-size: 12px;
  color: #f0e9fb;
}

.vc55-hero-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}

.vc55-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.vc55-hero-dot.vc55-dot-active {
  background: var(--vc55-pink);
  transform: scale(1.25);
}

/* ===================== Section / game grid ===================== */
.vc55-section {
  margin: 18px 0 6px;
}

.vc55-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 8px;
}

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

.vc55-section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--vc55-pink), var(--vc55-coral));
}

.vc55-section-link {
  font-size: 12px;
  color: var(--vc55-pink-soft);
  font-weight: 600;
}

.vc55-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 14px;
}

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

.vc55-card {
  background: var(--vc55-card);
  border: 1px solid var(--vc55-line);
  border-radius: 12px;
  overflow: hidden;
  display: block;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 44px;
}

.vc55-card:hover, .vc55-card:focus {
  transform: translateY(-2px);
  border-color: var(--vc55-pink);
  box-shadow: 0 8px 22px rgba(255, 105, 180, 0.18);
}

.vc55-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0b1322;
}

.vc55-card-name {
  font-size: 10.5px;
  color: var(--vc55-text);
  text-align: center;
  padding: 5px 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

/* ===================== Feature / promo / info blocks ===================== */
.vc55-block {
  margin: 18px 14px;
  background: var(--vc55-card);
  border: 1px solid var(--vc55-line);
  border-radius: var(--vc55-radius);
  padding: 16px;
}

.vc55-block h2 {
  font-size: 17px;
  color: var(--vc55-pink-soft);
}

.vc55-block p {
  margin: 6px 0 10px;
  color: var(--vc55-muted);
  font-size: 13.5px;
}

.vc55-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.vc55-feature {
  background: var(--vc55-card-2);
  border: 1px solid var(--vc55-line);
  border-radius: 11px;
  padding: 12px;
}

.vc55-feature-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--vc55-text);
  margin-bottom: 4px;
}

.vc55-feature-text {
  font-size: 12px;
  color: var(--vc55-muted);
  line-height: 1.5;
}

.vc55-promo-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.vc55-promo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.18), rgba(240, 128, 128, 0.12));
  border: 1px solid var(--vc55-line);
}

.vc55-promo-item .vc55-promo-text { min-width: 0; }
.vc55-promo-item strong { display: block; font-size: 13.5px; color: var(--vc55-text); }
.vc55-promo-item span { font-size: 11.5px; color: var(--vc55-muted); }

.vc55-list { margin: 8px 0 4px; padding-left: 18px; color: var(--vc55-muted); font-size: 13px; }
.vc55-list li { margin: 4px 0; }

.vc55-prose { color: var(--vc55-muted); font-size: 13.5px; }
.vc55-prose strong { color: var(--vc55-text); }
.vc55-prose a { font-weight: 600; }

/* ===================== Homepage extended footer (directory) ===================== */
.vc55-directory {
  margin: 18px 14px 6px;
  background: var(--vc55-card);
  border: 1px solid var(--vc55-line);
  border-radius: var(--vc55-radius);
  padding: 16px;
}

.vc55-directory-title {
  font-size: 16px;
  color: var(--vc55-pink-soft);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vc55-directory-sub {
  font-size: 12px;
  color: var(--vc55-muted);
  margin-bottom: 10px;
}

.vc55-directory-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.vc55-directory-cols .vc55-dir-cell {
  background: var(--vc55-card-2);
  border: 1px solid var(--vc55-line);
  border-radius: 11px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
}

.vc55-dir-cell .vc55-dir-label {
  font-size: 11px;
  color: var(--vc55-coral);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.vc55-dir-cell a { font-size: 13px; font-weight: 600; }

.vc55-directory-promos {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.vc55-directory-promos .vc55-btn {
  width: 100%;
  font-size: 12.5px;
  padding: 10px 8px;
}

.vc55-disclaimer {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--vc55-muted);
  border-top: 1px dashed var(--vc55-line);
  padding-top: 10px;
  line-height: 1.55;
}

/* ===================== Page footer ===================== */
.vc55-footer {
  margin-top: 22px;
  padding: 14px;
  text-align: center;
  font-size: 11.5px;
  color: var(--vc55-muted);
  border-top: 1px solid var(--vc55-line);
  background: rgba(11, 19, 34, 0.65);
}

.vc55-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin-bottom: 6px;
  font-size: 11.5px;
}

.vc55-footer-links a { color: var(--vc55-muted); }
.vc55-footer-links a:hover { color: var(--vc55-pink-soft); }

/* ===================== Bottom nav ===================== */
.vc55-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  height: var(--vc55-bar-h);
  background: linear-gradient(180deg, rgba(14, 22, 33, 0.97), rgba(8, 14, 24, 0.99));
  border-top: 1px solid var(--vc55-line);
  display: none;
}

.vc55-bar-inner {
  max-width: 480px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 6px;
}

.vc55-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--vc55-muted);
  font-size: 10.5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px 2px;
  min-height: 44px;
  position: relative;
  transition: color 0.22s ease;
}

.vc55-bar-item svg { width: 22px; height: 22px; }

.vc55-bar-item.vc55-bar-active {
  color: var(--vc55-pink);
}

.vc55-bar-item.vc55-bar-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--vc55-pink), var(--vc55-coral));
}

.vc55-bar-promo {
  color: var(--vc55-pink-soft);
}

@media (max-width: 920px) {
  .vc55-bar { display: block; }
}

/* ===================== Reveal animation ===================== */
.vc55-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.vc55-reveal.vc55-in {
  opacity: 1;
  transform: none;
}

/* Keep wide screens centered on the mobile canvas */
@media (min-width: 481px) {
  body { background-attachment: fixed; }
}
