@font-face {
  font-family: Archivo;
  src: url('/assets/fonts/archivo.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: DM;
  src: url('/assets/fonts/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff8ed;
  --ink: #281039;
  --muted: #5c4c60;
  --blue: #3546ad;
  --lime: #dcf477;
  --line: #e3d7e1;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 DM, Arial, sans-serif;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

h1, h2, h3 {
  margin: 0;
  font-family: Archivo, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.045em;
}

.wrap { width: min(calc(100% - 64px), 1160px); margin-inline: auto; }
.skip {
  position: absolute;
  inset: 8px auto auto 8px;
  z-index: 1;
  padding: 12px 18px;
  background: var(--paper);
  transform: translateY(-150%);
}
.skip:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 25px/1 Archivo, Arial, sans-serif;
  letter-spacing: -.05em;
  text-decoration: none;
}
.brand img { flex: none; border-radius: 9px; }
.brand-accent { color: var(--blue); }

nav { display: flex; gap: clamp(12px, 3vw, 30px); }
nav a { padding-block: 12px; font-size: 14px; font-weight: 750; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  align-items: center;
  gap: clamp(22px, 5vw, 76px);
  padding-block: clamp(38px, 4.6vw, 64px);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1.35;
}
.hero h1 { max-width: 640px; font-size: clamp(48px, 7.3vw, 94px); }
.hero h1 span { display: block; color: var(--blue); }
.hero-description { max-width: 460px; margin: 20px 0 24px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero-action, .store-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}
.hero-action { background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.hero-action:hover, .store-link:hover { text-decoration: underline; }
.hero-action span, .store-link span { flex: none; font-size: 19px; }

.lineup {
  padding: clamp(17px, 3vw, 34px);
  border: 1px solid #2f2b78;
  border-radius: 24px;
  background: linear-gradient(145deg, #424eba, #2d2a78);
  box-shadow: 0 14px 30px #22164a21;
  color: #fff;
}
.lineup .eyebrow { color: #e6e7ff; }
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.lineup-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 83px;
  padding: 10px;
  border: 1px solid #ffffff55;
  border-radius: 12px;
  background: #ffffff16;
  color: #fff;
  font-size: clamp(13px, 1.45vw, 16px);
  font-weight: 800;
  line-height: 1.18;
  text-decoration: none;
}
.lineup-grid a:hover { background: #ffffff2b; text-decoration: underline; }
.lineup-grid a:focus-visible { outline-color: var(--lime); }
.lineup-grid img { width: clamp(36px, 4.2vw, 56px); height: auto; flex: none; border-radius: 12px; }

.catalog, .upcoming { padding-block: 30px 44px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 22px;
}
.section-heading h2 { font-size: clamp(32px, 5.1vw, 58px); }
.section-heading > p { margin: 0; color: var(--muted); }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game-card {
  --card: #fffdf7;
  --accent: #3546ad;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 4px 0 #2c133b0d;
}
.twenty { --card: #f3f4ff; --accent: #3546ad; }
.sudoku { --card: #fff1f2; --accent: #852943; }
.ludo { --card: #fff3d7; --accent: #694021; }
.split-second { --card: #eef7fb; --accent: #183c50; }
.act-up { --card: #fff1e8; --accent: #8b381f; }
.sea-battle { --card: #eff5ff; --accent: #234c80; }
.paint-hide { --card: #fff4e5; --accent: #304ca1; }
.wink { --card: #edf0ff; --accent: #303f9a; }

.card-art { width: 100%; height: auto; background: var(--card); }
.ludo-art {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 8px;
  aspect-ratio: 1600 / 686;
  padding: 0 6%;
  background: radial-gradient(ellipse at 70% 48%, #fff6d5, #f4ce7c);
  color: #552c24;
}
.ludo-art span { font: clamp(26px, 5vw, 64px)/.98 Archivo, Arial, sans-serif; letter-spacing: -.055em; }
.ludo-art img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }

.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(18px, 3vw, 30px); }
.card-body .eyebrow { margin-bottom: 9px; color: var(--accent); }
.card-body h3 { font-size: clamp(25px, 3.7vw, 38px); }
.card-body > p:not(.eyebrow) { max-width: 48ch; margin: 12px 0 18px; color: var(--muted); }
.store-link { margin-top: auto; border-color: var(--accent); background: var(--accent); color: #fff; }
.store-link:focus-visible { outline-offset: 4px; }

.upcoming { margin-top: 16px; border-top: 1px solid var(--line); }
.upcoming .card-body > p:not(.eyebrow) { margin-bottom: 0; }
.text-link { font-size: 15px; font-weight: 800; }

.detail-page { max-width: 960px; padding-block: 28px 54px; }
.detail-page > .text-link { display: inline-block; margin-bottom: 20px; }
.detail-page h1 { font-size: clamp(38px, 7vw, 72px); }

.site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 24px;
  padding-block: 26px 34px;
  border-top: 1px solid var(--line);
}
.site-footer .brand { margin-right: auto; font-size: 21px; }
.site-footer small { color: var(--muted); }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 100%; }
  .hero h1 span { display: inline; }
  .lineup-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lineup-grid a { justify-content: center; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 67px; gap: 8px; }
  .site-header .brand { gap: 6px; font-size: 19px; }
  .site-header .brand img { width: 32px; height: 32px; }
  nav { gap: 10px; }
  nav a { font-size: 13px; }
  .hero { padding-block: 34px 24px; }
  .hero h1 { font-size: clamp(43px, 11vw, 66px); }
  .hero h1 span { display: block; }
  .lineup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lineup-grid a { justify-content: flex-start; min-height: 58px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 17px; }
  .catalog, .upcoming { padding-block: 26px 32px; }
  .section-heading { margin-bottom: 17px; }
  .card-body { padding: 18px; }
  .store-link { align-self: stretch; }
}

/* Website banners use real game screen details at their original proportions. */
.gameplay-art {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 5%;
  aspect-ratio: 1600 / 686;
  min-width: 0;
  padding: 4.2% 5.4%;
  overflow: hidden;
}

.twenty-gameplay {
  --art-color: #fff9ef;
  --art-accent: #def476;
  background: radial-gradient(ellipse at 90% 12%, #6875db 0, #404db4 39%, #312a71 100%);
}

.sudoku-gameplay {
  --art-color: #382331;
  --art-accent: #7a2c48;
  background: radial-gradient(ellipse at 86% 35%, #dceac8 0, #fbf1da 41%, #f6d4db 100%);
}

.split-gameplay {
  --art-color: #fff9eb;
  --art-accent: #e5f889;
  background: radial-gradient(ellipse at 95% 3%, #684044 0, #322332 42%, #191b24 100%);
}

.gameplay-copy { color: var(--art-color); min-width: 0; }
.gameplay-brand {
  display: flex;
  align-items: center;
  gap: 2cqw;
  font-size: clamp(8px, 2.8cqw, 19px);
  font-weight: 850;
  letter-spacing: .07em;
  line-height: 1.1;
}
.gameplay-brand img { width: clamp(19px, 7cqw, 51px); height: auto; flex: none; border-radius: 21%; }

.gameplay-copy p {
  margin: 3cqw 0 0;
  font: clamp(19px, 8cqw, 70px)/.98 Archivo, Arial, sans-serif;
  letter-spacing: -.055em;
}
.gameplay-copy p span { color: var(--art-accent); }

.gameplay-screen {
  display: grid;
  min-width: 0;
  min-height: 0;
  height: 100%;
  place-items: center;
}
.gameplay-screen img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.twenty-gameplay .gameplay-screen {
  grid-template-rows: minmax(0, .39fr) minmax(0, .61fr);
  gap: 4%;
}
.sudoku-gameplay .gameplay-screen,
.split-gameplay .gameplay-screen {
  grid-template-rows: minmax(0, 1fr);
  filter: drop-shadow(0 4px 8px #14112238);
}

.sudoku-gameplay .gameplay-copy p,
.split-gameplay .gameplay-copy p { font-size: clamp(17px, 6.6cqw, 61px); }
