@font-face { font-family: Anton; src: url(fonts/anton.woff) format("woff"); font-display: swap; }
@font-face { font-family: Mogra; src: url(fonts/mogra.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Darker Grotesque"; font-weight: 500; src: url(fonts/darker-500.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Darker Grotesque"; font-weight: 700; src: url(fonts/darker-700.woff) format("woff"); font-display: swap; }

:root {
  --pink: #ffd2f0; --pink-deep: #ff9fdd; --plum: #73479f; --green: #1ea58c; --red: #d03333;
  --yellow: #ffdb4d; --ink: #111; --gold: #e9c35b; --black: #0b0b0b; --white: #fff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pink); color: var(--ink); font: 500 20px/1.3 "Darker Grotesque", system-ui, sans-serif; }
a { color: var(--ink); }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
h1, .idea-title { font-family: Mogra, sans-serif; font-weight: 400; color: var(--plum); line-height: 1.05; }
h1 { font-size: clamp(34px, 5vw, 60px); margin: 0 0 8px; }
h2, h3 { font-family: Anton, sans-serif; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
h2 { font-size: 21px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 14px 0 4px; }
p { margin: 0 0 10px; }
small, .meta { font-size: 17px; }
.lead { font-size: 22px; margin-bottom: 24px; }
.pink { color: var(--pink-deep); }

.top { background: var(--black); color: var(--gold); display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding: 12px 24px; }
.brand { font: 26px Mogra, sans-serif; color: var(--gold); text-decoration: none; }
.brand span { color: var(--pink-deep); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 20px; flex-grow: 1; font: 15px Anton, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.top nav a { color: var(--white); text-decoration: none; padding: 8px 0; }
.top nav a.on { color: var(--yellow); }
.who { display: flex; gap: 10px; align-items: center; margin: 0; font: 14px Anton, sans-serif; letter-spacing: .05em; }
.who span { background: var(--pink-deep); color: var(--ink); padding: 5px 9px; text-transform: uppercase; }
.who .tag-isto { background: var(--gold); }
.who .link { color: var(--white); font: 500 16px "Darker Grotesque", sans-serif; }

.banner { background: var(--yellow); border-bottom: 3px solid var(--ink); padding: 8px 24px; font-weight: 700; }
.flash { background: var(--green); border-bottom: 3px solid var(--ink); padding: 8px 24px; font-weight: 700; }
.activity { position: sticky; top: 0; z-index: 10; background: var(--yellow); border-bottom: 3px solid var(--ink); padding: 10px 24px; }
.activity[hidden] { display: none; }
.activity.done { background: var(--green); }
.activity.failed { background: var(--black); color: var(--white); border-color: var(--red); }
.activity.done .spinner, .activity.failed .spinner { display: none; }
.activity-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; overflow-wrap: anywhere; }
.activity-time { font: 14px Anton, sans-serif; letter-spacing: .06em; }
.spinner { width: 16px; height: 16px; flex: none; border: 3px solid var(--ink); border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-top-color: var(--ink); } }
.activity-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; font-size: 16px; font-weight: 700; }
.activity-steps:empty { display: none; }
.activity-steps li { border: 2px solid var(--ink); padding: 1px 8px; background: var(--white); }
.activity-steps .step-now { background: var(--ink); color: var(--yellow); }
.activity-steps .step-done { background: var(--green); }
.activity-steps .step-next { opacity: .65; }
.activity-note { margin: 6px 0 0; font-size: 17px; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 28px 24px 60px; }
.columns { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
.main-col { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.main-col > h2 { margin: 12px 0 -6px; }
.side-col { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

.card { background: var(--white); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 16px; min-width: 0; }
.card.dark { background: var(--black); color: var(--white); border-color: var(--gold); box-shadow: 6px 6px 0 var(--gold); }
.card.dark h2 { color: var(--gold); }
.card.dark a { color: var(--white); }
.card.dark-red { background: var(--black); color: var(--white); border-color: var(--red); box-shadow: 6px 6px 0 var(--red); }
.card.yellow-card { background: var(--yellow); }
.card.auth { max-width: 460px; margin: 8vh auto 0; }
.card.notice { box-shadow: none; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.idea-card { display: flex; flex-direction: column; gap: 2px; }
.idea-title { font-size: 25px; text-decoration: none; margin-bottom: 4px; }
.state { font-weight: 700; }
.state-ready, .state-approved, .state-shot-matched, .state-shot-provided { color: #0d7360; }
.state-rejected, .state-shot-missing { color: var(--red); }

.btn { display: inline-block; min-height: 44px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 9px 14px; font: 14px Anton, sans-serif; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--ink); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.btn.yellow { background: var(--yellow); }
.btn.green { background: var(--green); }
.btn.danger { background: var(--red); color: var(--white); }
.btn.small { padding: 7px 11px; min-height: 40px; }
.link { background: none; border: 0; padding: 4px 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; min-height: 32px; }

label { display: block; font-weight: 700; font-size: 18px; }
input:not([type=checkbox]):not([type=file]), textarea, select { width: 100%; min-height: 44px; margin-top: 3px; border: 3px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); padding: 6px 10px; font: 500 19px "Darker Grotesque", sans-serif; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.stack label { width: 100%; }
.space { margin-top: 18px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 12px 0; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; min-height: 32px; }
.check input { width: 20px; height: 20px; }
.error { color: var(--red); font-weight: 700; }
.dark-red .error, .progress .error { color: var(--red); }
.hint { font-size: 17px; margin: 6px 0 10px; }

.upload { display: flex; flex-direction: column; gap: 8px; }
.upload.drag { outline: 4px dashed var(--plum); outline-offset: 6px; }
.file-btn { align-self: flex-start; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn:focus-within { outline: 3px solid var(--plum); outline-offset: 2px; }
.progress { list-style: none; padding: 0; margin: 0; font-size: 17px; overflow-wrap: anywhere; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { background: var(--white); border: 2px solid var(--ink); padding: 4px 10px; font-weight: 700; font-size: 17px; text-decoration: none; }
.filters a.on { background: var(--yellow); }
.searchbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.searchbar label { font: 15px Anton, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.searchbar input { flex: 1 1 240px; width: auto; margin: 0; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 16px; }
.media-card { padding: 0; box-shadow: 5px 5px 0 var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.thumb { display: block; position: relative; aspect-ratio: 3 / 4; background: var(--black); border-bottom: 3px solid var(--ink); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kind { position: absolute; left: 6px; top: 6px; background: var(--black); color: var(--gold); font: 12px Anton, sans-serif; letter-spacing: .08em; padding: 2px 6px; }
.media-text { display: block; padding: 8px 10px; line-height: 1.15; overflow-wrap: anywhere; }
.media-text strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 17px; }
.media-text small { display: block; margin-top: 4px; font-size: 16px; }

.viewer { background: var(--black); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); color: var(--white); display: flex; justify-content: center; min-height: 240px; align-items: center; padding: 0; }
.viewer p { padding: 20px; margin: 0; }
.viewer video, .viewer img { display: block; max-width: 100%; max-height: 78vh; }
.small-h { font-size: 26px; overflow-wrap: anywhere; }
.moment { border-top: 2px solid #ddd; padding-top: 8px; margin-top: 8px; }
.moment:first-of-type { border: 0; padding: 0; margin: 0; }
.actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.actions form { margin: 0; }
.actions h2 { margin-bottom: 2px; }

.plain { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.plain small { display: block; }
.crumb { margin-bottom: 8px; font-weight: 700; }

.shot { display: flex; gap: 14px; padding: 14px 0; border-top: 2px solid #ddd; scroll-margin-top: 12px; }
.shot:first-of-type { border: 0; padding-top: 0; }
.shot-thumb { flex: 0 0 90px; width: 90px; height: 120px; border: 2px solid var(--ink); background: var(--black); overflow: hidden; }
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-thumb.empty { background: var(--pink); display: flex; align-items: center; justify-content: center; font: 28px Mogra, sans-serif; color: var(--plum); }
.shot-body { min-width: 0; flex: 1; }
.shot-title { font-weight: 700; margin-bottom: 2px; }
.shot .state { font-size: 17px; }
.shot-body .upload { margin-top: 8px; }

.beats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.beat { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: start; }
.who-isto, .who-anni, .who-narrator, .who-none { font: 13px Anton, sans-serif; letter-spacing: .08em; text-align: center; padding: 3px 0; }
.who-isto { background: var(--black); color: var(--gold); }
.who-anni { background: var(--pink); color: var(--plum); }
.who-narrator { background: var(--yellow); }
.who-none { background: #eee; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 500 18px "Darker Grotesque", sans-serif; background: #f5f5f5; padding: 10px; margin: 8px 0 0; }
summary { cursor: pointer; font-weight: 700; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 18px; }
th { font: 13px Anton, sans-serif; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
th, td { padding: 6px 8px 6px 0; border-bottom: 2px solid #ddd; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 15px; }
.selectable { user-select: all; display: block; overflow-wrap: anywhere; background: var(--yellow); padding: 8px; margin-bottom: 10px; }
.token-box { border: 3px solid var(--ink); padding: 12px; margin: 10px 0; }
.token-box pre { font-family: ui-monospace, Menlo, monospace; font-size: 14px; }

.idea-card { position: relative; }
.score-badge { position: absolute; top: -12px; right: -8px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border: 3px solid var(--ink); border-radius: 50%; font: 20px Anton, sans-serif; }
.idea-card .idea-title { padding-right: 34px; }
.score-high { background: var(--green); }
.score-mid { background: var(--yellow); }
.score-low { background: var(--red); color: var(--white); }
.warn { color: var(--red); font-weight: 700; }
.script-ready { font-weight: 700; background: #c4f0e5; padding: 0 6px; align-self: flex-start; }
.review-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.review-head h2 { margin: 0 0 2px; }
.score-big { flex: none; width: 92px; height: 92px; border: 3px solid var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 36px Anton, sans-serif; }
.score-big small { font-size: 13px; }
.verdict { font: 400 23px/1.1 Mogra, sans-serif; color: var(--plum); margin: 0; }
.score-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 20px; margin: 12px 0; }
.score-label { display: flex; justify-content: space-between; gap: 8px; }
.score-label span { font: 14px Anton, sans-serif; }
.score-line small { line-height: 1.15; display: block; }
.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.variant { border: 3px solid var(--ink); background: var(--pink); padding: 12px; min-width: 0; display: flex; flex-direction: column; }
.variant-title { font: 400 22px/1.05 Mogra, sans-serif; color: var(--plum); text-transform: none; letter-spacing: 0; margin: 0 0 6px; }
.variant-lines { padding-left: 20px; margin: 0 0 10px; font-size: 17px; font-weight: 700; flex-grow: 1; }

.wizard { background: var(--black); color: var(--white); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 16px; min-width: 0; }
.wizard:focus { outline: none; }
.wizard h2 { color: var(--gold); margin: 0; }
.wizard-head { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; margin-bottom: 10px; }
.wizard-head .meta { margin: 0; }
.timeline { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0 0 16px; overflow-x: auto; }
.timeline li { min-width: 54px; }
.grow1{flex:1}.grow2{flex:2}.grow3{flex:3}.grow4{flex:4}.grow5{flex:5}.grow6{flex:6}.grow7{flex:7}.grow8{flex:8}.grow9{flex:9}.grow10{flex:10}
.tl-step { width: 100%; min-height: 50px; border: 3px solid transparent; color: var(--ink); cursor: pointer; padding: 3px; font: 12px Anton, sans-serif; letter-spacing: .05em; }
.tl-step span { display: block; }
.tl-video { background: var(--green); }
.tl-photo { background: var(--pink-deep); }
.tl-step.on { border-color: var(--yellow); outline: 2px solid var(--yellow); }
.wizard-page { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.wizard-page[hidden] { display: none; }
.phone { position: relative; flex: 0 0 auto; width: min(280px, 100%); aspect-ratio: 9 / 16; background: #222; border: 3px solid var(--gold); border-radius: 18px; overflow: hidden; margin: 0 auto; }
.phone-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-img[hidden], .phone-empty[hidden] { display: none; }
.phone-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 18px; color: var(--gold); }
.media-badge { position: absolute; top: 10px; left: 10px; font: 15px Anton, sans-serif; letter-spacing: .06em; padding: 4px 9px; border: 2px solid var(--ink); color: var(--ink); }
.media-video { background: var(--green); }
.media-photo { background: var(--pink-deep); }
.phone-caption { position: absolute; left: 12px; right: 12px; margin: 0; padding: 6px 9px; line-height: 1.1; }
.zone-ylhaalla { top: 52px; }
.zone-keskella { top: 44%; }
.zone-alhaalla { bottom: 44px; }
.cap-isto { background: var(--black); color: var(--gold); border: 3px solid var(--gold); box-shadow: 3px 3px 0 var(--gold); font: 20px Anton, sans-serif; transform: rotate(-1deg); text-transform: uppercase; }
.cap-anni { background: var(--pink); color: var(--plum); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 19px Mogra, sans-serif; transform: rotate(1deg); }
.cap-narrator, .cap-none { background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); font-weight: 700; }
.wizard-body { flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; }
.wizard-count { font: 14px Anton, sans-serif; letter-spacing: .1em; color: var(--gold); margin-bottom: 2px; }
.wizard-title { font: 400 30px/1.05 Mogra, sans-serif; color: var(--pink-deep); letter-spacing: 0; text-transform: none; margin: 0 0 8px; }
.film-what { background: var(--yellow); color: var(--ink); padding: 6px 10px; display: inline-block; }
.director { border-left: 4px solid var(--gold); padding-left: 10px; }
.face-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wizard .state-shot-missing { color: #ff8d8d; }
.wizard .state-shot-matched, .wizard .state-shot-provided { color: #6fe3c9; }
.wizard .upload .wide, .wizard .upload .check, .wizard .hint { color: var(--white); }
.wizard .link { color: var(--gold); }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.wizard-nav .btn { box-shadow: none; }
.wizard-nav .btn:disabled { opacity: .4; cursor: default; }
.wizard-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #555; }
.dot.on { background: var(--yellow); }
.char-portrait { float: right; width: 96px; height: 128px; object-fit: cover; border: 3px solid currentColor; margin: 0 0 8px 10px; }
.char-portrait[hidden] { display: none; }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; margin-bottom: 28px; }
.theme-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.theme-card:hover { color: var(--ink); transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }
.theme-active { background: #bdeedd; }
.theme-idea { background: var(--white); }
.theme-ended { background: #ddd; }
.theme-kind { font: 13px Anton, sans-serif; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.theme-name { font: 400 30px/1.05 Mogra, sans-serif; color: #0d5c4d; }
.theme-idea .theme-name { color: var(--plum); }
.theme-core { font-size: 19px; line-height: 1.15; flex-grow: 1; }
.theme-state { font-weight: 700; margin-top: 6px; }
.theme-meta { font-size: 16px; line-height: 1.15; }
.theme-new { max-width: 520px; }
.theme-head { border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 18px; margin-bottom: 24px; overflow-wrap: anywhere; }
.theme-head h1 { color: #0d5c4d; }
.theme-head.theme-idea h1 { color: var(--plum); }
.theme-head .lead { margin-bottom: 8px; }
.theme-dose { font-weight: 700; margin: 0; }
.throw-form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.throw-form label { width: 100%; }
.ai-asks { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 14px 0; padding: 12px 0; border-block: 2px dashed #bbb; }
.ai-ask-field { display: flex; gap: 8px; align-items: flex-end; flex: 1 1 250px; min-width: 0; }
.ai-ask-field label { flex: 1; min-width: 0; }
.throws { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.throw { background: var(--yellow); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 10px 12px; min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.throw:nth-child(3n+2) { background: var(--pink); }
.throw:nth-child(3n) { background: #bdeedd; }
.throw-meta { font-size: 15px; margin-bottom: 4px; }
.throw-actions { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 8px; }
.throw-actions .btn { box-shadow: none; }
.parked { margin-top: 14px; }
.parked .throws { margin-top: 10px; }
.rules { padding-left: 18px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; line-height: 1.2; }
.rules form { display: inline; margin-left: 4px; font-size: 15px; }
.theme-ideas { padding-left: 18px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.theme-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0; }
.theme-chip { display: inline-block; border: 2px solid var(--ink); padding: 0 7px; font-size: 15px; font-weight: 700; text-decoration: none; background: var(--white); }
.theme-chip.size-lead { background: var(--green); }
.theme-chip.size-side { background: #bdeedd; }
.idea-theme { margin-bottom: 8px; }
.terminal { background: #07110a; color: #7dff9b; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; line-height: 1.35; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 18px; overflow-wrap: anywhere; }
.term-head h1 { font: 700 clamp(26px, 4vw, 40px)/1.1 ui-monospace, Menlo, Consolas, monospace; color: #b8ffc8; margin: 0 0 4px; }
.term-head p { margin: 0 0 16px; }
.cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.term-card { border: 1px solid #2c6b3d; padding: 12px; min-width: 0; }
.term-card p { margin: 0 0 4px; }
.term-card h2 { font: 700 13px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: #49c76c; margin: 0 0 8px; }
.term-card h2::before { content: "# "; }
.term-big { font-size: 30px; font-weight: 700; color: #d4ffdd; line-height: 1.1; }
.term-wide { grid-column: 1 / -1; overflow-x: auto; }
.term-list { list-style: none; padding: 0; margin: 4px 0 0; }
.term-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted #1f4a2b; }
.term-error { color: #ff8d8d; font-size: 13px; }
.term-table { font-size: 13px; margin: 0; }
.term-table th { font: 700 12px ui-monospace, Menlo, Consolas, monospace; color: #49c76c; text-transform: none; letter-spacing: 0; }
.term-table th, .term-table td { border-color: #1f4a2b; white-space: nowrap; }
.spark { display: block; width: 100%; height: 50px; margin: 6px 0; border-bottom: 1px solid #2c6b3d; }
.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.money-dim { opacity: .45; }
.money-tiny { opacity: .55; }
.money-tiny .money-dim { opacity: .8; }
.term-small { font-size: 12px; color: #49c76c; }
.term-provider { border-top: 1px dotted #2c6b3d; padding-top: 6px; margin-top: 6px; }
.term-provider:first-of-type { border: 0; padding: 0; margin: 0; }
.term-provider-name { color: #49c76c; font-weight: 700; }
.term-big small { font-size: 14px; }
.bars { display: block; width: 100%; height: 50px; margin: 6px 0 2px; border-bottom: 1px solid #2c6b3d; }
.bars rect { fill: #7dff9b; }
.spark polyline { fill: none; stroke: #7dff9b; stroke-width: 2; vector-effect: non-scaling-stroke; }

.anni-room { background: #fff3fa; border: 3px solid var(--plum); box-shadow: 8px 8px 0 var(--plum); padding: clamp(14px, 3vw, 28px); }
.anni-head { text-align: center; margin-bottom: 18px; }
.anni-head h1 { font-size: clamp(42px, 7vw, 76px); margin: 0; }
.anni-head h1::before, .anni-head h1::after { content: " ♥ "; color: var(--pink-deep); font-size: .55em; vertical-align: middle; }
.anni-head p { font-size: 22px; margin: 4px 0 0; }
.anni-add { position: relative; max-width: 560px; margin: 8px auto 30px; background: var(--white); border: 3px solid var(--ink); padding: 24px 18px 18px; display: flex; flex-direction: column; gap: 10px; transform: rotate(-.5deg); box-shadow: 5px 5px 0 var(--pink-deep); }
.anni-add h2 { font: 400 27px Mogra, sans-serif; letter-spacing: 0; text-transform: none; color: var(--plum); margin: 0; }
.anni-add .btn { align-self: flex-start; background: var(--pink-deep); }
.tape { position: absolute; top: -13px; left: 50%; width: 92px; height: 25px; margin-left: -46px; background: #ffdb4dcc; transform: rotate(-3deg); border: 1px solid #0002; }
.moodboard { columns: 3 300px; column-gap: 22px; }
.pin { position: relative; break-inside: avoid; background: var(--white); border: 3px solid var(--ink); padding: 16px 14px 10px; margin: 16px 0 26px; overflow-wrap: anywhere; font-size: 18px; line-height: 1.22; }
.pin-0 { transform: rotate(.5deg); background: #fff; }
.pin-1 { transform: rotate(-.6deg); background: #fff9df; }
.pin-2 { transform: rotate(.3deg); background: #eefbf7; }
.pin-3 { transform: rotate(-.3deg); background: #f8efff; }
.pin:hover { transform: none; }
.pin-img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); margin-bottom: 10px; }
.pin-title { font: 400 23px/1.05 Mogra, sans-serif; letter-spacing: 0; text-transform: none; color: var(--plum); margin: 0 0 4px; }
.pin h3 { font-size: 13px; color: var(--plum); margin: 12px 0 3px; }
.pin ul { padding-left: 18px; margin: 0; }
.pin-note { font-weight: 700; }
.pin-link, .pin-small { font-size: 16px; }
.palette { display: block; width: 150px; max-width: 100%; height: auto; margin: 6px 0 10px; }
.stickers { display: flex; flex-wrap: wrap; gap: 6px; }
.sticker { background: var(--pink); border: 2px solid var(--plum); border-radius: 99px; padding: 0 10px; font-size: 16px; font-weight: 700; color: #4d2a70; }
.sticker:nth-child(even) { background: var(--yellow); transform: rotate(-2deg); }
.sticker:nth-child(3n) { background: #c4f0e5; transform: rotate(2deg); }
.seed { border-top: 2px dashed var(--pink-deep); padding: 8px 0; }
.seed p { margin-bottom: 6px; }
.pin-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; margin-top: 10px; }
.anni-empty { text-align: center; font: 400 26px Mogra, sans-serif; color: var(--plum); margin: 30px 0; }

.sr { position: absolute; left: -9999px; }
.muted { opacity: .7; }
.proposals { background: var(--yellow); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 16px; margin-bottom: 28px; scroll-margin-top: 90px; }
.proposals-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.proposals-head h2 { margin: 0; }
.proposal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 14px; }
.proposal-list:empty { display: none; }
.proposal { background: var(--white); border: 3px solid var(--ink); padding: 12px; min-width: 0; overflow-wrap: anywhere; }
.proposal-isto { border-left: 10px solid var(--black); }
.proposal-anni { border-left: 10px solid var(--pink-deep); }
.proposal-duo { border-left: 10px solid var(--plum); }
.proposal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.diff { margin-bottom: 6px; }
ins { background: #c4f0e5; text-decoration: none; padding: 0 3px; }
del { background: #f8d0d0; padding: 0 3px; }

.char-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; align-items: start; margin-bottom: 28px; }
.char-card { border: 3px solid var(--ink); min-width: 0; scroll-margin-top: 90px; overflow-wrap: anywhere; }
.char-head { padding: 18px; }
.char-real { font: 13px Anton, sans-serif; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
.char-name { font: 400 clamp(38px, 5vw, 58px)/1 Mogra, sans-serif; letter-spacing: 0; text-transform: none; margin: 0 0 6px; }
.char-title { font-size: 21px; font-weight: 700; margin-bottom: 2px; line-height: 1.15; }
.char-motto { font-size: 19px; margin-bottom: 12px; }
.char-section { padding: 12px 18px 16px; border-top: 3px solid; }
.char-section h3 { margin: 0 0 8px; font-size: 16px; }

.char-isto { background: var(--black); color: var(--white); border-color: var(--gold); box-shadow: 8px 8px 0 var(--gold); }
.char-isto .char-name, .char-isto h3, .char-isto .char-real { color: var(--gold); }
.char-isto .char-section { border-color: var(--gold); }
.char-isto .stat-fill { background: var(--gold); }
.char-isto .stat-bar, .char-isto .level-bar { background: #333; border-color: var(--gold); }
.char-isto a { color: var(--gold); }
.char-isto .level-badge { background: var(--gold); color: var(--ink); }

.char-anni { background: var(--pink-deep); box-shadow: 8px 8px 0 var(--plum); border-color: var(--plum); }
.char-anni .char-name, .char-anni h3, .char-anni .char-real { color: #4d2a70; }
.char-anni .char-section { border-color: var(--plum); }
.char-anni .stat-fill { background: var(--plum); }
.char-anni .stat-bar, .char-anni .level-bar { background: var(--pink); border-color: var(--plum); }
.char-anni .level-badge { background: var(--plum); color: var(--white); }

.char-duo { background: var(--white); box-shadow: 8px 8px 0 var(--ink); margin-bottom: 28px; }
.char-duo .char-name { color: var(--plum); }
.char-duo .char-name span { color: var(--ink); font-size: .6em; }
.char-duo .char-section { border-color: var(--ink); }

.level { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: center; }
.level-badge { font: 15px Anton, sans-serif; letter-spacing: .08em; padding: 3px 8px; }
.level-rank { font-weight: 700; }
.level-bar { grid-column: 1 / -1; height: 14px; border: 2px solid; display: block; }
.level-xp { grid-column: 1 / -1; font-size: 16px; }
.xp-why { margin-top: 6px; font-size: 17px; }

.entries { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 10px; }
.entries:empty { display: none; }
.entry-view strong { margin-right: 4px; }
.entry-value { display: block; font-size: 18px; line-height: 1.2; }
.quote { font-weight: 700; font-size: 20px; }
.quote::before, .quote::after { content: '"'; }
.pill { display: inline-block; font: 12px Anton, sans-serif; letter-spacing: .06em; border: 1px solid currentColor; padding: 0 5px; }
.entry-source { font-size: 16px; }
.stat-num { font: 14px Anton, sans-serif; float: right; }
.stat-bar { display: block; height: 10px; border: 2px solid var(--ink); margin: 3px 0; clear: both; }
.stat-fill { display: block; height: 100%; background: var(--plum); width: 0; }
.w5{width:5%}.w10{width:10%}.w15{width:15%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w35{width:35%}.w40{width:40%}.w45{width:45%}.w50{width:50%}.w55{width:55%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}.w95{width:95%}.w100{width:100%}
details summary { font-size: 16px; }
.entry-edit form, .add-entry form { margin: 8px 0; color: var(--ink); background: var(--white); padding: 10px; border: 2px solid var(--ink); }
.entry-edit form .link { color: var(--ink); }
.entries.compact .entry-view { display: none; }
.add-entry summary { font-weight: 700; }

.battles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 12px; }
.battle { background: var(--yellow); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 14px; transform: rotate(-.4deg); min-width: 0; }
.battle:nth-child(even) { background: var(--pink); transform: rotate(.4deg); }
.battle h4 { font: 400 25px/1.05 Mogra, sans-serif; color: var(--plum); margin: 0 0 6px; }
.scoreboard { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 6px; }
.score { width: 100%; min-height: 64px; border: 2px solid var(--ink); font: 12px Anton, sans-serif; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; padding: 6px; }
.score span { display: block; font-size: 26px; }
.score-isto { background: var(--black); color: var(--gold); }
.score-anni { background: var(--pink-deep); color: var(--ink); }

.history { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; overflow-wrap: anywhere; }
.history small { display: block; }

@media (max-width: 640px) {
  body { font-size: 19px; }
  .top { padding: 10px 16px; }
  .wrap { padding: 20px 16px 48px; }
  .banner, .flash, .activity { padding-left: 16px; padding-right: 16px; }
  .anni-head h1::before, .anni-head h1::after { content: none; }
  .grid-cards { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
