:root {
  color-scheme: light;
  scrollbar-gutter: stable;
  --paper: #fffaf7;
  --ink: #21171b;
  --muted: #62535a;
  --line: #eee0de;
  --accent: #c40041;
  --theme: linear-gradient(105deg, #ff0f61, #ff3d00);
  --hero: #fff0ea;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
body.ai { --paper:#fcf7f4; --ink:#281917; --muted:#69514c; --line:#eadbd6; --accent:#a33734; --theme:#ad403b; --hero:#f7e6df; background:var(--paper); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position:fixed; top:10px; left:10px; z-index:5; transform:translateY(-180%); padding:10px; background:#fff; }
.skip:focus { transform:none; }
.wrap { width: min(1224px, calc(100% - 96px)); margin-inline:auto; }
.header { position: sticky; z-index: 4; top: 0; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter:blur(16px); border-bottom:1px solid var(--line); }
.head-inner { min-height: 73px; display:grid; grid-template-columns:1fr auto 1fr; gap: 22px; align-items:center; }
.brand { display:inline-flex; align-items:center; gap:9px; justify-self:start; width:max-content; }
.brand-icon { border-radius:9px; object-fit:cover; }
/* The wordmark's shadow places the visible lettering above the image center. */
.brand-wordmark { display:block; width:114px; height:auto; transform:translateY(10%); }
.channel-nav { display:flex; align-self:stretch; gap:10px; }
.channel-nav a { position:relative; display:flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:0 14px; font-size:14px; font-weight:650; white-space:nowrap; color:var(--muted); }
.channel-nav a svg { width:16px; height:16px; }
.channel-nav a[aria-current] { color:var(--accent); }
.channel-nav a[aria-current]::after { content:""; position:absolute; inset:auto 10px 0; height:3px; border-radius:3px 3px 0 0; background:var(--theme); }
.channel-nav a:focus-visible { outline-offset:-4px; }
.channel-nav a:hover, .footer a:hover { color:var(--accent); }
.head-actions { justify-self:end; display:flex; align-items:center; gap:16px; }
.language { position:relative; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.language-toggle { display:flex; align-items:center; gap:6px; min-height:34px; padding:0; border:0; border-radius:3px; background:transparent; font-size:13px; white-space:nowrap; }
.language-globe { width:17px; height:17px; color:var(--muted); }
.language-chevron { width:7px; height:7px; margin:0 3px 4px; border:solid currentColor; border-width:0 1px 1px 0; transform:rotate(45deg); }
.language-options { position:absolute; top:calc(100% + 8px); inset-inline-end:0; display:grid; min-width:max(132px,100%); padding:5px; border:1px solid var(--line); border-radius:12px; background:var(--paper); box-shadow:0 8px 24px #21171b24; }
.language-options button { border:0; border-radius:7px; padding:8px 10px; background:transparent; font-size:14px; text-align:start; white-space:nowrap; }
.language-options button:hover,.language-options button[aria-pressed="true"] { background:color-mix(in srgb,var(--accent) 8%,var(--paper)); color:var(--accent); }
.language-options button:focus-visible { outline-offset:-2px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:46px; border-radius:999px; padding:0 19px; border:1px solid transparent; white-space:nowrap; font-weight:750; font-size:14px; transition:transform .18s, box-shadow .18s; }
.button:hover { transform:translateY(-2px); }
.head-download { background:var(--ink); color:#fff; min-height:39px; padding:0 15px; font-size:13px; }
.head-download svg { width:16px; height:16px; }
.store-icon { width:22px; height:22px; }
.google-icon { padding:2px; border-radius:4px; background:#fff; }
.primary { color:#fff; background:var(--theme); box-shadow:0 6px 18px color-mix(in srgb, var(--accent) 23%, transparent); }
.secondary { color:var(--ink); border-color:#dfc7c5; background:#fffaf7c9; }
.hero { position:relative; overflow:hidden; isolation:isolate; background:var(--hero); border-bottom:1px solid var(--line); }
.drama-hero { background: radial-gradient(ellipse at 79% 55%, #ffac9f 0%, #ffddda 40%, transparent 68%), linear-gradient(120deg,#fff1e9,#fff5f0 54%,#ffdfd7); }
.drama-hero::before { content:""; position:absolute; z-index:-1; inset:0; background:radial-gradient(#87334a 1px,transparent 1.4px) 0 0/7px 7px; opacity:.17; mask-image:linear-gradient(112deg,transparent 43%, black 77%, transparent); }
.drama-hero::after { content:""; position:absolute; z-index:-1; inset:-55% -12% -62% 40%; transform:rotate(-16deg); background:repeating-conic-gradient(from 55deg at 61% 43%, #fff6f03d 0deg 5deg, transparent 5deg 17deg); }
.hero-grid { display:grid; grid-template-columns:.89fr 1.11fr; align-items:center; min-height:514px; gap:24px; }
.hero-copy { position:relative; z-index:2; padding:52px 0; }
.eyebrow { width:max-content; max-width:100%; display:flex; gap:8px; align-items:center; color:var(--accent); font-size:12px; font-weight:800; letter-spacing:1.8px; text-transform:uppercase; }
.hero .eyebrow { border:1px solid color-mix(in srgb,var(--accent) 23%,transparent); border-radius:40px; padding:8px 12px; background:#fffcf87a; }
.little-dot { width:7px; height:7px; border-radius:50%; background:var(--theme); flex:none; }
h1,h2,h3,p { margin:0; }
h1 { margin:23px 0 19px; font-size:clamp(39px,4.35vw,68px); line-height:1.12; letter-spacing:-.065em; font-weight:900; }
h1 span,h1 em { display:block; }
h1 em { font-style:normal; margin-top:5px; color:var(--accent); }
.drama-hero h1 em { background:var(--theme); background-clip:text; -webkit-text-fill-color:transparent; }
.hero-copy p { max-width:418px; color:var(--muted); font-size:16px; line-height:1.82; }
.hero-actions { display:flex; gap:12px; margin-top:29px; flex-wrap:wrap; }
.hero-actions .button { min-height:51px; padding:0 22px; }
.comic-art { position:relative; aspect-ratio:1.55; width:100%; margin:8px 0 0; --edge:3px; }
.panel { display:block; position:absolute; object-fit:cover; border:var(--edge) solid #fffcf6; border-radius:9px; box-shadow:0 5px 0 #432028,0 12px 23px #73302f44; background:#752737; }
.p-flare { left:25%; top:3%; width:35%; height:22%; transform:rotate(-7deg); }
.p-codex { left:61%; top:0%; width:36%; height:26%; transform:rotate(6deg); }
.p-inferno { left:5%; top:25%; width:63%; height:44%; transform:rotate(-5deg); z-index:1; object-position:55% center; }
.p-duo { left:69%; top:30%; width:31%; height:56%; transform:rotate(5deg); }
.p-shadow { left:8%; top:69%; width:22%; height:31%; transform:rotate(-8deg); }
.p-wings { left:33%; top:70%; width:34%; height:30%; transform:rotate(3deg); object-position:center 30%; }
.art-star { position:absolute; z-index:2; color:#ff2f64; display:grid; place-items:center; transform:rotate(12deg); filter:drop-shadow(2px 1px 0 #fff); }
.art-star svg { width:100%; height:100%; }
.star-one { width:49px; height:49px; left:9%; top:6%; }
.star-two { width:26px; height:26px; left:3%; top:14%; color:#ff6e39; }
.star-three { width:55px; height:55px; right:10%; bottom:2%; color:#ff5237; }
.library { padding:52px 0 60px; scroll-margin-top:88px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:24px; }
h2 { font-size:clamp(28px,3.1vw,42px); line-height:1.12; letter-spacing:-.055em; font-weight:850; }
.filters { display:flex; gap:8px; flex-wrap:wrap; }
.filters button { min-height:36px; padding:0 14px; border:1px solid var(--line); border-radius:50px; font-size:13px; font-weight:650; background:transparent; color:var(--muted); }
.filters button:hover { border-color:var(--accent); }
.filters button[aria-pressed="true"] { background:var(--ink); border-color:var(--ink); color:#fff; }
.poster-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:26px 17px; }
.poster-card { width:100%; display:flex; flex-direction:column; justify-content:flex-start; padding:0; text-align:left; border:0; border-radius:12px; background:transparent; }
.poster-frame { position:relative; display:block; border-radius:12px; overflow:hidden; background:#34242f; aspect-ratio:3/4; box-shadow:0 5px 14px #39202d20; }
.poster-frame img,.character-card img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.poster-card:hover img,.character-card:hover img { transform:scale(1.05); }
.poster-play { position:absolute; display:grid; place-items:center; right:9px; bottom:9px; height:35px; width:35px; color:#fff; border-radius:50%; background:#1f101bd6; border:1px solid #fff8; opacity:0; transform:translateY(5px); transition:.2s; }
.poster-card:hover .poster-play,.poster-card:focus-visible .poster-play { transform:none; opacity:1; }
.poster-title { display:block; margin-top:10px; line-height:1.4; font-size:14px; font-weight:770; }
.poster-genre { display:block; color:var(--muted); font-size:12px; margin-top:4px; }




.ai-hero { background:radial-gradient(ellipse at 78% 58%,#d98c7e 0%,#ebc0b4 34%,#fbede5 69%); }
.ai-hero h1 em { color:#ad403b; }
.ai-art { position:relative; aspect-ratio:1.5; }
.orbit { position:absolute; inset:14% 0 14%; border:1px solid #fff8; border-radius:50%; transform:rotate(-15deg); box-shadow:0 0 0 18px #fff2,0 0 0 40px #fff1; }
.portrait { position:absolute; object-fit:cover; object-position:center 24%; border-radius:50% 50% 16px 16px / 26% 26% 16px 16px; border:3px solid #fbedeb; box-shadow:0 8px 28px #60201d56; }
.portrait-left { left:8%; top:20%; width:29%; height:65%; transform:rotate(-12deg); }
.portrait-right { right:7%; top:16%; width:28%; height:65%; transform:rotate(13deg); }
.portrait-main { top:3%; left:30%; width:41%; height:85%; }
.floating-message { display:flex; align-items:center; gap:9px; position:absolute; bottom:8%; left:50%; transform:translateX(-50%); max-width:96%; width:max-content; background:#fff8f3; border:1px solid #eac2b9; border-radius:14px 14px 14px 3px; padding:13px 16px; box-shadow:0 10px 30px #57232638; font-size:13px; font-weight:750; }
.ai-spark { position:absolute; left:11%; top:10%; width:36px; height:36px; color:#fff6ee; }
.demo-note { color:var(--muted); font-size:14px; }
.character-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.character-card { position:relative; min-height:350px; display:flex; align-items:end; width:100%; padding:21px; overflow:hidden; text-align:left; border:0; border-radius:17px; color:#fff8f3; background:#341e23; }
.character-card img { position:absolute; inset:0; object-position:center 10%; }
.character-card::after { content:""; position:absolute; inset:0; background:linear-gradient(transparent 39%,#1d1115ed 100%); }
.character-caption { position:relative; z-index:1; display:flex; gap:8px; justify-content:space-between; align-items:end; width:100%; }
.character-name { display:block; font-size:25px; font-weight:850; }
.character-role { display:block; font-size:13px; color:#f6d6cc; margin-top:5px; }
.character-go { flex:none; display:grid; place-items:center; border-radius:50%; background:#ad403b; width:39px; height:39px; }
.ai-gallery { padding-bottom:60px; }
.ai-gallery h2 { margin-bottom:24px; }
.ai-gallery-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:20px; }
.ai-gallery-grid img { display:block; width:100%; aspect-ratio:3/4; object-fit:cover; object-position:center 22%; border-radius:17px; background:#341e23; }
.footer { border-top:1px solid var(--line); background:#f6eeeb; }
.footer-inner { display:flex; min-height:94px; align-items:center; justify-content:space-between; gap:18px; font-size:13px; color:var(--muted); }
.footer-links { display:flex; gap:23px; flex-wrap:wrap; }
.footer-contact { text-align:end; overflow-wrap:anywhere; }
.footer-contact a { color:var(--ink); font-weight:650; }
dialog { max-width:calc(100% - 28px); max-height:calc(100% - 32px); width:490px; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:22px; padding:28px; box-shadow:0 12px 80px #26041455; overscroll-behavior:contain; }
dialog:has(.detail-layout) { width:max-content; min-width:min(680px,calc(100% - 28px)); max-width:min(1080px,calc(100% - 28px)); }
dialog::backdrop { background:#2011189f; backdrop-filter:blur(4px); }
body:has(dialog[open]) { overflow:hidden; }
.close { display:grid; place-items:center; position:absolute; right:12px; top:12px; width:34px; height:34px; background:#f4e9e5; border:0; border-radius:50%; z-index:2; }
.close:hover { background:#eedad4; }
.modal-title { margin:4px 24px 9px 0; font-size:27px; }
.modal-copy { color:var(--muted); line-height:1.65; font-size:14px; }
.store-links { display:flex; gap:9px; flex-wrap:wrap; margin-top:18px; }
.store-links .button { background:var(--ink); color:#fff; }
.detail-layout { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:16px; align-items:center; overflow-wrap:anywhere; }
.detail-layout .modal-title { margin-inline-end:0; font-size:clamp(20px,3.25vw,27px); text-wrap:balance; }
.chat-head { display:flex; align-items:center; gap:12px; }
.chat-head img { width:47px; height:47px; object-fit:cover; object-position:center 17%; border-radius:50%; }
.chat-head .modal-title { margin:0 22px 2px 0; }
.chat-log { display:flex; flex-direction:column; gap:10px; background:#f6eae5; border-radius:14px; margin:16px 0 12px; padding:12px; min-height:142px; max-height:235px; overflow:auto; }
.bubble { max-width:90%; align-self:start; border-radius:13px 13px 13px 3px; padding:9px 11px; background:#fffaf7; font-size:14px; line-height:1.55; }
.bubble.self { align-self:end; background:#ad403b; color:white; border-radius:13px 13px 3px 13px; }
.choices { display:flex; gap:7px; flex-wrap:wrap; }
.choices button { background:#fff9f6; border:1px solid #deb8af; border-radius:40px; padding:7px 11px; font-size:13px; }
.choices button:hover { border-color:#ad403b; }
.chat-download { margin-top:16px; }
@media (max-width: 1000px) {
  .wrap { width:calc(100% - 64px); }
  .head-inner { gap:12px; }
  .head-actions { gap:10px; }
  .head-download { padding:0 11px; }
  .head-download span { display:none; }
  .hero-grid { min-height:440px; }
  .poster-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .character-card { min-height:290px; }
}
@media (max-width: 720px) {
  .wrap { width:calc(100% - 36px); }
  .head-inner { grid-template-columns:1fr 1fr; gap:5px 8px; min-height:0; padding-top:11px; }
  .brand-icon { width:32px; height:32px; }
  .brand-wordmark { width:104px; }
  .head-actions { grid-area:1/2; gap:9px; }
  .head-download { min-height:34px; padding:0 9px; }
  .head-download svg { width:14px; height:14px; }
  .channel-nav { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; }
  .channel-nav a { padding:6px; font-size:13px; white-space:normal; text-align:center; }
  .hero-grid { grid-template-columns:1fr; min-height:0; gap:0; }
  .hero-copy { padding:30px 0 12px; }
  .hero .eyebrow { font-size:10px; padding:6px 9px; }
  h1 { font-size:clamp(38px,10.9vw,56px); margin:15px 0 12px; }
  .hero-copy p { font-size:14px; max-width:390px; line-height:1.7; }
  .hero-actions { margin-top:18px; gap:9px; }
  .hero-actions .button { min-height:43px; padding:0 16px; font-size:13px; }
  .comic-art { --edge:2px; width:94%; margin:14px auto 29px; max-width:478px; }
  .panel { border-radius:6px; box-shadow:0 3px 0 #432028,0 8px 16px #73302f44; }
  .star-one { width:29px; height:29px; }
  .star-two { width:17px; height:17px; }
  .star-three { width:32px; height:32px; }
  .library { padding:29px 0 38px; scroll-margin-top:111px; }
  .section-head { align-items:start; flex-direction:column; margin-bottom:16px; gap:12px; }
  .filters { gap:6px; }
  .filters button { padding:0 11px; min-height:32px; font-size:12px; }
  .poster-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px 10px; }
  .poster-frame { border-radius:8px; }
  .poster-title { margin-top:7px; font-size:12px; }
  .poster-genre { margin-top:3px; font-size:11px; }


  .footer-inner { flex-wrap:wrap; padding:19px 0; gap:15px; }
  .footer-links { flex-basis:100%; gap:17px; }
  .footer-contact { flex-basis:100%; }
  .ai-art { width:95%; max-width:480px; margin:13px auto 11px; }
  .floating-message { font-size:11px; padding:9px 11px; }
  .character-grid { grid-template-columns:1fr; gap:12px; }
  .character-card { min-height:240px; }
  .ai-gallery { padding-bottom:38px; }
  .ai-gallery h2 { margin-bottom:16px; }
  .ai-gallery-grid { gap:8px; }
  .ai-gallery-grid img { border-radius:9px; }
}
@media (max-width: 620px) {
  dialog:has(.detail-layout) { padding:20px; }
  .detail-layout { grid-template-columns:minmax(0,1fr); }
  .detail-layout .modal-title { font-size:clamp(16px,5vw,24px); }
}
@media (max-width: 380px) {
  .wrap { width:calc(100% - 28px); }
  .head-actions { gap:6px; }
  .brand-wordmark { width:96px; }
  .language-globe { display:none; }
  .poster-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  :lang(es) h1, :lang(pt) h1 { font-size:36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition:none !important; scroll-behavior:auto !important; }
}
