:root {
  color-scheme: dark;
  --ink: #f5f0e8;
  --muted: #b8c2c1;
  --paper: #101416;
  --panel: #171d1f;
  --panel-2: #202628;
  --line: rgba(255, 255, 255, 0.13);
  --teal: #39c5b6;
  --amber: #e7a644;
  --red: #dc4d48;
  --violet: #8d82ff;
  --green: #8ccf7e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(10, 13, 14, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #d94741;
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-links {
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.hidden {
  display: none !important;
}

.page-hidden {
  display: none !important;
}

.nav-links a.active {
  color: var(--ink);
}

select,
option {
  color-scheme: dark;
}

option {
  background: #0f1416;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 116px clamp(18px, 4vw, 56px) 52px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-editorial.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 11, 12, 0.95), rgba(8, 11, 12, 0.72) 42%, rgba(8, 11, 12, 0.24) 74%),
    linear-gradient(0deg, var(--paper), rgba(16, 20, 22, 0.1) 32%, rgba(16, 20, 22, 0.06));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

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

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

h1 {
  margin-bottom: 18px;
  max-width: 740px;
  font-size: clamp(3.2rem, 8.8vw, 7.9rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 620px;
  color: #d8dfdc;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

.search-panel {
  width: min(720px, 100%);
  margin-top: 30px;
  padding: 14px;
  background: rgba(15, 19, 20, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.search-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
}

.search-row input {
  width: 100%;
  min-width: 0;
  height: 48px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-row button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  background: var(--teal);
  color: #081011;
  font-weight: 800;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
}

.hero-stats span {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.hero-stats strong {
  color: var(--ink);
}

.section {
  padding: 84px clamp(18px, 4vw, 56px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.toolbar,
.year-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.year-filter {
  display: grid;
  grid-template-columns: auto minmax(110px, 150px);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.84rem;
}

.year-filter select,
.year-filter input {
  min-width: 0;
  border: 0;
  background: #0f1416;
  color: var(--ink);
  padding: 8px;
  outline: 0;
}

.year-filter input::placeholder {
  color: var(--muted);
}

.icon-button,
.year-tabs button {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}

.icon-button:hover,
.icon-button.active,
.year-tabs button:hover,
.year-tabs button.active {
  border-color: rgba(57, 197, 182, 0.62);
  color: var(--ink);
  background: #243236;
}

.year-tabs button {
  padding: 0 14px;
  font-weight: 800;
}

.year-tabs {
  max-width: min(720px, 100%);
  max-height: 104px;
  overflow: auto;
  padding-bottom: 2px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 18px;
  align-items: start;
}

.game-list,
.game-detail,
.goty-detail,
.goty-editor,
.year-review,
.login-form,
.review-form {
  border: 1px solid var(--line);
  background: rgba(23, 29, 31, 0.88);
}

.game-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  max-height: 780px;
  overflow: auto;
}

.game-button {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 92px;
  padding: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.game-button:hover,
.game-button.active {
  background: var(--panel-2);
  border-color: var(--line);
}

.cover {
  position: relative;
  display: grid;
  align-content: end;
  gap: 6px;
  width: 68px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 8px;
  background:
    linear-gradient(135deg, var(--cover-a), transparent 56%),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.42), transparent 14%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 16px),
    linear-gradient(160deg, var(--cover-b), #101416);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 -22px 32px rgba(0, 0, 0, 0.28);
}

.cover::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0.55;
}

.cover::after {
  content: "";
  position: absolute;
  top: 14%;
  right: -18%;
  width: 64%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  transform: rotate(24deg);
}

.cover-symbol,
.cover-title,
.cover-meta {
  position: relative;
  z-index: 1;
}

.cover-symbol {
  align-self: start;
  width: max-content;
  padding: 3px 5px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 900;
}

.cover-title {
  color: white;
  font-size: clamp(0.58rem, 0.8vw, 0.72rem);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72);
}

.cover-meta {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  font-weight: 800;
}

.cover-with-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-with-image::before {
  z-index: 1;
}

.cover-with-image::after {
  inset: 0;
  top: auto;
  right: auto;
  width: auto;
  height: 58%;
  aspect-ratio: auto;
  border: 0;
  transform: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.game-button h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.game-button .platform-row {
  margin-top: 8px;
}

.game-button p,
.critic-card p,
.review-card p,
.goty-detail p,
.year-review p {
  color: var(--muted);
  line-height: 1.6;
}

.score-pill {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 42px;
  background: var(--amber);
  color: #111;
  font-weight: 900;
}

.ranking-list,
.all-games-list {
  display: grid;
  gap: 8px;
}

.ranking-row,
.all-game-row {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(23, 29, 31, 0.88);
  color: var(--ink);
  text-align: left;
}

.ranking-row {
  display: grid;
  grid-template-columns: 48px 68px minmax(180px, 1fr) minmax(260px, auto);
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 8px 12px;
}

.ranking-row:hover,
.all-game-row:hover {
  background: var(--panel-2);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  color: var(--amber);
  font-weight: 900;
}

.ranking-main,
.all-game-main,
.all-game-scores {
  display: grid;
  gap: 6px;
}

.ranking-main span,
.all-game-main span {
  color: var(--muted);
}

.ranking-metrics,
.critic-score-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.ranking-metrics span,
.critic-score-strip span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: #0f1416;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.ranking-metrics strong,
.critic-score-strip strong {
  color: var(--ink);
}

.all-game-row {
  display: grid;
  grid-template-columns: 68px minmax(200px, 1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: 12px;
  min-height: 104px;
  padding: 10px;
}

.all-game-scores {
  justify-items: end;
}

.compact-labels {
  justify-content: flex-end;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.platform-badge {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.platform-pc {
  background: rgba(57, 197, 182, 0.16);
}

.platform-ps {
  background: rgba(98, 168, 255, 0.18);
}

.platform-xbox {
  background: rgba(140, 207, 126, 0.18);
}

.platform-switch {
  background: rgba(220, 77, 72, 0.18);
}

.platform-wii {
  background: rgba(231, 166, 68, 0.18);
}

.game-detail {
  min-height: 560px;
  padding: clamp(18px, 3vw, 34px);
}

.detail-top {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  margin-bottom: 26px;
}

.detail-top .cover {
  width: 100%;
  min-height: 190px;
  padding: 16px;
}

.detail-top .cover .cover-title {
  font-size: 1.25rem;
}

.detail-top .cover .cover-meta,
.detail-top .cover .cover-symbol {
  font-size: 0.82rem;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.meta-row span,
.tag-row span,
.critic-chip {
  padding: 7px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.35;
}

.critic-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 4px;
  padding: 4px 7px;
  line-height: 1.45;
}

.review-stack {
  display: grid;
  gap: 12px;
}

.goty-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
}

.goty-editor h3 {
  margin-bottom: 6px;
}

.goty-editor p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.goty-editor-controls {
  display: grid;
  grid-template-columns: repeat(2, max-content) minmax(96px, 120px);
  gap: 10px;
  align-items: end;
}

.goty-editor-controls button,
.nominee-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #0f1416;
  color: var(--ink);
  font-weight: 800;
}

.goty-editor-controls button:hover,
.nominee-actions button:hover {
  border-color: rgba(57, 197, 182, 0.72);
}

.goty-editor-controls button:disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.08);
}

.goty-editor-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
}

.goty-editor-controls input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  background: #0f1416;
  color: var(--ink);
  padding: 8px;
}

.review-card,
.critic-card,
.nominee-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.review-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  padding: 16px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--red);
  color: white;
  font-weight: 900;
}

.review-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.review-card header > div {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.review-card h3 {
  margin-bottom: 0;
  line-height: 1.28;
}

.review-card p {
  margin-bottom: 0;
  line-height: 1.72;
}

.critic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.critic-card {
  padding: 18px;
}

.critic-card .avatar {
  margin-bottom: 14px;
}

.critic-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.critic-stats span {
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.84rem;
}

.critic-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.2rem;
}

.goty-section {
  background: #111719;
}

.goty-layout {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 330px);
  gap: 14px;
  align-items: start;
}

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

.nominee-card {
  min-height: 0;
  padding: 10px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.nominee-card:hover,
.nominee-card.active {
  border-color: rgba(231, 166, 68, 0.72);
  background: #26231d;
}

.nominee-card .cover {
  width: 100%;
  min-height: 82px;
  margin-bottom: 8px;
}

.nominee-card .cover .cover-title {
  font-size: 0.72rem;
}

.nominee-card h3 {
  margin-bottom: 6px;
  font-size: 0.96rem;
  line-height: 1.2;
}

.nominee-card p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.42;
}

.nominee-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.nominee-actions button {
  min-height: 34px;
  font-size: 0.78rem;
}

.detail-actions {
  margin-top: 18px;
}

.merged-winner-card {
  grid-column: span 2;
  min-height: 410px;
  background: #26231d;
  border-color: rgba(231, 166, 68, 0.72);
  display: grid;
  align-content: start;
}

.merged-winner-card h3,
.merged-winner-card p,
.merged-winner-card .merged-platforms,
.merged-winner-card .nominee-actions {
  position: relative;
  z-index: 2;
}

.merged-winner-card h3 {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: rgba(15, 20, 22, 0.88);
  line-height: 1.18;
}

.merged-winner-card p {
  margin-top: 10px;
  padding: 10px;
  background: rgba(15, 20, 22, 0.72);
}

.merged-covers {
  position: relative;
  min-height: 250px;
  margin-bottom: 20px;
  z-index: 1;
}

.merged-covers .cover {
  position: absolute;
  width: min(50%, 230px);
  min-height: 220px;
  margin: 0;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
}

.merged-covers .cover:first-child {
  left: 4%;
  top: 6px;
  transform: rotate(-5deg);
}

.merged-covers .cover:last-child {
  right: 4%;
  top: 28px;
  transform: rotate(6deg);
}

.merged-platforms {
  display: grid;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  background: rgba(15, 20, 22, 0.7);
}

.merged-platforms .platform-row {
  margin-top: 0;
}

.winner-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.goty-label-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 8px;
}

