:root {
  --bg: #071116;
  --bg-soft: #0d1a21;
  --panel: rgba(10, 21, 27, 0.78);
  --line: rgba(122, 159, 175, 0.28);
  --text: #edf3f4;
  --muted: #b0c1c7;
  --accent: #6ed0c7;
  --accent-warm: #d8b36c;
  --danger: #c24d4d;
  --success: #2f8f5b;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --max: 1180px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(53, 105, 123, 0.28), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(216, 179, 108, 0.18), transparent 26%),
    linear-gradient(180deg, #061015 0%, #08161d 58%, #0b1419 100%);
  font-family: var(--font-body);
}

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

a:hover {
  color: #b2f1eb;
}

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

.site-shell {
  position: relative;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  top: 8rem;
  right: -12rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(110, 208, 199, 0.14) 0%, rgba(110, 208, 199, 0) 70%);
  filter: blur(8px);
}

.ambient-two {
  bottom: 4rem;
  left: -12rem;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(216, 179, 108, 0.12) 0%, rgba(216, 179, 108, 0) 70%);
  filter: blur(8px);
}

.site-header,
.site-footer,
.hero,
.signal-section,
.media-break,
.cta-band,
.page-intro {
  position: relative;
  z-index: 1;
}

.site-header,
.site-footer {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  padding: 2rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-brand img {
  width: 176px;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--text);
}

main {
  display: block;
}

.hero,
.page-intro,
.signal-section,
.media-break,
.cta-band {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto 2rem;
}

.hero {
  padding: 1.5rem 0 2rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1,
.page-intro h1,
.section-heading h2,
.split-copy h2,
.media-break h2,
.cta-band h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.page-intro h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.section-heading h2,
.split-copy h2,
.media-break h2,
.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.lead,
.hero-copy p,
.split-copy p,
.media-break p,
.policy-page p,
.gate-panel p,
.contact-form,
.brief-preview,
.two-column-notes p,
.ruled-list p,
.team-entry p,
.game-entry p {
  color: var(--muted);
  line-height: 1.7;
}

.section-tag,
.gate-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-warm);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-meta,
.two-column-notes,
.game-grid,
.team-grid {
  display: grid;
  gap: 1.2rem;
}

.hero-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.hero-meta div,
.two-column-notes article,
.game-entry,
.team-entry,
.brief-preview,
.contact-form,
.ruled-list article,
.gate-panel,
.policy-page,
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-meta div {
  padding: 1rem 1.1rem;
}

.hero-meta strong,
.two-column-notes h3,
.game-entry h3,
.team-entry h3,
.brief-preview h3,
.ruled-list h3,
.policy-page h1,
.gate-panel h1 {
  color: var(--text);
}

.hero-figure img,
.media-break img {
  min-height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.signal-section,
.page-intro {
  padding: 2rem 0 1rem;
}

.signal-section::before,
.page-intro::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 1.5rem;
  background:
    linear-gradient(90deg, rgba(110, 208, 199, 0) 0%, rgba(110, 208, 199, 0.65) 16%, rgba(216, 179, 108, 0.5) 62%, rgba(216, 179, 108, 0) 100%);
}

.split-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.ruled-list article,
.two-column-notes article {
  padding: 1.25rem;
}

.two-column-notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-break {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2rem;
  align-items: center;
}

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

.game-stage {
  margin-bottom: 1.4rem;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 1.2rem;
}

.game-stage-copy,
.game-frame-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.game-stage-copy {
  padding: 1.35rem;
}

.game-stage-copy h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.06;
}

