:root {
  --accent: #95fcfa;
  --on-accent: #0e3130;
}
button i[data-icon],
a i[data-icon],
.studio-kicker i {
  display: inline-flex;
}
i[data-icon] svg {
  width: 20px;
  height: 20px;
  display: block;
}
.posted-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}
#seePosted {
  padding-left: 0;
  margin-top: 12px;
}
#reviewVideo {
  max-height: 29dvh;
}
#retake {
  padding-left: 0;
  margin: 0;
}
#fileLabel input {
  padding: 6px;
}
.entry-instruction {
  margin-bottom: 10px !important;
}
#entry input[type="file"] {
  font-size: 14px;
}
button#submitEntry {
  width: 100%;
}
.vote-pair {
  display: flex;
  gap: 4px;
}
.vote-pair button {
  padding: 6px 8px;
  display: grid;
  place-items: center;
}
.vote-pair svg {
  width: 22px;
  height: 22px;
}
.vote-pair .selected,
.vote-action.selected {
  background: #8bf3f0;
  color: #0e2b2a;
  border-color: #8bf3f0;
}
dialog.reel,
dialog.camera-dialog {
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #070c0c;
  overflow: hidden;
  color: #fff;
}
.camera-dialog > video,.camera-shade,.reel-shade {position:absolute;inset:0;width:100%;height:100%}
.reel-shade,
.camera-shade {
  pointer-events: none;
  background: linear-gradient(
    #050a0a7d,
    transparent 18%,
    transparent 42%,
    #050a0a88 68%,
    #050a0aeb
  );
}
.reel-head,
.camera-head {
  position: absolute;
  inset: max(14px, env(safe-area-inset-top))
    max(18px, calc((100vw - 820px) / 2)) auto;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 2;
}
.reel-head img {
  width: 57px;
}
.reel-head > span {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #dceceb;
  font-weight: 750;
}
.reel-head .glass,
.camera-head > span {
  margin-left: auto;
}
.glass,
.reel-head .close,
.camera-head .close {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff42;
  border-radius: 50%;
  background: #0f1c1b80;
  color: white;
}
 .camera-controls div button {display:flex;align-items:center;color:#e2fbfb}
.camera-dialog {
  background: radial-gradient(ellipse at center, #173837, #070d0d) !important;
}
.camera-dialog > video {
  object-fit: contain;
}
.camera-dialog video.front {
  transform: scaleX(-1);
}
.camera-head strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.camera-head > span {
  font-variant-numeric: tabular-nums;
  border-radius: 6px;
  padding: 5px 10px;
  background: #142b2bd6;
}
.camera-head > span.recording {
  background: #a52a48;
}
.camera-frame {
  position: absolute;
  inset: 17% max(12%, calc((100% - 405px) / 2)) 29%;
  border: 1px solid #c9fefc3d;
  border-radius: 18px;
  pointer-events: none;
}
.camera-controls {
  position: absolute;
  bottom: max(25px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, 90%);
  display: grid;
  justify-items: center;
  gap: 12px;
}
.camera-controls > span {
  font-size: 13px;
}
.camera-controls div {
  display: flex;
  gap: 22px;
}
.camera-controls #capture {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 50%;
  border: 3px solid white;
}
.camera-controls #capture i {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #9dfcfa;
}
.camera-controls #capture.is-recording i {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: #ff4977;
}
.camera-message {
  position: absolute;
  inset: 30% 14% auto;
  text-align: center;
  font-weight: 650;
  max-width: 460px;
  margin: auto;
  font-size: 18px;
  white-space: pre-line;
}
.camera-message.counting {
  font-size: 75px;
}
.camera-controls button:disabled {
  opacity: 0.4;
}
.recording-busy {
  pointer-events: none;
}
.modal-body label small {
  color: #8fa7a7;
}
@media(max-width:730px) {
  .reel #video {object-fit: cover}
  .reel-head,.camera-head {inset: max(13px, env(safe-area-inset-top)) 14px auto}
  .reel-foot {bottom:max(12px, env(safe-area-inset-bottom))}
  .vote-pair {gap:2px}
  .vote-pair button {padding:6px 4px}
  .filters,.toolbar {flex-wrap:wrap}
}
:root {
  --bg: #06272c;
  --panel: #0a3539;
  --line: #285053;
  --ink: #f6fffc;
  --muted: #b1c9c8;
  --accent: #0cebd6;
  --on-accent: #002e34;
  --petrol: #002f36;
}
body { background:var(--bg); font-family: Arial, Helvetica, sans-serif; }
.header { background:var(--petrol); border:0; }
.header .nav { height:clamp(74px,9.8vh,110px); min-height:0; width:100%; display:flex; justify-content:space-between; align-items:center; padding:8px clamp(20px,4.4vw,76px); }
.nav .brand img { width:clamp(108px,10.5vw,160px); height:auto; display:block; }
.header .nav nav { display:flex; padding:0; }
.header .nav nav a { color:#ecfaf8; font-size:clamp(16px,1.4vw,22px); background:none; padding:10px 0 10px 12px; border-radius:0; }
.header .nav nav a:hover,.header .nav nav a[aria-current="page"] { color:var(--accent); }
main.shell:has(#studioPage:not([hidden])) { width:100%; max-width:none; }
.wall { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); height:calc(100svh - clamp(74px,9.8vh,110px)); min-height:510px; gap:4px; padding:0 4px 4px; background:var(--petrol); }
.wall-tile,.spot { position:relative; overflow:hidden; min-width:0; min-height:0; border:0; border-radius:0; isolation:isolate; }
.wall-tile { display:block; background:#12373a; color:white; text-align:left; padding:0; }
.wall-tile video { display:block; width:100%; height:100%; object-fit:cover; object-position:center 41%; pointer-events:none; }
.wall-duration { position:absolute; bottom:clamp(12px,1.4vw,22px); left:clamp(12px,1.25vw,22px); display:flex; align-items:center; gap:7px; padding:4px 8px; border-radius:6px; background:#00121780; color:white; font-weight:700; font-size:clamp(13px,1.15vw,18px); line-height:1.1; font-variant-numeric:tabular-nums; }
.wall-duration .triangle { border-block-width:5px; border-left-width:8px; }
.wall-caption { position:absolute; inset:auto 0 0; padding:50px 22px 16px; background:linear-gradient(transparent, #00171bd9); color:white; opacity:0; transition:opacity .16s; pointer-events:none; }
.wall-caption strong,.wall-caption small {display:block}.wall-caption strong {font-size:clamp(15px,1.15vw,18px);line-height:1.2;letter-spacing:-.025em}.wall-caption small {font-size:14px}
.wall-tile:is(:hover,:focus-visible) .wall-caption {opacity:1}
.wall-tile:is(:hover,:focus-visible) .wall-duration {opacity:0}
.wall-tile:focus-visible, .spot:focus-within {outline:3px solid white;outline-offset:-5px}
.spot { background:#09edd8; color:#002e34; display:grid; place-items:center; padding:clamp(24px,3.4vw,68px); }
.spot-content {position:relative;width:max-content;max-width:100%}
.spot h1 {font-size:clamp(52px,min(5.8vw,9.1vh),112px);line-height:.91;letter-spacing:-.072em;font-weight:800;margin:0 0 clamp(20px,3vh,42px); color:#00292d}
.guides { --guide-color:currentColor; --leg:clamp(16px,2vw,32px); --stroke:clamp(3px,.45vw,7px); --line-paint:linear-gradient(var(--guide-color),var(--guide-color)); position:absolute; pointer-events:none;
  background:var(--line-paint) top left / var(--leg) var(--stroke),var(--line-paint) top left / var(--stroke) var(--leg),var(--line-paint) top right / var(--leg) var(--stroke),var(--line-paint) top right / var(--stroke) var(--leg),var(--line-paint) bottom left / var(--leg) var(--stroke),var(--line-paint) bottom left / var(--stroke) var(--leg),var(--line-paint) bottom right / var(--leg) var(--stroke),var(--line-paint) bottom right / var(--stroke) var(--leg); background-repeat:no-repeat;}
.spot .guides {inset:clamp(12px,1.5vw,24px)}
.record-cta {display:inline-flex;align-items:center;justify-content:center;gap:clamp(7px,.8vw,15px);background:var(--petrol);color:white;border:0;border-radius:clamp(10px,1.2vw,19px);font:700 clamp(16px,1.6vw,29px)/1.1 Rubik,Arial,Helvetica,sans-serif;padding:clamp(14px,1.35vw,23px) clamp(16px,1.7vw,28px);letter-spacing:-.04em}
.record-cta:hover {background:#07555b}
.record-cta i svg {width:1.36em;height:1.1em;stroke-width:1.4;fill:currentColor}
.wall-note {display:flex;justify-content:space-between;align-items:center;padding:15px clamp(16px,3vw,46px);gap:12px;color:var(--muted);font-size:14px;background:var(--petrol)}
.wall-note a {color:#e2fffc}.wall-note b {margin-left:5px}.on-wall footer {display:none}
.chart-sidelinks {display:flex;gap:24px;margin-top:16px;color:#85eadd}
.camera-dialog {background:radial-gradient(ellipse at center,#144a4c,#002329)!important;}
.camera-frame.guides {color:#0befd9;inset:12% max(5%,calc((100% - 442px)/2)) 24%;border:0;border-radius:0;--leg:28px;--stroke:5px}
.camera-head {justify-content:space-between}
.camera-head .glass {background:#001b2096;border:1px solid #c2f3ee47;color:white;font-size:25px}
.camera-head>span {margin:0;background:#052c30ba;font-size:20px;font-weight:750}
#flipCamera:disabled {opacity:.4}
.camera-controls {width:min(440px,94%);gap:9px;bottom:max(16px,env(safe-area-inset-bottom))}
.camera-controls #capture {width:80px;height:80px}
.camera-controls #capture i {width:64px;height:64px;background:var(--accent)}
.camera-controls #camHint:empty {display:none}
.camera-controls #camRecovery button {background:#043d42;color:#e0fffa;border:1px solid #498080;padding:9px 14px;border-radius:8px}
#reviewVideo {display:block;width:100%;max-height:34dvh;background:#001415;border-radius:11px}
#review #retake {margin:5px 0 9px} input,select {accent-color:var(--accent)}
@media(max-width:730px) {
 .header .nav {height:62px;padding:6px 17px}.nav .brand img {width:89px}.header .nav nav a {font-size:16px}
 .wall {height:auto;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:clamp(150px,48vw,270px);gap:3px;padding:0 3px 3px;}
 .spot {order:-1;grid-column:1/-1;min-height:0;display:flex;justify-content:flex-start;padding:26px 9%;}
 .spot-content {width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px}
 .spot h1 {font-size:clamp(43px,10vw,73px);margin:0}
 .spot .guides {inset:12px;--stroke:4px;--leg:20px}
 .record-cta {font-size:clamp(15px,3.5vw,20px);padding:13px 12px;letter-spacing:-.05em}.record-cta i svg {width:1.05em}
 .wall-card:last-child {grid-column:1/-1}.wall-card:last-child video {object-position:center 40%}
 .wall-note {flex-wrap:wrap;font-size:13px;padding:14px}
 .camera-frame.guides {inset:12% 5% 24%}
}
@media(max-width:410px) {
 .spot {padding:21px 9%}.spot-content {flex-direction:column;align-items:flex-start;gap:10px}
 .spot h1 {font-size:clamp(38px,10vw,43px);line-height:.9}
 .record-cta {padding:10px 14px;min-height:43px}
}
@media(prefers-reduced-motion:reduce) {.wall-caption {transition:none}}
#chartPage {padding:clamp(30px,6vw,76px) 0 18px}
.board-heading h1 {margin:5px 0;font-size:clamp(40px,6vw,86px);line-height:1;letter-spacing:-.065em}
.empty {min-height:21vh;border-bottom:1px solid var(--line);align-content:center}

/* Three native scroll-snap pages form a window onto the performance feed. */
.reel[open] {--reel-width:min(100vw, 83dvh);--reel-edge:max(8px, calc((100vw - var(--reel-width)) / 2));}
.reel-feed {position:absolute;inset:0;display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;overflow-anchor:none;scrollbar-width:none;touch-action:pan-y;}
.reel-feed::-webkit-scrollbar {display:none}
.feed-slide {position:relative;flex:0 0 100%;width:100%;min-height:0;overflow:hidden;isolation:isolate;scroll-snap-align:start;scroll-snap-stop:always;background:#041718;}
.feed-slide video {display:block;width:100%;height:100%;object-fit:contain;}

.reel .reel-head {inset:max(12px,env(safe-area-inset-top)) calc(var(--reel-edge) + 8px) auto;gap:8px;pointer-events:none}
.reel-head button,.reel-foot button,.reel-foot input {pointer-events:auto}
.reel .reel-head img {width:57px;align-self:center;filter:drop-shadow(0 1px 4px #0008)}
.reel .glass,.reel .close {width:42px;height:42px;background:#05181b62;border:0;backdrop-filter:blur(7px)}
.reel .reel-votes {position:absolute;right:calc(var(--reel-edge) + 28px);bottom:max(101px,calc(env(safe-area-inset-bottom) + 92px));display:grid;justify-items:center;gap:14px}
.reaction {display:grid;justify-items:center;gap:3px;padding:0;background:transparent;color:white;font-weight:750;min-width:47px;text-shadow:0 1px 5px #001312}
.reaction>span {color:#f4fffc;width:49px;height:49px;border-radius:50%;display:grid;place-items:center;background:#09242880;box-shadow:0 2px 10px #00101024;backdrop-filter:blur(7px);transition:transform .18s,background .18s}
.reaction small {font-size:13px;line-height:1.1}
.reaction:active>span {transform:scale(.9)}
.reaction[aria-pressed=true]>span {color:#002f35;background:#63f5dc;box-shadow:0 0 0 2px #eafffa;transform:scale(1.05)}
@media(hover:hover) {.reaction:hover>span {transform:translateY(-2px)}}
.reel .reel-foot {position:absolute;left:calc(var(--reel-edge) + 12px);right:calc(var(--reel-edge) + 12px);bottom:max(10px,env(safe-area-inset-bottom));pointer-events:none;text-shadow:0 1px 5px #031516;transform:none;width:auto;}
.clip-caption .reel-score {display:block;color:#c5ffef;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.clip-caption h2 {font-size:clamp(29px,5vh,52px);line-height:1;letter-spacing:-.055em;margin:6px 70px 4px 0;overflow-wrap:anywhere}
.clip-caption .song-line {font-size:15px;margin:4px 0 3px;}
.reel #voteStatus {font-size:13px;color:#c5ffef;font-weight:650}
.reel #voteStatus:empty {display:none}
.reel .reel-links {display:flex;align-items:center;justify-content:space-between;gap:8px;}
.reel-links button {color:white;background:none;font-size:14px;font-weight:700;padding:8px 0;min-height:42px;text-shadow:0 1px 4px #001014;}
.reel-links #reelCreate {display:inline-flex;align-items:center;gap:6px;color:#b2fff2}
.reel-links #reelNext {display:flex;align-items:center;gap:6px}
.reel-links #reelNext span {font:23px/1 Rubik,Arial}
.reel #bigPlay {inset:0;width:62px;height:62px;background:#081f236b;border:1px solid #efffff70;backdrop-filter:blur(4px);color:white}
.modal-head:has(>.close:only-child) {justify-content:flex-end;padding-bottom:0}
.vote-pair .vote-btn {background:transparent;border:0;font-size:19px;min-height:38px;padding-inline:7px}
.vote-pair .vote-btn[aria-pressed=true] {background:var(--accent)}
.camera-head #camTime {display:inline-flex;align-items:center;gap:8px;position:absolute;left:50%;transform:translateX(-50%);border-radius:99px;background:#071d20bb;color:#fff;font:750 clamp(24px,4vh,38px)/1 Rubik,Arial,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.045em;padding:8px 17px;backdrop-filter:blur(6px)}
.camera-head #camTime.recording::before {content:"";width:10px;height:10px;border-radius:50%;background:#31f2d3}
.camera-head #camTime.last-seconds {background:#fff4d9;color:#171713}
.camera-head #camTime.last-seconds::before {background:#e35525}
#recProgress {position:absolute;inset:max(70px,calc(env(safe-area-inset-top) + 58px)) max(18px,calc((100vw - 415px)/2)) auto;height:4px;border-radius:8px;background:#ffffff3b;opacity:0;pointer-events:none;overflow:hidden}
.camera-dialog:has(#camTime.recording) #recProgress {opacity:1}
#recProgress i {display:block;width:100%;height:100%;background:#34edd6;transform-origin:left;transform:scaleX(var(--remaining,1))}
@media(max-width:730px) {
 .reel[open] {--reel-width:100vw;--reel-edge:4px}
 .reel .reel-votes {gap:12px;right:26px}
 .reel .reel-head {inset:max(12px,env(safe-area-inset-top)) 12px auto}
}
@media(max-height:490px) {.reel .reel-votes {bottom:57px;gap:5px}.reaction>span {width:37px;height:37px;font-size:23px}.reaction small{font-size:12px}}
.record-mark {display:block;width:1.35em;height:1.35em}
.camera-controls #capture {border:0;background:transparent url("media/record-mark.svg") center/contain no-repeat}
.camera-controls #capture i {display:none}
.camera-controls #capture.is-recording {border:5px solid #fff;background:#002f35}
.camera-controls #capture.is-recording i {display:block;width:35px;height:35px;border-radius:7px;background:#ff594f}
.camera-head #camTime.recording::before {background:#ff594f}
.header .nav nav {gap:clamp(6px,1.5vw,26px)}
.modal-body textarea {display:block;width:100%;box-sizing:border-box;font:inherit;color:inherit;border-radius:12px;border:1px solid #426361;background:#092629;padding:10px 12px;margin-top:5px;resize:vertical}
.share-sheet {border-radius:24px;background:#082c30;width:min(440px,calc(100% - 24px))}
.share-sheet .modal-head {padding:12px 16px 0}
.share-sheet .modal-body {padding-top:0}
.share-sheet h2 {line-height:1.05}
.share-sheet #postedSong {margin-top:8px}
.share-destinations {display:flex;justify-content:space-evenly;gap:10px;padding:17px 0 15px}
.share-destinations :is(a,button) {display:grid;justify-items:center;align-items:center;gap:5px;background:none;padding:0 4px;color:white;font-family:inherit;font-size:14px;line-height:1.2;font-weight:650}
.share-destinations span {display:grid;place-items:center;width:53px;height:53px;border-radius:50%;background:#125756;font-size:29px}
#shareWhatsapp span {background:#16b879}
.share-url {display:flex;border:1px solid #356366;border-radius:11px;align-items:center;padding:4px 5px 4px 10px;gap:6px;background:#061e21}
.share-sheet .share-url input {margin:0;flex:1;min-width:0;border:0;background:none;padding:4px 0;color:#c8e2df;font-size:14px}
.share-url button,.share-file-actions :is(button,a),.fan-action {background:#9bffed;color:#043b39;padding:9px 12px;border:0;border-radius:99px;font:inherit;font-size:14px;font-weight:750}
.share-file-actions {display:flex;gap:8px;align-items:center;margin-top:16px}
.share-file-actions :is(button,a) {background:#1d4549;color:#edfffb}
.share-sheet #shareVideoRow p {font-size:13px;margin:6px 0}
.share-feedback:empty,#profileStatus:empty,#profileBio:empty {display:none}
.share-sheet .share-feedback {margin:10px 0 0;color:#acffed}
#posted #seePosted {margin-top:8px}
#saveDraftVideo {display:inline-flex;margin-left:10px}
@media(max-width:600px) {.share-sheet {position:fixed;inset:auto 0 0;width:100%;max-width:100%;margin:0;border:0;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom)}}
.profile-page {max-width:900px;margin:clamp(25px,5vw,65px) auto 50px}
.profile-heading {display:flex;align-items:center;gap:clamp(15px,3vw,28px)}
.profile-heading h1 {font-size:clamp(33px,6vw,76px);line-height:1;letter-spacing:-.055em;margin:0;overflow-wrap:anywhere}
.profile-heading p {margin:8px 0 0;color:#aeffe9;font-weight:700}
.profile-avatar {width:clamp(65px,13vw,120px);aspect-ratio:1;flex-shrink:0;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#0fd7c6;color:#003230;font-size:clamp(25px,6vw,49px);font-weight:850}
.profile-avatar img {width:100%;height:100%;object-fit:cover}
.profile-actions,#fanArtists {display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-block:18px}
.profile-page h2 {font-size:clamp(23px,4vw,36px);letter-spacing:-.035em;margin:1.2em 0 .4em}
.fan-action {padding:10px 18px;font-size:16px}
.fan-action[aria-pressed=true],.artist-chip {background:#173c3e;color:#c2ffec}
.profile-actions .plain,.artist-chip {border-radius:40px;padding:9px 13px}
.profile-takes {display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.profile-takes .wall-tile {width:min(31%,200px);aspect-ratio:3/4;border-radius:13px}
.profile-takes .wall-tile .wall-caption {opacity:1;padding:36px 10px 9px}
.profile-takes .wall-caption strong {font-size:16px}
.profile-takes .wall-duration {display:none}
#profileBio {white-space:pre-line;overflow-wrap:anywhere;max-width:60ch}
#profileForm .primary {margin-top:12px}
@media(max-width:500px){.profile-takes .wall-tile {width:calc(50% - 6px)}}

.reaction svg,.share-destinations svg {display:block;width:27px;height:27px}
.reaction[aria-pressed=true]>span {box-shadow:0 0 0 2px white}
.share-destinations [data-icon] {color:#eafffa;background:#16484a}
#shareWhatsapp [data-icon] {background:#78eed5;color:#073d37}
.fan-action#fanButton {display:inline-flex;align-items:center;gap:7px}
#fanButton svg {width:22px;height:22px}
.select-wrap [data-icon] svg,.thumb>svg {display:block;width:17px;height:17px}
@media(max-height:490px) {.reaction svg {width:22px;height:22px}}
/* Fan is a secondary action with a full-size touch target. */
.wall-card {position:relative;min-width:0;min-height:0}
.wall-card>.wall-tile {width:100%;height:100%}
.quick-fan {display:inline-grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;background:transparent;color:#fffe;filter:drop-shadow(0 1px 2px #001416cc)}
.quick-fan svg {width:17px;height:17px;stroke-width:1.7}
.quick-fan svg circle {display:none}
.quick-fan[aria-pressed=true],.quick-fan:focus-visible,.quick-fan:hover {color:#adfbe9}
.photo-fan {position:absolute;top:4px;right:4px}
@media(hover:hover) and (pointer:fine) {
  .wall-card .photo-fan {opacity:0}
  .wall-card:hover .photo-fan,.wall-card:focus-within .photo-fan {opacity:1}
}
.profile-actions #fanButton {background:#173c3e;color:#d1fff5;font-size:14px;padding:9px 13px}
.profile-actions #fanButton svg {width:17px;height:17px}
.clip-caption {position:absolute;left:calc(var(--reel-edge) + 12px);right:calc(var(--reel-edge) + 93px);bottom:calc(max(10px,env(safe-area-inset-bottom)) + 46px);color:white;text-shadow:0 1px 5px #031516;pointer-events:none}
.clip-caption .artist-line {display:flex;align-items:center;gap:3px}
.clip-caption h2 {margin:0;min-width:0}
.clip-caption a,.clip-caption button {pointer-events:auto}
.clip-caption a:hover {color:#91ffea}
.reel #voteStatus {max-width:35%;text-align:center}
.feed-slide::after {content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#03111260,transparent 20%,transparent 50%,#00131419 62%,#001012ce)}
.clip-caption {z-index:1}
.clip-progress {position:absolute;right:max(env(safe-area-inset-right),calc(var(--reel-edge) - 7px));top:max(76px,calc(env(safe-area-inset-top) + 60px));bottom:max(65px,calc(env(safe-area-inset-bottom) + 58px));width:28px}
.clip-progress-track {position:absolute;inset:0 auto 0 50%;width:2px;border-radius:4px;overflow:hidden;background:#ffffff47;box-shadow:0 0 2px #0006;pointer-events:none}
.clip-progress-track i {display:block;height:100%;background:#b1ffec;transform-origin:bottom;transform:scaleY(1)}
.clip-progress input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;writing-mode:vertical-lr;direction:ltr;touch-action:none}
.clip-progress:focus-within .clip-progress-track {outline:1px solid white;outline-offset:2px}
.clip-progress #time {display:block;position:absolute;top:0;right:100%;padding:3px 7px;background:#0b2024bb;border-radius:4px;font:600 12px/1.4 Rubik,Arial;white-space:nowrap;font-variant-numeric:tabular-nums;pointer-events:none}
.clip-progress:is(:focus-within,:active) #time {display:block}
@media(hover:hover) {.clip-progress:hover #time {display:block}}
.camera-dialog #characterStage {position:absolute;top:48px;left:0;width:100%;height:calc(100% - 236px);object-fit:contain}
.camera-dialog.has-character {background:#082d35!important}
.camera-dialog.has-character #liveCamera {opacity:0}
.camera-dialog.has-character .camera-frame,.camera-dialog.has-character .camera-shade {display:none}
.camera-dialog.has-character .camera-message:not(:empty) {padding:10px;background:#041c24c9;border-radius:16px}
#characterPicker {display:flex;gap:5px;margin:0;padding:5px;border:none;border-radius:40px;background:#051f24dc;max-width:100%;min-width:0}
#characterPicker button {display:flex;align-items:center;gap:4px;color:#eafffa;background:transparent;border-radius:24px;padding:5px 8px;font-size:14px;font-weight:700;min-height:40px}
#characterPicker button[aria-pressed=true] {background:#9ffff0;color:#002e34}
#characterPicker img,#characterPicker i {width:29px;height:29px;display:grid;place-items:center}
#characterPicker img {border-radius:50%}
#characterPicker:disabled {display:none}
#characterHint {font-size:14px;color:#d4fff3;text-align:center;max-width:34ch}
.camera-controls:has(#characterHint:not([hidden])) #camHint:empty {display:none}
.camera-controls #camHint {text-shadow:0 1px 4px #001e24}
@media(max-width:390px) {#characterPicker {gap:1px}#characterPicker button{padding-inline:6px} }

.camera-dialog.has-character:has(#camRecovery:not([hidden])) .camera-message {display:none}

/* The masthead sits over the performance wall only on the home screen. */
body.on-wall .header {position:absolute;inset:0 0 auto;z-index:5;background:transparent;pointer-events:none}
.on-wall .header .brand,.on-wall .header nav {pointer-events:auto}
.on-wall .header .nav {height:clamp(72px,9.5svh,104px);max-width:none}
.on-wall .header .brand img {filter:drop-shadow(0 1px 4px #00191b9e)}
.on-wall .header nav a {color:white;text-shadow:0 1px 4px #001417}
.on-wall .wall {height:100svh;min-height:510px;padding-top:0}
.on-wall .wall-card:is(:first-child,:nth-child(3))::after {content:"";position:absolute;pointer-events:none;inset:0 0 auto;height:clamp(100px,14vh,160px);background:linear-gradient(180deg,#00151994,transparent)}
.on-wall .wall-card:is(:first-child,:nth-child(3)) .photo-fan {z-index:1;top:clamp(75px,10vh,112px)}
@media(max-width:730px){
  .on-wall .header .nav {height:62px}
  .on-wall .wall {height:auto;min-height:0}
  .on-wall .wall-card:is(:first-child,:nth-child(3)) {order:-2}
  .on-wall .wall-card:is(:first-child,:nth-child(3)) .photo-fan {top:65px}
}
#portraitDialog{max-width:min(450px,94vw);width:100%;max-height:92dvh;overflow:auto}
#portraitDialog .modal-head{display:flex;align-items:center;justify-content:space-between;padding:12px 18px}
#avatarTitle{margin:0;font-size:1.5rem;letter-spacing:-.045em}
.portrait-editor{padding:0 18px 14px}.portrait-editor h3{font-size:1.15rem;margin:10px 0}
.portrait-editor p{font-size:.88rem;line-height:1.4}
.avatar-art,.selfie-frame{overflow:hidden;background:#00262a;border-radius:12px}
.avatar-art{height:clamp(150px,40dvh,410px);display:grid;place-items:center}
.avatar-art img,.avatar-art canvas,.selfie-frame img,.selfie-frame video{width:100%;height:100%;object-fit:contain;display:block}
.avatar-art img[hidden],.avatar-art canvas[hidden],.selfie-frame [hidden]{display:none}
.selfie-frame{width:min(100%,370px);aspect-ratio:1;max-height:40dvh;margin:auto}.selfie-frame video,.selfie-frame img{object-fit:cover}.selfie-frame video{transform:scaleX(-1)}
.avatar-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.avatar-actions button,.photo-file{font:inherit;font-weight:650;border-radius:9px;padding:10px 12px;min-height:42px;cursor:pointer}
.avatar-actions button:not(.primary),.photo-file{border:1px solid #52757a;background:#0c3a40;color:#f3fffd}
.photo-file{position:relative;display:inline-grid;align-items:center;overflow:hidden}.photo-file input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
#avatarStatus{margin:10px 0 0;color:#a8d5d3;min-height:1em}.avatar-actions [hidden]{display:none}

.vote-btn, .reaction > [data-icon] { position:relative; }
.vote-burst {
  position:absolute; left:50%; top:50%; width:0; height:0; z-index:2;
  pointer-events:none; color:#58f2dc;
}
.vote-burst > svg {
  position:absolute; left:-8px; top:-8px; width:16px; height:16px;
  fill:currentColor; stroke:#073237; stroke-width:1.45;
  filter:drop-shadow(0 1px 1px #002f3577);
  animation:vote-fly-in 420ms cubic-bezier(.44,.02,.65,.7) both;
}
.vote-burst > svg:nth-child(3n + 2) { color:#ff786c; width:13px; height:13px; }
.vote-burst > svg:nth-child(3n) { color:#fff7de; }
@keyframes vote-fly-in {
  0% { opacity:0; transform:translate(var(--x),var(--y)) rotate(var(--tilt)) scale(.55); }
  22% { opacity:1; }
  85% { opacity:1; }
  100% { opacity:0; transform:translate(0,0) rotate(0) scale(.42); }
}
@media (prefers-reduced-motion:reduce) {
  .vote-burst { display:none; }
}
.header .nav nav:has(.nav-icon) {gap:6px}
.header .nav a.nav-icon {
  display:grid;place-items:center;width:45px;height:45px;padding:0;border-radius:50%;
  color:#fff;background:#002f35c9;border:1px solid #ffffff57;
}
.header .nav a.nav-icon svg {
  width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round;
}
.header .nav a.nav-icon:is(:hover,[aria-current="page"]) {background:#6df6df;color:#002f35}

.spot h1, main h1 {
  font-family:Rubik,"Arial Narrow",sans-serif;
  font-weight:800;
  font-style:normal;
}
main h1, .board-heading h1 { letter-spacing:-.015em; }
.spot h1 {
  font-size:clamp(64px,min(7.2vw,10.5vh),128px);
  line-height:.84;
  letter-spacing:-.015em;
  text-transform:uppercase;
}
@media (max-width:730px) {
  .spot h1 {font-size:clamp(49px,10.7vw,77px);}
  .on-wall .header .nav a.nav-icon {
    background:rgb(0 28 32 / 22%);
    border-color:rgb(255 255 255 / 18%);
    color:rgb(255 255 255 / 96%);
  }
  .on-wall .header .nav .nav-icon svg {filter:drop-shadow(0 1px 2px #00171bc9);}
  .on-wall .header .nav .nav-icon:focus-visible {outline:2px solid white;outline-offset:2px;}
}

#profileName, .artist-line h2, .artist-line a, .wall-caption strong,
.desc strong, .artist-chip, .archive-card h2 {
  font-family:Rubik,Arial,sans-serif;font-weight:600;font-style:normal;
  letter-spacing:-.025em;
}
#profileName {overflow-wrap:anywhere;}
.song-line, .wall-caption small, #profileTakes .wall-caption strong,
.desc small, #postedSong {
  font-family:Rubik,Arial,sans-serif;font-weight:700;font-style:normal;
  letter-spacing:-.012em;
}

.sing-link {display:inline-block;margin:3px 3px 0;padding:6px 12px;background:transparent;color:#05333a;text-decoration:underline;text-underline-offset:3px;font-weight:700}
#funRack,.take-details {margin:10px 0 14px;border-top:1px solid #bad0cb}
#funRack summary,.take-details summary {font-weight:700;cursor:pointer;padding:10px 0}
.fx-options {min-width:0}.fx-options fieldset {border:none;margin:0 0 11px;padding:0;min-width:0}.fx-options legend {margin-bottom:4px;font-weight:700;font-size:14px}
.fx-rail {display:flex;gap:5px;overflow-x:auto;padding:3px 2px 6px}.fx-rail button {flex-shrink:0;display:inline-flex;align-items:center;gap:5px;border:1px solid #8da9a4;border-radius:18px;background:#f3f8f7;color:#04343a;padding:5px 10px;min-height:36px;font-size:14px}
.fx-rail button[aria-pressed="true"] {background:#04343a;color:#fff;border-color:#04343a}.fx-rail img {width:26px;height:29px;object-fit:contain}
#effectStatus {font-size:14px;margin:8px 0}#effectStatus:empty {display:none}
#entry {max-height:90dvh}#takeForm {min-width:0}#entry .pair {margin-top:8px}

.spot-content .sing-link{font-weight:800}
#singCue{position:absolute;z-index:2;top:18%;left:50%;transform:translateX(-50%);width:min(93%,620px);text-align:center;pointer-events:none;color:#fff;text-shadow:0 2px 5px #000;background:#101019ad;padding:9px 12px;border-radius:12px}#singCue[hidden]{display:none}#singCue strong,#singCue span{display:block}#singCue strong{font-size:clamp(19px,5vw,31px);color:#9dffdf;line-height:1.15}#singCue span{font-size:clamp(14px,3.6vw,20px);margin-top:4px}

/* The record tile needs its own row height when the wall becomes two columns. */
@media (max-width:730px) {
  .on-wall .wall {grid-auto-rows:auto}
  .wall>.wall-card {height:clamp(150px,48vw,270px)}
  .wall>.spot {min-height:clamp(138px,36vw,205px);padding:24px clamp(24px,7vw,48px)}
  .spot-content {display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;justify-items:start;gap:0 8px}
  .spot-content h1 {grid-row:1 / 3;font-size:clamp(40px,10.5vw,72px);line-height:.9;align-self:center}
  .spot-content .record-cta {align-self:end;min-height:44px;font-size:clamp(14px,3.5vw,20px);white-space:nowrap}
  .spot-content .sing-link {margin:0;align-self:start;justify-self:center;min-height:44px}
}
@media (max-width:350px) {
  .wall>.spot {padding-inline:23px}
  .spot-content h1 {font-size:36px}
  .spot-content .record-cta {padding-inline:9px}
}
.wall-duration {padding:4px 0;gap:4px;background:none;border-radius:0;color:#fff;line-height:1;text-shadow:0 1px 4px #001217}
.wall-duration svg {width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #001217)}
.wall-tile::after {content:"";position:absolute;inset:auto 0 0;height:24%;pointer-events:none;background:linear-gradient(transparent,rgb(0 12 16 / 42%))}
.wall-caption,.wall-duration {z-index:1}
.reel #bigPlay {width:70px;height:70px;background:none;border:0;backdrop-filter:none;border-radius:50%;padding:13px;box-shadow:none}
.reel #bigPlay svg {width:100%;height:100%;fill:rgb(255 255 255 / 16%);stroke:white;stroke-width:1.65;stroke-linejoin:round;filter:drop-shadow(0 1px 3px #00191c)}
.reel #bigPlay:focus-visible {outline:2px solid white;outline-offset:2px}
#review .review-controls {display:flex;align-items:center;gap:10px}
#review .review-controls button {min-width:65px;min-height:44px;margin:0}
#reviewSeek {flex:1;min-width:32px;accent-color:#09edd8}

#singDialog {--paper:#fff4d9;--night:#161420;--coral:#ff6e63;--aqua:#0eebd2;width:min(470px,calc(100% - 24px));max-height:92dvh;overflow:auto;overscroll-behavior:contain;
  padding:0;border:1px solid #554356;border-radius:16px;background:var(--night);color:var(--paper);font-family:Rubik,Arial,sans-serif}
#singDialog::backdrop {background:#080810bf}
#singDialog :focus-visible {outline:3px solid #fff;outline-offset:2px}
.sing-head {display:flex;align-items:center;justify-content:space-between;padding:18px 20px 12px;border-bottom:1px solid #514556}
#singDialog h2,.sing-sheet h3,.beat-label strong {font-family:Rubik,"Arial Narrow",sans-serif;font-weight:800;font-style:normal;text-transform:none}
#singDialog h2 {font-size:clamp(46px,10vw,62px);line-height:.95;margin:0;letter-spacing:-.01em;color:var(--coral)}
#singDialog .close {width:44px;height:44px;margin:0;border:0;border-radius:50%;font:400 30px/1 Rubik,Arial;color:var(--paper);background:transparent}
.sing-body {padding:16px 20px 4px}
.sing-beats {min-width:0;padding:0;margin:0;border:0}
.sing-beats legend,.sing-custom label {font-size:14px;font-weight:700;margin:0 0 7px;padding:0;color:var(--paper)}
.beat-card {display:flex;align-items:center;gap:4px;margin:0 0 5px;border-bottom:1px solid #493d4b}
.beat-card:last-child {border:0}
.beat-choice {flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:4px 0;min-height:54px;text-align:left;background:transparent;color:var(--paper);border:0;border-radius:4px}
.beat-label {display:grid;gap:2px}
.beat-label strong {font-size:25px;line-height:.92;letter-spacing:.01em}
.beat-label small {font-size:12px;color:#d7cbd3;letter-spacing:.04em}
.beat-art {position:relative;flex:none;width:45px;height:45px;overflow:hidden}
.beat-disco .beat-art {background:repeating-conic-gradient(from 15deg at 66% 45%,#fe7669 0 15deg,#602249 15deg 30deg)}
.beat-pocket .beat-art {background:repeating-radial-gradient(ellipse at 16% 88%,#c8a6ff 0 4px,#402c66 5px 9px)}
.beat-art::after {content:"";position:absolute;inset:12px;border-radius:50%;background:#211b2a;border:6px solid var(--paper)}
.beat-pocket .beat-art::after {background:var(--paper);border-color:#44315f}
.beat-check {width:20px;height:20px;border:1px solid #877786;border-radius:50%;margin-left:auto;display:grid;place-items:center;font:700 13px/1 Rubik,Arial;color:transparent}
.beat-choice[aria-pressed=true] .beat-check {background:var(--aqua);border-color:var(--aqua);color:var(--night)}
.beat-preview {flex:none;width:44px;height:44px;margin-left:4px;display:grid;place-items:center;border:1px solid #756374;border-radius:50%;background:transparent;color:var(--paper)}
.beat-preview svg {grid-area:1/1;width:18px;height:18px;fill:currentColor}
.beat-preview .pause-glyph {display:none;fill:none;stroke:currentColor;stroke-width:4}
.beat-preview[aria-pressed=true] {color:var(--night);background:var(--aqua);border-color:var(--aqua)}
.beat-preview[aria-pressed=true] svg:first-child {display:none}
.beat-preview[aria-pressed=true] .pause-glyph {display:block}
.sing-sheet {margin:15px 0 6px;color:var(--night);background:var(--paper);padding:13px 16px 17px;box-shadow:3px 3px 0 #ff6e63}
.sheet-head {display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #bdaf98}
.sing-sheet h3 {margin:0;font-size:32px;line-height:1;letter-spacing:-.015em}
#singShuffle {color:#46213c;background:transparent;text-decoration:underline;text-underline-offset:3px;font-size:14px;font-weight:700;padding:5px;min-height:40px}
#singDialog .sing-sheet :focus-visible {outline-color:#492547}
#singLines {list-style:none;margin:10px 0 0;padding:0;font-size:clamp(16px,4.2vw,19px);font-weight:700;letter-spacing:-.025em;line-height:1.32}
#singLines li {overflow-wrap:anywhere}
#singLines li:nth-child(2n+3) {margin-top:.36em}
#singLines li.current {background:#a7f3d9;box-shadow:-3px 0 #08655a}
.sing-custom {margin-top:10px}
.sing-custom summary {min-height:44px;align-content:center;cursor:pointer;font-size:15px;font-weight:650;color:#f1dadc}
.sing-custom label {display:block}
.sing-topic {display:flex;gap:6px;flex-wrap:wrap}
.sing-topic input {flex:1 1 140px;min-width:0;border:1px solid #766576;border-radius:4px;background:#251f2d;color:white;padding:8px;font-size:16px}
.sing-topic button {padding:8px 12px;background:var(--paper);color:var(--night);border-radius:4px;font-weight:700}
#singStatus {color:#ffb9a9;font-size:14px;margin:8px 0}
#singStatus:empty {display:none}
.sing-tip {font-size:13px;line-height:1.3;color:#d6c6d1;margin:0 0 10px}
.sing-actions {position:sticky;bottom:0;display:grid;grid-template-columns:1fr 1.6fr;gap:7px;padding:10px 20px max(12px,env(safe-area-inset-bottom));background:var(--night);border-top:1px solid #514556}
.sing-actions button {min-height:46px;line-height:1.15;padding:6px 8px;border-radius:4px;font-size:16px;font-weight:700}
#singPractice {background:transparent;border:1px solid #93818e;color:var(--paper)}
#singRecord {display:flex;justify-content:center;align-items:center;gap:8px;color:#112c2e;background:var(--aqua)}
#singRecord i {width:12px;height:12px;border-radius:50%;background:#ff665d;box-shadow:0 0 0 2px #183035}
@media (max-width:540px) {
  #singDialog {width:100%;max-width:100%;max-height:100dvh;margin:auto 0 0;border:0;border-radius:16px 16px 0 0}
  .sing-head {padding-top:14px}
}
#effectControls fieldset[hidden] {display:none}
#takeForm #recordedVoice {font-size:14px;color:#97f5e0;margin:4px 0 10px}
@media (min-width:731px) {
  .wall>.spot {grid-template-columns:minmax(0,1fr);padding-block:12px}
  .spot-content {width:fit-content;max-width:100%;display:flex;flex-direction:column;align-items:flex-start}
  .spot-content h1 {font-size:clamp(46px,min(6.7vw,9.8vh),118px);margin-bottom:clamp(10px,2vh,24px)}
  .spot-content .sing-link {margin:0;padding:8px 0}
}

/* The recorded frame, its transport and the tool drawer share one review screen. */
#entry {--take-bg:#18151e;--take-ink:#fff5e5;--take-muted:#c6bfc9;--take-line:#4a424d;--take-accent:#0eebd2;
  width:min(650px,calc(100vw - 40px));height:min(820px,calc(100dvh - 40px));max-width:100%;max-height:100dvh;
  padding:0;overflow:hidden;border:1px solid var(--take-line);border-radius:18px;background:var(--take-bg);color:var(--take-ink);
  font-family:Rubik,Arial,sans-serif}
#entry::backdrop {background:#09090dde}
#takeForm {width:100%;height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
#entry button {font-family:inherit}
#entry button:focus-visible,#entry input:focus-visible,#entry select:focus-visible {outline:2px solid var(--take-accent);outline-offset:-2px}
.take-head {display:flex;align-items:center;justify-content:space-between;padding:8px 16px 9px 19px}
#entryTitle,.take-panel h3 {font-family:Rubik,"Arial Narrow",sans-serif;font-style:normal;font-weight:800;text-transform:none;letter-spacing:-.012em;line-height:.96;margin:0}
#entryTitle {font-size:clamp(38px,6vw,49px);color:#ff796e}
#entry .close {position:static;width:44px;height:44px;display:grid;place-items:center;margin:0;padding:0;color:var(--take-ink);background:transparent;border:0}
#entry .close svg {width:23px;height:23px}
.take-workspace {position:relative;display:grid;min-height:0;min-width:0;background:#0a090e;isolation:isolate}
#review {min-height:0;min-width:0;display:grid;grid-template-rows:minmax(0,1fr) auto}
.take-frame {overflow:hidden;position:relative;min-height:0;background:#0a090e;isolation:isolate}
#reviewBackdrop {position:absolute;inset:-6%;width:112%;height:112%;object-fit:cover;filter:blur(22px);opacity:.38;pointer-events:none}
#entry #reviewVideo {position:absolute;inset:0;width:100%;height:100%;max-height:none;display:block;margin:0;border:0;border-radius:0;background:transparent;object-fit:contain;cursor:pointer}
#takeForm #recordedVoice {position:absolute;left:12px;top:12px;margin:0;padding:4px 9px;display:flex;align-items:center;gap:6px;
  color:#fff;border-radius:20px;background:#121119b8;font:600 13px/1.25 Rubik,Arial,sans-serif;pointer-events:none}
#takeForm #recordedVoice[hidden] {display:none}
#recordedVoice svg {width:16px;height:16px;color:var(--take-accent)}
#review .review-controls {display:flex;align-items:center;gap:8px;padding:0 15px 0 5px;background:#101015;color:var(--take-ink)}
#review .review-controls #reviewPlay {display:grid;place-items:center;width:44px;min-width:44px;height:44px;border:0;background:transparent;color:white;font-size:16px}
#reviewPlay span {display:none}
#reviewPlay[data-state=play] .play,#reviewPlay[data-state=pause] .pause,#reviewPlay[data-state=replay] .replay {display:flex}
#reviewPlay svg {width:20px;height:20px}
#reviewTime {flex:none;min-width:70px;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;text-align:right}
#reviewSeek {flex:1;min-width:20px;margin:0;height:44px;cursor:pointer;appearance:none;background:transparent;--played:0%}
#reviewSeek::-webkit-slider-runnable-track {height:3px;background:linear-gradient(to right,var(--take-accent) var(--played),#625d66 var(--played));border-radius:3px}
#reviewSeek::-moz-range-track {height:3px;background:#625d66;border-radius:3px}
#reviewSeek::-moz-range-progress {height:3px;background:var(--take-accent)}
#reviewSeek::-webkit-slider-thumb {appearance:none;width:12px;height:12px;margin-top:-4.5px;border:0;border-radius:50%;background:var(--take-accent)}
#reviewSeek::-moz-range-thumb {width:12px;height:12px;border:0;border-radius:50%;background:var(--take-accent)}
.take-tools {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:6px 12px;border-bottom:1px solid var(--take-line)}
.take-tools button {display:flex;align-items:center;justify-content:center;gap:7px;min-height:45px;padding:5px;border:0;border-radius:7px;background:transparent;color:var(--take-ink);font-size:15px;font-weight:650}
.take-tools svg {width:19px;height:19px}
.take-tools button[aria-expanded=true] {background:#343039;color:var(--take-accent)}
.take-post {display:grid;grid-template-columns:1fr minmax(130px,1fr);align-items:center;gap:0 12px;padding:11px 18px 13px}
.take-visibility {font-size:13px;line-height:1.25;color:var(--take-muted)}
#entry #submitEntry {min-height:48px;margin:0;width:100%;padding:8px;border:0;border-radius:7px;color:#082527;background:var(--take-accent);font-size:18px;font-weight:750}
#entry button:disabled {opacity:.55}
#entry #formStatus {grid-column:1/-1;margin:0 0 8px;color:var(--take-ink);font-size:14px;line-height:1.28;overflow-wrap:anywhere}
#entry #formStatus:empty,#entry #effectStatus:empty {display:none}
#entry .take-panel {position:absolute;z-index:2;inset:auto 0 0;max-height:100%;min-height:0;min-width:0;display:flex;flex-direction:column;margin:0;padding:0;
  border:0;border-top:1px solid #716277;border-radius:16px 16px 0 0;background:#24202a;color:var(--take-ink);box-shadow:0 -10px 38px #07060a70}
#entry .take-panel[hidden] {display:none}
.take-panel header {flex:none;display:flex;align-items:center;justify-content:space-between;padding:6px 12px 3px 17px}
.take-panel h3 {font-size:30px}
.take-panel [data-panel-done] {height:44px;padding:0 7px;background:transparent;color:var(--take-accent);font-size:15px;font-weight:650}
.take-panel-body {padding:0 17px 14px;overflow:auto;overscroll-behavior:contain;min-height:0}
#entry .pair {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:7px 0}
#entry .pair label {display:block;min-width:0;font-size:14px;font-weight:600}
#entry .pair label[hidden] {display:none}
#entry .pair small {color:var(--take-muted);font-size:12px}
#entry .pair input,#entry .pair select {display:block;width:100%;min-width:0;margin-top:4px;border-radius:5px;border:1px solid #706471;background:#19161e;color:var(--take-ink);padding:9px 8px;font:400 16px/1.2 Rubik,Arial,sans-serif}
#entry .fx-options fieldset {margin:4px 0 10px}
#entry .fx-options legend {font-size:14px;color:var(--take-muted)}
#entry .fx-rail {gap:6px}
#entry .fx-rail button {min-height:42px;padding:5px 11px;color:var(--take-ink);background:#302a35;border:1px solid #605664;border-radius:8px}
#entry .fx-rail button[aria-pressed=true] {background:#b9fff0;color:#102b29;border-color:#b9fff0}
.fx-actions {display:flex;align-items:center;gap:8px}
.fx-actions button {min-height:44px;padding:6px 12px;font-size:15px;font-weight:650;border-radius:6px}
#previewEffects {background:var(--take-ink);color:#231b27}
#resetEffects {background:transparent;color:var(--take-muted)}
#effectStatus {margin:6px 0 0;line-height:1.3;font-size:14px}
@media (max-width:650px),(max-height:590px) {
  #entry {width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}
  .take-head {padding-top:max(6px,env(safe-area-inset-top))}
  .take-post {padding-bottom:max(10px,env(safe-area-inset-bottom))}
}
@media (min-width:651px) and (max-height:590px) {
  #takeForm {grid-template-columns:minmax(0,1fr) minmax(240px,33%);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"frame head" "frame tools" "frame post"}
  .take-workspace {grid-area:frame}.take-head {grid-area:head}.take-tools {grid-area:tools;align-self:end}.take-post {grid-area:post}
}
@media (max-height:390px) {.take-head {padding-block:0}.take-head h2 {font-size:32px}.take-post {padding-block:4px}.take-tools {padding-block:0}}

/* Voice presets sit on a shallow curve above the fixed shutter. */
#cameraDialog .camera-controls {
  width:min(380px,calc(100% - 24px));bottom:max(14px,env(safe-area-inset-bottom));
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  grid-template-areas:"avatar avatar avatar" "voices voices voices" "hint hint hint" "look shutter listen" "recovery recovery recovery";
  align-items:center;gap:0 5px;
}
#cameraDialog .camera-frame {--leg:18px;--stroke:3px;bottom:clamp(178px,27dvh,224px);opacity:.65}
#characterHint {grid-area:avatar;margin:0 8px 5px}
#camHint {grid-area:hint}
#camHint:not(:empty) {padding:2px 0 6px;font:600 13px/1.3 Rubik,Arial,sans-serif}
#camRecovery {grid-area:recovery}
#camRecovery:not([hidden]) {margin-top:7px}
#capture {grid-area:shutter}
#cameraDialog #capture {width:74px;height:74px;padding:0;border:4px solid #fff6e8;box-shadow:0 2px 8px #00141666}
#cameraDialog #capture i {width:57px;height:57px;background:#ff5e55}
#cameraDialog #capture.is-recording i {width:27px;height:27px;border-radius:6px}
#cameraDialog #characterPicker {grid-area:look;justify-self:start;gap:0;padding:3px;border:1px solid #fffae956;background:#082226bd}
#cameraDialog #characterPicker button {justify-content:center;padding:6px 8px;min-width:40px;min-height:38px;font:700 13px/1.1 Rubik,Arial,sans-serif;white-space:nowrap}
#cameraDialog #characterPicker button[aria-pressed=true] {background:#83f5df;color:#072a2b}
#monitorControl {position:relative;grid-area:listen;justify-self:end;display:grid;place-items:center;width:46px;height:46px;color:#fff6e8;background:#092024c9;border:1px solid #fffae977;border-radius:50%;cursor:pointer}
#monitorControl input {position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
#monitorControl svg {width:23px;height:23px}
#monitorControl:has(input:checked) {background:#83f5df;color:#092b2c;border-color:#b6ffec}
#monitorControl:focus-within,#voiceArc .arc-preset:focus-visible,#characterPicker button:focus-visible {outline:3px solid #fff6e8;outline-offset:2px}
#cameraDialog #liveVoiceRack {grid-area:voices;display:block;position:relative;width:100%;height:clamp(106px,16dvh,126px);margin:0 0 5px;text-align:center;user-select:none;-webkit-user-select:none}
#cameraDialog #voiceArc {position:absolute;inset:0;display:block;touch-action:pan-y pinch-zoom;cursor:grab}
#voiceArc:active {cursor:grabbing}
#voiceArc .arc-guide {position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#fff4dcb8;stroke-width:1.5;pointer-events:none;filter:drop-shadow(0 1px 2px #13272b)}
#cameraDialog #voiceArc .arc-preset {
  position:absolute;width:49px;height:49px;min-width:0;margin:0;padding:4px;color:white;background:#10232acf;border:1.5px solid #f3eee6bf;
  border-radius:50%;display:grid;place-items:center;transform:translate(-50%,-50%);cursor:pointer;
  transition:left .17s ease-out,top .17s ease-out,transform .17s ease-out,opacity .12s ease-out;
}
.arc-preset svg {display:block;width:100%;height:100%;border-radius:50%;overflow:hidden;pointer-events:none}
#voiceArc [data-slot="-2"] {left:8%;top:78%}
#voiceArc [data-slot="-1"] {left:28%;top:38%}
#voiceArc [data-slot="0"] {left:50%;top:23%}
#voiceArc [data-slot="1"] {left:72%;top:38%}
#voiceArc [data-slot="2"] {left:92%;top:78%}
#voiceArc [data-slot="-3"] {left:2%;top:85%}
#voiceArc [data-slot="3"] {left:98%;top:85%}
#voiceArc .arc-preset[aria-hidden=true] {opacity:0;visibility:hidden;pointer-events:none}
#cameraDialog #voiceArc [data-slot="0"] {padding:3px;background:#57f3d7;border:2px solid #83ffe7;box-shadow:0 1px 8px #05232c99;transform:translate(-50%,-50%) scale(1.12)}
#cameraDialog #voiceArcName {position:absolute;left:50%;top:63%;transform:translateX(-50%);max-width:70%;white-space:nowrap;color:#fff5e5;
  font:700 clamp(24px,6.2vw,31px)/1 Rubik,"Arial Narrow",sans-serif;text-transform:none;
  text-shadow:0 1px 5px #0b1320,0 1px 15px #0b1320;pointer-events:none}
#cameraDialog #liveVoiceRack.locked {height:auto;margin:0}
#liveVoiceRack.locked #voiceArc {display:none}
#cameraDialog #liveVoiceRack.locked #voiceArcName {position:static;transform:none;display:inline-block;font-size:22px}
@media (max-width:350px) {
  #cameraDialog #characterPicker button {min-width:36px;padding:6px;font-size:12px}
  #cameraDialog #voiceArc .arc-preset {width:45px;height:45px}
}
@media (max-height:450px) {
  #cameraDialog .camera-controls {width:min(340px,calc(100% - 16px));bottom:max(5px,env(safe-area-inset-bottom))}
  #cameraDialog #liveVoiceRack:not(.locked) {height:92px;margin-bottom:2px}
  #cameraDialog #voiceArc .arc-preset {width:44px;height:44px}
  #cameraDialog #capture {width:60px;height:60px}
  #cameraDialog #capture:not(.is-recording) i {width:46px;height:46px}
  #cameraDialog .camera-frame {bottom:140px}
}
@media(prefers-reduced-motion:reduce) {#cameraDialog #voiceArc .arc-preset {transition:none}}

#cameraDialog #openOutfits {
  grid-area:look;justify-self:start;display:flex;align-items:center;gap:6px;max-width:100%;
  min-height:46px;padding:5px 10px;border-radius:24px;border:1px solid #fffae977;
  color:#fff6e8;background:#092024c9;font:700 14px/1.15 Rubik,Arial,sans-serif;
}
#openOutfits svg {width:23px;height:23px;flex:none}
#openOutfits span {min-width:0;text-align:left}
#openOutfits small {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8ef5df;font-size:10px}
#openOutfits small[hidden],#cameraDialog #openOutfits:disabled {visibility:hidden}
#openOutfits small[hidden] {display:none}
#outfitDrawer {
  box-sizing:border-box;width:min(100%,520px);max-width:100%;height:auto;max-height:min(88dvh,780px);margin:auto auto 0;padding:0;
  border:1px solid #385052;border-bottom:none;border-radius:27px 27px 0 0;background:#0b1f24;color:#fff5e8;
  font-family:Rubik,Arial,sans-serif;overflow:hidden;
}
#outfitDrawer[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto}
#outfitDrawer::backdrop {background:#001417b3}
#outfitDrawer header {display:flex;align-items:center;justify-content:space-between;padding:18px 18px 6px}
#outfitDrawer h2 {margin:0;font:700 38px/1.03 Rubik,"Arial Narrow",sans-serif;text-transform:none;color:#fff3db;letter-spacing:-.02em}
#outfitDrawer header button {position:static;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid #738083;background:transparent;color:#ffefe4;font-size:28px}
.outfit-body {overflow:auto;overscroll-behavior:contain;padding:0 18px 14px}
.outfit-body p {margin:6px 0 14px;color:#bcceca;font-size:14px;line-height:1.4}
#outfitStatus:empty {display:none}
#outfitCards {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#outfitCards button {position:relative;min-width:0;padding:0;border:2px solid transparent;border-radius:13px;background:#193135;color:#fff5e8;overflow:hidden;text-align:left}
#outfitCards button[aria-pressed=true] {border-color:#80f4d6}
#outfitCards button[aria-pressed=true]::after {content:"✓";position:absolute;right:4px;top:4px;width:21px;height:21px;display:grid;place-items:center;border-radius:100%;background:#80f4d6;color:#09272a;font:bold 14px/1 Rubik,Arial}
#outfitCards button:focus-visible,#outfitDrawer button:focus-visible,#openOutfits:focus-visible {outline:3px solid white;outline-offset:1px}
.outfit-art {display:grid;place-items:center;height:clamp(61px,18vw,88px);background:radial-gradient(ellipse at 42% 60%,#b88895,#745775)}
#outfitCards button:nth-child(3n) .outfit-art {background:radial-gradient(ellipse at 45% 50%,#ffbd83,#b67273)}
#outfitCards button:nth-child(3n + 1) .outfit-art {background:radial-gradient(ellipse at 42% 52%,#83b8a9,#547f8d)}
.outfit-art img {height:100%;width:100%;object-fit:contain;padding:3px;box-sizing:border-box}
.outfit-art svg {width:36px;height:36px;color:#fff5e8}
#outfitCards strong {display:block;padding:6px 7px;font:700 13px/1.15 Rubik,Arial,sans-serif}
.outfit-avatar {margin-top:17px;border-top:1px solid #496166;padding-top:12px}
#outfitDrawer #characterPicker {display:block;margin:0;padding:0;background:none;border:0;border-radius:0}
#outfitDrawer #characterPicker legend {margin-bottom:5px;color:#c3d3cf;font-size:13px}
#outfitDrawer #characterPicker button {min-height:44px;margin:0 4px 0 0;padding:6px 13px;border-radius:22px;border:1px solid #597074;background:#162e32;color:#fff5e8;font:700 14px/1 Rubik,Arial,sans-serif}
#outfitDrawer #characterPicker button[aria-pressed=true] {color:#89ffdf;border-color:#89ffdf}
.outfit-foot {padding:10px 18px max(12px,env(safe-area-inset-bottom));border-top:1px solid #43575b}
#useOutfit {width:100%;min-height:48px;border:0;border-radius:14px;background:#73f1cf;color:#092a28;font:700 17px/1 Rubik,Arial,sans-serif}
@media(max-width:350px) {#outfitCards {grid-template-columns:repeat(2,minmax(0,1fr))}#cameraDialog #openOutfits {padding:5px 7px}}
@media(min-width:700px) {#outfitDrawer {margin:auto;border:1px solid #385052;border-radius:24px}#outfitCards {grid-template-columns:repeat(4,minmax(0,1fr))}}
#outfitCards .outfit-art {grid-template:100% / 100%;overflow:hidden}
#outfitCards .outfit-art img {display:block;min-width:0;min-height:0}
#lookLayer {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
#lookLayer.front {transform:scaleX(-1)}
#cameraDialog #lookLayer.avatar-layer {inset:48px 0 auto;height:calc(100% - 236px);object-fit:contain;transform:none}
#lookHint {position:absolute;inset:max(72px,10%) 12px auto;width:fit-content;max-width:calc(100% - 24px);margin:0 auto;padding:6px 12px;color:white;background:#07292acc;border-radius:16px;text-align:center;font:600 14px/1.3 Rubik,sans-serif;pointer-events:none}
#lookLayer[hidden],#lookHint[hidden],#outfitCards [hidden],#effectControls button[hidden],.outfit-foot[hidden] {display:none}
.look-tabs {display:flex;gap:7px;margin:9px 0}.look-tabs button {padding:9px 17px;min-height:44px;border:1px solid #52696b;background:transparent;color:#fff4e5;border-radius:22px;font-weight:700}
.look-tabs button[aria-pressed=true] {color:#0c2628;background:#8df5df;border-color:#8df5df}

/* The chart keeps the performer and the voting targets on separate lines on a phone. */
.pq-chevron {display:inline-block;width:16px;height:16px;flex:none;vertical-align:middle;pointer-events:none}
.select-wrap>.pq-chevron {position:absolute;right:9px;top:50%;transform:translateY(-50%)}
details>summary {list-style:none;cursor:pointer}
details>summary::-webkit-details-marker {display:none}
details>summary .pq-chevron {margin-left:.45em}
details[open]>summary .pq-chevron {transform:rotate(180deg)}
.chart-play {position:absolute;display:grid;place-items:center;right:2px;bottom:2px;width:16px;height:16px;border-radius:50%;background:#061c22b8}
.chart-play svg {width:10px;height:10px;fill:#fff;stroke:#fff}
.rank .move svg {width:12px;height:12px;vertical-align:middle}
.performance-cell,.artist,.desc {min-width:0}
.performance-cell .desc {display:grid;text-align:left;overflow:hidden}
.performance-cell .desc strong,.performance-cell .desc small {overflow:hidden;text-overflow:ellipsis}
.mobile-vote-label {display:none}
.take-tags,#tagLinks {display:flex;gap:5px 10px;flex-wrap:wrap}
.take-tags:empty {display:none}
.tag-link {color:#89f6df;font-weight:650;overflow-wrap:anywhere}
.reel-tags {position:relative;z-index:1;max-height:65px;overflow:auto}.reel-tags .tag-link {color:#a4ffe7;text-shadow:0 1px 4px #00100f}
.tag-page h1 {font:700 clamp(38px,8vw,68px)/1 Rubik,sans-serif;color:#fff5e1;overflow-wrap:anywhere}
.tag-page {padding:24px 0}.tag-page form {display:flex;gap:6px;margin:15px 0}
#tagSearch input,#tagSearch button {min-height:44px;padding:9px 14px;border-radius:12px}
.tag-page input {min-width:0;flex:auto;background:#133539;color:white;border:1px solid #556e72}#tagSearch button {background:#80f3d6;color:#062a29;font-weight:700}
#tagTakes {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(145px,45%),1fr));gap:6px}
#tagTakes .wall-tile {min-width:0;aspect-ratio:4/5;height:auto}#tagTakes .wall-caption {opacity:1;padding:28px 9px 9px}
#tagTakes .wall-caption strong {font-size:14px;line-height:1.18;letter-spacing:-.015em;overflow-wrap:anywhere}
#tagTakes .wall-caption small:not(.artist-disclosure) {font-size:12px;line-height:1.23}
#tagTakes .wall-caption .artist-disclosure {font-size:10px;line-height:1.2;margin:2px 0}
#tagTakes .wall-duration {inset:7px auto auto 9px;font-size:11px}
#tagTakes .wall-duration svg {width:11px;height:11px}
@media(max-width:640px){
 .chart-table .tablehead {position:absolute;clip-path:inset(50%);overflow:hidden;width:1px;height:1px;padding:0}
 .chart-table .data-row {display:grid;grid-template-columns:minmax(34px,auto) minmax(0,1fr) auto;grid-template-areas:"rank performance performance" ". score actions";gap:2px 10px;padding:12px 0 6px}
 .data-row .rank {grid-area:rank;align-self:start;text-align:left;padding-top:3px}
 .data-row .genreCell {display:none}.data-row .performance-cell {grid-area:performance}
 .chart-table .artist {display:flex;width:100%;gap:10px;align-items:center;padding:0}
 .chart-table .artist .thumb {width:48px;height:54px}.data-row .desc strong{font-size:16px}
 .data-row .desc small {line-height:1.3;white-space:normal;overflow-wrap:anywhere}
 .data-row .votes {grid-area:score;text-align:left;font-size:15px;white-space:normal}.mobile-vote-label {display:inline;font:500 12px Rubik,sans-serif;color:#a5c4c3}
 .data-row .row-actions {grid-area:actions;justify-self:end}
 .data-row .vote-pair {display:flex;gap:6px}.data-row .vote-pair button {min-width:44px;min-height:44px;border:1px solid #406366;border-radius:50%}
 .data-row .take-tags {margin:4px 0 0 58px;font-size:12px}
 #leaderboard .board-heading {align-items:end;gap:8px;margin-bottom:14px}
 #leaderboard .toolbar {display:flex;flex-wrap:wrap;gap:5px 10px;align-items:center}
 #leaderboard .filters {display:flex;flex-wrap:wrap;gap:6px}
 #leaderboard .select-wrap select {min-height:42px;padding-left:30px;padding-right:29px;max-width:185px}
 #leaderboard .count {font-size:12px} .chart-sidelinks {gap:8px 18px;flex-wrap:wrap}
}
#posted {background:#10232a;color:#fff6e8}
#posted .modal-head {position:absolute;right:12px;top:12px;z-index:2;width:auto;padding:0}
#posted .modal-head .close {width:44px;height:44px;background:#0c2529b3;border:1px solid #688080}
#posted .modal-body {display:block;padding:0 18px max(18px,env(safe-area-inset-bottom))}
.share-cover {display:flex;gap:15px;align-items:center;margin:0 -18px 17px;padding:20px 56px 18px 18px;background:linear-gradient(115deg,#50323e,#14383c 70%);min-height:112px}
.share-cover img {width:68px;height:86px;border-radius:6px;object-fit:cover;transform:rotate(-4deg);box-shadow:3px 4px #081b20}
.share-cover>div {min-width:0}
#posted .share-cover h2 {font:700 13px/1.2 Rubik,sans-serif;color:#ffac9f;margin:0 0 5px}
#posted .share-cover strong {font:700 clamp(29px,7vw,42px)/1.03 Rubik,sans-serif;display:block;text-transform:none;overflow-wrap:anywhere;color:#fff4dc}
#shareArtist {margin:5px 0 0;color:#cbddda;font-size:14px}
#posted .share-destinations {margin:10px 0 12px;display:flex;gap:7px;justify-content:flex-start}
#posted .share-destinations>* {display:flex;flex:1;gap:5px;align-items:center;justify-content:center;min-height:48px;padding:7px 3px;background:#214249;border:1px solid #4e6d70;color:white;border-radius:13px;font:700 14px/1 Rubik,sans-serif}
#posted .share-destinations>*[hidden]{display:none}
#posted .share-destinations #shareWhatsapp {background:#83f2d4;color:#0a302c;border-color:#83f2d4}
#posted .share-destinations span {background:none;width:21px;height:21px;padding:0;color:inherit}
#posted .share-destinations svg {width:21px;height:21px}
#shareEdit,#posted #reportPanel {margin:4px 0;padding:0;border:0}
#posted details>summary {display:flex;align-items:center;justify-content:space-between;min-height:44px;color:#cddfda}
#shareEdit textarea {width:100%;margin:5px 0}#shareEdit button {min-height:44px;border-radius:10px;padding:6px 12px}
#posted .share-feedback:empty {display:none}#posted .fine {margin:10px 0 0;font-size:12px}
#screenFill {display:none;position:absolute;inset:0;z-index:1;pointer-events:none;border:solid #fff8ee;border-width:clamp(28px,7dvh,68px) clamp(24px,7vw,78px);box-shadow:inset 0 0 20px 7px #fff8eed9}
#cameraDialog.screen-fill #screenFill {display:block}
#cameraDialog .camera-head,#cameraDialog .camera-controls,#cameraDialog #singCue,#cameraDialog .camera-message {z-index:3}
#cameraLight {display:flex;align-items:center;justify-content:center;gap:3px;position:absolute;right:50px;min-width:44px;min-height:44px;padding:5px 7px;border:1px solid #c2f3ee70;border-radius:20px;background:#092427bb;color:#fff7df;cursor:pointer}
#cameraLight svg {width:17px;height:17px}#cameraLight small {font:700 11px/1 Rubik,sans-serif}
#cameraLight[hidden],#lightHint[hidden],#dragRoom[hidden],#outfitCards[hidden],#lookGuide[hidden],.outfit-avatar[hidden] {display:none}
.screen-fill #cameraLight {background:#fff4d6;color:#092427;border-color:#734e3c}
#lightHint {position:absolute;z-index:2;inset:68px 14px auto;margin:0 auto;width:fit-content;max-width:calc(100% - 28px);padding:5px 9px;border-radius:10px;background:#132324e6;color:#fff6db;font:600 12px/1.3 Rubik,sans-serif;text-align:center;pointer-events:none}
#cameraDialog:has(#lightHint:not([hidden])) #lookHint {top:110px}
#dragGroups,#dragOptions {display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;scroll-padding:3px;padding:3px 2px 6px}
#dragGroups button,#dragOptions button {color:#f9ecdf;background:#1e3238;border:1px solid #476168;border-radius:13px;min-height:44px;flex:none;padding:7px 11px;font:700 13px/1.15 Rubik,sans-serif}
#dragGroups button[aria-pressed=true] {background:#ee98be;color:#322032;border-color:#ee98be}
#dragOptions button {min-width:79px;max-width:116px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
#dragOptions button[aria-pressed=true] {border:2px solid #7eeee0;background:#163b42}
#dragOptions img {height:48px;width:63px;object-fit:contain}
.drag-swatch {display:block;width:34px;height:34px}
.swatch-violet,.swatch-cherry {border-radius:50%;background:linear-gradient(135deg,#8b48d5 45%,#e676b2 46%,#91156a)}
.swatch-cherry {background:linear-gradient(135deg,#ff9c73 40%,#eb3158 41%,#a6153c)}
.swatch-dot {border-radius:50%;background:#241824;border:1px solid #ba91b0;width:13px;height:13px;margin:10px}
.swatch-heart::before {content:"♥";font:30px/1 sans-serif;color:#eb93bb}
#outfitDrawer.live-drag {max-height:min(47dvh,365px);margin:auto auto 0}
#outfitDrawer.live-drag::backdrop {background:transparent}
#outfitDrawer.live-drag header {padding-top:6px}
#outfitDrawer.live-drag h2 {font-size:26px}
#outfitDrawer.live-drag .outfit-body {padding-bottom:4px}
#outfitDrawer.live-drag .look-tabs {margin:2px 0}
#outfitDrawer.live-drag .outfit-foot {padding-top:4px;padding-bottom:max(5px,env(safe-area-inset-bottom))}
@media(max-height:560px){#outfitDrawer.live-drag {max-height:58dvh}#outfitDrawer.live-drag header {display:none}#outfitDrawer.live-drag #dragOptions img{height:32px}}
@media(max-width:350px){#cameraLight {right:44px;flex-direction:column;gap:0;padding:3px;min-width:40px}}

/* Leave room for the actual take while browsing its effects. */
.take-workspace:has(#funRack:not([hidden])) {display:flex;flex-direction:column}
.take-workspace:has(#funRack:not([hidden])) #review {flex:1}
#entry #funRack {position:relative;inset:auto;max-height:50%;flex:0 1 auto}
#review {grid-template-rows:minmax(0,1fr) auto auto}
#review #effectStatus {margin:0;padding:5px 12px;background:#18141d;color:var(--take-ink);font-size:13px}
#focusTarget {position:absolute;z-index:2;width:40px;height:40px;transform:translate(-50%,-50%);border:2px solid #a5fff0;border-radius:50%;box-shadow:0 0 0 1px #17232380;pointer-events:none}

#backgroundStage {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
#backgroundStage.front {transform:scaleX(-1)}
#cameraDialog #backgroundStage.avatar-layer {inset:48px 0 auto;height:calc(100% - 236px);transform:none}
#stageHint {position:absolute;z-index:2;top:21%;left:50%;transform:translateX(-50%);max-width:90%;width:max-content;margin:0;padding:6px 10px;border-radius:12px;background:#122127e8;color:white;text-align:center;font-size:14px}
.look-tabs {gap:4px;overflow-x:auto}
.look-tabs button {flex:none;padding-inline:clamp(7px,2.2vw,17px);font-size:clamp(12px,3.5vw,15px)}
#backgroundCards {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#backgroundCards button {position:relative;isolation:isolate;display:flex;align-items:flex-end;min-width:0;min-height:82px;aspect-ratio:1.1;border:2px solid transparent;border-radius:11px;overflow:hidden;padding:7px;color:#fff;background:#153439;text-align:left}
#backgroundCards img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
#backgroundCards button::after {content:"";position:absolute;z-index:-1;inset:40% 0 0;background:linear-gradient(transparent,#091018ed)}
#backgroundCards button[aria-pressed=true] {border-color:#86ffe6;box-shadow:inset 0 0 0 1px #153135}
#backgroundCards span {font:700 13px/1.05 Rubik,sans-serif}
#backgroundCards svg {position:absolute;top:15%;left:12%;width:24px}
.live-drag #backgroundCards {display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:5px}
.live-drag #backgroundCards button {flex:0 0 95px;scroll-snap-align:start}
#backgroundStage[hidden],#backgroundCards[hidden],#stageHint[hidden],#backingMix[hidden] {display:none}
#backingMix {display:grid;grid-template-columns:1fr auto;align-items:center;color:var(--take-ink);font-weight:650;gap:0 8px}
#backingMix output {font-variant-numeric:tabular-nums;color:var(--take-accent)}
#backingLevel {grid-column:1/-1;width:100%;height:32px;accent-color:var(--take-accent)}

.more-voices summary {display:flex;align-items:center;gap:4px;min-height:40px;width:fit-content;font-size:14px;color:var(--take-muted);cursor:pointer}
.more-voices summary svg {width:15px;height:15px}
.more-voices[open] summary svg {transform:rotate(180deg)}

.vocal-guide {margin:0;color:var(--take-muted);font-size:13px;line-height:1.35}

#reviewCover { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; pointer-events:none; }
#reviewCover[hidden] { display:none; }

#phoneFrame {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
#phoneFrame.front {transform:scaleX(-1)}
#phoneFrame[hidden],.has-character #phoneFrame {display:none}
.portrait-camera #liveCamera {opacity:0}

#cameraDialog.has-character #characterStage,
#cameraDialog.has-character #lookLayer.avatar-layer,
#cameraDialog.has-character #backgroundStage.avatar-layer {inset:0;width:100%;height:100%;object-fit:cover}
#outfitDrawer .look-tabs {overflow-x:auto;flex-wrap:nowrap}
#outfitDrawer .look-tabs button {flex-shrink:0}
