:root {
  color-scheme: dark;
  --bg: #050607;
  --bg-2: #0b1011;
  --text: #f7f7f2;
  --muted: #b9bdb8;
  --dim: #747b74;
  --line: #4d554f;
  --line-soft: #222a25;
  --accent: #ebff72;
  --accent-2: #5fffd7;
  --danger: #ff6767;
  --button: #f7f7f2;
  --button-text: #050607;
  --button-hover: #ebff72;
  --shadow: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 16% 0%, rgba(95, 255, 215, 0.045), transparent 24rem),
    linear-gradient(180deg, #0b0e0e 0%, var(--bg) 30rem);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: transparent;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 4rem;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.35rem 0 2rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid var(--text);
  border-radius: 0.35rem;
  color: var(--bg);
  background: var(--text);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 0.28rem rgba(247, 247, 242, 0.08);
}

.eyebrow,
.section-label,
.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 3.35rem;
  line-height: 0.95;
}

.summary-band {
  padding: clamp(1.5rem, 4vw, 2.4rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-label span:last-child {
  color: var(--dim);
  text-align: right;
}

.summary-band h2 {
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.15;
}

.summary-band p {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.52;
}

.results {
  padding-top: 1.7rem;
}

.game-list {
  border-top: 1px solid var(--line-soft);
}

.game-row {
  --title-color: var(--text);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.game-row:nth-child(4n + 1) {
  --title-color: #f0ff7a;
}

.game-row:nth-child(4n + 2) {
  --title-color: #73ffdd;
}

.game-row:nth-child(4n + 3) {
  --title-color: #ffb36b;
}

.game-row:nth-child(4n + 4) {
  --title-color: #9fd0ff;
}

.game-title {
  margin-bottom: 0.45rem;
  color: var(--title-color);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.game-description {
  max-width: 72ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.game-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--text);
  background: rgba(247, 247, 242, 0.04);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    color 150ms ease,
    background-color 150ms ease;
}

.game-links a:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: rgba(95, 255, 215, 0.07);
}

.copy-title,
.outline-button,
.close-button {
  min-width: 7.9rem;
  min-height: 2.45rem;
  border: 1px solid var(--button);
  border-radius: 0.35rem;
  color: var(--button-text);
  background: var(--button);
  cursor: pointer;
  font-weight: 850;
  box-shadow: 0 0.55rem 1.8rem var(--shadow);
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.outline-button,
.close-button {
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.copy-title:hover,
.outline-button:hover,
.close-button:hover {
  border-color: var(--button-hover);
  background: var(--button-hover);
  color: var(--button-text);
  transform: translateY(-1px);
}

.copy-title:focus-visible,
.outline-button:focus-visible,
.close-button:focus-visible,
.report-option:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

.copy-title[data-copied="true"] {
  border-color: var(--accent-2);
  background: var(--accent-2);
}

.state {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  line-height: 1.5;
}

.state.error {
  color: var(--danger);
}

.report-dialog {
  width: min(92vw, 760px);
  max-height: min(82vh, 720px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--text);
  background: #080a0a;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.55);
}

.report-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin-bottom: 0;
  font-size: 1.65rem;
  line-height: 1.1;
}

.close-button {
  min-width: 5.5rem;
}

.report-list {
  max-height: calc(min(82vh, 720px) - 5.4rem);
  overflow: auto;
}

.report-option {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.report-option:hover {
  background: #101414;
}

.report-option:disabled {
  cursor: default;
  background: #0d1010;
}

.report-option strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  line-height: 1.25;
}

.report-option span {
  color: var(--muted);
  line-height: 1.45;
}

.report-count {
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.report-option:disabled .report-count {
  color: var(--accent-2);
}

@media (max-width: 680px) {
  .shell {
    padding-inline: 1rem;
  }

  .masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .outline-button {
    width: 100%;
  }

  .section-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .section-label span:last-child {
    text-align: left;
  }

  .game-row {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .copy-title {
    width: 100%;
  }

  .report-option {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.15rem;
  }

  .summary-band h2 {
    font-size: 1.25rem;
  }

  .summary-band p {
    font-size: 1.05rem;
  }

  .game-title {
    font-size: 1.35rem;
  }
}
