/* FILE: assets/css/style.css — Undead Casino Theme for Casinotuga (2025)
   Notes:
   - New unique class system prefixed with .nec-
   - Gothic/arcade vibe with neon glows and dark gradients
   - Accessible focus states preserved
   - Transitional support for legacy .dmn-* to avoid breakage until HTML updates
*/

/* 1) Fonts */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Creepster&family=Exo+2:wght@400;600;700&display=swap");

/* 2) Theme tokens */
:root {
  --nec-bg: #07090c; /* abyss */
  --nec-bg-2: #0b0f15; /* deeper layer */
  --nec-ink: #e7eef7; /* main text */
  --nec-mute: #97a5b6; /* muted text */
  --nec-acid: #8aff65; /* toxic green */
  --nec-violet: #8a5cff; /* spectral violet */
  --nec-blood: #ff3355; /* caution/red */
  --nec-wire: rgba(255, 255, 255, 0.06); /* hairline */
  --nec-glass: rgba(255, 255, 255, 0.04);
  --nec-radius: 18px;
  --nec-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

/* 3) Base reset */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: radial-gradient(
      1200px 800px at 60% -10%,
      rgba(138, 92, 255, 0.08),
      transparent
    ),
    radial-gradient(
      1000px 600px at 10% 110%,
      rgba(138, 92, 255, 0.06),
      transparent
    ),
    var(--nec-bg);
  color: var(--nec-ink);
  font: 400 16px/1.55 "Exo 2", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Visually hidden utility */
.nec-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  white-space: nowrap;
}

/* Container */
.nec-wrap {
  width: min(1220px, 94%);
  margin: 0 auto;
}

/* Skip to content accessibility link */
.nec-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.nec-skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
  outline: 3px solid color-mix(in oklab, var(--nec-violet) 55%, white 45%);
  outline-offset: 2px;
}

/* Focus visibility */
:where(a, button, [role="button"], input, select, textarea):focus {
  outline: 3px solid color-mix(in oklab, var(--nec-violet) 55%, white 45%);
  outline-offset: 2px;
}

/* 4) Header */
.nec-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(8px);
  background: linear-gradient(
    180deg,
    rgba(11, 15, 21, 0.96),
    rgba(11, 15, 21, 0.78)
  );
  border-bottom: 1px solid var(--nec-wire);
}
.nec-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.nec-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nec-brand__emblem {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(138, 92, 255, 0.18) inset;
}
.nec-brand__name {
  font: 700 22px/1 "Creepster", system-ui;
  letter-spacing: 0.4px;
  color: var(--nec-acid);
  text-shadow: 0 0 18px rgba(138, 255, 101, 0.25);
}

.nec-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}
.nec-nav a {
  color: var(--nec-mute);
  padding: 8px 12px;
  border-radius: 12px;
}
.nec-nav a:hover,
.nec-nav a:focus {
  color: #fff;
  background: var(--nec-glass);
  box-shadow: inset 0 0 0 1px var(--nec-wire);
}

/* 5) Hero */
.nec-hero {
  padding: 84px 0 12px;
}
.nec-hero__grid aside {
  display: none;
}
.nec-hero aside {
  grid-column: 1 / -1;
}
.nec-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
  text-align: center;
}
.nec-kicker {
  color: var(--nec-violet);
  font-weight: 700;
  letter-spacing: 0.4px;
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 13px;
}
.nec-hero__h1 {
  font: 700 clamp(26px, 3.6vw, 44px) / 1.1 "Cinzel", serif;
  margin: 0 0 12px;
}
.nec-lead {
  color: var(--nec-mute);
  margin: 0 0 16px;
}

.nec-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.nec-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  justify-content: center;
  box-shadow: var(--nec-shadow);
}
.nec-btn--primary {
  background: linear-gradient(135deg, var(--nec-acid), #49e685);
  color: #08130b;
  box-shadow: 0 10px 26px rgba(72, 230, 133, 0.22),
    inset 0 -2px 8px rgba(0, 0, 0, 0.25);
}
.nec-btn--ghost {
  background: transparent;
  border: 1px solid var(--nec-wire);
  color: var(--nec-ink);
}

/* Hero aside */
.nec-aside__panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  border: 1px solid var(--nec-wire);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.nec-aside__panel p {
  margin: 6px 0 0;
  color: var(--nec-mute);
}
.nec-aside__panel a {
  color: var(--nec-violet);
  text-decoration: underline;
  font-weight: 700;
}
.nec-bullets {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  color: var(--nec-mute);
}
.nec-bullets li {
  margin: 4px 0;
}
.nec-mini-pay {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.nec-mini-pay img {
  width: 62px;
  height: 36px;
  object-fit: contain;
}

/* 6) Section blocks */
.nec-sec {
  padding: 20px 0;
}
.nec-h2 {
  font: 700 clamp(22px, 3vw, 34px) / 1.2 "Cinzel", serif;
  margin: 0 0 10px;
  position: relative;
  padding-bottom: 6px;
}
.nec-h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--nec-acid), transparent);
  border-radius: 2px;
}
.nec-sub {
  color: var(--nec-mute);
  margin: 0 0 8px;
}

