:root {
  color-scheme: light;
  --paper: #fff6e8;
  --ink: #2a241c;
  --muted: #6a6154;
  --line: #2a241c;
  --accent: #e36a3c;
  --sky: #89c9e8;
  --shadow: rgba(42, 36, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 12%, #fff8 0 42px, transparent 43px),
    radial-gradient(circle at 88% 8%, #fff6 0 28px, transparent 29px),
    linear-gradient(#9ed8f2, #bfe4c2 58%, #efe4cc);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

body {
  padding: max(28px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
    max(48px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

.wrap {
  width: min(980px, 100%);
  margin: 0 auto;
}

.brand {
  margin: 0 0 6px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #c45c2a;
}

h1 {
  margin: 0 0 10px;
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  line-height: 0.92;
}

.lead {
  margin: 0 0 28px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.45;
}

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

@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .game-card {
    min-height: 0;
    padding: 16px;
  }

  .game-go {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 280px;
  padding: 18px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  border: 4px solid var(--line);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--shadow);
}

.game-card:hover,
.game-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--shadow);
}

.game-card.soon {
  opacity: 0.78;
  background: #fff6e8cc;
  box-shadow: none;
  border-style: dashed;
  pointer-events: none;
}

.game-art {
  position: relative;
  width: 100%;
  height: 92px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: #bfe4ff;
  overflow: hidden;
}

.game-art.empty {
  background: repeating-linear-gradient(
    45deg,
    #efe4cc,
    #efe4cc 10px,
    #f7eedc 10px,
    #f7eedc 20px
  );
}

.goose-body,
.goose-head {
  position: absolute;
  background: #f4f1ea;
  border: 3px solid var(--line);
  border-radius: 50%;
}

.goose-body {
  width: 58px;
  height: 38px;
  left: 36px;
  bottom: 16px;
}

.goose-head {
  width: 28px;
  height: 26px;
  left: 82px;
  bottom: 36px;
}

.goose-beak {
  position: absolute;
  left: 106px;
  bottom: 42px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 16px solid #e67a1a;
}

.game-art.cat {
  background: #f3d5b0;
}

.game-art.cat .goose-body,
.game-art.cat .goose-head {
  background: #d35400;
}

.game-art.cat .goose-head {
  width: 22px;
  height: 20px;
  left: 86px;
  bottom: 40px;
}

.game-art.cat .goose-beak {
  left: 104px;
  bottom: 46px;
  border-left-color: #2a241c;
  border-left-width: 10px;
}

.game-art.garden {
  background: #8ed67a;
}

.game-art.you {
  background: #7ec8ea;
}

.game-art.you .goose-body {
  background: #fff6e8;
}

.game-art.you .goose-head::after {
  content: "я";
  position: absolute;
  left: 2px;
  top: -16px;
  font: 700 14px Georgia, serif;
  color: #2a241c;
}

.game-art.grow {
  background: #f3c48a;
}

.game-art.grow .goose-body {
  box-shadow: 18px 10px 0 #c43c2a;
}

.game-art.grow .goose-head::after {
  content: "";
  position: absolute;
  left: -4px;
  top: -10px;
  width: 30px;
  height: 12px;
  background: #c43c2a;
  border: 3px solid var(--line);
  border-radius: 10px 10px 2px 2px;
}

.game-art.garden::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 18px;
  width: 10px;
  height: 22px;
  background: #3f6e2c;
  border-radius: 4px;
  box-shadow: 22px 0 0 #3f6e2c, 44px 4px 0 #3f6e2c;
}

.game-tag {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.game-title {
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
}

.game-blurb {
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
}

.game-go {
  margin-top: 16px;
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  border: 3px solid var(--line);
  border-radius: 22px;
  padding: 8px 16px;
  font-size: 1.05rem;
}

footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}
