/* 9World studio site — plain CSS, no build step, no external requests. Palette from Docs/ArtDirection/VISUAL_STYLE_GUIDE.md */
:root {
  --paper: #fff8ea;
  --paper-deep: #f7e7c4;
  --ink: #25313a;
  --muted: #5b6770;
  --grass: #2f7a4b;
  --grass-bright: #5fbf6a;
  --earth: #7a5138;
  --sky: #bfe8ff;
  --gold: #f4c542;
  --line: #e6d8b8;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(74, 52, 30, .16);
  --radius: 20px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--body); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--grass); text-underline-offset: 3px; }
a:hover { color: var(--earth); }
:focus-visible { outline: 3px solid var(--earth); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--grass); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.45rem; }
.brand img { width: 38px; height: 38px; }
.site-nav { margin-left: auto; display: flex; gap: 4px 18px; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--ink); }
.site-nav .lang { border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .85rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--earth); background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 var(--earth); transition: transform .12s; }
.btn:hover { transform: translateY(-1px); color: var(--ink); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.soon { background: var(--paper-deep); border-style: dashed; box-shadow: none; cursor: default; }
.btn.soon:hover { transform: none; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.5rem; }

/* hero */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #e4f4e2 55%, var(--paper) 100%); padding: 48px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
.phone { width: min(300px, 78%); margin-inline: auto; border: 8px solid var(--earth); border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); background: var(--paper-deep); transform: rotate(2deg); }
.phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
@media (min-width: 820px) {
  .hero { padding: 72px 0 80px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
  .phone { width: min(340px, 100%); }
}
.hero-logo { width: min(340px, 80%); margin-bottom: 1rem; filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); }

/* sections */
section.block { padding: 64px 0; }
section.tint { background: var(--paper-deep); }
.section-head { max-width: 40em; margin-bottom: 2rem; }
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-deep); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-body .btn { align-self: flex-start; margin-top: auto; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper-deep); border: 1px solid var(--line); margin-bottom: .7rem; align-self: flex-start; }
.card.placeholder { background: transparent; box-shadow: none; border: 2.5px dashed #c9b88f; justify-content: center; align-items: center; text-align: center; padding: 32px 24px; min-height: 260px; }
.card.placeholder svg { width: 56px; height: 56px; margin-bottom: 10px; }
.card.placeholder p { color: var(--muted); margin: 0; max-width: 22em; }

.two-col { display: grid; gap: 32px; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.values li { background: var(--card); border-radius: 16px; padding: 16px 20px; border: 1px solid var(--line); }
.values strong { display: block; font-family: var(--display); font-size: 1.1rem; }
.contact-list { list-style: none; padding: 0; margin: 0; font-size: 1.1rem; }
.contact-list li { margin-bottom: .5rem; }

/* game page */
.features { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); border: 2px solid var(--earth); font-family: var(--display); font-weight: 700; margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; }
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; margin: 0; list-style: none; }
.gallery li { flex: 0 0 auto; width: min(240px, 62vw); scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 18px; border: 5px solid #fff; box-shadow: var(--shadow); background: var(--paper-deep); }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.creatures { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); max-width: 760px; }
.creatures img { width: 100%; aspect-ratio: 1; object-fit: contain; background: rgba(255,255,255,.65); border-radius: 18px; padding: 8px; }
.platform { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* legal documents */
.legal { max-width: 800px; margin: 0 auto; padding: 32px 16px 24px; }
.legal h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
.legal h2 { font-size: 1.3rem; margin: 1.8rem 0 .4rem; border-bottom: 1px solid var(--line); padding-bottom: .25rem; }
.legal .muted, .muted { color: var(--muted); font-size: .92rem; }
.legal nav.lang { position: static; background: var(--paper); padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px 18px; flex-wrap: wrap; z-index: 5; font-size: .92rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: .92rem; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.legal th { background: var(--paper-deep); }
.legal section.doc { padding-bottom: 2rem; border-bottom: 4px double var(--line); margin-bottom: 1rem; scroll-margin-top: 120px; }
.legal code { background: var(--paper-deep); padding: 1px 5px; border-radius: 4px; font-size: .9em; }

/* footer */
.site-footer { background: var(--ink); color: #e9e2d0; padding: 40px 0 28px; margin-top: 48px; }
.site-footer a { color: #f6dc8a; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-footer h2 { font-size: 1rem; font-family: var(--body); text-transform: uppercase; letter-spacing: .1em; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer .fine { border-top: 1px solid #3f4d57; margin-top: 24px; padding-top: 16px; font-size: .85rem; color: #b9b3a3; }
.site-footer.flush { margin-top: 0; }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound img { width: 200px; margin: 0 auto 1.5rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
