/*!
 * nustar gaming - mobile-first portal styles
 * Palette: deep navy #0F0F23 / orange #FF9500 / soft pink #FFCCB / ivory text
 * All custom classes use the `s214-` prefix; CSS variables use `--s214-*`.
 * Mobile canvas: 320-430px. Wide screens keep the mobile canvas centered.
 */

:root {
  --s214-bg: #0F0F23;
  --s214-bg-2: #161635;
  --s214-bg-3: #1d1d44;
  --s214-card: #1c1c40;
  --s214-card-2: #232352;
  --s214-primary: #FF9500;
  --s214-primary-2: #ffb13d;
  --s214-pink: #FFCCCB;
  --s214-pink-2: #ffd6d6;
  --s214-ivory: #f6f3ff;
  --s214-muted: #a9a6cf;
  --s214-line: #2a2a55;
  --s214-success: #34d399;
  --s214-danger: #fb7185;
  --s214-radius: 14px;
  --s214-radius-sm: 10px;
  --s214-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  --s214-header-h: 58px;
  --s214-bottom-h: 64px;
  --s214-max: 430px;
  --s214-font: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(1100px 540px at 50% -180px, rgba(255, 149, 0, 0.16), transparent 60%),
    radial-gradient(900px 480px at 90% 8%, rgba(255, 204, 204, 0.10), transparent 60%),
    var(--s214-bg);
  color: var(--s214-ivory);
  font-family: var(--s214-font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.s214-noscroll { overflow: hidden; }

a { color: var(--s214-primary-2); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--s214-primary); outline-offset: 2px; border-radius: 6px; }

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

.s214-shell {
  max-width: var(--s214-max);
  margin: 0 auto;
  background: linear-gradient(180deg, #131334 0%, var(--s214-bg) 30%, var(--s214-bg) 100%);
  min-height: 100vh;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
}

/* ============ Header ============ */
.s214-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--s214-header-h);
  background: linear-gradient(180deg, rgba(15, 15, 35, 0.98), rgba(15, 15, 35, 0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--s214-line);
}
.s214-header-row {
  max-width: var(--s214-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}
.s214-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.s214-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--s214-primary), var(--s214-pink));
  padding: 2px;
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.35);
}
.s214-brand-text { display: flex; flex-direction: column; min-width: 0; }
.s214-brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2px;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}
.s214-brand-tag {
  font-size: 10px;
  color: var(--s214-primary-2);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.1;
}

.s214-header-actions { display: flex; align-items: center; gap: 8px; }
.s214-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 14px;
  height: 36px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.s214-btn-login {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--s214-line);
}
.s214-btn-login:hover { background: rgba(255, 255, 255, 0.14); }
.s214-btn-register {
  background: linear-gradient(135deg, var(--s214-primary), #ff7a00);
  color: #1a0a00;
  box-shadow: 0 6px 16px rgba(255, 149, 0, 0.35);
}
.s214-btn-register:hover { transform: translateY(-1px); }
.s214-btn:active { transform: translateY(1px); }

.s214-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--s214-line);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.s214-icon-btn:hover { background: rgba(255, 149, 0, 0.18); }

/* ============ Tag-style top nav strip ============ */
.s214-tagbar {
  max-width: var(--s214-max);
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--s214-line);
  background: rgba(22, 22, 53, 0.5);
}
.s214-tagbar::-webkit-scrollbar { display: none; }
.s214-tag {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--s214-ivory);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--s214-line);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.s214-tag:hover { color: #fff; background: rgba(255, 149, 0, 0.18); border-color: var(--s214-primary); }

/* ============ Hero carousel ============ */
.s214-hero {
  max-width: var(--s214-max);
  margin: 0 auto;
  padding: 14px 12px 4px;
}
.s214-hero-viewport {
  position: relative;
  border-radius: var(--s214-radius);
  overflow: hidden;
  box-shadow: var(--s214-shadow);
  background: var(--s214-card);
}
.s214-hero-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.s214-hero-slide {
  flex: 0 0 100%;
  position: relative;
  display: block;
  cursor: pointer;
}
.s214-hero-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.s214-hero-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.s214-hero-caption h2 { margin: 0 0 2px; font-size: 18px; font-weight: 800; }
.s214-hero-caption p { margin: 0; font-size: 12px; color: #ffe9c7; }
.s214-hero-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}
.s214-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}
.s214-hero-dot--active {
  width: 22px;
  border-radius: 6px;
  background: var(--s214-primary);
}

/* ============ Quick promo strip ============ */
.s214-quick {
  max-width: var(--s214-max);
  margin: 10px auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.s214-quick-card {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.14), rgba(255, 204, 204, 0.08));
  border: 1px solid var(--s214-line);
  border-radius: var(--s214-radius-sm);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.16s ease;
}
.s214-quick-card:hover { transform: translateY(-2px); border-color: var(--s214-primary); }
.s214-quick-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--s214-primary-2);
  line-height: 1;
}
.s214-quick-lbl { font-size: 11px; color: var(--s214-muted); margin-top: 4px; }