/* 7) Casino cards — undead redesign v2 (distinct layout) */
.nec-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 12px;
}

.nec-card {
  position: relative;
  border-radius: var(--nec-radius);
  padding: 16px;
  background: radial-gradient(
      600px 180px at 10% 0%,
      rgba(138, 92, 255, 0.1),
      transparent
    ),
    linear-gradient(180deg, var(--nec-bg-2), var(--nec-bg));
  border: 1px solid var(--nec-wire);
  overflow: hidden;
}
.nec-card::before {
  /* neon aura */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
      45deg,
      rgba(138, 92, 255, 0.38),
      rgba(138, 92, 255, 0) 40%
    ),
    linear-gradient(
      225deg,
      rgba(138, 255, 101, 0.22),
      rgba(138, 255, 101, 0) 42%
    );
  filter: blur(12px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

/* New distinct structure */
.nec-card__brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}
.nec-logoBadge {
  position: relative;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  background: radial-gradient(
      90px 90px at 50% 45%,
      rgba(138, 92, 255, 0.22),
      transparent
    ),
    var(--nec-bg);
  border: 1px solid var(--nec-wire);
  box-shadow: inset 0 0 0 2px rgba(138, 92, 255, 0.18);
}
.nec-logoBadge img {
  width: 100%;
  height: auto;
  max-width: calc(100% - 4px);
  object-fit: contain;
  filter: saturate(1.05);
}
.nec-rank {
  background: linear-gradient(135deg, #ffd66e, #ffb200);
  color: #2b1b00;
  font: 800 12px/1 "Exo 2", sans-serif;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(255, 178, 0, 0.26);
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.nec-card__title {
  margin: 0;
  font: 700 20px/1.25 "Exo 2", sans-serif;
  letter-spacing: 0.2px;
}

.nec-card__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.9fr 0.8fr;
  gap: 18px;
  align-items: center;
}
.nec-card__desc {
  margin: 6px 0 12px;
  color: var(--nec-mute);
}
.nec-taglist {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nec-tag {
  background: var(--nec-glass);
  color: var(--nec-mute);
  border: 1px solid var(--nec-wire);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}
.nec-pay {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.nec-pay img {
  width: 62px;
  height: 36px;
  object-fit: contain;
  filter: saturate(1.1);
}

.nec-card__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nec-meter {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--nec-wire);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}
.nec-meter > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--nec-acid), #49e685);
  box-shadow: 0 0 14px rgba(138, 255, 101, 0.25);
}
.nec-meter__label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--nec-mute);
}

.nec-card__cta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.nec-card__cta small {
  color: var(--nec-mute);
}

/* 8) Compare table */
.nec-tableWrap {
  overflow-x: auto;
  border-radius: 12px;
}
.nec-table {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
  background: transparent;
}
.nec-table thead th {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--nec-wire);
}
.nec-table td {
  padding: 12px;
  border-bottom: 1px solid var(--nec-wire);
  color: var(--nec-mute);
}
.nec-table tr:hover td {
  background: linear-gradient(90deg, rgba(138, 92, 255, 0.06), transparent);
}

/* 9) Informational blocks */
.nec-panel {
  position: relative;
  background: var(--nec-bg-2);
  border: 1px solid var(--nec-wire);
  border-left: 3px solid var(--nec-violet);
  border-radius: 14px;
  padding: 14px;
  overflow: hidden;
}
.nec-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0 60%,
    rgba(138, 92, 255, 0.06) 60% 100%
  );
  pointer-events: none;
}
.nec-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.nec-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.nec-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.nec-stat {
  position: relative;
  background: var(--nec-bg-2);
  border: 1px solid var(--nec-wire);
  border-radius: 12px;
  padding: 14px;
  overflow: hidden;
}
.nec-stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    220px 120px at 20% 0%,
    rgba(138, 92, 255, 0.08),
    transparent
  );
  pointer-events: none;
}
.nec-stat__label {
  color: var(--nec-mute);
  margin-bottom: 6px;
}
.nec-stat__value {
  font: 800 28px/1 "Cinzel", serif;
  color: var(--nec-acid);
  margin-bottom: 8px;
  text-shadow: 0 0 24px rgba(138, 255, 101, 0.2);
}
.nec-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
}
.nec-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--nec-acid), #49e685);
}

