/* The screens before the table: the name form, the lobby, the full-table notice. Laid out on a column 296px wide (a 328px phone with 16px at each side), centred on any screen. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/nunito-700-latin.woff2) format("woff2"); }

body.lv-page .topbar, body.lv-page #top { display: none; }
body.lv-page .shell { max-width: none; margin: 0; padding: 0 !important; }
body.lv-page #app { display: block; margin: 0; padding: 0; width: 100%; }

.lv { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: calc(24px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); box-sizing: border-box; color: #fff; text-align: center; font-family: "Trebuchet MS", system-ui, -apple-system, sans-serif; -webkit-user-select: none; user-select: none; }
.lv *, .lv *::before, .lv *::after { box-sizing: border-box; }
.lv input { -webkit-user-select: text; user-select: text; }
.lvlogo { display: flex; flex-direction: column; align-items: center; gap: 0; color: #fbf6e1; text-decoration: none; }
.lvlogo img { display: block; width: 89px; height: auto; }
.lvlogo small { margin-top: -5px; font-size: 10px; line-height: 14px; }
.lvcol { width: 100%; max-width: 296px; display: flex; flex-direction: column; gap: 12px; }
.lvhint { margin: 0; font-size: 12px; line-height: 14px; color: #cbc2b8; }

/* A card: dark glass */
.lvcard { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 24px 12px 12px; border-radius: 16px; background: rgba(0, 0, 0, .5); margin: 0; }
.lvcard.form { padding: 24px 16px; }
.lvcard.invite { padding: 12px; gap: 16px; }
.lvhead { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lvtitle { margin: 0; font: 700 28px/1 Nunito, "Trebuchet MS", system-ui, sans-serif; letter-spacing: 0; color: #fff; }
.lvsub { margin: 0; font-size: 16px; line-height: 1; color: #eee6dc; opacity: .8; }
.lvcard.setup .lvsub { line-height: 1; }
.lvline { margin: 0; font-size: 16px; line-height: 1; color: #fff; }
.lvcard.invite { border-radius: 10px; }
.lvcard.invite .lvline { font-size: 14px; color: #adb8bc; }

/* Avatars */
.lav { position: relative; display: block; flex: none; width: var(--av); height: var(--av); border-radius: 50%; border: 1.1px solid #292923; overflow: visible; }
.lav .tem { position: absolute; left: 50%; top: 50%; width: 1.3333em; height: 1.3333em; font-size: var(--av); max-width: none; translate: -50% -50%; pointer-events: none; user-select: none; }
.lav .tem.plain { font-style: normal; line-height: 1; width: 1em; height: 1em; text-align: center; }

/* The name form */
.lv .lvav { all: unset; display: block; cursor: pointer; border-radius: 50%; transition: transform .16s cubic-bezier(.23, 1, .32, 1); }
.lv button.lvav, .lv button.lvav:hover, .lv button.lvav:active, .lv button.lvav:focus { box-shadow: none; filter: none; background: none; border: 0; }
@media (hover: hover) and (pointer: fine) { .lv button.lvav:hover { transform: scale(1.06); } }
.lv button.lvav:active { transform: scale(.94) rotate(-8deg); }
.lv button.lvav:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lvav .lav { border-width: 2px; }
.lvfieldwrap { width: 100%; display: flex; flex-direction: column; gap: 4px; margin-bottom: -4px; text-align: left; }
.lv .lvinput { width: 100%; min-width: 0; max-width: none; height: 42px; margin: 0; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 16px; background: rgba(255, 255, 255, .5); color: #292923; font: 400 14px/16px "Trebuchet MS", system-ui, sans-serif; outline: none; box-shadow: none; }
.lv .lvinput:not(:placeholder-shown) { font-weight: 700; }
.lv .lvinput::placeholder { color: #292923; opacity: .6; }
.lv .lvinput:focus { border-color: #fff; background: rgba(255, 255, 255, .6); }
.lv .lvinput.err { border: 2px solid #cc393c; padding: 10px 11px; }
.lvhelp { font-size: 10px; line-height: 12px; color: #eee6dc; }
.lvhelp.err { color: #ff0005; }

/* Buttons: the green action button, and small glass tags */
.lv button.lvbtn { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; padding: 11px 14px; border: 1.5px solid #292923; border-radius: 16px; background: #8dc641; color: #292923; font: 700 16px/19px "Trebuchet MS", system-ui, sans-serif; letter-spacing: 0; box-shadow: none; cursor: pointer; transition: transform .12s cubic-bezier(.23, 1, .32, 1), box-shadow .12s cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) and (pointer: fine) { .lv button.lvbtn:hover:not(:disabled) { filter: brightness(1.05); } }
.lv button.lvbtn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 0 0 #292923; }
.lv button.lvbtn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lv button.lvbtn:disabled { opacity: .42; cursor: default; transform: none; filter: none; box-shadow: none; }
.lv button.lvbtn.quick { background: #9b67a8; color: #fff; margin-top: -8px; }
.lv button.lvtag { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 8px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 7px; background: rgba(240, 235, 227, .3); color: #fff; font: 700 12px/14px "Trebuchet MS", system-ui, sans-serif; letter-spacing: 0; cursor: pointer; transition: background-color .15s, transform .12s cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) and (pointer: fine) { .lv button.lvtag:hover { background: rgba(240, 235, 227, .45); transform: none; box-shadow: none; filter: none; } }
.lv button.lvtag:active { transform: scale(.97); box-shadow: none; filter: none; }
.lv button.lvtag:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lv button.lvtag.small { border: 0; font-size: 9px; line-height: 10px; }
.lv button.lvleave { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); top: calc(30px + env(safe-area-inset-top, 0px)); height: 38px; background: transparent; }
@media (hover: hover) and (pointer: fine) { .lv button.lvleave:hover { background: rgba(255, 255, 255, .12); } }
.lvi { flex: none; display: block; }

/* The four places at the table */
.lvtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin: 0 0 0; }
.lvtile { position: relative; height: 100px; padding: 12px 10px; border-radius: 12px; background: rgba(0, 0, 0, .6); display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.lvtile.empty { background: rgba(0, 0, 0, .3); border: 1px dashed rgba(255, 255, 255, .3); justify-content: center; }
.lvtile.slim { background: rgba(0, 0, 0, .3); justify-content: center; }

.lvtile.off .lav { opacity: .3; }
.lv button.lvx { all: unset; box-sizing: border-box; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 99px; background: rgba(240, 235, 227, .3); color: #fff; cursor: pointer; transition: background-color .15s; }
@media (hover: hover) and (pointer: fine) { .lv button.lvx:hover { background: rgba(204, 57, 60, .7); transform: none; box-shadow: none; filter: none; } }
.lv button.lvx:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* The invite link */
.lvlink { display: flex; gap: 8px; width: 100%; }
.lvlink { align-items: center; }
.lvurl { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: rgba(255, 255, 255, .05); color: rgba(255, 251, 245, .45); font: 400 14px/34px "Trebuchet MS", system-ui, sans-serif; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-user-select: text; user-select: text; }
.lv button.lvcopy { all: unset; box-sizing: border-box; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: rgba(255, 255, 255, .05); color: #fff; cursor: pointer; transition: background-color .15s, transform .12s cubic-bezier(.23, 1, .32, 1); }
.lv button.lvcopy svg { width: 14px; height: 14px; stroke-width: 1; }
@media (hover: hover) and (pointer: fine) { .lv button.lvcopy:hover { background: rgba(255, 255, 255, .12); } }
.lv button.lvcopy:active { transform: scale(.97); }
.lv button.lvcopy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Under the invite card: the start button, or who we wait for */
.lvact { display: flex; flex-direction: column; gap: 8px; }
.lvnote { margin: 0; font-size: 12px; line-height: 14px; color: #eee6dc; }
.lvnote.err { color: #ffd0d0; }
.lvwait { height: 44px; padding: 12px; border-radius: 16px; background: #2e080b; display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 14px; text-align: left; }
.lvdots { display: flex; gap: 4px; }
.lvdots i { width: 8px; height: 8px; border-radius: 50%; background: #e8aa2c; animation: lvdot 1.3s ease-in-out infinite; }
.lvdots i:nth-child(2) { background: #c9901b; animation-delay: .2s; }
.lvdots i:nth-child(3) { background: #94670d; animation-delay: .4s; }
@keyframes lvdot { 0%, 100% { opacity: .35; transform: scale(.85); } 40% { opacity: 1; transform: scale(1); } }
@keyframes lvdotfade { 0%, 100% { opacity: .35; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lvdots i { animation-name: lvdotfade; } .lv .lvav, .lv button { transition-property: background-color, box-shadow; } .lv button.lvtag:active, .lv button.lvsend:active, .lv button.lvsmile:active, .lv button.lvbtn:active:not(:disabled) { transform: none; } }

@media (min-width: 701px) { .lv button.lvleave { left: 40px; } }

/* The red glow behind these pages is drawn on the page itself, not as a fixed background of the body (Safari redraws a fixed background at every change, which made the lobby lag and jump) */
body.lv-page { background: none; }
html:has(body.lv-page) { background-color: #0c1116; min-height: 100%; background-image: radial-gradient(circle farthest-corner at 50% 50%, #eb2836 0, #d22230 18%, #93131f 48%, #87111d 72%, #730c17 87%, #660914 100%); background-repeat: no-repeat; background-size: 100% 100%; }

/* Your own avatar in the lobby is a button: a little lift tells you it can be clicked */
.lv button.lvav.mine { display: block; }
.lv button.lvav.mine .lav { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); transition: box-shadow .15s; }
@media (hover: hover) and (pointer: fine) { .lv button.lvav.mine:hover .lav { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55); } }

/* On a phone, a field under 16px makes Safari zoom in when it is tapped, and the page stays zoomed and scrolled */
@media (hover: none) and (pointer: coarse) { .lv .lvinput { font-size: 16px; line-height: 18px; } }

/* On a wide screen every screen before the game (the name form, the lobby, the profiles, the friends) starts at the same height under the logo, so moving between them does not jump */
@media (min-width: 701px) {
  .lv { justify-content: flex-start; padding-block: calc(120px + env(safe-area-inset-top, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)); }
  .lv .lvlogo { position: absolute; top: calc(24px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; }
}

/* ===== Table setup and You're in: a heading, a row of four places, the invite link, the chat, and the start button ===== */
.lv.table .lvcol { gap: 8px; }
.lv.table .lvtitle { margin: 0 0 8px; text-align: center; font-size: 24px; }
.lvseats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: 100%; }
.lvseat { position: relative; height: 68px; padding: 10px 4px; border-radius: 10px; background: rgba(0, 0, 0, .6); display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.lvseat b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px/14px "Trebuchet MS", system-ui, sans-serif; color: #fff; }
.lvseat { container-type: inline-size; }
/* "Disconnected" is as wide as six letters' worth of the text size: it shrinks to fit the seat, whatever its width */
.lvseat small.gone { max-width: 100%; white-space: nowrap; font: 400 10px/14px "Trebuchet MS", system-ui, sans-serif; font-size: min(12px, calc(100cqw / 6.2)); color: #cc393c; }
.lvseat.off .lav { opacity: .3; }
.lvseat.open { justify-content: center; gap: 8px; background: rgba(0, 0, 0, .1); border: 1px dashed #ffb6b6; }
.lvseat.open b { font: 700 10px/10px "Trebuchet MS", system-ui, sans-serif; color: #ffb6b6; }
.lvseat.open:has(button) { justify-content: space-between; }
.lv .lvseat button.lvtag.small { padding: 8px 10px; }
.lv .lvseat button.lvx { left: auto; right: 3px; top: 3px; width: 16px; height: 16px; }
.lv .lvseat button.lvx svg { width: 7px; height: 7px; }
.lv.table .lvcard.invite { gap: 8px; }

/* The chat */
/* The chat text is sized for an iPhone 15 (393px wide) and scales with the screen: --k is 1px there, a little less on a small phone, a little more on a big one, and stops growing on a wide screen */
.lvchat, .gchat { --k: clamp(.8px, .2545vw, 1.15px); }
/* On a wide screen the chat has the size of the one in the game (80% of one table unit, never more than 14px for the messages) */
/* Desktop: text does not scale with the window. Messages and the field are 14px, the small lines 12px, whatever the size of the window or the panel (the panel may shrink a little, the text never does) */
@media (min-width: 701px) {
  .lvchat.lvchat { --k: .875px; }
  .lvchat :is(.lvsys span, .lvmn, .lvprev b, .lvprev span, .lvtyp, .lvr, .lvshow) { font-size: 12px; line-height: 16px; }
  .lvchat .lvb { line-height: 20px; letter-spacing: 0; }
  .lvchat .lvcname { font-size: 16px; line-height: 20px; }
  .lv .lvchat input.lvcin { font-size: 14px; line-height: 18px; }
}
.lvchat { display: flex; flex-direction: column; min-height: 0; border-radius: 16px; overflow: hidden; background: rgba(0, 0, 0, .6); text-align: left; }
.lv button.lvchead { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 41px; padding: 12px; cursor: pointer; color: #fff; }
.lvchat:not(.shut) .lvchead { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.lv button.lvchead:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 16px; }
.lvcname { font: 700 calc(var(--k) * 16)/calc(var(--k) * 20) "Trebuchet MS", system-ui, sans-serif; }
.lvshow { flex: none; display: inline-flex; align-items: center; gap: 8px; font: 700 calc(var(--k) * 12)/calc(var(--k) * 14) "Trebuchet MS", system-ui, sans-serif; }
.lvprev { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.lvprev b { font: 700 calc(var(--k) * 12)/calc(var(--k) * 14) "Trebuchet MS", system-ui, sans-serif; color: #ffcf21; }
.lvprev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 calc(var(--k) * 12)/calc(var(--k) * 16) "Trebuchet MS", system-ui, sans-serif; color: rgba(255, 255, 255, .8); }
.lvchat.shut .lvchead { min-height: 47px; padding: 12px; justify-content: flex-start; }
.lvchat.shut .lvshow { margin-left: auto; }
.lvcbody { height: 220px; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; padding: 8px 12px 0; display: flex; flex-direction: column; -webkit-user-select: text; user-select: text; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.lvcflow { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.lvsys { display: flex; justify-content: center; }
.lvsys span { padding: 4px 8px; border-radius: 7px; background: rgba(240, 235, 227, .3); font: 700 calc(var(--k) * 12)/calc(var(--k) * 14) "Trebuchet MS", system-ui, sans-serif; color: #fff; }
.lvm { display: flex; flex-direction: column; gap: 2px; padding-right: 28px; }
.lvm.mine { align-items: flex-end; padding-right: 0; padding-left: 28px; }
.lvmn { margin-left: 32px; font: 700 calc(var(--k) * 12)/calc(var(--k) * 14) "Trebuchet MS", system-ui, sans-serif; color: #ffcf21; }
.lvmr { display: flex; align-items: flex-end; gap: 8px; }
.lvmav { flex: none; width: 28px; height: 28px; }
.lvb { max-width: 100%; padding: 8px; border-radius: 12px 12px 12px 0; background: var(--bc, #0091a9); color: #fff; font: 400 calc(var(--k) * 16)/calc(var(--k) * 20) "Trebuchet MS", system-ui, sans-serif; overflow-wrap: anywhere; }
.lvm.mine .lvb { border-radius: 12px 12px 0 12px; background: #e8aa2c; color: #292923; }
.lvtyp { display: flex; align-items: center; gap: 8px; font: 400 calc(var(--k) * 12)/calc(var(--k) * 14) "Trebuchet MS", system-ui, sans-serif; color: rgba(255, 255, 255, .85); }
.lvcform { display: flex; gap: 8px; padding: 8px; }
.lv input.lvcin { flex: 1; min-width: 0; height: 32px; margin: 0; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 99px; background: rgba(255, 255, 255, .5); color: #fff; font: 400 calc(var(--k) * 16)/calc(var(--k) * 18) "Trebuchet MS", system-ui, sans-serif; outline: none; box-shadow: none; }
.lv input.lvcin::placeholder { color: rgba(255, 255, 255, .72); }
.lv input.lvcin:focus { border-color: #fff; background: rgba(255, 255, 255, .6); }
.lv button.lvsend { all: unset; box-sizing: border-box; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 99px; background: rgba(255, 255, 255, .3); color: #fff; cursor: pointer; transition: background-color .15s, transform .12s cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) and (pointer: fine) { .lv button.lvsend:hover { background: rgba(255, 255, 255, .5); } }
.lv button.lvsend:active { transform: scale(.97); }
.lv button.lvsend:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lvsend svg { width: 16px; height: 16px; }

/* The start button while the game is on its way */
.lv button.lvbtn.loading:disabled { opacity: 1; cursor: progress; gap: 8px; }
.lvspin { width: 16px; height: 16px; border: 2px solid rgba(41, 41, 35, .3); border-top-color: #292923; border-radius: 50%; animation: lvspin .7s linear infinite; }
@keyframes lvspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lvspin { animation-duration: 2s; } }

/* On a phone the page is as tall as the screen: the chat takes what is left, and the start button sits at the bottom */
@media (max-width: 700px) {
  .lv.table .lvcol { flex: 1 1 auto; }
  .lv.table .lvchat:not(.shut) { flex: 1 1 auto; }
  .lv.table .lvchat:not(.shut) .lvcbody { flex: 1 1 auto; height: auto; }
  .lv.table .lvact, .lv.table .lvwait { margin-top: auto; }
}
@media (hover: none) and (pointer: coarse) { .lv input.lvcin { font-size: max(16px, calc(var(--k) * 16)); } }
.lv section.lvchat { margin: 0; padding: 0; border: 0; box-shadow: none; width: 100%; max-width: none; }
.lvm { align-items: flex-start; text-align: left; }
.lvm.mine { align-items: flex-end; }
.lvb { text-align: left; }
.lv button.lvchead, .lvprev { text-align: left; }

/* On a phone the content fills the page between its 16px margins (the Leave button is 16px from the edge too), whatever the phone's width; wider screens keep the 296px column in the middle */
@media (max-width: 599px) { .lvcol { max-width: none; } }

/* The keyboard is open for the chat (phone): the chat leaves the page and covers all that can be seen, over the logo and Leave, down to the keyboard.
   --vvt and --vvh are the top and the height of what the keyboard leaves (from the visual viewport, see syncViewport); the page under it cannot be scrolled. */
@media (max-width: 700px) {
  html:has(.lv.kb), html:has(.lv.kb) body { overflow: hidden; overscroll-behavior: none; }
  /* (8px from every edge, like the game's chat, with the same panel) */
  .lv.kb .lvchat:not(.shut) { position: fixed; left: max(8px, env(safe-area-inset-left, 0px)); right: max(8px, env(safe-area-inset-right, 0px)); top: calc(var(--vvt, 0px) + max(8px, env(safe-area-inset-top, 0px))); width: auto; height: calc(var(--vvh, 100dvh) - max(8px, env(safe-area-inset-top, 0px)) - 8px) !important; min-height: 0 !important; margin: 0; z-index: 100; border-radius: 16px; background: rgba(0, 0, 0, .9); -webkit-backdrop-filter: none; backdrop-filter: none; touch-action: none; animation: lvexpand .2s cubic-bezier(.23, 1, .32, 1) both; }
  .lv.kb .lvchat:not(.shut) .lvcbody { flex: 1 1 0; min-height: 0; height: auto; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
}
@keyframes lvexpand { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lvexpandfade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lv.kb .lvchat:not(.shut) { animation-name: lvexpandfade; } }

/* The emoji button to the left of the message field, and the small list it opens */
.lv button.lvsmile { all: unset; box-sizing: border-box; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 99px; background: rgba(255, 255, 255, .3); color: #fff; cursor: pointer; transition: background-color .15s, transform .12s cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) and (pointer: fine) { .lv button.lvsmile:hover { background: rgba(255, 255, 255, .5); } }
.lv button.lvsmile:active { transform: scale(.97); }
.lv button.lvsmile:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lvsmile svg { width: 16px; height: 16px; }
.lvchat .gemoji { margin: 0 8px; }
.lvchat .gemoji button { all: unset; box-sizing: border-box; display: grid; place-items: center; height: 30px; border-radius: 8px; font-size: 19px; line-height: 1; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .lvchat .gemoji button:hover { background: rgba(255, 255, 255, .18); } }

/* A voice reaction in the chat: a light line with a speaker, who played it, and its name */
.lvr { display: flex; align-self: center; width: fit-content; max-width: 100%; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #fffbf5; color: #292923; text-align: left; font: 700 calc(var(--k) * 12) / calc(var(--k) * 14) "Trebuchet MS", system-ui, sans-serif; }
.lvr svg { flex: none; color: #23a9bf; }
.lvr b { color: #4f9a2a; }

/* The open chat keeps its size: the emoji list takes room from the messages, not from the page (the chat is a fixed height; on a phone it fills what is left) */
.lvchat:not(.shut) { height: 309px; }
.lvchat:not(.shut) .lvcbody { flex: 1 1 0; height: auto; min-height: 0; }
.lvchat:not(.shut) .lvcform { flex: none; }
@media (max-width: 700px) {
  .lv.table .lvchat:not(.shut) { height: auto; min-height: 260px; }
  .lv.table .lvchat:not(.shut) .lvcbody { flex: 1 1 0; }
}
/* (a short phone, like an iPhone SE: the open chat is a little shorter at the least, so the page still fits the screen) */
@media (max-width: 700px) and (max-height: 700px) {
  .lv.table .lvchat:not(.shut) { min-height: 220px; }
}

/* ===== Smooth changes in the lobby: places fill and empty with a fade, the chat's contents fade in when it opens ===== */
.lvseat { transition: background-color .15s ease, border-color .15s ease; }
.lvseat:not(.open) > *, .lvseat.open > * { animation: seatin .2s cubic-bezier(.23, 1, .32, 1) both; }
.lvseat:nth-child(2) > * { animation-delay: 40ms; } .lvseat:nth-child(3) > * { animation-delay: 80ms; } .lvseat:nth-child(4) > * { animation-delay: 120ms; } .lvseat:nth-child(n+5) > * { animation-delay: 160ms; }
@keyframes seatin { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes chatin { from { opacity: 0; } to { opacity: 1; } }
.lvwait, .lvact { animation: chatin .2s cubic-bezier(.23, 1, .32, 1) both; }
@keyframes seatfade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lvseat > * { animation-name: seatfade; animation-delay: 0ms !important; } }

/* The chat footer is the game chat's: no borders, the same lighter fills, 4 between the parts, an emoji button that shows an emoji */
.lvcform { gap: 4px; }
.lv input.lvcin, .lv button.lvsend, .lv button.lvsmile { border: 0; background: rgba(255, 255, 255, .3); }
.lv input.lvcin:focus { background: rgba(255, 255, 255, .4); }
@media (hover: hover) and (pointer: fine) { .lv button.lvsend:hover, .lv button.lvsmile:hover { background: rgba(255, 255, 255, .5); } }
.lv button.lvsmile { font-size: 20px; line-height: 1; }
.gsheet input.gin, .gsheet .gsend, .gsheet .gsmile { background: rgba(255, 255, 255, .3); }
.gsheet input.gin:focus { background: rgba(255, 255, 255, .4); }
.gsheet .gform { gap: 4px; }
.gsheet .gem { font-size: 20px; line-height: 1; }

/* Links in messages (YouTube, Spotify, playfomo.com): underlined, in the bubble's own colour */
.lvb a { color: inherit; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .lvb a:hover { opacity: .8; } }
.lvb a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 3px; }

/* The page's dotted background is never seen through a panel: everything translucent that sits on it blurs what is behind it */
.lvcard, .lvtile, .lvseat, .lvchat { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* No grey flash behind what is tapped (the avatar, the buttons) on a phone */
html { -webkit-tap-highlight-color: transparent; }
.lv button, .lv .lvav, .lv .lvav * { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
/* Controls respond at once (no double-tap-zoom wait) and a long press on one selects nothing; text you read or copy (names, the invite link, chat) stays selectable */
.lv button, .lv a, .lv .lvav { touch-action: manipulation; -webkit-user-select: none; user-select: none; }

/* ===== The lobby's panels (the name card on /play, the invite card, the table setup, the chat) have the table's panel look: the dark
   gradient and a soft inner light, blurred behind, 20 round corners, no edge line. What is inside them, and their padding and margins, stay ===== */
.lvcard, .lvchat {
  background: linear-gradient(135deg, #191210 0%, #190e0e 50%, #301e1e 100%);
  border-radius: 16px;
  box-shadow: inset 0 1px 10px 1px rgba(177, 177, 177, .1);
}
.lv section.lvchat { border: 0; box-shadow: inset 0 1px 10px 1px rgba(177, 177, 177, .1); }
.lvseat:not(.open) { background: linear-gradient(135deg, #191210 0%, #190e0e 50%, #301e1e 100%); }

/* ===== The sign-up prompt under the name form, and the first sign-in's Registration in the form's place ===== */
.lvsignup { align-self: stretch; margin-top: -4px; }
.lvreg { align-items: stretch; padding: 8px 8px 16px; gap: 16px; }
.lv .lvreg .ptitle { margin: 0; text-align: center; color: #fffbf5; font: 700 16px/20px "Trebuchet MS", system-ui, sans-serif; text-transform: none; letter-spacing: 0; text-shadow: none; }
.lv .lvreg .pbtn.go { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; height: 44px; margin-top: 8px; border: 1.5px solid #292923; border-radius: 16px; background: #8dc641; color: #292923; font: 700 16px/19px "Trebuchet MS", system-ui, sans-serif; box-shadow: none; cursor: pointer; }
.lv .lvreg .pbtn.go:disabled { opacity: .42; cursor: default; }
.lv .lvreg .pavatar, .lv .lvreg .pavatars button { all: unset; display: grid; place-items: center; cursor: pointer; }
.lv .lvreg .pavatar { align-self: center; width: 60px; height: 60px; }
.lv .lvreg .pavatars button { height: 32px; font-size: 22px; border-radius: 8px; }
.lv .lvreg .pavatars button.on { background: rgba(232, 170, 44, .3); }

/* Signed in ("Welcome back!"): my avatar, name and @username, and a button to sign out, in place of the name field */
.lvme { align-self: stretch; display: flex; align-items: center; gap: 16px; }
.lvmename { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.lvmename b { font: 700 18px/22px "Trebuchet MS", system-ui, sans-serif; color: #fffbf5; }
.lvmename .pname { display: flex; align-items: center; gap: 4px; }
.lvmename .pflag { font-size: 16px; }
.lvmename small { font: 400 14px/18px "Nunito", "Trebuchet MS", system-ui, sans-serif; color: rgba(255, 255, 255, .85); }
.lv button.lvout { all: unset; display: grid; place-items: center; width: 34px; height: 34px; color: #fffbf5; cursor: pointer; border-radius: 99px; }
@media (hover: hover) { .lv button.lvout:hover { color: #e8aa2c; } }
.lv .lvreg .pcheck, .lv .lvreg .pdelete { all: unset; }
.lv .lvreg .pcheck { display: flex; align-items: flex-start; gap: 10px; text-align: left; cursor: pointer; }
.lv .lvreg .pdelete { align-self: center; padding: 4px 8px; font: 400 12px/16px "Trebuchet MS", system-ui, sans-serif; color: #cc393c; cursor: pointer; }

/* Signed in, before sitting down: My profile (a link under the buttons), and my profile and Edit profile in the card's place */
.lv button.lvlink { all: unset; align-self: center; margin-top: -4px; padding: 4px 8px; color: #e8aa2c; font: 700 14px/18px "Trebuchet MS", system-ui, sans-serif; cursor: pointer; }
@media (hover: hover) { .lv button.lvlink:hover { text-decoration: underline; } }
.lv .lvreg[data-kind="profile"] { gap: 16px; padding: 8px 8px 24px; }
.lv .lvreg .pbtn.line { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; height: 44px; border: 1.5px solid #e8e1d7; border-radius: 16px; color: #fffbf5; font: 700 16px/19px "Trebuchet MS", system-ui, sans-serif; cursor: pointer; }
.lv .lvreg .pback { color: #fffbf5; }
.lv .lvreg .puser { font: 700 16px/19px "Trebuchet MS", system-ui, sans-serif; text-transform: none; text-shadow: none; letter-spacing: 0; }
.lv .lvreg .px { all: unset; flex: none; width: 34px; height: 34px; display: grid; place-items: center; color: #e5e5e5; cursor: pointer; }
.lv .lvreg .px svg { width: 20px; height: 20px; }
@media (hover: hover) { .lv .lvreg .px:hover { color: #e8aa2c; } }

/* Edit profile before sitting down: no logo, for the height; the top margin is the same as the sides */
.lv.nologo { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }

/* The friends list before sitting down: the page does not scroll; the panel stays whole under the logo, where the profile was, however few friends it shows */
.lv.flist { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.lv.flist .lvcol { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.lv.flist .lvcard { flex: 0 1 auto; min-height: 0; overflow: hidden; }
@media (max-width: 700px) {
  .lv.flist { padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
}

/* A seat waiting for an invited friend; a seat that opens a profile */
.lvseat.invited { border: 0; background: rgba(0, 0, 0, .3); }
.lvseat.invited .lav { opacity: .5; }
.lvseat.invited b { color: rgba(255, 255, 255, .6); }
.lvseat.invited { padding: 8px 4px; gap: 2px; }
.lvseat.invited b { font: 400 11px/12px "Trebuchet MS", system-ui, sans-serif; }
.lvseat.invited small { font: 400 11px/12px "Trebuchet MS", system-ui, sans-serif; color: #e8aa2c; }
.lvseat.canopen { cursor: pointer; }

/* The titles of the name form's cards (Who's this?, Welcome back!, You're invited) are 24 */
.lvhead .lvtitle { font-size: 24px; color: #e8aa2c; }
/* All the small buttons round like the big ones */
.lv button.lvtag { border-radius: 16px; }
/* The whole open seat is the button */
.lvseat.open.canfill { cursor: pointer; transition: background-color .15s; }
@media (hover: hover) { .lvseat.open.canfill:hover { background: rgba(255, 255, 255, .1); } }

/* ===== The open lobby chat is the game chat's: a centred title with an X (no background), the emoji always there in one row, the field and Send ===== */
/* The same header as the other panels (a profile, Friends): 34px tall, 16px in from the edges, the title 16px and the X 20px in a 34px button */
.lvhd { position: relative; flex: none; height: 34px; margin: 16px 16px 0; display: flex; align-items: center; justify-content: center; }
.lvhd .lvcname { font: 700 16px/19px "Trebuchet MS", system-ui, sans-serif; color: #fffbf5; }
.lv button.lvcx { all: unset; box-sizing: border-box; position: absolute; right: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 99px; background: none; color: #e5e5e5; cursor: pointer; transition: color .15s ease; -webkit-tap-highlight-color: transparent; }
.lv button.lvcx:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lvcx svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .lv button.lvcx:hover { color: #e8aa2c; } }
.lvchat .gemoji { flex: none; display: flex; gap: 8px; height: 40px; margin: 0 8px; padding: 8px 12px; border-radius: 99px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.lvchat .gemoji::-webkit-scrollbar { display: none; }
.lvchat .gemoji button { flex: none; width: 24px; height: 24px; align-self: center; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.lvchat .gemoji button:hover, .lvchat .gemoji button:active { background: none; }

/* The X puts the keyboard away, so it is there only while the keyboard is up; behind the expanded chat the page is blurred */
.lv button.lvcx { display: none; }
@media (max-width: 700px) {
  .lv.kb button.lvcx { display: grid; }
  .lv.kb::before { content: ""; position: fixed; inset: 0; z-index: 99; background: rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
}

/* (Edit profile has no logo, and starts at the same height on a wide screen) */
@media (min-width: 701px) { .lv.nologo { padding-top: calc(120px + env(safe-area-inset-top, 0px)); } }

/* A YouTube or Spotify link in the chat: a small card under the text, with its picture, its title (Spotify) and where it is from */
.lvb a.lvpv { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px; border-radius: 8px; background: rgba(0, 0, 0, .25); color: inherit; text-decoration: none; overflow: hidden; }
.lvpvi { flex: none; width: 64px; height: 48px; border-radius: 6px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.lvpvi img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lvpvt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lvpvt b { font: 700 12px/14px "Trebuchet MS", system-ui, sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lvpvt small { font: 400 10px/12px "Trebuchet MS", system-ui, sans-serif; opacity: .8; }
.lvb a.lvpv:first-child { margin-top: 0; }

/* ===== The table's backgrounds, picked in Settings (the screens before the game always have the default in e.css). The default is the red table in table.css;
   Midnight and Slate (Figma "Actions panel · glass") are the same soft light on the piles in their own colours. All of them keep the dot pattern. ===== */
html[data-lvbg="midnight"]:has(body.tbl-page) { background-color: #05060f; background-image: radial-gradient(circle 76vmin at 50% 45%, #2a3390 0, #232b7a 22%, #121749 48%, #0a0d2b 72%, #070920 88%, #05060f 100%); }
html[data-lvbg="midnight"] body.tbl-page:not([data-result]) { --bg0: #2a3390; --bg1: #232b7a; --bg2: #121749; --bg3: #0a0d2b; --bg4: #070920; --bg5: #05060f; }
html[data-lvbg="slate"]:has(body.tbl-page) { background-color: #0e141a; background-image: radial-gradient(circle 76vmin at 50% 45%, #2c3d4c 0, #24323f 22%, #1d2833 48%, #161f28 72%, #121920 88%, #0e141a 100%); }
html[data-lvbg="slate"] body.tbl-page:not([data-result]) { --bg0: #2c3d4c; --bg1: #24323f; --bg2: #1d2833; --bg3: #161f28; --bg4: #121920; --bg5: #0e141a; }

/* ===== The top bar: the logo 40 tall, 24 above what follows; outside a lobby Home on the left and Settings on the right (each dimmed on its own screen) ===== */
.lvlogo img { width: auto; height: 40px; }
.lvlogo small { display: none; }
.lv button.lvleave { top: calc(25px + env(safe-area-inset-top, 0px)); }
.lv button.lvnav { all: unset; box-sizing: border-box; position: absolute; top: calc(24px + env(safe-area-inset-top, 0px)); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #191210 0%, #190e0e 50%, #301e1e 100%); box-shadow: inset 0 1px 10px 1px rgba(177, 177, 177, .1); color: #fffbf5; cursor: pointer; transition: color .15s ease, opacity .15s ease, transform .12s cubic-bezier(.23, 1, .32, 1); -webkit-tap-highlight-color: transparent; }
.lv button.lvhome { left: max(16px, env(safe-area-inset-left, 0px)); }
.lv button.lvgear { right: max(16px, env(safe-area-inset-right, 0px)); }
.lv button.lvnav:disabled { opacity: .4; cursor: default; }
@media (hover: hover) and (pointer: fine) { .lv button.lvnav:not(:disabled):hover { color: #e8aa2c; } }
.lv button.lvnav:not(:disabled):active { transform: scale(.94); }
.lv button.lvnav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 701px) {
  .lv { padding-top: calc(88px + env(safe-area-inset-top, 0px)); }
  .lv.nologo { padding-top: calc(88px + env(safe-area-inset-top, 0px)); }
  .lv button.lvhome { left: 40px; }
  .lv button.lvgear { right: 40px; }
}

/* ===== The lobby: 12 from the seats to the invite link, 16 from the chat to the start button; open seats in light grey ===== */
.lv.table .lvcol { gap: 12px; }
.lv.table .lvinvite + .lvchat { margin-top: -4px; }
.lv.table .lvchat + .lvact, .lv.table .lvchat + .lvwait { margin-top: 4px; }
.lvseat.open { border-color: #d2d2d2; }
.lvseat.open b { color: #d2d2d2; }

/* The invite link: no panel round it, the title 6 above the field, the field and the copy button 40 tall and 4 apart */
.lvinvite { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.lvinvite .lvline { font-size: 14px; line-height: 16px; color: #fffbf5; }
.lvinvite .lvlink { gap: 4px; }
/* (the field and the button have the panels' look: the chat's and a taken seat's dark gradient and soft inner light) */
.lvinvite .lvurl, .lv .lvinvite button.lvcopy { border: 0; background: linear-gradient(135deg, #191210 0%, #190e0e 50%, #301e1e 100%); box-shadow: inset 0 1px 10px 1px rgba(177, 177, 177, .1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lvinvite .lvurl { height: 40px; padding-block: 11px; line-height: 18px; color: rgba(255, 251, 245, .7); }
.lv .lvinvite button.lvcopy { width: 40px; height: 40px; }
@media (hover: hover) and (pointer: fine) { .lv .lvinvite button.lvcopy:hover { background: linear-gradient(135deg, #2a201d 0%, #2a1c1c 50%, #43302f 100%); } }
.lv .lvinvite button.lvcopy svg { width: 16px; height: 16px; }

/* ===== Edit profile and the friends list keep the page still: the panel stays whole under the logo and its content scrolls inside it (the title and the search stay put) ===== */
.lv.flist .lvreg[data-kind="register"] { display: flex; flex-direction: column; }
.lv.flist .lvreg > .phead { flex: none; }
.lv.flist .lvreg .preg { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 8px; }
.lv.flist .lvreg .preg::-webkit-scrollbar { display: none; }
.lv.flist .lvreg .preg > * { flex-shrink: 0; }
.lv.flist .lvreg .plist { flex: 1 1 auto; min-height: 0; }

/* ===== Settings before sitting down: the pause sheet's Settings, in the page instead of over it ===== */
.gpause.lvinline { position: static; inset: auto; z-index: auto; display: block; padding: 0; pointer-events: auto; }
.gpause.lvinline .psheet { max-width: none; animation: none; box-shadow: inset 0 1px 10px 1px rgba(177, 177, 177, .1); }

/* ===== A green button that is off is solid, not see-through: the page's pattern never shows through it ===== */
.lv button.lvbtn:disabled, .lv .lvreg .pbtn.go:disabled, .gpause .pbtn.go:disabled { opacity: 1; background: #4b6a2c; color: rgba(41, 41, 35, .75); }
/* The purple Quick game button fades the same way, staying purple */
.lv button.lvbtn.quick:disabled { background: #533760; color: rgba(255, 255, 255, .6); }

/* ===== Settings over the lobby: the "Fill this seat" sheet's rules (up from the bottom of a phone, in the middle of a wide screen, the lobby dimmed behind) ===== */
.gpause.lvsetsheet { background: rgba(0, 0, 0, .45); }
/* ===== DEV (local server only): on a wide screen its round button sits just left of the Settings button on the pages before the table ===== */
@media (min-width: 701px) {
  html:has(body.lv-page) #devdock { top: calc(24px + env(safe-area-inset-top, 0px)); right: calc(40px + 40px + 8px + env(safe-area-inset-right, 0px)); }
}

/* ===== Hover never moves or resizes a button: a button that shifted under the cursor lost its hover at the edge, came back, and flickered.
   (Edit profile's buttons used to be reset on hover too, which dropped their size and their place in the column) ===== */
.lv .lvreg .pbtn:hover, .lv .lvreg .px:hover { transform: none; filter: none; }
.lv .lvreg .pbtn.go:hover:not(:disabled) { box-shadow: none; filter: brightness(1.05); }
.lv .lvreg .pbtn.line:hover { box-shadow: none; background: rgba(255, 255, 255, .06); }
.lv .lvreg .px:hover { box-shadow: none; background: none; }

/* ===== On a wide screen the top corners line up with the column below (296 wide, centred), as on a phone, instead of the screen's edges ===== */
@media (min-width: 701px) {
  .lv button.lvhome, .lv button.lvleave { left: calc(50% - 148px); }
  .lv button.lvgear { right: calc(50% - 148px); }
  html:has(body.lv-page) #devdock { right: calc(50% - 148px + 48px); }
}

/* Emoji reactions on somebody else's chat message: a pill in the bubble's colour, 28 tall, that overlaps the bubble by 4px (round with one emoji);
   mine sits in a 20px ring and a tap takes it off. With no reactions, a smiley shows on hover; the picker opens 4px above, right-aligned. */
.lvmr { position: relative; }
.lvcbody { overflow-x: hidden; }
.lvm.rxhas { padding-right: 0; }
.lvm.rxhas.rx1 { padding-right: 4px; }
.tbl .gdock .lvm.rxhas { padding-right: 0; }
.tbl .gdock .lvm.rxhas.rx1 { padding-right: max(0px, calc(var(--u) * 28 - 24px)); }
/* (a pill sits at the bubble's top: on one line that centres it, on more lines it stays with the first; one reaction keeps the bubble's width,
   two or three go to the chat's right edge and the text gives way)
   (the bubble is cut 1px wider than the pill's round end where they overlap: the gap shows whatever is behind the chat, as a 1px edge would) */
.lvm.rxhas .lvb { -webkit-mask: radial-gradient(circle at calc(100% + 10px) calc(var(--k, 1px) * 10 + 8px), transparent 14.5px, #000 15.5px); mask: radial-gradient(circle at calc(100% + 10px) calc(var(--k, 1px) * 10 + 8px), transparent 14.5px, #000 15.5px); }
.lvb { min-width: 0; }
.rxpill { flex: none; align-self: flex-start; margin-top: calc(var(--k, 1px) * 10 - 6px); position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0; height: 28px; min-width: 28px; box-sizing: border-box; padding: 0 4px; margin-left: -12px; margin-bottom: 0; border-radius: 14px; background: var(--bc, #0091a9); }
.lvcflow button.rxi { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 16px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; text-align: center; padding: 0; cursor: pointer; animation: rxpop .26s cubic-bezier(.34, 1.56, .64, 1); }
.lvcflow button.rxi.mine { background: rgba(0, 0, 0, .25); }
.lvcflow button.rxi:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.lvcflow button.rxsm { all: unset; box-sizing: border-box; position: absolute; left: calc(100% + 4px); bottom: 4px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #3b3735; color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .12s ease-out; }
.lvcflow button.rxsm.on, .lvcflow button.rxsm:focus-visible { opacity: 1; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) { .lvcflow .lvm.rxok:hover button.rxsm { opacity: 1; pointer-events: auto; } }
.rxpick { position: absolute; right: 0; bottom: calc(100% + 4px); z-index: 5; display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: #3b3735; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); translate: var(--rxdx, 0) 0; transform-origin: right bottom; animation: rxopen .16s cubic-bezier(.23, 1, .32, 1); }
.lvm:not(.rxhas) .rxpick { right: -32px; }
.rxpick.below { bottom: auto; top: calc(100% + 4px); transform-origin: right top; }
.lvcflow .rxpick button { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 20px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; text-align: center; padding: 0; cursor: pointer; transition: transform .12s cubic-bezier(.23, 1, .32, 1); }
.lvcflow .rxpick button:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .lvcflow .rxpick button:not(:disabled):hover { transform: scale(1.18); } }
.lvcflow .rxpick button:not(:disabled):active { transform: scale(.9); }
.lvcflow .rxpick button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.lvm.rxok .lvb { -webkit-touch-callout: none; transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
@media (pointer: coarse) { .lvm.rxok .lvb { -webkit-user-select: none; user-select: none; } }
.lvb.rxpress { transform: scale(.96); }
.lvcflow button.rxi, .lvcflow button.rxsm, .lvcflow .rxpick button { filter: none; box-shadow: none; margin: 0; }
.lvcflow button.rxi:active, .lvcflow button.rxsm:active { transform: scale(.9); box-shadow: none; }
@keyframes rxpop { from { transform: scale(.3); opacity: 0; } }
@keyframes rxopen { from { transform: scale(.85); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lvcflow button.rxi, .rxpick { animation: none; } .lvb.rxpress { transform: none; } }
/* (iPhone Safari draws an emoji about half a pixel right of and below the middle of its box: one pixel of padding on the right and the bottom brings it back to the centre) */
@supports (-webkit-touch-callout: none) { .lvcflow button.rxi, .lvcflow .rxpick button { padding: 0 1px 1px 0; } }

/* ===== Voice memos: the row at the top of the reactions panel, the microphone screens, and the bubbles in the chat ===== */
.vrow { display: flex; align-items: center; gap: 8px; height: 56px; padding: 8px; border-radius: 12px; background: #fff; color: #292923; text-align: left; box-sizing: border-box; }
.vrow.idle { cursor: pointer; transition: transform .12s; }
.vrow.idle:active { transform: scale(.98); }
.vrow.failed { box-shadow: inset 0 0 0 1px #cc393c; }
.vrow.off .vtitle { color: #77736b; }
.vmid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vtitle { font: 700 16px/16px Nunito, "Trebuchet MS", system-ui, sans-serif; color: #292923; }
.vtitle.red, .vsub.red { color: #cc393c; }
.vsub { font: 500 12px/12px Nunito, "Trebuchet MS", system-ui, sans-serif; color: #77736b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtime { font: 500 12px/16px Nunito, "Trebuchet MS", system-ui, sans-serif; color: #292923; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* A memo in the row (recording, ready, sending): the time and the bars on a line, then delete, stop / play / pause and send */
.vrow.tall { flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; height: 82px; }
.vline { display: flex; align-items: center; gap: 2px; height: 30px; padding-right: 16px; }
.vline .vtime { flex: none; width: 32px; text-align: center; }
.vline .vwave { flex: 1; min-width: 0; height: 30px; gap: 0; justify-content: space-between; }
.vacts { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.vwave { display: flex; align-items: center; gap: 2px; height: 26px; overflow: hidden; }
.vwave i { flex: none; width: 3px; border-radius: 1.5px; background: #d9d4cc; }
.vwave i.on { background: #e32026; }
.vwave i.dot { height: 3px; }
#app .vbtn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; padding: 0; border-radius: 50%; cursor: pointer; transition: transform .12s, opacity .15s, background-color .15s, color .15s; }
#app .vbtn:active:not(:disabled) { transform: scale(.9); }
#app .vbtn:disabled { cursor: default; }
#app .vbtn.red { background: #e32026; color: #fff; }
#app .vbtn.green { background: #8dc641; color: #fff; }
#app .vbtn.grey { background: #f0ebe3; color: #77736b; }
#app .vbtn:is(.bin, .stop, .mid, .send) { width: 32px; height: 32px; }
#app .vbtn:is(.bin, .mid) { background: none; color: #adb8bc; }
#app .vbtn.bin.tint { background: #f9dedd; color: #cc393c; }
#app .vbtn.stop { background: none; color: #cc393c; box-shadow: inset 0 0 0 2px #cc393c; }
#app .vbtn.stop svg { width: 24px; height: 24px; }
#app .vbtn.mid svg { width: 18px; height: 18px; }
#app .vbtn.send { background: #23a9bf; color: #fff; }
#app .vbtn.send svg { margin-left: 3px; }
#app .vrow.failed .vbtn.send svg, #app .vbtn.send .vspin { margin-left: 0; }
#app .vrow.sending .vbtn { opacity: .5; }
.vspin { width: 15px; height: 15px; box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: vspin .8s linear infinite; }
@keyframes vspin { to { transform: rotate(360deg); } }
.gtile.vdim { opacity: .35; }

.vmic { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 8px; text-align: center; color: #fffbf5; }
.vmic b { font: 700 16px/20px Nunito, "Trebuchet MS", system-ui, sans-serif; }
.vmic p { margin: 0; font: 500 14px/16px Nunito, "Trebuchet MS", system-ui, sans-serif; color: #e8e1d7; }
.vbig { width: 90px; height: 90px; display: grid; place-items: center; border-radius: 50%; background: rgba(79, 0, 0, .8); }
.vbig span { width: 61px; height: 61px; display: grid; place-items: center; border-radius: 50%; background: #e32026; color: #fff; box-shadow: 0 0 0 7px rgba(227, 32, 38, .5); }
.vbig span svg { width: 26px; height: 26px; }
.vbig.off { background: rgba(255, 255, 255, .12); }
.vbig.off span { background: #b9b6b2; box-shadow: 0 0 0 7px rgba(255, 255, 255, .2); }
#app .vgo { min-width: 162px; height: 44px; margin-top: 8px; padding: 0 20px; border: 0; border-radius: 16px; background: #8dc641; color: #292923; font: 700 16px/20px Nunito, "Trebuchet MS", system-ui, sans-serif; cursor: pointer; }
#app .vlink { border: 0; background: none; color: #fffbf5; font: 500 14px/20px Nunito, "Trebuchet MS", system-ui, sans-serif; cursor: pointer; padding: 8px; }

/* In the chat: Play, the bars and the length, in the sender's colour (mine gold); bars fill white as it plays */
.lvb.vbub { display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--bc, #0091a9); color: #fff; }
.lvm.mine .lvb.vbub { background: #e8aa2c; color: #292923; }
#app .vbub .vplay { width: 32px; height: 32px; background: #fff; color: var(--bc, #0091a9); }
#app .lvm.mine .vbub .vplay { background: rgba(255, 255, 255, .6); color: #292923; }
#app .vbub .vplay.gone { opacity: .4; cursor: default; }
.vbub .vwave { height: 22px; }
.vbub .vwave i, .vbub .vwave i.on { background: currentColor; opacity: .75; }
.vbub.playing .vwave i { opacity: .4; }
.vbub .vwave i.on { opacity: 1; }
.vend { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.vbub .vtime { color: inherit; font-family: "Trebuchet MS", system-ui, sans-serif; }
.vunheard { width: 8px; height: 8px; border-radius: 50%; background: #ffcf21; }
.lvr.vmuted { opacity: .55; }
.lvr.vmuted svg { color: #77736b; }

.pbadge.muted { background: rgba(255, 255, 255, .1); color: #9a948c; }
/* The wide screen's voice tray has a set height for the six tiles: the voice row above them needs its own height and one more gap */
@media (min-width: 701px) {
  .tbl .gdock.vmode:has(.vrow) { height: calc(var(--u) * 81 + 245px); }
  /* (a memo in the row makes it 26 taller: the chat grows by as much, at the same pace) */
  .tbl .gdock.vmode:has(.vrow.tall) { height: calc(var(--u) * 81 + 271px); }
}
.vmic .vwhy { margin-top: -4px; font: 500 11px/14px Nunito, "Trebuchet MS", system-ui, sans-serif; color: #8f8a86; overflow-wrap: anywhere; }

/* The mic screens (allow, blocked, none found) take the height of what is in them, so the text and the button always show */
@media (min-width: 701px) {
  .tbl .gdock { interpolate-size: allow-keywords; }
  .tbl .gdock.gdock.vmode:has(.vmic) { height: auto; }
}
/* While a memo is being recorded, waits or is sending, the meme tiles cannot be pressed at all (nor their play buttons) */
.gtile.vdim, .gtile.vdim * { pointer-events: none; cursor: default; }

/* ===== Waveform motion ===== */
.vwave i { transform-origin: 50% 50%; transition: background-color .18s ease, opacity .18s ease, transform .18s cubic-bezier(.2, .8, .2, 1); }
/* a new bar grows out of the middle line while recording; a finished memo's bars rise in one after another */
.vwave i.grow { animation: vgrow .28s cubic-bezier(.2, .8, .2, 1) both; }
.vwave i.rise { animation: vgrow .42s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms) both; }
@keyframes vgrow { from { transform: scaleY(.12); opacity: .3; } }
/* the newest bar keeps breathing with a soft glow, and the next slot blinks like a cursor */
.vrow.rec .vwave i.now { box-shadow: 0 0 6px rgba(227, 32, 38, .65); animation: vgrow .28s cubic-bezier(.2, .8, .2, 1) both, vlive .55s ease-in-out .28s infinite alternate; }
@keyframes vlive { to { transform: scaleY(1.22); } }
.vrow.rec .vwave i.now + i.dot { background: #e32026; animation: vblink 1s steps(2, jump-none) infinite; }
@keyframes vblink { 50% { opacity: .25; } }
.vwave i.dot { transition: none; }
/* playing back: the bar under the playhead lifts a little */
.vrow.ready .vwave i.now, .vbub.playing .vwave i.now { transform: scaleY(1.25); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .vwave i, .vwave i.grow, .vwave i.rise, .vrow.rec .vwave i.now, .vrow.rec .vwave i.now + i.dot { animation: none; transition: none; transform: none; }
}

/* ===== A background fading out as the next one takes its place (backgrounds.ts): over the page's own background, under everything on it ===== */
.bgfade { position: fixed; left: 0; right: 0; z-index: -50; pointer-events: none; }
.bgfade i { position: absolute; inset: 0; }
