@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;600;650;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root { color-scheme: light; --sky: #a8d9ef; --ink: #203b43; --muted: #526b73; --accent: #276c5c; --link: #1767ba; --line: #e2e9e6; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--sky); color: var(--ink); font-family: 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 7px; border-radius: 3px; }
::selection { background: #f6de9b; color: var(--ink); }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 20px; background: white; z-index: 5; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.paper { position: relative; max-width: 1120px; min-height: 100vh; margin: 0 auto; padding: 0 64px; background: #fff; }
.paper::before, .paper::after { content: ''; position: absolute; top: 0; bottom: 0; width: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='160' viewBox='0 0 24 160'%3E%3Cpath d='M24 0H12C-3 27-3 53 12 80S27 133 12 160H24Z' fill='white'/%3E%3C/svg%3E") repeat-y; pointer-events: none; }
.paper::before { right: calc(100% - 1px); }
.paper::after { left: calc(100% - 1px); transform: scaleX(-1); }
.header { min-height: 128px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-heading { margin: 0; font-size: inherit; line-height: 1; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-size: clamp(25px, 3vw, 32px); font-weight: 700; line-height: 1.2; letter-spacing: -1.4px; }
.brand-dot { width: .65em; height: .65em; margin: 0 .035em; color: var(--accent); transform: translateY(.1em); overflow: visible; }
.dot-shape { opacity: 0; transform-origin: 12px 12px; animation: dot-shape 8s ease-in-out infinite; animation-delay: calc(var(--shape) * 1s - 8s); }
/* Each shape gets one second of the eight-second loop, including its transition. */
@keyframes dot-shape {
  0%, 10%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  12.5%, 97.5% { opacity: 0; transform: scale(.5) rotate(-20deg); }
}
.header-note { color: var(--muted); font-size: 12px; }
.intro { margin: 8px 0 42px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.intro a { color: var(--link); text-underline-offset: 3px; }
h2 { font-family: 'Space Grotesk', sans-serif; }
.game-list { list-style: none; padding: 0; margin: 0; }
.game-list li + li { border-top: 1px solid var(--line); }
.game { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 44px; padding: 32px 0; text-decoration: none; }
.game-list li:first-child .game { padding-top: 0; }
.game-list li:nth-child(even) .game-image { order: 2; }
.game-image { min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 5px; }
.game-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
.game-copy { min-width: 0; padding: 15px 0; }
.game h2 { margin: 17px 0 14px; font-size: clamp(24px, 2.65vw, 33px); line-height: 1.13; font-weight: 500; letter-spacing: -1.25px; overflow-wrap: anywhere; }
.game p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; }
.play-link { display: flex; align-items: center; gap: 16px; margin-top: 23px; color: var(--link); font-size: 13px; font-weight: 650; }
.play-arrow { font-size: 20px; line-height: 1; }
.game:hover .play-link, .game:focus-visible .play-link { text-decoration: underline; text-underline-offset: 4px; }
.game:hover h2 { color: var(--link); }
@media (hover: hover) { .game:hover img { transform: scale(1.025); } }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 38px; padding: 32px 0 42px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
footer a { text-decoration: none; white-space: nowrap; }
footer a:hover { text-decoration: underline; }
footer a span { margin-left: 10px; }
@media (min-width: 701px) and (max-width: 1200px) { .paper { width: calc(100% - 96px); padding: 0 44px; } }
@media (max-width: 900px) {
  .game { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 28px; }
  .game-list li:nth-child(even) .game { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
  .header-note { max-width: 145px; text-align: right; line-height: 1.6; }
}
@media (max-width: 700px) {
  .paper { padding: 0 25px; }
  .paper::before, .paper::after { display: none; }
  .header { min-height: 106px; }
  .header-note { display: none; }
  .intro { margin: 0 0 30px; font-size: 15px; }
  .game { gap: 23px; padding: 28px 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); }
  .game-list li:nth-child(even) .game { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); }
  .game h2 { font-size: 25px; margin: 10px 0; letter-spacing: -.8px; }
  .game p { font-size: 13px; line-height: 1.65; }
  .play-link { margin-top: 15px; font-size: 12px; gap: 10px; }
  .game-copy { padding: 0; }
  footer { margin-top: 24px; align-items: flex-start; line-height: 1.6; }
}
@media (max-width: 380px) { .paper { padding: 0 18px; } .game { gap: 16px; } .game h2 { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .dot-shape { animation: none; opacity: 0; }
  .dot-shape:first-child { opacity: 1; }
}
