/* The voice room's photo wall look (design canvas "Photo wall", Voice/VoiceWall.razor) and
   the switch on the board that swaps it with the room sheet (Voice/RoomLook.razor).
   Polaroids are physical paper: they keep palette colours in every theme. */

/* ---- the switch, on the board's top-right (phone: top-left) in both looks */
.room-look-spot { position: absolute; top: 10px; right: 10px; z-index: 8; pointer-events: auto; }
.canvas-port > .room-look-spot, .vw.phone .room-look-spot { right: auto; left: 8px; top: 8px; }
.room-look {
    display: inline-flex; align-items: center; gap: 2px; padding: 3px;
    border: 2.5px solid var(--gray-900); border-radius: 22px 16px 20px 14px; background: var(--cream);
    box-shadow: 2px 3px 0 var(--gray-900); font-family: var(--font-hand); color: var(--gray-900);
}
.room-look-b {
    display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px 0 9px;
    border: none; border-radius: 18px 13px 17px 12px; background: none;
    font: inherit; font-size: 15px; color: var(--gray-700); cursor: pointer; white-space: nowrap;
}
.room-look-b:hover { background: color-mix(in srgb, var(--gray-900) 6%, transparent); }
.room-look-b.on { background: var(--yellow-500); color: var(--gray-900); }
.room-look-b:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 1px; }
.room-look-b .n {
    font-size: 12.5px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
    display: grid; place-items: center; border-radius: 9px; background: var(--stone-200); color: var(--gray-900);
}
.room-look-b.on .n { background: var(--gray-900); color: var(--white); }
.room-look.phone .room-look-b { min-height: 40px; }

/* ---- the frame: the board's own frame and paper pattern, nothing drawn on it */
.voice-wall-frame { flex-shrink: 0; }

/* ---- the wall */
.vw { position: absolute; inset: 0; z-index: 1; overflow: hidden; font-family: var(--font-hand); color: var(--gray-900); }
.vw-mk { font-family: var(--font-marker); font-weight: 700; line-height: 1.05; }

/* head: only what the room size needs. a few people = just "follow who's talking" */
.vw-head { position: absolute; top: 8px; z-index: 6; display: flex; align-items: center; gap: 10px; }
.vw.phone .vw-head { flex-wrap: wrap; gap: 6px; }
.vw.phone .vw-follow { padding: 0 10px; gap: 4px; }
.vw-spc { flex-shrink: 0; height: 44px; }
.vw.phone .vw-spc { order: 0; } .vw.phone .vw-follow { order: 1; } .vw.phone .vw-now { order: 2; }
.vw.phone .vw-find { order: 3; } .vw.phone .vw-chips { order: 4; }
.vw-now {
    display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 6px; min-width: 0; max-width: 330px; box-sizing: border-box;
    border: 2px solid var(--gray-900); border-radius: 22px 16px 20px 14px; background: var(--cream); box-shadow: 2px 2px 0 var(--gray-900);
}
.vw.phone .vw-now { max-width: none; flex: 1; }
.vw-now .fc { display: flex; }
.vw-now .fc button { display: grid; margin-left: -6px; padding: 0; border: none; background: none; border-radius: 50%; cursor: pointer; }
.vw-now .fc button:first-child { margin-left: 0; }
.vw-nowface {
    width: 32px; height: 32px; display: grid; place-items: center; overflow: hidden; box-sizing: border-box;
    border: 2px solid var(--cream); border-radius: 50%; box-shadow: 0 0 0 2.5px var(--green-500);
    color: var(--white); font-family: var(--font-marker); font-weight: 700; font-size: 19px;
}
.vw-nowface .face-img, .vw-face .face-img, .vw-photo .face-img { width: 100%; height: 100%; object-fit: cover; }
.vw-now .t { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vw-now.quiet .t { color: var(--gray-600); }
.vw-find {
    display: flex; align-items: center; gap: 6px; height: 44px; width: 190px; padding: 0 12px; box-sizing: border-box;
    border: 2px solid var(--gray-900); border-radius: 185px 25px 145px 20px / 20px 155px 25px 175px; background: var(--white); color: var(--gray-600);
}
.vw-find input { border: none; outline: none; background: none; font: inherit; font-size: 16px; color: var(--gray-900); width: 100%; min-width: 0; box-shadow: none; padding: 0; }
.vw.phone .vw-find { width: 120px; }
.vw-chips { display: flex; gap: 6px; }
.vw.phone .vw-chips { width: 100%; overflow-x: auto; scrollbar-width: none; }
.vw-chip {
    flex-shrink: 0; display: flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 12px;
    border: 2px solid var(--gray-900); border-radius: 20px 14px 18px 16px; background: var(--cream);
    font: inherit; font-size: 15px; color: var(--gray-900); cursor: pointer; white-space: nowrap;
}
.vw-chip .n {
    font-size: 12.5px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
    display: grid; place-items: center; border-radius: 9px; background: var(--stone-200);
}
.vw-chip.on { background: var(--yellow-500); box-shadow: 2px 2px 0 var(--gray-900); }
.vw-chip.on .n { background: var(--gray-900); color: var(--white); }
.vw-chip:focus-visible, .vw-pol:focus-visible, .vw-menu .it:focus-visible { outline: 3px solid var(--blue-700); outline-offset: 2px; }
.vw-follow .sw { width: 30px; height: 18px; border: 2px solid var(--gray-900); border-radius: 10px; box-sizing: border-box; position: relative; background: var(--white); }
.vw-follow .sw i { position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--gray-900); transition: left .15s; }
.vw-follow.on .sw { background: var(--green-500); }
.vw-follow.on .sw i { left: 14px; background: var(--white); }

