/* The avatar site: the facade of the 1930s cinema from assets/refs/retro (oxblood walls, brass trim,
   marquee bulbs, a red neon sign). Oswald and Poiret One are self-hosted (SIL OFL, fonts/OFL-*.txt). */

@font-face { font-family: "Oswald"; src: url("fonts/oswald-cyrillic.woff2") format("woff2"); font-weight: 300 600;
  font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; src: url("fonts/oswald-latin.woff2") format("woff2"); font-weight: 300 600;
  font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poiret One"; src: url("fonts/poiret-one-cyrillic.woff2") format("woff2");
  font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Poiret One"; src: url("fonts/poiret-one-latin.woff2") format("woff2");
  font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --wall: #3e0b0c;
  --wall-deep: #240607;
  --brass: #c8973f;
  --brass-dim: #7d5a22;
  --bulb: #ffd98a;
  --screen: #f3e4c8;
  --ink: #22150f;
  --neon: #ff4b33;
  --muted: #cdb48f;
  --display: "Poiret One", "Didot", serif;
  --text: "Oswald", "Arial Narrow", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--wall-deep); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--screen);
  font: 300 1.125rem/1.55 var(--text);
  text-align: center;
  /* Fluted pilasters of the facade. */
  background:
    repeating-linear-gradient(90deg, transparent 0 46px, rgb(0 0 0 / .13) 46px 48px),
    linear-gradient(180deg, var(--wall) 0%, #2c0809 100%);
}
a { color: var(--bulb); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--bulb); outline-offset: 3px; }

