:root {
  --emerald-ink: #1b7867;
  --emerald-bright: #1f8a66;
  --emerald-neon: #2ee86e;
  --offwhite: #f4f4f2;
  --hud-dark: #1c1e1d;
  --font-serif: "Playfair Display", "Didot", "Baskerville", Georgia, serif;
  --font-display: "Playfair Display", "Didot", Georgia, serif;
  --font-script: "Pinyon Script", "Great Vibes", "Snell Roundhand", cursive;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0d0b;
  font-family: var(--font-sans);
  user-select: none;
  -webkit-user-select: none;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ---------------- Scene 0: Draw a Zero ---------------- */
.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 20;
}

.overlay.active {
  opacity: 1;
}

.draw-ring-wrap {
  position: relative;
  width: clamp(190px, 23vw, 270px);
  height: clamp(190px, 23vw, 270px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.draw-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-168deg);
  transition: opacity 0.18s ease;
}

.draw-ring-svg.drawing {
  opacity: 0;
}

.draw-ring-base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 5.5;
}

.draw-ring-arc {
  fill: none;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 6.5;
  stroke-dasharray: 120 540;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.65));
}

.draw-zero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
  transition: opacity 0.25s ease;
}

.draw-zero-label.hidden-label {
  opacity: 0;
}

/* ---------------- Scene 1: + 100 XP ---------------- */
.xp-flash-text {
  margin-top: 110px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(45, 58, 52, 0.72);
}

/* ---------------- Persistent HUD ---------------- */
.hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  transition: opacity 0.5s ease;
}

.vernier {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(26, 46, 38, 0.58);
  transition: color 0.35s ease;
}

.hud.dark-mode .vernier {
  color: rgba(255, 255, 255, 0.68);
}

.vernier-ticks {
  width: 220px;
  height: 12px;
  background-image: repeating-linear-gradient(
    to right,
    currentColor 0px,
    currentColor 1px,
    transparent 1px,
    transparent 9px
  );
  mask-image: linear-gradient(to right, transparent, black 22%, black 78%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 22%, black 78%, transparent);
  opacity: 0.55;
}

.vernier-needle {
  width: 1.5px;
  height: 14px;
  background: currentColor;
  margin-top: -12px;
}

.vernier-readout {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  opacity: 0.85;
}

.xp-pill {
  position: fixed;
  top: 14px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #36453e;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease, color 0.35s ease;
}

.hud.dark-mode .xp-pill {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.xp-pill.pop {
  transform: scale(1.16);
}

.xp-star-icon {
  width: 14px;
  height: 14px;
  fill: #f0c419;
}

/* ---------------- Bottom Dock ---------------- */
.bottom-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(242, 245, 243, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  transition: opacity 0.45s ease, background 0.35s ease, border-color 0.35s ease;
}

.bottom-dock.dark-mode {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.dock-orb-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  background: radial-gradient(circle at 35% 30%, #dcffea 0%, #52d987 42%, #198c58 85%, #0d4f32 100%);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.8), 0 2px 8px rgba(25, 140, 88, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.dock-orb-btn:hover {
  transform: scale(1.07);
}

.orb-inner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.82);
}

.dock-beta-btn {
  height: 34px;
  padding: 0 64px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--hud-dark);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.18s ease;
}

.dock-beta-btn:hover {
  background: #2f3331;
  transform: translateY(-1px);
}

.dock-menu-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(246, 248, 247, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  transition: transform 0.2s ease;
}

.dock-menu-btn:hover {
  transform: scale(1.07);
}

.dock-menu-btn span {
  display: block;
  width: 12px;
  height: 1.5px;
  background: #1c1e1d;
  border-radius: 2px;
}

/* ---------------- Story Typography Stage ---------------- */
.story-type {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 25;
}

.type-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform, filter;
}

.interactive-layer {
  pointer-events: none;
}

.interactive-layer.enabled {
  pointer-events: auto;
}

/* Scene 2: You Believed */
#type-believed {
  display: flex;
  align-items: center;
  justify-content: center;
}

.believed-lockup {
  position: relative;
  color: var(--emerald-ink);
  transform: translateY(-10px) scaleX(0.92);
}

