:root {
  --bg: #101113;
  --panel: #181b20;
  --panel-strong: #20242b;
  --text: #f6f2e8;
  --muted: #b6b8b4;
  --line: rgba(246, 242, 232, 0.14);
  --accent: #2ee6a6;
  --accent2: #ffb23f;
  --accent3: #7aa8ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(135deg, rgba(46, 230, 166, 0.08), transparent 30%),
    linear-gradient(315deg, rgba(255, 178, 63, 0.09), transparent 34%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 17, 19, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.contact-actions a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 71px);
  padding: clamp(54px, 8vw, 110px) clamp(20px, 6vw, 78px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 8vw, 94px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.58;
}

.hero-actions,
.contact-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(46, 230, 166, 0.35);
  border-radius: 8px;
  background: var(--accent);
  color: #07120e;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #55efba;
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(122, 168, 255, 0.5);
  background: rgba(122, 168, 255, 0.14);
}

.hero-panel {
  display: grid;
  gap: 22px;
  align-content: end;
  min-height: 420px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(122, 168, 255, 0.18), transparent 42%),
    linear-gradient(20deg, rgba(255, 178, 63, 0.18), transparent 48%),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: min(100%, 230px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  object-fit: cover;
}

.hero-panel span,
.game-card span,
.feature-kicker {
  display: block;
  color: var(--accent2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

main {
  padding: 0 clamp(18px, 5vw, 56px);
}

section {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 84px) 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 5vw, 68px);
  align-items: end;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

label span {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid rgba(46, 230, 166, 0.32);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

label small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 10, 12, 0.52);
  color: var(--text);
  font: inherit;
  transition: border-color 0.18s ease, background 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(246, 242, 232, 0.42);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(46, 230, 166, 0.55);
  background: rgba(8, 10, 12, 0.78);
  outline: none;
}

select {
  color-scheme: dark;
}

.feature-grid,
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.games-showcase {
  display: grid;
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 27, 32, 0.9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.feature-card {
  min-height: 250px;
  padding: 24px;
}

.feature-card h3,
.game-card h3 {
  margin: 16px 0 10px;
  font-size: 24px;
}

.feature-card p,
.game-card p {
  margin: 0;
}

.portfolio-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 26px;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  min-height: 300px;
  overflow: hidden;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 230, 166, 0.45);
}

.game-media {
  display: block;
  min-height: 100%;
  background: var(--panel-strong);
  color: var(--muted);
  text-decoration: none;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--panel-strong);
}

.game-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 36px);
}

.game-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-meta span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-developer,
.game-detail-developer {
  color: var(--accent3);
  font-weight: 800;
}

.game-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.game-page {
  padding: 0 clamp(18px, 5vw, 56px);
}

.game-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  width: min(1180px, 100%);
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 84px) 0;
}

.game-detail-copy p:not(.eyebrow) {
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.62;
}

.game-detail-media {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.game-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.image-placeholder {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  text-align: center;
}

.game-media .image-placeholder {
  min-height: 100%;
  height: 100%;
  font-size: clamp(24px, 4vw, 42px);
}

.empty-state {
  display: block;
  min-height: auto;
}

.submit-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  width: min(1180px, 100%);
}

.submit-copy {
  position: sticky;
  top: 110px;
}

.submit-copy h1 {
  max-width: 560px;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.12;
}

.submit-copy p:not(.eyebrow) {
  max-width: 600px;
}

.submit-callout {
  padding: 18px;
  border: 1px solid rgba(46, 230, 166, 0.28);
  border-radius: 8px;
  background: rgba(46, 230, 166, 0.08);
}

.submit-steps {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.submit-steps div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.submit-steps span {
  color: var(--accent2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.submit-steps strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.submit-steps p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

.submit-form {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(145deg, rgba(122, 168, 255, 0.12), transparent 38%),
    rgba(24, 27, 32, 0.94);
}

.form-heading {
  padding-bottom: 6px;
}

.form-heading h2 {
  font-size: clamp(26px, 4vw, 40px);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.form-note:empty {
  display: none;
}

.form-note.is-success {
  border-color: rgba(46, 230, 166, 0.42);
  background: rgba(46, 230, 166, 0.1);
  color: var(--text);
}

.form-note.is-error {
  border-color: rgba(255, 178, 63, 0.48);
  background: rgba(255, 178, 63, 0.1);
  color: var(--text);
}

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

.admin-item {
  margin: 16px 0;
  padding: 22px;
}

.admin-item .btn {
  margin: 6px 8px 0 0;
}

.tracker-page {
  padding: 0 clamp(18px, 5vw, 56px);
}

.tracker-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: end;
  width: min(1180px, 100%);
}

.tracker-hero h1 {
  font-size: clamp(42px, 7vw, 84px);
}

.tracker-hero p:not(.eyebrow) {
  max-width: 720px;
}

.tracker-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tracker-stats div {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(46, 230, 166, 0.12), transparent 52%),
    var(--panel);
}

.tracker-stats span {
  display: block;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1;
}

.tracker-stats p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tracker-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
  width: min(1180px, 100%);
}

.tracker-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(145deg, rgba(122, 168, 255, 0.12), transparent 38%),
    rgba(24, 27, 32, 0.94);
}

.tracker-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tracker-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.tracker-check span {
  border-radius: 8px;
}

.tracker-actions,
.tracker-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tracker-list-wrap {
  display: grid;
  gap: 18px;
}

.tracker-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.36fr);
  gap: 14px;
}

.tracker-list {
  display: grid;
  gap: 16px;
}

.tracker-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px;
}

.tracker-item h3 {
  margin: 14px 0 8px;
  font-size: clamp(22px, 3vw, 32px);
}

.tracker-item p {
  margin: 0;
}

.tracker-item-actions {
  justify-content: flex-end;
}

.loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.cta-band,
.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(30px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(46, 230, 166, 0.16), transparent 44%),
    var(--panel);
}

.cta-band p,
.contact-strip p {
  max-width: 720px;
  margin-bottom: 0;
}

.contact-strip {
  margin-bottom: clamp(48px, 7vw, 80px);
}

.contact-actions {
  margin-top: 0;
}

.cta-actions {
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
}

.contact-actions a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

footer {
  padding: 24px;
  border-top: 1px solid var(--line);
  color: #8f938e;
  text-align: center;
}

@media (max-width: 1100px) {
  .submit-layout {
    grid-template-columns: 1fr;
    width: min(760px, 100%);
  }

  .submit-copy {
    position: static;
  }

  .submit-copy h1 {
    max-width: 760px;
  }
}

@media (max-width: 900px) {
  .hero,
  .split-section,
  .feature-grid,
  .grid,
  .game-card,
  .game-detail,
  .submit-layout,
  .tracker-hero,
  .tracker-layout,
  .tracker-toolbar,
  .tracker-item {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: 300px;
  }

  .game-media,
  .game-detail-media,
  .game-detail-media img,
  .image-placeholder {
    min-height: 280px;
  }

  .submit-copy {
    position: static;
  }

  .submit-copy h1 {
    max-width: 720px;
  }

  .cta-band,
  .contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .tracker-item-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  h1 {
    font-size: 43px;
  }

  .hero-actions,
  .cta-actions,
  .tracker-actions,
  .tracker-item-actions,
  .btn {
    width: 100%;
  }

  .tracker-stats {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: auto;
  }
}
