/* ============================================================
 * f222.click - UI stylesheet (ui14- prefix)
 * Palette: #212F3D bg / #C71585 magenta / #40E0D0 teal
 *          #0000CD royal blue / #495057 graphite
 * Mobile-first: 320-430px canvas. Desktop keeps mobile canvas.
 * ========================================================== */

:root {
  --ui14-bg: #212F3D;
  --ui14-bg-2: #18232e;
  --ui14-bg-3: #0f1822;
  --ui14-card: #233242;
  --ui14-card-2: #2a3c4f;
  --ui14-text: #f3f6f9;
  --ui14-text-soft: #b6c2cf;
  --ui14-text-dim: #8a98a6;
  --ui14-magenta: #C71585;
  --ui14-teal: #40E0D0;
  --ui14-blue: #0000CD;
  --ui14-blue-bright: #3a4df0;
  --ui14-graphite: #495057;
  --ui14-border: rgba(255, 255, 255, 0.08);
  --ui14-gold: #f5c451;
  --ui14-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --ui14-radius: 14px;
  --ui14-radius-sm: 10px;
  --ui14-header-h: 58px;
  --ui14-bottom-h: 64px;
  --ui14-max-w: 440px;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 380px at 50% -80px, rgba(199, 21, 133, 0.18), transparent 60%),
    radial-gradient(900px 320px at 90% 0%, rgba(64, 224, 208, 0.10), transparent 60%),
    linear-gradient(180deg, #1c2836 0%, #18212c 60%, #121b25 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a { color: var(--ui14-teal); text-decoration: none; }
a:hover { color: #fff; }
img { display: block; max-width: 100%; }

/* ============================================================
 * Layout shell — mobile canvas centered on wide screens.
 * ========================================================== */
.ui14-shell {
  width: 100%;
  max-width: var(--ui14-max-w);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, rgba(28, 40, 54, 0.92), rgba(18, 27, 37, 0.96));
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.45);
}

.ui14-main {
  padding: calc(var(--ui14-header-h) + 10px) 12px calc(var(--ui14-bottom-h) + 26px);
}

/* ============================================================
 * Top tab-style header bar
 * ========================================================== */
.ui14-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--ui14-header-h);
  padding: 0 10px;
  background: linear-gradient(180deg, rgba(15, 24, 34, 0.98), rgba(15, 24, 34, 0.88));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ui14-border);
}

.ui14-shell .ui14-header {
  position: sticky;
  border-bottom: 1px solid var(--ui14-border);
}

.ui14-header-inner {
  width: 100%;
  max-width: var(--ui14-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ui14-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.ui14-brand .ui14-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 2px rgba(199, 21, 133, 0.35);
  background: #0e1620;
}
.ui14-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}
.ui14-brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.4px;
  color: #fff;
  white-space: nowrap;
}
.ui14-brand-name b { color: var(--ui14-magenta); }
.ui14-brand-tag {
  font-size: 10px;
  color: var(--ui14-teal);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ui14-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ui14-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  min-height: 36px;
}
.ui14-btn:active { transform: scale(0.96); }
.ui14-btn-login {
  background: transparent;
  color: var(--ui14-text);
  border: 1px solid rgba(64, 224, 208, 0.55);
}
.ui14-btn-login:hover { background: rgba(64, 224, 208, 0.12); color: #fff; }
.ui14-btn-register {
  background: linear-gradient(135deg, var(--ui14-magenta), #e23a9c);
  color: #fff;
  box-shadow: 0 6px 16px rgba(199, 21, 133, 0.35);
}
.ui14-btn-register:hover { box-shadow: 0 8px 22px rgba(199, 21, 133, 0.5); }

.ui14-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(--ui14-border);
  cursor: pointer;
  color: var(--ui14-text);
}
.ui14-icon-btn svg { width: 20px; height: 20px; }

/* ============================================================
 * Stacked overlay menu
 * ========================================================== */
.ui14-menu {
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 19, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 80;
}
.ui14-menu-open { opacity: 1; pointer-events: auto; }
.ui14-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 86%;
  max-width: 360px;
  height: 100%;
  background: linear-gradient(180deg, #14202c, #0d161f);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.5);
  padding: 18px 16px calc(var(--ui14-bottom-h) + 18px);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  border-left: 1px solid var(--ui14-border);
}
.ui14-menu-open .ui14-menu-panel { transform: translateX(0); }
.ui14-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ui14-menu-title { font-size: 14px; color: var(--ui14-text-soft); letter-spacing: 0.4px; }
.ui14-menu-close {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--ui14-border);
  cursor: pointer; color: var(--ui14-text);
}
.ui14-menu-close svg { width: 16px; height: 16px; }
.ui14-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ui14-border);
  color: var(--ui14-text);
  font-size: 14px;
  font-weight: 600;
}
.ui14-menu-link:hover { background: rgba(64, 224, 208, 0.12); color: #fff; }
.ui14-menu-link .ui14-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ui14-magenta); box-shadow: 0 0 8px var(--ui14-magenta);
}
.ui14-menu-promo {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(199, 21, 133, 0.18), rgba(64, 224, 208, 0.12));
  border: 1px solid rgba(199, 21, 133, 0.35);
  text-align: center;
}
.ui14-menu-promo p { margin: 0 0 10px; font-size: 13px; color: var(--ui14-text-soft); }

