
@font-face { font-family: "Big Shoulders"; src: url("fonts/bigshoulders.woff2") format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courierprime-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courierprime-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --night: #070B1A;
  --ink: #0D1328;
  --paper: #F3EFE6;
  --muted: #98A0BE;
  --gold: #F0B90B;
  --gold-hi: #FFD54A;
  --glow: #5B8CFF;
  --redo: #FF8A65;
  --line: rgba(243, 239, 230, 0.13);
  --glass: rgba(9, 13, 30, 0.72);
  --display: "Big Shoulders", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", Impact, sans-serif;
  --body: "Figtree", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --mono: "Courier Prime", "PingFang SC", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--night); color: var(--paper); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- top bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 4;
  display: flex; align-items: center; gap: 18px;
  padding: 18px clamp(18px, 3.2vw, 44px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: 0.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.onshift {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px 7px 11px; border-radius: 999px;
  background: rgba(240, 185, 11, 0.12); border: 1px solid rgba(240, 185, 11, 0.35);
  font-size: 0.84rem; font-weight: 600; color: var(--gold-hi); white-space: nowrap;
}
.onshift i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: blink 1.6s steps(2, start) infinite; }
.onshift span { color: var(--paper); font-weight: 500; opacity: 0.8; }
@keyframes blink { to { visibility: hidden; } }
.xlink { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(243, 239, 230, 0.07); display: grid; place-items: center; flex: none; }
.xlink:hover { background: rgba(243, 239, 230, 0.16); }
.xlink svg { width: 17px; height: 17px; }
.lang {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(243, 239, 230, 0.07);
  cursor: pointer; font-weight: 700; font-size: 0.95rem;
}
.lang:hover { background: rgba(243, 239, 230, 0.16); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 66% 50%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--night) 0%, rgba(7, 11, 26, 0.94) 30%, rgba(7, 11, 26, 0.35) 52%, rgba(7, 11, 26, 0) 66%),
    linear-gradient(0deg, var(--night) 0%, rgba(7, 11, 26, 0) 22%);
}
.copy {
  position: relative; z-index: 2;
  width: min(600px, 46vw);
  padding: clamp(104px, 15vh, 150px) 0 150px clamp(18px, 5vw, 76px);
}
.badge { display: inline-block; font-size: 0.78rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; padding: 5px 9px; margin: 0 0 22px; }
h1 {
  margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3.4rem, 6.6vw, 6.4rem); line-height: 0.9; letter-spacing: 0.005em;
}
h1 .b { display: block; color: var(--gold); }
html[lang="zh-CN"] h1 { text-transform: none; line-height: 1.04; font-size: clamp(3rem, 5.6vw, 5.4rem); letter-spacing: 0.02em; }
.sub { margin: 22px 0 0; max-width: 46ch; font-size: clamp(1.02rem, 1.2vw, 1.14rem); line-height: 1.55; color: #CDD2E4; }
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 14px; font-size: 1.02rem; font-weight: 560; }
.steps b {
  flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--night); background: var(--gold);
}
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 16px 24px; border-radius: 14px; font-weight: 750; font-size: 1.06rem; border: 0; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn.main { background: var(--gold); color: var(--night); box-shadow: 0 10px 34px -8px rgba(240, 185, 11, 0.6); }
.btn.main:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn.ghost { background: rgba(243, 239, 230, 0.07); border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(243, 239, 230, 0.14); }
.btn svg { width: 18px; height: 18px; }

