/*!
 * 61d5-view.css
 * 1cbet.click - mobile-first view layer
 * All custom classes and CSS variables use the "v599-" prefix.
 * Palette: #0097A7 (primary) | #6495ED (secondary) | #0E1621 (dark surface).
 * Code comments in English only.
 */

:root {
  --v599-primary: #0097A7;
  --v599-primary-dark: #007986;
  --v599-primary-soft: rgba(0, 151, 167, 0.16);
  --v599-secondary: #6495ED;
  --v599-secondary-soft: rgba(100, 149, 237, 0.18);
  --v599-surface: #0E1621;
  --v599-surface-2: #142131;
  --v599-surface-3: #1b2c44;
  --v599-line: rgba(255, 255, 255, 0.08);
  --v599-line-strong: rgba(255, 255, 255, 0.16);
  --v599-text: #eef3fb;
  --v599-text-dim: #9fb0c6;
  --v599-text-mute: #6f81a0;
  --v599-warning: #ffcf4d;
  --v599-danger: #ff6d6d;
  --v599-success: #34d399;
  --v599-radius-sm: 8px;
  --v599-radius: 14px;
  --v599-radius-lg: 20px;
  --v599-gap: 12px;
  --v599-shadow-1: 0 6px 18px rgba(0, 0, 0, 0.35);
  --v599-shadow-2: 0 12px 30px rgba(0, 0, 0, 0.45);
  --v599-header-h: 56px;
  --v599-bottom-h: 64px;
  --v599-max: 480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--v599-surface);
  color: var(--v599-text);
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

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

a { color: var(--v599-secondary); text-decoration: none; }
a:hover, a:focus { color: var(--v599-primary); }

h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.3; font-weight: 700; color: #fff; }
h1 { font-size: 22px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; color: var(--v599-text-dim); }

/* Mobile canvas: keep the 320-430px composition centred on wider screens. */
.v599-shell {
  width: 100%;
  max-width: var(--v599-max);
  margin: 0 auto;
  background:
    radial-gradient(1200px 360px at 50% -80px, rgba(100, 149, 237, 0.22), transparent 70%),
    radial-gradient(900px 320px at 90% 0%, rgba(0, 151, 167, 0.20), transparent 60%),
    var(--v599-surface);
  min-height: 100vh;
  position: relative;
  box-shadow: var(--v599-shadow-2);
}

/* ===================== Header ===================== */
.v599-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--v599-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(14, 22, 33, 0.96), rgba(14, 22, 33, 0.86));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v599-line);
}

