
:root {
  color-scheme: dark;
  --bg: #101311;
  --surface: #191d19;
  --line: #30372f;
  --text: #f0f2e9;
  --muted: #a2ac9e;
  --accent: #c2f970;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 "Segoe UI", system-ui, sans-serif; }
::selection { color: var(--bg); background: var(--accent); }
a { color: inherit; }
button, input { font: inherit; }
a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1240px, calc(100% - 96px)); margin: auto; }
.skip-link { position: absolute; top: -60px; left: 20px; z-index: 10; padding: 10px 20px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-head { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.site-mark { display: grid; place-items: center; width: 38px; height: 38px; }
.site-mark svg { width: 32px; height: 32px; }
.site-name { font-size: 21px; font-weight: 750; letter-spacing: -1px; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.site-nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.download-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; background: var(--accent); border: 1px solid var(--accent); border-radius: 6px; color: #192211; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s, transform .2s; }
.download-button:hover { background: #d4ff97; transform: translateY(-2px); }
.site-nav .download-button { color: #192211; }
.download-button.compact { padding: 10px 15px; font-size: 12px; }
.eyebrow { margin: 0; color: var(--accent); font: 11px/1.5 var(--mono); letter-spacing: 2px; text-transform: uppercase; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 48px; padding: 56px 0; }
.hero-copy { position: relative; min-width: 0; z-index: 1; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #c2f95055; }
.hero h1 { margin: 23px 0 22px; font-size: clamp(40px, 4.4vw, 63px); font-weight: 750; line-height: 1.09; letter-spacing: -3px; }
.hero h1 span { color: var(--accent); }
.hero-description { max-width: 490px; color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.hero-note { color: var(--muted); margin: 17px 0 0; font-size: 11px; }
.agent-preview { min-width: 0; padding: 24px; border: 1px solid #687155; border-radius: 14px; background: radial-gradient(ellipse at 50% 30%, #b4bed61a, transparent 65%), #191d19; box-shadow: 0 20px 65px #0003; }
.agent-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #bcc6b1; font: 9px/1.5 var(--mono); letter-spacing: 1px; }
.preview-label { padding: 4px 7px; border: 1px solid #46503e; border-radius: 4px; font-size: 8px; }
.agent-stage { position: relative; height: 220px; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.qloud-mascot { display: block; position: relative; width: 112px; height: 112px; stroke: none; filter: drop-shadow(0 12px 25px #aeb9ff25); transform-origin: center; }
.qloud-float { position: relative; z-index: 2; }
.qloud-eyes { transform-box: fill-box; transform-origin: center; }
.qloud-aura { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, #aeb9ff28, #c2f9700b 55%, transparent 72%); }
.qloud-shadow { position: absolute; bottom: 23px; width: 86px; height: 12px; border-radius: 50%; background: #aeb9ff20; filter: blur(5px); }
.qloud-particles { position: absolute; inset: 0; pointer-events: none; }
.qloud-particles i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; background: var(--accent); opacity: .65; transform: translate(var(--particle-x), var(--particle-y)) rotate(45deg); }
.qloud-particles i:nth-child(1) { --particle-x: -94px; --particle-y: -58px; --delay: -1s; }
.qloud-particles i:nth-child(2) { --particle-x: 98px; --particle-y: -32px; --delay: -2.4s; background: #aeb9ff; }
.qloud-particles i:nth-child(3) { --particle-x: -78px; --particle-y: 68px; --delay: -.3s; }
.qloud-particles i:nth-child(4) { --particle-x: 72px; --particle-y: 72px; --delay: -3.1s; background: #aeb9ff; }
.qloud-particles i:nth-child(5) { --particle-x: 26px; --particle-y: -88px; --delay: -1.8s; width: 3px; height: 3px; }
.qloud-particles i:nth-child(6) { --particle-x: -106px; --particle-y: 15px; --delay: -3.8s; width: 3px; height: 3px; }
.motion-control { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: -3px 0 15px; color: var(--muted); font-size: 10px; cursor: pointer; }
.motion-control input { margin: 0; accent-color: var(--accent); width: 13px; height: 13px; }
.agent-orbit { position: absolute; width: 225px; height: 100px; border: 1px solid #c2f97030; border-radius: 50%; transform: rotate(-25deg); }
.orbit-two { transform: rotate(30deg); width: 265px; height: 130px; border-color: #aeb9ff20; }
.agent-spark { position: absolute; right: 20%; top: 22px; color: var(--accent); font: 22px var(--mono); }
.agent-conversation p { margin: 0; font-size: 13px; line-height: 1.7; }
.player-message { margin-left: 25px !important; padding: 12px 15px; border-radius: 10px 10px 2px 10px; background: #30372b; color: #e2e9d9; }
.agent-message { padding: 18px 4px; }
.agent-name { display: block; margin-bottom: 7px; font: 9px var(--mono); letter-spacing: 1.5px; color: var(--accent); }
.agent-message p { color: #bdc7b6; }
.agent-prompt { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #46503e; padding: 11px 13px; border-radius: 6px; font-size: 12px; color: var(--muted); }
.agent-prompt svg { width: 16px; color: var(--accent); }
.agent-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 10px; padding: 0 0 40px; }
.agent-features > div { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
.feature-number { font: 9px var(--mono); letter-spacing: 1px; color: var(--accent); }
.agent-features h2 { margin: 0; font-size: 18px; letter-spacing: -.4px; }
.agent-features p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 320px; }
.download-section { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 48px; margin-bottom: 48px; padding: 32px; border: 1px solid #596a40; border-radius: 12px; background: radial-gradient(ellipse at 100% 100%, #c2f97012, transparent 70%), #191d19; }
.download-section h2 { margin: 16px 0; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -1.6px; }
.download-section h2 span { color: var(--accent); }
.download-section p:not(.eyebrow) { color: var(--muted); font-size: 14px; max-width: 460px; margin-bottom: 0; }
.download-action { justify-self: end; max-width: 280px; }
.availability { display: block; color: var(--accent); font-size: 15px; font-weight: 650; }
.hero-link { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding: 14px 0; font-size: 14px; line-height: 1.6; text-decoration: underline; text-decoration-color: #697f4f; text-underline-offset: 7px; }
.hero-link svg { color: var(--accent); width: 16px; }
.library { border-top: 1px solid var(--line); padding-top: 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-title { display: flex; align-items: center; gap: 12px; }
.section-title h2 { margin: 0; font-size: 22px; letter-spacing: -.7px; }
.section-title > svg { color: var(--accent); }
.section-note { color: var(--muted); font: 11px var(--mono); }
.search { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 7px 7px 20px; }
.search > svg { color: var(--muted); }
.search:focus-within { border-color: var(--accent); }
.search input[type=search] { min-width: 0; flex: 1; width: 100%; padding: 12px 0; color: var(--text); background: transparent; border: 0; outline-offset: 1px; }
.search input::placeholder { color: #929c8d; }
.search button { border: 0; padding: 11px 25px; border-radius: 4px; background: var(--accent); color: #192211; font-weight: 650; cursor: pointer; }
.search button:hover { background: #d4ff97; }
.filter-row { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0 26px; }
.filter-label { padding-top: 7px; color: var(--muted); font: 10px/1.6 var(--mono); letter-spacing: 1px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); text-decoration: none; font-size: 12px; overflow-wrap: anywhere; }
.chip:hover { color: var(--text); border-color: #77866c; }
.chip.active { color: var(--accent); background: #c2f9700d; border-color: #799a47; }
.chip .n { font: 10px var(--mono); opacity: .75; }
.results-label { margin: 0 0 18px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.results-label a { color: var(--accent); margin-left: 10px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: #8fac66; }
.card-art { position: relative; height: 148px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 70% 50%, #749d4545, transparent 65%), #202a20; color: #c2f970; }
.card-art::before, .card-art::after { content: ''; position: absolute; width: 180px; height: 180px; right: 25px; top: -20px; border: 1px solid currentColor; opacity: .3; transform: rotate(35deg); border-radius: 28px; }
.card-art::after { width: 115px; height: 115px; top: 12px; right: 57px; border-radius: 18px; }
.card-art.art-1 { background: radial-gradient(ellipse at 70% 50%, #91a6ca35, transparent 65%), #202831; color: #a5c8f7; }
.card-art.art-1::before, .card-art.art-1::after { border-radius: 50%; }
.card-art.art-2 { background: radial-gradient(ellipse at 70% 50%, #b88b5535, transparent 65%), #2d2720; color: #edc28a; }
.card-art.art-2::before, .card-art.art-2::after { border-radius: 0; transform: rotate(55deg); }
.card-art.art-3 { background: radial-gradient(ellipse at 70% 50%, #b19eb635, transparent 65%), #2a242e; color: #d7b8ec; }
.card-art.art-3::before, .card-art.art-3::after { border-radius: 50% 50% 0 0; transform: rotate(-25deg); }
.art-symbol { position: absolute; right: 91px; top: 52px; width: 40px; height: 40px; opacity: .85; }
.art-caption { position: absolute; left: 18px; bottom: 15px; font: 9px var(--mono); letter-spacing: 2px; opacity: .8; }
.card-content { display: flex; flex-direction: column; flex: 1; padding: 21px; }
.game { color: var(--accent); font: 10px/1.6 var(--mono); letter-spacing: 1px; text-transform: uppercase; overflow-wrap: anywhere; }
.card h3 { margin: 9px 0 10px; font-size: 19px; font-weight: 650; line-height: 1.35; letter-spacing: -.5px; overflow-wrap: anywhere; }
.card p { margin: 0 0 23px; color: var(--muted); font-size: 13px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.avatar { display: grid; place-items: center; width: 23px; height: 23px; flex: none; background: #30392b; color: #d0e5b6; border-radius: 50%; font: 10px var(--mono); }
.author { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta time { margin-left: auto; white-space: nowrap; }
.meta > svg { width: 13px; height: 13px; color: var(--accent); margin-left: 3px; }
.empty { text-align: center; padding: 52px 24px; border: 1px dashed #44503d; border-radius: 10px; background: radial-gradient(ellipse at top, #c2f97007, transparent 70%); }
.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; color: var(--accent); background: #c2f9700c; border: 1px solid #c2f97030; border-radius: 14px; }
.empty h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.6px; }
.empty p { max-width: 430px; margin: 0 auto 19px; color: var(--muted); font-size: 14px; }
.text-link { color: var(--accent); text-underline-offset: 5px; font-size: 13px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 30px; font-size: 12px; }
.pager a { padding: 8px 15px; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; }
.pager a:hover { border-color: var(--accent); }
.pager span { color: var(--muted); }
.contribute { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 32px; margin: 48px 0; background: #c2f97007; border: 1px solid #c2f97024; border-radius: 10px; }
.contribute-icon { width: 44px; height: 44px; color: var(--accent); }
.contribute h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.5px; }
.contribute p { margin: 0; color: var(--muted); font-size: 13px; }
.publish-help { max-width: 290px; font-size: 13px; }
.publish-help summary { color: var(--accent); cursor: pointer; padding: 9px 0; }
.publish-help p { padding-top: 8px; }
.site-foot { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-foot p { margin: 0; }
.site-foot span { color: var(--accent); }
.reader { padding-top: 30px; padding-bottom: 48px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; color: var(--muted); font-size: 12px; text-decoration: none; }
.back:hover { color: var(--accent); }
.back svg { width: 15px; }
.guide-head { max-width: 840px; margin-bottom: 30px; }
.guide-head h1 { margin: 12px 0 18px; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; letter-spacing: -1.8px; overflow-wrap: anywhere; }
.guide-summary { color: var(--muted); max-width: 680px; overflow-wrap: anywhere; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.guide-frame { display: block; width: 100%; height: 78vh; min-height: 520px; border: 1px solid var(--line); border-radius: 10px; background: #0c0e16; }
.note { margin-top: 16px; color: var(--muted); font-size: 11px; }
.error { padding: 80px 0; }
.error .eyebrow { margin-bottom: 18px; }
/* Nested transforms let Qloud bob, squash, look around, and blink independently.
   Motion stays inside the reserved stage, so surrounding content never shifts. */
@media (prefers-reduced-motion: no-preference) {
  .qloud-float { animation: qloud-float 4s ease-in-out infinite; }
  .qloud-float .qloud-mascot { animation: qloud-squish 4s ease-in-out infinite; }
  .qloud-eyes { animation: qloud-blink 5.6s linear infinite; }
  .qloud-gaze { animation: qloud-look 7.2s ease-in-out infinite; }
  .qloud-aura { animation: qloud-breathe 4s ease-in-out infinite; }
  .qloud-shadow { animation: qloud-shadow 4s ease-in-out infinite; }
  .orbit-one { animation: qloud-orbit 9s linear infinite; }
  .orbit-two { animation: qloud-orbit 13s linear infinite reverse; animation-delay: -4s; }
  .qloud-particles i { animation: qloud-particle 4.5s ease-in-out infinite; animation-delay: var(--delay); }
  .agent-spark { animation: qloud-spark 6s ease-in-out infinite; }
  .brand:hover .qloud-mascot, .brand:focus-visible .qloud-mascot { animation: qloud-party 1s ease-in-out infinite; }
  .agent-stage:hover .qloud-mascot { animation: qloud-party 1s ease-in-out infinite; }
  .agent-stage:hover .qloud-aura { animation-duration: 1.5s; }
}
@keyframes qloud-float {
  0%, 100% { transform: translate(-5px, 8px) rotate(-7deg); }
  25% { transform: translate(7px, -13px) rotate(6deg); }
  50% { transform: translate(4px, 4px) rotate(-3deg); }
  75% { transform: translate(-8px, -17px) rotate(5deg); }
}
@keyframes qloud-squish {
  0%, 50%, 100% { transform: scale(1.07, .94); }
  25%, 75% { transform: scale(.96, 1.06); }
}
@keyframes qloud-blink {
  0%, 35%, 39%, 72%, 76%, 80%, 100% { transform: scaleY(1); }
  37%, 74%, 78% { transform: scaleY(.08); }
}
@keyframes qloud-look {
  0%, 15%, 45%, 60%, 100% { transform: translate(0, 0); }
  23%, 35% { transform: translate(.65px, -.25px); }
  70%, 85% { transform: translate(-.65px, .2px); }
}
@keyframes qloud-breathe {
  0%, 100% { transform: scale(.9); opacity: .55; }
  50% { transform: scale(1.2); opacity: 1; }
}
@keyframes qloud-shadow {
  0%, 50%, 100% { transform: scaleX(1.1); opacity: .8; }
  25%, 75% { transform: scaleX(.65); opacity: .35; }
}
@keyframes qloud-orbit { from { transform: rotate(-25deg); } to { transform: rotate(335deg); } }
@keyframes qloud-particle {
  0%, 100% { transform: translate(var(--particle-x), var(--particle-y)) rotate(0) scale(.6); opacity: .25; }
  50% { transform: translate(calc(var(--particle-x) * .8), calc(var(--particle-y) - 15px)) rotate(180deg) scale(1.3); opacity: .9; }
}
@keyframes qloud-spark {
  0%, 100% { transform: translateY(0) rotate(0); opacity: .45; }
  50% { transform: translateY(10px) rotate(180deg); opacity: 1; }
}
@keyframes qloud-party {
  0%, 100% { transform: rotate(-12deg) scale(1.05, .95); }
  25% { transform: rotate(12deg) scale(.95, 1.05); }
  50% { transform: rotate(-8deg) scale(1.08, .92); }
  75% { transform: rotate(10deg) scale(.97, 1.03); }
}
body:has(#pause-qloud:checked) .agent-stage *, body:has(#pause-qloud:checked) .site-mark * { animation-play-state: paused !important; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 56px); }
  .hero { gap: 28px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .hero h1 { font-size: 46px; letter-spacing: -2px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contribute { gap: 18px; padding: 24px; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero h1 { font-size: clamp(36px, 6.5vw, 49px); letter-spacing: -1.8px; }
  .hero-description { max-width: 520px; }
  .agent-preview { width: 100%; justify-self: stretch; }
  .agent-features { grid-template-columns: 1fr; gap: 24px; }
  .agent-features > div { grid-template-rows: auto auto auto; grid-row: auto; gap: 8px; padding-left: 16px; border-left: 1px solid #52633c; }
  .agent-features p { max-width: none; }
  .contribute { grid-template-columns: auto minmax(0, 1fr); }
  .publish-help { grid-column: 2; max-width: none; }
  .download-section { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .download-action { justify-self: start; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .site-head { min-height: 78px; gap: 16px; }
  .site-name { font-size: 18px; }
  .site-mark { width: 32px; height: 32px; }
  .site-nav { gap: 16px; font-size: 12px; }
  .site-nav .nav-browse { display: none; }
  .hero { padding: 38px 0 30px; }
  .hero-description { font-size: 14px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .hero-actions > a { width: 100%; min-height: 52px; }
  .agent-preview { padding: 20px; }
  .download-section { margin-bottom: 32px; padding: 24px; }
  .section-head { gap: 10px; }
  .section-title h2 { font-size: 20px; }
  .section-note { max-width: 110px; text-align: right; font-size: 9px; }
  .search { gap: 10px; padding-left: 12px; }
  .search input { font-size: 13px; }
  .search button { padding: 10px 14px; font-size: 12px; }
  .filter-row { display: block; }
  .filter-label { display: block; margin-bottom: 10px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card-art { height: 135px; }
  .contribute { grid-template-columns: 1fr; gap: 12px; margin: 32px 0; }
  .contribute-icon { width: 30px; height: 30px; }
  .publish-help { grid-column: auto; max-width: none; }
  .site-foot { flex-direction: column; gap: 8px; }
  .guide-frame { min-height: 420px; }
}
@media (max-width: 360px) {
  .site-head { gap: 12px; }
  .brand { gap: 8px; }
  .site-name { font-size: 16px; }
  .download-button.compact { padding: 10px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
