:root {
  --background: #f6f7f2;
  --surface: #fff;
  --text: #18181b;
  --muted: #71717a;
  --border: #e1e5dc;
  --green: #4f7d55;
  --green-soft: #edf4e9;
  --blue: #4772bd;
  --red: #c8584f;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 15px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }

header, footer {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
header { justify-content: space-between; }
header a, footer a, nav .link { color: var(--muted); text-decoration: none; }
header a:hover, footer a:hover, nav .link:hover { color: var(--text); }
.brand { color: var(--text); font-weight: 650; letter-spacing: -.02em; }
nav { display: flex; align-items: center; gap: 20px; }
nav form { display: inline-flex; }

main {
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100vh - 160px);
  margin: auto;
  padding: 64px 0;
}
footer {
  min-height: 80px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 0;
}
footer span { margin-right: auto; }

.hero {
  position: relative;
  display: flex;
  min-height: 470px;
  align-items: center;
  margin-bottom: 88px;
  padding: clamp(40px, 7vw, 76px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 27, 17, .95) 0%, rgba(15, 27, 17, .84) 45%, rgba(15, 27, 17, .24) 100%),
    linear-gradient(0deg, rgba(15, 27, 17, .22), rgba(15, 27, 17, .22)),
    url("arena-battle.png") center 36% / cover no-repeat;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(42, 67, 46, .14);
}
.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: inherit;
}
.hero-copy { position: relative; z-index: 1; max-width: 710px; }
.hero-caption {
  position: absolute;
  right: 22px;
  bottom: 17px;
  color: rgba(255, 255, 255, .7);
  font-size: .7rem;
  letter-spacing: .04em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -.055em;
}
h2 { margin-bottom: 16px; font-size: 1.25rem; font-weight: 650; letter-spacing: -.025em; }
h3 { margin-bottom: 8px; font-size: 1rem; }
.eyebrow, .muted, .notice { color: var(--muted); }
.eyebrow {
  margin-bottom: 16px;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}
.hero .eyebrow { color: #b8df8d; }
.hero-copy > p:not(.eyebrow) { max-width: 600px; margin-bottom: 28px; color: rgba(255, 255, 255, .78); font-size: 1.1rem; }
.hero .button { color: #1d2b20; background: #d9efbd; border-color: #d9efbd; }

.grid, .platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 64px;
}
.grid article, .platforms article, .upload, .auth {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.grid article p { margin-bottom: 0; color: var(--muted); }
.steps { padding-left: 20px; color: var(--muted); }
.steps li { margin: 8px 0; padding-left: 6px; }

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  background: #273c2b;
  border: 1px solid #273c2b;
  border-radius: 7px;
  cursor: pointer;
  transition: opacity 120ms ease, transform 120ms ease;
}
button:hover, .button:hover { opacity: .82; }
button:active, .button:active { transform: translateY(1px); }
button:focus-visible, .button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid #52525b;
  outline-offset: 2px;
}
button.link { min-height: auto; padding: 0; font-weight: 400; background: transparent; border: 0; }

label { display: block; margin: 18px 0; font-size: .875rem; font-weight: 550; }
input:not([type="checkbox"]), textarea, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
}
input[type="checkbox"] { accent-color: var(--green); }
textarea { min-height: 104px; resize: vertical; }

.upload { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.upload input[type="file"] { flex: 1; margin: 0; padding: 8px; }
.upload video { width: min(100%, 320px); max-height: 480px; margin-left: auto; border-radius: 7px; }
.creator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  color: var(--muted);
  font-size: .85rem;
  border-bottom: 1px solid var(--border);
}
.avatar {
  display: grid;
  flex: 0 0 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  background: var(--text);
  border-radius: 50%;
}
.platforms article > button + button { margin-left: 6px; color: var(--text); background: transparent; border-color: var(--border); }
.platforms article {
  position: relative;
  overflow: hidden;
}
.platforms article::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--green);
}
.platforms article:nth-child(2)::before { background: linear-gradient(90deg, var(--blue), var(--red)); }
.platforms article:nth-child(3)::before { background: var(--red); }
.upload { border-color: #d6dfd0; box-shadow: inset 4px 0 0 #9fbd8d; }
.notice { font-size: .8rem; }

.legal, .auth { max-width: 720px; margin: auto; }
.legal { padding: 24px 0; }
.legal h1, .auth h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { margin-top: 36px; }
.legal p { color: #52525b; }
.auth { max-width: 460px; }
.auth form p { margin: 18px 0; }

.table { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: .75rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 820px) {
  header, footer { padding-right: 20px; padding-left: 20px; }
  main { width: min(100% - 40px, 1120px); padding: 40px 0; }
  .hero { min-height: 430px; margin-bottom: 64px; padding: 40px; background-position: center 36%; }
  .grid, .platforms { grid-template-columns: 1fr; }
  .upload { align-items: stretch; flex-direction: column; }
  .upload video { margin-left: 0; }
  footer { align-items: flex-start; flex-direction: column; gap: 10px; padding-top: 24px; padding-bottom: 24px; }
  footer span { margin-right: 0; }
}

@media (max-width: 560px) {
  header { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 16px; padding-bottom: 16px; }
  nav { gap: 14px; font-size: .875rem; }
  .grid article, .platforms article, .upload, .auth { padding: 18px; }
  .hero { min-height: 480px; padding: 28px 24px 54px; border-radius: 12px; }
  .hero-caption { right: 16px; bottom: 13px; }
}
