/* Karaoke Night (shared bits come from /water/water.css) */
.ktv { height: 100vh; overflow: hidden; background: #0a0612; display: grid; place-items: center; }
.kstage { position: relative; width: min(100vw, 177.78vh); aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; color: #fff; font-family: 'Nunito', sans-serif;
  background: radial-gradient(70% 60% at 70% 0%, #3b1260, transparent 60%), #0d0718; }
.kstage.singing { background: url(/art/karaoke/stage.jpg) center / 100% 100% no-repeat, #0d0718; }

/* menu — Kita's mock-up */
.kmenu { position: absolute; inset: 9% 1.5% 5% 1.5%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 1cqw; }
/* the banner and logo are shown whole (never cropped) — Kita 2026-10-02 */
.khead { display: flex; justify-content: center; gap: 2cqw; align-items: center; height: 21.5cqw; }
.klogo { height: 100%; width: auto; filter: drop-shadow(0 .5cqw 1.5cqw rgba(255,60,200,.35)); }
.kbanner { border-radius: 1.4cqw; overflow: hidden; border: .22cqw solid #c44bff; box-shadow: 0 0 1.4cqw rgba(196,75,255,.6); height: 100%; aspect-ratio: 926 / 432; }
.kbanner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
.ktiles { display: grid; grid-template-columns: repeat(6, 13.2cqw); gap: .8cqw; align-content: center; justify-content: center; }
.ktile { appearance: none; padding: 0; border: .18cqw solid var(--c, #ff4fd8); border-radius: 1cqw; overflow: hidden; cursor: pointer; background: #000;
  box-shadow: 0 0 .9cqw color-mix(in srgb, var(--c, #ff4fd8) 60%, transparent); transition: transform .15s; position: relative; }
.ktile img { width: 100%; display: block; aspect-ratio: 246 / 170; }
.ktile small { position: absolute; right: .4cqw; bottom: .3cqw; padding: .1cqw .5cqw; border-radius: 99px; background: rgba(0,0,0,.7); font-size: .8cqw; font-weight: 800; }
.ktile:hover, .ktile:focus-visible { transform: translateY(-.3cqw) scale(1.03); outline: none; }
.kbar { display: flex; align-items: center; gap: 1.2cqw; }
.ksing { appearance: none; border: 0; border-radius: 99px; padding: .9cqw 2.6cqw; font: 900 2cqw 'Nunito', sans-serif; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #ff4f9a, #d42fd0); box-shadow: 0 0 1.6cqw rgba(255,60,180,.7), inset 0 .15cqw 0 rgba(255,255,255,.3); }
.ksing:disabled { opacity: .45; cursor: default; box-shadow: none; }
.kjoin { flex: none; max-width: 36%; overflow-wrap: anywhere; display: flex; align-items: center; gap: .7cqw; padding: .4cqw .8cqw .4cqw .4cqw; border-radius: 1cqw; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); font-size: 1cqw; font-weight: 800; }
.kjoin .qr { background: #fff; padding: .3cqw; border-radius: .5cqw; line-height: 0; } .kjoin .qr img, .kjoin .qr canvas { width: 5cqw !important; height: 5cqw !important; }
.kcode { white-space: nowrap; overflow-wrap: normal; font-family: 'Fredoka', sans-serif; font-size: 2.2cqw; letter-spacing: .2em; color: #4fe3ff; }
.kqline { flex: 1 1 0; min-width: 0; font-weight: 800; font-size: 1.1cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e4d6f5; }
.kqline b { color: #4fe3ff; }
.kstars { margin-left: auto; display: flex; gap: .5cqw; flex-wrap: wrap; justify-content: flex-end; max-width: 30%; font-weight: 800; font-size: .95cqw; }
.kstars span { padding: .25cqw .7cqw; border-radius: 99px; background: rgba(255,197,61,.18); border: 1px solid rgba(255,197,61,.5); }

/* queue (always on the right) */
.kstage:not(.singing) .kqueue { display: none; }
.kqueue { position: absolute; right: 1.2%; top: 13%; bottom: 3%; width: 16%; z-index: 5; padding: .9cqw; border-radius: 1.2cqw; background: rgba(14,6,28,.85);
  border: .18cqw solid #4fe3ff; box-shadow: 0 0 1.2cqw rgba(79,227,255,.35); overflow: hidden; display: flex; flex-direction: column; gap: .5cqw; }
.kqueue h3 { margin: 0; font: 700 1.4cqw 'Fredoka', sans-serif; color: #4fe3ff; }
.qrow { padding: .45cqw .6cqw; border-radius: .7cqw; background: rgba(255,255,255,.07); font-size: .95cqw; line-height: 1.25; }
.qrow b { display: block; font-size: 1.05cqw; } .qrow small { color: #d9c8ff; }
.qrow.first { background: linear-gradient(135deg, rgba(255,79,154,.45), rgba(196,75,255,.45)); }

/* a category's song list */
.kpanel { position: absolute; inset: 6% 19% 3% 2%; z-index: 8; padding: 1.4cqw; border-radius: 1.6cqw; background: rgba(14,6,28,.95); border: .2cqw solid #ff4fd8; display: flex; flex-direction: column; gap: .8cqw; }
.kpanelhead { display: flex; justify-content: space-between; align-items: center; } .kpanelhead b { font: 700 2.2cqw 'Fredoka', sans-serif; }
.kpanel p { margin: 0; font-size: 1.1cqw; }
.ksongs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6cqw; overflow: auto; }
.ksong { appearance: none; text-align: left; border: 1px solid rgba(255,255,255,.15); border-radius: .9cqw; padding: .7cqw .9cqw; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-family: 'Nunito', sans-serif; }
.ksong b { display: block; font-size: 1.15cqw; } .ksong small { color: #d9c8ff; font-size: .95cqw; } .ksong:hover { background: rgba(255,79,216,.25); }
.ksong.added { background: rgba(62,240,140,.25); }

/* singing — the video sits on the stage's big screen (stage picture is 1672 × 941) */
.kshow { position: absolute; inset: 0; z-index: 3; }
.kscreen { position: absolute; left: calc(486 / 1672 * 100%); top: calc(168 / 941 * 100%); width: calc(702 / 1672 * 100%); height: calc(364 / 941 * 100%);
  border-radius: .6cqw; overflow: hidden; background: #000; box-shadow: 0 0 2cqw rgba(120,80,255,.7); }
.kscreen iframe, .kscreen #yt { width: 100%; height: 100%; display: block; }
.ksinger { position: absolute; left: 44%; top: 12.2%; z-index: 4; max-width: 46%; overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%); padding: .5cqw 2cqw; border-radius: 99px; white-space: nowrap;
  background: rgba(14,6,28,.9); border: .22cqw solid #ff4fd8; box-shadow: 0 0 1.4cqw rgba(255,79,216,.6); font-weight: 900; font-size: 1.7cqw; }
.kreacts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.kreacts span { position: absolute; bottom: 4%; font-size: 3.2cqw; animation: floatup 3s ease-out forwards; filter: drop-shadow(0 .3cqw .6cqw rgba(0,0,0,.5)); }
.kreacts span small { display: block; font-size: .9cqw; font-weight: 900; text-align: center; color: #fff; text-shadow: 0 1px 4px #000; }
@keyframes floatup { to { transform: translateY(-62cqh) scale(1.3); opacity: 0; } }
.kmeter { position: absolute; left: 2%; bottom: 4%; width: 18%; display: grid; grid-template-columns: auto 1fr auto; gap: .6cqw; align-items: center; padding: .5cqw .8cqw;
  border-radius: 99px; background: rgba(14,6,28,.85); font-weight: 900; font-size: 1cqw; }
.kmeter i { height: .9cqw; border-radius: 99px; background: linear-gradient(90deg, #ffc53d, #ff4f9a); width: 0; transition: width .3s; }
.kctl { position: absolute; left: 2%; bottom: 10%; display: flex; gap: .5cqw; } .kctl .btn.small { font-size: 1cqw; padding: .5cqw 1cqw; }

/* up next / applause */
.kcall, .kclap { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; background: rgba(10,4,20,.82); text-align: center; animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
.kcall { grid-template-columns: auto auto; gap: 3cqw; place-content: center; text-align: left; }
.kcall .hostvid { width: 36cqw; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2cqw; border: .3cqw solid #ff4fd8; box-shadow: 0 0 2.4cqw rgba(255,79,216,.7); background: #1a0630; }
.kcall small, .kclap small { font-size: 1.8cqw; font-weight: 800; color: #d9c8ff; }
.kcall h1 { margin: .3cqw 0; font: 700 5cqw 'Fredoka', sans-serif; background: linear-gradient(135deg, #ffc53d, #ff4f9a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kcall h2 { margin: 0 0 1cqw; font-size: 2.4cqw; } .kcall p { margin: 0; font-size: 2.2cqw; font-weight: 900; }
.kclap { align-content: center; gap: 1cqw; } .kbig { font-size: 7cqw; letter-spacing: .4cqw; } .kclap p { font-size: 2.2cqw; font-weight: 900; margin: 0; }

/* ===== PHONE ===== */
.kphone { min-height: 100vh; min-height: 100dvh; margin: 0; color: #fff; font-family: 'Nunito', sans-serif; background: radial-gradient(circle at 50% 0%, #4a1a6a, #0d0718 60%); }
.kphone main { max-width: 520px; margin: 0 auto; padding: 12px 14px calc(70px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.kphone main > *, .kphone #card, .kcard { min-width: 0; } .kcard { grid-template-columns: minmax(0, 1fr); } .kphone #card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; } .kphone { overflow-x: hidden; }
.kphone header { display: flex; align-items: center; gap: 8px; } .kphone header .me { flex: 1; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kphone .pstars { padding: 5px 12px; border-radius: 99px; background: #ffc53d; color: #2b1300; font-weight: 900; }
.kphone .plogo { width: 70%; justify-self: center; }
.kcard { background: rgba(20,8,36,.9); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.kcard h2 { margin: 0; font: 700 1.3rem 'Fredoka', sans-serif; } .kcard p { margin: 0; color: #e4d6f5; }
.ptiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ptiles button { appearance: none; padding: 0; border: 2px solid rgba(255,255,255,.2); border-radius: 12px; overflow: hidden; cursor: pointer; background: #000; }
.ptiles img { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.psearch { display: flex; gap: 8px; } .psearch input { flex: 1; font: 800 1rem 'Nunito', sans-serif; padding: 12px; border-radius: 12px; border: 2px solid #ff4fd8; background: #fff; color: #1a0a28; }
.psearch button { border: 0; border-radius: 12px; padding: 0 16px; font: 900 1rem 'Nunito', sans-serif; color: #fff; background: #d42fd0; }
.plist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.prow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.07); }
.prow div { flex: 1; min-width: 0; } .prow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .prow small { color: #cdbbea; }
.prow button { border: 0; border-radius: 99px; padding: 8px 14px; font: 900 .95rem 'Nunito', sans-serif; color: #fff; background: linear-gradient(135deg, #ff4f9a, #d42fd0); white-space: nowrap; }
.prow button.ghost { background: rgba(255,255,255,.15); }
.ptabs { display: flex; gap: 6px; } .ptabs button { flex: 1; border: 0; border-radius: 99px; padding: 10px; font: 900 .95rem 'Nunito', sans-serif; color: #fff; background: rgba(255,255,255,.1); }
.ptabs button.on { background: #ff4fd8; }
.cheers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cheers button { appearance: none; border: 0; border-radius: 18px; padding: 16px 0; font-size: 2.4rem; background: rgba(255,255,255,.1); cursor: pointer; touch-action: manipulation; }
.cheers button:active { transform: scale(.92); background: rgba(255,79,216,.35); }
.cheers .big { grid-column: span 3; font: 900 1.6rem 'Nunito', sans-serif; padding: 22px 0; background: linear-gradient(135deg, #ff4f9a, #d42fd0); color: #fff; }
.upnow { text-align: center; } .upnow h1 { margin: 0; font: 700 2rem 'Fredoka', sans-serif; color: #ffc53d; } .upnow .mic { font-size: 4rem; animation: pulse .8s infinite alternate; }
.ptoast { min-height: 1.3em; font-weight: 900; text-align: center; } .ptoast.ok { color: #6bf2a0; } .ptoast.bad { color: #ffb0b0; }

/* the singer, live from their phone, standing on the dance floor in front of the screen */
.kdancer { position: absolute; left: 50%; bottom: 0; height: 46%; transform: translateX(-50%); z-index: 2; pointer-events: none;
  filter: drop-shadow(0 0 1.2cqw rgba(255,79,216,.55)); }
.kvoice { position: absolute; right: 1.5%; bottom: 3%; display: flex; align-items: center; gap: .5cqw; padding: .4cqw .8cqw; border-radius: 99px;
  background: rgba(14,6,28,.85); font-weight: 800; font-size: .95cqw; }
.kvoice .btn.small { font-size: 1.1cqw; padding: .1cqw .8cqw; }
.kvoice i { width: 5cqw; height: .7cqw; border-radius: 99px; background: rgba(255,255,255,.15); position: relative; overflow: hidden; }
.kvoice i::after { content: ''; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--v, 0)); background: linear-gradient(90deg, #6bf2a0, #ffc53d, #ff4f9a); transition: transform .1s; }
.kstage.singing .kqueue { top: 13%; bottom: 12%; }

/* phone: the singer's live panel */
.klive { display: grid; gap: 10px; justify-items: center; text-align: center; }
.klive video { width: 62%; max-width: 260px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; transform: scaleX(-1); background: #000; border: 3px solid #ff4fd8; }
.klive .row { display: flex; gap: 8px; } .klive .row button { border: 0; border-radius: 99px; padding: 10px 16px; font: 900 1rem 'Nunito', sans-serif; color: #fff; background: rgba(255,255,255,.15); }
.klive .row button.on { background: linear-gradient(135deg, #ff4f9a, #d42fd0); }
.klive .st { font-weight: 900; } .klive .st.ok { color: #6bf2a0; }

/* the host's videos: welcome (over the menu), up next (call screen), applause (stars screen) */
.clapvid { width: 34cqw; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2cqw; border: .3cqw solid #ffc53d; box-shadow: 0 0 2.4cqw rgba(255,197,61,.6); background: #1a0630; }
.kclap .kbig { font-size: 5.5cqw; }
.khello { position: absolute; inset: 0; z-index: 9; pointer-events: none; display: grid; place-items: center; background: rgba(10,4,20,.75); animation: pop .45s cubic-bezier(.2,1.6,.4,1); transition: opacity .4s; }
.khello.out { opacity: 0; }
.khello .hostvid { width: 62cqw; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2.4cqw; border: .35cqw solid #ff4fd8; box-shadow: 0 0 3cqw rgba(255,79,216,.7); background: #1a0630; }

/* the host cheering the singer on, bottom-left of the stage while a song plays */
.khostcheer { position: absolute; left: 2%; top: 33%; width: 19%; aspect-ratio: 16 / 9; object-fit: cover; z-index: 2; border-radius: 1.2cqw;
  border: .22cqw solid #ff4fd8; box-shadow: 0 0 1.4cqw rgba(255,79,216,.55); background: #1a0630; }
