:root { color-scheme: dark; --bg: #0d0c11; --card: #1c1a23; --line: #2a2735; --fg: #edebf3; --muted: #9893a5; --accent: #5b3df5; --accent-hi: #7a61ff; --bad: #ff8f8f; --good: #7ee2a8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 440px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); }
h1 { font-size: 24px; line-height: 1.2; margin: 12px 0 8px; }
.muted { color: var(--muted); }
.cast { display: flex; gap: 12px; padding: 12px 14px; margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow-wrap: anywhere; }
.cast img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.cast p { margin: 2px 0 0; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.score { display: flex; justify-content: space-between; align-items: baseline; padding: 14px; margin: 10px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.score b { font-size: 28px; }
.score .bad { color: var(--bad); }
.score .good { color: var(--good); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 10px; }
button { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font: inherit; font-size: 17px; font-weight: 650; cursor: pointer; }
button:hover:not(:disabled) { background: var(--accent-hi); }
button:disabled { opacity: .6; cursor: progress; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.other { display: flex; gap: 10px; }
.other input { flex: 1; min-width: 0; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--fg); font: inherit; }
.other button { width: auto; padding: 0 20px; }
#status { min-height: 1.5em; margin: 12px 0 0; }
#status.err { color: var(--bad); }
a { color: #b3a6ff; }
