/* AI generator pages (home, pixel art, animate photo, stickers, SVG): hero, composer, plan strip, notices, progress,
   result card, examples, tool cards, steps, tips, FAQ. Shared tokens, nav and footer come from /assets/site.css. */
.hero { text-align: center; padding-block: 76px 28px; }
.hero h1 { font-size: clamp(52px, 8.6vw, 124px); letter-spacing: -0.05em; line-height: 0.98; margin: 0; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 46ch; margin: 22px auto 40px; }

.composer { max-width: 860px; margin: 0 auto; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 60px rgba(17, 17, 20, 0.07); padding: 10px; }
.composer textarea { display: block; font: inherit; font-size: 19px; color: var(--ink); border: 0; background: transparent; width: 100%; min-height: 96px; resize: none; padding: 16px 16px 8px; border-radius: 16px; }
.composer textarea:focus { outline: none; }
.composer:focus-within { border-color: var(--ink-2); }
.composer-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 6px 6px 10px; }
.chip { font: inherit; font-size: 14px; font-weight: 500; background: var(--surface); color: var(--ink); border: 0; border-radius: 999px; padding: 10px 14px; min-height: 44px; cursor: pointer; }
.chip:hover { background: var(--sunken); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.spacer { flex: 1; }
.composer button.primary { font: inherit; font-weight: 600; font-size: 16px; padding: 14px 24px; min-height: 52px; border: 0; cursor: pointer; }
.settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; border-top: 1px solid var(--line); margin: 8px 6px 0; padding: 14px 6px 6px; }
.field { display: grid; gap: 4px; }
.label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.settings select { font: inherit; font-size: 14.5px; color: var(--ink); background: var(--surface); border: 0; border-radius: 12px; padding: 11px 12px; min-height: 44px; width: 100%; }
.settings input[type="range"] { width: 100%; min-height: 44px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14.5px; min-height: 44px; white-space: nowrap; }
.check input { width: 18px; height: 18px; }
.under { max-width: 860px; margin: 14px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.cf-turnstile:empty { display: none; }
.under { min-height: 0; }
.plan-strip { max-width: 860px; margin: 14px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; background: var(--surface); border-radius: 18px; padding: 10px 10px 10px 18px; text-align: left; }
.ps-left { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; font-size: 15px; }
.ps-left b { font-weight: 700; color: var(--ink); }
.ps-left b a { color: inherit; }
.ps-note { color: var(--ink-2); font-size: 14px; }
.ps-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 14px; background: #111114; color: #F2F2F4; text-decoration: none; font-size: 14px; white-space: nowrap; }
.ps-cta b { color: #CCFF3D; font-weight: 700; }
.ps-cta:hover { opacity: 0.9; }
@media (prefers-color-scheme: dark) { .ps-cta { box-shadow: inset 0 0 0 1px #2A2A30; } }
@media (max-width: 520px) { .ps-cta { width: 100%; justify-content: center; } .ps-cta .ps-t { display: none; } }
.status { margin: 10px auto 0; max-width: 860px; text-align: left; font-size: 14.5px; color: var(--ink-2); min-height: 1.4em; }
.status.error { color: var(--bad); }
.status.ok { color: var(--good); }
/* Progress while the AI works */
.drawing { width: 64%; aspect-ratio: 1; display: grid; gap: 6px; }
.drawing i { border-radius: 8px; background: var(--sunken); transition: background-color .3s, transform .3s; }
.drawing i.on { background: var(--ink); }
.drawing i.now { background: #CCFF3D; animation: pulse .7s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(.86); } }
.prog { margin-top: 4px; }
.prog-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.prog-steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.prog-steps li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px var(--line); }
.prog-steps li.now { color: var(--ink); font-weight: 600; }
.prog-steps li.now::before { box-shadow: inset 0 0 0 2px var(--ink); border-top-color: transparent; background: conic-gradient(var(--ink) 0 25%, transparent 0); -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px); animation: spin .8s linear infinite; }
.prog-steps li.done { color: var(--ink); }
.prog-steps li.done::before { box-shadow: none; background: #CCFF3D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%23111114' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.prog-sub { font-weight: 400; color: var(--ink-2); margin-left: 6px; font-size: 13.5px; }
.result.busy .next { display: none; }
.prog-bar { height: 8px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.prog-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width .4s ease; }
.prog-meta { margin: 10px 0 0 !important; font-size: 14px; color: var(--ink-2); }
.prog-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.prog-tip { margin: 8px 0 0 !important; font-size: 13.5px; color: var(--ink-2); min-height: 1.5em; }
/* Messages: warnings and errors near the Generate button */
.note-card { max-width: 860px; margin: 12px auto 0; border-radius: 18px; padding: 16px 18px; text-align: left; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; }
.note-card.error { background: #FFF1EF; color: #5C1A14; }
.note-card.warn { background: #FFF7DB; color: #4A3400; }
.note-card.info { background: var(--surface); color: var(--ink); }
@media (prefers-color-scheme: dark) { .note-card.error { background: #3A1B18; color: #FFD9D5; } .note-card.warn { background: #3A3010; color: #FFEBB0; } }
.note-ic { grid-row: span 6; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: rgba(0,0,0,.07); }
.note-card h3 { margin: 4px 0 2px; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; color: inherit; }
.note-card p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.note-card ul { margin: 2px 0 0; padding-left: 18px; font-size: 14.5px; }
.note-card li { margin: 2px 0; }
.note-card mark { background: rgba(229,72,77,.18); color: inherit; border-radius: 4px; padding: 0 3px; font-weight: 700; }
.note-card .muted { opacity: .75; font-size: 13.5px; }
.note-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.note-acts button, .note-acts a { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 0 14px; border-radius: 11px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.note-acts .pri { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 560px) { .note-card { grid-template-columns: minmax(0, 1fr); } .note-ic { display: none; } .note-acts > * { flex: 1 1 auto; justify-content: center; } }
.status.box { background: #FFF1EF; color: #5C1A14; border-radius: 16px; padding: 14px 16px; }
@media (prefers-color-scheme: dark) { .status.box { background: #3A1B18; color: #FFD9D5; } }
.status.box b { display: block; font-size: 15px; margin-bottom: 4px; }
.status.box p { margin: 0 0 6px; }
.status.box ul { margin: 4px 0 8px; padding-left: 20px; }
.status.box li { margin: 2px 0; }
.status.box .acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.status.box .acts button, .status.box .acts a { font: inherit; font-size: 14px; font-weight: 600; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.rules { max-width: 860px; margin: 10px auto 0; text-align: left; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.rules b { color: var(--ink); font-weight: 600; }

.result { max-width: 860px; margin: 30px auto 0; background: var(--surface); border-radius: 28px; padding: 28px; display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; text-align: left; }
.result-frame { aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  background-color: var(--check-a); background-image: linear-gradient(45deg, var(--check-b) 25%, transparent 25%, transparent 75%, var(--check-b) 75%), linear-gradient(45deg, var(--check-b) 25%, transparent 25%, transparent 75%, var(--check-b) 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.result-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ghost { width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--sunken); animation: breathe 1.2s steps(6) infinite alternate; }
@keyframes breathe { to { transform: scale(0.82); opacity: 0.6; } }
.result h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin: 0 0 6px; }
.result p { margin: 0 0 14px; color: var(--ink-2); }
.result-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.unlock { background: var(--surface, #F2F2F4); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.unlock p { margin: 0; flex: 1 1 260px; font-size: 14px; }
.unlock a { font-size: 14px; }
.result a.download { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; text-decoration: none; }
.meta { font-size: 14px; color: var(--ink-2); }
.next { display: flex; gap: 8px; flex-wrap: wrap; }
.next a { text-decoration: none; background: var(--bg); border-radius: 999px; padding: 10px 16px; font-weight: 500; font-size: 14.5px; min-height: 44px; display: inline-flex; align-items: center; }

.sec { padding-block: 110px 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: 36px; }
h2.big { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -0.045em; line-height: 1; margin: 0; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { text-decoration: none; display: block; }
.card-stage { background: var(--surface); border-radius: 28px; aspect-ratio: 4 / 3.4; display: grid; place-items: center; overflow: hidden; transition: transform 0.2s; }
.card:hover .card-stage { transform: translateY(-3px); }
.card-meta { padding: 16px 6px 0; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; margin: 0 0 4px; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
/* Each tool shown by a small loop of what it does (drawn with CSS) */
.meme { width: 72%; aspect-ratio: 3 / 2; border-radius: 10px; background: linear-gradient(160deg, #8fb3dc, #5f86b8); display: grid; align-items: end; justify-items: center; padding-bottom: 6%; overflow: hidden; }
.meme span { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; font-size: clamp(18px, 2.2vw, 30px); color: #fff; -webkit-text-stroke: 1.5px #000; text-transform: uppercase; white-space: nowrap; display: inline-block; animation: type 2.6s steps(13) infinite; }
@keyframes type { 0% { clip-path: inset(-10% 100% -10% 0); } 70%, 100% { clip-path: inset(-10% 0 -10% 0); } }
.boom { width: 72%; aspect-ratio: 3 / 2; border-radius: 10px; background: #cfe8ff; position: relative; overflow: hidden; }
.boom::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: #9fd18b; }
.boom i { position: absolute; width: 16%; aspect-ratio: 1; border-radius: 50%; background: #f26b3a; bottom: 22%; animation: boom 1.8s steps(12) infinite alternate; }
@keyframes boom { from { left: 6%; } 50% { bottom: 58%; } to { left: 78%; } }
.cut { width: 62%; aspect-ratio: 1; border-radius: 10px; position: relative; overflow: hidden;
  background-color: #fff; background-image: linear-gradient(45deg, #e3e3ea 25%, transparent 25%, transparent 75%, #e3e3ea 75%), linear-gradient(45deg, #e3e3ea 25%, transparent 25%, transparent 75%, #e3e3ea 75%);
  background-size: 14px 14px; background-position: 0 0, 7px 7px; }
.cut::before { content: ""; position: absolute; inset: 0; background: #1fb5a3; animation: wipe 2.4s steps(8) infinite alternate; }
@keyframes wipe { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
.cut i { position: absolute; left: 50%; top: 52%; width: 50%; height: 44%; margin: -22% 0 0 -25%; border-radius: 50%; background: #ffb020; animation: hopc 0.9s steps(6) infinite alternate; }
@keyframes hopc { to { transform: translateY(-14%); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.squeeze { width: 62%; aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, #ffb020, #f26b3a); display: grid; place-items: center; animation: squeeze 2.2s steps(6) infinite alternate; }
.squeeze span { font-family: var(--font-body); font-weight: 700; font-size: clamp(12px, 1.3vw, 16px); color: #111114; background: #fff; border-radius: 999px; padding: 3px 10px; }
@keyframes squeeze { to { transform: scale(0.52); } }
.rsz { width: 46%; aspect-ratio: 1; border-radius: 10px; background: linear-gradient(160deg, #8fb3dc, #5f86b8); outline: 2px dashed #111114; outline-offset: 6px; animation: rsz 2.4s steps(8) infinite alternate; }
@keyframes rsz { to { transform: scale(1.45, 0.82); } }
.crp { width: 72%; aspect-ratio: 3 / 2; border-radius: 10px; position: relative; overflow: hidden; background: radial-gradient(circle at 62% 42%, #ffd34d 0 14%, transparent 15%), linear-gradient(#bfe3ff 0 62%, #6fbf73 62%); }
.crp i { position: absolute; width: 40%; aspect-ratio: 1; top: 12%; left: 8%; border: 2px solid #fff; border-radius: 4px; box-shadow: 0 0 0 999px rgba(10, 10, 14, 0.45); animation: crp 2.6s steps(10) infinite alternate; }
@keyframes crp { to { left: 52%; top: 26%; } }
.slides { width: 52%; aspect-ratio: 1; position: relative; }
.slides i { position: absolute; inset: 0; border-radius: 10px; animation: slide 2.4s steps(1, end) infinite; }
.slides i:nth-child(1) { background: #CCFF3D; transform: rotate(-6deg); }
.slides i:nth-child(2) { background: #111114; animation-delay: -1.6s; }
.slides i:nth-child(3) { background: #f26b3a; transform: rotate(5deg); animation-delay: -0.8s; }
@keyframes slide { 0% { opacity: 1; z-index: 2; } 33.333% { opacity: 0.35; z-index: 1; } 100% { opacity: 0.35; z-index: 1; } }
@media (prefers-reduced-motion: reduce) { .squeeze, .rsz, .crp i, .slides i { animation: none; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { background: var(--surface); border-radius: 22px; padding: 24px; }
.num { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; margin-bottom: 26px; }
.steps b { display: block; font-family: var(--font-display); font-size: 19px; letter-spacing: -0.01em; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 60px; }
.tip { border-top: 1px solid var(--line); padding-block: 22px; }
.tip h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.015em; margin: 0 0 6px; }
.tip p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.exs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 220px)); justify-content: start; gap: 16px; }
.ex { margin: 0; background: var(--surface); border-radius: 20px; padding: 10px; display: grid; gap: 10px; align-content: start; }
.ex img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; display: block; background: var(--sunken); }
.ex figcaption { display: grid; gap: 8px; padding: 0 2px 2px; }
.ex-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ex-tags span { font-size: 11.5px; background: var(--bg); color: var(--ink-2); border-radius: 999px; padding: 2px 8px; }
.ex-tags span:first-child { color: var(--ink); font-weight: 600; }
.ex-prompt { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.ex-prompt::before { content: "Prompt: "; font-weight: 700; color: var(--ink); }
.ex-use { justify-self: start; font: inherit; font-weight: 600; font-size: 13px; background: var(--ink); color: var(--bg); border: 0; border-radius: 10px; padding: 8px 12px; min-height: 36px; cursor: pointer; }
.ex-use:hover { opacity: 0.88; }
.ideas { display: flex; flex-wrap: wrap; gap: 10px; }
.idea { font: inherit; font-weight: 500; font-size: 15.5px; background: var(--surface); color: var(--ink); border: 0; border-radius: 999px; padding: 14px 20px; min-height: 48px; cursor: pointer; }
.idea:hover { background: var(--ink); color: var(--bg); }

.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; font-size: 19px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; font-size: 24px; line-height: 1; color: var(--ink-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 66ch; }
main + footer { margin-top: 110px; }

@media (max-width: 900px) {
  .settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result { grid-template-columns: minmax(0, 1fr); }
  .result-frame { max-width: 300px; width: 100%; }
  .sec-head, .tips { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .sec { padding-top: 80px; }
}
/* Desktop: chips sit in the row, settings always open. Phones: chips scroll sideways, settings fold away. */
.chips { display: contents; }
.more > summary { display: none; }
@media (max-width: 560px) {
  .composer-row { padding: 6px 0 6px; gap: 10px; }
  .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; width: 100%; padding: 0 10px 2px; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }
  .composer-row .spacer { display: none; }
  .composer button.primary { margin: 0 6px; width: calc(100% - 12px); }
  .more { margin: 8px 6px 0; border-top: 1px solid var(--line); }
  .more > summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; min-height: 48px; padding: 4px 6px; font-size: 14.5px; font-weight: 600; }
  .more > summary::-webkit-details-marker { display: none; }
  .more > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); margin: -4px 4px 0 auto; transition: transform .15s; }
  .more[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
  .more-sum { color: var(--ink-2); font-weight: 400; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .more .settings { border-top: 0; margin: 0; padding-top: 4px; }
  .result.idle { display: none; }
  .result { padding: 18px; border-radius: 22px; margin-top: 18px; }
  .result-frame { max-width: none; }
  .rules { font-size: 12.5px; }
  .exs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; max-width: none; gap: 12px; padding-bottom: 6px; scrollbar-width: none; }
  .exs::-webkit-scrollbar { display: none; }
  .ex { scroll-snap-align: start; }
  .cards { gap: 10px; }
  .card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--surface); border-radius: 20px; padding: 10px; }
  .card-stage { aspect-ratio: 1; border-radius: 14px; background: var(--bg); position: relative; }
  .card-stage > * { transform: scale(0.4); flex: none; }
  .card-meta { padding: 0; }
  .card h3 { font-size: 17px; margin-bottom: 2px; }
  .card p { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card:hover .card-stage { transform: none; }
  .steps { gap: 10px; }
  .steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; padding: 16px; border-radius: 18px; }
  .steps li .num { grid-row: span 2; margin: 0; }
  .steps b { font-size: 17px; margin-bottom: 2px; }
  .steps p { font-size: 14.5px; }
  .tip { padding-block: 16px; }
  .hero { padding-top: 52px; }
  .lede { font-size: 17px; }
  .composer textarea { min-height: 128px; }
  .settings { grid-template-columns: minmax(0, 1fr); }
  .composer button.primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Photo upload (Animate a Photo) */
.photo-drop { display: flex; align-items: center; gap: 14px; margin: 6px 6px 4px; padding: 10px; border: 2px dashed var(--line); border-radius: 18px; text-align: left; transition: border-color .15s, background-color .15s; }
.photo-drop.over { border-color: var(--ink); background: var(--surface); }
.photo-drop.has { border-style: solid; }
.photo-drop img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; flex: none; background: var(--sunken); }
.photo-pick { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font: inherit; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px 6px; min-height: 56px; text-align: left; }
.photo-pick b { font-size: 16px; }
.photo-pick small { color: var(--ink-2); font-size: 13px; }
/* Sticker maker: checkerboard behind transparent results and examples */
.on-checker { background-color: var(--check-a) !important; background-image: linear-gradient(45deg, var(--check-b) 25%, transparent 25%, transparent 75%, var(--check-b) 75%), linear-gradient(45deg, var(--check-b) 25%, transparent 25%, transparent 75%, var(--check-b) 75%) !important; background-size: 16px 16px !important; background-position: 0 0, 8px 8px !important; }
/* Before / after (Animate a Photo) */
.ba { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ba figure { margin: 0; background: var(--surface); border-radius: 20px; padding: 10px; width: min(260px, 100%); }
.ba img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 12px; display: block; background: var(--bg); }
.ba figcaption { font-size: 13px; color: var(--ink-2); padding: 8px 4px 2px; line-height: 1.45; }
.ba-arrow { font-size: 28px; color: var(--ink-2); }
@media (max-width: 600px) { .ba-arrow { transform: rotate(90deg); width: 100%; text-align: center; } .ba figure { width: 100%; } }
/* Related links */
.rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rel a { display: block; background: var(--surface); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.rel a b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.rel a span { font-size: 14px; color: var(--ink-2); line-height: 1.45; display: block; }
.rel a:hover { background: var(--sunken); }
