:root {
  color-scheme: dark;
  --bg: #10131a;
  --panel: rgba(23, 27, 37, 0.76);
  --panel-strong: rgba(28, 33, 45, 0.92);
  --text: #fff8f1;
  --muted: #b9c0cc;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.2);
  --radius: 8px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --safe-bottom-buffer: 72px;
  --page-gutter: 40px;
  --orange: #ff8a00;
  --gold: #ffc247;
  --cyan: #63d5ff;
  --green: #4ade80;
  --page-background:
    radial-gradient(circle at 20% 20%, rgba(255, 138, 0, 0.24), transparent 30rem),
    radial-gradient(circle at 85% 78%, rgba(99, 213, 255, 0.18), transparent 24rem),
    linear-gradient(135deg, #151821 0%, #0e1118 55%, #19140f 100%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  min-height: -webkit-fill-available;
  background: var(--page-background);
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page-background);
  background-color: var(--bg);
  background-repeat: no-repeat;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent);
}

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100svh;
  width: min(1120px, calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: calc(var(--space-6) + env(safe-area-inset-top)) 0 calc(var(--space-7) + env(safe-area-inset-bottom));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.brand-logo-link {
  display: inline-flex;
  border-radius: var(--radius);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.brand-logo-link:hover,
.brand-logo-link:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 138, 0, 0.18);
}

.brand-logo {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

.eyebrow,
.tile-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 2px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.1;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--space-5);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 138, 0, 0.16);
  border: 1px solid rgba(255, 194, 71, 0.42);
  border-radius: var(--radius);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  background: rgba(255, 138, 0, 0.26);
  border-color: rgba(255, 194, 71, 0.72);
  outline: none;
  transform: translateY(-2px);
}

.feature {
  display: grid;
  place-items: center;
  padding: var(--space-7) 0 var(--space-3);
}

.game-tile {
  display: grid;
  grid-template-columns: 1fr;
  width: min(840px, 100%);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-tile:hover,
.game-tile:focus-visible {
  border-color: rgba(255, 194, 71, 0.62);
  box-shadow: 0 32px 90px rgba(255, 138, 0, 0.18), 0 26px 80px rgba(0, 0, 0, 0.42);
  outline: none;
  transform: translateY(-4px);
}

.game-art {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 42%),
    linear-gradient(135deg, #434957 0%, #252a34 100%);
}

.game-art img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 180ms ease;
}

.game-art img.has-thumbnail {
  opacity: 1;
}

.game-art-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 35%, rgba(16, 19, 26, 0.72));
  transform: translateZ(0);
}

.game-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
  min-height: 260px;
  padding: clamp(var(--space-6), 5vw, var(--space-7));
  background:
    linear-gradient(150deg, var(--panel-strong), rgba(18, 22, 30, 0.95)),
    linear-gradient(90deg, rgba(255, 138, 0, 0.16), transparent);
}

h2 {
  margin: -8px 0 0;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.9;
}

.game-summary {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.game-meta {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  width: fit-content;
  min-height: 44px;
  padding: 0 var(--space-4);
  color: #f6fff8;
  font-weight: 800;
  background: rgba(16, 19, 26, 0.72);
  border: 1px solid rgba(74, 222, 128, 0.34);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.meta-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.22);
}

.game-meta.is-offline .meta-divider,
.game-meta.is-offline #visit-count {
  display: none;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.12);
}

.game-meta.is-loading .status-dot,
.game-meta.is-offline .status-dot {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(255, 194, 71, 0.12);
}

.team-branch {
  position: relative;
  width: min(520px, 72vw);
  height: 96px;
}

.team-branch svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.team-branch path {
  fill: none;
  stroke: url("#team-branch-gradient");
  stroke-linecap: square;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: var(--space-5);
  width: min(720px, 100%);
}

.team-card {
  min-height: 168px;
  padding: var(--space-6);
  background: rgba(23, 27, 37, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.team-card h3 {
  margin: var(--space-4) 0 var(--space-3);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
}

.team-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - var(--space-6), 520px);
    padding-top: calc(var(--space-5) + env(safe-area-inset-top));
    padding-bottom: calc(var(--safe-bottom-buffer) + env(safe-area-inset-bottom));
    min-height: auto;
  }

  .site-header {
    align-items: flex-start;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .game-art,
  .game-art img {
    min-height: 0;
  }

  .game-content {
    min-height: auto;
    padding: var(--space-5);
  }

  .team-branch {
    display: none;
  }

  .team-grid {
    grid-template-columns: 1fr;
    margin-top: var(--space-5);
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
  }

  .contact-button {
    width: 100%;
  }

  .game-meta {
    position: static;
    width: 100%;
    max-width: none;
    min-height: 44px;
    margin: 0;
    padding: 0 var(--space-4);
    justify-content: center;
    text-align: center;
    transform: none;
    border-radius: 0;
    border-width: 0;
    background: rgba(16, 19, 26, 0.92);
    white-space: nowrap;
  }

  .game-art {
    display: grid;
    aspect-ratio: auto;
    grid-template-rows: auto auto;
  }

  .game-art img,
  .game-art-overlay {
    grid-row: 1 / 2;
    grid-column: 1;
  }

  .game-art img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .game-art-overlay {
    align-self: stretch;
    inset: auto;
  }

  #player-count {
    overflow-wrap: anywhere;
  }
}