.v599-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.v599-brand img.v599-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--v599-line-strong);
  flex-shrink: 0;
}
.v599-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.v599-brand-name {
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fff;
  font-size: 17px;
}
.v599-brand-tag {
  font-size: 10px;
  color: var(--v599-primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.v599-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v599-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  padding: 0 16px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  font-family: inherit;
}
.v599-btn:focus-visible { outline: 2px solid var(--v599-secondary); outline-offset: 2px; }
.v599-btn-primary {
  background: linear-gradient(135deg, var(--v599-primary), #00b6c4);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 151, 167, 0.32);
}
.v599-btn-primary:hover { transform: translateY(-1px); color: #fff; }
.v599-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--v599-text);
  border: 1px solid var(--v599-line-strong);
}
.v599-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.v599-btn-block { width: 100%; height: 42px; font-size: 14px; }

.v599-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--v599-line);
  cursor: pointer;
  color: var(--v599-text);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.v599-icon-btn:hover { background: var(--v599-primary-soft); border-color: var(--v599-primary); color: #fff; }
.v599-icon-btn.v599-is-active { background: var(--v599-primary); border-color: var(--v599-primary); color: #fff; }

/* Hamburger uses clean inline SVG strokes (kept compact, no text fallback). */
.v599-hamburger { display: flex; flex-direction: column; gap: 4px; }
.v599-hamburger span {
  width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===================== Expandable full-height menu ===================== */
.v599-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}
.v599-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(86%, 380px);
  background: linear-gradient(180deg, #0e1621, #0a121d);
  z-index: 60;
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--v599-shadow-2);
  overflow-y: auto;
}
.v599-menu-panel.v599-menu-open { transform: translateX(0); }
.v599-menu-panel.v599-menu-open ~ .v599-menu-overlay { opacity: 1; pointer-events: auto; }

.v599-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--v599-line);
}
.v599-menu-head img.v599-menu-logo { width: 32px; height: 32px; border-radius: 8px; }
.v599-menu-title { font-weight: 700; color: #fff; font-size: 15px; }
.v599-menu-close { padding: 0; width: 34px; height: 34px; }

.v599-menu-body { padding: 10px 12px 24px; }
.v599-menu-section { margin-top: 14px; }
.v599-menu-section h4 {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--v599-text-mute);
  margin: 14px 8px 6px;
}
.v599-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: var(--v599-radius-sm);
  color: var(--v599-text);
  font-weight: 600;
  font-size: 14px;
}
.v599-menu-link:hover { background: var(--v599-primary-soft); color: #fff; }
.v599-menu-link .v599-menu-dot {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--v599-primary-soft); color: var(--v599-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.v599-menu-promo {
  background: linear-gradient(135deg, rgba(0, 151, 167, 0.22), rgba(100, 149, 237, 0.22));
  border: 1px solid var(--v599-line-strong);
  border-radius: var(--v599-radius);
  padding: 14px;
  margin: 14px 4px;
}
.v599-menu-promo p { margin: 0 0 10px; color: var(--v599-text); font-size: 13px; }

/* ===================== Main ===================== */
.v599-main {
  padding: 12px 12px calc(var(--v599-bottom-h) + 24px);
}

/* ===================== Banner carousel ===================== */
.v599-banner {
  position: relative;
  border-radius: var(--v599-radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--v599-shadow-1);
  background: #07101d;
}
.v599-banner-track { position: relative; }
.v599-banner-slide {
  position: relative;
  display: block;
  opacity: 0;
  visibility: hidden;
  height: 0;
  transition: opacity 0.5s ease;
}
.v599-banner-slide.v599-banner-active {
  opacity: 1;
  visibility: visible;
  height: auto;
  position: relative;
}
.v599-banner-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.v599-banner-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(0deg, rgba(7, 16, 29, 0.92), rgba(7, 16, 29, 0));
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v599-banner-caption strong { color: #fff; font-size: 16px; }
.v599-banner-caption span { color: var(--v599-text-dim); font-size: 12px; }
.v599-banner-cta {
  margin-top: 8px;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--v599-primary), #00b6c4);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.v599-banner-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.v599-banner-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none; padding: 0; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.v599-banner-dot.v599-dot-active { background: var(--v599-primary); transform: scale(1.25); }

/* ===================== Quick stats / highlights ===================== */
.v599-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.v599-stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--v599-line);
  border-radius: var(--v599-radius);
  padding: 10px 6px;
  text-align: center;
}
.v599-stat b { display: block; color: var(--v599-primary); font-size: 16px; }
.v599-stat span { color: var(--v599-text-dim); font-size: 11px; }

/* ===================== Category chip rail ===================== */
.v599-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  margin: 0 0 6px;
  scrollbar-width: none;
}
.v599-rail::-webkit-scrollbar { display: none; }
.v599-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--v599-line);
  font-size: 12px;
  font-weight: 700;
  color: var(--v599-text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.v599-chip:hover { background: var(--v599-primary-soft); border-color: var(--v599-primary); color: #fff; }

/* ===================== Section heading ===================== */
.v599-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
}
.v599-section-head h2 { font-size: 17px; }
.v599-section-head h2 .v599-em { color: var(--v599-primary); }
.v599-section-head .v599-more { font-size: 12px; color: var(--v599-secondary); font-weight: 600; }

/* ===================== Game grid ===================== */
.v599-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.v599-game {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #162234, #101a2a);
  border: 1px solid var(--v599-line);
  border-radius: var(--v599-radius);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: var(--v599-text);
}
.v599-game:hover, .v599-game:focus {
  transform: translateY(-2px);
  border-color: var(--v599-primary);
  box-shadow: 0 8px 18px rgba(0, 151, 167, 0.22);
  color: #fff;
}
.v599-game-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0b1422;
  overflow: hidden;
}
.v599-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v599-game-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--v599-primary), var(--v599-secondary));
  color: #fff;
}
.v599-game-name {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--v599-text);
}

@media (min-width: 380px) {
  .v599-game-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .v599-game-name { font-size: 12px; }
}

/* ===================== Content prose blocks ===================== */
.v599-prose {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--v599-line);
  border-radius: var(--v599-radius);
  padding: 14px;
  margin: 14px 0;
}
.v599-prose h2 { margin-top: 0; }
.v599-prose p { color: var(--v599-text-dim); }
.v599-prose a { color: var(--v599-secondary); font-weight: 600; border-bottom: 1px dashed rgba(100, 149, 237, 0.5); }
.v599-prose a:hover { color: var(--v599-primary); }
.v599-prose ul { margin: 8px 0 0; padding-left: 18px; }
.v599-prose li { color: var(--v599-text-dim); margin-bottom: 4px; }

