/* 株式会社HIT 企業説明会 — HTML deck */
:root {
  --ink: #0f172a;
  --sub: #475569;
  --mute: #94a3b8;
  --blue: #1f5bff;
  --deep: #0a2a8a;
  --sky: #4fc3ff;
  --pale: #c7d5f5;
  --tint: #f0f5ff;
  --hair: #e5e7eb;
  --grad: linear-gradient(120deg, #0a2fb8 0%, #1f5bff 48%, #4fc3ff 100%);
  --grad-text: linear-gradient(100deg, #0a36c8 0%, #1f5bff 45%, #39b6ff 100%);
  --jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --en: "Montserrat", "Noto Sans JP", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: #070b1a; overflow: hidden; }
body { font-family: var(--jp); color: var(--ink); -webkit-font-smoothing: antialiased; font-feature-settings: "palt"; }
img { display: block; }

/* ---------- stage ---------- */
#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform-origin: center center;
}
.ready #stage { transition: left .45s var(--ease), transform .45s var(--ease); }
.static #stage { transition: none; }
.slide {
  position: absolute; inset: 0; overflow: hidden;
  background: #fff;
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.slide.active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; z-index: 2; }

/* ---------- reveal animation ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms + 150ms); }
.rv.l { transform: translateX(-36px); }
.rv.r { transform: translateX(36px); }
.rv.z { transform: scale(.96); }
.slide.active .rv { opacity: 1; transform: none; }
.grow { transform: scaleX(0); transform-origin: left center; transition: transform 1.4s var(--ease); transition-delay: calc(var(--d, 0) * 90ms + 250ms); }
.slide.active .grow { transform: scaleX(1); }
.kb { transform: scale(1.08); transition: transform 9s ease-out; }
.slide.active .kb { transform: scale(1); }

/* static mode (for screenshots / print) */
.static .slide { transition: none !important; }
.static .rv, .static .grow, .static .kb { transition: none !important; opacity: 1 !important; transform: none !important; }
.static .grad-bg::before, .static .grad-bg::after, .static .ribbon path { animation: none !important; }

/* ---------- light content slide ---------- */
.light .kicker {
  position: absolute; left: 112px; top: 84px;
  font: 700 20px/1 var(--en); letter-spacing: .32em; color: var(--blue);
}
.light h2 {
  position: absolute; left: 112px; top: 128px; right: 112px;
  font-weight: 800; font-size: 54px; line-height: 1.3; letter-spacing: .01em; color: var(--ink);
}
.foot {
  position: absolute; left: 112px; right: 112px; bottom: 44px;
  display: flex; justify-content: space-between;
  font-size: 15px; color: var(--mute); letter-spacing: .04em;
}
.foot .no { font-family: var(--en); font-weight: 600; }
.grad .foot, .dark .foot { color: rgba(255,255,255,.65); }

.hair { height: 1px; background: var(--hair); }
.gtext { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.en { font-family: var(--en); }
.label { font: 700 18px/1 var(--en); letter-spacing: .24em; color: var(--blue); }
.photo { position: absolute; overflow: hidden; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(15,23,42,.35); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- gradient slides ---------- */
.grad { color: #fff; background: #0a2fb8; }
.grad-bg { position: absolute; inset: 0; background: var(--grad); }
.grad-bg::before, .grad-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px);
}
.grad-bg::before { width: 900px; height: 900px; right: -200px; top: -300px; background: rgba(120, 220, 255, .55); animation: float1 16s ease-in-out infinite alternate; }
.grad-bg::after  { width: 800px; height: 800px; left: -260px; bottom: -380px; background: rgba(10, 30, 160, .6); animation: float2 18s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate(-220px, 160px) scale(1.15); } }
@keyframes float2 { to { transform: translate(240px, -120px) scale(1.1); } }
.ribbon { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ribbon path { fill: none; stroke: rgba(255,255,255,.16); stroke-linecap: round; stroke-dasharray: 3400; stroke-dashoffset: 3400; }
.slide.active .ribbon path { animation: draw 3.2s var(--ease) forwards .2s; }
.static .ribbon path { stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dot { position: absolute; border-radius: 50%; background: #fff; }


/* divider */
.divider .num { position: absolute; right: 112px; top: 30px; font: 800 340px/1 var(--en); color: rgba(255,255,255,.18); letter-spacing: -.02em; }
.divider .big { position: absolute; left: 104px; bottom: 210px; font: 800 200px/1 var(--en); letter-spacing: -.02em; }
.divider .ja { position: absolute; left: 120px; bottom: 140px; font-size: 40px; font-weight: 700; letter-spacing: .08em; }
.divider .items { position: absolute; left: 120px; bottom: 96px; font-size: 22px; opacity: .8; letter-spacing: .06em; }

/* agenda */
.agenda .rows { position: absolute; left: 112px; right: 112px; top: 300px; border-top: 1px solid var(--hair); }
.agenda .row { display: grid; grid-template-columns: 180px 520px 1fr 60px; align-items: center; height: 150px; border-bottom: 1px solid var(--hair); cursor: pointer; transition: background .3s; }
.agenda .row:hover { background: var(--tint); }
.agenda .row .n { font: 800 80px/1 var(--en); }
.agenda .row .t { font-size: 44px; font-weight: 800; }
.agenda .row .t small { display: block; margin-top: 10px; font: 700 18px/1 var(--en); letter-spacing: .22em; color: var(--mute); }
.agenda .row .i { font-size: 24px; color: var(--sub); letter-spacing: .02em; }
.agenda .row .go { font: 700 34px/1 var(--en); color: var(--blue); transition: transform .3s; }
.agenda .row:hover .go { transform: translateX(8px); }

/* company */
.stats { position: absolute; left: 112px; top: 300px; width: 1080px; display: grid; grid-template-columns: 1.35fr 1.1fr .85fr .85fr; }
.stat .v { white-space: nowrap; font: 800 96px/1 var(--en); letter-spacing: -.02em; }
.stat .v small { font: 700 30px/1 var(--jp); margin-left: 6px; letter-spacing: 0; }
.stat .k { margin-top: 14px; font-size: 22px; color: var(--sub); }
.table { position: absolute; left: 112px; width: 1060px; border-top: 1px solid var(--hair); }
.table .tr { display: grid; grid-template-columns: 220px 1fr; padding: 22px 0; border-bottom: 1px solid var(--hair); font-size: 23px; line-height: 1.6; }
.table .th { font-weight: 700; }
.table .td { color: var(--sub); }
.table .td b { color: var(--ink); font-size: 26px; }
.table .td .note { display: block; font-size: 18px; color: var(--sub); line-height: 1.6; }

/* ceo */
.ceo .left { position: absolute; left: 0; top: 0; bottom: 0; width: 820px; overflow: hidden; }
.ceo .left img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.ceo .left::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,47,184,0) 60%, rgba(10,47,184,.25)); }
.ceo .body { position: absolute; left: 940px; right: 112px; top: 100px; }
.ceo h2 { font-size: 56px; font-weight: 800; line-height: 1.35; margin-top: 26px; }
.ceo .name { margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--hair); }
.ceo .role { font-size: 22px; font-weight: 700; color: var(--sub); }
.ceo .nm { margin-top: 10px; font-size: 64px; font-weight: 800; letter-spacing: .06em; }
.ceo .nm span { margin-left: 22px; font: 500 22px/1 var(--en); color: var(--mute); letter-spacing: .1em; }
.ceo p { margin-top: 36px; font-size: 25px; line-height: 1.9; color: var(--sub); }
.ceo .quote { position: relative; margin-top: 36px; padding-left: 0; font-size: 30px; line-height: 1.7; font-weight: 700; }

/* mvv */
.mvv .rows { position: absolute; left: 112px; top: 296px; width: 1100px; border-top: 1px solid var(--hair); }
.mvv .row { display: grid; grid-template-columns: 300px 1fr; align-items: center; height: 210px; border-bottom: 1px solid var(--hair); }
.mvv .row .lb { font: 800 34px/1 var(--en); letter-spacing: .08em; }
.mvv .row .lb small { display: block; margin-top: 14px; font: 500 20px/1 var(--jp); color: var(--mute); letter-spacing: .04em; }
.mvv .row .tx { font-size: 40px; font-weight: 800; line-height: 1.4; }
.chips { display: flex; gap: 18px; }
.chip { padding: 18px 30px; border-radius: 999px; background: var(--tint); color: var(--deep); font-size: 30px; font-weight: 800; }

/* education */
.edu { position: absolute; left: 112px; right: 112px; top: 300px; height: 640px; display: grid; grid-template-columns: repeat(4, 1fr); }
.edu .col { position: relative; padding: 48px 44px; border-left: 1px solid var(--hair); }
.edu .col:first-child { border-left: none; padding-left: 0; }
.edu .col .n { font: 700 20px/1 var(--en); color: var(--mute); letter-spacing: .1em; }
.edu .col .k { margin-top: 26px; font-size: 128px; font-weight: 900; line-height: 1; letter-spacing: .02em; }
.edu .col .ld { margin-top: 44px; font-size: 26px; font-weight: 700; line-height: 1.6; }
.edu .col .bd { margin-top: 22px; font-size: 21px; color: var(--sub); line-height: 1.85; }
.edu .col.hl { background: var(--grad); color: #fff; border-radius: 28px; border-left: none; box-shadow: 0 30px 60px -30px rgba(10,47,184,.6); }
.edu .col.hl .n, .edu .col.hl .bd { color: rgba(255,255,255,.85); }

/* web business diagram */
.cycle { position: absolute; left: 112px; top: 280px; width: 1696px; height: 470px; }
.cycle svg { position: absolute; inset: 0; overflow: visible; }
.node { position: absolute; width: 300px; height: 300px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 32px; font-weight: 800; line-height: 1.35; background: #fff; border: 3px solid var(--blue); }
.node small { display: block; margin-top: 8px; font: 700 15px/1 var(--en); letter-spacing: .2em; color: var(--blue); }
.node.hit { background: var(--grad); color: #fff; border: none; box-shadow: 0 30px 60px -24px rgba(31,91,255,.6); }
.node.hit small { color: rgba(255,255,255,.85); }
.flow-label { position: absolute; font-size: 24px; font-weight: 800; color: var(--blue); text-align: center; }
.flow-label.back { color: var(--sub); }
.arrow-line { stroke: var(--blue); stroke-width: 3; fill: none; stroke-dasharray: 10 10; animation: dash 1.2s linear infinite; }
.arrow-line.back { stroke: var(--pale); }
@keyframes dash { to { stroke-dashoffset: -20; } }
.static .arrow-line { animation: none; }
.two { position: absolute; left: 112px; right: 112px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.two h3 { font-size: 30px; font-weight: 800; color: var(--blue); }
.two p { margin-top: 14px; font-size: 23px; line-height: 1.8; color: var(--sub); }

/* timeline (generic) */
.tl { position: absolute; left: 112px; right: 112px; }
.tl .bar { position: absolute; left: 0; right: 0; height: 10px; border-radius: 99px; background: var(--grad); }
.tl .cols { position: absolute; left: 0; right: 0; display: grid; }
.tl .c { position: relative; padding-right: 36px; }
.tl .pt { position: absolute; left: 0; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 5px solid var(--blue); }
.tl .c.goal .pt { width: 46px; height: 46px; background: var(--blue); box-shadow: 0 0 0 10px rgba(31,91,255,.18); }
.tl .num { font: 800 60px/1 var(--en); color: var(--pale); }
.tl .c.goal .num { color: var(--blue); }
.tl .step { font: 700 18px/1 var(--en); letter-spacing: .2em; color: var(--mute); }
.tl .c.goal .step { color: var(--blue); }
.tl .ttl { font-size: 34px; font-weight: 800; line-height: 1.35; }
.tl .c.goal .ttl { color: var(--blue); }
.tl .sub2 { font-size: 22px; font-weight: 700; }
.tl .desc { font-size: 21px; line-height: 1.75; color: var(--sub); }
.tl .cnt { font-size: 24px; font-weight: 800; color: var(--blue); }
.tl .list { font-size: 20px; line-height: 1.8; color: var(--sub); }
.tl .tag { font-size: 18px; color: var(--mute); }
.tl .c.goal .tag { color: var(--blue); font-family: var(--en); font-weight: 700; letter-spacing: .2em; }

/* works */
.works { position: absolute; left: 112px; right: 112px; top: 292px; display: grid; grid-template-columns: 900px 330px 1fr; gap: 40px; }
.works .w .im { overflow: hidden; border-radius: 20px; background: #f1f5f9; box-shadow: 0 24px 50px -28px rgba(15,23,42,.45); }
.works .w .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.works .w .im:hover img { transform: scale(1.05); }
.works .w h4 { margin-top: 26px; font-size: 25px; font-weight: 800; }
.works .w p { margin-top: 10px; font-size: 19px; line-height: 1.75; color: var(--sub); }
.works .sites { display: grid; grid-template-rows: auto auto; gap: 20px; }
.works .sites .im { border: 1px solid var(--hair); }

/* first job */
.lines { border-top: 1px solid var(--hair); }
.lines .ln { display: grid; grid-template-columns: 110px 1fr; align-items: center; height: 130px; border-bottom: 1px solid var(--hair); }
.lines .ln .n { font: 800 44px/1 var(--en); }
.lines .ln .t { font-size: 28px; font-weight: 500; }

/* curriculum overview cards */
.courses { position: absolute; left: 112px; right: 112px; top: 290px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.course { position: relative; height: 430px; padding: 42px 38px; border-radius: 28px; background: var(--tint); cursor: pointer; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.course::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .4s var(--ease); }
.course > * { position: relative; }
.course:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -30px rgba(31,91,255,.6); }
.course:hover::before { opacity: 1; }
.course:hover, .course:hover .en1, .course:hover .tg, .course:hover .go { color: #fff; }
.course:hover .cno { background: none; -webkit-background-clip: initial; color: rgba(255,255,255,.9); }
.course .cno { font: 800 96px/1 var(--en); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.course .en1 { margin-top: 34px; font: 700 17px/1 var(--en); letter-spacing: .2em; color: var(--blue); }
.course .ja1 { margin-top: 14px; font-size: 40px; font-weight: 800; }
.course .tg { margin-top: 18px; font-size: 21px; line-height: 1.6; color: var(--sub); }
.course .go { position: absolute; right: 38px; bottom: 34px; font: 700 18px/1 var(--en); letter-spacing: .14em; color: var(--blue); }

/* course detail header */
.lead { position: absolute; left: 112px; font-size: 30px; line-height: 1.7; color: var(--sub); }
.bigstat { position: absolute; right: 112px; text-align: right; }
.bigstat .v { font: 800 220px/.9 var(--en); letter-spacing: -.04em; }
.bigstat .v small { font: 800 60px/1 var(--jp); letter-spacing: 0; margin-left: 4px; }
.bigstat .k { margin-top: 14px; font-size: 26px; font-weight: 700; color: var(--sub); }
.bigstat .k2 { margin-top: 8px; font-size: 21px; color: var(--sub); }
.icons { display: flex; gap: 10px; margin-bottom: 18px; height: 56px; }
.icons img { width: 56px; height: 56px; border-radius: 12px; }
.icon-circ { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.icon-circ svg { width: 30px; height: 30px; fill: var(--blue); }
.foot-notes { position: absolute; left: 112px; right: 112px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; border-top: 1px solid var(--hair); padding-top: 28px; }
.foot-notes .k { font-size: 20px; font-weight: 800; color: var(--blue); }
.foot-notes .v { margin-top: 8px; font-size: 25px; font-weight: 700; line-height: 1.6; }

/* game planner gantt */
.gantt { position: absolute; left: 112px; right: 112px; }
.gantt .track { position: relative; display: flex; height: 64px; gap: 4px; }
.gantt .seg { position: relative; height: 100%; border-radius: 10px; display: flex; align-items: center; justify-content: center; font: 800 22px/1 var(--en); color: #fff; overflow: hidden; }
.gantt .seg.a { background: linear-gradient(120deg, #0a36c8, #1f5bff); }
.gantt .seg.b { background: linear-gradient(120deg, #1f6bff, #4fc3ff); }
.gantt .marks { position: relative; height: 40px; margin-top: 12px; font-size: 20px; font-weight: 800; }
.gantt .marks span { position: absolute; top: 0; }
.phase-cols { position: absolute; left: 112px; right: 112px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.phase-cols h4 { font: 700 17px/1 var(--en); letter-spacing: .2em; color: var(--blue); }
.phase-cols h3 { margin-top: 12px; font-size: 29px; font-weight: 800; }
.plist { margin-top: 18px; border-top: 1px solid var(--hair); }
.plist .p { display: grid; grid-template-columns: 54px 1fr 70px; align-items: center; height: 40px; border-bottom: 1px solid var(--hair); font-size: 20px; }
.plist .p .n { font: 800 18px/1 var(--en); color: var(--blue); }
.plist .p .w { text-align: right; font-weight: 800; color: var(--sub); }
.goalline { margin-top: 18px; font-size: 22px; font-weight: 800; color: var(--blue); }
.note-s { font-size: 17px; color: var(--mute); }

/* conditions */
.cond .table { top: 286px; width: 1200px; }

/* flow */
.next { position: absolute; left: 112px; right: 112px; bottom: 120px; height: 120px; border-radius: 24px; background: var(--tint); display: flex; align-items: center; padding: 0 48px; font-size: 28px; font-weight: 800; }
.next .en { margin-right: 28px; color: var(--blue); letter-spacing: .2em; font-weight: 800; }
.next .arr { margin-left: auto; font: 800 36px/1 var(--en); color: var(--blue); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(10px); } }

/* message */
.msg .left { position: absolute; left: 0; top: 0; bottom: 0; width: 820px; overflow: hidden; }
.msg .left img { width: 100%; height: 100%; object-fit: cover; object-position: 18% center; }
.msg .body { position: absolute; left: 940px; right: 120px; top: 130px; }
.msg h2 { margin-top: 26px; font-size: 64px; font-weight: 900; line-height: 1.35; }
.msg p { margin-top: 40px; font-size: 25px; line-height: 1.95; opacity: .92; }
.msg .q { margin-top: 40px; font-size: 34px; font-weight: 800; line-height: 1.6; }
.msg .last { margin-top: 30px; font-size: 25px; line-height: 1.8; opacity: .9; }

/* survey */
.survey .qr { position: absolute; left: 200px; top: 230px; width: 600px; height: 600px; padding: 40px; background: #fff; border-radius: 36px; box-shadow: 0 50px 90px -40px rgba(10,30,120,.55); }
.survey .qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.survey .tx { position: absolute; left: 920px; right: 120px; top: 290px; }
.survey h2 { margin-top: 28px; font-size: 72px; font-weight: 900; line-height: 1.3; }
.survey p { margin-top: 36px; font-size: 27px; line-height: 1.8; opacity: .92; }
.survey .thanks { margin-top: 44px; font-size: 30px; font-weight: 800; }

/* ---------- chrome (UI) ---------- */
#progress { position: fixed; left: 0; bottom: 0; height: 4px; background: var(--grad); transition: width .5s var(--ease); z-index: 10; }
#hint { position: fixed; right: 18px; bottom: 14px; z-index: 10; font: 500 12px/1 var(--en); color: rgba(255,255,255,.45); letter-spacing: .06em; transition: opacity .6s; }
.static #progress, .static #hint { display: none; }

/* ---------- print (PDF) ---------- */
@page { size: 1920px 1080px; margin: 0; }
@media print {
  html, body { overflow: visible !important; height: auto !important; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #stage { position: static !important; transform: none !important; width: auto !important; height: auto !important; }
  .slide { position: relative !important; inset: auto !important; width: 1920px; height: 1080px; opacity: 1 !important; visibility: visible !important; page-break-after: always; break-after: page; }
  .rv, .grow, .kb { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ribbon path { stroke-dashoffset: 0 !important; animation: none !important; }
  #progress, #hint { display: none; }
  .gtext, .course .cno { background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; color: var(--blue) !important; }
}

/* ---------- sidebar (slide list) ---------- */
:root { --sbw: 300px; }
#sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sbw); z-index: 20;
  background: #0d1326; border-right: 1px solid rgba(255,255,255,.08);
  overflow-y: auto; padding: 0 18px 40px; color: #fff;
  transform: translateX(-100%); transition: transform .45s var(--ease);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent;
}
.sb-open #sidebar { transform: none; }
#sidebar .ch { margin: 22px 4px 10px; font: 700 11px/1.3 var(--en); letter-spacing: .18em; color: rgba(255,255,255,.5); }
#sidebar .ch:first-child { margin-top: 0; }
#sidebar .it { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; margin-bottom: 12px; cursor: pointer; }
#sidebar .it .n { padding-top: 4px; font: 600 11px/1 var(--en); color: rgba(255,255,255,.45); text-align: right; }
#sidebar .thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #fff; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s, transform .2s; }
#sidebar .thumb .inner { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; pointer-events: none; }
#sidebar .thumb .slide { opacity: 1; visibility: visible; transition: none; }
#sidebar .thumb .rv, #sidebar .thumb .grow, #sidebar .thumb .kb { opacity: 1 !important; transform: none !important; transition: none !important; }
#sidebar .thumb .grad-bg::before, #sidebar .thumb .grad-bg::after, #sidebar .thumb .arrow-line, #sidebar .thumb .next .arr { animation: none !important; }
#sidebar .thumb .ribbon path { stroke-dashoffset: 0 !important; animation: none !important; }
#sidebar .it .tt { margin-top: 6px; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.75); }
#sidebar .it:hover .thumb { transform: translateY(-2px); }
#sidebar .it.on .thumb { outline-color: var(--sky); }
#sidebar .it.on .n, #sidebar .it.on .tt { color: #fff; font-weight: 700; }
#sbtoggle {
  position: fixed; left: 14px; top: 14px; z-index: 30;
  width: 36px; height: 36px; border-radius: 10px; border: none; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font: 600 18px/36px var(--en);
  backdrop-filter: blur(6px); transition: background .2s, opacity .4s;
}
#sbtoggle:hover { background: rgba(255,255,255,.25); }
.static #sidebar, .static #sbtoggle { display: none; }
@media print { #sidebar, #sbtoggle { display: none !important; } }
#sidebar .hd { position: sticky; top: 0; z-index: 2; height: 64px; margin: 0 -18px 8px; padding: 0 18px 0 62px; display: flex; align-items: center; background: #0d1326; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.8); }
#sidebar .hd + .ch { margin-top: 14px; }

/* ---------- lobby (page 1): cyberpunk rooftop — three.js scene under a tilted HUD ---------- */
.lobby { background: #03050f; color: #eafcff; --cy: #35f2ff; --mg: #ff2fd0; --yl: #f6ee32; --fe: "Chakra Petch", "Montserrat", sans-serif; --fm: "Share Tech Mono", ui-monospace, monospace; }
.lobby .lb-still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.lobby .lb-fx { position: absolute; inset: 0; pointer-events: none; background:
  repeating-linear-gradient(0deg, rgba(0, 0, 10, .07) 0 1px, transparent 1px 4px),
  linear-gradient(90deg, rgba(2, 4, 22, .74) 0%, rgba(2, 4, 22, .56) 22%, transparent 46%, transparent 78%, rgba(2, 4, 20, .34)),
  linear-gradient(0deg, rgba(2, 4, 22, .97) 0%, rgba(2, 4, 22, .9) 24%, rgba(3, 6, 30, .62) 36%, rgba(3, 6, 30, .14) 50%, transparent 58%, transparent 88%, rgba(2, 4, 20, .3)); }

/* the HUD lives in one perspective space; each group is tilted so the screen reads as curved glass */
.lobby .lb-ui { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 46%; --px: 0; --py: 0; }
.lobby .g { position: absolute; will-change: transform; }
.lobby .g-l, .lobby .g-r { filter: drop-shadow(0 0 12px rgba(53, 242, 255, .3)); }
.lobby .g-l { left: 40px; top: 34px; width: 486px; transform-origin: 0 50%; }
.lobby .g-r { right: 40px; top: 34px; width: 440px; transform-origin: 100% 50%; }
.lobby .g-t { left: 560px; right: 560px; top: 30px; text-align: center; transform-origin: 50% 0; }
.lobby .g-b { left: 40px; right: 40px; bottom: 26px; transform-origin: 50% 100%; }
.lobby.active .g-l { transform: rotateY(calc(23deg - var(--px) * 3deg)) rotateX(calc(var(--py) * -2deg)); }
.lobby.active .g-r { transform: rotateY(calc(-23deg - var(--px) * 3deg)) rotateX(calc(var(--py) * -2deg)); }
.lobby.active .g-t { transform: rotateX(calc(-16deg - var(--py) * 2deg)) rotateY(calc(var(--px) * -2deg)); }
.lobby.active .g-b { transform: rotateX(calc(17deg - var(--py) * 2deg)) rotateY(calc(var(--px) * -2deg)); }
.lobby .g.rv { transition: opacity .8s var(--ease) calc(var(--d, 0) * 90ms + 150ms); }
.lobby:not(.active) .g-l.rv { transform: rotateY(48deg) translateX(-60px); } .lobby:not(.active) .g-r.rv { transform: rotateY(-48deg) translateX(60px); }
.lobby:not(.active) .g-t.rv { transform: rotateX(-50deg); } .lobby:not(.active) .g-b.rv { transform: rotateX(50deg); }
.lobby.active .g.rv { transition: opacity .8s var(--ease) calc(var(--d, 0) * 90ms + 150ms), transform .9s var(--ease) calc(var(--d, 0) * 90ms + 150ms); }
.lobby.hud-live .g.rv { transition: none; }

/* cut-corner panel with a neon hairline */
.lobby .cyp { position: relative; isolation: isolate; --c: 20px; padding: 1.5px;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  background: linear-gradient(140deg, var(--cy) 0%, rgba(53, 242, 255, .22) 30%, rgba(255, 47, 208, .2) 70%, var(--mg) 100%); }
.lobby .cyp::before { content: ""; position: absolute; inset: 1.5px; z-index: -1; clip-path: inherit;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 4px), linear-gradient(160deg, rgba(8, 18, 58, .7), rgba(3, 6, 24, .62)); }
.lobby .tag { display: inline-block; padding: 4px 10px 3px; font: 700 14px/1 var(--fe); letter-spacing: .16em; color: #02030c; background: var(--cy); clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%); padding-right: 16px; }

/* top centre */
.lobby .lb-logo { width: 270px; height: 49.4px; filter: drop-shadow(0 0 12px rgba(53, 242, 255, .7)); }
.lobby .camhud { margin-top: 12px; display: flex; justify-content: center; gap: 22px; font: 400 17px/1 var(--fm); letter-spacing: .1em; color: rgba(210, 248, 255, .86); text-shadow: 0 0 8px rgba(53, 242, 255, .7); white-space: nowrap; }
.lobby .camhud .rec { color: #ff4466; text-shadow: 0 0 8px #ff2244; }
.lobby .camhud .rec::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 50%; background: #ff3355; animation: cyBlink 1.1s steps(2) infinite; }
.lobby .camhud .cam { color: var(--yl); text-shadow: 0 0 8px rgba(246, 238, 50, .7); }
.lobby[data-cut="a"] .camhud .cam { animation: cyGlA .45s steps(2); } .lobby[data-cut="b"] .camhud .cam { animation: cyGlB .45s steps(2); }
.lobby[data-cut="a"] .lb-talk .l1 { animation: cyGlA .45s steps(2); } .lobby[data-cut="b"] .lb-talk .l1 { animation: cyGlB .45s steps(2); }
/* camera presets: jump straight to an angle */
.lobby .cambar { margin-top: 12px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.lobby .cambar span { margin-right: 6px; font: 400 13px/1 var(--fm); letter-spacing: .16em; color: rgba(53, 242, 255, .7); }
.lobby .cb { padding: 6px 13px 5px; border: 0; cursor: pointer; font: 600 13px/1 var(--fe); letter-spacing: .12em; color: rgba(220, 250, 255, .82); background: rgba(8, 18, 58, .7); box-shadow: inset 0 0 0 1px rgba(53, 242, 255, .45); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); transition: background .2s, color .2s; }
.lobby .cb:hover { background: rgba(53, 242, 255, .3); color: #fff; }
.lobby .cb.on { background: var(--yl); color: #05060f; box-shadow: none; }

/* player */
.lobby .lb-player { display: flex; align-items: center; gap: 18px; padding: 14px 24px 14px 16px; }
.lobby .lb-player .av { flex: none; width: 86px; height: 86px; display: grid; place-items: center; background: linear-gradient(160deg, #1f5bff, #0a2fb8); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.lobby .lb-player .av svg { width: 54px; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .7)); }
.lobby .lb-player .pi { flex: 1; min-width: 0; }
.lobby .lb-player .id { font: 400 13px/1 var(--fm); letter-spacing: .14em; color: rgba(53, 242, 255, .8); }
.lobby .lb-player .pn { margin-top: 7px; display: flex; align-items: baseline; gap: 12px; font-size: 24px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.lobby .lb-player .lv { font: 700 17px/1 var(--fe); letter-spacing: .08em; color: var(--yl); text-shadow: 0 0 10px rgba(246, 238, 50, .6); }
.lobby .lb-player .lv b { font-size: 30px; margin-left: 2px; }
.lobby .exp, .lobby .ms .bar { height: 8px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 9px, transparent 9px 12px); }
.lobby .exp { margin-top: 9px; }
.lobby .exp i, .lobby .ms .bar i { display: block; height: 100%; width: 0; background: var(--cy); box-shadow: 0 0 10px var(--cy); -webkit-mask: repeating-linear-gradient(90deg, #000 0 9px, transparent 9px 12px); mask: repeating-linear-gradient(90deg, #000 0 9px, transparent 9px 12px); transition: width .8s var(--ease); }
.lobby .exp i { width: 4%; }
.lobby .lb-player .pt { margin-top: 7px; display: flex; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, .7); letter-spacing: .06em; }
.lobby .lb-player .pt em { font: 400 14px/1 var(--fm); font-style: normal; color: var(--cy); }
.lobby .lb-player .pt b { font-size: 18px; color: #fff; }

/* mission log */
.lobby .lb-mission { margin-top: 16px; padding-bottom: 12px; }
.lobby .lb-mission .hd { display: flex; align-items: center; gap: 12px; padding: 15px 20px 13px 18px; border-bottom: 1px solid rgba(53, 242, 255, .35); background: linear-gradient(90deg, rgba(53, 242, 255, .2), transparent 80%); }
.lobby .lb-mission .ht { font-size: 21px; font-weight: 800; letter-spacing: .05em; }
.lobby .lb-mission .hc { margin-left: auto; font: 600 18px/1 var(--fe); color: rgba(255, 255, 255, .7); }
.lobby .lb-mission .hc b { font-size: 30px; color: var(--yl); text-shadow: 0 0 10px rgba(246, 238, 50, .6); }
.lobby .ms { position: relative; display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; margin: 10px 12px 0; padding: 12px 16px 12px 12px; cursor: pointer; background: linear-gradient(90deg, rgba(53, 242, 255, .1), rgba(53, 242, 255, .02)); border-left: 3px solid var(--cy); transition: background .2s, transform .2s; }
.lobby .ms:hover { background: linear-gradient(90deg, rgba(53, 242, 255, .32), rgba(53, 242, 255, .06)); transform: translateX(6px); }
.lobby .ms .ix { font: 700 30px/1 var(--fe); color: transparent; -webkit-text-stroke: 1.2px var(--cy); text-align: center; }
.lobby .ms .t { font-size: 21px; font-weight: 800; letter-spacing: .03em; }
.lobby .ms .s { margin-top: 4px; font-size: 13.5px; color: rgba(255, 255, 255, .66); white-space: nowrap; }
.lobby .ms .bar { margin-top: 8px; height: 5px; }
.lobby .ms .mn { font: 600 16px/1 var(--fe); color: rgba(255, 255, 255, .6); }
.lobby .ms .mn b { font-size: 28px; color: #fff; }
.lobby .ms .stamp { display: none; position: absolute; right: 12px; top: 50%; margin-top: -15px; padding: 6px 12px 5px; font: 700 17px/1 var(--fe); letter-spacing: .16em; color: #02030c; background: var(--yl); transform: rotate(-5deg); box-shadow: 0 0 16px rgba(246, 238, 50, .7); }
.lobby .ms.clear { border-left-color: var(--yl); background: linear-gradient(90deg, rgba(246, 238, 50, .2), rgba(246, 238, 50, .03)); }
.lobby .ms.clear .ix { -webkit-text-stroke-color: var(--yl); }
.lobby .ms.clear .bar i { background: var(--yl); box-shadow: 0 0 10px var(--yl); }
.lobby .ms.clear .stamp { display: block; } .lobby .ms.clear .mn { visibility: hidden; }
.lobby .lb-mission .ft { margin: 12px 18px 0; font: 400 12px/1 var(--fm); letter-spacing: .14em; color: rgba(53, 242, 255, .55); }

/* resources + banners */
.lobby .lb-res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lobby .rs { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 10px; padding: 9px 14px 8px 16px; white-space: nowrap; background: linear-gradient(90deg, rgba(8, 18, 58, .86), rgba(3, 6, 24, .7)); border-top: 1.5px solid var(--cy); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.lobby .rs .en { grid-column: 1 / 3; font: 400 12px/1 var(--fm); letter-spacing: .16em; color: var(--cy); }
.lobby .rs .ja { font-size: 14px; color: rgba(255, 255, 255, .72); padding-bottom: 4px; }
.lobby .rs b { font: 700 32px/1 var(--fe); text-align: right; text-shadow: 0 0 12px rgba(53, 242, 255, .5); }
.lobby .rs b small { margin-left: 5px; font: 700 13px/1 var(--jp); }
.lobby .lb-banners { margin-top: 16px; display: grid; gap: 14px; }
.lobby .bn { height: 140px; cursor: pointer; transition: transform .2s; }
.lobby .bn::before { background: linear-gradient(100deg, rgba(4, 10, 44, .96) 0%, rgba(10, 40, 150, .78) 55%, rgba(31, 91, 255, .2) 100%), var(--im) center / cover; }
.lobby .bn::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); }
.lobby .bn > * { position: relative; z-index: 1; margin-left: 20px; }
.lobby .bn .tag { margin-top: 15px; }
.lobby .bn.pick { height: 172px; background: linear-gradient(140deg, var(--yl), rgba(246, 238, 50, .25) 35%, rgba(255, 47, 208, .3) 70%, var(--mg)); }
.lobby .bn.pick .tag { background: var(--yl); }
.lobby .bn:hover { transform: translateX(-8px); }
.lobby .bn .bt { margin-top: 10px; font-size: 30px; font-weight: 900; letter-spacing: .02em; text-shadow: 0 0 16px rgba(53, 242, 255, .55); }
.lobby .bn.pick .bt { font-size: 38px; }
.lobby .bn .bs { margin-top: 5px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.lobby .bn .ar { position: absolute; right: 18px; bottom: 12px; margin: 0; font: 700 22px/1 var(--fe); letter-spacing: -.1em; color: var(--yl); }

/* talk + console */
.lobby .lb-talk { width: 900px; margin: 0 auto 8px; padding: 26px 40px 22px; }
.lobby .lb-talk .who { position: absolute; left: 34px; top: 0; padding: 5px 18px 4px 12px; font: 700 14px/1 var(--fe); letter-spacing: .16em; color: #02030c; background: var(--mg); clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.lobby .lb-talk .l1 { margin-top: 10px; font-size: 21px; font-weight: 700; letter-spacing: .05em; color: rgba(255, 255, 255, .86); }
.lobby .lb-talk .l2 { position: relative; margin-top: 6px; font-size: 50px; font-weight: 900; line-height: 1.25; letter-spacing: .03em; white-space: nowrap; text-shadow: 0 0 22px rgba(53, 242, 255, .65); }
.lobby .lb-talk .l2::before, .lobby .lb-talk .l2::after { content: attr(data-text); position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.lobby.active .lb-talk .l2::before { color: var(--cy); animation: cySplitA 5.5s steps(1) infinite; }
.lobby.active .lb-talk .l2::after { color: var(--mg); animation: cySplitB 5.5s steps(1) infinite; }
.lobby .lb-nav { height: 112px; display: grid; grid-template-columns: repeat(5, 1fr) 1.85fr; gap: 10px; }
.lobby .nv { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-content: center; padding: 0 20px 0 34px; cursor: pointer; color: #eafcff; background: linear-gradient(180deg, rgba(20, 60, 190, .78), rgba(5, 14, 60, .86)); border-top: 2px solid var(--cy); clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%); transition: filter .2s, transform .2s; }
.lobby .nv:hover { filter: brightness(1.45); transform: translateY(-5px); }
.lobby .nv .k { position: absolute; right: 26px; top: 9px; font: 400 12px/1 var(--fm); letter-spacing: .1em; color: rgba(53, 242, 255, .7); }
.lobby .nv .ic { grid-row: 1 / 3; width: 42px; height: 42px; align-self: center; color: var(--cy); filter: drop-shadow(0 0 6px var(--cy)); }
.lobby .nv .j { font-size: 24px; font-weight: 900; letter-spacing: .04em; white-space: nowrap; }
.lobby .nv .e { margin-top: 3px; font-size: 13.5px; color: rgba(255, 255, 255, .72); white-space: nowrap; }
.lobby .nv.on { background: linear-gradient(180deg, rgba(53, 242, 255, .95), rgba(31, 140, 255, .9)); color: #02030c; border-top-color: #fff; cursor: default; }
.lobby .nv.on .ic { color: #02030c; filter: none; } .lobby .nv.on .e, .lobby .nv.on .k { color: rgba(2, 3, 12, .75); font-family: var(--fm); letter-spacing: .14em; }
.lobby .start { position: relative; display: grid; align-content: center; padding: 0 110px 0 52px; cursor: pointer; color: #05060f; background: var(--yl); clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%); overflow: hidden; }
.lobby .start::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-55deg, rgba(0, 0, 0, .09) 0 10px, transparent 10px 22px); }
.lobby .start::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; left: -150px; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .9), transparent); will-change: transform; animation: cyShine 3.2s ease-in-out infinite; }
.lobby .start .st { position: relative; font: 700 52px/1 var(--fe); letter-spacing: .1em; }
.lobby .start .ss { position: relative; margin-top: 4px; font-size: 18px; font-weight: 900; letter-spacing: .1em; }
.lobby .start .tri { position: absolute; right: 44px; top: 50%; margin-top: -24px; font-size: 42px; line-height: 48px; animation: cyNudge 1.4s ease-in-out infinite; }

/* brackets that track each character's face (positioned + sized by lobby3d.js) */
.lobby .lb-tag { --s: 200px; will-change: transform, opacity; position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); color: var(--cy); opacity: 0; transition: opacity .18s; pointer-events: none; }
.lobby .lb-tag i { position: absolute; width: 16%; height: 16%; border: 0 solid currentColor; }
.lobby .lb-tag i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; } .lobby .lb-tag i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.lobby .lb-tag i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; } .lobby .lb-tag i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.lobby .lb-tag span { position: absolute; left: -4px; top: 100%; margin-top: 12px; display: flex; align-items: baseline; gap: 12px; padding: 7px 26px 8px 14px; white-space: nowrap; border-left: 4px solid var(--cy); background: linear-gradient(90deg, rgba(3, 6, 24, .82) 0%, rgba(3, 6, 24, .55) 60%, rgba(3, 6, 24, 0) 100%); }
.lobby .lb-tag em { font: 400 17px/1 var(--fm); font-style: normal; letter-spacing: .1em; color: var(--cy); text-shadow: 0 0 8px rgba(53, 242, 255, .8); }
.lobby .lb-tag b { font: 700 40px/1 var(--fe); letter-spacing: .14em; color: #fff; text-shadow: 0 0 14px rgba(53, 242, 255, .75), 0 2px 0 rgba(0, 10, 60, .6); }

@keyframes cyBlink { 50% { opacity: .15; } }
@keyframes cyNudge { 50% { transform: translateX(6px); } }
@keyframes cyShine { 0%, 55% { transform: none; } 100% { transform: translateX(900px); } }
@keyframes cyGlA { 0% { transform: translateX(-8px) skewX(-20deg); opacity: .3; } 50% { transform: translateX(6px); } 100% { transform: none; opacity: 1; } }
@keyframes cyGlB { 0% { transform: translateX(8px) skewX(20deg); opacity: .3; } 50% { transform: translateX(-6px); } 100% { transform: none; opacity: 1; } }
@keyframes cySplitA { 0%, 91%, 100% { opacity: 0; } 92% { opacity: .8; transform: translate(-5px, 1px); clip-path: inset(0 0 55% 0); } 95% { opacity: .8; transform: translate(4px, -1px); clip-path: inset(40% 0 20% 0); } 97% { opacity: 0; } }
@keyframes cySplitB { 0%, 91%, 100% { opacity: 0; } 93% { opacity: .8; transform: translate(5px, -1px); clip-path: inset(50% 0 0 0); } 96% { opacity: .8; transform: translate(-4px, 1px); clip-path: inset(10% 0 60% 0); } 98% { opacity: 0; } }

/* title screen: logo, copy and a start prompt over the lower third */
.lobby .lb-title { position: absolute; right: 72px; bottom: 58px; pointer-events: none; }
.lobby.active .lb-title, .lobby.active .tt-label { transform: translate(calc(var(--px) * -10px), calc(var(--py) * -6px)); }
.lobby .tt-label { position: absolute; left: 0; right: 0; top: 46px; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 18px; font: 600 19px/1 var(--fe); letter-spacing: .5em; color: var(--cy); text-shadow: 0 0 12px rgba(53, 242, 255, .8); }
.lobby .tt-label span { margin-right: -.5em; }
.lobby .tt-label b { padding: 5px 12px 5px 14px; font: 800 17px/1 var(--jp); letter-spacing: .3em; color: #03050f; background: var(--cy); text-shadow: none; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.lobby .tt-label i { width: 300px; height: 1px; background: linear-gradient(90deg, transparent, var(--cy)); }
.lobby .tt-label i:last-child { transform: scaleX(-1); }
.lobby .lb-title .lb-logo { display: block; width: 430px; height: 78.6px; margin: 0; filter: drop-shadow(0 6px 20px rgba(0, 0, 30, .75)); }   /* plain white: no colour split, no glow */
.lobby.active .lb-title .lb-logo { animation: none; }
@keyframes cyLogoSplit { 0%, 92%, 100% { transform: none; } 93% { transform: translateX(-9px) skewX(-6deg); } 95% { transform: translateX(7px); } 97% { transform: translateX(-3px) skewX(3deg); } }
.lobby .tt-copy { position: relative; left: 20px; display: inline-block; margin-top: 26px; font-size: 46px; font-weight: 900; line-height: 1.2; letter-spacing: .12em; white-space: nowrap; color: #fff; text-shadow: 0 0 22px rgba(53, 242, 255, .6), 0 3px 18px rgba(0, 6, 40, .9); }
.lobby .tt-copy::before, .lobby .tt-copy::after { content: attr(data-text); position: absolute; left: 0; top: 0; opacity: 0; }
.lobby.active .tt-copy::before { color: var(--cy); animation: cySplitA 6s steps(1) infinite; }
.lobby.active .tt-copy::after { color: var(--mg); animation: cySplitB 6s steps(1) infinite; }
.lobby .tt-start { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 22px; font: 600 24px/1 var(--fe); letter-spacing: .46em; color: var(--yl); text-shadow: 0 0 14px rgba(246, 238, 50, .7); animation: ttBlink 1.8s ease-in-out infinite; }
.lobby .tt-start span { margin-right: -.46em; }
.lobby .tt-start i { width: 0; height: 0; border: 7px solid transparent; border-left: 11px solid var(--yl); filter: drop-shadow(0 0 6px rgba(246, 238, 50, .8)); }
.lobby .tt-start i:last-child { transform: scaleX(-1); }
@keyframes ttBlink { 0%, 100% { opacity: 1; } 50% { opacity: .22; } }

/* the three lines of copy: white, condensed, slanted; each line is cut in two and the halves are offset (slice) with a colour split */
.lobby .lb-copy { --tf: rotate(-7deg) skewX(-10deg) scaleX(.69); position: absolute; left: 112px; top: 165px; width: 1400px; pointer-events: none; transform-origin: 0 50%; transform: var(--tf); }
.lobby.active .lb-copy { transform: translate(calc(var(--px) * 9px), calc(var(--py) * 6px)) var(--tf); }
.lobby .lb-copy p { position: relative; width: max-content; white-space: nowrap; font: 900 96px/1 var(--jp); letter-spacing: 0; color: transparent; }
.lobby .lb-copy p::before, .lobby .lb-copy p::after { content: attr(data-text); position: absolute; left: 0; top: 0; color: #fff;
  text-shadow: -7px 0 0 rgba(53, 242, 255, .85), 7px 0 0 rgba(255, 47, 208, .8), 0 0 36px rgba(150, 215, 255, .5), 0 12px 30px rgba(0, 0, 30, .9); }
.lobby .lb-copy p::before { clip-path: inset(-30% -8% 46% -8%); }
.lobby .lb-copy p::after { clip-path: inset(57% -8% -30% -8%); transform: translateX(.1em); }
.lobby .lb-copy .c1 { font-size: 124px; margin-left: 64px; }
.lobby .lb-copy .c2 { font-size: 150px; margin: 16px 0 0 110px; }
.lobby .lb-copy .c3 { font-size: 168px; margin: 18px 0 0 20px; }
.lobby .lb-copy .c4 { font-size: 232px; margin: 14px 0 0 0; }
.lobby .lb-copy .ghost { position: absolute; left: -120px; top: -70px; z-index: -1; font: 900 800px/1 var(--jp); color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .2); }
.lobby.active .lb-copy .c1::after { animation: cySliceA 5.4s steps(1) infinite; }
.lobby.active .lb-copy .c2::after { animation: cySliceA 5.4s steps(1) 1.3s infinite; }
.lobby.active .lb-copy .c3::after { animation: cySliceA 5.4s steps(1) 2.6s infinite; }
.lobby.active .lb-copy .c4::after { animation: cySliceA 5.4s steps(1) 3.9s infinite; }
.lobby.active .lb-copy .c4::before { animation: cySliceB 5.4s steps(1) 3.9s infinite; }
@keyframes cySliceA { 0%, 90%, 100% { transform: translateX(.1em); } 92% { transform: translateX(-.14em); } 95% { transform: translateX(.26em); } 97% { transform: translateX(.04em); } }
@keyframes cySliceB { 0%, 91%, 100% { transform: none; } 93% { transform: translateX(.12em); } 96% { transform: translateX(-.08em); } }
@media print { .lobby .lb-copy { transform: var(--tf) !important; } }

/* static / thumbnails / print: no WebGL, show the still frame and a settled HUD */
.static .lobby .lb-tag, #sidebar .lobby .lb-tag { display: none; }
.static .lobby .g-l, #sidebar .lobby .g-l { transform: rotateY(23deg) !important; } .static .lobby .g-r, #sidebar .lobby .g-r { transform: rotateY(-23deg) !important; }
.static .lobby .g-t, #sidebar .lobby .g-t { transform: rotateX(-16deg) !important; } .static .lobby .g-b, #sidebar .lobby .g-b { transform: rotateX(17deg) !important; }
.static .lobby *, #sidebar .lobby * { animation: none !important; }
@media print {
  .lobby .lb-tag { display: none !important; } .lobby * { animation: none !important; }
  .lobby .g-l { transform: rotateY(23deg) !important; } .lobby .g-r { transform: rotateY(-23deg) !important; } .lobby .g-t { transform: rotateX(-16deg) !important; } .lobby .g-b { transform: rotateX(17deg) !important; }
}
/* capture mode (?static&shot=wide): only the 3D picture, used to make img/lobby-still.jpg */
.shot #stage > .slide { background: transparent !important; } .shot #stage > .slide > *, .shot #stage > .slide::before, .shot #stage > .slide::after, .shot #hud { display: none !important; }
.shot #world { display: block !important; } .shot #world .lb-gl { opacity: 1 !important; }

/* back-to-lobby button */
#homebtn { position: fixed; left: 14px; top: 58px; z-index: 30; width: 36px; height: 36px; border-radius: 10px; border: none; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; font: 600 20px/36px var(--en); backdrop-filter: blur(6px); transition: background .2s, opacity .3s; }
#homebtn:hover { background: rgba(255,255,255,.25); }
.at-home #homebtn { opacity: 0; pointer-events: none; }
.static #homebtn { display: none; }
@media print { #homebtn { display: none !important; } }
.sb-open #homebtn { left: calc(var(--sbw) + 14px); top: 14px; }

/* ================= cyber theme: pages 2+ share the lobby's world ================= */
/* The inner pages were built on colour variables, so most of the re-skin is a new set of values. */
.slide.light, .slide.divider {
  --ink: #f2fbff; --sub: rgba(212, 233, 255, .82); --mute: rgba(150, 196, 236, .64); --blue: #35f2ff; --deep: #f2fbff; --sky: #35f2ff;
  --pale: rgba(53, 242, 255, .3); --tint: rgba(53, 242, 255, .085); --hair: rgba(120, 200, 255, .24); --mg: #ff2fd0; --yl: #f6ee32;
  --grad: linear-gradient(110deg, #35f2ff 0%, #5f8dff 55%, #ff2fd0 100%); --grad-text: linear-gradient(100deg, #ffffff 0%, #c4f6ff 50%, #35f2ff 100%);
  --en: "Chakra Petch", "Montserrat", sans-serif; --fm: "Share Tech Mono", ui-monospace, monospace; --cut: 22px;
  color: var(--ink); background: #040818;
}
#progress { background: linear-gradient(90deg, #35f2ff, #ff2fd0); }

/* page background: the city behind a dark pane, scanlines, and bracket marks in the corners */
.slide.light::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  repeating-linear-gradient(0deg, rgba(0, 0, 12, .12) 0 1px, transparent 1px 4px),
  radial-gradient(ellipse 1300px 800px at 78% 12%, rgba(53, 242, 255, .1), transparent 70%),
  radial-gradient(ellipse 1100px 700px at 8% 100%, rgba(255, 47, 208, .1), transparent 70%),
  linear-gradient(180deg, rgba(4, 8, 26, .9), rgba(4, 8, 26, .94)),
  url(img/plate-mid.jpg) center / cover; }
.slide.light::after { content: ""; position: absolute; inset: 30px; pointer-events: none; opacity: .7; background:
  linear-gradient(var(--blue), var(--blue)) 0 0 / 54px 2px no-repeat, linear-gradient(var(--blue), var(--blue)) 0 0 / 2px 54px no-repeat,
  linear-gradient(var(--blue), var(--blue)) 100% 0 / 54px 2px no-repeat, linear-gradient(var(--blue), var(--blue)) 100% 0 / 2px 54px no-repeat,
  linear-gradient(var(--mg), var(--mg)) 0 100% / 54px 2px no-repeat, linear-gradient(var(--mg), var(--mg)) 0 100% / 2px 54px no-repeat,
  linear-gradient(var(--mg), var(--mg)) 100% 100% / 54px 2px no-repeat, linear-gradient(var(--mg), var(--mg)) 100% 100% / 2px 54px no-repeat; }

/* headings */
.light .kicker { font: 600 20px/1 var(--en); letter-spacing: .36em; text-shadow: 0 0 12px rgba(53, 242, 255, .7); }
.light .kicker::before { content: "//"; margin-right: 14px; letter-spacing: 0; color: var(--mg); text-shadow: 0 0 10px rgba(255, 47, 208, .8); }
.light h2 { font-weight: 900; letter-spacing: .02em; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 24, .7); }
.light h2::after { content: ""; position: absolute; left: 2px; bottom: -22px; width: 150px; height: 5px; background: linear-gradient(90deg, #fff 0 64%, transparent 64% 70%, var(--blue) 70% 84%, transparent 84% 90%, var(--mg) 90%); }
.light .foot, .divider .foot { bottom: 34px; padding-top: 14px; border-top: 1px solid var(--hair); font-family: var(--fm); letter-spacing: .12em; color: var(--mute); }
.light .foot .no { font-family: var(--fm); font-weight: 400; color: var(--blue); }
.light .foot .no::before { content: "PAGE "; color: var(--mute); }
.light .gtext, .light .course .cno { filter: drop-shadow(0 0 14px rgba(53, 242, 255, .45)); }
.light .label { text-shadow: 0 0 10px rgba(53, 242, 255, .6); }

/* shared pieces: cut corners and neon hairlines instead of round cards */
.light .photo { border-radius: 0; box-shadow: none; clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px)); }
.light .photo::after { content: ""; position: absolute; inset: 0; border: 2px solid rgba(53, 242, 255, .75); background: linear-gradient(180deg, transparent 55%, rgba(4, 8, 40, .55)), repeating-linear-gradient(0deg, rgba(0, 0, 12, .14) 0 1px, transparent 1px 4px); }
.light .chip { border-radius: 0; padding: 16px 34px; color: #fff; background: rgba(53, 242, 255, .13); box-shadow: inset 0 0 0 1.5px rgba(53, 242, 255, .65); clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.light .table, .light .mvv .rows, .light .lines, .light .plist { border-top-color: rgba(53, 242, 255, .5); }
.light .table .th, .light .mvv .row .lb { color: var(--blue); }
.light .mvv .row .lb small { color: var(--mute); }
.light .stat .k, .light .bigstat .k { color: var(--sub); }
.light .edu .col.hl { border-radius: 0; color: #fff; background: linear-gradient(160deg, rgba(53, 242, 255, .2), rgba(255, 47, 208, .16)); box-shadow: inset 0 0 0 2px var(--blue), 0 0 40px rgba(53, 242, 255, .25); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.light .edu .col .k { text-shadow: none; }
.light .tl .bar { box-shadow: 0 0 18px rgba(53, 242, 255, .6); }
.light .tl .pt { background: #040818; box-shadow: 0 0 14px rgba(53, 242, 255, .7); }
.light .tl .c.goal .pt { background: var(--blue); box-shadow: 0 0 0 10px rgba(53, 242, 255, .16), 0 0 26px rgba(53, 242, 255, .9); }
.light .tl .num { color: transparent; -webkit-text-stroke: 1.5px rgba(53, 242, 255, .7); }
.light .tl .c.goal .num { color: var(--blue); -webkit-text-stroke: 0; }
.light .works .w .im { border-radius: 0; background: #070d2c; box-shadow: none; outline: 2px solid rgba(53, 242, 255, .6); outline-offset: 0; }
.light .works .sites .im { border: 0; }
.light .course { border-radius: 0; background: linear-gradient(160deg, rgba(53, 242, 255, .13), rgba(8, 18, 58, .5)); box-shadow: inset 0 0 0 1.5px rgba(53, 242, 255, .55); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.light .course:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.light .course:hover, .light .course:hover .en1, .light .course:hover .tg, .light .course:hover .go { color: #03050f; }
.light .course:hover .cno { color: #03050f; filter: none; }
.light .next, .light .icon-circ { border-radius: 0; }
.light .next { background: rgba(53, 242, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(53, 242, 255, .55); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.light .icon-circ { clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.light .gantt .seg { border-radius: 0; color: #03050f; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.light .gantt .seg.a { background: linear-gradient(120deg, #35f2ff, #6fb0ff); }
.light .gantt .seg.b { background: linear-gradient(120deg, #b07cff, #ff2fd0); }
.light .foot-notes { border-top-color: rgba(53, 242, 255, .5); }

/* chapter doors: the city in full, a huge outlined number, and a slanted split title */
.divider .grad-bg { background: linear-gradient(90deg, rgba(4, 8, 26, .94) 0%, rgba(4, 8, 26, .66) 42%, rgba(4, 8, 26, .12) 100%), linear-gradient(0deg, rgba(4, 8, 26, .8), transparent 40%), url(img/plate-front.jpg) center / cover; }
.divider .grad-bg::before, .divider .grad-bg::after { display: none; }
.divider .grad-bg::after { display: block; content: ""; inset: 0; width: auto; height: auto; left: 0; bottom: 0; border-radius: 0; filter: none; animation: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 12, .16) 0 1px, transparent 1px 4px); }
#s-business .grad-bg { background-image: linear-gradient(90deg, rgba(4, 8, 26, .94) 0%, rgba(4, 8, 26, .66) 42%, rgba(4, 8, 26, .12) 100%), linear-gradient(0deg, rgba(4, 8, 26, .8), transparent 40%), url(img/plate-mid.jpg); }
#s-growth .grad-bg { background-image: linear-gradient(90deg, rgba(4, 8, 26, .94) 0%, rgba(4, 8, 26, .66) 42%, rgba(4, 8, 26, .12) 100%), linear-gradient(0deg, rgba(4, 8, 26, .8), transparent 40%), url(img/plate-low.jpg); }
#s-recruit .grad-bg { background-image: linear-gradient(90deg, rgba(4, 8, 26, .94) 0%, rgba(4, 8, 26, .66) 42%, rgba(4, 8, 26, .12) 100%), linear-gradient(0deg, rgba(4, 8, 26, .8), transparent 40%), url(img/plate-mid.jpg); }
.divider .ribbon { display: none; }
.divider .num { right: 100px; top: 40px; font: 700 440px/1 var(--en); letter-spacing: 0; color: transparent; -webkit-text-stroke: 3px rgba(53, 242, 255, .6); filter: drop-shadow(0 0 22px rgba(53, 242, 255, .35)); }
.divider .big { left: 104px; bottom: 236px; font: 700 190px/1 var(--en); font-style: italic; letter-spacing: .01em; text-transform: uppercase; text-shadow: -7px 0 0 rgba(53, 242, 255, .85), 7px 0 0 rgba(255, 47, 208, .8), 0 0 40px rgba(150, 215, 255, .45); }
.divider .ja { left: 112px; bottom: 150px; padding-left: 26px; border-left: 8px solid var(--blue); font-size: 46px; font-weight: 900; letter-spacing: .1em; }
.divider .items { left: 150px; bottom: 100px; font-family: var(--fm); color: var(--mute); }

/* ================= one living city behind every page ================= */
/* The WebGL canvas sits under all pages. Without WebGL (or in static / print / thumbnails) each page keeps its own still background. */
#world { position: absolute; inset: 0; z-index: 0; }
#world .lb-gl { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .9s; }
.live3d #world .lb-gl { opacity: 1; }
.static #world { display: none; }
@media print { #world, #hud { display: none !important; } }
.live3d #stage > .lobby, .live3d #stage > .slide.light, .live3d #stage > .slide.divider { background: transparent; }
.live3d #stage > .lobby .lb-still { display: none; }
.live3d #stage > .slide.light::before { background:
  repeating-linear-gradient(0deg, rgba(0, 0, 12, .14) 0 1px, transparent 1px 4px),
  radial-gradient(ellipse 1300px 800px at 78% 12%, rgba(53, 242, 255, .08), transparent 70%),
  radial-gradient(ellipse 1100px 700px at 8% 100%, rgba(255, 47, 208, .09), transparent 70%),
  linear-gradient(180deg, rgba(4, 8, 26, .8), rgba(4, 8, 26, .86)); }
.live3d #stage > .divider .grad-bg { background:
  repeating-linear-gradient(0deg, rgba(0, 0, 12, .14) 0 1px, transparent 1px 4px),
  linear-gradient(90deg, rgba(4, 8, 26, .92) 0%, rgba(4, 8, 26, .62) 34%, rgba(4, 8, 26, 0) 60%),
  linear-gradient(0deg, rgba(4, 8, 26, .85), transparent 34%); }
.live3d #stage > .divider .grad-bg::after { display: none; }

/* chapter doors: the characters stand on the right, so the number moves to the left above the title */
.divider .num { left: 96px; right: auto; top: 150px; font-size: 300px; }
.divider .big { font-size: 150px; bottom: 244px; }

/* shared chrome on pages 2+ */
#hud { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .5s; --cy: #35f2ff; --fe: "Chakra Petch", "Montserrat", sans-serif; --fm: "Share Tech Mono", ui-monospace, monospace; color: #eafcff; }
.hud-on:not(.at-home) #hud { opacity: 1; }
.static #hud { display: none; }
#hud .h-ch { position: absolute; left: 64px; top: 30px; display: flex; align-items: center; gap: 16px; white-space: nowrap; }
#hud .h-ch b { padding: 7px 20px 6px 14px; font: 700 17px/1 var(--fe); letter-spacing: .16em; color: #03050f; background: var(--cy); clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
#hud .h-ch span { font-size: 19px; font-weight: 800; letter-spacing: .1em; text-shadow: 0 0 12px rgba(53, 242, 255, .6); }
#hud .h-ch em { font: 400 15px/1 var(--fm); font-style: normal; letter-spacing: .1em; color: rgba(150, 196, 236, .7); }
#hud .h-logo { position: absolute; right: 64px; top: 24px; width: 178px; height: 32.5px; filter: drop-shadow(-2px 0 0 rgba(53, 242, 255, .8)) drop-shadow(2px 0 0 rgba(255, 47, 208, .75)); }
#hud .h-prog { position: absolute; left: 64px; bottom: 36px; display: flex; gap: 7px; }
#hud .h-prog i { width: 46px; height: 6px; background: rgba(140, 200, 255, .22); transform: skewX(-24deg); transition: background .4s, box-shadow .4s; }
#hud .h-prog i.on { background: var(--cy); box-shadow: 0 0 10px rgba(53, 242, 255, .7); }
#hud .h-prog i.cur { background: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, .9); }
#hud .h-no { position: absolute; right: 64px; bottom: 26px; font: 400 17px/1 var(--fm); letter-spacing: .1em; color: rgba(150, 196, 236, .7); }
#hud .h-no b { font: 700 30px/1 var(--fe); color: var(--cy); text-shadow: 0 0 12px rgba(53, 242, 255, .7); }
.hud-on #stage > .slide .foot, .hud-on #stage > .slide.light::after { display: none; }

/* ================= windows: groups of content sit on translucent cut-corner panes ================= */
.light .table, .light .mvv .rows, .light .tl, .light .phase-cols, .light .lines, .light .stat { isolation: isolate; }
.light .lines, .light .stat { position: relative; }
.light .table::before, .light .mvv .rows::before, .light .tl::before, .light .phase-cols::before, .light .lines::before, .light .stat::before {
  content: ""; position: absolute; inset: -26px -34px; z-index: -1; pointer-events: none;
  background: linear-gradient(160deg, rgba(14, 30, 86, .62), rgba(4, 8, 30, .52));
  box-shadow: inset 0 0 0 1px rgba(53, 242, 255, .3), inset 0 3px 0 0 rgba(53, 242, 255, .6);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px)); }
.light .phase-cols::before { inset: 0 -34px -8px; }
.light .phase-cols { padding-top: 22px; }
.light .stat::before { inset: -22px 22px -22px -26px; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.light .table, .light .mvv .rows, .light .lines { border-top-color: transparent; }
.light .edu { gap: 18px; }
.light .edu .col, .light .edu .col:first-child { padding: 44px 36px; border-left: 0; background: linear-gradient(160deg, rgba(14, 30, 86, .62), rgba(4, 8, 30, .52)); box-shadow: inset 0 0 0 1px rgba(53, 242, 255, .3), inset 0 3px 0 0 rgba(53, 242, 255, .6); clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px)); }
.light .edu .col .k { font-size: 116px; }
.light h2 { font-size: 58px; }

/* photographs: pulled toward the night palette so they read as screens inside the scene, not pasted prints */
.light .photo img, .light .works .w .im img { filter: saturate(.8) contrast(1.05) brightness(.9); }
.light .photo::after { background: linear-gradient(160deg, rgba(53, 242, 255, .16), rgba(120, 60, 255, .1) 50%, rgba(255, 47, 208, .14)), linear-gradient(180deg, transparent 55%, rgba(4, 8, 40, .55)), repeating-linear-gradient(0deg, rgba(0, 0, 12, .14) 0 1px, transparent 1px 4px); }

/* a scan line runs down the screen each time a page opens */
#hud::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; opacity: 0; background: linear-gradient(90deg, transparent, #35f2ff 20%, #fff 50%, #35f2ff 80%, transparent); box-shadow: 0 0 26px 7px rgba(53, 242, 255, .45); }
#hud.scan::after { animation: hudScan .75s cubic-bezier(.3, .6, .4, 1); }
@keyframes hudScan { 0% { opacity: .95; transform: translateY(0); } 100% { opacity: 0; transform: translateY(1080px); } }

/* ================= character-select page (MVV + education): RYUJI in the centre, his "profile" and "skills" on tilted panes ================= */
.select h2 { right: auto; width: 720px; font-size: 44px; line-height: 1.34; }
.select h2::after { bottom: -20px; }
.select .sel-chara { position: absolute; left: 50%; bottom: -150px; height: 1150px; transform: translateX(-50%); filter: drop-shadow(0 0 30px rgba(120, 200, 255, .45)); }
.live3d #stage > .select .sel-chara { display: none; }       /* live: he stands in the 3D scene instead */
.slide.select::before { background:
  repeating-linear-gradient(0deg, rgba(0, 0, 12, .12) 0 1px, transparent 1px 4px),
  linear-gradient(90deg, rgba(4, 8, 26, .9) 0%, rgba(4, 8, 26, .74) 27%, rgba(4, 8, 26, .1) 41%, rgba(4, 8, 26, .1) 59%, rgba(4, 8, 26, .74) 73%, rgba(4, 8, 26, .9) 100%),
  linear-gradient(0deg, rgba(4, 8, 26, .85), transparent 32%),
  url(img/plate-mid.jpg) center / cover; }
.live3d #stage > .slide.select::before { background:
  repeating-linear-gradient(0deg, rgba(0, 0, 12, .14) 0 1px, transparent 1px 4px),
  linear-gradient(90deg, rgba(4, 8, 26, .9) 0%, rgba(4, 8, 26, .72) 27%, rgba(4, 8, 26, 0) 41%, rgba(4, 8, 26, 0) 59%, rgba(4, 8, 26, .72) 73%, rgba(4, 8, 26, .9) 100%),
  linear-gradient(0deg, rgba(4, 8, 26, .8), transparent 30%); }

.select .sel-stage { position: absolute; inset: 0; perspective: 1700px; perspective-origin: 50% 48%; }
.select .pane { position: absolute; padding: 0 30px 26px; isolation: isolate; }
.select .pane::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(14, 30, 86, .72), rgba(4, 8, 30, .62));
  box-shadow: inset 0 0 0 1px rgba(53, 242, 255, .34), inset 0 3px 0 0 rgba(53, 242, 255, .7);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)); }
.select .pane.left { left: 82px; top: 320px; width: 540px; }
.select .pane.right { right: 82px; top: 320px; width: 540px; }
.select .ph { display: flex; align-items: center; gap: 14px; margin: 0 -30px; padding: 20px 30px 16px; border-bottom: 1px solid rgba(53, 242, 255, .32); background: linear-gradient(90deg, rgba(53, 242, 255, .18), transparent 85%); }
.select .ph .tag { padding: 6px 18px 5px 12px; font: 700 15px/1 var(--en); letter-spacing: .16em; color: #03050f; background: var(--blue); clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.select .ph b { font-size: 21px; font-weight: 800; letter-spacing: .06em; }

/* left: profile rows */
.select .pf { padding: 24px 0 22px; border-bottom: 1px solid var(--hair); }
.select .pf:last-child { border-bottom: 0; padding-bottom: 4px; }
.select .pf .lb { display: flex; align-items: baseline; gap: 14px; font: 700 22px/1 var(--en); letter-spacing: .14em; color: var(--blue); text-shadow: 0 0 12px rgba(53, 242, 255, .6); }
.select .pf .lb small { font: 500 15px/1 var(--jp); letter-spacing: .04em; color: var(--mute); text-shadow: none; }
.select .pf .tx { margin-top: 14px; font-size: 31px; font-weight: 800; line-height: 1.42; letter-spacing: .02em; }
.select .pf .chips { margin-top: 16px; flex-wrap: wrap; gap: 10px; }
.select .pf .chip { padding: 11px 22px; font-size: 21px; }

/* right: the four "skills", the last one being what the first three add up to */
.select .sk { display: grid; grid-template-columns: 58px 1fr; gap: 16px; align-items: start; padding: 17px 0 15px; border-bottom: 1px solid var(--hair); }
.select .sk .n { margin-top: 6px; font: 700 34px/1 var(--en); color: transparent; -webkit-text-stroke: 1.4px var(--blue); }
.select .sk b { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: .08em; color: #fff; }
.select .sk em { margin-left: 14px; font-size: 18px; font-style: normal; font-weight: 700; }
.select .sk p { margin-top: 8px; font-size: 16.5px; line-height: 1.6; color: var(--sub); }
.select .sk.ult { margin: 14px -14px 0; padding: 18px 14px 16px; border-bottom: 0; background: linear-gradient(120deg, rgba(53, 242, 255, .2), rgba(255, 47, 208, .18)); box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 30px rgba(53, 242, 255, .25); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.select .sk.ult .n { color: var(--blue); -webkit-text-stroke: 0; text-shadow: 0 0 14px rgba(53, 242, 255, .8); }

/* his name, large, under him */
.select .sel-name { position: absolute; left: 0; right: 0; bottom: 92px; text-align: center; font: 700 120px/1 var(--en); font-style: italic; letter-spacing: .12em; text-indent: .12em; color: #fff;
  text-shadow: -6px 0 0 rgba(53, 242, 255, .85), 6px 0 0 rgba(255, 47, 208, .8), 0 0 40px rgba(150, 215, 255, .5), 0 10px 30px rgba(0, 0, 30, .9); }

/* company page: the two-line heading leaves less room, so the table rows sit a little tighter */
#s-company .table .tr { padding: 15px 0; }

/* ================= business line-up: a mode-select menu on the left, two of the characters on the right ================= */
.slide.split::before { background:
  repeating-linear-gradient(0deg, rgba(0, 0, 12, .12) 0 1px, transparent 1px 4px),
  linear-gradient(90deg, rgba(4, 8, 26, .93) 0%, rgba(4, 8, 26, .78) 40%, rgba(4, 8, 26, .16) 62%, rgba(4, 8, 26, .1) 100%),
  linear-gradient(0deg, rgba(4, 8, 26, .8), transparent 30%),
  url(img/plate-front.jpg) center / cover; }
.live3d #stage > .slide.split::before { background:
  repeating-linear-gradient(0deg, rgba(0, 0, 12, .14) 0 1px, transparent 1px 4px),
  linear-gradient(90deg, rgba(4, 8, 26, .93) 0%, rgba(4, 8, 26, .76) 40%, rgba(4, 8, 26, .08) 62%, rgba(4, 8, 26, 0) 100%),
  linear-gradient(0deg, rgba(4, 8, 26, .8), transparent 30%); }
.split .split-chara { position: absolute; right: 30px; bottom: -150px; height: 1130px; filter: drop-shadow(0 0 30px rgba(120, 200, 255, .45)); }
.live3d #stage > .split .split-chara { display: none; }

/* the ring as an instrument: thin arcs, tick marks, turning dashed circles; each arc has a call-out line to its name */
.orbit { position: absolute; inset: 0; }
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit .arc { fill: none; stroke: rgba(53, 242, 255, .5); stroke-width: 16; transition: stroke .25s, stroke-width .25s, filter .25s; }
.orbit .ticks path { stroke: rgba(53, 242, 255, .4); stroke-width: 2; }
.orbit .spin circle { fill: none; stroke: rgba(53, 242, 255, .55); stroke-width: 2; }
.orbit .spin.a circle { stroke-dasharray: 2 16; } .orbit .spin.b circle { stroke-dasharray: 40 10 4 10; stroke-width: 1.5; stroke: rgba(255, 47, 208, .6); }
.orbit .spin { transform-origin: 960px 600px; animation: ringSpin 70s linear infinite; } .orbit .spin.b { animation-duration: 40s; animation-direction: reverse; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.orbit .call path { fill: none; stroke: rgba(53, 242, 255, .4); stroke-width: 1.5; transition: stroke .25s; }
.orbit .call .dia { fill: #040818; stroke: rgba(53, 242, 255, .7); stroke-width: 2; transition: fill .25s, stroke .25s; }
.orbit .core circle { fill: rgba(4, 8, 30, .55); stroke: rgba(53, 242, 255, .45); stroke-width: 1.5; }
.orbit .core .dots { fill: none; stroke: rgba(53, 242, 255, .35); stroke-dasharray: 1 9; stroke-width: 2; }
.orbit .core polygon { fill: #fff; filter: drop-shadow(0 0 14px rgba(53, 242, 255, .9)); }
.orbit .core .road { fill: rgba(255, 255, 255, .7); }
.orbit .ol { position: absolute; display: flex; align-items: baseline; gap: 18px; white-space: nowrap; color: rgba(235, 250, 255, .58); transition: color .25s, text-shadow .25s; }
.orbit .ol.l { flex-direction: row; } .orbit .ol.c { transform: translateX(-50%); }
.orbit .ol .n { font: 700 46px/1 var(--en); color: transparent; -webkit-text-stroke: 1.5px rgba(53, 242, 255, .8); transition: color .25s; }
.orbit .ol .ja { font-size: 44px; font-weight: 900; line-height: 1.1; letter-spacing: .03em; }
.orbit[data-on="0"] .arc:nth-of-type(1), .orbit[data-on="1"] .arc:nth-of-type(2), .orbit[data-on="2"] .arc:nth-of-type(3), .orbit[data-on="3"] .arc:nth-of-type(4), .orbit[data-on="4"] .arc:nth-of-type(5) {
  stroke: #fff; stroke-width: 26; filter: drop-shadow(0 0 16px rgba(53, 242, 255, 1)) drop-shadow(0 0 34px rgba(53, 242, 255, .7)); }
.orbit[data-on="0"] .call:nth-of-type(1) path, .orbit[data-on="1"] .call:nth-of-type(2) path, .orbit[data-on="2"] .call:nth-of-type(3) path, .orbit[data-on="3"] .call:nth-of-type(4) path, .orbit[data-on="4"] .call:nth-of-type(5) path { stroke: #fff; }
.orbit[data-on="0"] .call:nth-of-type(1) .dia, .orbit[data-on="1"] .call:nth-of-type(2) .dia, .orbit[data-on="2"] .call:nth-of-type(3) .dia, .orbit[data-on="3"] .call:nth-of-type(4) .dia, .orbit[data-on="4"] .call:nth-of-type(5) .dia { fill: #fff; }
.orbit[data-on="0"] .ol:nth-of-type(1), .orbit[data-on="1"] .ol:nth-of-type(2), .orbit[data-on="2"] .ol:nth-of-type(3), .orbit[data-on="3"] .ol:nth-of-type(4), .orbit[data-on="4"] .ol:nth-of-type(5) { color: #fff; text-shadow: 0 0 22px rgba(53, 242, 255, .8); }
.orbit[data-on="0"] .ol:nth-of-type(1) .n, .orbit[data-on="1"] .ol:nth-of-type(2) .n, .orbit[data-on="2"] .ol:nth-of-type(3) .n, .orbit[data-on="3"] .ol:nth-of-type(4) .n, .orbit[data-on="4"] .ol:nth-of-type(5) .n { color: var(--blue); -webkit-text-stroke: 0; }
.static .orbit .spin, #sidebar .orbit .spin { animation: none; }

/* ================= calm content: the city stays behind, but what sits on it is set like a document ================= */
/* One accent colour, plain type, flat panels with square-ish corners; no glow, no cut corners, no scan lines, no magenta. Doors and page 1 keep the game look. */
.slide.light {
  --blue: #6fdcf2; --sky: #6fdcf2; --sub: rgba(226, 236, 250, .86); --mute: rgba(170, 190, 220, .72); --hair: rgba(255, 255, 255, .14);
  --tint: rgba(255, 255, 255, .06); --pale: rgba(255, 255, 255, .3);
  --grad: linear-gradient(90deg, #6fdcf2, #6fdcf2); --grad-text: linear-gradient(#fff, #fff);
  --en: "Montserrat", "Noto Sans JP", sans-serif; --fm: "Montserrat", "Noto Sans JP", sans-serif; --cut: 0px;
  --pane: rgba(9, 14, 36, .74); --pane-line: rgba(255, 255, 255, .12);
}
.slide.light::before { background: linear-gradient(180deg, rgba(6, 10, 28, .9), rgba(6, 10, 28, .94)), url(img/plate-mid.jpg) center / cover; }
.live3d #stage > .slide.light::before { background: linear-gradient(180deg, rgba(6, 10, 28, .8), rgba(6, 10, 28, .86)); }
.slide.light::after { display: none; }
.slide.select::before { background:
  linear-gradient(90deg, rgba(6, 10, 28, .92) 0%, rgba(6, 10, 28, .76) 27%, rgba(6, 10, 28, .1) 41%, rgba(6, 10, 28, .1) 59%, rgba(6, 10, 28, .76) 73%, rgba(6, 10, 28, .92) 100%),
  linear-gradient(0deg, rgba(6, 10, 28, .85), transparent 32%), url(img/plate-mid.jpg) center / cover; }
.live3d #stage > .slide.select::before { background:
  linear-gradient(90deg, rgba(6, 10, 28, .92) 0%, rgba(6, 10, 28, .74) 27%, rgba(6, 10, 28, 0) 41%, rgba(6, 10, 28, 0) 59%, rgba(6, 10, 28, .74) 73%, rgba(6, 10, 28, .92) 100%),
  linear-gradient(0deg, rgba(6, 10, 28, .8), transparent 30%); }

/* headings */
.light .kicker { font: 700 18px/1 var(--en); letter-spacing: .28em; text-shadow: none; }
.light .kicker::before { content: none; }
.light h2 { text-shadow: 0 2px 12px rgba(0, 0, 20, .55); }
.light h2::after { width: 72px; height: 4px; background: var(--blue); }
.light .gtext, .light .course .cno { filter: none; }
.light .label { text-shadow: none; }
.light .foot, .divider .foot { font-family: var(--jp); }

/* panels */
.light .table::before, .light .mvv .rows::before, .light .tl::before, .light .phase-cols::before, .light .lines::before {
  background: var(--pane); box-shadow: inset 0 0 0 1px var(--pane-line); clip-path: none; border-radius: 10px; }
.light .stat::before { display: none; }
.light .stat { padding-left: 32px; border-left: 1px solid var(--hair); }
.light .stat:first-child { padding-left: 0; border-left: 0; }
.light .stat .v { letter-spacing: -.01em; }
.light .table .th, .light .mvv .row .lb { color: var(--blue); }

/* photographs: shown as they are */
.light .photo { clip-path: none; border-radius: 8px; box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .7); }
.light .photo::after { border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; background: none; }
.light .photo img, .light .works .w .im img { filter: none; }
.light .works .w .im { border-radius: 8px; outline: 1px solid rgba(255, 255, 255, .16); }

/* small parts */
.light .chip { clip-path: none; border-radius: 6px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.light .tl .bar { height: 6px; box-shadow: none; opacity: .8; }
.light .tl .pt { background: #0a1024; box-shadow: none; }
.light .tl .c.goal .pt { background: var(--blue); box-shadow: 0 0 0 8px rgba(111, 220, 242, .18); }
.light .tl .num { color: rgba(255, 255, 255, .4); -webkit-text-stroke: 0; }
.light .tl .c.goal .num { color: var(--blue); }
.light .course { clip-path: none; border-radius: 10px; background: var(--pane); box-shadow: inset 0 0 0 1px var(--pane-line); }
.light .course:hover { box-shadow: none; }
.light .next { clip-path: none; border-radius: 10px; background: var(--pane); box-shadow: inset 0 0 0 1px var(--pane-line); }
.light .icon-circ { clip-path: none; border-radius: 50%; }
.light .gantt .seg { clip-path: none; border-radius: 4px; }
.light .gantt .seg.a { background: #6fdcf2; }
.light .gantt .seg.b { background: #9fb4ff; }
.light .foot-notes { border-top-color: var(--hair); }

/* character-select page: same calm panels, the tilt stays */
.select .pane::before { background: var(--pane); box-shadow: inset 0 0 0 1px var(--pane-line); clip-path: none; border-radius: 10px; }
.select .ph { background: none; border-bottom-color: var(--hair); }
.select .ph .tag { padding: 6px 12px 5px; border-radius: 3px; clip-path: none; }
.select .pf .lb { text-shadow: none; }
.select .sk .n { color: var(--mute); -webkit-text-stroke: 0; }
.select .sk.ult { background: rgba(111, 220, 242, .1); box-shadow: inset 0 0 0 1px rgba(111, 220, 242, .5); clip-path: none; border-radius: 8px; }
.select .sk.ult .n { color: var(--blue); text-shadow: none; }

/* page marker */
#hud .h-prog { gap: 6px; bottom: 38px; }
#hud .h-prog i { width: 40px; height: 3px; transform: none; }
#hud .h-prog i.on { background: rgba(255, 255, 255, .5); box-shadow: none; }
#hud .h-prog i.cur { background: #fff; box-shadow: none; }
#hud .h-no { font: 500 15px/1 "Montserrat", sans-serif; }
#hud .h-no b { font: 700 24px/1 "Montserrat", sans-serif; color: #fff; text-shadow: none; }

/* ================= calm doors and ring: pages 2+ all share the document tone; only page 1 keeps the game look ================= */
.slide.divider { --blue: #6fdcf2; --mute: rgba(170, 190, 220, .72); --en: "Montserrat", "Noto Sans JP", sans-serif; --fm: "Montserrat", "Noto Sans JP", sans-serif; }
.divider .grad-bg::after { display: none; }
.live3d #stage > .divider .grad-bg { background:
  linear-gradient(90deg, rgba(6, 10, 28, .9) 0%, rgba(6, 10, 28, .6) 34%, rgba(6, 10, 28, 0) 60%),
  linear-gradient(0deg, rgba(6, 10, 28, .85), transparent 34%); }
.divider .num { left: 116px; right: auto; top: auto; bottom: 420px; padding-bottom: 22px; border-bottom: 4px solid var(--blue); font: 700 44px/1 var(--en); letter-spacing: .08em; color: var(--blue); -webkit-text-stroke: 0; filter: none; }
.divider .big { left: 110px; bottom: 266px; font: 800 112px/1 var(--en); font-style: normal; letter-spacing: 0; text-shadow: 0 4px 30px rgba(0, 0, 20, .6); }
.divider .ja { left: 116px; bottom: 176px; padding-left: 0; border-left: 0; font-size: 42px; font-weight: 800; letter-spacing: .08em; text-shadow: 0 2px 16px rgba(0, 0, 20, .6); }
.divider .items { left: 116px; bottom: 124px; font-family: var(--jp); }
#hud::after { display: none; }

.orbit .ticks, .orbit .spin.b, .orbit .core .dots { display: none; }
.orbit .spin { animation: none; }
.orbit .spin.a circle { stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; stroke-dasharray: none; }
.orbit .arc { stroke: rgba(255, 255, 255, .22); stroke-width: 12; }
.orbit .call path { stroke: rgba(255, 255, 255, .26); stroke-width: 1.2; }
.orbit .call .dia { fill: #0a1024; stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; }
.orbit .core circle { fill: rgba(9, 14, 36, .74); stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.orbit .core polygon { filter: none; }
.orbit .ol { color: rgba(235, 245, 255, .62); }
.orbit .ol .n { font: 700 34px/1 var(--en); color: rgba(170, 190, 220, .72); -webkit-text-stroke: 0; }
.orbit .ol .ja { font-weight: 800; }
.orbit[data-on="0"] .arc:nth-of-type(1), .orbit[data-on="1"] .arc:nth-of-type(2), .orbit[data-on="2"] .arc:nth-of-type(3), .orbit[data-on="3"] .arc:nth-of-type(4), .orbit[data-on="4"] .arc:nth-of-type(5) { stroke: var(--blue); stroke-width: 16; filter: none; }
.orbit[data-on="0"] .call:nth-of-type(1) path, .orbit[data-on="1"] .call:nth-of-type(2) path, .orbit[data-on="2"] .call:nth-of-type(3) path, .orbit[data-on="3"] .call:nth-of-type(4) path, .orbit[data-on="4"] .call:nth-of-type(5) path { stroke: var(--blue); }
.orbit[data-on="0"] .call:nth-of-type(1) .dia, .orbit[data-on="1"] .call:nth-of-type(2) .dia, .orbit[data-on="2"] .call:nth-of-type(3) .dia, .orbit[data-on="3"] .call:nth-of-type(4) .dia, .orbit[data-on="4"] .call:nth-of-type(5) .dia { fill: var(--blue); stroke: var(--blue); }
.orbit[data-on="0"] .ol:nth-of-type(1), .orbit[data-on="1"] .ol:nth-of-type(2), .orbit[data-on="2"] .ol:nth-of-type(3), .orbit[data-on="3"] .ol:nth-of-type(4), .orbit[data-on="4"] .ol:nth-of-type(5) { color: #fff; text-shadow: none; }
.orbit[data-on="0"] .ol:nth-of-type(1) .n, .orbit[data-on="1"] .ol:nth-of-type(2) .n, .orbit[data-on="2"] .ol:nth-of-type(3) .n, .orbit[data-on="3"] .ol:nth-of-type(4) .n, .orbit[data-on="4"] .ol:nth-of-type(5) .n { color: var(--blue); }

/* the call-out lines are the 4th-8th <g> in the svg, so their lit state needs an offset of 3 */
.orbit[data-on="0"] .call:nth-of-type(4) path, .orbit[data-on="1"] .call:nth-of-type(5) path, .orbit[data-on="2"] .call:nth-of-type(6) path, .orbit[data-on="3"] .call:nth-of-type(7) path, .orbit[data-on="4"] .call:nth-of-type(8) path { stroke: var(--blue); }
.orbit[data-on="0"] .call:nth-of-type(4) .dia, .orbit[data-on="1"] .call:nth-of-type(5) .dia, .orbit[data-on="2"] .call:nth-of-type(6) .dia, .orbit[data-on="3"] .call:nth-of-type(7) .dia, .orbit[data-on="4"] .call:nth-of-type(8) .dia { fill: var(--blue); stroke: var(--blue); }

/* ================= five businesses, step 1: heading out, ring into the top-left corner, wires to three photo bands ================= */
#s-biz5.step1 .kicker, #s-biz5.step1 h2 { opacity: 0; transform: translateY(-18px); transition-delay: 0s; }
#s-biz5.step1 .orbit { transform: translate(-704px, -367px) scale(.46); transition-duration: .9s; transition-delay: 0s; pointer-events: none; }
.static #s-biz5.step1 .kicker, .static #s-biz5.step1 h2 { opacity: 0 !important; }
.static #s-biz5.step1 .orbit { transform: translate(-704px, -367px) scale(.46) !important; }
#s-biz5 .orbit .ol, #s-biz5 .orbit .call { transition: opacity .4s var(--ease), color .25s; }
#s-biz5.step1 .orbit .ol, #s-biz5.step1 .orbit .call { opacity: 0; }                    /* the small ring carries no labels: the bands name the three */
#s-biz5.step1 .orbit .arc:nth-of-type(2), #s-biz5.step1 .orbit .arc:nth-of-type(3), #s-biz5.step1 .orbit .arc:nth-of-type(4) { stroke: var(--blue); stroke-width: 18; }
#s-biz5.step1 .orbit .arc:nth-of-type(1), #s-biz5.step1 .orbit .arc:nth-of-type(5) { stroke: rgba(255, 255, 255, .16); }

#s-biz5 .pick { position: absolute; inset: 0; pointer-events: none; }
#s-biz5 .wires { position: absolute; inset: 0; width: 100%; height: 100%; }
#s-biz5 .wires path { fill: none; stroke: var(--blue); stroke-width: 2; opacity: .75; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .3s var(--ease); }
#s-biz5.step1 .wires path { stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease) .65s; }
.static #s-biz5 .wires path { transition: none; }

#s-biz5 .pk { position: absolute; height: 282px; padding: 36px 48px 0; overflow: hidden; background: rgba(9, 14, 36, .8); box-shadow: inset 0 0 0 1px var(--pane-line); border-radius: 10px;
  opacity: 0; transform: translateX(90px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
#s-biz5 .pk::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--blue); }
#s-biz5.step1 .pk { opacity: 1; transform: none; transition-duration: .8s; transition-delay: calc(var(--i) * 150ms + 420ms); }
.static #s-biz5 .pk { transition: none; }
#s-biz5 .pk { left: 440px; width: 1368px; --pw: 310px; }   /* three identical bands: same edges, same columns */
#s-biz5 .pk.a { top: 60px; }
#s-biz5 .pk.b { top: 366px; }
#s-biz5 .pk.c { top: 672px; }
#s-biz5 .pk .ph { position: absolute; right: 0; top: 0; bottom: 0; width: var(--pw); clip-path: polygon(84px 0, 100% 0, 100% 100%, 0 100%); }
#s-biz5 .pk .ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform .4s; }
#s-biz5.step1 .pk .ph img { transform: scale(1); transition: transform 2.4s var(--ease) calc(var(--i) * 150ms + 420ms); }
.static #s-biz5 .pk .ph img { transition: none; }
#s-biz5 .pk h3 { font-size: 31px; font-weight: 800; line-height: 1.2; letter-spacing: .04em; color: var(--blue); }
#s-biz5 .pk .facts { display: grid; grid-template-columns: repeat(3, 1fr); width: 980px; margin-top: 20px; }
#s-biz5 .pk .f { padding: 0 0 0 28px; border-left: 1px solid var(--hair); }
#s-biz5 .pk .f:first-child { padding-left: 0; border-left: 0; }
#s-biz5 .pk .f b { display: flex; align-items: baseline; height: 84px; padding-top: 12px; white-space: nowrap; font-size: 42px; font-weight: 900; line-height: 72px; letter-spacing: .02em; }
#s-biz5 .pk .f b i { margin: 0 6px; font: 800 78px/72px var(--en); font-style: normal; letter-spacing: -.02em; color: var(--blue); }
#s-biz5 .pk .f span { display: block; margin-top: 12px; white-space: nowrap; font-size: 19px; font-weight: 500; line-height: 1.55; color: var(--sub); }
#s-biz5 .pk .f b.en { font-family: var(--en); font-weight: 800; letter-spacing: .01em; }

/* the segmented page marker is hidden: the thin bar along the bottom of the window already shows progress */
#hud .h-prog { display: none; }

/* character-select page, re-laid: the two panes are flat, the same size, share top and bottom edges and mirror each other about the character;
   their inner text starts on the same line as the heading (112px) */
.select .pane { display: flex; flex-direction: column; height: 640px; padding: 0 30px 14px; }
.select .ph { flex: none; }
.select .pf { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; padding: 0; }
.select .pf:last-child { padding-bottom: 0; }
.select .pf .chips { flex-wrap: nowrap; gap: 8px; }
.select .pf .chip { padding: 11px 15px; font-size: 19px; white-space: nowrap; }
.select .sk { flex: 1 1 0; align-content: center; padding: 0; }
.select .sk.ult { margin: 10px -14px 0; padding: 0 14px; }
.select .sk p { font-size: 17px; }

/* ABOUT door: the chapter title sits small at the top-left like a page heading; the message stands at the left, vertically centred */
#s-about .num { left: 113px; top: 84px; bottom: auto; padding-bottom: 0; border-bottom: 0; font-size: 22px; letter-spacing: .28em; }
#s-about .big { left: 112px; top: 122px; bottom: auto; font-size: 62px; letter-spacing: .01em; }
#s-about .big::after { content: ""; position: absolute; left: 2px; bottom: -24px; width: 72px; height: 4px; background: var(--blue); }
#s-about .manifest { position: absolute; left: 112px; top: 300px; text-shadow: 0 2px 18px rgba(0, 0, 20, .7); }
#s-about .manifest h3 { margin-left: -.42em; font-size: 62px; font-weight: 900; line-height: 1.3; letter-spacing: .05em; white-space: nowrap; }
#s-about .manifest p { margin-top: 34px; font-size: 25px; font-weight: 500; line-height: 2.2; letter-spacing: .02em; white-space: nowrap; color: rgba(236, 244, 255, .92); }
#s-about .manifest p b { font-weight: 800; color: #fff; }

/* character-select page, focus steps: the heading is lit first, then (one press each) the MVV pane, then the education pane; whatever is not in focus is dimmed */
.select .sel-chara { bottom: -70px; height: 1080px; }
#s-mvv .kicker, #s-mvv h2, #s-mvv .pane { transition: opacity .55s var(--ease), transform .8s var(--ease), filter .55s var(--ease); }
#s-mvv.active .pane, #s-mvv.step1 .kicker, #s-mvv.step1 h2 { opacity: .3; transition-delay: 0s; }
#s-mvv.active.step1:not(.step2) .pane.left, #s-mvv.active.step2 .pane.right { opacity: 1; }
#s-mvv .pane::after { content: ""; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--blue), 0 24px 60px -24px rgba(0, 0, 0, .8); opacity: 0; transition: opacity .55s var(--ease); pointer-events: none; }
#s-mvv.step1:not(.step2) .pane.left::after, #s-mvv.step2 .pane.right::after { opacity: .85; }
.static #s-mvv .pane, #sidebar .select .pane { opacity: .3 !important; }
.static #s-mvv.step1 .kicker, .static #s-mvv.step1 h2 { opacity: .3 !important; }
.static #s-mvv.step1:not(.step2) .pane.left, .static #s-mvv.step2 .pane.right { opacity: 1 !important; }

/* first-stage page: each reason is a bold line plus one line of explanation */
#s-first .lines .ln { height: 144px; }
#s-first .lines .ln .t b { display: block; font-size: 31px; font-weight: 800; line-height: 1.3; letter-spacing: .02em; }
#s-first .lines .ln .t span { display: block; margin-top: 10px; font-size: 21px; font-weight: 500; line-height: 1.5; color: var(--sub); }
