:root {
  color: #152033;
  background: #eef2f7;
  font-family: Inter, "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 28px;
  background: #111827;
  color: #fff;
}

.topbar strong {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-right: 10px;
  place-items: center;
  border-radius: 8px;
  background: #f0c45b;
  color: #111827;
}

.topbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  font-size: 13px;
}

select,
input,
button {
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
}

button {
  border-color: #111827;
  background: #111827;
  color: #fff;
  cursor: pointer;
}

main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 20px;
  align-items: end;
  padding: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc, #ffffff 45%, #f4e6bd);
  border: 1px solid #e5e7eb;
}

.hero p {
  margin: 0 0 10px;
  color: #b7791f;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 38px;
  letter-spacing: 0;
}

.hero span {
  color: #667085;
}

.player-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.player-box label {
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: 13px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 14px;
}

.section-title h2,
.log-section h2 {
  margin: 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.game-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.game-card img,
.placeholder-icon {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #1f2937;
}

.placeholder-icon {
  display: grid;
  place-items: center;
  color: #f0c45b;
  font-size: 44px;
  font-weight: 800;
}

.game-card .body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.game-card strong {
  font-size: 18px;
}

.game-card span {
  color: #667085;
  font-size: 13px;
}

.game-card button {
  width: 100%;
}

.log-section {
  margin-top: 28px;
}

pre {
  overflow: auto;
  min-height: 110px;
  padding: 16px;
  border-radius: 8px;
  background: #111827;
  color: #d1d5db;
}

@media (max-width: 820px) {
  .topbar,
  .hero {
    grid-template-columns: 1fr;
  }

  .topbar {
    gap: 12px;
    padding: 12px 16px;
  }

  .hero {
    padding: 22px;
  }

  .hero h1 {
    font-size: 30px;
  }
}
