/* Your Move · character animation review
   All sizes on the character screen are in vh so the row fits exactly in the viewport height. */

:root {
  --bg: #101921;
  --plate: #1C2731;
  --block: #101921;
  --lime: #F6FF73;
  --text: #fff;
  --text-2: rgba(255, 255, 255, .6);

  --strip: 56px;          /* BACK strip width */
  --pad-y: 2.4vh;         /* top/bottom gutter of the row */
  --gap: 1.2vh;           /* gap between columns / cards */
  --hdr: 6.4vh;           /* header area above portrait and sections */
  --vid-h: 30.4vh;        /* video block height (3:4) */
  --vid-w: calc(var(--vid-h) * .75);

  --r-card: 2.8vh;
  --r-block: 2vh;
  --r-video: 1.6vh;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", system-ui, sans-serif;
  overflow: hidden;            /* only the inner rows scroll */
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.anton { font-family: "Anton", Impact, sans-serif; letter-spacing: .01em; }

/* Thin native horizontal scrollbar */
.hscroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-track { background: transparent; }
.hscroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 3px; }

/* Lime loader ring */
.loader {
  width: 4vh; height: 4vh;
  border-radius: 50%;
  border: .45vh solid rgba(246, 255, 115, .2);
  border-top-color: var(--lime);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loader { animation-duration: 4s; } }

/* ---------- Home ---------- */
.home {
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  gap: 4vh;
  padding: 4vh 0;
}
.home-title {
  font-family: "Anton", Impact, sans-serif;
  font-size: 7vh; line-height: 1.1;
  padding: 0 6vh;
}
.home-title .lime { color: var(--lime); }
.heroes {
  display: flex; gap: 2.4vh;
  padding: 0 6vh 1.6vh;
}
.hero { flex: 0 0 auto; width: 34.8vh; display: flex; flex-direction: column; gap: 1.4vh; }
.hero-card {
  position: relative; display: block;
  width: 100%; height: 58vh;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--plate);
  text-align: left; color: inherit; text-decoration: none;
  transition: transform .2s ease;
}
.hero-card:hover { transform: translateY(-.6vh); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hero-card .shade {
  position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(16, 25, 33, .95), rgba(16, 25, 33, 0));
}
.hero-card .meta { position: absolute; left: 2.4vh; right: 2.4vh; bottom: 2.4vh; }
.hero-name, .hero-role { display: block; }
.hero-name { font-family: "Anton", Impact, sans-serif; font-size: 4.4vh; line-height: 1.05; }
.hero-role { font-size: 1.6vh; color: var(--text-2); letter-spacing: .08em; margin-top: .4vh; }
.hero-count { font-size: 1.8vh; color: var(--text-2); padding-left: .4vh; }
.hero-count b { color: var(--text); font-weight: 500; }

.hero-card.dev {
  cursor: default;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh;
}
.hero-card.dev:hover { transform: none; }
.dev-q {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: "Anton", Impact, sans-serif; font-size: 26vh;
  color: rgba(255, 255, 255, .05);
  user-select: none;
}
.dev-label { position: relative; font-family: "Anton", Impact, sans-serif; font-size: 2vh; letter-spacing: .06em; color: var(--text-2); }
.hero-card.dev .loader { position: relative; width: 3.2vh; height: 3.2vh; }

/* ---------- Character screen ---------- */
.char { height: 100vh; height: 100dvh; display: flex; }

.back {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 5;
  width: var(--strip);
  background: var(--plate);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 2.4vh; gap: 2.4vh;
  transition: background .15s ease, color .15s ease;
}
.back svg { width: 22px; height: 22px; flex: 0 0 auto; }
.back-text {
  writing-mode: vertical-rl;
  font-family: "Anton", Impact, sans-serif; font-size: 18px; letter-spacing: .12em;
}
.back .on-hover { display: none; }
.back:hover, .back:focus-visible { background: var(--lime); color: var(--bg); }
.back:hover .on-idle, .back:focus-visible .on-idle { display: none; }
.back:hover .on-hover, .back:focus-visible .on-hover { display: inline; }
.back:focus-visible { outline-offset: -4px; outline-color: var(--bg); }

.row {
  margin-left: var(--strip);
  width: calc(100vw - var(--strip));
  height: 100%;
  display: flex; align-items: stretch; gap: calc(var(--gap) * 2.4);
  padding: var(--pad-y) calc(var(--gap) * 2.4);
}
.row:focus-visible { outline-offset: -2px; }
.col { flex: 0 0 auto; display: flex; flex-direction: column; gap: var(--gap); min-height: 0; }
.col-hdr { height: var(--hdr); display: flex; flex-direction: column; justify-content: flex-end; gap: .4vh; }
.col-hdr h1, .col-hdr h2 { font-family: "Anton", Impact, sans-serif; font-size: 3.8vh; line-height: 1.05; white-space: nowrap; }
.col-hdr .role { color: var(--lime); font-size: 1.6vh; letter-spacing: .08em; font-weight: 500; }
.col-hdr .count { color: var(--text-2); font-size: 1.6vh; }
.sec .col-hdr h2 { color: var(--lime); }

/* (a) portrait */
.portrait-col { width: 52vh; }
.portrait-col img {
  flex: 1 1 auto; min-height: 0; width: 100%;
  object-fit: cover; object-position: center top;
  border-radius: var(--r-card);
  background: var(--plate);
  display: block;
}

