:root {
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #153f53;
  background: #edf8fb;
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 4% 3%, #c5efff, transparent 50%),
    radial-gradient(ellipse at 100% 30%, #fff2bf, transparent 49%), #edf8fb;
}
a {
  color: inherit;
}
a:focus-visible {
  outline: 3px solid #d2631d;
  outline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  width: min(1200px, 100%);
  margin: auto;
  padding: 0 32px;
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  z-index: 5;
}
.skip:focus {
  top: 10px;
}
.site-header {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #9ccbd14d;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -1.2px;
}
.brand img {
  transform: rotate(-8deg);
  box-shadow: 0 6px 13px #477e9830;
  border-radius: 10px;
}
.brand-color {
  color: #d56123;
}
.header-note {
  font-size: 13px;
  color: #587a88;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 47px 0 34px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 800;
  color: #45817d;
  margin: 0 0 12px;
}
h1 {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 900;
  letter-spacing: -2.3px;
  line-height: 1.08;
}
h1 span {
  color: #e06c26;
}
.lead {
  font-size: 16px;
  line-height: 1.6;
  color: #557684;
  margin: 17px 0 0;
}
.game-count {
  display: flex;
  gap: 13px;
  align-items: center;
  background: #ffffffae;
  border: 1px solid #bfd8d9;
  border-radius: 20px;
  padding: 17px 23px;
  margin: 0;
  flex-shrink: 0;
}
.game-count strong {
  font-size: 44px;
  font-weight: 850;
  line-height: 1;
  color: #248d89;
}
.game-count span {
  font-size: 13px;
  line-height: 1.55;
  color: #527782;
}
.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  scroll-margin-top: 20px;
}
.game-card {
  --accent: #7d47c6;
  --tint: #f1eaff;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 25px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #bdd7df;
  box-shadow:
    0 5px 0 #d5e5e7,
    0 13px 30px #41748512;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 6px 0 #cadfe1,
    0 20px 35px #41748524;
}
.game-card:active {
  transform: translateY(-1px);
}
.card-art {
  height: 246px;
  position: relative;
  overflow: hidden;
  background: var(--tint);
  border-bottom: 1px solid #84adbf33;
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.game-card:hover .card-art img {
  transform: scale(1.035);
}
.game-card[data-game="kubbapusl"] .card-art img {
  object-position: 50% 54%;
}
.game-card[data-game="kubbar"] .card-art img {
  object-position: 50% 76%;
}
.game-card[data-game="hraun"] .card-art img {
  object-position: 45% 50%;
}
.art-tag {
  position: absolute;
  left: 16px;
  top: 15px;
  background: #fffffff2;
  color: #315566;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  border: 1px solid #ffffffb3;
  border-radius: 30px;
  padding: 7px 12px;
  box-shadow: 0 2px 10px #112b5320;
}
.card-body {
  padding: 25px 23px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.category {
  margin: 0 0 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
}
.card-body h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
  line-height: 1.18;
  margin: 0 0 12px;
  font-weight: 850;
}
.description {
  font-size: 15px;
  line-height: 1.65;
  color: #527483;
  margin: 0 0 24px;
  min-height: 74px;
}
.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: var(--tint);
  color: var(--accent);
  font-size: 15px;
  font-weight: 850;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 13px;
  margin-top: auto;
}
.play-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.play-note {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 23px 27px;
  margin: 33px 0 0;
  border-radius: 18px;
  border: 1px solid #cfdfd6;
  background: #fafff5;
}
.note-icon {
  font-size: 30px;
  color: #e2a337;
  flex-shrink: 0;
}
.play-note p {
  font-size: 14px;
  line-height: 1.7;
  color: #577781;
  margin: 0;
}
.play-note strong {
  color: #315d62;
  font-size: 15px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #5e818c;
  line-height: 1.7;
  padding: 30px 2px;
}
.noscript {
  background: white;
  padding: 24px;
  border-radius: 18px;
}
.noscript li {
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .wrap {
    padding: 0 22px;
  }
  .games {
    gap: 15px;
  }
  .card-body {
    padding: 20px 17px;
  }
  .card-body h2 {
    font-size: 23px;
  }
  .card-art {
    height: 214px;
  }
  .description {
    font-size: 14px;
    min-height: 92px;
  }
  .intro {
    padding: 36px 0 28px;
  }
  .game-count {
    padding: 14px 17px;
  }
  .game-count strong {
    font-size: 38px;
  }
}
@media (max-width: 680px) {
  .wrap {
    padding: 0 17px;
  }
  .site-header {
    min-height: 80px;
  }
  .brand {
    font-size: 25px;
    gap: 10px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .header-note {
    font-size: 12px;
    max-width: 128px;
    text-align: right;
    line-height: 1.5;
  }
  .intro {
    padding: 30px 0 25px;
    gap: 15px;
    align-items: flex-start;
  }
  h1 {
    font-size: 41px;
    letter-spacing: -1.6px;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.1px;
    line-height: 1.7;
  }
  .lead {
    font-size: 15px;
    margin-top: 12px;
  }
  .game-count {
    display: none;
  }
  .games {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .game-card {
    border-radius: 22px;
  }
  .card-art {
    height: 235px;
  }
  .card-body {
    padding: 22px;
  }
  .card-body h2 {
    font-size: 27px;
  }
  .description {
    font-size: 15px;
    min-height: 0;
    margin-bottom: 22px;
  }
  .play-button {
    font-size: 16px;
    padding: 15px;
  }
  .play-note {
    padding: 20px;
    margin-top: 29px;
    gap: 13px;
  }
  .play-note p {
    font-size: 13px;
  }
  .play-note strong {
    font-size: 14px;
  }
  footer {
    flex-direction: column;
    gap: 4px;
    padding: 26px 3px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .game-card:hover {
    transform: none;
  }
}

/* A separate, optional placement on the catalog page, away from play controls. */
.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 650px;
}
@media (max-width: 680px) {
  .footer-links {
    justify-content: flex-start;
    margin-top: 8px;
  }
}
.ad-placement {
  margin: 40px 0 0;
  padding: 20px 0;
  border-top: 1px solid #bdd7df;
  text-align: center;
}
.ad-placement[hidden] {
  display: none !important;
}
.ad-label {
  margin: 0 0 12px;
  color: #5e818c;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ad-content {
  min-height: 100px;
  max-width: 970px;
  margin: auto;
}
@media (max-width: 680px) {
  .ad-content {
    min-height: 250px;
  }
}

/* Player guides and shared navigation */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 18px 0;
  font-weight: 750;
}
.site-nav a {
  padding: 8px 0;
  text-underline-offset: 5px;
}
.editorial {
  max-width: 980px;
  padding: 35px 0 50px;
  line-height: 1.8;
  font-size: 17px;
}
.editorial h1 {
  max-width: 850px;
}
.editorial h2 {
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin: 32px 0 12px;
  font-size: 27px;
}
.editorial p,
.editorial li {
  max-width: 78ch;
}
.editorial a {
  text-underline-offset: 4px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.guide-tile {
  background: #ffffffcc;
  border: 1px solid #bdd7df;
  border-radius: 18px;
  padding: 24px;
}
.guide-tile h2 {
  margin: 0 0 12px;
  font-size: 24px;
}
.guide-play {
  display: inline-block;
  background: #153f53;
  color: white;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}
.game-guide-footer {
  position: relative;
  padding: 24px 18px;
  text-align: center;
  line-height: 2;
  font: 16px/2 system-ui;
  background: #edf8fb;
  color: #153f53;
}
.game-guide-footer a {
  color: inherit;
  margin: 0 10px;
  text-underline-offset: 4px;
}
@media (max-width: 680px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .editorial {
    font-size: 16px;
    padding-top: 24px;
  }
  .site-nav {
    gap: 6px 18px;
    font-size: 14px;
  }
  .guide-tile {
    padding: 20px;
  }
}

.game-card[data-game="puffinfly"] .card-art img {
  object-fit: contain;
  padding: 32px;
}
