:root {
  color-scheme: dark;
  --green: #9ccc3c;
  --green-low: #6fa023;
  --green-high: #eafbb0;
  --teal: #78cde1;
  --ink: #eafff2;
  --muted: #a9c9b8;
  --danger: #ff9f8f;
  --panel: rgba(10, 36, 31, 0.82);
  --line: rgba(255, 255, 255, 0.2);
  --glass-line: rgba(156, 204, 60, 0.35);
  --display: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  --mono: "Lucida Console", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  line-height: 1.5;
  background:
    radial-gradient(100% 70% at 90% -10%, rgba(156, 204, 60, 0.28), transparent 45%),
    radial-gradient(80% 60% at 0 5%, rgba(120, 205, 225, 0.3), transparent 48%),
    linear-gradient(165deg, #0c2a16 0%, #0a2230 48%, #06131c 100%);
  background-attachment: fixed;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: var(--green);
}

a:hover {
  color: var(--green-high);
}

:focus-visible {
  outline: 3px solid var(--green-high);
  outline-offset: 3px;
}

.site-header,
main,
footer {
  width: min(calc(100% - 36px), 940px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--glass-line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d9f7e4;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(156, 204, 60, 0.5));
}

.brand b {
  color: var(--green);
}

.back-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

main {
  padding: 64px 0 80px;
}

.intro {
  max-width: 720px;
  margin-bottom: 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.98;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.intro > p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.store-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.store-list span,
.genre-list span {
  border: 1px solid rgba(120, 205, 225, 0.35);
  border-radius: 999px;
  padding: 5px 10px;
  color: #c7edf6;
  background: rgba(120, 205, 225, 0.08);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.submission-form {
  display: grid;
  gap: 20px;
}

.form-panel,
.success-panel {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.form-panel:disabled {
  opacity: 0.48;
}

.form-panel[hidden],
.success-panel[hidden] {
  display: none;
}

.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}

.step-number {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green-low);
  border-radius: 10px;
  color: #123309;
  background: radial-gradient(circle at 35% 25%, var(--green-high), var(--green) 58%, var(--green-low));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 0 14px rgba(156, 204, 60, 0.35);
  font-weight: 800;
}

.step-number--done {
  color: #0c2a16;
}

.step-heading h2,
.success-panel h2 {
  margin: 1px 0 5px;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.15;
}

.step-heading p,
.success-panel p {
  margin: 0;
  color: var(--muted);
}

.verify-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field:last-child {
  margin-bottom: 0;
}

.field--grow {
  flex: 1;
  margin-bottom: 0;
}

.field > span {
  color: #d9f7e4;
  font-size: 14px;
  font-weight: 800;
}

.field small {
  color: var(--muted);
  font-weight: 400;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(3, 18, 20, 0.72);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.35);
}

input::placeholder,
textarea::placeholder {
  color: #6e9784;
}

textarea {
  resize: vertical;
}

select {
  color-scheme: dark;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 12px 20px;
  font-weight: 800;
}

.button--primary {
  border: 1px solid var(--green-low);
  color: #123309;
  background: linear-gradient(var(--green-high), var(--green) 48%, var(--green-low) 49%, #8bc23a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 0 rgba(30, 54, 10, 0.5), 0 0 18px rgba(156, 204, 60, 0.3);
}

.button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.button:not(:disabled):hover {
  filter: brightness(1.08);
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
}

.status[data-state="error"] {
  color: var(--danger);
}

.status[data-state="success"] {
  color: var(--green-high);
}

.game-preview {
  display: grid;
  grid-template-columns: minmax(220px, 0.76fr) minmax(0, 1.24fr);
  gap: 24px;
  margin-bottom: 20px;
}

.cover-wrap {
  aspect-ratio: 460 / 215;
  align-self: start;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(3, 18, 20, 0.72);
}

.game-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-placeholder {
  color: #6e9784;
  font-family: var(--mono);
  font-size: 13px;
}

.verified-store {
  margin: 0 0 4px !important;
  color: var(--green) !important;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.genre-list {
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.genre-list:empty::before {
  content: "No genres supplied by the store";
  color: var(--muted);
  font-size: 13px;
}

.metadata-fields .field {
  margin-bottom: 12px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.field-grid .field,
.field-grid .field:last-child {
  align-self: start;
  margin-bottom: 18px;
}

.field-grid input {
  height: 50px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.consent-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--green);
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.submit-row .status {
  margin: 0;
}

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

.success-panel {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-color: rgba(156, 204, 60, 0.55);
}

.success-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #123309;
  background: var(--green);
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(156, 204, 60, 0.45);
}

.success-panel .reference {
  margin-top: 14px;
  color: var(--green-high);
  font-family: var(--mono);
  font-size: 12px;
}

.success-panel .button {
  margin-top: 18px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--glass-line);
  color: var(--muted);
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding-top: 42px;
  }

  .verify-row,
  .submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .game-preview,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .cover-wrap {
    max-width: 460px;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
