/* Wove Games — one stylesheet, mobile first, no build step.
   "Jelly" look: candy colours (lime, pink, blue, sun, grape) on cream / deep ink,
   glossy surfaces, soft blobs, gentle CSS-only motion (off under reduced motion). */
:root {
  --ink: #14121F;
  --ink-soft: #4A4663;
  --bg: #FFF8EC;
  --bg-2: #FFF1F8;
  --surface: #FFFFFF;
  --surface-top: #FFFFFF;
  --surface-2: #FFF1F8;
  --line: #ECE2EA;
  --lime: #A6F000;
  --lime-soft: #D7FF7A;
  --lime-deep: #4F7A00;
  --lime-shadow: #6FA800;
  --pink: #FF3D9A;
  --pink-soft: #FF9ACB;
  --pink-deep: #C3127A;
  --blue: #2F80FF;
  --blue-soft: #8DBBFF;
  --blue-deep: #1B5FD6;
  --sun: #FFD23F;
  --sun-soft: #FFE78A;
  --sun-deep: #E0AE00;
  --grape: #7B3FE4;
  --grape-soft: #C7A8FF;
  --grape-deep: #5B21B6;
  --link: #5B21B6;
  --link-hover: #3E1489;
  --focus: #C3127A;
  --radius: 24px;
  --shadow: 0 12px 32px rgba(123, 63, 228, .10), 0 2px 6px rgba(20, 18, 31, .06);
  --gloss: inset 0 1.5px 0 rgba(255, 255, 255, .9);
  --header-bg: rgba(255, 248, 236, .86);
  --footer-bg: #14121F;
  --blob-a: rgba(166, 240, 0, .34);
  --blob-b: rgba(255, 61, 154, .22);
  --blob-c: rgba(47, 128, 255, .22);
  --blob-d: rgba(255, 210, 63, .32);
  --max: 1100px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F7F3FF;
    --ink-soft: #C9C3DD;
    --bg: #14121F;
    --bg-2: #1A1628;
    --surface: #1F1B30;
    --surface-top: #2A2540;
    --surface-2: #231B35;
    --line: #35304C;
    --lime-deep: #C8FF4D;
    --pink-deep: #FF7DC0;
    --blue-deep: #8DBBFF;
    --grape-deep: #C7A8FF;
    --link: #C8FF4D;
    --link-hover: #E4FF9A;
    --focus: #FFD23F;
    --shadow: 0 14px 36px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
    --gloss: inset 0 1.5px 0 rgba(255, 255, 255, .16);
    --header-bg: rgba(20, 18, 31, .86);
    --footer-bg: #0E0C17;
    --blob-a: rgba(166, 240, 0, .20);
    --blob-b: rgba(255, 61, 154, .20);
    --blob-c: rgba(47, 128, 255, .22);
    --blob-d: rgba(255, 210, 63, .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #F7F3FF;
  --ink-soft: #C9C3DD;
  --bg: #14121F;
  --bg-2: #1A1628;
  --surface: #1F1B30;
  --surface-top: #2A2540;
  --surface-2: #231B35;
  --line: #35304C;
  --lime-deep: #C8FF4D;
  --pink-deep: #FF7DC0;
  --blue-deep: #8DBBFF;
  --grape-deep: #C7A8FF;
  --link: #C8FF4D;
  --link-hover: #E4FF9A;
  --focus: #FFD23F;
  --shadow: 0 14px 36px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
  --gloss: inset 0 1.5px 0 rgba(255, 255, 255, .16);
  --header-bg: rgba(20, 18, 31, .86);
  --footer-bg: #0E0C17;
  --blob-a: rgba(166, 240, 0, .20);
  --blob-b: rgba(255, 61, 154, .20);
  --blob-c: rgba(47, 128, 255, .22);
  --blob-d: rgba(255, 210, 63, .14);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .15em; text-decoration-thickness: 2px; }
a:hover { color: var(--link-hover); }
h1, h2, h3 { font-family: "Fredoka", "Nunito", system-ui, sans-serif; line-height: 1.1; margin: 0 0 .45em; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 6.8vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: .6em 1em; border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Gentle motion (CSS only) */
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-14px); } }
@keyframes drift { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(14px, -18px) rotate(6deg); } }
@keyframes wobble { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes twinkle { from { opacity: .35; transform: scale(.8); } to { opacity: 1; transform: scale(1.1); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--lime), var(--sun), var(--pink), var(--blue), var(--grape)); }
.site-header .wrap { display: flex; align-items: center; gap: 10px 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 3px 10px rgba(20, 18, 31, .25); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { display: inline-block; padding: .4em .8em; border-radius: 999px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: .95rem; transition: background .15s ease; }
.nav a:hover { background: var(--lime-soft); color: #14121F; }
.nav .lang { border: 2px solid var(--line); margin-left: 4px; }
@media (max-width: 479px) { .nav ul { display: none; } }

/* Buttons — jelly */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: .7em 1.5em; border-radius: 999px; font: inherit; font-weight: 800; font-size: 1.05rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(180deg, #D7FF7A 0%, #A6F000 55%, #8FD600 100%);
  color: #14121F;
  box-shadow: 0 5px 0 var(--lime-shadow), inset 0 2px 0 rgba(255, 255, 255, .6), 0 10px 22px rgba(111, 168, 0, .3);
}
.btn-primary:hover { color: #14121F; box-shadow: 0 7px 0 var(--lime-shadow), inset 0 2px 0 rgba(255, 255, 255, .6), 0 14px 26px rgba(111, 168, 0, .35); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn-outline:hover { color: var(--ink); background: var(--surface-top); box-shadow: 0 6px 0 var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 88px; background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg) 100%); }
.hero::before {
  content: ""; position: absolute; inset: -10% -10% 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 34% at 12% 18%, var(--blob-a), transparent 70%),
    radial-gradient(30% 30% at 88% 12%, var(--blob-b), transparent 70%),
    radial-gradient(34% 32% at 78% 78%, var(--blob-c), transparent 70%),
    radial-gradient(26% 26% at 30% 92%, var(--blob-d), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 44px; z-index: 1; pointer-events: none;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 44' preserveAspectRatio='none'%3E%3Cpath d='M0 26C150 46 300 2 450 14S750 46 900 30s225-20 300-6V44H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 44' preserveAspectRatio='none'%3E%3Cpath d='M0 26C150 46 300 2 450 14S750 46 900 30s225-20 300-6V44H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero .wrap { position: relative; z-index: 2; display: grid; gap: 28px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero-logo { width: min(100%, 400px); height: auto; margin-bottom: 22px; color: var(--ink); }
.hero p.lead { font-size: 1.2rem; max-width: 36em; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pills li { font-size: .9rem; font-weight: 800; color: #14121F; padding: .32em .95em; border-radius: 999px; background: linear-gradient(180deg, #FFE78A, #FFD23F); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .7), 0 3px 0 rgba(20, 18, 31, .12); }
.pills li:nth-child(2) { background: linear-gradient(180deg, #D7FF7A, #A6F000); }
.pills li:nth-child(3) { background: linear-gradient(180deg, #FFC2E1, #FF9ACB); }
.pills li::before { content: "✓ "; }
.hero-art { justify-self: center; width: 100%; max-width: 440px; height: auto; overflow: visible; }
.hero-art .bob, .hero-art .drift, .hero-art .wobble, .hero-art .twinkle { transform-box: fill-box; transform-origin: center; }
.hero-art .bob { animation: bob 5s ease-in-out infinite alternate; }
.hero-art .drift { animation: drift 9s ease-in-out infinite alternate; }
.hero-art .drift.d2 { animation-duration: 11s; animation-delay: -4s; }
.hero-art .drift.d3 { animation-duration: 13s; animation-delay: -7s; }
.hero-art .wobble { animation: wobble 4s ease-in-out infinite alternate; }
.hero-art .twinkle { animation: twinkle 2.4s ease-in-out infinite alternate; }
.hero-art .twinkle.t2 { animation-delay: -1.2s; }
@media (min-width: 900px) { .hero { padding: 80px 0 110px; } .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 48px; } }

/* Sections */
.section { padding: 64px 0; }
.section-tint { position: relative; background: linear-gradient(180deg, var(--surface-2), var(--bg-2)); }
.section-tint::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(26% 40% at 6% 30%, var(--blob-c), transparent 70%),
    radial-gradient(30% 40% at 96% 80%, var(--blob-a), transparent 70%);
}
.section-tint > .wrap { position: relative; }
.section-candy { position: relative; background: var(--bg); }
.section-candy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 60% at 15% 50%, var(--blob-b), transparent 70%),
    radial-gradient(40% 60% at 85% 50%, var(--blob-c), transparent 70%),
    radial-gradient(30% 50% at 50% 100%, var(--blob-d), transparent 70%);
}
.section-candy > .wrap { position: relative; }
.section-head { max-width: 46em; margin-bottom: 30px; }
.section-head p { font-size: 1.12rem; color: var(--ink-soft); }
.eyebrow { font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--pink-deep); margin-bottom: .5em; }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { position: relative; background: linear-gradient(180deg, var(--surface-top), var(--surface)); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow), var(--gloss); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); }
.card p:last-child { margin-bottom: 0; }

/* Game cards */
.game { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.game img, .game svg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 5px solid var(--line); }
.game.pink img { border-bottom-color: var(--pink); }
.game.blue img { border-bottom-color: var(--blue); }
.game.lime img { border-bottom-color: var(--lime); }
.game-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.game h3 { font-size: 1.5rem; margin-bottom: .25em; }
.game .tag { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: #14121F; padding: .3em .85em; border-radius: 999px; margin-bottom: 12px; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .65); }
.game.pink .tag { background: linear-gradient(180deg, #FFC2E1, #FF9ACB); }
.game.blue .tag { background: linear-gradient(180deg, #BFD8FF, #8DBBFF); }
.game.lime .tag { background: linear-gradient(180deg, #D7FF7A, #A6F000); }
.game .status { margin-top: auto; padding-top: 14px; font-size: .95rem; color: var(--ink-soft); }
.game .status strong { color: var(--ink); }
.game .cta { margin-top: 14px; }
.game .cta a { font-weight: 800; }
.game .cta a::after { content: " ↗"; }

/* Values */
.value { border-top: 7px solid var(--lime); }
.value:nth-child(2) { border-top-color: var(--pink); }
.value:nth-child(3) { border-top-color: var(--sun); }
.value:nth-child(4) { border-top-color: var(--blue); }
.icon-bubble { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 14px; color: #14121F; background: linear-gradient(180deg, #D7FF7A, #A6F000); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .65), 0 4px 0 rgba(20, 18, 31, .12); }
.value:nth-child(2) .icon-bubble { background: linear-gradient(180deg, #FFC2E1, #FF9ACB); }
.value:nth-child(3) .icon-bubble { background: linear-gradient(180deg, #FFE78A, #FFD23F); }
.value:nth-child(4) .icon-bubble { background: linear-gradient(180deg, #BFD8FF, #8DBBFF); }
.icon-bubble svg { width: 30px; height: 30px; }

/* About */
.about { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 1.2fr .8fr; gap: 48px; } }
.about-mark { justify-self: center; width: min(100%, 300px); border-radius: 22%; box-shadow: 0 24px 50px rgba(123, 63, 228, .25), 0 6px 14px rgba(20, 18, 31, .2); }
.weave-note { background: linear-gradient(180deg, var(--surface-top), var(--surface)); border-left: 6px solid var(--pink); padding: 14px 18px; border-radius: 16px; font-style: italic; color: var(--ink-soft); box-shadow: var(--gloss); }

/* Contact */
.contact { text-align: center; }
.contact .links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.contact .placeholder { display: inline-block; border: 2px dashed var(--line); border-radius: 12px; padding: .4em 1em; color: var(--ink-soft); font-size: .95rem; margin-top: 18px; background: var(--surface); }

/* Footer */
.site-footer { background: var(--footer-bg); color: #D9D3EA; padding: 44px 0 28px; font-size: .97rem; border-top: 6px solid; border-image: linear-gradient(90deg, var(--lime), var(--sun), var(--pink), var(--blue), var(--grape)) 1; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--lime); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.05rem; color: #fff; margin-bottom: .4em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35em; }
.footer-logo { width: 200px; height: auto; color: #FFF8EC; margin-bottom: 12px; }
.copyright { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); color: #B8B1CC; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound .big { font-family: "Fredoka", sans-serif; font-size: clamp(4rem, 18vw, 8rem); font-weight: 700; line-height: 1; background: linear-gradient(90deg, var(--lime), var(--pink), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
