@import url("https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --bg: #ffffff;
  --text: #4a4a4a;
  --heading: #1a1a1a;
  --muted: #888888;
  --border: #e8e8e8;
  --game-bg: #1e1e26;
  --game-surface: #252530;
  --game-text: #e8e8ec;
  --game-muted: #a8a8b4;
  --game-accent: #00c2d4;
  --game-accent-hover: #00a8b8;
  --max-width: 960px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-brand: "Exo 2", var(--font);
  --font-size-body: 1.125rem;
  --line-height-body: 1.65;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--heading);
}

a:hover {
  color: var(--game-accent);
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  padding: 2rem 1.5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.site-header--compact {
  padding: 1.25rem 1.5rem;
}

.site-header a {
  text-decoration: none;
  color: inherit;
}

.site-header a:hover .site-header__title {
  color: var(--game-accent);
}

.site-header__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.75rem;
}

.site-header__logo {
  width: 280px;
  max-width: none;
  height: auto;
  flex-shrink: 0;
}

.site-header--compact .site-header__logo {
  width: 144px;
}

.site-header__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-brand);
}

.site-header__title {
  display: block;
  margin: 0;
  font-family: inherit;
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1.05;
  transition: color 0.15s ease;
}

.site-header--compact .site-header__title {
  font-size: 1.65rem;
  letter-spacing: 0.04em;
}

.site-header__tagline {
  margin: 0;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.studio-intro {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 2rem;
  padding: 0 0.25rem;
  font-family: var(--font-brand);
  line-height: var(--line-height-body);
}

.studio-intro__line {
  display: block;
  font-size: var(--font-size-body);
  font-weight: 400;
  font-style: normal;
  letter-spacing: normal;
  color: var(--text);
}

.game-feature {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  font-family: var(--font-brand);
  background: linear-gradient(160deg, var(--game-bg) 0%, var(--game-surface) 100%);
  color: var(--game-text);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.game-feature__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: start;
}

.game-feature__info h2 {
  margin: 0 0 0.75rem;
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.game-feature__description {
  margin: 0;
  color: var(--game-muted);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

.game-feature__description p {
  margin: 0 0 0.65rem;
}

.game-feature__description p:last-child {
  margin-bottom: 0;
}

.game-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--game-accent);
  color: #0a0a0c;
}

.btn--primary:hover {
  background: var(--game-accent-hover);
  color: #0a0a0c;
}

.btn--secondary {
  background: transparent;
  color: var(--game-text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.video-player {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a0e;
}

.video-player--playing {
  aspect-ratio: 16 / 9;
}

.video-poster {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
  line-height: 0;
}

.video-poster img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 50%);
  pointer-events: none;
}

.video-poster__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 194, 212, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}

.video-poster__play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #0a0a0c;
}

.video-poster:hover .video-poster__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #00d4e8;
}

.video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-embed[hidden] {
  display: none;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  margin-top: auto;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer__links a {
  color: var(--text);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--game-accent);
}

.site-footer__contact a {
  color: var(--text);
  text-decoration: none;
}

.site-footer__contact a:hover {
  color: var(--game-accent);
}

.legal-page main {
  padding-bottom: 2rem;
}

.legal-content {
  max-width: 42rem;
}

.legal-content h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  color: var(--heading);
  line-height: 1.3;
}

.legal-content h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.1rem;
  color: var(--heading);
}

.legal-content p {
  margin: 0 0 1rem;
}

.legal-content ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.legal-content ol > li {
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.legal-content ul li {
  margin-bottom: 0.35rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--heading);
}

.not-found {
  text-align: center;
  padding: 3rem 0;
}

.not-found h1 {
  margin: 0 0 0.5rem;
  font-size: 4rem;
  font-weight: 300;
  color: var(--heading);
  line-height: 1;
}

.not-found p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.not-found .btn--primary {
  background: var(--game-accent);
  color: #0a0a0c;
}

.not-found .btn--primary:hover {
  background: var(--game-accent-hover);
  color: #0a0a0c;
}

@media (max-width: 720px) {
  .site-header {
    padding: 1.5rem 1rem 1rem;
  }

  .site-header__brand {
    gap: 1rem;
  }

  .site-header__logo {
    width: 200px;
  }

  .site-header__title {
    font-size: 2rem;
    letter-spacing: 0.05em;
  }

  .site-header__tagline {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
  }

  .studio-intro {
    margin-bottom: 1.5rem;
  }

  .game-feature {
    padding: 1rem;
    gap: 1.25rem;
  }

  .game-feature__body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .game-feature__info h2 {
    font-size: 1.75rem;
  }

  .game-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn {
    flex: 1 1 auto;
    text-align: center;
    min-width: 8rem;
  }

  .video-poster__play {
    width: 56px;
    height: 56px;
  }

  .video-poster__play::after {
    border-width: 9px 0 9px 15px;
  }
}
