@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/cormorant-garamond.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background: #5c86a6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid #fff; outline-offset: 7px; }
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #5c86a6;
  pointer-events: none;
  isolation: isolate;
}
.sky-photo {
  position: absolute;
  inset: -8%;
  background: url('/assets/sky-natural-v2.webp') center / cover no-repeat;
  filter: saturate(.92) contrast(.96);
  transform: translate3d(-3%, .5%, 0);
  animation: sky-drift 180s ease-in-out infinite alternate;
  will-change: transform;
}
.sky-cloud {
  position: absolute;
  left: 0;
  width: 110vmax;
  height: 46vmax;
  transform: translate3d(-120%, 0, 0);
  animation: cloud-crossing 440s linear infinite;
  will-change: transform;
}
.sky-cloud::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/cloud-cirrus-v3.webp') center / contain no-repeat;
  filter: grayscale(1) blur(1px);
  animation: cloud-shape 58s ease-in-out infinite alternate;
}
.sky-cloud-far {
  top: -15%;
  width: 92vmax;
  opacity: .12;
  animation-duration: 620s;
  animation-delay: -245s;
}
.sky-cloud-far::before { transform: scaleX(-1); animation-name: cloud-shape-far; }
.sky-cloud-near { top: 44%; opacity: .22; animation-delay: -140s; }
.sky::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #f2f1eb;
  opacity: .07;
}
.sky::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: url('/assets/grain.svg') repeat;
  opacity: .09;
  mix-blend-mode: soft-light;
}
@keyframes sky-drift {
  from { transform: translate3d(-3%, .5%, 0); }
  to { transform: translate3d(3%, -.5%, 0); }
}
@keyframes cloud-crossing {
  from { transform: translate3d(-120%, 0, 0); }
  to { transform: translate3d(110vw, -3vh, 0); }
}
@keyframes cloud-shape {
  from { transform: scale(1, 1) skewX(-.5deg); }
  to { transform: scale(1.035, .98) skewX(.5deg); }
}
@keyframes cloud-shape-far {
  from { transform: scale(-1, 1); }
  to { transform: scale(-1.025, .985); }
}
[data-sky-paused] .sky *, [data-sky-paused] .sky *::before {
  animation-play-state: paused;
}
.home { display: grid; grid-template-rows: 1fr auto; }
.home-main {
  min-height: calc(100svh - 124px);
  display: grid;
  place-items: center;
  padding: 60px 24px 0;
}
.wordmark {
  margin: 0;
  padding-left: .075em;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.6rem, 11.6vw, 13.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .075em;
  text-shadow: 0 2px 26px rgb(13 48 87 / 22%);
}
.home-nav { display: flex; justify-content: center; padding: 20px 24px max(48px, env(safe-area-inset-bottom)); }
.sky-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 100px;
  background: rgb(10 51 91 / 65%);
  font-size: 16px;
  transition: background .18s ease, border-color .18s ease;
}
.sky-link:hover { background: rgb(10 51 91 / 85%); border-color: #fff; }
.sky-link span, .play-label span { font-size: 21px; }

.games .sky::before {
  opacity: 1;
  background: linear-gradient(180deg, rgb(18 46 69 / 40%), rgb(18 46 69 / 10%) 45%, rgb(242 241 235 / 7%));
}
.games-header {
  max-width: 1600px;
  margin-inline: auto;
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 29px; font-weight: 500; letter-spacing: .09em; }
.back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; }
.back-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.games-main { width: min(860px, calc(100% - 48px)); margin: clamp(24px, 6vh, 80px) auto 80px; }
.games-main > h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(64px, 7vw, 92px);
  line-height: 1;
  text-align: center;
  margin: 0 0 48px;
  text-shadow: 0 2px 24px rgb(9 49 88 / 18%);
}
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 20px;
  color: #153b5b;
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 12px 48px rgb(9 49 88 / 9%);
  transition: transform .2s ease, background .2s ease;
}
.game-card:hover { transform: translateY(-4px); background: #fff; }
.game-card:focus-visible { outline-color: #fff; }
.game-card h2 { margin: 0 0 38px; font-size: clamp(24px, 2.5vw, 30px); line-height: 1.2; letter-spacing: -.035em; font-weight: 600; }
.play-label { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: auto; border-top: 1px solid #d7e1e9; padding-top: 20px; font-size: 16px; }

@media (max-width: 580px) {
  .home-main { padding-inline: 16px; }
  .wordmark { font-size: 11.8vw; letter-spacing: .045em; padding-left: .045em; }
  .games-header { padding: 20px 24px; }
  .brand { font-size: 24px; }
  .games-main { margin-top: 30px; margin-bottom: 32px; }
  .games-main > h1 { margin-bottom: 28px; }
  .game-grid { grid-template-columns: 1fr; gap: 16px; }
  .game-card { padding: 24px; }
  .game-card h2 { margin-bottom: 24px; }
  .play-label { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .sky *, .sky *::before { animation: none !important; will-change: auto; }
  .sky-cloud-far { transform: translate3d(-22%, 0, 0); }
  .sky-cloud-near { transform: translate3d(12%, 0, 0); }
  .game-card:hover { transform: none; }
}
