/* Ukki site (ukki.pixelmatelabs.com). Palette: the Unity repo's CLAUDE.md
   (S10, rich dark, made to pop on OLED). No flat page colour: every section
   sits on layered jungle glows and leaf silhouettes. */
:root {
  --bg: #071A12;
  --card: #0E3324;
  --raised: #145038;
  --text: #FFF1D6;
  --muted: #CDBF9F;
  --jungle: #00A651;
  --leaf: #2EE06B;
  --forest: #0A4A2A;
  --sun: #FFC400;
  --coral: #FF4A3D;
  --radius: 22px;
  --wrap: 1120px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 85% 10%, rgba(0, 166, 81, 0.18), transparent 60%),
    radial-gradient(900px 600px at 0% 45%, rgba(46, 224, 107, 0.10), transparent 60%),
    radial-gradient(900px 700px at 100% 80%, rgba(255, 196, 0, 0.07), transparent 60%),
    url("/img/leaves.svg");
  background-size: auto, auto, auto, 520px 520px;
  background-attachment: scroll;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sun); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--sun); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Top bar */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); }
.top nav a { color: var(--text); text-decoration: none; font-weight: 700; padding: 12px 10px; opacity: 0.9; }
.top nav a:hover { color: var(--sun); }
.top nav a.lang, .langs summary { border: 1px solid rgba(255, 241, 214, 0.35); border-radius: 999px; padding: 6px 12px; margin-right: 6px; font-size: 0.95rem; }
/* Sinhala: system fonts that ship Sinhala glyphs (Apple: Sinhala Sangam MN; Android: Noto Sans Sinhala; Windows: Nirmala UI / Iskoola Pota). Nothing is downloaded. */
:lang(si) { font-family: "Noto Sans Sinhala", "Sinhala Sangam MN", "Sinhala MN", "Nirmala UI", "Iskoola Pota", var(--font); }
html[lang="si"] body { line-height: 1.75; }
html[lang="si"] h2, html[lang="si"] .hook, html[lang="si"] .perk h3, html[lang="si"] .doc-head h1 { line-height: 1.35; letter-spacing: 0; }
html[lang="si"] .hero h1 { font-family: var(--font); }
.governs { font-size: 0.92rem; color: var(--muted); border-left: 3px solid var(--sun); padding: 4px 0 4px 12px; }

/* Hero: full-bleed night jungle, Ukki front and centre */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding-top: 72px;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.08); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 70%, rgba(255, 196, 0, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(7, 26, 18, 0.55) 0%, rgba(7, 26, 18, 0.15) 40%, rgba(7, 26, 18, 0.0) 60%, var(--bg) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: auto -5% -2% -5%; height: 20%; z-index: 1;
  background: url("/img/leaves-front.svg") center bottom / 1200px auto repeat-x;
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 0; }
.hero-copy { position: relative; z-index: 2; padding: 8px 0 0; }
.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 17vw, 8.5rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--sun);
  text-shadow: 0 6px 0 #9A6A00, 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 196, 0, 0.35);
}
.hook { margin: 14px auto 0; max-width: 22ch; font-size: clamp(1.2rem, 4.6vw, 1.7rem); font-weight: 800; line-height: 1.25; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 20px 0 6px; }
.badge { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.badge img { height: 46px; width: auto; }
.badge .gp { height: 68px; margin: -11px -9px; }
.soon { letter-spacing: 0.06em; text-transform: uppercase; }
.hero-ukki { position: relative; z-index: 0; width: min(88vw, 620px); margin: -8px auto 0; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 60px rgba(255, 196, 0, 0.18)); animation: bob 5.5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.2deg); } }

/* Fireflies */
.flies { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.flies span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #FFE680; box-shadow: 0 0 12px 4px rgba(255, 214, 64, 0.7); opacity: 0; animation: fly 7s ease-in-out infinite; }
.flies span:nth-child(1) { left: 12%; top: 38%; animation-delay: 0s; }
.flies span:nth-child(2) { left: 24%; top: 62%; animation-delay: 1.4s; }
.flies span:nth-child(3) { left: 78%; top: 30%; animation-delay: 2.1s; }
.flies span:nth-child(4) { left: 86%; top: 58%; animation-delay: 3.3s; }
.flies span:nth-child(5) { left: 64%; top: 18%; animation-delay: 4.2s; }
.flies span:nth-child(6) { left: 38%; top: 24%; animation-delay: 5.1s; }
.flies span:nth-child(7) { left: 6%; top: 76%; animation-delay: 2.7s; }
.flies span:nth-child(8) { left: 92%; top: 80%; animation-delay: 0.8s; }
@keyframes fly { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 70% { opacity: 0.8; } 100% { opacity: 0; transform: translate(18px, -40px); } }

/* Sections */
section { position: relative; }
.band { padding: 28px 0; } /* mobile rhythm: 56 px between sections (owner, 2026-11-10); desktop below */
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leaf); margin: 0 0 8px; }
h2 { margin: 0 0 10px; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.05; font-weight: 900; letter-spacing: -0.01em; }
.lede { margin: 0; color: var(--muted); font-size: 1.1rem; max-width: 46ch; }