.believed-you {
  position: absolute;
  right: 11%;
  top: -12px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(50px, 7.4vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.believed-word {
  display: flex;
  align-items: flex-end;
}

.swash-b {
  width: clamp(132px, 17.5vw, 245px);
  height: auto;
  margin-right: -34px;
  margin-bottom: -16px;
}

.believed-tail {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(68px, 9.8vw, 136px);
  line-height: 0.86;
  letter-spacing: -0.05em;
}

/* Scene 3: College would / land You */
#type-college {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(28px, 6vh, 56px) clamp(24px, 4vw, 56px);
}

.college-lockup {
  color: var(--emerald-bright);
  transform-origin: top left;
  transform: scaleX(0.92);
}

.college-line {
  display: flex;
  align-items: flex-end;
}

.swash-c {
  width: clamp(98px, 12vw, 168px);
  height: auto;
  margin-right: -28px;
  margin-bottom: -10px;
}

.college-tail {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(56px, 7.6vw, 108px);
  line-height: 0.86;
  letter-spacing: -0.05em;
}

.would-line {
  margin-left: clamp(118px, 14.8vw, 220px);
  margin-top: -2px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 58px);
  letter-spacing: -0.04em;
}

#type-land-you {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: clamp(56px, 9vh, 95px) clamp(32px, 5vw, 68px);
}

.land-you-lockup {
  position: relative;
  color: var(--emerald-bright);
  transform-origin: bottom right;
  transform: scaleX(0.92);
}

.land-word {
  position: absolute;
  right: 4%;
  top: -16px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.03em;
}

.you-big-word {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(58px, 7.6vw, 110px);
  line-height: 0.88;
  letter-spacing: -0.045em;
}

/* Scene 4: JOB & TAP HOLD */
#type-job {
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-word {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(72px, 9vw, 132px);
  color: #168a62;
  letter-spacing: -0.055em;
  transform: scaleX(0.91);
  text-shadow: 0 2px 28px rgba(255, 255, 255, 0.72);
}

#tap-hold-ui {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tap-hold-btn {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tap-hold-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.tap-hold-halo {
  fill: rgba(255, 255, 255, 0.88);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.95));
}

.tap-hold-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 2.5;
}

.tap-hold-arc {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  stroke-linecap: round;
}

.tap-hold-label {
  position: relative;
  margin-left: 88px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.94);
  text-align: left;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* Scene 5: But, & That's Bullsh*t */
#type-but {
  display: flex;
  align-items: center;
  justify-content: center;
}

.but-word {
  transform: translateX(-115px) translateY(10px);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(46px, 6vw, 84px);
  color: #ffffff;
  text-shadow: 0 2px 26px rgba(255, 220, 220, 0.55);
}

#type-bullshit {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bullshit-lockup {
  position: relative;
  color: #ffffff;
  transform: scaleX(0.91);
  text-shadow: 0 4px 36px rgba(255, 190, 190, 0.55);
}

.thats-lockup {
  position: absolute;
  left: 1.5%;
  top: -42px;
  display: flex;
  align-items: flex-end;
  z-index: 2;
}

.swash-t {
  width: clamp(78px, 9.8vw, 138px);
  height: auto;
  margin-right: -36px;
  margin-bottom: -10px;
}

.thats-tail {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.bullshit-word {
  display: flex;
  align-items: baseline;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(82px, 12.6vw, 184px);
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.bullshit-star {
  width: 0.42em;
  height: 0.42em;
  align-self: flex-start;
  margin-top: 0.14em;
  margin-left: -0.04em;
  margin-right: -0.04em;
}

/* Scene 6: University sells & a Paper */
#type-univ-sells {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(58px, 10vh, 105px) clamp(28px, 4.5vw, 60px);
}

.univ-sells-lockup {
  color: #ffffff;
  transform-origin: bottom left;
  transform: scaleX(0.92);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.65);
}

.univ-word {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.sells-word {
  margin-left: 24px;
  margin-top: -10px;
  font-family: var(--font-script);
  font-size: clamp(64px, 8.2vw, 118px);
  line-height: 0.85;
}

#type-paper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.paper-lockup {
  position: relative;
  color: #ffffff;
  transform: scaleX(0.92);
  text-shadow: 0 0 32px rgba(170, 255, 200, 0.52);
}

.paper-a {
  position: absolute;
  left: -34px;
  top: 24%;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 44px);
}

.paper-main {
  display: flex;
  align-items: flex-end;
}

.swash-p {
  width: clamp(98px, 12.2vw, 170px);
  height: auto;
  margin-right: -30px;
  margin-bottom: -14px;
}

.paper-tail {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(60px, 8vw, 114px);
  letter-spacing: -0.045em;
  line-height: 0.88;
}

/* Scene 7 */
#type-companies {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(46px, 8vh, 84px) clamp(26px, 4vw, 54px);
}

.companies-lockup {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.but-small {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 60px);
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.companies-word {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(52px, 6.6vw, 94px);
  letter-spacing: -0.045em;
  line-height: 0.88;
  transform-origin: top left;
  transform: scaleX(0.92);
}

#type-someone {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: clamp(64px, 10vh, 105px) clamp(28px, 4.5vw, 58px);
}

