/* Ev konserti (/konsert) and the concert hall (/konsert/<code>), owner 2026-11-11 task 12. Builds on proto.css +
   home.css; the planner uses theme colours, the hall its own stage colours per theme. */
.th-classic { background: linear-gradient(135deg, #5b1a2a, #9c2f45); }
.th-night { background: linear-gradient(135deg, #1f2440, #2f6f73); }
.th-novruz { background: linear-gradient(135deg, #2e5b2a, #b8913a); }
.th-holiday { background: linear-gradient(135deg, #3b2a5b, #e07a3c); }
.kn { max-width: 760px; padding-top: 12px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.kn .crumb { display: block; width: fit-content; margin-bottom: 10px; font-size: 0.85rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.kn h1 { font-size: 1.6rem; margin-top: 4px; }
.kn .lead { margin-top: 4px; color: var(--ink-2); }
.kn-lbl { margin: 16px 0 6px; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kn-newbtn { margin-top: 14px; }
.kn-free { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.84rem; font-weight: 800; }
.kn-note { margin: 10px 0 0; font-size: 0.8rem; font-weight: 700; color: var(--muted); line-height: 1.45; }
.kn-mine { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.kn-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.kn-item:hover { border-color: var(--accent); }
.kn-cv { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 900; }
.kn-tx { flex: 1; min-width: 0; display: grid; }
.kn-tx b { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .kn-tx small { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.kn-item em { flex: none; font-style: normal; font-size: 0.7rem; font-weight: 900; color: var(--teal); }
.kn-top { display: flex; align-items: center; gap: 10px; } .kn-top b { font-size: 1.1rem; }
.kn .icon-btn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; }
.kn-fld { display: grid; gap: 4px; margin-top: 10px; font-size: 0.74rem; font-weight: 900; color: var(--muted); min-width: 0; }
.kn-fld input, .kn-fld select { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-weight: 800; }
.kn-row2 { display: grid; grid-template-columns: 1fr 90px; gap: 8px; }
.kn-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.kn-th { min-height: 48px; border: 2px solid transparent; border-radius: 12px; color: #fff; font: inherit; font-weight: 900; font-size: 0.74rem; cursor: pointer; }
.kn-th.on { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--paper); }
.kn-prog, .kn-pick { display: grid; gap: 6px; }
.kn-pi, .kn-src { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; text-align: left; }
.kn-src { width: 100%; border-style: dashed; cursor: pointer; } .kn-src:hover { border-color: var(--accent); }
.kn-no, .kn-plus { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 0.76rem; color: #fff; background: var(--ink-bg); }
.kn-plus { background: var(--accent); }
.kn-mv { flex: none; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-size: 0.8rem; cursor: pointer; }
.kn-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.84rem; font-weight: 800; color: var(--ink-2); }
.kn-check input { width: 20px; height: 20px; accent-color: var(--ok); }
#kn-save { margin-top: 16px; }
.kn-msg { margin: 10px 0 0; padding: 9px 11px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 13%, var(--card)); font-size: 0.84rem; font-weight: 800; }
.kn-sharebox { display: grid; gap: 8px; margin-top: 14px; padding: 12px; }
.kn-linkrow { display: flex; gap: 6px; } .kn-linkrow input { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); color: var(--ink); font: inherit; font-size: 0.8rem; font-weight: 700; }
#kn-poster em { font-style: normal; font-size: 0.66rem; font-weight: 900; padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); }
.kn-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.kn-stats div { padding: 9px 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-align: center; font-size: 0.7rem; font-weight: 800; color: var(--muted); }
.kn-stats b { display: block; font-size: 1.2rem; color: var(--ink); }
.kn-msgs { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.kn-m { padding: 9px 11px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 0.84rem; font-weight: 700; display: grid; gap: 3px; }
.kn-m b { font-size: 0.74rem; color: var(--accent-ink); } .kn-m.pending { border-style: dashed; } .kn-m.rejected { opacity: 0.55; }
.kn-mact { display: flex; gap: 6px; } .kn-mact:empty { display: none; }
.kn-delete { display: block; margin: 22px auto 0; color: #c0392b; }
/* the poster (A4 portrait) — only in print */
.kn-poster { display: none; }
@media print {
  @page { size: A4 portrait; margin: 0; }
  body.kn-printing > *:not(.kn-poster) { display: none !important; }
  body.kn-printing .kn-poster { display: block; width: 210mm; height: 297mm; position: relative; overflow: hidden; color: #f3ead8; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.kn-poster::before { content: ''; position: absolute; inset: 9mm; border: 1.5px solid rgba(217, 192, 138, 0.75); }
.kn-poster .in { position: absolute; inset: 22mm 18mm; text-align: center; font-family: system-ui, sans-serif; }
.kn-poster .k { font-size: 11pt; letter-spacing: 0.32em; color: #d9c08a; font-weight: 900; }
.kn-poster h2 { font-family: Georgia, serif; font-size: 44pt; margin: 14mm 0 0; line-height: 1.05; }
.kn-poster .who { font-family: Georgia, serif; font-style: italic; font-size: 20pt; margin-top: 8mm; color: #ffe7a8; }
.kn-poster .when { margin-top: 6mm; font-weight: 900; font-size: 14pt; letter-spacing: 0.05em; }
.kn-poster .orn { margin: 10mm auto; width: 50mm; height: 1px; background: #d9c08a; }
.kn-poster .pp { font-size: 14pt; line-height: 1.8; font-weight: 600; } .kn-poster .pp i { font-style: normal; color: #d9c08a; }
.kn-poster .pp.hint { font-size: 11pt; opacity: 0.85; }
.kn-poster .ft { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; text-align: left; font-size: 10pt; font-weight: 700; color: #d9c08a; }
.kn-poster .ft svg { width: 34mm; height: 34mm; background: #fff; padding: 2mm; border-radius: 2mm; }
/* the hall */
.kh-body { --stage: #120f1c; background: var(--stage); color: #f3ead8; }
.kh-body[data-theme=night] { --c1: #1f2a4a; --c2: #2f6f73; } .kh-body[data-theme=classic], .kh-body:not([data-theme]) { --c1: #7a1f2f; --c2: #9c2f45; }
.kh-body[data-theme=novruz] { --c1: #2e5b2a; --c2: #8a6a1e; } .kh-body[data-theme=holiday] { --c1: #3b2a5b; --c2: #b9531c; }
.kh-body .site-header { background: var(--stage); border-color: rgba(255, 255, 255, 0.08); }
.kh-body .site-header .brand-name, .kh-body .site-header a, .kh-body .site-header summary { color: #f3ead8; }
.kh { max-width: 640px; padding-top: 10px; padding-bottom: 48px; }
.kh-stage { position: relative; height: 290px; border-radius: 18px; overflow: hidden; background: radial-gradient(ellipse at 50% 18%, rgba(255, 236, 190, 0.5), rgba(255, 236, 190, 0) 55%), linear-gradient(#2a1a2e, #120f1c); }
.kh-valance { position: absolute; left: 0; right: 0; top: 0; height: 24px; z-index: 3; background: repeating-linear-gradient(90deg, var(--c2) 0 18px, var(--c1) 18px 36px); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.kh-cur { position: absolute; top: 0; bottom: 0; width: 51%; z-index: 2; background: repeating-linear-gradient(90deg, var(--c1) 0 10px, var(--c2) 10px 20px); box-shadow: inset -8px 0 14px rgba(0, 0, 0, 0.35); transition: width 1.4s ease; }
.kh-cur.l { left: 0; } .kh-cur.r { right: 0; transform: scaleX(-1); }
.kh-stage.open .kh-cur { width: 22%; }
.kh-piano { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 170px; height: 70px; }
.kh-piano i { position: absolute; display: block; }
.kh-piano .body { left: 0; right: 0; bottom: 0; height: 38px; background: #0b0b10; border-radius: 6px 6px 3px 3px; }
.kh-piano .lid { left: 10px; width: 132px; bottom: 34px; height: 44px; background: #0b0b10; transform: skewX(-28deg); transform-origin: bottom; border-radius: 4px; }
.kh-piano .keys { left: 12px; right: 12px; bottom: 25px; height: 9px; background: repeating-linear-gradient(90deg, #f3ead8 0 6px, #cfc6b4 6px 7px); }
.kh-head { position: absolute; left: 0; right: 0; top: 40px; z-index: 4; text-align: center; padding: 0 20px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.kh-head h1 { margin: 0; font-family: Georgia, serif; font-size: 1.7rem; color: #fff; }
.kh-head p { margin: 4px 0 0; font-weight: 800; color: #ffe7a8; }
.kh-live { position: absolute; left: 12px; top: 32px; z-index: 5; padding: 3px 9px; border-radius: 99px; background: #d64545; color: #fff; font-size: 0.66rem; font-weight: 900; letter-spacing: 0.06em; }
.kh-viewers { position: absolute; right: 12px; top: 32px; z-index: 5; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, 0.5); font-size: 0.7rem; font-weight: 800; }
.kh-float { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.kh-fl { position: absolute; bottom: 10px; padding: 3px 9px; border-radius: 99px; background: rgba(217, 192, 138, 0.3); color: #ffe7a8; font-weight: 900; font-size: 0.8rem; white-space: nowrap; animation: kh-up 2.6s ease-out forwards; }
.kh-fl.heart { color: #ff8fa3; } .kh-fl.flower { color: #ffd1e0; }
@keyframes kh-up { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-220px); opacity: 0; } }
.kh-count { margin-top: 14px; text-align: center; } .kh-count small { display: block; font-weight: 800; color: #d9c08a; font-size: 0.8rem; } .kh-count b { font-size: 2rem; font-variant-numeric: tabular-nums; }
.kh-go { margin-top: 14px; background: #d9c08a; color: #120f1c; border-color: #d9c08a; }
.kh-np { margin-top: 14px; } .kh-np small { display: block; font-size: 0.66rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #d9c08a; }
.kh-np b { display: block; font-family: Georgia, serif; font-size: 1.25rem; margin-top: 2px; } .kh-np span { font-size: 0.82rem; font-weight: 700; opacity: 0.85; }
.kh-bar { display: block; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, 0.14); margin-top: 10px; overflow: hidden; } .kh-bar i { display: block; height: 100%; width: 0; background: #d9c08a; }
.kh-vis { margin-top: 10px; }
.kh-kbd svg { display: block; width: 100%; height: auto; max-height: 110px; border-radius: 8px; }
.kh-paper { background: #fffdf8; border-radius: 10px; overflow: hidden; } .kh-paper svg { display: block; } .kh-paper .play path { fill: #c2185b; }
.kh-wave { display: flex; align-items: center; gap: 3px; height: 60px; justify-content: center; }
.kh-wave i { width: 5px; border-radius: 3px; background: #d9c08a; animation: kh-w 1s ease-in-out infinite; }
.kh-wave i:nth-child(3n) { animation-delay: -0.3s; } .kh-wave i:nth-child(3n + 1) { animation-delay: -0.6s; } .kh-wave i:nth-child(4n) { animation-duration: 1.4s; }
@keyframes kh-w { 0%, 100% { height: 12px; } 50% { height: 52px; } }
.kh-end { margin-top: 14px; text-align: center; } .kh-end b { display: block; font-family: Georgia, serif; font-size: 1.3rem; color: #ffe7a8; }
.kh-end .link-btn, .kh .link-btn { color: #d9c08a; }
.kh-lbl { margin: 18px 0 6px; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #d9c08a; }
.kh-prog { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.kh-prog li { display: flex; gap: 10px; align-items: center; font-size: 0.86rem; font-weight: 700; opacity: 0.85; }
.kh-prog li b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.66rem; background: rgba(255, 255, 255, 0.12); }
.kh-prog li span { flex: 1; min-width: 0; } .kh-prog li small { opacity: 0.6; font-weight: 800; }
.kh-prog li.on { opacity: 1; color: #ffe7a8; } .kh-prog li.on b { background: #d9c08a; color: #120f1c; } .kh-prog li.done b { background: #2e9e5b; }
.kh-react { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; margin-top: 18px; }
.kh-react button { min-height: 56px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08); color: #f3ead8; font: inherit; font-weight: 900; font-size: 0.9rem; cursor: pointer; display: grid; place-items: center; }
.kh-react button.big { background: #d9c08a; color: #120f1c; } .kh-react small { font-size: 0.7rem; opacity: 0.8; }
.kh-react button:active { transform: scale(0.96); }
.kh-namefld { display: grid; gap: 4px; margin-top: 10px; font-size: 0.74rem; font-weight: 800; color: #cfc6b4; }
.kh-namefld input, .kh-form input, .kh-form textarea { min-height: 42px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; background: rgba(255, 255, 255, 0.06); color: #f3ead8; font: inherit; font-weight: 700; }
.kh-msgs { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.kh-msgs li { padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); display: grid; gap: 2px; font-size: 0.86rem; font-weight: 700; }
.kh-msgs b { font-size: 0.74rem; color: #d9c08a; }
.kh-form { display: grid; gap: 8px; margin-top: 10px; }
.kh-form .btn { color: #f3ead8; border-color: rgba(255, 255, 255, 0.3); background: transparent; }
.kh-note { margin: 6px 0 0; font-size: 0.78rem; font-weight: 700; color: #cfc6b4; }
.kh-cta { display: block; margin-top: 22px; padding: 14px; border-radius: 16px; background: rgba(217, 192, 138, 0.18); color: #ffe7a8; text-align: center; font-weight: 900; text-decoration: none; }
.kh-gone { margin-top: 60px; text-align: center; font-weight: 800; color: #cfc6b4; }
/* fixes after the first screenshots */
.kn-sharebox { grid-template-columns: minmax(0, 1fr); }
.kn-linkrow .btn { padding-left: 12px; padding-right: 12px; }
.kh-kbd .kbd .kw rect { fill: #f3ead8; stroke: #6b5f4a; }
.kh-kbd .kbd .kb rect { fill: #0b0b10; }
.kh-kbd .kbd .hit rect { fill: #d9c08a; }
.kh-head { top: 64px; }
.kh-viewers { top: auto; bottom: 10px; right: 10px; }
.kh-body .lang-menu summary { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #f3ead8; }
.kh-body .lang-menu .lang-now { color: #f3ead8; }
.kh-body .site-header .icon-btn, .kh-body .site-header button { color: #f3ead8; }
