:root { color-scheme: dark; --ink: #f8f4ee; --muted: #b6adc7; --orange: #f97316; --lilac: #c4b5fd; --bg: #130d22; --line: #ffffff18; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 'DM Sans', sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lilac); outline-offset: 6px; }
::selection { background: var(--orange); color: #130d22; }
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 30; padding: 10px 20px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 10px; }
.world-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); }
.header-inner { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
/* Official lockup (A · Étoile Z): "zigo" in Nunito ExtraBold, "world" in Nunito italic, gold like the étincelle. */
.wordmark { display: flex; align-items: center; gap: 12px; font-family: 'Nunito', sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.wordmark em { margin-left: .06em; font-style: italic; font-weight: 400; letter-spacing: 0; color: #ffc93c; }
/* Official Zigo World mark (A · Étoile Z): same paths as assets/favicon.svg. */
.brand-mark { display: block; flex-shrink: 0; width: 33px; height: 30px; }
.world-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; }
.world-nav a { transition: color .2s; }
.world-nav a:hover { color: var(--lilac); }
.nav-contact { border: 1px solid #ffffff40; border-radius: 99px; padding: 10px 20px; }
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before { content: ''; position: absolute; z-index: -1; width: 900px; height: 800px; right: -120px; top: -100px; background: radial-gradient(ellipse, #6235a32b, transparent 65%); }
.hero-inner { min-height: 675px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 35px; padding-block: 80px 65px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--lilac); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 16px #f9731666; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }
h1 { font-size: clamp(54px, 6.4vw, 90px); line-height: 1.04; letter-spacing: -.065em; font-weight: 500; margin: 27px 0; }
h1 span { color: var(--lilac); }
.hero-description { max-width: 400px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 26px; padding: 15px 23px; background: var(--orange); color: #251302; border-radius: 10px; font-size: 13px; font-weight: 700; transition: transform .25s, background .25s; }
.button:hover { transform: translateY(-3px); background: #ff9346; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; }
.text-link:hover { color: var(--lilac); }
.hero-footnote { margin-top: 26px; font-size: 11px; color: #b6adc7; letter-spacing: .03em; }
.playground { position: relative; width: 100%; aspect-ratio: 1; max-width: 540px; justify-self: end; }
.orbit { position: absolute; border: 1px solid #c4b5fd18; border-radius: 50%; inset: 5%; }
.orbit.two { inset: 17%; border-style: dashed; transform: rotate(20deg); }
.orbit.one::before { content: ''; position: absolute; top: 12%; left: 14%; width: 9px; height: 9px; border-radius: 50%; background: var(--lilac); }
.hero-quiz { position: absolute; top: 13%; left: 5%; width: 57%; aspect-ratio: 1; border: 1px solid #a47afc6b; border-radius: 28px; padding: 24px; background: linear-gradient(145deg, #493279, #251a48); box-shadow: 0 30px 80px #0004; transform: rotate(-10deg); animation: quiz-float 7s ease-in-out infinite; }
.mini-label { display: flex; justify-content: space-between; font: 600 10px 'Space Grotesk', sans-serif; letter-spacing: .12em; }
.puzzle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 19px; }
.puzzle-grid span { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #ffffff18; border-radius: 10px; background: #ffffff08; font: 500 28px 'Space Grotesk', sans-serif; }
.puzzle-grid .selected { background: var(--orange); border-color: var(--orange); color: #231308; box-shadow: 0 5px 20px #f9731633; }
.puzzle-grid .light { background: var(--lilac); color: #362352; }
.hero-cards { position: absolute; width: 55%; height: 58%; top: 38%; right: 2%; animation: cards-float 8s ease-in-out infinite; }
.playing-card { position: absolute; width: 57%; height: 82%; border-radius: 14px; background: #fbf5e9; color: #d34c30; padding: 15px; box-shadow: 0 20px 50px #0005; border: 1px solid #fff9; font: 600 26px/1 'Space Grotesk', sans-serif; }
.playing-card small { display: block; font: inherit; margin-top: 6px; }
.playing-card .card-suit { position: absolute; inset: 0; display: grid; place-items: center; font: 64px Georgia, serif; }
.playing-card.back { background: #c4b5fd; color: #4e3478; transform: rotate(-13deg); top: -6%; left: 4%; }
.playing-card.front { transform: rotate(14deg); right: 5%; top: 4%; }
.playing-card .corner-bottom { position: absolute; right: 15px; bottom: 15px; transform: rotate(180deg); }
.floating-tag { position: absolute; display: flex; align-items: center; gap: 9px; background: #221833; border: 1px solid #ffffff22; border-radius: 99px; padding: 10px 15px; color: var(--ink); font-size: 11px; box-shadow: 0 8px 30px #0003; }
.tag-quiz { top: 6%; right: 11%; animation: label-float 6s ease-in-out infinite; }
.tag-scala { bottom: 1%; left: 13%; animation: label-float 6s 1s ease-in-out infinite; }
.tag-quiz i { color: var(--orange); font-style: normal; }
.tag-scala i { color: var(--lilac); font-style: normal; }
.spark { position: absolute; color: var(--orange); top: 29%; right: 5%; font-size: 40px; line-height: 1; }
.spark.small { color: var(--lilac); top: auto; bottom: 19%; left: 4%; font-size: 25px; }
.section-kicker { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-block: 22px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.section-kicker span:first-child { color: var(--ink); }
.games-section { padding: 65px 0 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 35px; }
h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.12; letter-spacing: -.05em; font-weight: 500; }
.section-heading h2 { margin-top: 14px; }
.section-heading > p { color: var(--muted); max-width: 275px; font-size: 14px; }
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.game-card { overflow: hidden; border: 1px solid #ffffff1c; border-radius: 22px; transition: transform .35s, border-color .35s; background: #1c142d; }
.game-card:hover { transform: translateY(-7px); border-color: #c4b5fd88; }
.game-art { height: 300px; position: relative; overflow: hidden; display: grid; place-items: center; }
.quiz-art { background: radial-gradient(ellipse at 50% 100%, #0e749066, transparent 70%), #2e1b59; }
.quiz-art::before { content: ''; position: absolute; inset: 25px; border: 1px solid #c4b5fd22; border-radius: 50%; transform: rotate(-20deg) scaleX(1.45); }
.art-number { position: absolute; top: 22px; left: 24px; font: 12px 'Space Grotesk', sans-serif; color: #ffffff88; }
.art-label { position: absolute; top: 22px; right: 24px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #ffffffb3; }
.quiz-mosaic { display: flex; align-items: center; gap: 12px; transform: rotate(-7deg); }
.mosaic-column { display: grid; gap: 12px; }
.mosaic-column:first-child { transform: translateY(16px); }
.mosaic-column:last-child { transform: translateY(-16px); }
.mosaic-tile { width: 85px; height: 85px; display: grid; place-items: center; border-radius: 18px; font: 34px 'Space Grotesk', sans-serif; box-shadow: 0 10px 25px #0002; border: 1px solid #ffffff25; }
.tile-letter { background: #f97316; color: #2f1606; }
.tile-chess { background: #c4b5fd; color: #2e1b59; }
.tile-grid { background: #0e7490; color: #fff; }
.tile-question { background: #7953bb; }
.tile-logo { background: #211a3b; overflow: hidden; width: 110px; height: 110px; border-radius: 24px; }
.tile-logo img { width: 90px; height: 90px; object-fit: contain; }
.scala-art { background: #e6dcf4; }
.scala-art .art-label, .scala-art .art-number { color: #56416b; }
.scala-art::before { content: ''; position: absolute; width: 240px; height: 240px; border: 1px solid #b39ac555; border-radius: 50%; }
.scala-hand { display: flex; justify-content: center; width: 100%; transform: translateY(18px); }
.scala-hand span { display: flex; flex-direction: column; align-items: flex-start; width: 81px; height: 125px; padding: 12px; border: 1px solid #e7dfd5; border-radius: 10px; background: #fffcf5; color: #d34c30; font: 600 21px/1 'Space Grotesk', sans-serif; box-shadow: 0 12px 20px #46314a22; transform: rotate(-16deg) translateY(12px); }
.scala-hand span + span { margin-left: -8px; }
.scala-hand span:nth-child(2) { transform: rotate(-5deg); }
.scala-hand span:nth-child(3) { transform: rotate(5deg); }
.scala-hand span:nth-child(4) { transform: rotate(16deg) translateY(12px); }
.scala-hand small { align-self: center; margin-top: 20px; font-size: 28px; }
.city-art { background: linear-gradient(180deg, #30b6a7, #8fd16f); }
.city-art .art-label, .city-art .art-number { color: #1f3b2c; }
.city-sun { position: absolute; width: 210px; height: 210px; top: 48px; border-radius: 50%; background: #fff0c2; box-shadow: 0 0 0 10px #ffd65c; }
.city-board { position: relative; width: min(88%, 330px); height: auto; transform: translateY(26px); }
.game-card:hover .city-board { transform: translateY(18px) scale(1.05); }
.game-card:hover .quiz-mosaic { transform: rotate(0) scale(1.05); }
.gems-art { background: repeating-conic-gradient(from 0deg at 50% 58%, #ffffff10 0deg 9deg, transparent 9deg 22deg), radial-gradient(circle at 50% 58%, #5a36d8, #2a1470 70%); }
.gem-spin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; margin-top: 30px; border: 4px solid #ffb800; border-radius: 22px; box-shadow: 0 0 0 3px #12063a, inset 0 0 0 3px #12063a, 0 0 28px #ffb80066; background: #1d0e55cc; transform: rotate(-8deg); }
.gem-spin img { width: 72px; height: 72px; padding: 6px; border-radius: 14px; background: #ffffff12; }
.game-card:hover .gem-spin { transform: rotate(82deg) scale(1.05); }
.game-card:hover .gem-spin img { transform: rotate(-90deg); }
.gem-spin img { transition: transform .6s; }
.quiz-mosaic, .scala-hand, .city-board, .gem-spin { transition: transform .6s; }
/* Kareys: stone tiles from the game (DESIGN.md "Zen stones"); 3 + 7 is a found zone, and 4 + 6 joins it on hover (target 10). */
.kareys-art { background: radial-gradient(circle at 50% 55%, #f6f2ec, #ece7df 70%); }
.kareys-art .art-label, .kareys-art .art-number { color: #6e655c; }
.kareys-tiles { --tile: 74px; position: relative; display: grid; grid-template-columns: repeat(3, var(--tile)); grid-template-rows: repeat(2, var(--tile)); gap: 10px; margin-top: 26px; transform: rotate(-4deg); transition: transform .6s; }
.kareys-tiles span { display: grid; place-items: center; border-radius: 14px; background: #faf7f2; box-shadow: 0 3px 0 #d3c9bb; color: #2f2a26; font: 700 38px 'Space Grotesk', sans-serif; }
.kareys-tiles .empty { background: #f1ece5; box-shadow: 0 3px 0 #ddd4c8; }
.kareys-zone { position: absolute; top: -6px; border: 5px solid; border-radius: 19px; mix-blend-mode: multiply; transition: opacity .4s, transform .5s cubic-bezier(.3,1.4,.5,1); }
.kareys-zone.one { left: -6px; width: calc(var(--tile) * 2 + 22px); height: calc(var(--tile) + 12px); border-color: #a9502f; background: #c7dccb; }
.kareys-zone.two { left: calc(var(--tile) * 2 + 14px); width: calc(var(--tile) + 12px); height: calc(var(--tile) * 2 + 22px); border-color: #a87b1f; background: #f0d9a8; opacity: 0; transform: scale(.92); }
.game-card:hover .kareys-tiles { transform: rotate(0) scale(1.05); }
.game-card:hover .kareys-zone.two { opacity: 1; transform: scale(1); }
/* Fenceville: a meadow grid from the game (DESIGN.md "Ferme pixel"); the fence is closed, and the grass and sheep come in on hover. */
.fence-art { background: radial-gradient(circle at 50% 58%, #fff7e2, #f4e8c9 70%); }
.fence-art .art-label, .fence-art .art-number { color: #6e5338; }
.fence-board { width: 190px; height: 190px; margin-top: 30px; box-shadow: 0 0 0 4px #3a2718, 0 8px 0 4px #3a271833; shape-rendering: crispEdges; transform: rotate(-4deg); transition: transform .6s; }
.fence-board text { font: 700 22px 'Nunito', sans-serif; fill: #3a2718; text-anchor: middle; dominant-baseline: central; }
.fence-board .inside { opacity: 0; transition: opacity .45s steps(3); }
.game-card:hover .fence-board { transform: rotate(0) scale(1.05); }
.game-card:hover .fence-board .inside { opacity: 1; }
.game-card:hover .scala-hand { transform: translateY(10px) scale(1.05); }
.game-content { padding: 30px; }
.game-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.game-title img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; }
h3 { font-size: 30px; font-weight: 500; letter-spacing: -.04em; line-height: 1.2; }
.game-title > span { margin-left: auto; color: var(--lilac); font-size: 23px; }
.game-content p { color: var(--muted); font-size: 14px; max-width: 420px; }
.game-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.game-tags span { font-size: 10px; border: 1px solid #ffffff20; border-radius: 99px; padding: 4px 10px; color: #d8cfe6; }
.game-cta { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; font-weight: 600; }
.game-cta b { color: var(--orange); font-size: 19px; font-weight: 400; }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; border-top: 1px solid var(--line); padding-block: 80px; }
.about-section h2 { margin-top: 20px; }
.about-copy p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.about-copy .text-link { color: var(--ink); }
.contact-section { padding: 65px; border-radius: 22px; background: #25193c; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 80px; }
.contact-section h2 { font-size: clamp(28px, 3vw, 40px); margin-top: 12px; }
.contact-section p { color: var(--muted); font-size: 14px; margin-top: 16px; }
.contact-section .button { flex-shrink: 0; }
.world-footer { border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding-block: 30px; gap: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; color: var(--muted); font-size: 12px; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 20px; color: var(--muted); font-size: 10px; }
.motion-toggle { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.motion-toggle[hidden] { display: none; }
[data-reveal] { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .motion-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(25px); }
  .motion-ready [data-reveal] { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .playground { animation: enter 1.2s .1s both; }
}
@keyframes quiz-float { 0%,100% { transform: translateY(0) rotate(-10deg); } 50% { transform: translateY(-12px) rotate(-7deg); } }
@keyframes cards-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(13px) rotate(3deg); } }
@keyframes label-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.motion-paused [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (min-width: 1051px) { .quiz-mosaic { scale: .84; } }
@media (max-width: 1050px) { .world-nav { gap: 20px; } .hero-inner { min-height: 600px; } .hero-actions { gap: 18px; } .hero-actions .text-link { display: none; } .hero-quiz { padding: 18px; } .puzzle-grid { gap: 5px; margin-top: 12px; } .puzzle-grid span { font-size: 22px; border-radius: 7px; } .mini-label { font-size: 8px; } .floating-tag { font-size: 9px; } .game-art { height: 260px; } }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { height: 80px; gap: 16px; }
  .wordmark { font-size: 22px; gap: 9px; }
  .world-nav { gap: 16px; font-size: 11px; }
  .world-nav .nav-about { display: none; }
  .nav-contact { padding: 7px 12px; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 55px 30px; gap: 30px; }
  h1 { font-size: clamp(55px, 10vw, 80px); max-width: 600px; }
  .hero-description { max-width: 450px; font-size: 15px; }
  .hero-actions .text-link { display: inline-flex; }
  .playground { max-width: 400px; justify-self: center; margin-top: -5px; }
  .hero-quiz { padding: 22px; } .mini-label { font-size: 9px; } .puzzle-grid { margin-top: 16px; gap: 7px; } .puzzle-grid span { font-size: 25px; }
  .floating-tag { font-size: 10px; }
  .games-section { padding-block: 45px 60px; }
  .section-heading { display: block; } .section-heading > p { margin-top: 18px; max-width: 350px; }
  .game-grid { grid-template-columns: 1fr; gap: 25px; }
  .game-art { height: 300px; }
  .section-kicker { font-size: 8px; letter-spacing: .06em; gap: 15px; }
  .about-section { grid-template-columns: 1fr; gap: 28px; padding-block: 50px; }
  .contact-section { padding: 30px; flex-direction: column; align-items: flex-start; margin-bottom: 50px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { gap: 16px; font-size: 11px; }
  .footer-bottom { align-items: flex-start; font-size: 9px; }
}
@media (max-width: 380px) { .world-nav { gap: 10px; } .world-nav .nav-contact { padding: 7px 9px; } .wordmark { font-size: 20px; gap: 7px; } .brand-mark { width: 26px; height: 24px; } .hero-actions { gap: 14px; } .hero-actions .text-link { font-size: 11px; } .button { padding: 14px 18px; gap: 15px; } .game-content { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
