:root {
  color-scheme: light;
  color: #202921;
  background: #f4f5e9;
  font: 16px/1.55 "Inter", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #c98f22; outline-offset: 5px; }
.wrap { width: min(1280px, calc(100% - 104px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid #d9dfcd; }
.header-content { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  letter-spacing: -.045em;
  font-weight: 900;
  text-decoration: none;
}
.mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: #253c31;
  border-radius: 7px;
}
.mark span {
  width: 12px;
  height: 14px;
  margin-left: 2px;
  background: #f4d479;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
nav a { display: inline-block; padding: 8px 0; text-decoration-thickness: 2px; text-underline-offset: 6px; }
nav { display: flex; gap: clamp(10px, 2.5vw, 28px); align-items: center; }
nav a { text-decoration: none; white-space: nowrap; }
nav a:hover { text-decoration: underline; }
main { padding-block: clamp(33px, 5vw, 64px) clamp(42px, 7vw, 96px); }
h1, h2, p, ul { margin: 0; }
h1 { font-size: clamp(29px, 4vw, 48px); line-height: 1.2; margin-bottom: 22px; letter-spacing: .025em; }
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}
.game:first-child { grid-column: 1 / -1; }
.game article {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 330px;
  overflow: hidden;
  border-radius: 16px;
  color: #fffaf0;
  background: #193d37;
}
.game:first-child article { min-height: clamp(440px, 47vw, 618px); }
.game article::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #102c28f5, #102c28b3 28%, #102c2822 58%, transparent 74%),
    linear-gradient(0deg, #0e29266b, transparent 40%);
}
.cover {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 69% center;
}
.game-info { padding: clamp(24px, 5.2vw, 72px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tags li { padding: 3px 11px; border: 1px solid #e2efe0a8; border-radius: 100px; color: #f5f7e9; font-size: 13px; }
.game h2 { margin-top: 18px; font-size: clamp(36px, 5.6vw, 80px); line-height: 1.08; letter-spacing: .015em; }
.game p { max-width: 21em; margin-top: 17px; color: #f2f6e8; font-size: clamp(15px, 1.55vw, 19px); }
.play {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 52px;
  margin-top: 26px;
  padding: 10px 17px;
  border-radius: 7px;
  background: #f5d780;
  color: #242a1c;
  text-decoration: none;
  font-weight: 800;
}
.play:hover { background: #ffe5a3; }
.play:focus-visible { outline-color: #fffaf0; }
.play span { font-size: 22px; line-height: 1; }

.about, .feedback { margin-top: clamp(38px, 6vw, 84px); scroll-margin-top: 20px; }
.about {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) 2fr;
  gap: 20px 40px;
  border-block: 1px solid #d9dfcd;
  padding-block: clamp(26px, 4.5vw, 54px);
}
.about h2, .feedback h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; }
.about p { max-width: 40em; color: #3e5041; }
.about p + p { margin-top: 9px; }
.about a { display: inline-block; margin-top: 15px; color: #204f38; font-weight: 750; text-underline-offset: 4px; }
.feedback-columns {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  margin-top: 20px;
}
.feedback-form {
  display: grid;
  gap: 7px;
  padding: clamp(18px, 3.2vw, 32px);
  background: #fdfdf6;
  border: 1px solid #d9dfcd;
  border-radius: 14px;
}
.feedback h3 { margin: 0 0 7px; font-size: 20px; }
.feedback-form label { margin-top: 8px; font-size: 14px; font-weight: 750; }
.feedback-form label span, .field-hint { color: #536555; font-size: 13px; font-weight: 400; }
.feedback-form input, .feedback-form textarea, button { font: inherit; }
.feedback-form input, .feedback-form textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #b9c6b4;
  border-radius: 7px;
  background: #fff;
  color: inherit;
}
.feedback-form textarea { resize: vertical; }
.feedback-form :is(input, textarea, button):focus-visible, .quiet-button:focus-visible {
  outline: 2px solid #56765f;
  outline-offset: 3px;
}
.feedback-form figure { margin: 7px 0 0; }
.feedback-form img, .comment img { display: block; max-width: 100%; max-height: 260px; border-radius: 7px; }
.send-button, .quiet-button { cursor: pointer; border-radius: 7px; }
.send-button {
  justify-self: start;
  display: flex;
  gap: 25px;
  margin-top: 10px;
  border: 0;
  padding: 10px 15px;
  background: #253c31;
  color: #fff;
  font-weight: 750;
}
.send-button:hover { background: #365443; }
button:disabled { opacity: .65; cursor: wait; }
.quiet-button { border: 1px solid #b9c6b4; background: transparent; color: #204f38; padding: 5px 11px; }
.feedback-form .quiet-button { margin-top: 7px; }
.feedback-status:empty { display: none; }
.feedback-status, #comments-status { color: #435647; font-size: 14px; }
.comments { padding-top: 7px; }
#comments-list { margin: 12px 0; padding: 0; list-style: none; }
.comment { padding: 14px 0; border-top: 1px solid #d9dfcd; overflow-wrap: anywhere; }
.comment header { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.comment time { color: #536555; font-size: 13px; }
.comment p { margin-top: 6px; white-space: pre-wrap; }
.comment a { display: inline-block; margin-top: 9px; }

@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .header-content { min-height: 62px; }
  .game:first-child article { min-height: 0; }
  .game article { display: block; min-height: 0; }
  .game article::after { content: none; }
  .cover { position: static; display: block; height: auto; aspect-ratio: 3 / 2; object-position: right center; }
  .game h2 { margin-top: 14px; }
  .game p { margin-top: 12px; }
  .about, .feedback-columns { grid-template-columns: 1fr; }
  .wordmark { font-size: 18px; gap: 7px; }
  .mark { width: 26px; height: 26px; }
  nav { font-size: 13px; gap: 9px; }
}