.award-label,
.nominee-label {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid var(--line);
  background: #0f1416;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.award-label {
  border-color: rgba(231, 166, 68, 0.58);
  color: var(--amber);
}

.goty-detail {
  position: sticky;
  top: 92px;
  padding: 16px;
}

.goty-detail h3 {
  font-size: 1.24rem;
}

.goty-detail blockquote {
  margin: 12px 0;
  padding-left: 12px;
  border-left: 3px solid var(--amber);
  color: #e8ded0;
  line-height: 1.65;
}

.year-review {
  margin-top: 14px;
  padding: clamp(16px, 2vw, 24px);
}

.year-review h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.year-review .columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-top: 18px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline span {
  display: block;
  padding: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.year-review-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.year-critic-review {
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.year-critic-review h4 {
  margin: 0 0 8px;
  color: var(--amber);
}

.year-review-editor {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(57, 197, 182, 0.32);
  background: rgba(57, 197, 182, 0.08);
}

.year-review-editor label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
}

.year-review-editor input,
.year-review-editor textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #0f1416;
  color: var(--ink);
  padding: 10px;
}

.auth-grid,
.login-form,
.review-form {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 30px);
}

.auth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  background: transparent;
}

.auth-card,
.account-panel,
.admin-card {
  border: 1px solid var(--line);
  background: rgba(23, 29, 31, 0.88);
  padding: clamp(18px, 3vw, 30px);
}