/* ===================== Feature cards (Security / Reviews / Mobile) ===================== */
.v599-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.v599-card {
  background: linear-gradient(180deg, #15223300, rgba(0, 151, 167, 0.08));
  background-color: #142131;
  border: 1px solid var(--v599-line);
  border-radius: var(--v599-radius);
  padding: 14px 12px;
}
.v599-card .v599-card-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--v599-primary-soft);
  color: var(--v599-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  margin-bottom: 8px;
}
.v599-card h3 { font-size: 14px; margin-bottom: 4px; color: #fff; }
.v599-card p { font-size: 12px; color: var(--v599-text-dim); margin: 0; }
.v599-card.v599-card-wide { grid-column: 1 / -1; }

/* Testimonial */
.v599-quote {
  background: linear-gradient(135deg, rgba(100, 149, 237, 0.12), rgba(0, 151, 167, 0.12));
  border: 1px solid var(--v599-line-strong);
  border-left: 3px solid var(--v599-primary);
  border-radius: var(--v599-radius);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.v599-quote p { margin: 0 0 6px; color: var(--v599-text); font-size: 13px; font-style: italic; }
.v599-quote cite { font-style: normal; color: var(--v599-text-mute); font-size: 11px; }

/* ===================== Promotion footer (homepage only) ===================== */
.v599-promo-foot {
  margin-top: 18px;
  background: linear-gradient(180deg, #0c1929, #0a1422);
  border: 1px solid var(--v599-line);
  border-radius: var(--v599-radius-lg);
  padding: 16px;
}
.v599-promo-foot .v599-brand-intro {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.v599-promo-foot .v599-brand-intro img { width: 38px; height: 38px; border-radius: 10px; }
.v599-promo-foot h3 { font-size: 15px; margin-bottom: 4px; }
.v599-promo-foot p { font-size: 12px; margin: 0; }

.v599-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.v599-shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--v599-radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--v599-line);
  font-size: 12px;
  font-weight: 600;
  color: var(--v599-text);
}
.v599-shortcut:hover { background: var(--v599-primary-soft); border-color: var(--v599-primary); color: #fff; }
.v599-shortcut .v599-shortcut-num {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--v599-primary), var(--v599-secondary));
  color: #fff; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.v599-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 12px;
  margin: 12px 0;
}
.v599-directory a {
  font-size: 12px;
  color: var(--v599-text-dim);
  padding: 4px 0;
  border-bottom: 1px dashed var(--v599-line);
}
.v599-directory a:hover { color: var(--v599-primary); }

.v599-disclaimer {
  font-size: 11px;
  color: var(--v599-text-mute);
  border-top: 1px solid var(--v599-line);
  padding-top: 10px;
  margin-top: 10px;
}

/* ===================== Footer ===================== */
.v599-footer {
  padding: 18px 16px calc(var(--v599-bottom-h) + 16px);
  border-top: 1px solid var(--v599-line);
  background: #0a121d;
  color: var(--v599-text-mute);
  font-size: 12px;
}
.v599-footer .v599-footer-brand {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.v599-footer .v599-footer-brand img { width: 26px; height: 26px; border-radius: 6px; }
.v599-footer .v599-footer-brand b { color: var(--v599-text); }
.v599-footer-nav {
  display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 8px 0 12px;
}
.v599-footer-nav a { color: var(--v599-text-dim); font-size: 12px; }
.v599-footer-nav a:hover { color: var(--v599-primary); }
.v599-footer small { color: var(--v599-text-mute); }

/* ===================== Bottom navigation ===================== */
.v599-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 35;
  width: 100%;
  max-width: var(--v599-max);
  margin: 0 auto;
  height: var(--v599-bottom-h);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 4px;
  background: linear-gradient(180deg, rgba(14, 22, 33, 0.98), rgba(8, 14, 22, 0.98));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--v599-line);
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.35);
}
.v599-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--v599-text-mute);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
  transition: color 0.22s ease, transform 0.22s ease;
}
.v599-bottom-nav a .v599-nav-ico {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit;
}
.v599-bottom-nav a .v599-nav-ico svg { width: 20px; height: 20px; display: block; }
.v599-bottom-nav a:hover { color: var(--v599-text); }
.v599-bottom-nav a.v599-nav-current { color: var(--v599-primary); }
.v599-bottom-nav a.v599-nav-current .v599-nav-ico { transform: translateY(-2px); }
.v599-bottom-nav a.v599-nav-promo {
  color: #fff;
}
.v599-bottom-nav a.v599-nav-promo .v599-nav-ico {
  background: linear-gradient(135deg, var(--v599-primary), var(--v599-secondary));
  border-radius: 50%;
  width: 30px; height: 30px;
  margin-top: -10px;
  box-shadow: 0 4px 10px rgba(0, 151, 167, 0.45);
  color: #fff;
}
.v599-bottom-nav a.v599-nav-promo .v599-nav-ico svg { width: 16px; height: 16px; }
.v599-bottom-nav a.v599-nav-promo.v599-nav-promo-alt .v599-nav-ico {
  background: linear-gradient(135deg, #ff8a4d, var(--v599-warning));
  box-shadow: 0 4px 10px rgba(255, 138, 77, 0.45);
}

/* Utilities */
.v599-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.v599-hide { display: none !important; }
