/* ============================================================
 * nwr play - 2a74-ui.css
 * Mobile-first canvas (320-430px). All custom classes use the
 * v446- prefix. Palette: #0D1117 base / #8A2BE2 / #9932CC.
 * ============================================================ */

:root {
  --v446-bg: #0D1117;
  --v446-bg-2: #12131c;
  --v446-bg-3: #1a1530;
  --v446-purple: #8A2BE2;
  --v446-orchid: #9932CC;
  --v446-accent: #b14bff;
  --v446-text: #f3eefa;
  --v446-text-dim: #b9a8d4;
  --v446-line: rgba(138, 43, 226, 0.25);
  --v446-gold: #ffd35e;
  --v446-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  --v446-radius: 14px;
  --v446-radius-sm: 10px;
  --v446-max: 480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--v446-bg);
  color: var(--v446-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: var(--v446-max);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(138, 43, 226, 0.30), transparent 60%),
    radial-gradient(80% 50% at 100% 0%, rgba(153, 50, 204, 0.22), transparent 60%),
    var(--v446-bg);
  padding-bottom: 84px; /* bottom-nav clearance */
}

a { color: var(--v446-accent); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--v446-gold); outline-offset: 2px; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.3; font-weight: 700; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 10px; }

/* ------------------------- Header ------------------------- */

.v446-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.96), rgba(13, 17, 23, 0.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v446-line);
}

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

.v446-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--v446-line);
  flex-shrink: 0;
}

.v446-brand-name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, var(--v446-accent), var(--v446-orchid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.v446-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

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

.v446-btn--register {
  background: linear-gradient(90deg, var(--v446-purple), var(--v446-orchid));
  color: #fff;
  box-shadow: 0 4px 14px rgba(138, 43, 226, 0.45);
}

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

.v446-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--v446-line);
  background: rgba(138, 43, 226, 0.10);
  color: var(--v446-text);
  cursor: pointer;
}

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

/* ------------------------- Slide-down menu ------------------------- */

.v446-menu {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translate(-50%, -12px);
  width: 100%;
  max-width: var(--v446-max);
  background: var(--v446-bg-2);
  border-bottom: 1px solid var(--v446-line);
  padding: 10px 12px 14px;
  z-index: 49;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  max-height: 70vh;
  overflow-y: auto;
}

.v446-menu--open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

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

.v446-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--v446-radius-sm);
  background: rgba(138, 43, 226, 0.08);
  border: 1px solid var(--v446-line);
  color: var(--v446-text);
  font-size: 0.86rem;
  font-weight: 600;
  min-height: 44px;
}

.v446-menu-item:active { background: rgba(138, 43, 226, 0.18); }

.v446-menu-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--v446-text-dim);
  margin: 10px 4px 6px;
}

/* ------------------------- Main wrap ------------------------- */

.v446-main { padding: 12px; }

/* ------------------------- Hero carousel ------------------------- */

.v446-carousel {
  position: relative;
  border-radius: var(--v446-radius);
  overflow: hidden;
  box-shadow: var(--v446-shadow);
  margin-bottom: 14px;
}

.v446-slides { position: relative; aspect-ratio: 16 / 9; }

.v446-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.v446-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v446-slide--active { opacity: 1; }

.v446-slide-overlay {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0), rgba(13, 17, 23, 0.85));
  color: #fff;
  padding: 22px 12px 10px;
  border-radius: 10px;
}

.v446-slide-title { font-weight: 800; font-size: 1.05rem; margin-bottom: 2px; }
.v446-slide-sub { font-size: 0.78rem; color: var(--v446-text-dim); margin-bottom: 8px; }

.v446-slide-cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--v446-purple), var(--v446-orchid));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 14px;
}

.v446-dots {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 5px;
  z-index: 5;
}

.v446-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
}

.v446-dot--active { background: var(--v446-gold); }

/* ------------------------- Category quick nav ------------------------- */

.v446-cat-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}

.v446-cat-nav::-webkit-scrollbar { display: none; }

.v446-cat-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 16px;
  background: rgba(138, 43, 226, 0.10);
  border: 1px solid var(--v446-line);
  color: var(--v446-text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
}

.v446-cat-chip:active { background: rgba(138, 43, 226, 0.25); }

/* ------------------------- Section title ------------------------- */

.v446-section { margin-bottom: 18px; }

.v446-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
}

.v446-section-head h2 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.v446-section-head h2::before {
  content: "";
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, var(--v446-purple), var(--v446-orchid));
  border-radius: 2px;
}

.v446-link-more {
  font-size: 0.78rem;
  color: var(--v446-accent);
  font-weight: 600;
}

/* ------------------------- Game grid ------------------------- */

.v446-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (min-width: 380px) {
  .v446-game-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
}

.v446-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  min-width: 0;
}

.v446-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--v446-line);
  background: var(--v446-bg-3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.v446-game:active .v446-game-img {
  transform: scale(0.95);
  box-shadow: 0 0 0 2px var(--v446-accent);
}

.v446-game-img img { width: 100%; height: 100%; object-fit: cover; }

.v446-game-name {
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--v446-text-dim);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 28px;
}

/* ------------------------- Promo / info banners ------------------------- */

