:root {
  --bg: #090a0c;
  --panel: #121418;
  --ink: #f4f1ea;
  --muted: #a39e94;
  --line: rgba(244, 241, 234, 0.16);
  --soft: rgba(244, 241, 234, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", sans-serif;
  line-height: 1.5;
  color-scheme: dark;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.mast,
.hero,
#games,
#team,
.footer-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  background: rgba(9, 10, 12, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.mark span {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--ink);
  font-weight: 500;
}

nav {
  display: flex;
  gap: 1.4rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  padding: 6.5rem 0 4.5rem;
}

h1,
h2,
.tile .name {
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 16em;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.08;
}

.lede {
  max-width: 42rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #14120e;
  text-decoration: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn[hidden] {
  display: none;
}

.btn-ghost:hover {
  background: var(--soft);
  filter: none;
}

#games,
#team {
  padding: 1rem 0 4.5rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #16181c;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.tile:hover img {
  transform: scale(1.04);
}

.tile-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 2.4rem 1rem 0.95rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.86));
}

.tag {
  color: #efe6d4;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tile .name {
  font-size: 1.15rem;
  line-height: 1.2;
}

.tile-plain {
  background:
    linear-gradient(165deg, rgba(244, 241, 234, 0.07), transparent 42%),
    #14171c;
}

.tile-plain .tile-copy {
  position: static;
  height: 100%;
  justify-content: flex-end;
  background: none;
}

.tile-aurora {
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(244, 241, 234, 0.05) 7px 8px),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(244, 241, 234, 0.05) 7px 8px),
    #1a1714;
}

.tile-naval {
  background:
    linear-gradient(180deg, transparent 0 55%, rgba(120, 168, 196, 0.18) 55% 56%, transparent 56%),
    linear-gradient(180deg, #10151b, #1c3344);
}

.tile-map {
  background:
    radial-gradient(circle at 30% 40%, transparent 0 18px, rgba(244, 241, 234, 0.14) 19px 20px, transparent 21px),
    radial-gradient(circle at 62% 58%, transparent 0 28px, rgba(244, 241, 234, 0.12) 29px 30px, transparent 31px),
    radial-gradient(circle at 48% 46%, transparent 0 46px, rgba(244, 241, 234, 0.08) 47px 48px, transparent 49px),
    #101614;
}

#team .lede {
  margin-top: 1.2rem;
}

.team {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0.4rem;
}

.team article {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 1.15rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.portrait {
  grid-row: 1 / span 3;
  width: 72px;
  height: 72px;
  margin-top: 0.15rem;
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(50%);
  background: #fff;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.portrait:has(img.tilt) {
  background: #fff;
}

.portrait img.tilt {
  transform: translate(4.5%, 2.5%) rotate(3deg) scale(1.03);
  object-position: center 6%;
}

.team h3,
.team .role,
.team article p:last-child {
  grid-column: 2;
}

.team h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.role {
  margin: 0.25rem 0 0.7rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.team article p:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  border-top: 1px solid var(--line);
  background: #0d0e11;
}

.footer-inner {
  padding: 4rem 0 3rem;
}

.footer-inner p {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--muted);
}

.footer-inner em {
  color: var(--ink);
  font-style: normal;
}

.footer-inner ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  margin-top: 1.6rem;
  list-style: none;
}

.footer-inner a {
  color: var(--ink);
}

dialog {
  width: min(820px, calc(100% - 1.5rem));
  max-height: min(90vh, 920px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.detail {
  position: relative;
  padding: 1.4rem 1.4rem 1.6rem;
}

.close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

#detail-title {
  max-width: 18em;
  margin: 0.35rem 2.5rem 1rem 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.detail-media {
  margin-bottom: 1rem;
  background: #000;
}

.detail-media.frame-tall {
  width: min(280px, 100%);
}

.detail-media .yt,
.detail-media iframe {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
  padding: 0;
  cursor: pointer;
}

.detail-media.frame-tall .yt,
.detail-media.frame-tall iframe {
  aspect-ratio: 9 / 16;
}

.detail-media img,
.detail-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--ink);
}

.yt::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(50% + 2px);
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #14120e;
}

#detail-text {
  color: var(--muted);
  max-width: 40rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.legal {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.legal a:hover,
.legal button:hover {
  color: var(--ink);
}

.policy {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.policy h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

.policy section + section {
  margin-top: 1.8rem;
}

.policy h2 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.policy p,
.policy li {
  color: var(--muted);
}

.policy p + p,
.policy ul {
  margin-top: 0.7rem;
}

.policy ul {
  padding-left: 1.2rem;
}

.policy a {
  color: var(--ink);
}

#cookies {
  width: min(720px, calc(100% - 1.5rem));
}

.cookie-panel {
  padding: 1.3rem 1.3rem 1.2rem;
}

.cookie-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.cookie-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
}

.cookie-tabs button.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.cookie-body h2 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}

.cookie-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.3rem;
}

.cookie-body p,
.cookie-choice span {
  color: var(--muted);
}

.cookie-body p + p {
  margin-top: 0.7rem;
}

.cookie-choice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.cookie-choice strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cookie-actions div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions a {
  color: var(--ink);
}

@media (max-width: 720px) {
  .mast {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