/* the polaroids, taped straight onto the wall */
.vw-area { position: absolute; left: 0; right: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.vw-in { position: relative; }
.vw-tile {
    position: absolute;
    transition: left .4s cubic-bezier(.3, .8, .35, 1), top .4s cubic-bezier(.3, .8, .35, 1), width .4s cubic-bezier(.3, .8, .35, 1), height .4s cubic-bezier(.3, .8, .35, 1);
}
.vw-pol {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%; box-sizing: border-box; padding: var(--pad) var(--pad) 0;
    display: flex; flex-direction: column; border: none; background: var(--cream); color: var(--gray-900); font: inherit; cursor: pointer; rotate: var(--r);
    box-shadow: 0 1px 1px color-mix(in srgb, var(--black) 14%, transparent), 4px 9px 12px -6px color-mix(in srgb, var(--black) 40%, transparent);
    transition: translate .2s, box-shadow .2s, rotate .3s;
}
.vw-pol::before {
    content: ""; position: absolute; z-index: 2; top: calc(var(--tape) * -.45); left: 50%; width: calc(var(--tape) * 2.6); height: var(--tape);
    translate: -50% 0; rotate: -4deg; background: color-mix(in srgb, var(--yellow-500) 82%, transparent);
}
.vw-tile.me .vw-pol::before { background: color-mix(in srgb, var(--blue-100) 92%, transparent); }
.vw-tile.friend .vw-pol::before { background: color-mix(in srgb, var(--red-100) 92%, transparent); }
.vw-photo {
    position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden;
    color: var(--white); font-family: var(--font-marker); font-weight: 700;
}
.vw-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, color-mix(in srgb, var(--white) 25%, transparent), transparent 45%); }
.vw-photo.cam { background: var(--night-600); }
.vw-photo .voice-video, .vw-inset .voice-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vw-cap { display: flex; align-items: center; justify-content: center; gap: 4px; flex-shrink: 0; font-family: var(--font-marker); font-weight: 700; line-height: 1; white-space: nowrap; overflow: hidden; }
.vw-cap .nm { overflow: hidden; text-overflow: ellipsis; }
.vw-cap .x { color: var(--red-700); flex-shrink: 0; }
.vw-cap .tv { color: var(--red-600); flex-shrink: 0; }

