* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 174, 66, 0.18), transparent 35%),
    linear-gradient(135deg, #080808, #151515 55%, #090909);
  color: #f5f5f5;
}

.page {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.tag {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(255, 194, 97, 0.5);
  color: #ffc261;
  border-radius: 999px;
  margin-bottom: 18px;
  font-weight: bold;
}

.hero h1 {
  font-size: clamp(56px, 9vw, 112px);
  margin: 0;
  line-height: 0.9;
  letter-spacing: -4px;
}

.hero p {
  color: #d0d0d0;
  font-size: 20px;
  max-width: 620px;
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: bold;
  font-size: 16px;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  background: linear-gradient(135deg, #ffb347, #ff7a18);
  color: #171717;
}

.secondary {
  background: #242424;
  color: #f5f5f5;
  border: 1px solid #444;
}

.full {
  width: 100%;
  margin-top: 12px;
}

.hero-card {
  background: linear-gradient(160deg, #1e1e1e, #0f0f0f);
  border: 1px solid rgba(255, 194, 97, 0.25);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.knight-symbol {
  font-size: 190px;
  color: #ffc261;
  text-shadow: 0 0 28px rgba(255, 174, 66, 0.65);
}

.hero-card p {
  margin-top: -60px;
  font-weight: bold;
  color: #aaa;
}

.game-section {
  position: relative;
  padding: 70px 0;
}

.game-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 26px;
}

.game-header h2 {
  font-size: 42px;
  margin: 0;
}

.game-header p {
  color: #aaa;
}

.score-box {
  background: #1f1f1f;
  border: 1px solid #333;
  padding: 16px 22px;
  border-radius: 18px;
  text-align: center;
  min-width: 120px;
}

.score-box span {
  color: #aaa;
  font-size: 14px;
}

.score-box strong {
  display: block;
  font-size: 30px;
  color: #ffc261;
}

.game-layout {
  display: grid;
  grid-template-columns: auto 320px;
  gap: 30px;
  align-items: start;
}

.board {
  display: grid;
  grid-template-columns: repeat(8, 64px);
  grid-template-rows: repeat(8, 64px);
  gap: 5px;
  padding: 14px;
  background: #111;
  border: 1px solid #333;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
}

.cell {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #e6e6e6;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.15s ease;
  user-select: none;
}

.cell:hover {
  transform: scale(1.04);
}

.cell.dark {
  background: #b9b9b9;
}

.cell.visited {
  background: #c56d28;
}

.cell.valid {
  background: #44d17a;
  box-shadow: 0 0 18px rgba(68, 209, 122, 0.6);
}

.cell.current {
  background: #ffd166;
  color: #141414;
  box-shadow: 0 0 22px rgba(255, 209, 102, 0.85);
}

.panel {
  background: #181818;
  border: 1px solid #303030;
  border-radius: 24px;
  padding: 24px;
}

.panel h3 {
  margin-top: 0;
  color: #ffc261;
}

.panel p,
.panel li {
  color: #ccc;
  line-height: 1.5;
}

.panel ul {
  padding-left: 20px;
}

.message {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: grid;
  place-items: center;
  z-index: 10;
  padding: 20px;
}

.message.hidden {
  display: none;
}

.message > div,
.message h2,
.message p {
  text-align: center;
}

.message h2 {
  font-size: clamp(44px, 7vw, 88px);
  margin: 0 0 10px;
  color: #ffc261;
}

.message p {
  font-size: 20px;
  color: #ddd;
}

.message-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.pitch {
  padding: 100px 0;
  text-align: center;
}

.pitch h2 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  margin-bottom: 24px;
}

.pitch p {
  max-width: 760px;
  margin: 0 auto 22px;
  color: #cfcfcf;
  line-height: 1.8;
  font-size: 18px;
}

.pitch-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 50px;
  }

  .hero-card {
    min-height: 240px;
  }

  .knight-symbol {
    font-size: 120px;
  }

  .game-header {
    flex-direction: column;
    align-items: start;
  }

  .board {
    grid-template-columns: repeat(8, minmax(34px, 1fr));
    grid-template-rows: repeat(8, minmax(34px, 1fr));
    gap: 4px;
    width: 100%;
  }

  .cell {
    width: auto;
    height: auto;
    aspect-ratio: 1;
    font-size: 24px;
  }
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0 70px;
}

.stat-card {
  background: linear-gradient(160deg, #1b1b1b, #111);
  border: 1px solid rgba(255, 194, 97, 0.18);
  border-radius: 24px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.stat-number {
  display: block;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: bold;
  color: #ffc261;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: #bdbdbd;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .stats-section {
    grid-template-columns: 1fr;
  }
}