:root {
  --ink: #f5f8f1;
  --muted: #bdcabc;
  --panel: rgba(7, 18, 13, 0.88);
  --panel-strong: rgba(2, 7, 5, 0.94);
  --line: rgba(159, 218, 165, 0.24);
  --green: #75d16d;
  --cyan: #65d6d7;
  --gold: #e2bc5d;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(3, 7, 5, 0.68), rgba(3, 7, 5, 0.94)),
    url("rain.jpeg") center / cover fixed;
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(35, 35, 35, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: min(100% - 24px, var(--max));
  margin: 0 auto;
  padding: 10px 0;
}

.navbar a {
  padding: 10px 14px;
  border-radius: 4px;
  color: white;
  text-decoration: none;
}

.navbar a:hover {
  background: rgba(117, 209, 109, 0.16);
  color: var(--green);
}

.page-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.eyebrow,
.meta-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1.04;
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.6);
}

p {
  margin-top: 0;
}

.intro p:last-child {
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
}

.game-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.game-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.game-meta {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
  max-width: 330px;
}

.game-meta > div {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.game-meta strong {
  display: block;
  color: white;
  font-size: 18px;
  line-height: 1.35;
}

.review-list {
  width: 100%;
  max-width: 100%;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
  color: var(--muted);
  font-size: 13px;
}

.review-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.review-table th,
.review-table td {
  overflow: hidden;
  padding: 8px 5px;
  border-bottom: 1px solid rgba(159, 218, 165, 0.16);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-table th:first-child,
.review-table td:first-child {
  width: 62%;
  text-align: left;
  white-space: normal;
}

.review-table th:nth-child(2),
.review-table td:nth-child(2) {
  width: 20%;
}

.review-table th:nth-child(3),
.review-table td:nth-child(3) {
  width: 18%;
}

.review-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #07120d;
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
}

.review-table tr.practice td:first-child {
  color: #ffb0aa;
}

.review-table tr.mixed td:first-child {
  color: var(--gold);
}

.review-table tr.strong td:first-child {
  color: var(--green);
}
.review-reset {
  width: 100%;
  min-height: 40px;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: transparent;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.review-reset:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.game-container {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffebf;
}

.game-container canvas {
  display: block;
  width: min(100%, 720px) !important;
  height: auto !important;
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.game-controls button {
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #07100c;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.game-controls button:hover:not(:disabled) {
  background: var(--cyan);
}

.game-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

@media (max-width: 860px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .game-meta {
    position: static;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .page-shell {
    padding-top: 28px;
  }

  .navbar {
    justify-content: center;
  }
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(101, 214, 215, 0.34);
  border-radius: 6px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
}

.social-links a:hover {
  border-color: var(--green);
  color: var(--green);
}

