:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --card: #fffdf8;
  --ink: #141714;
  --muted: #6b7069;
  --line: #d9d4c8;
  --blue: #155fca;
  --green: #147052;
  --orange: #dc5934;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.site-header,
main,
footer {
  width: min(940px, calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-size: 0.67rem;
  letter-spacing: 0.05em;
}

.idea-link {
  color: var(--blue);
  font-size: 0.83rem;
  font-weight: 850;
  text-decoration: none;
}
.idea-link:hover, .idea-link:focus-visible { text-decoration: underline; }

.intro { padding: 72px 0 38px; }
.intro p,
.idea-copy > span,
.coming-soon > span,
.status {
  margin: 0;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}
.intro h1 {
  margin: 7px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.7rem, 9vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.96;
}
.intro > span { color: var(--muted); font-size: 1rem; }

.game-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.game-card {
  overflow: hidden;
  display: flex;
  min-height: 470px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.game-card:hover, .game-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(42, 37, 26, 0.11);
}

.game-card img,
.score-preview { width: 100%; height: 230px; }
.game-card img { display: block; object-fit: cover; }
.score-preview {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 24px;
  background: #e9e2d2;
}
.score-preview span { display: grid; min-height: 125px; place-items: center; border: 1px solid #c9bfa9; border-radius: 16px; background: #fffaf0; }
.score-preview small { color: var(--muted); font-size: 0.72rem; font-weight: 800; }
.score-preview b { font-family: Georgia, serif; font-size: 3.25rem; line-height: 0.8; }
.score-preview i { color: var(--orange); font-size: 1.5rem; font-style: normal; font-weight: 900; }

.game-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 26px; }
.score-card .status { color: var(--green); }
.game-copy h2, .idea-copy h2 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.game-copy p { margin: 13px 0 24px; color: var(--muted); line-height: 1.55; }
.game-copy strong { margin-top: auto; color: var(--blue); font-size: 0.88rem; }
.score-card .game-copy strong { color: var(--green); }
.game-copy strong span { margin-left: 5px; }

.coming-soon {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px dashed #bdb5a5;
  border-radius: 16px;
  padding: 20px 24px;
}
.coming-soon > span { color: var(--orange); white-space: nowrap; }
.coming-soon div { display: flex; align-items: baseline; gap: 12px; }
.coming-soon strong { font-family: Georgia, serif; font-size: 1.3rem; }
.coming-soon small { color: var(--muted); }

.idea-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 46px;
  align-items: start;
  margin: 68px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 42px 0;
}
.idea-copy > span { color: var(--orange); }
.idea-copy h2 { font-size: 2rem; }
.idea-copy p { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }

.idea-form { display: grid; gap: 8px; }
.idea-form label { font-size: 0.78rem; font-weight: 850; }
textarea, input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--card);
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; padding: 12px; line-height: 1.45; }
input, select { min-height: 42px; padding: 0 11px; }
textarea:focus, input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 95, 202, 0.09); }
.form-row { display: grid; grid-template-columns: 0.75fr 1.35fr auto; gap: 8px; }
.idea-form button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  background: var(--ink);
  color: white;
  font-weight: 850;
  cursor: pointer;
}
.idea-form button:hover { background: var(--blue); }
.idea-form button:disabled { cursor: wait; opacity: 0.6; }
.form-status { min-height: 1.2em; margin: 0; color: var(--muted); font-size: 0.78rem; }
.form-status.success { color: var(--green); }
.form-status.error { color: #b63b28; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 38px;
  color: var(--muted);
  font-size: 0.75rem;
}
footer span:first-child { color: var(--ink); font-weight: 850; }

@media (max-width: 720px) {
  .site-header, main, footer { width: min(100% - 24px, 940px); }
  .intro { padding: 52px 0 30px; }
  .intro h1 { font-size: clamp(3.5rem, 18vw, 5.4rem); }
  .game-list { grid-template-columns: 1fr; }
  .game-card { min-height: 0; }
  .game-card img, .score-preview { height: 190px; }
  .coming-soon { display: grid; gap: 7px; }
  .coming-soon div { display: grid; gap: 4px; }
  .idea-section { grid-template-columns: 1fr; gap: 24px; margin: 54px 0; padding: 34px 0; }
  .form-row { grid-template-columns: 1fr; }
  footer { display: grid; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