/* ============ Section heading ============ */
.s214-section { max-width: var(--s214-max); margin: 18px auto 0; padding: 0 12px; }
.s214-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  position: relative;
}
.s214-section-head::before {
  content: "";
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--s214-primary), var(--s214-pink));
  border-radius: 4px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: -3px;
}
.s214-section-title { font-size: 16px; font-weight: 800; color: #fff; flex: 1; }
.s214-section-link { font-size: 12px; color: var(--s214-primary-2); font-weight: 600; }

.s214-chips { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.s214-chip {
  padding: 5px 11px;
  font-size: 12px;
  color: var(--s214-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--s214-line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.s214-chip--active {
  color: #1a0a00;
  background: linear-gradient(135deg, var(--s214-primary), var(--s214-primary-2));
  border-color: transparent;
}

/* ============ Game grid ============ */
.s214-cat { scroll-margin-top: 130px; }
.s214-cat-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin: 14px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.s214-cat-title .s214-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--s214-primary-2);
  background: rgba(255, 149, 0, 0.14);
  border: 1px solid rgba(255, 149, 0, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}
.s214-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 375px) {
  .s214-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}
@media (min-width: 414px) {
  .s214-grid { grid-template-columns: repeat(5, 1fr); }
}
.s214-tile {
  background: linear-gradient(180deg, var(--s214-card), var(--s214-card-2));
  border: 1px solid var(--s214-line);
  border-radius: var(--s214-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.16s ease, box-shadow 0.18s ease;
  display: block;
  text-align: left;
  width: 100%;
  padding: 0;
  font-family: inherit;
  color: inherit;
}
.s214-tile:hover {
  transform: translateY(-2px);
  border-color: var(--s214-primary);
  box-shadow: 0 8px 22px rgba(255, 149, 0, 0.18);
}
.s214-tile-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0b0b1f;
  overflow: hidden;
}
.s214-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.s214-tile-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 15, 35, 0.78);
  color: var(--s214-primary-2);
  letter-spacing: 0.3px;
}
.s214-tile-name {
  font-size: 11px;
  font-weight: 600;
  color: #eee;
  padding: 5px 6px 7px;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Info / how-to cards ============ */
.s214-cards-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.s214-info-card {
  background: var(--s214-card);
  border: 1px solid var(--s214-line);
  border-radius: var(--s214-radius-sm);
  padding: 12px;
}
.s214-info-card h3 { margin: 0 0 6px; font-size: 14px; color: #fff; }
.s214-info-card p { margin: 0; font-size: 12px; color: var(--s214-muted); line-height: 1.5; }
.s214-info-card .s214-info-num {
  display: inline-flex;
  width: 26px; height: 26px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--s214-primary), var(--s214-pink));
  color: #1a0a00;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 6px;
}