/* Story strip: swipeable comic panels */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 250px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px 16px 18px; margin: 0 -16px; scrollbar-width: thin; scrollbar-color: var(--raised) transparent; }
.strip figure { margin: 0; scroll-snap-align: center; }
.strip img { border-radius: 16px; border: 3px solid #000; box-shadow: 0 0 0 3px var(--forest), 0 16px 30px rgba(0, 0, 0, 0.5); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.strip figure:nth-child(odd) img { transform: rotate(-1.4deg); }
.strip figure:nth-child(even) img { transform: rotate(1.2deg) translateY(8px); }

/* World: four times of day */
.world { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.world figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); background: var(--card); }
.world img { width: 100%; aspect-ratio: 402 / 640; object-fit: cover; object-position: center 70%; transition: transform 0.6s ease; }
.world figure:hover img { transform: scale(1.04); }
.world figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(7, 26, 18, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 0.9rem; }

/* Benefits: image-led rows */
.perks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 30px; }
.perk { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; background: linear-gradient(135deg, var(--card), rgba(14, 51, 36, 0.55)); border: 1px solid rgba(46, 224, 107, 0.16); border-radius: var(--radius); padding: 12px; }
.perk img { width: 112px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 2px solid #000; }
.perk h3 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 900; }
.perk p { margin: 0; color: var(--muted); }
.d1 { background: #00A8FF; } .d2 { background: #FF2D6F; } .d3 { background: #FF9500; } .d4 { background: #00C48C; }
.more { margin-top: 16px; }
.lede.center { margin: 0 auto; }
.perk .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 2px; }

/* Trust band */
.trust { background: radial-gradient(80% 120% at 0% 0%, rgba(46, 224, 107, 0.16), transparent 60%), linear-gradient(160deg, var(--raised), var(--card)); border-radius: 28px; padding: 26px 20px; display: grid; gap: 18px; align-items: center; overflow: hidden; }
.trust ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.trust li { padding-left: 30px; position: relative; font-weight: 700; }
.trust li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf); box-shadow: inset 0 0 0 5px var(--forest); }
.trust img { width: min(70%, 260px); margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5)); }

/* Closing */
.closing { text-align: center; padding: 28px 0 36px; }
.closing .badges { margin-top: 18px; }

/* Footer */
footer { border-top: 1px solid rgba(255, 241, 214, 0.12); padding: 28px 0 40px; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer a { color: var(--text); text-decoration: none; padding: 10px 0; display: inline-block; }
footer a:hover { color: var(--sun); }

/* Share link page (/get): shown only for the moment before the redirect, or without JS */
.getpage { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.getpage .mini { width: 180px; margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5)); }
.getpage h1 { margin: 12px 0 0; font-size: 3.5rem; font-weight: 900; color: var(--sun); }
.getpage .badges { justify-content: center; }