/* streaming: their polaroid turns into a little screen, their face rides on it as a badge.
   nothing of the stream loads until you watch, so it's a placeholder, not a preview */
.vw-photo.live {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
    background: linear-gradient(160deg, var(--night-500), var(--night-900)); color: var(--mist-100); font-family: var(--font-hand); font-weight: 400;
}
.vw-photo.live::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--white) 3.5%, transparent) 0 2px, transparent 2px 4px); }
.vw-photo.live.on { background: var(--night-900); }
.vw-photo.live.on::before { content: none; }
.vw-photo.live .what { font-family: var(--font-marker); font-weight: 700; line-height: 1; color: var(--white); padding: 0 6px; }
.vw-photo.live .go { display: flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 12px; background: var(--blue-700); color: var(--white); font-size: 14px; white-space: nowrap; }
.vw-live {
    position: absolute; left: 7px; top: 7px; z-index: 2; display: flex; align-items: center; gap: 5px; padding: 0 8px 0 6px;
    border-radius: 9px; background: var(--red-600); color: var(--white); font-size: 12.5px; line-height: 19px; letter-spacing: .04em; font-family: var(--font-hand); font-weight: 400;
}
.vw-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--white); animation: vw-blink 1.4s ease-in-out infinite; }
@keyframes vw-blink { 50% { opacity: .25; } }
.vw-face {
    position: absolute; right: 7px; bottom: 7px; z-index: 2; display: grid; place-items: center; overflow: hidden; box-sizing: border-box;
    border: 2.5px solid var(--cream); border-radius: 50%; color: var(--white); font-family: var(--font-marker); font-weight: 700;
    box-shadow: 0 2px 4px color-mix(in srgb, var(--black) 35%, transparent);
}
.vw-tile.s .vw-photo.live :is(.what, .go span) { display: none; }
.vw-tile.s .vw-live { padding: 0 5px; font-size: 11px; line-height: 16px; }
.vw-tile.s .vw-live b { display: none; }
.vw-tile.streamer .vw-pol { box-shadow: 0 0 0 2.5px var(--red-600), 4px 9px 12px -6px color-mix(in srgb, var(--black) 40%, transparent); }

/* streaming AND camera: the camera rides on the screen as a little live inset */
.vw-inset {
    position: absolute; right: 7px; top: 7px; z-index: 2; display: grid; place-items: center; box-sizing: border-box; overflow: hidden;
    border: 3px solid var(--cream); border-radius: 3px; rotate: -2deg; box-shadow: 0 3px 6px color-mix(in srgb, var(--black) 40%, transparent);
}
.vw-inset.cam { background: var(--night-600); }
.vw-inset.scr { top: auto; bottom: 7px; background: linear-gradient(160deg, var(--night-500), var(--night-900)); color: var(--mist-100); }
.vw-inset.scr .vw-live { left: 4px; top: 4px; padding: 0 5px; font-size: 10.5px; line-height: 15px; }
.vw-tile.s .vw-inset .icon { display: none; }

