:root {
  color-scheme: light;
  --ink: #142448;
  --muted: #50617f;
  --blue: #2454d9;
  --line: #dce4f3;
  --wash: #f3f6fd;
  --shell: min(1160px, 100% - 64px);
  font-family: system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #527af2; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; }
.shell { width: var(--shell); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; padding: .6rem 1rem; background: #fff; z-index: 2; }
.skip:not(:focus) { clip-path: inset(50%); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .site-nav, .brand, .languages, .footer-inner, .footer-links {
  display: flex;
  align-items: center;
}
.header-inner, .footer-inner { justify-content: space-between; gap: 20px; }
.header-inner { min-height: 76px; padding-block: 12px; }
.brand { gap: 8px; font-size: 1.1rem; font-weight: 850; letter-spacing: -.04em; text-decoration: none; }
.brand img { width: 42px; height: auto; }
.site-nav { gap: clamp(14px, 3vw, 32px); font-size: .87rem; font-weight: 700; }
.site-nav > a { text-decoration: none; }
.site-nav > a:hover, .footer-links a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .25em; }
.languages { gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 30px; white-space: nowrap; }
.languages > * { padding: 4px 9px; text-decoration: none; border-radius: 20px; }
.languages [aria-current] { background: #e8efff; color: #1d48bd; }
.languages a:hover { background: var(--wash); }

.eyebrow { font-size: .74rem; letter-spacing: .14em; font-weight: 800; color: var(--blue); text-transform: uppercase; }
.button {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  min-height: 49px;
  padding: 10px 19px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  font-size: .9rem;
}
.button:hover { background: #193fae; }

.studio-hero { background: linear-gradient(150deg, #fff 25%, #f1f5ff 100%); }
.studio-hero .shell, .game-hero .shell { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 90px); }
.studio-hero .shell { padding-block: clamp(44px, 6.4vw, 92px); }
.studio-hero h1 { margin-block: 17px 20px; font-size: clamp(2.8rem, 5.45vw, 5rem); }
.studio-hero h1 span { display: block; color: var(--blue); }
.lede { max-width: 36ch; font-size: clamp(1rem, 1.7vw, 1.16rem); color: var(--muted); }
.studio-hero .button, .game-hero .button { margin-top: 24px; }
.studio-art {
  min-width: 0;
  padding: clamp(24px, 4vw, 54px) 18px 18px;
  border: 1px solid #cfddff;
  border-radius: 24px;
  background: radial-gradient(circle, #b6caff 1px, transparent 1.3px) 0 0 / 20px 20px, #e8efff;
  text-align: center;
}
.studio-art img { width: min(100%, 450px); height: auto; margin: auto; }
.studio-art figcaption { display: inline-block; padding: 5px 12px; background: #e8efff; color: #274476; font-size: .73rem; font-weight: 800; letter-spacing: .14em; }
.brand-strip { padding: 13px 0; background: #e5edff; color: #24447b; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-align: center; }

.section { padding-block: clamp(52px, 7vw, 88px); }
.section h2 { margin-top: 9px; font-size: clamp(2rem, 4vw, 3.25rem); }
.section-intro { margin-top: 12px; color: var(--muted); }
.games-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.game-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; text-decoration: none; }
a.game-card { border-color: #9eb6f5; }
a.game-card:hover { border-color: var(--blue); box-shadow: 0 8px 25px #2454d91c; }
.card-art { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 42%; background: #e5edff; }
img.card-art { height: auto; }
.card-art.linkiz { overflow: hidden; }
.card-art.linkiz img { width: 100%; height: 100%; object-fit: cover; object-position: center 94%; transform: scale(1.25); transform-origin: center bottom; }
.card-body { padding: 17px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.badge { display: inline-block; border-radius: 5px; padding: 4px 7px; background: #eef2fa; color: #405474; font-size: .69rem; font-weight: 800; }
.badge.featured { background: #e5edff; color: #204bbf; }
.card-body h3 { font-size: 1.42rem; margin-block: 11px 7px; }
.card-body p { font-size: .9rem; color: var(--muted); }
.card-link { margin-top: auto; padding-top: 14px; color: var(--blue); font-size: .87rem; font-weight: 800; }
.live-art { display: grid; justify-items: center; align-content: center; gap: 12px; background: #152c58; color: #fff; }
.live-art strong { font-size: clamp(.9rem, 2vw, 1.25rem); letter-spacing: .09em; }
.live-art svg { display: block; width: 52%; height: auto; }

.studio-about { background: var(--wash); }
.studio-about .shell { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(18px, 5vw, 64px); }
.studio-about .shell > p { max-width: 47ch; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: #f8faff; padding: 27px 0; }
.site-footer p, .footer-links { font-size: .82rem; color: var(--muted); }
.footer-links { flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { text-underline-offset: .2em; }
.footer-brand { display: block; font-size: 1rem; letter-spacing: -.03em; }

.game-hero { background: radial-gradient(ellipse at 75% 60%, #194683, transparent 57%), #111f3d; color: #fff; }
.game-hero .shell { padding-block: clamp(34px, 5vw, 68px); }
.game-hero .eyebrow { color: #bdd0ff; margin-bottom: 10px; }
.breadcrumbs { display: inline-block; margin-bottom: 20px; color: #d4e0fa; font-size: .84rem; text-underline-offset: .2em; }
.game-hero h1 { font-size: clamp(3.2rem, 7vw, 6.3rem); }
.game-name-alt { margin-top: 2px; color: #b8ceff; font-size: 1.15rem; font-weight: 750; }
.game-hero .lede { margin-top: 15px; color: #e6edfb; }
.game-hero .button { background: #e7efff; color: #153369; }
.game-hero .button:hover { background: #c9dbff; }
.game-art { display: grid; place-items: center; padding: 20px 0; min-width: 0; position: relative; isolation: isolate; }
.game-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(92%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 34px, #9fbafa40 35px 36px, transparent 37px 48px);
}
.game-art img { width: min(61%, 235px); height: auto; border: 6px solid #0c162c; border-radius: 24px; box-shadow: 0 20px 50px #050b1d99; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; list-style: none; padding: 0; margin: 24px 0 0; }
.how-grid li { border: 1px solid var(--line); border-radius: 15px; padding: 20px; }
.step { display: inline-grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: #e7efff; color: #204bbf; font-size: .78rem; font-weight: 800; }
.how-grid h3 { margin-block: 12px 8px; font-size: 1.24rem; }
.how-grid p { color: var(--muted); font-size: .93rem; }
.screenshots { background: var(--wash); }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 35px); max-width: 590px; margin: 24px auto 0; }
.screenshot-grid img { width: 100%; height: auto; border-radius: 14px; border: 1px solid #bbcae6; background: #dbe7fb; }
.screenshot-grid figcaption { margin-top: 8px; color: var(--muted); font-size: .85rem; text-align: center; }

@media (max-width: 920px) {
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 670px) {
  :root { --shell: calc(100% - 32px); }
  .header-inner { min-height: 64px; gap: 8px; }
  .brand { gap: 3px; font-size: .95rem; }
  .brand img { width: 32px; }
  .site-nav { gap: 10px; font-size: .76rem; }
  .languages > * { padding-inline: 7px; }
  .studio-hero .shell, .game-hero .shell, .studio-about .shell { grid-template-columns: 1fr; }
  .studio-art img { width: min(75%, 300px); }
  .game-art { padding: 0 0 9px; }
  .game-art img { width: min(50%, 205px); border-width: 4px; border-radius: 18px; }
  .game-art::before { width: min(80%, 300px); }
  .how-grid { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 13px; }
}

@media (max-width: 380px) {
  .games-grid { gap: 10px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 1.15rem; }
  .site-nav { gap: 7px; }
}