.login-form {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.review-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.login-form label,
.review-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.review-form .wide {
  grid-column: span 2;
}

.login-form input,
.login-form select,
.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #0f1416;
  color: var(--ink);
  padding: 12px;
  outline: 0;
}

.review-form textarea {
  resize: vertical;
}

.login-status {
  margin: 14px 0 0;
  color: var(--muted);
}

.login-status.success {
  color: var(--green);
}

.login-status.error {
  color: #ff8a83;
}

.logout-button {
  flex: 0 0 auto;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.secondary-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #0f1416;
  color: var(--ink);
  font-weight: 800;
}

.viewer-labels {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.critic-review-editor {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) 1fr;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(57, 197, 182, 0.32);
  background: rgba(57, 197, 182, 0.08);
}

.critic-review-editor h3 {
  margin-bottom: 6px;
}

.quick-review-form {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
}

.quick-review-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.quick-review-form .wide {
  grid-column: span 1;
}

.quick-review-form input,
.quick-review-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #0f1416;
  color: var(--ink);
  padding: 10px;
}

.quick-review-form button,
.year-review-editor button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--amber);
  color: #111;
  font-weight: 900;
}

.label-counts,
.label-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.label-pill,
.label-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #0f1416;
  color: var(--ink);
  font-weight: 800;
}

