/* Public and tools pages. Loaded after site.css; studio pages do not use this file. */
html[data-theme="light"] { --bg: #f6f5fd; --bg2: #ffffff; --accent-text: #5b45e0; }
:root { --accent-text: #b9aeff; }
.js body.site { animation: none; }
.reveal, .reveal.is-in { opacity: 1; transform: none; }
body.site { background: radial-gradient(900px 560px at 8% -6%, color-mix(in srgb, var(--accent1) 34%, transparent), transparent 70%), radial-gradient(800px 560px at 100% 4%, color-mix(in srgb, #c026a3 30%, transparent), transparent 70%), var(--bg); background-repeat: no-repeat; }
html[data-theme="light"] body.site { background: radial-gradient(900px 500px at 8% -6%, #ddd7ff, transparent 70%), radial-gradient(800px 500px at 100% 4%, #ffdcf3, transparent 70%), var(--bg); background-repeat: no-repeat; }
body.site a:not(.btn):not(.brand):not(.nav-youtube):not(.tile) { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; border-radius: 8px; }
.prose a, .bio a, .essay .post-meta a, .author-box a, .crumbs a, .empty-panel a:not(.btn) { color: var(--accent-text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); text-wrap: balance; }
h2 { text-wrap: balance; }
.grad, .grad-line { animation: none; }
html[data-theme="dark"] .grad, html[data-theme="dark"] .grad-line { background-image: linear-gradient(100deg, #a79bff, #ff7ad9); }
.site-nav { gap: .35rem; }
.site-nav > a:not(.nav-youtube) { padding: .5rem .8rem; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav > a:not(.nav-youtube):hover { background: var(--card); }
.nav-youtube { margin-left: .4rem; padding: .55rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.nav-toggle { width: 48px; height: 48px; border-radius: 14px; }
.nav-toggle span:not(.sr-only) { left: 13px; right: 13px; }
.nav-toggle span:nth-of-type(2) { top: 18px; } .nav-toggle span:nth-of-type(3) { top: 27px; }

.mt-hero { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: 3.2rem 0 2rem; }
.mt-hero .pill-badge { background: var(--card); padding: .4rem .9rem; }
.mt-hero .grad-line { font-size: .62em; line-height: 1.12; margin-top: .25em; }
.mt-hero .bio { font-size: 1.06rem; }
.mt-hero .stats { gap: .7rem; margin-top: 1.4rem; display: flex; }
.mt-hero .stats li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .6rem 1rem; min-width: 84px; }
.mt-hero-art { position: relative; }
.hero-art { width: 100%; max-height: 560px; display: block; overflow: visible; }
.hero-face { position: absolute; right: 8%; bottom: 8%; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 4px solid #221e40; }
.art-float { animation: bob 7s ease-in-out infinite; } .f2 { animation-delay: -2.4s; } .f3 { animation-delay: -4.6s; }
.band { width: min(var(--max), calc(100% - 2rem)); padding: 1.6rem 0; }
.page-wrap, .site-footer, .app-band { width: min(var(--max), calc(100% - 2rem)); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile { display: grid; gap: .2rem; padding: 1.2rem; border-radius: 22px; color: #fff; text-decoration: none; min-height: 150px; align-content: end; position: relative; overflow: hidden; transition: transform .2s; }
.tile:hover { transform: translateY(-4px); }
.tile svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; position: absolute; top: 1.1rem; left: 1.1rem; }
.tile::after { content: ""; position: absolute; right: -34px; top: -34px; width: 130px; height: 130px; border-radius: 50%; border: 18px solid rgba(255,255,255,.14); }
.tile strong { font-size: 1.2rem; } .tile span { font-size: .88rem; }
.tile-a { background: linear-gradient(140deg, #4f3fe0, #7a35c9); } .tile-v { background: linear-gradient(140deg, #a8206f, #d0265f); }
.tile-p { background: linear-gradient(140deg, #0b5f9e, #2648c9); } .tile-g { background: linear-gradient(140deg, #9a4708, #b32d5c); }
.mt-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; } .mt-head h2 { margin: 0; }
.mt-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mt-posts .post-card.is-feature { grid-column: span 2; grid-row: auto; }
.post-card::after { display: none; }
.post-card, .app-card, .video-card { background: var(--card); }
html[data-theme="light"] .post-card, html[data-theme="light"] .app-card, html[data-theme="light"] .tile { box-shadow: 0 8px 24px rgba(50, 30, 110, .07); }
.post-card h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.02em; margin: .1rem 0; }
.is-feature h3 { font-size: 1.6rem; }
.post-card p { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.post-card .post-cover { display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 16/9; margin-bottom: .4rem; } .is-feature .post-cover { aspect-ratio: 2.1; }
.post-cover img, .cover-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.app-card { border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.app-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.02em; } .app-card h3 a { color: inherit; text-decoration: none; }
.app-card p { margin: 0; color: var(--muted); font-size: .95rem; } .app-card .text-link { margin-top: auto; }
.app-card-top img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; display: block; }
.app-letter { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #5a48e8, #c02a98); color: #fff; font-weight: 800; font-size: 1.6rem; flex: none; }
.tag { font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.disclosure { border: 1px solid var(--line); border-left: 4px solid var(--accent2); border-radius: 14px; padding: .9rem 1rem; color: var(--muted); font-size: .95rem; margin-top: 1rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.essay { margin-inline: auto; } .essay h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.essay-cover { border-radius: 22px; overflow: hidden; aspect-ratio: 16/9; height: auto; }
.prose { font-size: 1.1rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose blockquote { border-color: var(--accent1); color: inherit; }
.author-box { display: flex; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: 22px; padding: 1rem; margin-top: 2rem; background: var(--card); } .author-box img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; } .author-box p { margin: 0; color: var(--muted); }
.related { margin-top: 3rem; }
.app-band { background: linear-gradient(120deg, #4f3fe0, #b0218a); border-radius: 26px; padding: 2rem; } .app-band h2 { margin: 0 0 .2rem; } .app-band p { margin: 0; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
.game { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 1.2rem; } .game h2 { font-size: 1.5rem; } .game p { color: var(--muted); } .game .game-status { color: var(--ink); font-weight: 700; }
.game-stage { min-height: 260px; margin-bottom: 1rem; width: 100%; }
.pairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; align-content: start; }
.pair { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, #5a48e8, #8d2fb8); color: #fff; font-size: 1.5rem; cursor: pointer; } .pair.up { background: #fff; color: #3a25c4; } .pair.done { background: #d6f7e6; color: #0b6b41; }
.tap-pad { border: 0; border-radius: 18px; background: #3b3560; color: #fff; font-size: 1.6rem; font-weight: 800; cursor: pointer; touch-action: manipulation; } .tap-pad.go { background: #0c7f4d; }
.sums { display: grid; place-content: center; gap: 1rem; text-align: center; } .sums strong { font-size: 2.4rem; } .sum-options { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; min-width: 200px; } .sum-options button { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: .8rem; font-weight: 800; cursor: pointer; }
html[data-theme="light"] .sum-options button { background: #f0eefc; }
html[data-theme="light"] body.site .stack-form input, html[data-theme="light"] body.site .stack-form textarea { background: #fff; color: #14141c; }
.site-footer { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 2rem; } .site-footer a { padding: .25rem 0; }
.site-footer .social-row a { display: inline-flex; }
@media (max-width: 1000px) { .mt-posts, .game-grid { grid-template-columns: 1fr 1fr; } .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
    .mt-hero { grid-template-columns: 1fr; padding-top: 1.8rem; gap: 1rem; }
    .hero-art { max-height: 420px; }
    .site-nav { inset: 78px 1rem auto; } .site-nav > a:not(.nav-youtube) { width: 100%; }
    html[data-theme="light"] .site-nav { background: rgba(255,255,255,.98); }
    .mt-posts, .game-grid { grid-template-columns: 1fr; } .mt-posts .post-card.is-feature { grid-column: auto; }
    .mt-hero .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); } .mt-hero .stats li { min-width: 0; padding: .6rem .7rem; }
}
@media (max-width: 420px) { .tile { min-height: 140px; padding: 1rem; } .hero-actions .btn { width: 100%; justify-content: center; } }
body.site .btn.btn-primary { background: linear-gradient(135deg, #5a48e8, #c02a98); border: 0; color: #fff; }
body.site .nav-youtube { background: linear-gradient(135deg, #5a48e8, #c02a98); }
.game-grid { align-items: stretch; } .game { display: flex; flex-direction: column; align-items: flex-start; } .game > .btn:last-child { margin-top: auto; }
.mt-hero .grad-line { letter-spacing: -.02em; }
.post-video { margin: 1.4rem 0; } .post-video .yt-facade, .post-video .yt-frame { aspect-ratio: 16/9; height: auto; border-radius: 22px; overflow: hidden; } .post-video .play { width: 4.2rem; height: 4.2rem; background: linear-gradient(135deg, #5a48e8, #c02a98); } .post-video .play::before { left: 1.65rem; top: 1.35rem; border-width: .75rem 0 .75rem 1.15rem; }
.post-video figcaption { color: var(--muted); font-size: .95rem; margin-top: .5rem; } .post-video figcaption a { color: var(--accent-text); }
.post-app { display: flex; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: 22px; background: var(--card); padding: 1.1rem; margin: 1.4rem 0; } .post-app-copy { flex: 1; min-width: 0; } .post-app strong { font-size: 1.15rem; overflow-wrap: anywhere; } .post-app p { margin: .1rem 0 .4rem; color: var(--muted); }
@media (max-width: 560px) { .post-app { flex-wrap: wrap; } .post-app .store-badge, .post-app > .btn { width: 100%; justify-content: center; } .post-app .post-app-copy { flex-basis: 60%; } }
.app-page { max-width: 820px; margin-inline: auto; } .app-head { display: flex; gap: 1.3rem; align-items: center; } .app-head h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 3rem); overflow-wrap: anywhere; } .app-tag { color: var(--muted); margin: .4rem 0 0; }
.app-pic { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; flex: none; } .app-pic.big, .app-letter.big { width: 104px; height: 104px; border-radius: 28px; font-size: 2.6rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .7rem; margin: 1.3rem 0; } .facts div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .7rem 1rem; } .facts dt { color: var(--muted); font-size: .85rem; } .facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.app-main-img { width: 100%; border-radius: 22px; } .shots { display: flex; gap: .8rem; overflow-x: auto; padding-bottom: .6rem; } .shots a { flex: none; } .shots img { height: 360px; width: auto; max-width: 78vw; border-radius: 18px; display: block; object-fit: cover; }
.offer-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; } .more-games { margin-top: 2rem; } .contact-list { list-style: none; padding: 0; } .contact-list a { color: var(--accent-text); }
.essay-head .post-meta { margin: .2rem 0 1.4rem; } .essay-head.no-cover { border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.essay h1 { letter-spacing: -.03em; line-height: 1.12; }
.post-app strong { display: block; line-height: 1.3; } .post-app .tag { display: inline-block; margin-top: .35rem; }
.h1-by { font-size: .6em; letter-spacing: -.02em; color: var(--muted); font-weight: 700; white-space: nowrap; }
