/* Mastiarena — social entertainment (no real money) */
:root {
  --bg-deep: #0a1018;
  --bg-elevated: #121a26;
  --bg-panel: #1a2433;
  --bg-light: #f0f2f5;
  --bg-mist: #e4e8ee;
  --text-on-dark: #e8ecef;
  --text-muted: #9aa7b2;
  --text-on-light: #1a1f26;
  --accent: #c9a227;
  --accent-dim: #a88520;
  --teal: #2d7d8a;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-pill: 999px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-on-dark);
  background: var(--bg-deep);
  line-height: 1.6;
  font-size: 1rem;
}

#main {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.no-scroll {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* —— Disclaimer strips —— */
.disclaimer-bar {
  position: relative;
  z-index: 201;
  background: #0d1520;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 0.65rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.disclaimer-bar--light {
  background: var(--bg-mist);
  color: #3d4754;
  border-bottom: 1px solid #cfd6de;
}

.disclaimer-bar strong {
  color: var(--text-on-dark);
  font-weight: 600;
}

.disclaimer-bar--light strong {
  color: var(--text-on-light);
}

/* —— Age popup —— */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(5, 10, 16, 0.92);
  backdrop-filter: blur(6px);
}

.popup-box {
  max-width: 480px;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.popup-icon {
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin: 0 auto 1rem;
}

.popup-box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.popup-box p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* —— Cookies —— */
.cookies-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookies-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: #fff;
  color: var(--bg-deep);
  border-color: #fff;
}

.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn--outline {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--outline:hover {
  border-color: #fff;
  color: #fff;
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn--dark {
  background: var(--bg-panel);
  color: #fff;
  border-color: var(--bg-panel);
}

button.btn:disabled,
button.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}
button.btn:disabled:hover,
button.btn[disabled]:hover {
  box-shadow: none;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background: rgba(10, 16, 24, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: #fff;
}

.logo img,
.logo svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav__link {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav__link:hover {
  color: #fff;
  text-decoration: none;
}

.nav__cta {
  margin-left: 0.5rem;
}

.burger {
  display: none;
  flex-direction: column;
  position: relative;
  z-index: 210;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  margin: -0.5rem -0.5rem -0.5rem 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  flex-direction: column;
  /* Offset below top disclaimer + header (multi-line safe); keep under .site-header z-200 for taps */
  padding: calc(6.75rem + env(safe-area-inset-top, 0px)) 1.5rem 1.5rem;
  gap: 0.5rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  box-sizing: border-box;
  min-height: 100dvh;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav .nav__link,
.mobile-nav .nav__cta {
  display: block;
  padding: 0.75rem 0;
  text-align: center;
  margin: 0;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
}

/* —— Sections —— */
.section {
  padding: 4.5rem 1.5rem;
}

.section--tight {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.section--light {
  background: var(--bg-light);
  color: var(--text-on-light);
}

.section--light .eyebrow {
  color: var(--teal);
}

.section--light h2,
.section--light h3 {
  color: var(--text-on-light);
}

.section--light p.lead,
.section--light .card p {
  color: #3d4a56;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  margin: 0 0 1rem;
  color: #fff;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin: 0 0 1rem;
  color: #fff;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem 5rem;
  background: linear-gradient(165deg, #0a1018 0%, #0f1a2a 45%, #0a1018 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  max-width: 500px;
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(201, 162, 39, 0.12) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Grid feature row */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  color: #4a5663;
}

.pill-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.pill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(15, 22, 32, 0.08);
  border: 1px solid #e0e4ea;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 22, 32, 0.12);
}

.card--dark {
  background: var(--bg-elevated);
  border-color: var(--line);
  color: var(--text-on-dark);
  box-shadow: none;
}

.card--dark h3,
.card--dark p {
  color: var(--text-on-dark);
}

.card--dark p {
  color: var(--text-muted);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Games */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

@media (max-width: 1000px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  background: var(--bg-elevated);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.game-card__art {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-panel) 0%, #0d1520 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card__art--a {
  background: linear-gradient(160deg, #1a2a3d 0%, #2d1f3d 50%, #0a1018 100%);
}
.game-card__art--b {
  background: linear-gradient(160deg, #0d2a2e 0%, #1a3d4a 50%, #0a1018 100%);
}
.game-card__art--c {
  background: linear-gradient(160deg, #3d2a1a 0%, #1a1510 50%, #0a1018 100%);
}

.game-card__art--img {
  padding: 0;
  background: #0a1018;
}

a.game-card__art--img {
  display: block;
  text-decoration: none;
  color: inherit;
}

.game-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.game-card__deco {
  width: 72%;
  max-width: 200px;
  height: 120px;
  border-radius: 12px;
  border: 2px solid rgba(201, 162, 39, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.game-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.game-card__body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.game-card__body p {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Tag columns */
.tag-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .tag-columns {
    grid-template-columns: 1fr;
  }
}

.tag-block {
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.tag-block h3 {
  color: var(--text-on-light);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  background: var(--bg-mist);
  border-radius: var(--radius-pill);
  color: #3d4a56;
}

/* Values 2x2 */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-cell {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

.value-cell h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.value-cell p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Link grid */
.info-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 800px) {
  .info-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-link {
  display: block;
  text-align: center;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #d5dbe3;
  border-radius: 12px;
  color: var(--text-on-light);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.info-link:hover {
  border-color: var(--teal);
  background: #f8f9fb;
  text-decoration: none;
}

/* Legal cards row */
.legal-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 900px) {
  .legal-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.legal-tile {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.legal-tile h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.legal-tile p {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.legal-tile a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* CTA bar */
.cta-bar {
  background: var(--bg-light);
  color: var(--text-on-light);
  padding: 2.25rem 1.5rem;
  border-top: 1px solid #d5dbe3;
}

.cta-bar__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-bar p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #070b10;
  color: var(--text-muted);
  padding: 3.5rem 1.5rem 2rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.footer-top {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 2rem;
}

@media (max-width: 1000px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: 0.75rem;
}

.footer-brand p {
  margin: 0;
  line-height: 1.5;
  max-width: 280px;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.badge-18 {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.badge-18__box {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}

.footer-disclaimer {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #7a8a98;
  margin: 0 0 1rem;
}

.copyright {
  font-size: 0.8rem;
  color: #5a6670;
  margin: 0;
}

/* Inner pages */
.page-main {
  padding: 2.5rem 1.5rem 4rem;
  max-width: 860px;
  margin: 0 auto;
  min-height: 50vh;
}

.page-main h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.page-main .last-up {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-prose h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.75rem;
  color: #fff;
}

.legal-prose p,
.legal-prose li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-prose ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.legal-prose a {
  color: var(--teal);
}

/* Game play page (iframe) */
.play-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
}

.play-head {
  margin-bottom: 1.25rem;
}

.play-head h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: #fff;
}

.play-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 42rem;
}

.game-iframe-wrap {
  position: relative;
  width: 100%;
  min-height: 65dvh;
  height: 70dvh;
  max-height: 900px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #030508;
}

.game-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
