/* The login page of /liveliquidations26. Unicorn Studio's "Inverted Trail" fills the window from /gate/stage (a
   sandboxed frame): a marble bust in black and white under VHS scanlines, turned to his left; a quick stroke of the
   pointer inverts what it crosses. The words stand where he is looking: the title in a classical serif, and under it
   the password as dots of ink on one hairline, with one status line above. Light, like the template, whatever the
   system theme. Without scripts the form still posts and the server's message shows on the status line. */

@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/liveliquidations26/gate/f-instrument-serif-400.woff2?v=5eb09b5ac0') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/liveliquidations26/gate/f-instrument-serif-400i.woff2?v=5a51946dff') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-style: normal; font-weight: 500; font-display: swap; src: url('/liveliquidations26/gate/f-pretendard-500-gate.woff2?v=490077aee3') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/liveliquidations26/gate/f-jetbrains-mono-400.woff2?v=14425ba9c6') format('woff2'); }

:root {
  color-scheme: light;
  --paper: #d8d8d4;
  --ink: #0d0d0c;
  --ink-2: rgba(13, 13, 12, 0.78);
  --line: rgba(13, 13, 12, 0.32);
  --warm: #9e2a1e;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  /* tiny blurred pictures of the scene, inline (about 1 KB): something of the photo before the still arrives */
  --lqip-desk: url(data:image/webp;base64,UklGRsYAAABXRUJQVlA4ILoAAAAwBgCdASooABkAPu1qr1KppaQiqrgIATAdiWkAAOfXXBgUFXWpdqqwbr6MgGr35gtaBXUL9f1U204AAP2X8j2Y5mC9fpOaDRVjWlbWXa8MeO7J2YayhmS3yX7mdOZAvQP7kbiDlnIuLIOl0l+fIkExKd9oQr1t8KjTfcXwj3MWlwySlHacs6CTW9+lJ1YFy8FaXL/go2/vDvua9foANQOwa3CBJ2WbJHdUCNjyQnXOVe3oep9PRidGwAA=);
  --lqip-tall: url(data:image/webp;base64,UklGRiABAABXRUJQVlA4IBQBAACQBwCdASooACMAPu1mqU8ppaOiJy7ZMB2JZwALBIdeHU6NYo2yDJDcNHngfwDr5g7iTDgpKOwC6RfDPPuAiLUCRzkv/AAA/MyK/RskvX7G+dE3x7G+psAt3HcLXkbX8XPPgC8jn6WiHAPqsAFIfwMUcNzg/+sTz6fUC8WQDy948UZ39ZFSllO+NIRUdzoRUfmXdWsAriO0tosxPYFseeT/qaU/6V9Ft4ygXR4y6OEp/ttqnhLdXYyeoImmWk/lM9/dnlF7kLje1AK9iFLDN0z+cJLJuTSZcnh96ccBl5X6lGiRTU3qKPUtQFzGYCCa8UvI9PdQs4fHSf3r7rNLU2P6oqX8e+pIadwID8RGd2UvuCoAAAA=);
}
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }
body { font: 500 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ── the picture ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.gate-sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--paper); view-transition-name: arc-stage; }
.gate-scene { position: absolute; inset: 0; }
/* wide screens: the photo moved a little left, so the words have room in front of his face */
@media (min-aspect-ratio: 145/100) and (min-height: 561px) and (min-width: 720px) { .gate-scene { left: -8vw; } }
.gate-stage { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
/* a still of the scene lies over the frame until the scene has drawn, then lifts (a hidden frame would not draw) */
.gate-cover { position: absolute; inset: 0; background: var(--paper) url('/liveliquidations26/gate/still-desk.webp?v=ae4beb67e9') 50% 50% / cover no-repeat, var(--lqip-desk) 50% 50% / cover no-repeat; transition: opacity 0.9s ease 0.1s; }
.gate.is-live .gate-cover { opacity: 0; }

/* screens near square (4:3 laptops, tablets on their side) and short wide ones (a phone on its side): there is no room
   beside his face, so the photo keeps the left of the page as a column with the bust in the middle of it, and the
   words stand on paper at the right */
@media (max-aspect-ratio: 145/100) and (min-aspect-ratio: 4/5) and (min-width: 720px), (max-height: 560px) and (min-aspect-ratio: 145/100) and (min-width: 720px) {
  .gate-sky { right: 44%; }
}
/* tall screens: the bust is framed close and in the middle, and the photo melts into the paper where the words are */
@media (max-aspect-ratio: 4/5), (max-width: 719px) {
  .gate-scene { inset: auto; top: 0; left: -40vw; width: 180vw; height: 72svh;
    -webkit-mask: linear-gradient(#000 62%, transparent 100%); mask: linear-gradient(#000 62%, transparent 100%); }
  .gate-cover { background-image: url('/liveliquidations26/gate/still-tall.webp?v=9b814d5132'), var(--lqip-tall); }
}

/* ── the page over it ────────────────────────────────────────────────────────────────────────────────────────────── */
.gate-ui {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.5fr); grid-template-rows: auto 1fr;
  padding: max(26px, env(safe-area-inset-top)) clamp(22px, 3.6vw, 56px) max(26px, env(safe-area-inset-bottom));
}
@media (max-aspect-ratio: 145/100) and (min-aspect-ratio: 4/5) and (min-width: 720px), (max-height: 560px) and (min-aspect-ratio: 145/100) and (min-width: 720px) {
  .gate-ui { grid-template-columns: 56fr 44fr; padding-right: 0; }
  .gate-top { padding-right: clamp(22px, 3.6vw, 56px); }
}
.gate-top { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.gate-brand { font: 400 25px/1 var(--serif); letter-spacing: 0.005em; color: var(--ink); }

/* his gaze: the right third of the frame, above his shoulder (the light part of the photo) */
.gate-block { grid-column: 2; align-self: start; width: min(440px, 100%); margin-top: 21vh; }
.gate-title { margin: 0; font: 400 clamp(52px, 5vw, 92px)/0.86 var(--serif); letter-spacing: -0.012em; color: var(--ink); view-transition-name: arc-title; }
.gate-title span { display: block; }
.gate-title em { font-style: italic; }
.gate-sub { margin: 18px 0 0; font: 500 15px/1.5 var(--sans); letter-spacing: -0.01em; color: var(--ink); }

@media (max-aspect-ratio: 145/100) and (min-aspect-ratio: 4/5) and (min-width: 720px), (max-height: 560px) and (min-aspect-ratio: 145/100) and (min-width: 720px) {
  .gate-block { justify-self: center; align-self: center; margin-top: 0; width: min(360px, calc(100% - 96px)); }
  .gate-title { font-size: clamp(38px, min(5.4vw, 11vh), 84px); }
}
@media (max-height: 560px) and (min-aspect-ratio: 145/100) and (min-width: 720px) {
  .gate-sub { margin-top: 8px; font-size: 13.5px; }
  .key { margin-top: 18px; }
}
@media (max-aspect-ratio: 4/5), (max-width: 719px) {
  .gate-ui { grid-template-columns: minmax(0, 1fr); }
  .gate-block { grid-column: 1; align-self: end; width: min(440px, 100%); margin: 0; }
  .gate-title { font-size: clamp(52px, 15vw, 76px); }
}

/* ── the key: a status line, one hairline, dots of ink ───────────────────────────────────────────────────────────── */
/* a sheet of translucent white under the key, so the status, the line and the dots read on any part of the
   photo; it reaches out past the
   block so the words inside keep the title's left edge */
.key {
  --sheet-x: 24px;
  margin: clamp(28px, 5.5vh, 52px) calc(-1 * var(--sheet-x)) 0;
  padding: 16px var(--sheet-x) 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 var(--ink);
  --line: rgba(13, 13, 12, 0.55);
}
@media (max-width: 560px) { .key { --sheet-x: 12px; } }
.key-label, .key-live, .key-user { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.key-status {
  height: 20px; margin: 0 0 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 500 12.5px/20px var(--sans); letter-spacing: 0.02em; color: rgba(13, 13, 12, 0.84);
}
.key-status.is-said { font-size: 13.5px; letter-spacing: -0.005em; color: var(--ink); }
.key-status.is-error { color: var(--warm); }

.key-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 40px 44px; align-items: center; height: 52px; }
.key-well { grid-column: 1; grid-row: 1; position: relative; height: 100%; overflow: hidden; }
.key-input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; border-radius: 0;
  background: transparent; color: transparent; -webkit-text-fill-color: transparent; caret-color: transparent;
  font: 400 17px/1 var(--mono); letter-spacing: 0.08em;
}
.key-input::selection { background: transparent; }
/* the start of this animation is the page's only sign that the browser filled the field in (gate.js) */
@keyframes key-autofill { from { opacity: 1; } to { opacity: 1; } }
.key-input:-webkit-autofill { -webkit-text-fill-color: transparent; animation: key-autofill 1ms; transition: background-color 600000s 0s, color 600000s 0s; }
.key-input:autofill { animation: key-autofill 1ms; }
/* shown (the eye): the characters themselves instead of the dots */
.key-row.is-shown .key-input { color: var(--ink); -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
.key-row.is-shown .key-input::selection { background: rgba(13, 13, 12, 0.16); }
.key-row.is-shown .key-dots, .key-row.is-shown .key-smear { visibility: hidden; }

.key-dots, .key-smear { position: absolute; inset: 0; display: flex; align-items: center; gap: 11px; padding-left: 2px; pointer-events: none; }
.key-dots i, .key-smear i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.key-dots i { animation: key-dot 0.16s ease-out both; }
@keyframes key-dot { from { opacity: 0; transform: scale(0.6); } }
.key-dots b { flex: none; width: 1px; height: 20px; margin: 0 -5px 0 -4px; background: var(--ink); opacity: 0; }
.key-row:focus-within .key-dots b { opacity: 1; animation: key-caret 1.06s steps(1) infinite; }
.key-input[readonly] ~ .key-dots b { display: none; }
@keyframes key-caret { 50% { opacity: 0; } }
@media (max-width: 560px) { .key-dots, .key-smear { gap: 9px; } }

.key-eye, .key-go { width: 40px; height: 40px; justify-self: center; display: grid; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); cursor: pointer; transition: opacity 0.3s, color 0.3s; }
.key-eye { grid-column: 2; grid-row: 1; opacity: 0; color: var(--ink-2); }
.key-go { grid-column: 3; grid-row: 1; opacity: 0.62; }
.key-row:focus-within .key-eye, .key-row.has-value .key-eye, .key-row.is-shown .key-eye { opacity: 1; }
.key-row.has-value .key-go { opacity: 1; }
.key-go:disabled { opacity: 0.25; cursor: default; }
.key-eye svg, .key-go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.key-eye:hover, .key-eye[aria-pressed='true'] { color: var(--ink); }
.key-eye .slash { opacity: 0; transition: opacity 0.25s; }
.key-eye[aria-pressed='true'] .slash { opacity: 1; }
.key-go:not(:disabled):hover svg { transform: translateX(4px); }
.key-eye:focus-visible, .key-go:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 1px; opacity: 1; }
@media (pointer: coarse) { .key-row { grid-template-columns: minmax(0, 1fr) 44px 44px; } .key-eye, .key-go { width: 44px; height: 44px; } }

/* the hairline: drawn in full ink from the left while the field has focus; while the password is checked a stroke of
   ink runs along it; a wrong one reddens it */
.key-line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); pointer-events: none; transform-origin: 0 50%; transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s, background 0.4s; }
.key-line::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s; }
.key-row:focus-within .key-line::before { transform: scaleX(1); }
.key-line > i { position: absolute; top: -1px; left: 0; width: 28%; height: 3px; opacity: 0; background: var(--ink); }
.key.is-busy .key-line > i { opacity: 1; animation: key-run 1.05s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes key-run { from { transform: translateX(-100%); } to { transform: translateX(360%); } }
.key-row.is-wrong .key-line, .key-row.is-wrong .key-line::before { background: var(--warm); }

/* ── coming in: the photo first, then the words ──────────────────────────────────────────────────────────────────── */
.gate-top, .gate-title, .gate-sub, .key { transition: opacity 0.5s ease-out; }
.gate.is-scripted:not(.ui-in) .gate-top, .gate.is-scripted:not(.ui-in) .gate-title, .gate.is-scripted:not(.ui-in) .gate-sub, .gate.is-scripted:not(.ui-in) .key { opacity: 0; }
.gate.is-scripted:not(.ui-in) .key-line { transform: scaleX(0); }
/* going in: the words leave, the photo stays for the dashboard (it becomes the dashboard's column) */
.gate.is-leaving .gate-top, .gate.is-leaving .gate-sub, .gate.is-leaving .key { opacity: 0; transition-duration: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .gate-top, .gate-title, .gate-sub, .key { transition-duration: 0.01s; }
  .key-dots i { animation-duration: 0.01s; }
  .key-line, .key-line::before { transition-duration: 0.2s; }
  .key.is-busy .key-line > i { animation: none; transform: translateX(120%); }
}
::view-transition-group(arc-stage), ::view-transition-group(arc-title) { animation-duration: 0.9s; animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
::view-transition-old(arc-stage), ::view-transition-new(arc-stage) { height: 100%; object-fit: cover; }
::view-transition-old(arc-title) { animation: none; opacity: 0; }
::view-transition-old(arc-stage) { animation-duration: 0.35s; }