/* talking: green ring + sound squiggles; the ring wins over a streamer's red edge */
.vw-tile.talk .vw-pol {
    translate: 0 -4px;
    box-shadow: 0 0 0 clamp(3px, calc(var(--pad) * .5 + 1px), 6px) var(--green-500), 5px 12px 14px -6px color-mix(in srgb, var(--black) 40%, transparent);
}
.vw-tile.talk .vw-cap .nm { color: var(--green-700); }
.vw-tile.on .vw-pol { box-shadow: 0 0 0 4px var(--blue-700), 4px 9px 12px -6px color-mix(in srgb, var(--black) 40%, transparent); }
.vw-tile.hit .vw-pol { background: var(--yellow-200); }
.vw-waves {
    position: absolute; right: calc(var(--wv) * -1.1); top: 38%; opacity: 0; pointer-events: none;
    fill: none; stroke: var(--green-500); stroke-width: 3; stroke-linecap: round;
}
.vw-tile.talk .vw-waves { opacity: 1; animation: vw-wv .5s ease-in-out infinite alternate; }
@keyframes vw-wv { to { translate: 3px 0; } }
.vw-tile.fresh .vw-pol { animation: vw-in .45s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes vw-in { from { scale: .6; opacity: 0; } }

/* "made bigger": a badge so you know it's your own choice */
.vw-pinb {
    position: absolute; right: calc(var(--pad) + 4px); top: calc(var(--pad) + 4px); z-index: 3;
    display: flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px;
    border: 2px solid var(--gray-900); border-radius: 10px; background: var(--cream); color: var(--gray-900); font-size: 13px; font-family: var(--font-hand); font-weight: 400;
}

/* watching: the stream's controls live in the polaroid's caption strip, either side of the name */
.vw-ctl { position: absolute; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.vw-ctl > * { pointer-events: auto; }
.vw-ctl .vw-gap { flex: 1; }
.vw-snd {
    width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; padding: 0;
    border: 2px solid var(--gray-900); border-radius: 50% 45% 52% 48%; background: var(--cream); color: var(--gray-900); cursor: pointer;
}
.vw-snd.off { background: var(--red-100); color: var(--red-700); }
.vw-vol { width: 96px; accent-color: var(--blue-700); box-shadow: none; }
.vw-stop {
    display: flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px 0 9px;
    border: 2px solid var(--gray-900); border-radius: 18px 14px 18px 12px; background: var(--cream);
    font: inherit; font-size: 15px; color: var(--gray-900); cursor: pointer; white-space: nowrap;
}
.vw-stop:hover { background: var(--red-100); }

/* tap a polaroid: a little menu beside it */
.vw-veil { position: absolute; inset: 0; z-index: 17; border: none; padding: 0; background: transparent; cursor: default; }
.vw-menu {
    position: absolute; z-index: 18; display: flex; flex-direction: column; gap: 4px; width: 190px; padding: 8px; box-sizing: border-box;
    border: 2.5px solid var(--gray-900); border-radius: 12px 16px 11px 15px / 15px 11px 16px 12px; background: var(--cream); box-shadow: 3px 4px 0 var(--gray-900);
}
.vw-menu .hd { display: flex; align-items: center; gap: 8px; padding: 2px 4px 6px; margin-bottom: 2px; border-bottom: 2px dashed color-mix(in srgb, var(--gray-900) 20%, transparent); }
.vw-menu .hd .vw-mk { font-size: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-menu .it {
    display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; border: none; border-radius: 10px; background: none;
    font: inherit; font-size: 16px; color: var(--gray-900); cursor: pointer; text-align: left;
}
.vw-menu .it:hover { background: color-mix(in srgb, var(--gray-900) 6%, transparent); }
.vw-menu .it small { margin-left: auto; font-size: 12.5px; color: var(--gray-600); white-space: nowrap; }

/* a crowd past the smallest size scrolls */
.vw-fade { position: absolute; left: 0; right: 0; height: 70px; z-index: 4; pointer-events: none; background: linear-gradient(transparent, var(--sheet) 85%); }
.vw-more {
    position: absolute; left: 50%; translate: -50% 0; z-index: 5; display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
    border: 2px solid var(--gray-900); border-radius: 18px 14px 18px 12px; background: var(--cream); box-shadow: 2px 2px 0 var(--gray-900);
    font-size: 15px; pointer-events: none;
}
.vw-none { position: absolute; left: 0; right: 0; top: 40px; margin: 0; text-align: center; font-size: 17px; color: var(--gray-600); }

.vw.calm :is(.vw-tile, .vw-pol, .vw-waves), .vw.calm .vw-tile.fresh .vw-pol { transition: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
    .vw :is(.vw-tile, .vw-pol, .vw-waves), .vw .vw-tile.fresh .vw-pol { transition: none; animation: none; }
}

/* a phone: the frame fills between the header and the voice bar */
@media (max-width: 759.98px) {
    .board-page .voice-wall-frame { flex: 1; min-height: 0; width: auto; aspect-ratio: auto; margin: 8px 12px; align-self: stretch; }
}