/* ============================================================
 * Hero carousel
 * ========================================================== */
.ui14-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin: 4px 0 14px;
  box-shadow: var(--ui14-shadow);
  border: 1px solid var(--ui14-border);
}
.ui14-hero-track {
  display: flex;
  transition: transform 0.5s ease;
}
.ui14-hero-slide {
  min-width: 100%;
  position: relative;
  display: block;
}
.ui14-hero-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.ui14-hero-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.ui14-hero-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  margin: 0;
}
.ui14-hero-cta {
  pointer-events: auto;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ui14-magenta), #e23a9c);
  color: #fff;
  box-shadow: 0 6px 14px rgba(199, 21, 133, 0.4);
}
.ui14-hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 6px;
  z-index: 4;
}
.ui14-hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer; transition: all 0.2s ease;
}
.ui14-hero-dot-active {
  background: var(--ui14-teal);
  width: 18px; border-radius: 999px;
}

/* ============================================================
 * Quick category chip strip
 * ========================================================== */
.ui14-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ui14-chips::-webkit-scrollbar { display: none; }
.ui14-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ui14-border);
  color: var(--ui14-text-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ui14-chip:hover { color: var(--ui14-teal); border-color: rgba(64, 224, 208, 0.45); }

/* ============================================================
 * Sections & headings
 * ========================================================== */
.ui14-section { margin: 22px 0; }
.ui14-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}
.ui14-section-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 800; margin: 0; color: #fff;
}
.ui14-section-title .ui14-bar {
  width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--ui14-magenta), var(--ui14-teal));
}
.ui14-section-title small {
  font-size: 11px; color: var(--ui14-text-dim); font-weight: 500;
}
.ui14-section-more {
  font-size: 12px; color: var(--ui14-teal); font-weight: 600;
}

/* ============================================================
 * Game grid — compact 4 / 4-5 columns
 * ========================================================== */
.ui14-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
@media (min-width: 360px) {
  .ui14-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}
@media (min-width: 400px) {
  .ui14-grid { grid-template-columns: repeat(5, 1fr); }
}
.ui14-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 4px 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(35, 50, 66, 0.7), rgba(20, 30, 42, 0.7));
  border: 1px solid var(--ui14-border);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.ui14-game:hover {
  transform: translateY(-2px);
  border-color: rgba(64, 224, 208, 0.45);
  box-shadow: 0 6px 14px rgba(64, 224, 208, 0.18);
}
.ui14-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  background: #0c141d;
}
.ui14-game-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--ui14-text-soft);
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 28px;
}

/* ============================================================
 * Feature / content cards
 * ========================================================== */
.ui14-card {
  background: linear-gradient(180deg, rgba(35, 50, 66, 0.7), rgba(20, 30, 42, 0.75));
  border: 1px solid var(--ui14-border);
  border-radius: var(--ui14-radius);
  padding: 16px;
  margin-bottom: 12px;
}
.ui14-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.ui14-card h3 .ui14-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(199, 21, 133, 0.2);
  color: #f3a0cc;
  border: 1px solid rgba(199, 21, 133, 0.4);
}
.ui14-card p { margin: 0 0 8px; color: var(--ui14-text-soft); font-size: 13.5px; }
.ui14-card p:last-child { margin-bottom: 0; }
.ui14-card ul { margin: 4px 0 0; padding-left: 18px; color: var(--ui14-text-soft); font-size: 13px; }
.ui14-card li { margin-bottom: 4px; }

.ui14-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ui14-feature {
  padding: 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(199, 21, 133, 0.1), rgba(64, 224, 208, 0.08));
  border: 1px solid var(--ui14-border);
}
.ui14-feature .ui14-ico {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(64, 224, 208, 0.18);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  color: var(--ui14-teal);
}
.ui14-feature .ui14-ico svg { width: 18px; height: 18px; }
.ui14-feature h4 { margin: 0 0 4px; font-size: 13.5px; color: #fff; }
.ui14-feature p { margin: 0; font-size: 12px; color: var(--ui14-text-dim); line-height: 1.4; }

/* ============================================================
 * Marquee strip
 * ========================================================== */
.ui14-marquee {
  background: linear-gradient(90deg, rgba(199, 21, 133, 0.18), rgba(64, 224, 208, 0.12));
  border: 1px solid var(--ui14-border);
  border-radius: 12px;
  padding: 9px 12px;
  margin: 6px 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ui14-text-soft);
  overflow: hidden;
}
.ui14-marquee b { color: var(--ui14-gold); }
.ui14-marquee .ui14-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff5b5b; box-shadow: 0 0 8px #ff5b5b;
  flex: 0 0 auto;
}