/* Legal pages */
.doc-head { position: relative; overflow: hidden; padding: 84px 0 26px; isolation: isolate; }
.doc-head .hero-bg img { object-position: center 70%; }
.doc-head::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(7, 26, 18, 0.4), var(--bg)); }
.doc-head .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 760px; }
.doc-head img.mini { flex: 0 0 auto; width: 104px; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55)); }
.doc-head h1 { margin: 0; font-size: clamp(2rem, 7vw, 3rem); font-weight: 900; line-height: 1.05; }
.doc-head p { margin: 6px 0 0; color: var(--muted); }
.doc { max-width: 760px; padding-bottom: 48px; }
.doc h2 { font-size: 1.4rem; margin: 34px 0 8px; color: var(--sun); }
.doc p, .doc li { color: var(--text); opacity: 0.94; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.todo { border: 2px dashed var(--coral); background: rgba(255, 74, 61, 0.1); border-radius: 12px; padding: 10px 14px; color: #FFD0CC; font-size: 0.95rem; }
.cardbox { background: var(--card); border: 1px solid rgba(46, 224, 107, 0.18); border-radius: var(--radius); padding: 18px; margin: 18px 0; }
.mail { display: inline-block; background: var(--sun); color: var(--bg); font-weight: 900; text-decoration: none; padding: 12px 18px; border-radius: 999px; margin-top: 6px; }

@media (min-width: 760px) {
  .band { padding: 104px 0; }
  .hero::after { height: 30%; }
  .badge img { height: 52px; }
  .badge .gp { height: 76px; margin: -12px -10px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; align-items: end; text-align: left; justify-items: start; }
  .hero-copy { padding-bottom: 120px; }
  .hook { margin-left: 0; }
  .badges { justify-content: flex-start; }
  .hero-ukki { width: min(46vw, 640px); margin: 0; justify-self: center; }
  .strip { grid-auto-columns: 260px; margin: 0; padding-left: 0; padding-right: 0; }
  .world { grid-template-columns: repeat(4, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .perk { grid-template-columns: 150px 1fr; padding: 14px; }
  .perk img { width: 150px; }
  .trust { grid-template-columns: 1.3fr 1fr; padding: 40px; }
  .doc-head .wrap { flex-direction: row; align-items: flex-end; gap: 18px; }
  .doc-head img.mini { width: 128px; }
  .closing .badges { justify-content: center; }
  .closing { padding: 64px 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ukki, .flies span { animation: none; }
  .flies span { opacity: 0.8; }
  .world img { transition: none; }
}

/* Language switcher: native names, own script (l10n_gt.py) */
.top nav { display: flex; align-items: center; }
.langs { position: relative; margin-right: 6px; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 700; white-space: nowrap; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary span { max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #0B241A; border: 1px solid rgba(255, 241, 214, 0.25); border-radius: 14px; min-width: 12rem; z-index: 20; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.langs li a { display: block; padding: 10px 12px; border-radius: 10px; white-space: nowrap; }
.langs li a[aria-current] { color: var(--sun); }
.langs li a:hover { background: rgba(255, 241, 214, 0.08); }
@media (max-width: 359px) { .langs summary span { display: none; } }
@media (max-width: 420px) { .langs ul { position: fixed; top: 60px; left: 16px; right: 16px; min-width: 0; } }
.perk > * { min-width: 0; overflow-wrap: break-word; }
footer .studio { display: flex; flex-direction: column; gap: 0; }

footer .studio a { padding: 6px 0; color: var(--muted); }
footer .studio a:hover { color: var(--sun); }

/* Waitlist form (pre-launch) */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.waitlist { max-width: 520px; margin: 22px auto 0; text-align: center; scroll-margin-top: 80px; }
.wl-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.wl-row input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 1rem; padding: 13px 16px; border-radius: 999px; border: 1px solid rgba(255, 241, 214, 0.35); background: rgba(7, 26, 18, 0.7); color: var(--text); }
.wl-row input:focus { outline: 2px solid var(--leaf); outline-offset: 2px; }
.wl-row button { flex: 0 1 auto; max-width: 100%; font: inherit; font-weight: 900; font-size: 1rem; padding: 13px 22px; border-radius: 999px; border: 0; background: var(--sun); color: #071A12; cursor: pointer; white-space: normal; }
.wl-row button:disabled { opacity: 0.6; }
.wl-consent { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }
.wl-consent a { color: var(--text); }
.wl-msg { margin: 10px 0 0; font-weight: 700; }
.wl-msg[data-k="ok"] { color: var(--leaf); }
.wl-msg[data-k="invalid"], .wl-msg[data-k="error"] { color: #FFB3AD; }

/* Mobile cards (owner, 2026-11-10: from the second card on, the space under the text looked doubled).
   The 3:4 picture set every card's height, so a shorter text sat centred with empty space under it.
   Below 760 px the card now takes its text's height and the picture fills that height. */
@media (max-width: 759px) {
  .perk { align-items: stretch; }
  .perk picture { display: block; contain: size; width: 112px; min-height: 104px; }
  .perk img { height: 100%; aspect-ratio: auto; }
}
/* Tap targets of at least 44 px (owner, 2026-11-10). Inline links get vertical padding,
   which widens the hit area without moving the text. */
.top .brand { min-height: 44px; }
.langs summary { min-height: 44px; }
.more a, .wl-consent a { padding: 13px 0; }
footer a { min-height: 44px; display: inline-flex; align-items: center; }
footer .studio a { padding: 0; }
.wl-consent a { padding: 14px 0; }
.langlist { list-style: none; margin: 12px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; max-width: 560px; }
.langlist li { padding: 4px 12px; border: 1px solid rgba(255, 241, 214, 0.22); border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.cardbox > :first-child { margin-top: 0; }
.cardbox > :last-child { margin-bottom: 0; }
/* Studio header (same pattern as the main site's SiteNav): Pixelmate Labs brand -> pixelmatelabs.com,
   app links, Contact, Partners, Support; a menu below 1000 px. */
.brand.studio { font-size: 1.05rem; gap: 8px; min-height: 44px; white-space: nowrap; }
.brand.studio img { width: 32px; height: 32px; border-radius: 9px; }
.navlinks { display: none; align-items: center; }
.navlinks a[aria-current] { color: var(--sun); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--text); border: 1px solid rgba(255, 241, 214, 0.35); border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 13rem; padding: 6px; background: #0B241A; border: 1px solid rgba(255, 241, 214, 0.25); border-radius: 14px; z-index: 20; box-shadow: 0 10px 30px rgba(0,0,0,.4); display: grid; }
.top nav .menu-panel a { padding: 12px; border-radius: 10px; white-space: nowrap; min-height: 44px; display: flex; align-items: center; }
.menu-panel a[aria-current] { color: var(--sun); }
@media (max-width: 420px) { .menu-panel { position: fixed; top: 60px; left: 16px; right: 16px; min-width: 0; } }
@media (min-width: 1000px) { .navlinks { display: flex; } .menu { display: none; } }
/* A cut-off edge says the strip scrolls (also with reduced motion, where nothing moves). */
.strip.can-scroll { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
