@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/fredoka-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/fredoka-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/nunito-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/nunito-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Shared look for all of Janette's sites. Each site sets its own colours in
   site.toml ([colours]); build.py writes them into :root before this file. */

:root {
  --ink: #2b2140;
  --ink-soft: #5d5470;
  --paper: #fffaf2;
  --card: #ffffff;
  --line: #eadff5;
  --radius: 22px;
  --shadow: 0 6px 0 rgba(43, 33, 64, .08), 0 14px 30px rgba(43, 33, 64, .10);
  --font-head: "Fredoka", "Nunito", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4eefc;
    --ink-soft: #c7bdd8;
    --paper: #1b1528;
    --card: #271f38;
    --line: #3a3050;
    --shadow: 0 6px 0 rgba(0, 0, 0, .25), 0 14px 30px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--c1) 14%, transparent) 0 120px, transparent 121px),
    radial-gradient(circle at 92% 30%, color-mix(in srgb, var(--c3) 12%, transparent) 0 160px, transparent 161px),
    radial-gradient(circle at 15% 78%, color-mix(in srgb, var(--c2) 12%, transparent) 0 140px, transparent 141px);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--c1); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 600; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-top: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
ul { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: .25em 0; }
li::marker { color: var(--c1); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
main { overflow-wrap: anywhere; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 9; background: var(--card); padding: 8px 14px; border-radius: 10px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 3px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 600 1.3rem/1.1 var(--font-head); }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font: 600 1rem var(--font-head); padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current] { background: var(--c1); color: #fff; }
.lang { display: flex; gap: 4px; }
.lang a { font: 600 .85rem var(--font-head); text-decoration: none; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--line); color: var(--ink); }
.lang a[aria-current] { border-color: var(--c2); background: var(--c2); color: #fff; }

/* Hero */
.hero { padding: 56px 0 30px; }
.hero-box { background: linear-gradient(120deg, var(--c1), var(--c2) 55%, var(--c3)); color: #fff; border-radius: 36px; padding: clamp(28px, 6vw, 64px); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero-box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.hero-box::before { content: ""; position: absolute; left: 40%; bottom: -90px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .10); }
.hero-box > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.hero p { font-size: 1.2rem; max-width: 42em; }
.hero-box a:not(.btn) { color: #fff; font-weight: 700; text-decoration-thickness: 2px; }
.hero-box a:not(.btn):hover { color: var(--c3); }
.hero-box .chips a { color: var(--ink); font-weight: 600; text-decoration: none; }
.hero-box .chips a[aria-current] { color: var(--paper); }
.hero .logo-big { float: right; width: clamp(110px, 18vw, 190px); margin: 0 0 10px 20px; border-radius: 50%; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }

/* Chips and buttons */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips a, .chip { display: inline-block; text-decoration: none; font: 600 .95rem var(--font-head); padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--ink); }
.chips a[aria-current] { background: var(--ink); color: var(--paper); }
section > .chips.pages a { background: var(--card); box-shadow: var(--shadow); }
.chip { background: var(--line); font-size: .85rem; padding: 4px 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 1rem var(--font-head); padding: 12px 20px; border-radius: 16px; background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 rgba(0, 0, 0, .2); transition: transform .12s; }
.btn:hover { transform: translateY(-2px); color: var(--paper); }
.btn small { display: block; font: 400 .72rem var(--font-body); opacity: .8; }
.btn.google_play { background: #01875f; color: #fff; }
.btn.amazon { background: #ff9900; color: #221; }
.btn.itch { background: #fa5c5c; color: #fff; }
.btn.steam { background: #1b2838; color: #fff; }
.btn.huawei { background: #cf0a2c; color: #fff; }
.btn.web { background: var(--c2); color: #fff; }
.btn.play { background: linear-gradient(135deg, var(--c2), var(--c1)); color: #fff; font-size: 1.3rem; padding: 16px 28px; }
.btn.play:hover { color: #fff; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }

/* Sections and cards */
section { margin: 44px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0 0 14px; }
.section-head h2::before { content: ""; display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--accent, var(--c1)); margin-right: 10px; vertical-align: middle; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform .15s, box-shadow .15s; border-top: 6px solid var(--accent, var(--c1)); }
.card:hover { transform: translateY(-4px) rotate(-.6deg); color: var(--ink); }
.card img { width: 150px; height: 150px; object-fit: contain; margin-bottom: 10px; }
.card h3 { margin: 4px 0; font-size: 1.15rem; }
.card p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.card .chips { justify-content: center; margin-top: 10px; gap: 6px; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 40px); }
.panel > :first-child { margin-top: 0; }

/* Game page */
.game-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.game-hero .banner { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-height: 440px; object-fit: contain; background: var(--card); }
.game-hero .tagline { font: 600 1.25rem var(--font-head); color: var(--c1); margin: 0 0 8px; }
.crumbs { font-size: .9rem; margin: 22px 0 8px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; }
.shots button { flex: 0 0 auto; scroll-snap-align: start; border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.shots img { display: block; height: 220px; width: auto; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #000; box-shadow: var(--shadow); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video span { position: absolute; inset: 0; display: grid; place-items: center; }
.video span::before { content: ""; width: 78px; height: 78px; border-radius: 50%; background: var(--c1); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.video span::after { content: ""; position: absolute; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #fff; margin-left: 6px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.body h2:first-child, .body h3:first-child { margin-top: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 30px; align-items: start; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(15, 10, 25, .85); }
dialog.lightbox img { max-width: 95vw; max-height: 88vh; border-radius: 14px; display: block; }
dialog.lightbox form { text-align: center; margin-top: 8px; }
dialog.lightbox button { font: 600 1rem var(--font-head); border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; }

/* Gallery (cards, cartoons) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 230px), 100%), 1fr)); gap: 22px; }
.gallery figure { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.gallery figure > a, .gallery figure > button { display: block; border: 0; padding: 0; background: #fff; cursor: zoom-in; }
.gallery figure img { display: block; width: 100%; aspect-ratio: var(--shape, 1); object-fit: contain; }
.gallery figcaption { padding: 12px 14px; font-size: .92rem; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.share { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.share a, .share button { font: 600 .82rem var(--font-head); text-decoration: none; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; background: var(--line); color: var(--ink); }
.share .wa { background: #25d366; color: #063; }

/* Contact form */
.contact-form { display: grid; gap: 14px; max-width: 640px; }
.contact-form .field { display: grid; gap: 6px; margin: 0; }
.contact-form .field br { display: none; }
.contact-form label { font: 600 1rem var(--font-head); }
.contact-form input, .contact-form textarea { width: 100%; box-sizing: border-box; font: 1rem var(--font-body); color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--c1) 45%, transparent); border-color: var(--c1); }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; background: var(--c1); color: #fff; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.form-status { font-weight: 700; margin: 0; min-height: 1.4em; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-foot { margin-top: 70px; background: var(--ink); color: var(--paper); padding: 40px 0 30px; border-top: 8px solid var(--c1); }
.site-foot a { color: var(--paper); }
.site-foot .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.site-foot h2 { font-size: 1.1rem; margin: 0 0 10px; color: var(--c3); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot .small { grid-column: 1 / -1; font-size: .85rem; opacity: .75; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 16px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .game-hero, .cols { grid-template-columns: minmax(0, 1fr); }
  .site-head { position: static; }
  .nav { margin-left: 0; }
  .hero .logo-big { float: none; display: block; margin: 0 0 16px; }
  .shots img { height: 170px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .card img { width: 110px; height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