/* ============================================================
 * Editorial / SEO content
 * ========================================================== */
.ui14-prose {
  background: rgba(15, 24, 34, 0.55);
  border: 1px solid var(--ui14-border);
  border-radius: var(--ui14-radius);
  padding: 16px;
  margin: 10px 0;
}
.ui14-prose h2 {
  font-size: 16px; margin: 0 0 8px; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.ui14-prose h2::before {
  content: "";
  display: inline-block;
  width: 4px; height: 16px; border-radius: 2px;
  background: var(--ui14-magenta);
}
.ui14-prose h3 { font-size: 14px; color: var(--ui14-teal); margin: 12px 0 4px; }
.ui14-prose p { color: var(--ui14-text-soft); font-size: 13.5px; margin: 0 0 8px; }
.ui14-prose a { color: var(--ui14-teal); text-decoration: underline; text-underline-offset: 2px; }

.ui14-faq-item {
  border-bottom: 1px dashed var(--ui14-border);
  padding: 10px 0;
}
.ui14-faq-item:last-child { border-bottom: none; }
.ui14-faq-item h3 { margin: 0 0 4px; font-size: 13.5px; color: #fff; }
.ui14-faq-item p { margin: 0; font-size: 12.5px; color: var(--ui14-text-soft); }

/* ============================================================
 * Extended footer (homepage only)
 * ========================================================== */
.ui14-ext-footer {
  margin: 18px 0 8px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 24, 34, 0.95), rgba(10, 17, 24, 0.95));
  border: 1px solid var(--ui14-border);
}
.ui14-ext-footer h3 {
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ui14-teal);
  margin: 0 0 8px;
}
.ui14-ext-footer p { font-size: 12.5px; color: var(--ui14-text-soft); margin: 0 0 12px; }
.ui14-ext-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.ui14-ext-dir a {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ui14-border);
  color: var(--ui14-text-soft);
  text-align: center;
}
.ui14-ext-dir a:hover { color: var(--ui14-teal); border-color: rgba(64, 224, 208, 0.4); }
.ui14-ext-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.ui14-ext-promo button,
.ui14-ext-promo a {
  font-size: 12px;
  padding: 9px 6px;
  border-radius: 10px;
  border: 1px solid rgba(199, 21, 133, 0.4);
  background: rgba(199, 21, 133, 0.14);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
}
.ui14-ext-promo button:hover,
.ui14-ext-promo a:hover { background: rgba(199, 21, 133, 0.28); }
.ui14-ext-disclaimer {
  font-size: 11px;
  color: var(--ui14-text-dim);
  border-top: 1px solid var(--ui14-border);
  padding-top: 10px;
  line-height: 1.5;
}

/* ============================================================
 * Compact bottom icon rack
 * ========================================================== */
.ui14-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: linear-gradient(180deg, rgba(13, 22, 31, 0.96), rgba(8, 14, 20, 0.98));
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--ui14-border);
}
.ui14-bottom-inner {
  width: 100%;
  max-width: var(--ui14-max-w);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: var(--ui14-bottom-h);
  padding: 0 6px;
}
.ui14-nav-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ui14-text-dim);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding: 6px 2px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
}
.ui14-nav-item svg { width: 20px; height: 20px; }
.ui14-nav-item .ui14-nav-label { line-height: 1; }
.ui14-nav-item .ui14-nav-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: transparent;
  transition: background 0.2s ease, width 0.2s ease;
}
.ui14-nav-item:hover { color: var(--ui14-text); }
.ui14-nav-item:hover .ui14-nav-top { background: rgba(64, 224, 208, 0.5); }
.ui14-nav-current { color: var(--ui14-teal) !important; }
.ui14-nav-current .ui14-nav-top { background: var(--ui14-teal) !important; width: 28px; box-shadow: 0 0 8px var(--ui14-teal); }
.ui14-nav-promo {
  color: #f3a0cc;
}
.ui14-nav-promo .ui14-nav-top { background: rgba(199, 21, 133, 0.55); }
.ui14-nav-promo:hover .ui14-nav-top { background: var(--ui14-magenta); width: 26px; }
.ui14-nav-promo:hover { color: #fff; }

/* ============================================================
 * Copyright bar (sits above bottom nav in flow)
 * ========================================================== */
.ui14-copyright {
  text-align: center;
  font-size: 11px;
  color: var(--ui14-text-dim);
  padding: 6px 10px 4px;
}

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

/* Long-form content spacing for SEO blocks */
.ui14-content-block { margin: 14px 0; }
.ui14-content-block h2 {
  font-size: 16px; color: #fff; margin: 0 0 6px;
  border-left: 3px solid var(--ui14-teal); padding-left: 9px;
}
.ui14-content-block p {
  color: var(--ui14-text-soft); font-size: 13px; margin: 0 0 8px;
}

@media (min-width: 600px) {
  body { padding: 0; }
  .ui14-shell { box-shadow: 0 0 60px rgba(0, 0, 0, 0.6); }
}
