:root {
  --xr-bg: #0c1f17;
  --xr-panel: #123027;
  --xr-panel-2: #173a2f;
  --xr-line: #2c6b55;
  --xr-neo: #5ee39a;
  --xr-text: #e6fff3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Public Sans", sans-serif;
  color: var(--xr-text);
  background:
    radial-gradient(circle at 12% 8%, rgba(94, 227, 154, 0.16), transparent 40%),
    radial-gradient(circle at 88% 84%, rgba(94, 227, 154, 0.1), transparent 40%),
    var(--xr-bg);
}

.xr-header {
  position: sticky;
  top: 0;
  z-index: 65;
  border-bottom: 1px solid var(--xr-line);
  background: color-mix(in srgb, #0d2018 84%, transparent);
  backdrop-filter: blur(8px);
}

.xr-header-row {
  width: min(1420px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.xr-logo {
  text-decoration: none;
  color: #c5ffe2;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Kanit", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

.xr-logo-puck {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  border: 1px solid #42936f;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #5ee39a, #2f8e66);
  color: #062314;
  font-weight: 900;
}

.xr-menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #396f59;
  border-radius: 10px;
  background: #123026;
}

.xr-menu span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: #d9ffea;
}

.xr-nav {
  display: flex;
  gap: 0.4rem;
}

.xr-nav a {
  text-decoration: none;
  color: #d8ffe9;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.45rem 0.72rem;
}

.xr-nav a:hover,
.xr-nav a.xr-now {
  background: #1f4c3a;
}

main {
  width: min(1420px, calc(100% - 2rem));
  margin: 1.1rem auto 2.4rem;
}

.xr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.xr-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
}

.xr-card {
  border: 1px solid var(--xr-line);
  border-radius: 16px;
  background: linear-gradient(155deg, #113127, #0f2a21);
  padding: 1rem;
}

.xr-card h1,
.xr-card h2,
.xr-card h3 {
  margin: 0 0 0.55rem;
  font-family: "Kanit", sans-serif;
}

.xr-card h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.xr-lights {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.xr-lights span {
  border: 1px solid #3d8d69;
  border-radius: 999px;
  padding: 0.45rem 0.68rem;
  background: #1c4938;
  font-weight: 700;
}

.xr-slab-list {
  margin: 0.7rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.xr-slab {
  border-left: 4px solid var(--xr-neo);
  border-radius: 8px;
  background: #133427;
  padding: 0.54rem 0.7rem;
}

.xr-twin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.xr-mini {
  border: 1px solid #39795f;
  border-radius: 10px;
  background: #173d30;
  padding: 0.66rem;
}

.xr-bar {
  margin-top: 0.8rem;
  border: 1px solid #38765d;
  border-radius: 999px;
  overflow: hidden;
  height: 12px;
}

.xr-bar span {
  display: block;
  width: 76%;
  height: 100%;
  background: linear-gradient(90deg, #5ee39a, #7cf4bf);
}

.xr-game {
  border: 1px solid #37745c;
  border-radius: 16px;
  padding: 0.75rem;
  background: #102a21;
}

.xr-game iframe {
  width: 100%;
  height: min(72vw, 670px);
  border: 0;
  border-radius: 10px;
  background: #000;
}

.xr-quad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.xr-footer {
  border-top: 1px solid #2d6650;
  background: #0a1a14;
}

.xr-footer-inner {
  width: min(1420px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem;
}

.xr-safe-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.xr-safe-links a {
  color: #bffedc;
}

.xr-age {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(5, 13, 10, 0.85);
  padding: 1rem;
}

.xr-age[hidden] {
  display: none;
}

.xr-age-box {
  width: min(560px, 100%);
  border: 1px solid #3d8465;
  border-radius: 14px;
  background: #103126;
  padding: 1rem;
}

.xr-age-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.7rem;
}

.xr-age-actions button {
  border: 0;
  border-radius: 8px;
  padding: 0.62rem 0.86rem;
  cursor: pointer;
  font-weight: 800;
}

.xr-age-yes {
  background: linear-gradient(120deg, #5ee39a, #83ffd1);
  color: #083221;
}

.xr-age-no {
  background: #2e644f;
  color: #e8fff4;
}

.xr-age-msg {
  min-height: 1.4em;
  color: #f2bba7;
}

@media (max-width: 1100px) {
  .xr-hero {
    grid-template-columns: 1fr;
  }

  .xr-quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .xr-menu {
    display: inline-block;
  }

  .xr-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.25rem);
    display: none;
    flex-direction: column;
    background: #102f24;
    border: 1px solid #3c8565;
    border-radius: 12px;
    padding: 0.6rem;
  }

  .xr-nav.xr-open {
    display: flex;
  }

  .xr-quad,
  .xr-twin {
    grid-template-columns: 1fr;
  }
}
