/* Bitsy's interactive mock interview player: the episode's own whiteboard and marker look around the video. */
@font-face { font-family: "Hand"; src: url("fonts/PatrickHand-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Main"; src: url("fonts/DMSans-VF.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --room: #161a24;          /* around the video */
  --board: #fbfaf6;         /* the whiteboard the choices are written on */
  --ink: #222e4a;
  --muted: #5d6478;
  --orange: #e2701a;        /* where we are now */
  --blue: #2268c8;
  --green: #188c62;
  --red: #ce3840;
  --line: #d9d6cc;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--room); color: var(--ink); font-family: "Main", system-ui, sans-serif; }
[hidden] { display: none !important; }

.player { min-height: 100%; display: grid; place-items: center; padding: var(--gutter); }

.frame { position: relative; width: min(100%, calc((100vh - 2 * var(--gutter)) * 16 / 9)); }
.stage { position: relative; overflow: hidden; border-radius: 10px; background: #000; width: 100%; aspect-ratio: 16 / 9; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.stage video.on { opacity: 1; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.kicker { margin: 0 0 4px; font: 700 0.78rem/1.2 "Main", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }

.panel {
  position: absolute; left: 50%; transform: translateX(-50%); width: min(92%, 760px);
  background: var(--board); border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45); padding: 18px 22px 16px;
}
.start { bottom: 4%; width: min(92%, 720px); text-align: center; padding: 10px 16px 12px; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.level {
  display: grid; gap: 2px; align-content: start; padding: 8px 12px; text-align: left; cursor: pointer;
  background: #fff; border: 3px solid var(--ink); border-radius: 12px; color: var(--ink); transition: transform 0.1s, border-color 0.1s;
}
.level:hover, .level:focus-visible { border-color: var(--orange); transform: translateY(-2px); outline: none; }
.level-name { font: 400 1.35rem/1 "Hand", cursive; }
.level-blurb { font-size: 0.75rem; line-height: 1.25; color: var(--muted); }
.lede { margin: 0 auto 12px; max-width: 34em; color: var(--ink); font-size: clamp(0.85rem, 1.6vw, 1rem); line-height: 1.4; }

.choice { bottom: 5%; }
.frame.asking video.on { filter: brightness(0.55); transition: filter 0.3s; }
.choice h2 { margin: 0 0 12px; font: 400 clamp(1.3rem, 3.2vw, 2.1rem)/1.1 "Hand", cursive; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.options[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.options[data-count="3"] .option { font-size: clamp(0.95rem, 1.9vw, 1.25rem); }
.option {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; text-align: left;
  font: 400 clamp(1.05rem, 2.4vw, 1.5rem)/1.1 "Hand", cursive; color: var(--ink); cursor: pointer;
  background: #fff; border: 3px solid var(--ink); border-radius: 12px; transition: transform 0.1s, border-color 0.1s;
}
.option:hover, .option:focus-visible { border-color: var(--orange); transform: translateY(-2px); outline: none; }
.option .key {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--board); font: 700 0.85rem/1 "Main", sans-serif;
}
.clock { margin-top: 12px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.clock-bar { height: 100%; width: 100%; background: var(--orange); transform-origin: left; }
.clock-text { margin: 6px 0 0; min-height: 1.2em; font-size: 0.85rem; color: var(--muted); }

.go {
  font: 700 1rem/1 "Main", sans-serif; color: var(--board); background: var(--orange); border: 0; border-radius: 999px;
  padding: 12px 22px; cursor: pointer;
}
.go:hover, .go:focus-visible { background: #c95f12; outline: 3px solid rgba(226, 112, 26, 0.35); outline-offset: 2px; }
.go.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.go.quiet:hover, .go.quiet:focus-visible { background: rgba(34, 46, 74, 0.08); }

.resume { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.resume { font: 700 1rem/1 "Main", sans-serif; padding: 14px 24px; border-radius: 999px; border: 0; background: var(--board); color: var(--ink); cursor: pointer; }
.pause {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(22, 26, 36, 0.6); opacity: 0; transition: opacity 0.2s;
}
.stage:hover .pause, .pause:focus-visible, .pause.paused { opacity: 1; }
.pause span { display: block; margin: auto; width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.pause.paused span { width: 0; height: 0; border: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 15px; }

.card {
  width: min(100%, 760px); background: var(--board); border-radius: 14px; padding: 24px 24px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.verdict { margin: 0; font: 400 clamp(2.4rem, 8vw, 3.6rem)/1 "Hand", cursive; }
.verdict.hire { color: var(--green); }
.verdict.close_call { color: var(--orange); }
.verdict.not_yet { color: var(--blue); }
.tally { margin: 6px 0 18px; color: var(--muted); }
.calls { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.calls li { border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.calls .ask { margin: 0 0 6px; font: 400 1.25rem/1.15 "Hand", cursive; }
.calls .ask b { color: var(--orange); font-weight: 400; margin-right: 6px; }
.calls p { margin: 4px 0 0; line-height: 1.4; }
.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font: 700 0.72rem/1.4 "Main", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 1px; }
.tag.strong { background: rgba(24, 140, 98, 0.14); color: var(--green); }
.tag.weak { background: rgba(34, 104, 200, 0.12); color: var(--blue); }
.calls .why { color: var(--muted); font-size: 0.92rem; }
.process { margin-top: 18px; border-top: 2px solid var(--line); padding-top: 12px; }
.process summary { cursor: pointer; font: 400 1.25rem/1.2 "Hand", cursive; }
.process ol { margin: 8px 0 0; padding-left: 1.4em; line-height: 1.5; color: var(--muted); }
.actions { margin-top: 18px; display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 640px) {
  .panel { position: static; transform: none; width: 100%; margin-top: 10px; padding: 12px 14px; }
  .frame.asking video.on { filter: none; }
  .options, .options[data-count="3"] { gap: 8px; grid-template-columns: 1fr; }
  .option { min-height: 44px; padding: 6px 10px; gap: 8px; }
  .option .key { width: 22px; height: 22px; font-size: 0.7rem; }
  .choice h2 { margin-bottom: 8px; }
  .clock { margin-top: 8px; }
  .clock-text { display: none; }
}
