/* nimiq.casino — lobby styling.
 * @nimiq/style sets html { font-size: 8px } (1rem = 8px). All custom values here
 * are in px to avoid the half-size trap. nq-* component classes keep their own rem.
 */

:root {
  --navy: #1f2348;
  --navy-bg: radial-gradient(100% 100% at bottom right, #260133, #1f2348);
  --gold: #e9b213;
  --green: #21bca5;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-40: rgba(255, 255, 255, 0.4);
  --ink: #1f2348;
  --ink-60: rgba(31, 35, 72, 0.6);
  --ink-40: rgba(31, 35, 72, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Mulish", "Muli", system-ui, sans-serif !important;
  background-color: var(--navy);
  background-image: var(--navy-bg);
  background-attachment: fixed;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

/* --- masthead ----------------------------------------------------------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hex {
  display: block;
}

.brand-word {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
}

.brand-dot {
  color: var(--gold);
}

.net-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white-40);
}

/* --- hero --------------------------------------------------------------- */
.hero {
  padding: 32px 0 8px;
  max-width: 640px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
  color: #fff;
}

.lede {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--white-60);
  text-wrap: pretty;
}

.lede strong {
  color: #fff;
  font-weight: 700;
}

/* --- mode cards --------------------------------------------------------- */
.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}

.mode-card {
  background: #fff;
}

.mode-body {
  padding: 28px;
}

.mode-body h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.mode-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-60);
}

.mode-body strong {
  color: var(--ink);
}

/* "Zero house edge" emphasis — navy bold. (Green on white fails WCAG AA; green
 * stays reserved for true success surfaces, not body text.) */
.pos {
  color: var(--ink);
}

/* --- games -------------------------------------------------------------- */
.section-label {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white-40);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.loading {
  grid-column: 1 / -1;
  color: var(--white-40);
  font-size: 15px;
}

.game-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0.5rem 3.5rem rgba(0, 0, 0, 0.111);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.game-meta {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-60);
}

.game-meta .edge-zero {
  color: var(--ink);
  font-weight: 700;
}

.game-blurb {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-60);
  flex: 1;
}

.game-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-40);
  margin-top: 4px;
}

/* A live game's card is a link to its page (no underline; lifts on hover). */
.game-card.is-live {
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.25, 0, 0, 1),
    box-shadow 0.2s cubic-bezier(0.25, 0, 0, 1);
}

.game-card.is-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.16);
}

.game-status.is-live {
  color: var(--ink);
  font-weight: 700;
}

/* --- fairness ----------------------------------------------------------- */
.fairness {
  background: #fff;
  margin: 40px 0 8px;
}

.fairness-body {
  padding: 28px 32px;
}

.fairness-body h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.fairness-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-60);
  max-width: 720px;
}

/* --- footer ------------------------------------------------------------- */
.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.disclaimer {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--white-40);
  max-width: 560px;
}

.footer-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--white-60);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.25, 0, 0, 1);
}

.footer-link:hover {
  color: #fff;
}

/* --- responsive --------------------------------------------------------- */
@media (max-width: 720px) {
  .hero h1 {
    font-size: 34px;
  }
  .modes {
    grid-template-columns: 1fr;
  }
  .game-grid {
    grid-template-columns: 1fr;
  }
}
