:root { --accent: #ff8a1f; --bg: #0b0610; --fg: #f4eee6; --muted: #b7a9c4; --card: rgba(255,255,255,.06); --line: rgba(255,255,255,.14); color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100vh; background: radial-gradient(ellipse at 20% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%), var(--bg); opacity: 0; transition: opacity .3s; }
body.ready { opacity: 1; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1060px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px 40px; display: grid; gap: 22px; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); grid-template-areas: "top top" "stage panel"; }
.top { grid-area: top; display: flex; justify-content: space-between; align-items: center; }
.top a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top a.brand { color: var(--fg); font-size: 24px; font-weight: 900; letter-spacing: -.03em; }
#langs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
#langs button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; cursor: pointer; color: var(--muted); }
#langs button.on { background: var(--accent); color: #140b18; }
.stage { grid-area: stage; position: sticky; top: 12px; align-self: start; }
.frame { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px var(--line); background: #000; }
.frame canvas { width: 100%; height: 100%; display: block; cursor: pointer; }
.play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); font-size: 34px; cursor: pointer; backdrop-filter: blur(6px); }
.sound { position: absolute; right: 12px; top: 12px; border: 0; border-radius: 999px; padding: 8px 13px; background: rgba(0,0,0,.6); font-size: 14px; font-weight: 700; cursor: pointer; backdrop-filter: blur(6px); white-space: nowrap; }
.made { display: inline-block; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #140b18; font-weight: 800; font-size: 13px; }
.stage { text-align: center; }
.file { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 12px; border: 1px dashed var(--line); background: var(--card); font-weight: 700; color: var(--fg); cursor: pointer; width: fit-content; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file:hover { border-color: var(--accent); }
.row:has(.clear) { grid-template-columns: 1fr auto; } .row:has(.clear) > span { grid-column: 1 / -1; }
.pro { display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--accent); border-radius: 16px; background: var(--card); } .pro p { margin: 0; font-size: 14px; color: var(--muted); } .pro.on { border-style: solid; } .pro.on p { color: var(--fg); font-weight: 700; }
button.link { background: none; border: 0; padding: 2px 0; color: var(--muted); text-decoration: underline; cursor: pointer; justify-self: start; font-size: 14px; }
.ghost.clear { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: none; font-size: 13px; cursor: pointer; }
.panel { grid-area: panel; display: grid; gap: 14px; align-content: start; }
h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.05; letter-spacing: -.01em; }
h2 { margin: 10px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.blurb { margin: 0; color: var(--muted); font-size: 17px; }
#form { display: grid; gap: 12px; }
.row { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.row.inline { display: block; }
input:not([type=file]), select { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.35); font-size: 18px; font-weight: 600; color: var(--fg); outline: none; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
input[type=file] { font-size: 14px; color: var(--muted); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1; min-width: 64px; padding: 11px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; }
.seg.avatars button { font-size: 26px; padding: 6px; }
.examples { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: -2px 0 2px; scrollbar-width: none; align-items: center; }
.examples span { font-size: 13px; color: var(--muted); white-space: nowrap; margin-right: 2px; }
.examples button { white-space: nowrap; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 14px; cursor: pointer; }
.examples button:hover { border-color: var(--accent); }
.seg.emojis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; } .seg.emojis button { min-width: 0; padding: 7px 0; font-size: 22px; }
.seg.many button { flex: 1 1 calc(33.3% - 6px); white-space: nowrap; }
#form h3.group { margin: 14px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; letter-spacing: .02em; color: var(--fg); }
#form h3.group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
#form h3.group + .fine { margin: 0 0 -2px; }
.mini { position: fixed; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: 92px; height: auto; aspect-ratio: 9 / 16; border-radius: 12px; z-index: 9; box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 0 2px var(--accent); cursor: pointer; }
.seg button.on { background: var(--accent); border-color: var(--accent); color: #140b18; }
.actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 4px; }
button.primary, button.ghost { border-radius: 14px; padding: 13px 16px; font-weight: 800; cursor: pointer; border: 1px solid var(--accent); }
button.primary { background: var(--accent); color: #140b18; }
button.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
button.big { font-size: 17px; padding: 16px; }
button.wide { width: 100%; }
.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.more button { padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 650; font-size: 14px; cursor: pointer; text-align: left; }
.more button:hover, .seg button:hover { border-color: var(--accent); }
button.wa { border-color: #25d366; color: #c9f7da; }
.fine { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.busy { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #1c1424; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; display: grid; gap: 8px; min-width: 240px; box-shadow: 0 20px 50px rgba(0,0,0,.5); font-weight: 700; z-index: 10; }
.busy b { display: block; height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.busy i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); background: var(--accent); color: #140b18; font-weight: 800; padding: 10px 16px; border-radius: 999px; z-index: 11; }
@media (max-width: 760px) {
  .wrap { grid-template-columns: 1fr; grid-template-areas: "top" "stage" "panel"; gap: 16px; }
  .stage { position: relative; top: 0; }
  .frame { max-width: 360px; margin: 0 auto; }
}
/* landing */
.gallery { max-width: 1100px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 18px 40px; }
.home .hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; padding: 26px 0 10px; }
.kicker { margin: 0 0 8px; color: var(--accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.home .hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 14px; }
.home .hero .copy > p#p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 22px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ctas a { text-decoration: none; display: inline-flex; align-items: center; border-radius: 14px; padding: 15px 20px; font-weight: 800; }
.ctas a.primary { background: var(--accent); color: #140b18; } .ctas a.ghost { border: 1px solid var(--line); color: var(--fg); }
.showcase { position: relative; height: 470px; }
.showcase img { position: absolute; top: 20px; width: 220px; aspect-ratio: 9 / 16; border-radius: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px var(--line); object-fit: cover; }
.showcase img:nth-child(1) { left: 2%; transform: rotate(-7deg); top: 46px; }
.showcase img:nth-child(2) { left: 30%; z-index: 2; transform: translateY(-6px); width: 236px; }
.showcase img:nth-child(3) { right: 2%; transform: rotate(7deg); top: 46px; }
.gallery h2 { font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.01em; margin: 44px 0 16px; }
.how ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.how li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 6px; }
.how li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #140b18; font-weight: 900; }
.how li b { font-size: 18px; } .how li span { color: var(--muted); }
.excards { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.excard { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
.excard:hover { transform: translateY(-3px); border-color: var(--accent); }
.excard img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; object-position: top; display: block; }
.excard div { padding: 10px 12px 12px; display: grid; gap: 2px; } .excard b { font-size: 16px; } .excard em { font-style: normal; color: var(--accent); font-weight: 800; font-size: 13px; }
.lede { color: var(--muted); font-size: 17px; margin: -6px 0 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
.tcard { display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
.tcard:hover { transform: translateY(-3px); border-color: var(--tc, var(--accent)); }
.tcard img { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; object-position: top; display: block; }
.tcard div { padding: 14px 16px 18px; display: grid; gap: 6px; }
.tcard b { font-size: 21px; }
.tcard span { color: var(--muted); font-size: 15px; }
.tcard em { font-style: normal; font-weight: 800; color: var(--tc, var(--accent)); font-size: 14px; letter-spacing: .03em; }
.foot { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot b { color: var(--fg); }
@media (max-width: 760px) {
  .home .hero { grid-template-columns: 1fr; gap: 6px; padding-top: 10px; }
  .showcase { height: 330px; order: -1; margin: 0 -8px; }
  .showcase img { width: 150px; top: 14px; } .showcase img:nth-child(2) { width: 164px; left: calc(50% - 82px); } .showcase img:nth-child(1), .showcase img:nth-child(3) { top: 34px; }
  .how ol { grid-template-columns: 1fr; }
  .ctas a { flex: 1 1 100%; justify-content: center; }
}