.label-pill strong {
  color: var(--amber);
}

.label-actions button.active {
  border-color: rgba(57, 197, 182, 0.72);
  background: #243236;
}

.account-panel {
  color: var(--muted);
  line-height: 1.65;
}

.admin-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

.admin-card {
  display: grid;
  gap: 16px;
}

.admin-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.admin-control-stack {
  display: grid;
  gap: 12px;
}

.admin-critic-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.admin-critic-row header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-toggle-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-toggle-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #0f1416;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-name-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-name-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #0f1416;
  color: var(--ink);
  padding: 10px;
}

.admin-game-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) minmax(260px, 1fr);
  gap: 14px;
}

.admin-game-list {
  max-height: 520px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 4px;
}

.admin-game-list button {
  text-align: left;
  border: 1px solid var(--line);
  background: #0f1416;
  color: var(--ink);
  padding: 10px;
  font-weight: 800;
}

.admin-game-list button.active {
  border-color: rgba(57, 197, 182, 0.72);
  background: #243236;
}

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

.admin-game-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-game-form .wide {
  grid-column: 1 / -1;
}

.admin-game-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #0f1416;
  color: var(--ink);
  padding: 12px;
  outline: 0;
}

.danger-button {
  border-color: rgba(255, 138, 131, 0.42);
  color: #ffaaa5;
}

.admin-note {
  color: #ffaaa5;
  font-weight: 800;
}

.submit-button {
  grid-column: 1 / -1;
  justify-self: start;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    align-items: start;
  }

  .nav-links {
    display: none;
  }

  .review-layout,
  .goty-layout,
  .goty-editor,
  .year-review .columns {
    grid-template-columns: 1fr;
  }

  .goty-editor-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(96px, 1fr);
  }

  .ranking-row,
  .all-game-row {
    grid-template-columns: 48px 68px 1fr;
  }

  .ranking-metrics,
  .all-game-scores {
    grid-column: 1 / -1;
    justify-content: start;
    justify-items: start;
  }

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

  .critic-grid,
  .nominee-grid,
  .auth-grid,
  .admin-grid,
  .admin-game-layout,
  .login-form,
  .review-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .merged-winner-card {
    grid-column: span 2;
  }

  .goty-detail {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 96vh;
    padding-top: 110px;
  }

  .search-row {
    grid-template-columns: 24px 1fr;
  }

  .search-row button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .section-heading,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .game-list,
  .critic-grid,
  .nominee-grid,
  .detail-top,
  .goty-editor-controls,
  .critic-review-editor,
  .quick-review-form,
  .auth-grid,
  .admin-grid,
  .admin-game-layout,
  .admin-toggle-row,
  .admin-game-form,
  .login-form,
  .review-form,
  .review-form .wide {
    grid-template-columns: 1fr;
  }

  .merged-winner-card {
    grid-column: auto;
  }

  .review-form .wide {
    grid-column: auto;
  }

  .review-card {
    grid-template-columns: 1fr;
  }

  .review-card header {
    flex-direction: column;
  }

  .ranking-row,
  .all-game-row {
    grid-template-columns: 44px 1fr;
  }

  .ranking-row .cover,
  .all-game-row .cover {
    grid-row: span 2;
  }

  .ranking-main,
  .all-game-main,
  .ranking-metrics,
  .all-game-scores {
    grid-column: 1 / -1;
  }
}