/* 10) Stars — pure CSS (no images) */
.nec-stars {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nec-cluster {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.nec-stars .nec-score {
  font-weight: 800;
  color: var(--nec-acid);
}
.nec-star {
  --s: 18px;
  width: var(--s);
  height: var(--s);
  display: inline-block;
  flex: 0 0 auto;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  background: rgba(255, 255, 255, 0.14);
  filter: drop-shadow(0 0 6px rgba(138, 92, 255, 0.28));
}
.nec-star--on {
  background: linear-gradient(135deg, var(--nec-acid), #49e685);
}
.nec-star--half {
  background: linear-gradient(
    90deg,
    var(--nec-acid) 50%,
    rgba(255, 255, 255, 0.14) 50%
  );
}
.nec-star--off {
  background: rgba(255, 255, 255, 0.14);
}

/* 11) Footer */
.nec-footer {
  padding: 22px 0;
  border-top: 1px solid var(--nec-wire);
  margin-top: 26px;
}
.nec-footer__wrap {
  display: grid;
  gap: 16px;
}
.nec-disclaimer {
  background: var(--nec-bg-2);
  border: 1px solid var(--nec-wire);
  border-radius: 14px;
  padding: 14px;
}
.nec-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.nec-regs {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.nec-regs img {
  height: 30px;
}
.nec-footLinks {
  order: -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.nec-footLinks a {
  color: var(--nec-mute);
}
.nec-copy {
  text-align: center;
  color: var(--nec-mute);
}

/* 12) Legal pages */
.nec-legal {
  padding: 90px 0;
}
.nec-legal .nec-wrap {
  width: min(900px, 94%);
}
.nec-legal__h1 {
  font: 700 clamp(24px, 3.2vw, 36px) / 1.15 "Cinzel", serif;
  margin: 0 0 12px;
}
.nec-legal__h2 {
  margin: 20px 0 10px;
  font: 700 20px/1.2 "Exo 2", sans-serif;
}
.nec-legal__h3 {
  margin: 14px 0 6px;
}
.nec-legal__h4 {
  margin: 12px 0 6px;
}
.nec-legal__p {
  color: var(--nec-mute);
  line-height: 1.7;
}
.nec-legal__ul {
  color: var(--nec-mute);
}
.nec-legal__a {
  color: var(--nec-violet);
  text-decoration: underline;
  font-weight: 700;
}
.nec-legal__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--nec-bg-2);
  border: 1px solid var(--nec-wire);
}
.nec-legal__table th,
.nec-legal__table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

/* 13) Mobile tweaks */
@media (max-width: 980px) {
  .nec-hero__grid {
    grid-template-columns: 1fr;
  }
  .nec-card__body {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nec-nav ul {
    display: none;
  }
}
@media (max-width: 720px) {
  .nec-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .nec-grid-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .nec-grid-4,
  .nec-grid-3,
  .nec-grid-2 {
    grid-template-columns: 1fr;
  }
  .nec-hero {
    padding: 14px 0 0;
  }
  .nec-actions,
  .nec-h2 {
    display: none;
  }
  .nec-sub,
  .nec-header__in {
    display: none;
  }
  .nec-card__cta {
    flex-direction: column;
  }
  .nec-btn {
    width: 100%;
  }
  .nec-card__brand {
    justify-content: center;
  }
  .nec-rank {
    position: absolute;
    top: -14px;
    left: -16px;
  }
  .nec-lead {
    margin: 0;
  }
  .nec-legal {
    padding: 14px 0;
  }
}

/* 14) Transitional legacy support (will be removed after HTML migration) */
/* Map some legacy .dmn-* styles to avoid breakage until templates are updated */
.dmn-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  background: linear-gradient(
    180deg,
    rgba(11, 14, 18, 0.92),
    rgba(11, 14, 18, 0.72)
  );
  border-bottom: 1px solid var(--nec-wire);
}
.dmn-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.dmn-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.dmn-brand__name {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--nec-acid);
  font-family: "Creepster", system-ui;
}
.dmn-nav ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dmn-nav a {
  color: var(--nec-mute);
  padding: 8px 10px;
  border-radius: 10px;
}
.dmn-nav a:hover,
.dmn-nav a:focus {
  color: #fff;
  background: var(--nec-glass);
}

.dmn-container {
  width: min(1220px, 94%);
  margin: 0 auto;
}
.dmn-hero {
  padding: 84px 0 12px;
}
.dmn-hero__title {
  font-family: "Cinzel", serif;
}
.dmn-lead {
  color: var(--nec-mute);
}
.dmn-btn--primary {
  background: linear-gradient(135deg, var(--nec-acid), #49e685);
  color: #08130b;
}
.dmn-btn--ghost {
  border: 1px solid var(--nec-wire);
  color: var(--nec-ink);
  background: transparent;
}

.dmn-card {
  background: linear-gradient(180deg, var(--nec-bg-2), var(--nec-bg));
  border: 1px solid var(--nec-wire);
  border-radius: var(--nec-radius);
}
.dmn-card__row {
  display: grid;
  grid-template-columns: 160px 1fr 260px;
  gap: 16px;
  align-items: center;
}
.dmn-card__logo {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--nec-wire);
  border-radius: 12px;
  padding: 10px;
}
.dmn-payments img {
  width: 62px;
  height: 36px;
  object-fit: contain;
}

.dmn-table thead th {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--nec-wire);
}
.dmn-table td {
  border-bottom: 1px solid var(--nec-wire);
  color: var(--nec-mute);
}

.dmn-footer {
  border-top: 1px solid var(--nec-wire);
}
.dmn-disclaimer {
  background: var(--nec-bg-2);
  border: 1px solid var(--nec-wire);
  border-radius: 12px;
  padding: 12px;
}
.dmn-logos img {
  height: 30px;
}
.dmn-links a,
.dmn-copy {
  color: var(--nec-mute);
}
