:root { color-scheme: dark; --paper: #eeeee7; --muted: #bdc1b5; --accent: #d5dfb4; --ink: #08090b; font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 20px; background: var(--ink); color: var(--paper); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button, a, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.cinema { position: relative; isolation: isolate; height: 100svh; min-height: 320px; overflow: hidden; background: #000; }
#film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; z-index: -1; }
.skip { position: absolute; top: 24px; left: 32px; display: flex; align-items: center; gap: 16px; min-height: 80px; padding: 0 28px; font-size: 30px; font-weight: 600; background: #08090bbf; border-radius: 44px; }
.skip kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 70px; min-height: 52px; padding: 4px 12px; border: 1px solid #ffffff60; border-bottom: 4px solid #ffffff50; border-radius: 9px; background: linear-gradient(#30322f, #1a1c19); box-shadow: 0 2px 5px #0008, inset 0 1px 0 #ffffff20; font: 500 24px/1 Arial, Helvetica, sans-serif; color: var(--paper); }
.skip:hover, button:hover { color: var(--accent); }
.film-footer { position: absolute; bottom: 32px; right: 32px; }
.player-controls { display: flex; gap: 20px; }
.player-icon, .start-film { width: 88px; height: 88px; display: grid; place-items: center; border: 1px solid #ffffff66; border-radius: 50%; background: #08090bbf; color: #fff; }
.player-icon svg, .start-film svg { width: 44px; height: 44px; }
.player-icon:hover, .start-film:hover { background: #ffffff20; border-color: var(--accent); }
.start-film { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.player-status { position: absolute; top: 25%; left: 50%; transform: translateX(-50%); background: #08090be6; padding: 15px; max-width: 90%; font-size: 20px; line-height: 1.5; text-align: center; }
.cinema:fullscreen { width: 100%; height: 100%; }
.studio { min-height: 100svh; padding: 32px 40px 60px; }
.studio-header { max-width: 1320px; margin: 0 auto; }
.wordmark { display: inline-block; padding: 12px 8px 20px; font-family: Impact, 'Arial Black', sans-serif; font-weight: 900; font-size: clamp(72px, 16vw, 220px); line-height: .9; letter-spacing: -.055em; color: #fffce8; text-shadow: 5px 5px 0 #ef3248, -3px -2px 0 #42d9d0; }
.wordmark > span { display: inline-flex; align-items: baseline; }
.wordmark > span > span { display: inline-block; }
.wordmark > span > span:nth-child(2) { transform: rotate(-8deg) translateY(.025em); }
.wordmark > span > span:nth-child(3) { transform: rotate(5deg) scaleY(1.12); color: #e4ee61; }
.wordmark > span > span:nth-child(4) { transform: rotate(-5deg); }
.wordmark > span > span:nth-child(5) { transform: rotate(8deg) translateY(-.02em); }
.wordmark > span > span:nth-child(6) { transform: rotate(-6deg); }
.wordmark > span > span:nth-child(7) { transform: rotate(4deg) translateY(.025em); }
.wordmark .mark-dot { color: #ef3248; text-shadow: 3px 3px 0 #e4ee61; }
.wordmark:hover { text-shadow: 7px 7px 0 #ef3248, -5px -3px 0 #42d9d0; }
.studio-content { max-width: 1320px; margin: 6svh auto 0; }
.composer { max-width: 960px; margin: 0 auto 96px; }
.prompt-heading { display: block; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 32px; }
.quick-guide { margin-bottom: 24px; color: var(--muted); font-size: 20px; line-height: 1.6; }
.quick-guide summary { padding: 8px 0; }
.quick-guide p { margin: 12px 0; }
.quick-guide ul { padding-left: 24px; margin: 12px 0; }
.guide-link, .docs-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.site-footer { max-width: 1320px; margin: 64px auto 0; padding-top: 24px; border-top: 1px solid #ffffff20; display: flex; flex-wrap: wrap; gap: 16px 32px; color: var(--muted); font-size: 20px; line-height: 1.5; }
.site-footer a { padding: 8px 0; text-decoration: underline; text-underline-offset: 5px; }
.docs-page { max-width: 1400px; margin: 0 auto; padding: 32px 40px 60px; }
.docs-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 64px; }
.docs-wordmark { font-size: clamp(64px, 8vw, 112px); }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; align-items: start; }
.docs-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; font-size: 20px; line-height: 1.5; }
.docs-nav a { color: var(--muted); text-decoration: underline; text-underline-offset: 5px; }
.docs-nav a:hover, .site-footer a:hover { color: var(--accent); }
.docs-content { min-width: 0; font-size: 22px; line-height: 1.65; overflow-wrap: anywhere; }
.docs-content h1 { font-size: clamp(48px, 6vw, 76px); line-height: 1.1; letter-spacing: -2px; margin: 0 0 20px; font-weight: 500; }
.docs-intro { color: var(--muted); font-size: 26px; }
.docs-content section { margin-top: 64px; scroll-margin-top: 28px; }
.docs-content h2 { font-size: clamp(32px, 4vw, 42px); line-height: 1.2; letter-spacing: -1px; font-weight: 500; margin: 0 0 24px; }
.docs-content h3 { font-size: 25px; line-height: 1.4; margin: 32px 0 16px; font-weight: 600; }
.docs-content p { margin: 16px 0; }
.docs-content ul { padding-left: 26px; }
.docs-content li + li { margin-top: 12px; }
.docs-content blockquote { max-width: none; padding: 24px; border-left: 3px solid var(--accent); background: #151812; border-radius: 0 16px 16px 0; font-size: 22px; }
.docs-content code { font-family: ui-monospace, monospace; font-size: .9em; color: var(--paper); }
.docs-content pre { max-width: 100%; margin: 24px 0; padding: 24px; overflow-x: auto; background: #151812; border: 1px solid #ffffff30; border-radius: 16px; font-size: 18px; line-height: 1.6; tab-size: 2; }
.docs-content pre code { font-size: inherit; }
.docs-table-wrap { overflow-x: auto; margin: 24px 0; }
.docs-content table { width: 100%; border-collapse: collapse; font-size: 20px; line-height: 1.6; }
.docs-content th, .docs-content td { padding: 16px; text-align: left; border-bottom: 1px solid #ffffff30; vertical-align: top; }
.docs-content th { color: var(--accent); font-weight: 600; }
.docs-code-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.docs-code-actions .use-prompt { margin-top: 0; }
#copy-scene-status { color: var(--muted); font-size: 18px; }
.prompt-box { border: 1px solid #ffffff30; border-radius: 24px; background: #151812; padding: 28px; }
.prompt-box:focus-within { border-color: var(--accent); }
textarea { display: block; width: 100%; min-height: 180px; resize: vertical; padding: 0; border: 0; background: transparent; color: var(--paper); font-size: clamp(22px, 2vw, 26px); line-height: 1.6; }
textarea::placeholder { color: #b0b5a6; }
textarea:focus-visible { outline: none; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
#generation-status { color: var(--muted); font-size: 18px; line-height: 1.5; }
.generate { display: flex; align-items: center; gap: 24px; padding: 18px 28px; min-height: 64px; border-radius: 16px; background: var(--accent); color: var(--ink); font-size: 22px; font-weight: 600; }
.generate:disabled { cursor: default; opacity: .65; }
.example { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 64px; padding-top: 48px; border-top: 1px solid #ffffff20; }
.example h2 { font-size: clamp(34px, 3vw, 44px); letter-spacing: -1px; font-weight: 400; margin: 0 0 24px; }
.example-label { color: var(--muted); font-size: 22px; line-height: 1.5; margin: 0 0 20px; }
blockquote { margin: 0; max-width: 44ch; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.65; color: #e0e3d8; }
.use-prompt { display: inline-flex; align-items: center; gap: 28px; padding: 18px 24px; min-height: 64px; margin-top: 28px; border: 1px solid #d5dfb44d; border-radius: 16px; background: #d5dfb40d; font-size: 22px; color: var(--accent); }
.example-film { display: block; width: 100%; aspect-ratio: 12/5; background: #000; image-rendering: pixelated; border-radius: 16px; }
.examples { min-width: 0; }
.example + .example { margin-top: 64px; }
.example > * { min-width: 0; }
.example-description, .json-hint, .api-example { font-size: 20px; line-height: 1.6; color: var(--muted); }
.input-modes { display: flex; gap: 12px; margin-bottom: 20px; }
.input-modes button { padding: 14px 22px; border-radius: 14px; border: 1px solid #ffffff30; font-size: 22px; }
.input-modes button[aria-selected="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.json-input { font-family: ui-monospace, monospace; font-size: 20px; tab-size: 2; }
.json-hint { margin: 0 0 18px; }
.input-limits { margin: 18px 0 0; color: var(--muted); font-size: 20px; line-height: 1.5; }
.prompt-limits { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
#prompt-count { font-variant-numeric: tabular-nums; }
#json-input-status { margin-top: 18px; overflow-wrap: anywhere; }
.scene-inspector { margin-top: 24px; border: 1px solid #ffffff30; border-radius: 16px; }
summary { cursor: pointer; padding: 18px 20px; font-size: 22px; color: var(--accent); }
summary:focus-visible, pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.scene-inspector pre { max-height: 440px; margin: 0; padding: 22px; overflow: auto; background: #10130f; border-radius: 0 0 16px 16px; font: 18px/1.6 ui-monospace, monospace; tab-size: 2; }
.scene-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; }
.text-link, .video-link, .back-link { display: inline-block; color: var(--accent); font-size: 22px; line-height: 1.5; padding: 14px 0; text-decoration: underline; text-underline-offset: 5px; }
.text-link { margin-top: 28px; }
.video-link { margin-top: 18px; }
.api-example summary { padding-left: 0; }
.api-example code { overflow-wrap: anywhere; }
.api-example p { margin-top: 0; }
.video-page { display: flex; flex-direction: column; gap: 32px; }
.video-page .examples { order: 1; }
.video-page .example { grid-template-columns: 1fr; gap: 32px; }
.video-page .example-film { grid-row: 1; }
.video-page .composer { order: 2; width: 100%; margin-top: 48px; }
.generation-result { margin-top: 32px; }
.recent-videos { margin-bottom: 64px; min-width: 0; }
.recent-videos h2 { font-size: clamp(30px, 3vw, 40px); font-weight: 400; margin: 0 0 24px; }
.recent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 24px; }
.recent-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #ffffff30; border-radius: 16px; overflow: hidden; background: #151812; }
.recent-card img { width: 100%; aspect-ratio: 12/5; object-fit: cover; image-rendering: pixelated; background: #000; }
.recent-card-body { padding: 20px; }
.recent-card h3 { font-size: 22px; line-height: 1.5; margin: 0 0 12px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-card p, .recent-card time { color: var(--muted); font-size: 18px; line-height: 1.5; margin: 0; }
.recent-card time { display: block; margin-top: 12px; }
.video-page .recent-videos { order: 3; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 950px) {
  .docs-page { padding: 24px 20px 40px; }
  .docs-header { margin-bottom: 32px; }
  .docs-layout { grid-template-columns: 1fr; gap: 40px; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
  .docs-content th, .docs-content td { padding: 12px 8px; }
  .docs-content pre { padding: 18px; }
  .skip { top: 16px; left: 16px; min-height: 72px; padding: 0 24px; font-size: 26px; }
  .film-footer { bottom: 20px; right: 20px; }
  .player-controls { gap: 16px; }
  .player-icon { width: 80px; height: 80px; }
  .player-icon svg { width: 40px; height: 40px; }
  .studio { padding: 24px 20px 40px; }
  .studio-content { margin-top: 48px; }
  .composer { margin-bottom: 48px; }
  .prompt-heading { letter-spacing: -.8px; }
  .prompt-box { padding: 22px; }
  .composer-actions { gap: 20px; }
  .generate { padding: 16px 24px; gap: 20px; margin-left: auto; }
  .example { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .example-film { grid-row: 1; }
}
