:root {
  --outline: #46230a;
  --panel: #fff0cd;
  --panel-text: #6e370f;
  --orange: #f08c28;
  --font: ui-rounded, "Arial Rounded MT Bold", "Nunito", "Trebuchet MS", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  background: linear-gradient(#6fbdec, #bfe3f2 65%, #ffe2a8) fixed;
  font-family: var(--font);
  font-weight: 800;
  color: var(--panel-text);
}

header { text-align: center; padding: 6vh 0 4vh; }
header h1 {
  margin: 0;
  font-size: clamp(40px, 9vw, 76px);
  line-height: 1.05;
  color: #fff;
  text-shadow:
    -2px -2px 0 var(--outline), 2px -2px 0 var(--outline),
    -2px 2px 0 var(--outline), 2px 2px 0 var(--outline),
    0 4px 0 var(--outline);
}
header p { margin: 12px 0 0; font-size: clamp(17px, 2.6vw, 22px); }

.games {
  width: 100%;
  max-width: 1040px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}

.game {
  display: flex;
  flex-direction: column;
  flex: 0 1 320px;
  background: var(--panel);
  border: 4px solid var(--outline);
  border-radius: 24px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.game:hover, .game:focus-visible { transform: translateY(-4px) rotate(-0.5deg); }
.game:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }

.picture { display: block; width: 100%; height: auto; border-bottom: 4px solid var(--outline); }

.text { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; flex: 1; }
.text h2 { margin: 0; font-size: 28px; }
.text p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; flex: 1; }

.play {
  align-self: flex-start;
  margin-top: 6px;
  padding: 8px 26px;
  font-size: 20px;
  color: #fff;
  background: var(--orange);
  border: 3px solid var(--outline);
  border-radius: 16px;
  text-shadow: -1px -1px 0 var(--outline), 1px -1px 0 var(--outline), -1px 1px 0 var(--outline), 1px 1px 0 var(--outline);
}

footer { margin-top: auto; padding: 5vh 0 3vh; font-size: 15px; font-weight: 600; opacity: 0.8; }

@media (prefers-reduced-motion: reduce) {
  .game { transition: none; }
}