/* floating cards */
.card { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.clock { position: absolute; z-index: 2; top: 92px; right: clamp(18px, 3.2vw, 44px); padding: 14px 18px 14px; text-align: right; }
.clock small { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
html[lang="zh-CN"] .clock small { letter-spacing: 0; }
.clock .digits { font-family: var(--display); font-weight: 800; font-size: 2.9rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--gold-hi); margin: 4px 0 2px; }
.shift { position: absolute; z-index: 2; right: clamp(18px, 3.2vw, 44px); bottom: 104px; width: min(400px, 31vw); padding: 16px 18px 14px; }
.shift h2 { margin: 0; font-size: 0.78rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
html[lang="zh-CN"] .shift h2 { letter-spacing: 0; }
.prompt { margin: 6px 0 2px; font-family: var(--mono); font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.pmeta { font-size: 0.8rem; color: var(--muted); }
.pmeta b { color: var(--gold-hi); font-weight: 650; }
.log { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; font-family: var(--mono); font-size: 0.86rem; line-height: 1.35; }
.log li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; color: #C7CCE0; }
.log li time { color: var(--muted); }
.log li.win span { color: var(--gold-hi); }
.log li.redo span { color: var(--redo); }
.log li:first-child span::after { content: "▍"; color: var(--gold); margin-left: 3px; animation: blink 1s steps(2, start) infinite; }
.meter { margin-top: 12px; display: grid; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.meter .row { display: flex; justify-content: space-between; }
.meter .row b { color: var(--paper); font-variant-numeric: tabular-nums; font-weight: 650; }
.meter .track { height: 6px; border-radius: 6px; background: rgba(243, 239, 230, 0.1); overflow: hidden; }
.meter .fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); border-radius: 6px; }

.proof {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center;
  padding: 22px clamp(18px, 5vw, 76px) 28px;
  font-size: 0.9rem; color: #C3C8DA;
}
.proof span { display: inline-flex; align-items: center; gap: 9px; }
.proof svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* ---------- below the fold ---------- */
.last { padding: 40px clamp(18px, 5vw, 76px) 80px; }
.last h2 { font-family: var(--display); font-weight: 800; font-size: 1.9rem; text-transform: uppercase; margin: 0 0 16px; }
.reel { display: flex; gap: 18px; align-items: center; padding: 14px; max-width: 640px; }
.thumb { width: 200px; aspect-ratio: 16 / 9; border-radius: 12px; background: url("img/hero-m.jpg") 60% 40% / cover; position: relative; flex: none; }
.thumb::after { content: ""; position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(240, 185, 11, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23070B1A'/%3E%3C/svg%3E") center / 22px no-repeat; }
.reel strong { display: block; font-size: 1.1rem; }
.reel small { color: var(--muted); font-size: 0.86rem; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .hero { min-height: 0; }
  .hero picture { position: relative; display: block; height: 36svh; min-height: 250px; }
  .hero picture img { object-position: 57% 42%; }
  .hero::before { background: linear-gradient(0deg, var(--night) 0%, rgba(7, 11, 26, 0) 40%), linear-gradient(180deg, rgba(7, 11, 26, 0.8) 0%, rgba(7, 11, 26, 0) 30%); height: max(36svh, 250px); }
  .bar { padding: 12px 16px; gap: 10px; }
  .brand { font-size: 1.45rem; }
  .brand svg { width: 28px; height: 28px; }
  .onshift { font-size: 0.76rem; padding: 6px 10px 6px 9px; }
  .clock { right: 16px; top: calc(max(36svh, 250px) - 64px); padding: 7px 12px; text-align: center; }
  .clock small { font-size: 0.66rem; }
  .clock .digits { font-size: 1.6rem; margin: 1px 0 0; }
  .clock .at { display: none; }
  .copy { width: auto; padding: 0 18px; margin-top: -8px; }
  .badge { font-size: 0.7rem; padding: 3px 7px; margin-bottom: 10px; max-width: calc(100% - 128px); }
  h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  html[lang="zh-CN"] h1 { font-size: clamp(2.4rem, 10.6vw, 3.6rem); }
  .sub { margin-top: 12px; font-size: 0.95rem; line-height: 1.48; }
  .steps { margin-top: 14px; gap: 7px; }
  .steps li { font-size: 0.95rem; gap: 12px; }
  .steps b { width: 28px; height: 28px; font-size: 1.05rem; border-radius: 8px; }
  .ctas { margin-top: 16px; gap: 10px; }
  .ctas .btn { flex: 1 1 100%; justify-content: center; padding: 15px 20px; }
  .shift { position: relative; right: auto; bottom: auto; width: auto; margin: 24px 18px 0; }
  .proof { position: relative; padding: 20px 18px 8px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .reel { flex-direction: column; align-items: stretch; }
  .thumb { width: 100%; }
}
@media (max-width: 380px) {
  .onshift span { display: none; }
}
@media (max-width: 360px) {
  h1 { font-size: 2.6rem; }
  .sub { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- sections below the hero ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
section h2.big, .board h2, .last h2, .library h2 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4vw, 2.8rem); text-transform: uppercase; margin: 0 0 8px; letter-spacing: 0.01em; }
html[lang="zh-CN"] .board h2, html[lang="zh-CN"] .last h2, html[lang="zh-CN"] .library h2 { text-transform: none; letter-spacing: 0.04em; }
.board { padding: 70px 0 30px; }
.lead { color: #C3C8DA; margin: 0 0 20px; max-width: 60ch; line-height: 1.5; }
.pitch { padding: 14px; display: grid; gap: 10px; }
.pitch textarea, .pitch input { width: 100%; background: rgba(243,239,230,0.06); border: 1px solid var(--line); border-radius: 12px; color: var(--paper); font: inherit; font-size: 1.02rem; padding: 12px 14px; resize: vertical; }
.pitch textarea:focus, .pitch input:focus { outline: none; border-color: var(--gold); }
.pitch .row { display: flex; gap: 10px; }
.pitch .row input { flex: 1; min-width: 0; }
.pitch .msg { margin: 0; min-height: 1.2em; font-size: 0.9rem; color: var(--muted); }
.pitch .msg.ok { color: var(--gold-hi); }
.pitch .msg.bad { color: var(--redo); }
.prompts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.prompts li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(243,239,230,0.04); border: 1px solid var(--line); }
.prompts li.top { border-color: rgba(240,185,11,0.5); background: rgba(240,185,11,0.07); }
.prompts .rank { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--muted); text-align: center; }
.prompts li.top .rank { color: var(--gold); }
.prompts .t { font-weight: 600; line-height: 1.35; }
.prompts .who { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
.vote { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: rgba(243,239,230,0.06); cursor: pointer; font-weight: 700; white-space: nowrap; }
.vote:hover { background: rgba(243,239,230,0.14); }
.vote.on { background: var(--gold); color: var(--night); border-color: var(--gold); cursor: default; }
.vote b { font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 10px 2px; }
.last { padding: 50px 0 20px; }
.player { display: grid; grid-template-columns: 1.6fr 1fr; overflow: hidden; }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.pinfo { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.pinfo h3 { margin: 0; font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1; }
.pinfo .pprompt { margin: 0; font-family: var(--mono); font-size: 0.92rem; color: #C3C8DA; }
.pinfo .pnote { margin: 0; color: var(--paper); line-height: 1.5; font-style: italic; }
.pinfo .pmeta2 { margin: 0; color: var(--muted); font-size: 0.86rem; }
.pinfo .btn { align-self: flex-start; margin-top: auto; padding: 11px 16px; font-size: 0.95rem; }
.library { padding: 50px 0 70px; }
.films { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.films a { display: block; text-decoration: none; border-radius: 16px; overflow: hidden; background: rgba(243,239,230,0.04); border: 1px solid var(--line); transition: transform 0.15s ease, border-color 0.15s ease; }
.films a:hover { transform: translateY(-2px); border-color: rgba(240,185,11,0.5); }
.films img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.films .fi { padding: 12px 14px 14px; }
.films strong { display: block; font-size: 1.08rem; }
.films small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
.foot { display: flex; gap: 16px; justify-content: center; padding: 30px 18px 40px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }
.foot a { color: var(--paper); }
@media (max-width: 820px) {
  .player { grid-template-columns: 1fr; }
  .pitch .row { flex-direction: column; }
  .board { padding-top: 40px; }
}
.onshift.off { background: rgba(243,239,230,0.07); border-color: var(--line); color: var(--paper); }
.onshift.off i { background: var(--muted); animation: none; }
.log li.idle { display: block; color: var(--muted); }
.log li.idle::after, .log li.idle span::after { content: none; }

/* ---------- Slopo's desk ---------- */
.desk { padding: 64px 0 10px; }
.desk.replay { padding: 40px 0 0; }
.desk h2 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4vw, 2.8rem); text-transform: uppercase; margin: 0 0 8px; }
html[lang="zh-CN"] .desk h2 { text-transform: none; letter-spacing: 0.04em; }
.desk-grid { display: grid; grid-template-columns: minmax(260px, 0.9fr) 1.6fr; gap: 16px; }
.desk h3 { margin: 0 0 12px; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; display: flex; align-items: center; gap: 8px; }
html[lang="zh-CN"] .desk h3 { letter-spacing: 0; }
.pipe, .mind { padding: 18px 18px 16px; }
.steps-list { list-style: none; margin: 0; padding: 0; position: relative; }
.steps-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 6px 0; position: relative; }
.steps-list li:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 32px; bottom: -6px; width: 2px; background: var(--line); }
.steps-list li.done:not(:last-child)::before { background: rgba(240,185,11,0.55); }
.steps-list .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; border: 2px solid var(--line); color: var(--muted); background: var(--night); position: relative; z-index: 1; }
.steps-list li.done .dot { background: var(--gold); border-color: var(--gold); color: var(--night); }
.steps-list li.active .dot { border-color: var(--gold); color: var(--gold-hi); box-shadow: 0 0 0 0 rgba(240,185,11,0.55); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(240,185,11,0); } 100% { box-shadow: 0 0 0 0 rgba(240,185,11,0); } }
.steps-list b { display: block; font-size: 0.95rem; font-weight: 650; line-height: 1.25; }
.steps-list li.todo b { color: var(--muted); font-weight: 500; }
.steps-list small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.steps-list li.active small { color: var(--gold-hi); }
.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.desk.is-live .livedot { background: #ff4d4d; animation: blink 1.2s steps(2, start) infinite; }
.thoughts { list-style: none; margin: 0; padding: 0 4px 0 0; display: grid; gap: 10px; max-height: 360px; overflow: auto; }
.thoughts li { padding: 11px 14px; border-radius: 14px 14px 14px 4px; background: rgba(243,239,230,0.06); border: 1px solid var(--line); }
.thoughts li.fresh { border-color: rgba(240,185,11,0.55); background: rgba(240,185,11,0.08); animation: rise 0.5s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.thoughts li.none { color: var(--muted); border-style: dashed; }
.thoughts .th { display: flex; gap: 10px; font-size: 0.74rem; color: var(--muted); font-family: var(--mono); margin-bottom: 4px; }
.thoughts .th span { color: var(--gold); }
.thoughts p { margin: 0; line-height: 1.5; font-size: 0.97rem; }
.art-box { margin-top: 16px; }
.art { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.art li { flex: none; width: 168px; scroll-snap-align: start; }
.art a { display: block; text-decoration: none; position: relative; }
.art img { width: 168px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--line); }
.art li.video a::after { content: "▶"; position: absolute; top: 6px; right: 8px; font-size: 0.8rem; color: var(--night); background: var(--gold); border-radius: 6px; padding: 1px 6px; }
.art span { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 4px; font-family: var(--mono); }
@media (max-width: 820px) {
  .desk-grid { grid-template-columns: 1fr; }
  .thoughts { max-height: 300px; }
}
.prompts li.empty { display: block; }
.desk-grid > * { min-width: 0; }
.films .testtag { display: inline-block; font-style: normal; font-size: 0.7rem; font-family: var(--mono); color: var(--muted); border: 1px dashed var(--line); border-radius: 5px; padding: 1px 6px; margin-bottom: 6px; }
[hidden] { display: none !important; }
.peek { display: block; position: relative; margin: -16px -18px 14px; border-radius: 18px 18px 0 0; overflow: hidden; text-decoration: none; }
.peek video { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; background: #000; }
.peek span { position: absolute; left: 10px; bottom: 10px; right: 10px; font-size: 0.82rem; font-weight: 700; background: rgba(7,11,26,0.72); border-radius: 8px; padding: 5px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
