/* The showroom page, dressed in the subway system (subway.css). Loaded after the legacy rules in index.html. */
:root { --mast: calc(84px + env(safe-area-inset-top, 0px)); --gutter: max(32px, env(safe-area-inset-left, 0px)); }
html body { background: var(--ink); color: var(--paper); font-family: var(--font-sign); }
body #view { background: radial-gradient(ellipse at 50% 40%, #2b2b2a 0%, #121212 60%, #0a0a0a 100%); }
.cinema-shade { display: none; }
[hidden] { display: none !important; }

/* Masthead: a solid station-sign bar. Logo on the left, the live numbers on the right in
   divided columns like a departure board. On phones it splits into two rows. */
.masthead {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  min-height: var(--mast);
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 0 0 var(--gutter);
  background: #0f0f0f;
  color: #f4f1ea;
  box-shadow: 0 1px 0 #2a2a2a;
}
.masthead::before { content: ""; position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 6px); height: 2px; background: #f4f1ea; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 72px; flex: 0 0 auto; padding-right: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 44px; height: 40px; flex: 0 0 auto; display: block; }
.brand-words { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.brand-name { display: block; font: 800 26px/0.9 var(--font-sign); letter-spacing: -.025em; white-space: nowrap; }
.brand-sub { display: block; font: 700 9px/1 var(--font-sign); letter-spacing: .22em; text-transform: uppercase; color: #a9a397; white-space: nowrap; }
/* Copy and counters share one flex line. The line wraps under the logo, as whole boxes, when the sentence no longer fits beside them. */
.mast-board { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: stretch; min-height: 72px; }
.mast-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-width: max-content;
  padding: 0 12px;
  text-align: center;
  box-shadow: inset 1px 0 0 #2a2a2a;
}
.mast-title, .mast-sub { margin: 0; white-space: nowrap; }
.mast-stats { display: flex; align-items: stretch; flex: 0 0 auto; }
.mast-stat {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 0 16px;
  box-shadow: inset 1px 0 0 #2a2a2a;
}
.mast-stat:last-child { padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mast-stat .label, .mast-title { font: 700 10px/1 var(--font-sign); letter-spacing: .18em; text-transform: uppercase; color: #a9a397; white-space: nowrap; }
.mast-stat .clock, .mast-sub { font-family: var(--font-clock); font-size: 32px; font-weight: 400; line-height: 1; min-height: 1em; color: var(--amber); font-variant-numeric: tabular-nums; white-space: nowrap; }
.view-window { overflow: hidden; }
.view-track { display: flex; flex-direction: column; will-change: transform; }
.view-face { box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; height: 100%; }
.clock-parts { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.clock-parts b { font: inherit; font-weight: 400; }
.clock-parts i { margin-left: 1px; font: 700 10px/1 var(--font-sign); letter-spacing: .06em; font-style: normal; text-transform: lowercase; color: #a9a397; }
.lectec-card {
  position: fixed;
  z-index: 6;
  right: max(32px, env(safe-area-inset-right, 0px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #fff;
  text-align: left;
  pointer-events: auto;
}
.lectec-profile { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.lectec-profile > a, button.lectec-avatar { display: flex; flex: 0 0 auto; padding: 0; border: 0; background: none; color: inherit; text-decoration: none; cursor: pointer; }
button.lectec-handle { padding: 0; border: 0; background: none; cursor: pointer; }
.lectec-profile img { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: #111; }
.lectec-id { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; min-width: 0; }
.lectec-handle { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: #fff; font: 700 16px/1.1 var(--font-sign); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
a.lectec-handle:hover { color: var(--line-yellow); }
.verified { flex: 0 0 auto; display: block; }
.how-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: 500 12px/1.2 var(--font-sign);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.how-link:hover { color: var(--line-yellow); }
.live-visitors {
  position: fixed;
  z-index: 6;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  width: 320px;
  height: 36px;
  background: transparent;
  pointer-events: auto;
}
.live-visitors iframe { display: block; background: transparent; }
.lectec-links { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0; }
.kiosk-player { position: absolute; z-index: 2; border: 0; background: #000; }
body.is-kiosk #advertise { visibility: hidden; }

body #meta { top: calc(env(safe-area-inset-top, 0px) + 188px); left: var(--gutter); font: 700 12px/1.4 var(--font-sign); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
body #meta a { color: #fff; text-decoration: none; }
body #meta a:hover { color: var(--line-yellow); }
body #feed { display: none; }
.preview-label { position: fixed; z-index: 3; top: calc(var(--mast) + 36px); right: max(32px, env(safe-area-inset-right, 0px)); font-size: 18px; }

.zoom-tune {
  position: fixed;
  z-index: 6;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 132px;
  padding: 8px 10px 10px;
  background: #111;
  color: #fff;
  border: 2px solid #111;
  box-shadow: 0 4px 0 #000;
}
.zoom-tune-label { font: 700 10px/1 var(--font-sign); letter-spacing: .14em; text-transform: uppercase; }
.zoom-tune strong { color: var(--line-yellow); font: 400 28px/1 var(--font-clock); font-variant-numeric: tabular-nums; }
.zoom-tune input { width: 100%; margin: 4px 0 6px; accent-color: var(--line-yellow); }
.zoom-tune input:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .zoom-tune { bottom: calc(env(safe-area-inset-bottom, 0px) + 156px); width: 112px; }
  .zoom-tune strong { font-size: 24px; }
}

body #advertise {
  position: fixed;
  z-index: 12;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  transform: translateX(-50%);
  min-width: min(340px, calc(100% - 40px));
  white-space: nowrap;
}
body #advertise,
body #advertise:hover,
body #advertise:focus,
body #advertise:focus-visible,
body #advertise:active {
  outline: none;
  background: var(--line-yellow);
  translate: none;
  box-shadow: 0 6px 0 var(--express-edge), 0 6px 0 2px var(--ink);
}
body #advertise .btn__diamond::before,
body #advertise:hover .btn__diamond::before {
  animation: none;
}
body:has(#advertise-slot:not([hidden])) #advertise,
body:has(#advertise-picker:not([hidden])) #advertise,
body:has(#how-modal:not([hidden])) #advertise,
body:has(#social-modal:not([hidden])) #advertise { visibility: hidden; }
.social-list { display: flex; flex-direction: column; margin: 4px 0 0; padding: 0; list-style: none; }
.social-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid #2c2c2c;
  color: #fff;
  font: 700 16px/1 var(--font-sign);
  text-decoration: none;
}
.social-list li:last-child a { border-bottom: 0; }
.social-list svg { display: block; width: 22px; height: 22px; flex: 0 0 22px; }
.social-list a:hover { color: var(--line-yellow); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--line-yellow); outline-offset: 4px; }

/* Loading */
#cab-spinner {
  position: fixed;
  z-index: 4;
  left: 50%;
  top: 46%;
  display: grid;
  justify-items: center;
  gap: 14px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cab-spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(#fccc0a 0 120deg, #ee352e 0 240deg, #0039a6 0 360deg);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
  mask: radial-gradient(circle, transparent 58%, #000 60%);
  animation: cab-spin .8s linear infinite;
}
body.is-ready #cab-spinner { display: none; }
#cab-spinner.is-failed { pointer-events: auto; }
#cab-spinner.is-failed .cab-spinner { animation: none; opacity: .35; }
#loading-retry { pointer-events: auto; }
@keyframes cab-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .cab-spinner { animation: none; }
}

/* The legacy bid sheet is replaced by the advertise dialogs. */
body #sheet { display: none !important; }

/* Picker and slot dialogs. Desktop keeps them on the right; phones drop them to the bottom. */
.advertise-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  box-sizing: border-box;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) 24px;
}
.advertise-backdrop,
.advertise-backdrop.scrim { position: absolute; inset: 0; background: transparent; }
.advertise-panel { position: relative; z-index: 1; width: min(352px, 100%); max-height: 100%; overflow: auto; }
.advertise-top .btn--icon { width: 30px; height: 30px; min-height: 0; }
.advertise-top .btn--icon .icon { width: 13px; height: 13px; }
.advertise-panel::before { display: none; }
.advertise-top {
  position: sticky;
  top: -24px;
  z-index: 1;
  margin: -24px -20px 14px;
  padding: 24px 20px 12px;
  background: var(--sign);
  box-shadow: inset 0 8px 0 var(--sign), inset 0 10px 0 var(--paper);
}
.advertise-popover { margin: 0 0 14px; color: #fff; }
.advertise-popover p { margin: 0 0 8px; color: #fff; }
.advertise-logo { width: 72px; height: 72px; margin: 4px auto 12px; }
.advertise-logo.is-ai { width: auto; max-width: 100%; height: auto; min-height: 72px; }
.advertise-logo img, .advertise-mark { display: block; width: 72px; height: 72px; box-sizing: border-box; box-shadow: inset 0 0 0 2px var(--paper); }
.advertise-logo img { object-fit: contain; background: var(--tile); padding: 6px; }
.advertise-provider { display: grid; place-items: center; min-height: 72px; padding: 8px 12px; color: var(--line-yellow); font: 800 28px/1.1 var(--font-sign); letter-spacing: .01em; text-align: center; }
.advertise-card { display: block; color: #fff; text-align: center; }
#advertise-holder { margin: 0; color: #fff; font: 800 22px/1.2 var(--font-sign); text-align: center; }
#advertise-brand { color: #fff; text-decoration: none; }
#advertise-clicks { color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; }
#advertise-slot-label { display: flex; align-items: baseline; min-width: 0; }
#advertise-slot-name { min-width: 0; }
.advertise-price { color: var(--line-yellow); font-weight: 800; white-space: nowrap; }
#advertise-handle { margin: 4px 0 0; color: #fff; font-weight: 600; font-size: 14px; text-align: center; text-decoration: none; }
#advertise-tagline { margin: 8px 0 0; color: #fff; font-size: 14px; line-height: 1.45; text-align: center; }
#advertise-website { display: inline-block; margin-top: 8px; color: #fff; font-size: 14px; overflow-wrap: anywhere; text-align: center; }
.advertise-offer { display: grid; gap: 12px; }
.advertise-offer .how-copy { margin: 0; }
.how-copy { display: grid; gap: 10px; margin: 0 0 16px; color: #fff; }
.how-copy p { margin: 0; color: #fff; font: 500 14px/1.45 var(--font-sign); }
#advertise-website:hover { color: var(--line-yellow); }
.advertise-kicker { margin: 0; color: #fff; }
.advertise-form { display: grid; gap: 12px; color: #fff; }
.advertise-form .field,
.advertise-form .check,
.advertise-form .check a { color: #fff; }
.advertise-form .check a:hover { color: var(--line-yellow); }
.advertise-file { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.advertise-form .advertise-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}
.advertise-file-input:focus-visible + .advertise-file-button { outline: 3px solid var(--line-yellow); outline-offset: 4px; }
.advertise-file-button { flex: 0 0 auto; }
#advertise-file-name { color: #fff; font: 600 13px/1.3 var(--font-sign); overflow-wrap: anywhere; }
#advertise-closed { margin: 12px 0 0; color: #fff; font-size: 13px; }
#advertise-submit { margin-top: 16px; }
#advertise-note { min-height: 1.2em; margin: 8px 0 0; color: #fff; }
.advertise-choices { margin-top: 4px; }

@media (max-width: 1280px) and (min-width: 701px) {
  .mast-stat { padding: 0 16px; }
  .mast-copy { padding: 0 16px; }
  .mast-stat .clock, .mast-sub { font-size: 26px; }
  .brand-name { font-size: 22px; }
}
@media (max-width: 960px) and (min-width: 701px) {
  .brand-words { display: none; }
  .brand { padding-right: 18px; }
}
@media (max-width: 700px) {
  :root { --mast: calc(116px + env(safe-area-inset-top, 0px)); --gutter: max(16px, env(safe-area-inset-left, 0px)); }
  .masthead { padding: calc(env(safe-area-inset-top, 0px) + 8px) 0 0; }
  .brand { min-height: 56px; gap: 8px; padding-left: var(--gutter); padding-right: 12px; }
  .brand-mark { width: 32px; height: 29px; }
  .brand-name { font-size: 19px; white-space: normal; width: 3.6em; line-height: 0.95; }
  .brand-sub { display: none; }
  .mast-board { display: contents; }
  .mast-copy { flex: 1 1 auto; min-width: 0; max-width: none; min-height: 56px; align-items: flex-end; gap: 4px; padding: 6px max(12px, env(safe-area-inset-right, 0px)) 6px 8px; text-align: right; box-shadow: none; }
  .mast-title { font-size: 8px; letter-spacing: .08em; }
  .mast-stat .clock, .mast-sub { font-size: 17px; }
  .mast-stats { flex: 1 1 100%; width: 100%; max-width: 100%; min-height: 52px; box-shadow: inset 0 1px 0 #2a2a2a; }
  .mast-stat { flex: 1 1 0; align-items: center; gap: 4px; padding: 0 6px; text-align: center; }
  .mast-stat:first-child { box-shadow: none; }
  .mast-stat:last-child { padding-right: 6px; }
  .mast-stat .label, .mast-title { font-size: 8px; letter-spacing: .08em; }
  .view-face { align-items: center; gap: 4px; }
  .clock-parts { gap: 3px; }
  .clock-parts i { font-size: 8px; }
  .lectec-card { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
  .live-visitors { left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); width: 168px; height: 52px; }
  .lectec-profile { gap: 8px; }
  .lectec-profile img { width: 40px; height: 40px; }
  .lectec-handle { font-size: 13px; }
  .verified { width: 13px; height: 13px; }
  .how-link { font-size: 11px; }
  body #meta { top: calc(var(--mast) + 8px); }
  .preview-label { top: calc(var(--mast) + 30px); right: max(16px, env(safe-area-inset-right, 0px)); font-size: 15px; }
  body #advertise { width: calc(100% - 40px); max-width: 420px; min-width: 0; padding-inline: 16px; font-size: 17px; bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); }
  body.is-focused .masthead { opacity: .7; }
  .advertise-modal { flex-direction: column; justify-content: flex-end; align-items: stretch; padding: max(12px, env(safe-area-inset-top, 0px)) 0 0; }
  .advertise-panel { width: min(352px, calc(100% - 24px)); max-height: 92vh; margin-inline: auto; padding-bottom: max(22px, env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 420px) {
  .mast-stat .label, .mast-title { font-size: 7px; letter-spacing: .06em; }
  .mast-stat .clock, .mast-sub { font-size: 16px; }
  .lectec-card { right: max(10px, env(safe-area-inset-right, 0px)); }
  .lectec-profile { gap: 6px; }
  .lectec-profile img { width: 32px; height: 32px; }
  .lectec-handle { font-size: 12px; gap: 3px; }
  .verified { width: 12px; height: 12px; }
  .how-link { font-size: 10px; }
  body #meta { top: calc(var(--mast) + 8px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; } }