.s214-steps { counter-reset: step; padding: 0; list-style: none; margin: 0; }
.s214-steps li {
  position: relative;
  padding: 10px 10px 10px 42px;
  background: var(--s214-card);
  border: 1px solid var(--s214-line);
  border-radius: var(--s214-radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
  color: #ddd;
}
.s214-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--s214-primary), var(--s214-pink));
  color: #1a0a00;
  font-weight: 800;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 12px;
}
.s214-steps strong { color: #fff; }

/* ============ Comparison table-like list ============ */
.s214-compare {
  background: var(--s214-card);
  border: 1px solid var(--s214-line);
  border-radius: var(--s214-radius-sm);
  overflow: hidden;
}
.s214-compare-row {
  display: flex;
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--s214-line);
}
.s214-compare-row:last-child { border-bottom: 0; }
.s214-compare-row .s214-compare-k { width: 110px; color: var(--s214-muted); font-weight: 600; }
.s214-compare-row .s214-compare-v { flex: 1; color: #eee; }

/* ============ SEO article block ============ */
.s214-article {
  background: linear-gradient(180deg, rgba(255, 149, 0, 0.05), transparent);
  border: 1px solid var(--s214-line);
  border-radius: var(--s214-radius);
  padding: 16px 14px;
}
.s214-article h2 {
  font-size: 17px;
  color: #fff;
  margin: 16px 0 8px;
  font-weight: 800;
}
.s214-article h2:first-child { margin-top: 0; }
.s214-article h3 { font-size: 14px; color: var(--s214-primary-2); margin: 12px 0 6px; }
.s214-article p { margin: 0 0 10px; font-size: 13.5px; color: #d7d4f2; line-height: 1.65; }
.s214-article ul { margin: 0 0 10px; padding-left: 18px; }
.s214-article li { font-size: 13px; color: #cfcde8; margin-bottom: 4px; }
.s214-article a { color: var(--s214-primary-2); font-weight: 600; border-bottom: 1px dashed rgba(255, 149, 0, 0.5); }

/* ============ Extended footer ============ */
.s214-ext-footer {
  max-width: var(--s214-max);
  margin: 22px auto 0;
  padding: 18px 12px;
  background: var(--s214-bg-2);
  border-top: 1px solid var(--s214-line);
}
.s214-ext-section { margin-bottom: 18px; }
.s214-ext-section h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--s214-primary-2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 10px;
}
.s214-ext-section p { font-size: 12.5px; color: var(--s214-muted); margin: 0 0 8px; line-height: 1.6; }
.s214-promo-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.s214-promo-list li button {
  width: 100%;
  text-align: left;
  background: var(--s214-card);
  border: 1px solid var(--s214-line);
  border-radius: var(--s214-radius-sm);
  padding: 10px;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.35;
  transition: border-color 0.16s ease, transform 0.12s ease;
}
.s214-promo-list li button:hover { border-color: var(--s214-primary); transform: translateY(-1px); }
.s214-promo-list li button strong { display: block; color: var(--s214-primary-2); font-size: 13px; margin-bottom: 2px; }

.s214-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.s214-directory a {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--s214-line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #d7d4f2;
  transition: background 0.16s ease, color 0.16s ease;
}
.s214-directory a:hover { color: #fff; background: rgba(255, 149, 0, 0.14); }

.s214-disclaimer {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--s214-radius-sm);
  background: rgba(255, 204, 204, 0.06);
  border: 1px dashed rgba(255, 204, 204, 0.3);
  font-size: 11.5px;
  color: #c9c4e8;
  line-height: 1.55;
}
.s214-disclaimer strong { color: var(--s214-pink-2); }

.s214-to-top {
  display: block;
  margin: 14px auto 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--s214-ivory);
  border: 1px solid var(--s214-line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.s214-to-top:hover { background: rgba(255, 149, 0, 0.18); }

/* ============ Copyright ============ */
.s214-copyright {
  max-width: var(--s214-max);
  margin: 0 auto;
  padding: 14px 12px calc(var(--s214-bottom-h) + 18px);
  text-align: center;
  font-size: 11.5px;
  color: var(--s214-muted);
  border-top: 1px solid var(--s214-line);
}
.s214-copyright a { color: var(--s214-muted); margin: 0 4px; }

/* ============ Bottom navigation ============ */
.s214-bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--s214-max);
  height: var(--s214-bottom-h);
  background: linear-gradient(180deg, rgba(22, 22, 53, 0.97), rgba(15, 15, 35, 0.98));
  border-top: 1px solid var(--s214-line);
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px 8px;
  gap: 2px;
}
.s214-bottom::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--s214-primary), transparent);
  opacity: 0.6;
}
.s214-bottom-item {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--s214-muted);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  font-size: 10px;
  font-weight: 600;
  position: relative;
  transition: transform 0.14s ease, color 0.16s ease;
}
.s214-bottom-item:hover { color: #fff; }
.s214-bottom-item--active { color: var(--s214-primary-2); transform: translateY(-3px); }
.s214-bottom-item--active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--s214-primary), var(--s214-pink));
}
.s214-bottom-icon {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--s214-line);
  margin-bottom: 1px;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.s214-bottom-icon svg { width: 18px; height: 18px; display: block; }
.s214-bottom-item--promo .s214-bottom-icon {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.25), rgba(255, 204, 204, 0.15));
  border-color: rgba(255, 149, 0, 0.4);
}
.s214-bottom-item--promo .s214-bottom-icon svg { color: var(--s214-primary-2); }
.s214-bottom-item--active .s214-bottom-icon {
  background: linear-gradient(135deg, var(--s214-primary), var(--s214-pink));
  border-color: transparent;
}
.s214-bottom-item--active .s214-bottom-icon svg { color: #1a0a00; }

/* ============ Full-height menu layer ============ */
.s214-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 16, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 90;
}
.s214-menu-backdrop--open { opacity: 1; pointer-events: auto; }
.s214-menu {
  position: fixed;
  top: 0; right: 0;
  width: 84%;
  max-width: 360px;
  height: 100vh;
  background: linear-gradient(180deg, #161635, #0F0F23);
  border-left: 1px solid var(--s214-line);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.5);
}
.s214-menu--open { transform: translateX(0); }
.s214-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--s214-line);
}
.s214-menu-head .s214-brand-name { font-size: 16px; }
.s214-menu-close {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--s214-line);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}
.s214-menu-body { padding: 12px 14px; overflow-y: auto; flex: 1; }
.s214-menu-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--s214-muted);
  margin: 14px 8px 6px;
}
.s214-menu-link {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  color: #eee;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  border: 1px solid transparent;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.s214-menu-link:hover {
  background: rgba(255, 149, 0, 0.12);
  border-color: var(--s214-line);
  color: #fff;
}
.s214-menu-cta {
  margin: 14px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.s214-menu-cta .s214-btn { height: 42px; width: 100%; }

/* ============ Utility ============ */
.s214-container { padding-bottom: 90px; }
.s214-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;
}
.s214-visually-hidden { display: none; }

/* Active menu highlight for current page link */
.s214-menu-link[aria-current="page"] {
  background: rgba(255, 149, 0, 0.16);
  border-color: rgba(255, 149, 0, 0.4);
  color: #fff;
}