/* (b) progress tiles */
.tiles {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 17vh);
  grid-template-rows: repeat(4, 1fr);
  gap: var(--gap);
}
.tile {
  background: var(--plate);
  border-radius: var(--r-block);
  padding: 1.8vh;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 0;
}
.tile-label { font-family: "Anton", Impact, sans-serif; font-size: 2vh; letter-spacing: .04em; }
.tile-num { font-family: "Anton", Impact, sans-serif; font-size: 5.6vh; line-height: 1; }
.tile-num small { font-size: .5em; color: var(--text-2); }
.tile.all { background: var(--lime); color: var(--bg); }
.tile.all .tile-num small { color: rgba(16, 25, 33, .6); }
.bars { display: flex; gap: .4vh; }
.bars i { flex: 1; height: .8vh; border-radius: .4vh; background: rgba(255, 255, 255, .2); }
.bars i.on { background: var(--lime); }

/* (c) sections and cards */
.cards { flex: 1 1 auto; min-height: 0; display: flex; gap: var(--gap); }
.card {
  flex: 0 0 auto;
  background: var(--plate);
  border-radius: var(--r-card);
  padding: 1.6vh;
  display: flex; flex-direction: column; gap: 1vh;
}
.card-hdr { padding: 0 .4vh; }
.card-name {
  font-family: "Anton", Impact, sans-serif; font-size: 2.4vh; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: calc(var(--vid-w) + 2vh);
}
.card-code { font-size: 1.3vh; color: var(--text-2); height: 1.7vh; line-height: 1.7vh; }

/* Block = one video (main or accessory) with a 3px gradient outline */
.block {
  --o1: transparent; --o2: transparent; --glow: transparent;
  border: 3px solid transparent;
  border-radius: var(--r-block);
  background:
    linear-gradient(var(--block), var(--block)) padding-box,
    linear-gradient(160deg, var(--o1), var(--o2)) border-box;
  box-shadow: 0 0 1.4vh var(--glow);
  padding: .9vh;
  display: flex; flex-direction: column; gap: .8vh;
}
.block[data-status="approved"] { --o1: #9CFFB9; --o2: #20A35A; --glow: rgba(32, 163, 90, .3); }
.block[data-status="pending"]  { --o1: rgba(255, 255, 255, .45); --o2: rgba(255, 255, 255, .12); }
.block[data-status="rejected"] { --o1: #FF9A93; --o2: #D7263D; --glow: rgba(215, 38, 61, .3); }

.block-top { display: flex; align-items: center; gap: .8vh; height: 2.4vh; }
.chip {
  font-family: "Anton", Impact, sans-serif; font-size: 1.3vh; letter-spacing: .06em;
  padding: .35vh 1vh; border-radius: 99px; line-height: 1.3;
}
.chip.main { background: var(--lime); color: var(--bg); }
.chip.accessory { background: rgba(255, 255, 255, .14); color: var(--text); }
.dur { font-size: 1.3vh; color: var(--text-2); }

.vid-btn, .placeholder {
  position: relative; display: block;
  width: var(--vid-w); height: var(--vid-h);
  border-radius: var(--r-video);
  overflow: hidden;
  background: var(--plate);          /* dark plate until the video loads */
}
.vid-btn { cursor: zoom-in; }
.vid-btn video { width: 100%; height: 100%; object-fit: cover; display: block; }

.placeholder img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top; opacity: .35;
}
.placeholder .loader { position: absolute; left: 50%; top: 50%; margin: -2vh 0 0 -2vh; }
.placeholder .ph-label {
  position: absolute; left: 0; right: 0; bottom: 2vh; text-align: center;
  font-family: "Anton", Impact, sans-serif; font-size: 2vh; letter-spacing: .06em;
}

.caption { display: flex; align-items: center; justify-content: space-between; height: 2.6vh; padding: 0 .2vh 0 .4vh; }
.status { font-size: 1.5vh; font-weight: 500; }
.block[data-status="pending"] .status, .block.wip .status { color: var(--text-2); font-weight: 400; }

/* Approve checkbox: dark rounded square, lime tick / red cross */
.check {
  width: 2.6vh; height: 2.6vh;
  border-radius: .6vh;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2);
  display: grid; place-items: center;
}
.check svg { width: 70%; height: 70%; display: none; }
.block[data-status="pending"] .check, .block.wip .check { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.block[data-status="approved"] .check .tick { display: block; color: var(--lime); }
.block[data-status="rejected"] .check .cross { display: block; color: #FF5A5F; }
.check:disabled { cursor: not-allowed; opacity: .6; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(0, 0, 0, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 7vh 4vh 3vh;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox:focus { outline: none; }
.lb-top {
  position: absolute; left: 3vh; right: 3vh; top: 2vh;
  display: flex; align-items: center; justify-content: space-between;
}
.lb-title { display: flex; align-items: center; gap: 1.2vh; }
.lb-name { font-family: "Anton", Impact, sans-serif; font-size: 3vh; }
.lb-hint { font-size: 1.5vh; color: var(--text-2); }
.lb-video { height: 100%; max-width: 100%; aspect-ratio: 3 / 4; object-fit: contain; border-radius: var(--r-video); background: #000; }