.game-stage-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.game-stage-note {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.game-frame-shell {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.game-frame-shell iframe {
  width: 100%;
  height: 100%;
  min-height: 640px;
  border: 0;
  background: #02070a;
}

.game-entry {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.1rem;
  padding: 1rem;
}

.game-entry-button {
  width: 100%;
  text-align: left;
  appearance: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  background: var(--panel);
}

.game-entry-button:hover,
.game-entry-button:focus-visible,
.game-entry-button.is-active {
  border-color: rgba(110, 208, 199, 0.72);
  transform: translateY(-2px);
}

.game-entry-button:focus-visible {
  outline: 2px solid rgba(110, 208, 199, 0.45);
  outline-offset: 2px;
}

.game-entry-copy {
  display: block;
}

.game-entry-label,
.game-entry-title,
.game-entry-summary {
  display: block;
}

.game-entry-label {
  margin-bottom: 0.45rem;
  color: var(--accent-warm);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.game-entry-title {
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
}

.game-entry-summary {
  color: var(--muted);
  line-height: 1.65;
}

.game-entry img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.game-entry a,
.cta-links a,
.contact-form button,
.text-link,
.gate-button {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.game-entry a:hover,
.cta-links a:hover,
.contact-form button:hover,
.text-link:hover,
.gate-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
}

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

.team-entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: 1rem;
}

.team-entry img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.team-entry strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent-warm);
  letter-spacing: 0.04em;
}

.cta-band {
  padding: 2rem 0 4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-links a:first-child,
.contact-form button,
.gate-button-yes {
  background: rgba(47, 143, 91, 0.24);
}

.cta-links a:last-child {
  background: rgba(110, 208, 199, 0.12);
}

.site-footer {
  padding: 1rem 0 2.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
  max-width: 26rem;
}

.footer-support {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  flex: 1 1 24rem;
}

.footer-support-link {
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
}

.footer-support-link img {
  width: min(100%, 260px);
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.footer-support-link span {
  font-size: 0.92rem;
  line-height: 1.45;
}

.footer-support-link:hover {
  color: var(--text);
}

.footer-dia {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  color: var(--muted);
}

.footer-dia img {
  width: min(100%, 320px);
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.footer-dia span {
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-dia:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.gate-shell,
.policy-shell {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.gate-panel,
.policy-page {
  width: min(760px, 100%);
  padding: 2rem;
}

.gate-panel h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.06;
}

.gate-actions,
.gate-links,
.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.gate-button {
  min-width: 140px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.gate-button-no {
  background: rgba(194, 77, 77, 0.24);
}

.gate-links {
  margin-top: 1.2rem;
}

.gate-reasons ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 10;
  margin: 0 auto;
  width: min(980px, calc(100% - 2rem));
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(4, 12, 15, 0.95);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cookie-actions button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text);
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.cookie-actions button:first-child {
  background: rgba(47, 143, 91, 0.24);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

.contact-form,
.brief-preview {
  padding: 1.4rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 10, 14, 0.84);
  color: var(--text);
  padding: 0.9rem 0.95rem;
  font: inherit;
}

.hp-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
}

.notice-success {
  border-color: rgba(47, 143, 91, 0.6);
}

.notice-error {
  border-color: rgba(194, 77, 77, 0.7);
}

.brief-preview {
  align-self: start;
}

.policy-page {
  margin: 2rem 0;
}

.policy-page h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.policy-page a {
  word-break: break-word;
}

@media (max-width: 980px) {
  .hero,
  .split-copy,
  .media-break,
  .contact-layout,
  .game-stage {
    grid-template-columns: 1fr;
  }

  .cta-band,
  .site-footer,
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .page-intro,
  .signal-section,
  .media-break,
  .cta-band,
  .site-footer {
    width: min(var(--max), calc(100% - 1.4rem));
  }

  .hero-meta,
  .two-column-notes,
  .game-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .game-entry,
  .team-entry {
    grid-template-columns: 1fr;
  }

  .game-frame-shell,
  .game-frame-shell iframe {
    min-height: 520px;
  }

  .site-header {
    padding-top: 1.4rem;
  }

  .site-nav {
    gap: 0.9rem;
  }

  .cookie-banner {
    inset: auto 0.7rem 0.7rem 0.7rem;
    width: auto;
  }
}