/* --- the facade: crown, neon sign, marquee ------------------------------------------------- */
.facade { max-width: 1040px; margin: 0 auto; padding: 36px 16px 8px; }
.crown { display: block; width: 120px; margin: 0 auto; color: var(--brass); }
.brand {
  margin: 6px 0 28px;
  font: 400 clamp(2.6rem, 9vw, 4.6rem)/1 var(--display);
  letter-spacing: .12em;
  color: #ffe1d8;
  text-shadow: 0 0 3px #ff7a60, 0 0 12px var(--neon), 0 0 30px rgb(255 75 51 / .65);
}
.marquee {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px clamp(12px, 3vw, 22px);
  border: 3px solid var(--brass);
  border-radius: 30px;
  background: linear-gradient(180deg, #5a1517 0%, #3a0b0c 100%);
  box-shadow: 0 0 0 7px #2a0708, 0 0 0 9px var(--brass-dim), 0 22px 44px rgb(0 0 0 / .5);
}
@property --lit { syntax: "<percentage>"; inherits: false; initial-value: 110%; }
.bulbs {
  height: 14px;
  background: radial-gradient(circle, var(--bulb) 0 3.5px, rgb(255 217 138 / .35) 4.5px, transparent 7px) center / 22px 14px repeat-x;
  filter: drop-shadow(0 0 5px rgb(255 196 110 / .9));
  /* The lights come on left to right once, when the page opens. */
  -webkit-mask-image: linear-gradient(90deg, #000 var(--lit), rgb(0 0 0 / .2) calc(var(--lit) + 6%));
  mask-image: linear-gradient(90deg, #000 var(--lit), rgb(0 0 0 / .2) calc(var(--lit) + 6%));
  animation: lights 1.2s steps(16) .2s both;
}
@keyframes lights { from { --lit: -8%; } to { --lit: 110%; } }
.board {
  margin: 12px 0;
  padding: 14px 16px 12px;
  border-radius: 4px;
  color: var(--ink);
  /* Backlit letter board with its rails. */
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(1.25em - 2px), rgb(60 30 10 / .09) calc(1.25em - 2px) 1.25em),
    radial-gradient(ellipse at 50% 40%, #fff6e2 0%, var(--screen) 70%);
  box-shadow: inset 0 0 0 2px #d9c49f, inset 0 0 24px rgb(160 110 40 / .25);
  perspective: 600px;
}
.row {
  margin: 0;
  font: 600 clamp(1rem, 3.4vw, 1.5rem)/1.25 var(--text);
  letter-spacing: .09em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.star { font-size: clamp(1.9rem, 7.5vw, 3.3rem); letter-spacing: .05em; }
.row.flip { animation: flip .45s ease-out; }
@keyframes flip { from { transform: rotateX(90deg); opacity: .15; } to { transform: none; opacity: 1; } }

.lead { max-width: 33em; margin: 30px auto 20px; }
.account { display: flex; justify-content: center; align-items: center; min-height: 52px; }
.login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 26px 12px;
  border-radius: 3px;
  color: var(--ink);
  background: linear-gradient(180deg, #e2b85f 0%, var(--brass) 100%);
  box-shadow: inset 0 0 0 2px #f0d08c, 0 5px 0 var(--brass-dim);
  font: 500 1.15rem/1 var(--text);
  text-decoration: none;
}
.login:hover { background: linear-gradient(180deg, #eec46c 0%, #d3a24a 100%); }
.login:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px #f0d08c, 0 2px 0 var(--brass-dim); }
.login svg { width: 20px; height: 20px; }
.me { display: flex; align-items: center; gap: 12px; }
.me img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--brass); }
.me span { font-weight: 500; }
.logout {
  padding: 6px 14px;
  border: 1px solid var(--brass);
  border-radius: 3px;
  color: var(--screen);
  background: transparent;
  font: 400 1rem var(--text);
  cursor: pointer;
}
.logout:hover { background: rgb(200 151 63 / .15); }
.hint { max-width: 33em; margin: 14px auto 0; color: var(--muted); font-size: 1rem; }

/* Signed in, but the viewer does not reach the site's tier yet (follow the channel). */
.gate {
  max-width: 36em;
  margin: 0 auto;
  padding: 22px clamp(16px, 4vw, 28px) 24px;
  border: 1px solid var(--brass-dim);
  background: rgb(0 0 0 / .22);
  box-shadow: inset 0 0 0 3px var(--wall-deep), inset 0 0 0 4px rgb(200 151 63 / .35);
}
.gate p { margin: 0 0 18px; }
.gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.follow {
  display: inline-block;
  padding: 10px 22px 11px;
  border-radius: 3px;
  color: var(--ink);
  background: linear-gradient(180deg, #e2b85f 0%, var(--brass) 100%);
  box-shadow: inset 0 0 0 2px #f0d08c, 0 4px 0 var(--brass-dim);
  font: 500 1.05rem/1 var(--text);
  text-decoration: none;
}
.recheck {
  padding: 9px 20px 10px;
  border: 1px solid var(--brass);
  border-radius: 3px;
  color: var(--screen);
  background: transparent;
  font: 400 1.05rem/1 var(--text);
  cursor: pointer;
}
.recheck:hover { background: rgb(200 151 63 / .15); }
.recheck:disabled { opacity: .6; cursor: progress; }

.notice {
  max-width: 36em;
  margin: 18px auto 0;
  padding: 10px 16px;
  border-left: 3px solid var(--neon);
  background: rgb(0 0 0 / .25);
  text-align: left;
}

/* --- the lineup -------------------------------------------------------------------------------- */
main { max-width: 1120px; margin: 0 auto; padding: 44px 16px 36px; }
h2 {
  margin: 0 0 26px;
  font: 400 clamp(2rem, 5vw, 2.8rem)/1.15 var(--display);
  letter-spacing: .05em;
  color: var(--brass);
}
.lineup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) { .lineup { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lineup { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; } }
.lineup li { display: flex; }
.poster {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  padding: 6px 6px 10px;
  border: 1px solid var(--brass-dim);
  border-radius: 2px;
  color: var(--screen);
  background: var(--wall-deep);
  box-shadow: inset 0 0 0 3px var(--wall-deep), inset 0 0 0 4px rgb(200 151 63 / .35);
  font: inherit;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.poster:hover { border-color: var(--brass); }
.poster img, .poster .blank { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.poster .blank { background: linear-gradient(180deg, #3a0b0c, #160304); }
.poster .name { display: block; margin-top: 10px; font: 400 clamp(1.15rem, 2.2vw, 1.4rem)/1.2 var(--display); }
.poster .note { display: block; margin-top: 2px; font-size: .9rem; color: var(--muted); }
.poster[aria-pressed="true"] {
  border-color: var(--bulb);
  box-shadow: inset 0 0 0 3px var(--wall-deep), inset 0 0 0 4px var(--bulb), 0 0 0 2px var(--bulb), 0 0 28px rgb(255 196 110 / .35);
}
/* The viewer's name over the chosen one's head, the way the cinema shows it on stream. */
.poster .tag {
  position: absolute;
  top: 3.5%;
  left: 50%;
  max-width: 92%;
  overflow: hidden;
  transform: translateX(-50%);
  color: #fff;
  font: 500 clamp(.85rem, 1.6vw, 1rem)/1.2 var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 0 2px #000, 0 0 2px #000, 0 1px 4px #000;
}
.poster[data-locked] img { filter: grayscale(.75) brightness(.65); }
.poster .plaque {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 2px;
  color: var(--ink);
  background: var(--brass);
  font: 500 .85rem/1.3 var(--text);
  white-space: nowrap;
}
.poster[aria-busy="true"] { opacity: .6; cursor: progress; }
.status { min-height: 1.6em; max-width: 36em; margin: 26px auto 0; color: var(--bulb); }

.fine { max-width: 40em; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  .bulbs, .row.flip { animation: none; }
  .poster { transition: none; }
}
