@font-face {
  font-family: Rubik;
  src: url('/fonts/rubik-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('/fonts/noto-kufi-arabic-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('/fonts/noto-kufi-arabic-black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cobalt: #1743eb;
  --paper: #fff9e7;
  --yellow: #ffe14d;
  --ink: #151515;
  --muted-ink: #514e44;
  --body-font: Rubik, 'Noto Kufi Arabic', sans-serif;
  --display-font: 'Noto Kufi Arabic', sans-serif;
}
* { box-sizing: border-box; }
html { scrollbar-color: var(--ink) var(--paper); }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--cobalt);
  color: var(--paper);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-underline-offset: 6px; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
.skip { position: absolute; inset-block-start: -120px; inset-inline-start: 24px; z-index: 3; }
.skip:focus { inset-block-start: 16px; padding: 12px 20px; background: var(--ink); color: var(--paper); }
.masthead {
  width: min(100% - 96px, 1280px);
  margin-inline: auto;
  padding-block: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: block; line-height: 0; }
.brand img { display: block; width: 140px; height: auto; }
.launch-status {
  margin: 0;
  padding: 8px 24px 10px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  font-size: 18px;
  font-weight: 900;
  font-family: var(--display-font);
  line-height: 1.6;
  transform: rotate(-4deg);
}
.hero { flex: 1; display: flex; flex-direction: column; }
.stage {
  flex: 1;
  width: min(100% - 96px, 1280px);
  margin-inline: auto;
  padding-block: 8px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}
.hero-copy { z-index: 1; padding-block: 32px; }
h1 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(56px, 7.1vw, 96px);
  font-weight: 900;
  line-height: 1.5;
  text-wrap: balance;
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 7px 0 var(--ink);
}
.description {
  margin: 24px 0 0;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 2.1;
  text-wrap: balance;
}
.art-figure { margin: 0; min-width: 0; }
.game-art {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  max-width: 690px;
  margin: 0;
  animation: deal-in 900ms cubic-bezier(.16, 1, .3, 1) both;
}
.king-card {
  position: absolute;
  top: 12%;
  left: 10%;
  width: 35%;
  height: auto;
  transform: rotate(-20deg);
  clip-path: inset(2.6% 3% 3.1% round 4.7% / 3.1%);
}
.game-foreground { position: relative; display: block; width: 100%; height: auto; }
.release {
  padding: 28px max(48px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border-block-start: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
.release-note { margin: 0; font-size: 18px; line-height: 2; }
.stores { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; direction: ltr; }
.store {
  --badge-height: 60px;
  display: block;
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: not-allowed;
  opacity: .46;
  filter: grayscale(1);
}
.store img { display: block; width: auto; height: var(--badge-height); }
.store-play img { height: calc(var(--badge-height) * 250 / 170); }
.footer {
  padding: 0 max(48px, calc((100vw - 1280px) / 2)) 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
  background: var(--paper);
  color: var(--muted-ink);
  font-size: 12px;
  line-height: 1.8;
}
.footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer .footer-icon { justify-content: center; min-width: 44px; }
.footer-icon svg { display: block; width: 22px; height: 22px; }
@keyframes deal-in {
  from { transform: translate(18px, 22px) rotate(-5deg) scale(.96); }
  to { transform: none; }
}
@media (min-width: 1600px) {
  .stage { padding-block: 32px 72px; }
}
@media (max-width: 900px) and (min-width: 701px) {
  .masthead, .stage { width: calc(100% - 64px); }
  .stage { gap: 16px; }
  h1 { font-size: 54px; }
  .description { font-size: 14px; }
  .release { justify-content: center; padding-inline: 32px; }
}
@media (max-width: 700px) {
  .masthead { width: calc(100% - 40px); padding-block: 16px 0; }
  .brand img { width: 104px; }
  .launch-status { padding: 5px 18px 7px; font-size: 14px; border-width: 2px; box-shadow: 0 4px 0 var(--ink); }
  .stage {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 8px 24px;
    text-align: center;
  }
  .hero-copy { padding-block: 8px 0; }
  h1 { font-size: clamp(42px, 10.7vw, 64px); line-height: 1.5; -webkit-text-stroke-width: 1px; text-shadow: 0 4px 0 var(--ink); }
  .description { margin-block-start: 16px; font-size: 14px; line-height: 2; }
  .art-figure { width: min(320px, 82%); margin-inline: auto; }
  .game-art { width: 100%; margin: 0; }
  .release { padding: 24px 20px; flex-direction: column; gap: 14px; }
  .release-note { font-size: 14px; text-align: center; }
  .store { --badge-height: 48px; }
  .footer { padding: 0 20px 16px; justify-content: center; text-align: center; }
  .footer nav { justify-content: center; gap: 8px 20px; }
}
@media (max-width: 379px) {
  .stores { gap: 8px; }
  .description br { display: none; }
  .art-figure { width: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  .game-art { animation: none; }
}