.v446-banner {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.18), rgba(153, 50, 204, 0.10));
  border: 1px solid var(--v446-line);
  border-radius: var(--v446-radius);
  padding: 14px;
  margin-bottom: 14px;
}

.v446-banner h3 { color: var(--v446-gold); margin-bottom: 4px; }

.v446-banner-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.v446-banner-btn {
  background: linear-gradient(90deg, var(--v446-purple), var(--v446-orchid));
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: var(--v446-radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ------------------------- Cards / modules ------------------------- */

.v446-card {
  background: var(--v446-bg-2);
  border: 1px solid var(--v446-line);
  border-radius: var(--v446-radius);
  padding: 14px;
  margin-bottom: 12px;
}

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

.v446-mini {
  background: rgba(138, 43, 226, 0.07);
  border: 1px solid var(--v446-line);
  border-radius: var(--v446-radius-sm);
  padding: 10px;
  min-height: 44px;
}

.v446-mini h4 { color: var(--v446-accent); font-size: 0.85rem; margin-bottom: 2px; }
.v446-mini p { font-size: 0.76rem; color: var(--v446-text-dim); margin: 0; }

.v446-list { margin: 6px 0 0; padding-left: 18px; }
.v446-list li { margin-bottom: 6px; font-size: 0.85rem; color: var(--v446-text-dim); }

.v446-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.v446-steps li {
  counter-increment: step;
  position: relative;
  padding: 8px 10px 8px 38px;
  margin-bottom: 6px;
  background: rgba(138, 43, 226, 0.06);
  border-radius: var(--v446-radius-sm);
  border: 1px solid var(--v446-line);
  font-size: 0.85rem;
  color: var(--v446-text);
}

.v446-steps li::before {
  content: counter(step);
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--v446-purple), var(--v446-orchid));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------- RTP table-like grid ------------------------- */

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

.v446-rtp-row {
  display: flex;
  justify-content: space-between;
  background: rgba(138, 43, 226, 0.07);
  border: 1px solid var(--v446-line);
  border-radius: var(--v446-radius-sm);
  padding: 8px 10px;
  font-size: 0.82rem;
}

.v446-rtp-row b { color: var(--v446-gold); }

/* ------------------------- Checklist ------------------------- */

.v446-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 10px;
  background: rgba(138, 43, 226, 0.06);
  border: 1px solid var(--v446-line);
  border-radius: var(--v446-radius-sm);
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.v446-check::before {
  content: "\2713";
  color: var(--v446-gold);
  font-weight: 800;
  flex-shrink: 0;
}

/* ------------------------- SEO copy block ------------------------- */

.v446-seo {
  font-size: 0.88rem;
  color: var(--v446-text-dim);
}

.v446-seo h2 { color: var(--v446-text); margin-top: 14px; }
.v446-seo p { margin-bottom: 8px; }
.v446-seo a { color: var(--v446-accent); }

/* ------------------------- Footer / extended footer ------------------------- */

.v446-extended-footer {
  margin-top: 8px;
  padding: 0 12px;
}

.v446-ef-block {
  background: var(--v446-bg-2);
  border: 1px solid var(--v446-line);
  border-radius: var(--v446-radius);
  padding: 14px;
  margin-bottom: 12px;
}

.v446-ef-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--v446-gold);
  margin-bottom: 8px;
}

.v446-ef-brand-text {
  font-size: 0.82rem;
  color: var(--v446-text-dim);
  margin-bottom: 10px;
}

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

.v446-ef-promo {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.20), rgba(153, 50, 204, 0.10));
  border: 1px solid var(--v446-line);
  border-radius: var(--v446-radius-sm);
  padding: 10px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.v446-ef-dir-grid a {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(138, 43, 226, 0.08);
  border: 1px solid var(--v446-line);
  color: var(--v446-text);
  font-size: 0.78rem;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.v446-ef-disclaimer {
  font-size: 0.72rem;
  color: var(--v446-text-dim);
  padding: 10px 12px;
  text-align: center;
  border-top: 1px solid var(--v446-line);
  margin-top: 4px;
}

/* ------------------------- Bottom navigation ------------------------- */

.v446-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--v446-max);
  background: linear-gradient(180deg, rgba(18, 19, 28, 0.96), rgba(13, 17, 23, 1));
  border-top: 1px solid var(--v446-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 60;
  padding: 4px 0 6px;
}

.v446-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  color: var(--v446-text-dim);
  font-size: 0.62rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  min-height: 56px;
  cursor: pointer;
  background: none;
  border: none;
}

.v446-nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.18s ease, color 0.18s ease;
}

.v446-nav-item .v446-nav-label {
  opacity: 0.85;
  transition: opacity 0.18s ease;
}

.v446-nav-item--active {
  color: var(--v446-gold);
}

.v446-nav-item--active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--v446-purple), var(--v446-orchid));
}

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

.v446-nav-item:active svg { transform: scale(1.18); }
.v446-nav-item:active .v446-nav-label { opacity: 1; }

/* ------------------------- Utility ------------------------- */

.v446-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.v446-divider {
  height: 1px;
  background: var(--v446-line);
  margin: 10px 0;
}

.v446-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 211, 94, 0.15);
  color: var(--v446-gold);
  font-size: 0.7rem;
  font-weight: 700;
}