.someone-lockup {
  position: relative;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.want-word {
  position: absolute;
  right: 8%;
  top: -20px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 2.8vw, 38px);
  letter-spacing: -0.03em;
}

.someone-main {
  display: flex;
  align-items: baseline;
}

.script-cap {
  font-family: var(--font-script);
  font-size: clamp(72px, 9.2vw, 128px);
  line-height: 0.8;
  margin-right: -12px;
}

.someone-tail {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(50px, 6.4vw, 88px);
  letter-spacing: -0.04em;
}

#type-whocan {
  display: flex;
  align-items: center;
  justify-content: center;
}

.whocan-lockup {
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

.whocan-top {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 0.95;
}

.whocan-bot {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1;
}

#type-job-script {
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-script-word {
  font-family: var(--font-script);
  font-size: clamp(110px, 16vw, 220px);
  color: #ffffff;
  text-shadow: 0 0 36px rgba(255, 255, 255, 0.6);
}

/* Finale: and that's Why we had to Exist */
.why-top-left {
  position: absolute;
  top: clamp(78px, 13.5vh, 128px);
  left: clamp(28px, 5.5vw, 84px);
  color: #ffffff;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.3);
  transform-origin: left center;
  will-change: transform, filter, opacity;
}

.and-thats {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 0.95;
}

.why-script {
  font-family: var(--font-script);
  font-size: clamp(68px, 9vw, 128px);
  line-height: 0.85;
}

.exist-bot-right {
  position: absolute;
  bottom: clamp(88px, 14vh, 138px);
  right: clamp(46px, 10vw, 150px);
  color: #ffffff;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.3);
  transform-origin: right center;
  will-change: transform, filter, opacity;
}

.we-had {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 0.95;
}

.to-exist-row {
  display: flex;
  align-items: baseline;
}

.to-word {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 44px);
  margin-right: 4px;
}

.exist-word-group {
  display: inline-flex;
  align-items: baseline;
  will-change: filter, transform;
}

.swash-e {
  width: clamp(92px, 12vw, 165px);
  height: auto;
  margin-right: -48px;
  margin-bottom: -14px;
  color: #ffffff;
}

.exist-tail {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6.2vw, 88px);
  letter-spacing: -0.02em;
}

/* Finale Portal Turbine Blades */
#finale-portal-ui {
  display: flex;
  align-items: center;
  justify-content: center;
}

.finale-portal-btn {
  position: relative;
  width: clamp(290px, 36vw, 395px);
  height: clamp(290px, 36vw, 395px);
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-arcs-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.portal-inner-caustics path {
  fill: none;
  stroke: rgba(140, 250, 195, 0.35);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.portal-turbine-ring {
  transform-origin: 150px 150px;
  animation: spinCW 16s linear infinite;
  filter: drop-shadow(0 0 12px rgba(30, 232, 102, 0.38));
}

.finale-portal-btn.charging .portal-turbine-ring {
  animation-duration: 1.4s;
}

@keyframes spinCW {
  to { transform: rotate(360deg); }
}

.finale-tap-label {
  position: relative;
  margin-left: 84px;
  margin-top: -4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
}

/* ---------------- Modals & Drawer ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 12, 9, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.28s ease;
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 32px 28px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(22, 34, 27, 0.95), rgba(10, 16, 13, 0.98));
  border: 1px solid rgba(110, 232, 152, 0.25);
  color: #f4f7f5;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 24px;
  cursor: pointer;
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #5ee68d;
  margin-bottom: 10px;
}

.modal-card h2 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(235, 242, 238, 0.76);
  margin-bottom: 20px;
}

.beta-form {
  display: flex;
  gap: 8px;
}

.beta-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13.5px;
}

.beta-submit {
  padding: 11px 18px;
  border-radius: 999px;
  border: none;
  background: #2ee86e;
  color: #09180e;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.beta-success {
  margin-top: 14px;
  font-size: 13px;
  color: #6df29c;
}

.chapters-drawer {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, calc(100vw - 32px));
  z-index: 55;
  padding: 14px;
  border-radius: 20px;
  background: rgba(18, 22, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #f4f7f5;
  transition: opacity 0.25s ease;
}

.chapters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.68);
  padding: 2px 6px 10px;
}

.chapters-head button {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

.chapters-list {
  display: grid;
  gap: 4px;
}

.chapter-item {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.chapter-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chapter-item span:last-child {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(120, 240, 165, 0.8);
}

@media (max-width: 640px) {
  .dock-beta-btn {
    padding: 0 36px;
  }
  .beta-form {
    flex-direction: column;
  }
}
