/* Her room at night: warm dark plum-obsidian, desk lamp amber glow, and cream diary paper under the lamp. */
:root {
  --night: #1a1220;
  --night-2: #261b2e;
  --lamp: #ffc24b;
  --lamp-soft: #ffc24b33;
  --paper: #f5e9d4;
  --ink: #2b2028;
  --dusk: #b8a6c4;
  --blush: #ff7a93;
  --accent-bnb: #ffc24b;
  --text-muted: #b8a6c4;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --wrap: min(1160px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--night);
  color: #f3e9f0;
  font: 17px/1.6 var(--sans);
  background-image: radial-gradient(900px 600px at 78% -10%, #ffc24b22, transparent 70%);
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 4px;
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}

.gold-inline {
  color: var(--lamp);
  font-weight: 700;
}

/* Top Bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px max(24px, calc((100vw - 1160px) / 2));
  background: #1a1220e6;
  backdrop-filter: blur(10px);
}

.name {
  font-weight: 800;
  font-size: 25px;
  text-decoration: none;
  letter-spacing: -0.03em;
  color: var(--lamp);
  margin-right: auto;
  white-space: nowrap;
}

.links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.links a {
  text-decoration: none;
  color: var(--dusk);
  font-size: 15px;
  transition: color 0.18s;
}

.links a:hover {
  color: #fff;
}

.lang {
  font: 700 13px var(--sans);
  color: var(--night);
  background: var(--lamp);
  border: 0;
  border-radius: 99px;
  padding: 6px 14px;
  cursor: pointer;
}

/* First Screen: 2-Column Editorial Hero */
.hero {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 64px;
  align-items: center;
  padding: 44px 0 76px;
  min-height: calc(100svh - 64px);
}

.onair {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #fff;
  font-size: 15px;
}

.onair i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blush);
  box-shadow: 0 0 0 0 var(--blush);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px #ff7a9300;
  }
  100% {
    box-shadow: 0 0 0 0 #ff7a9300;
  }
}

h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 9.5em;
}

.lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--dusk);
  max-width: 32em;
  margin: 22px 0 26px;
}

.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 13px;
}

.steps li {
  counter-increment: s;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 17px;
}

.steps li::before {
  content: counter(s);
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--lamp);
  color: var(--lamp);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-1px);
}

.steps b {
  color: var(--lamp);
  font-weight: 600;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  text-decoration: none;
  font: 700 16px var(--sans);
  padding: 15px 26px;
  border-radius: 99px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn.main {
  background: var(--lamp);
  color: var(--night);
  box-shadow: 0 10px 40px -10px var(--lamp);
}

.btn.main:hover {
  background: #ffd273;
  box-shadow: 0 16px 50px -10px var(--lamp);
}

.btn.ghost {
  background: transparent;
  color: #f3e9f0;
  border: 1.5px solid #ffffff38;
}

.btn.ghost:hover {
  border-color: #fff;
}

/* Her Trading Brake Card Under Buttons */
.trade {
  display: block;
  margin-top: 22px;
  max-width: 34em;
  padding: 15px 18px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  border: 1px solid color-mix(in srgb, var(--lamp) 45%, transparent);
  background: color-mix(in srgb, var(--lamp) 7%, transparent);
  transition: background 0.2s, transform 0.2s;
}

.trade:hover {
  background: color-mix(in srgb, var(--lamp) 13%, transparent);
  transform: translateY(-2px);
}

.trade-k {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lamp);
}

.trade b {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  font-weight: 700;
}

.trade b::after {
  content: " →";
  color: var(--lamp);
}

.trade > span:last-child {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--dusk);
}

/* Where to verify her */
.places {
  margin-top: 26px;
}

.places-h {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--dusk);
}

.places ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.places a,
.places .soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  text-decoration: none;
}

.places a.on {
  background: #ffc24b1a;
  color: var(--lamp);
  box-shadow: inset 0 0 0 1px #ffc24b44;
  transition: background 0.2s, transform 0.2s;
}

.places a.on:hover {
  background: #ffc24b33;
  transform: translateY(-2px);
}

.places .soon {
  color: #9e8da8;
  box-shadow: inset 0 0 0 1px #ffffff16;
  font-variant-numeric: tabular-nums;
}

/* Right Column: Her Vertical 9:13 Portrait Window & Tilted Cream Paper Quote */
.window {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 420px);
}

.window::before {
  content: "";
  position: absolute;
  inset: -12% -18% 10% -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, #ffc24b55, #ff7a9322 55%, transparent);
  filter: blur(22px);
  animation: lamp 7s ease-in-out infinite;
}

@keyframes lamp {
  50% {
    opacity: 0.72;
    transform: scale(0.97);
  }
}

.frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 120px -30px #ffc24b55, 0 0 0 1px #ffc24b28;
  background: #0e0a12;
  aspect-ratio: 9 / 13;
}

.stage-holo-rig,
.persona-avatar-ring {
  width: 100%;
  height: 100%;
}

#juji-live2d-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, #1a1220b0);
}

.tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  border-radius: 99px;
  background: #1a1220bf;
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-weight: 650;
  color: #fff;
}

.tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blush);
  flex: none;
}

.tag.tag-right {
  left: auto;
  right: 16px;
  color: var(--lamp);
  font-variant-numeric: tabular-nums;
}

.frame-bottom-bar {
  position: absolute;
  right: 16px;
  bottom: 42px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 99px;
  background: #1a1220b3;
  font-size: 11px;
  color: var(--lamp);
}

.window figcaption {
  position: relative;
  margin: -36px 20px 0 -42px;
  z-index: 3;
  background: var(--paper);
  color: var(--ink);
  padding: 16px 20px 18px;
  border-radius: 4px 18px 18px 18px;
  transform: rotate(-1.5deg);
  box-shadow: 0 18px 40px -12px #000a;
}

.q-label {
  display: block;
  font-size: 12.5px;
  color: #7a6672;
  margin-bottom: 4px;
}

.window q {
  font: 16.5px/1.5 var(--serif);
  quotes: none;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: #8a4b12;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Compact Voice & Move Controls Under Her Portrait */
.window-controls {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ctrl-top-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.voice-chip {
  font: 600 12.5px var(--sans);
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid #ffc24b40;
  background: #ffc24b14;
  color: #f3e9f0;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}

.voice-chip.active,
.voice-chip:hover {
  background: #ffc24b2e;
  color: var(--lamp);
}

.moves-drawer {
  margin: 0;
  font-size: 12.5px;
  color: var(--dusk);
}

.moves-drawer summary {
  cursor: pointer;
  user-select: none;
  padding: 4px 2px;
  color: var(--dusk);
  transition: color 0.18s;
}

.moves-drawer summary:hover {
  color: var(--lamp);
}

.moves-pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.move-btn {
  font: 600 12px var(--sans);
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid #ffffff1c;
  background: #ffffff0a;
  color: var(--dusk);
  cursor: pointer;
  transition: all 0.16s;
}

.move-btn:hover,
.move-btn.active {
  background: var(--lamp);
  color: var(--night);
  border-color: var(--lamp);
  font-weight: 700;
}

/* Section 2: Giant Borderless On-Chain Numbers */
.night {
  width: var(--wrap);
  margin: 0 auto;
  padding: 12px 0 88px;
}

.night h2 {
  font-size: 21px;
  color: var(--dusk);
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.nums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  border-top: 1px solid #ffffff1f;
}

.nums div {
  padding: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nums dd {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--lamp);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  order: -1;
}

.nums dt {
  color: #f3e9f0;
  font-size: 15px;
  font-weight: 600;
}

.nums small {
  color: var(--dusk);
  font-size: 12.5px;
}

/* Section 3: Her Diary — Real Tilted Cream Paper Pages Under Her Desk Lamp */
.diary {
  background: linear-gradient(#281b30, #211628);
  padding: 96px 0 110px;
}

.diary-head,
.pages {
  width: var(--wrap);
  margin: 0 auto;
}

.diary-head p {
  color: var(--dusk);
  margin: 12px 0 44px;
  max-width: 36em;
}

.pages {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 34px 40px;
  align-items: start;
}

.page:first-child {
  grid-row: span 2;
}

.page:not(:first-child) {
  grid-column: 2;
}

.page {
  background: var(--paper);
  color: var(--ink);
  padding: 30px 32px 28px;
  border-radius: 3px;
  box-shadow: 0 1px 0 #fff8 inset, 0 30px 60px -24px #000c;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}

.page:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: 0 1px 0 #fff8 inset, 0 40px 70px -24px #000e;
}

.page:nth-child(3n + 1) {
  transform: rotate(-0.8deg);
}

.page:nth-child(3n + 2) {
  transform: rotate(0.6deg);
}

.page time {
  font-size: 13.5px;
  color: #8b7280;
}

.page h3 {
  font: 700 24px/1.25 var(--serif);
  margin: 6px 0 14px;
  color: #1f151c;
}

.page .body p {
  font: 17px/30px var(--serif);
  margin: 0 0 22px;
  max-width: 34em;
}

.page .body p:last-child {
  margin-bottom: 0;
}

/* Section 4: Vertical Lamp-Lit Timeline for Live Chat, Ungraduated Sprint & On-Chain Verifiers */
.changes {
  width: var(--wrap);
  margin: 0 auto;
  padding: 100px 0 40px;
}

.changes .sub {
  color: var(--dusk);
  max-width: 40em;
  margin: 12px 0 52px;
}

.log {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 64px;
  border-left: 2px solid var(--lamp-soft);
}

.log li {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
  padding-left: 36px;
  position: relative;
}

.log li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lamp);
}

.log li:first-child::before {
  box-shadow: 0 0 0 6px #ffc24b26, 0 0 24px var(--lamp);
}

.log time {
  color: var(--lamp);
  font-size: 14px;
  font-weight: 600;
}

.log h3 {
  font-size: 26px;
  margin: 6px 0 12px;
}

.log p {
  margin: 0 0 16px;
  color: #dccfdc;
  max-width: 32em;
  font-size: 16px;
}

.quick-ask-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-pill {
  font: 600 13px var(--sans);
  padding: 7px 14px;
  border-radius: 99px;
  border: 0;
  background: #ffc24b1c;
  color: var(--lamp);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}

.quick-pill:hover {
  background: #ffc24b33;
  transform: translateY(-1px);
}

.stage-surface {
  background: var(--night-2);
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-stream {
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.chat-msg {
  padding: 12px 15px;
  border-radius: 14px;
  background: #1a1220a8;
  font-size: 14.5px;
  line-height: 1.55;
}

.chat-msg.streamer {
  background: color-mix(in srgb, var(--lamp) 10%, #1a1220);
}

.chat-msg .meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--lamp);
  margin-bottom: 4px;
  font-weight: 600;
}

.say-row {
  display: flex;
  gap: 10px;
}

.say-row input {
  flex: 1;
  background: #140d19;
  border: 1px solid #ffffff22;
  color: #fff;
  padding: 12px 16px;
  border-radius: 99px;
  font: 14.5px var(--sans);
}

.say-row input:focus {
  outline: none;
  border-color: var(--lamp);
}

.say-row button {
  background: var(--lamp);
  color: var(--night);
  font: 700 14.5px var(--sans);
  border: 0;
  border-radius: 99px;
  padding: 0 22px;
  cursor: pointer;
}

.race-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
}

.race-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: #1a1220b3;
}

.race-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.race-sym {
  font-weight: 700;
  color: #fff;
}

.race-bnb {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--lamp);
}

.progress-track {
  height: 6px;
  border-radius: 99px;
  background: #ffffff14;
  overflow: hidden;
  margin: 8px 0 6px;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--lamp);
}

.race-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--dusk);
}

.tx-item,
.pod-note {
  padding: 12px 15px;
  border-radius: 14px;
  background: #1a1220a8;
  font-size: 14px;
  line-height: 1.6;
  color: #e4d8e8;
}

.tx-item-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-weight: 600;
}

.claim-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #ffc24b1c;
  font-size: 14px;
}

.claim-cta-link {
  color: var(--lamp);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Section 5: About Her & Her 4 Iron Rules */
.about {
  width: var(--wrap);
  margin: 0 auto;
  padding: 100px 0 110px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  margin-top: 36px;
}

.story p {
  font: 19px/1.8 var(--serif);
  margin: 0 0 22px;
  max-width: 32em;
  color: #f3e9f0;
}

.rules {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  align-self: start;
}

.rules li {
  padding: 18px 0;
  border-top: 1px solid #ffffff1f;
  color: #e7dcea;
  font-size: 16.5px;
}

.rules li:last-child {
  border-bottom: 1px solid #ffffff1f;
}

/* Footer */
.foot {
  border-top: 1px solid #ffffff1a;
  padding: 40px max(24px, calc((100vw - 1160px) / 2)) 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  color: var(--dusk);
}

.foot p {
  margin: 0;
  font-size: 20px;
  color: #fff;
  font-weight: 600;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.foot-links a {
  color: var(--lamp);
  text-decoration: none;
}

/* 16:9 Pure Broadcast Stage Mode (stage.html) */
body.stage-broadcast-mode {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #0e0a12;
}

.broadcast-canvas-frame {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.broadcast-top-bar {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.broadcast-brand-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 99px;
  background: #1a1220d9;
  backdrop-filter: blur(12px);
}

.broadcast-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.broadcast-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}

.live-pill {
  background: var(--blush);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
}

.broadcast-sub {
  font-size: 12px;
  color: var(--dusk);
}

.broadcast-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.hud-badge,
.utc-badge,
.btn-chip {
  padding: 6px 12px;
  border-radius: 99px;
  background: #1a1220d9;
  color: #f3e9f0;
  font-size: 12px;
  border: 1px solid #ffc24b33;
}

.hud-badge.gold {
  color: var(--lamp);
  font-weight: 700;
}

.broadcast-side-overlay {
  position: absolute;
  top: 86px;
  right: 24px;
  bottom: 24px;
  width: 350px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.broadcast-glass-card {
  background: #1a1220cc;
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.broadcast-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--lamp);
}

.chat-messages.compact {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  background: #120c18;
  border: 1px solid #ffffff24;
  color: #fff;
  border-radius: 99px;
  padding: 8px 12px;
  font-size: 12.5px;
}

.chat-input-row button {
  background: var(--lamp);
  color: var(--night);
  border: 0;
  border-radius: 99px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 12.5px;
}

.broadcast-lower-third {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 396px;
  z-index: 10;
}

.broadcast-subtitle {
  background: var(--paper);
  color: var(--ink);
  padding: 16px 22px;
  border-radius: 6px 20px 20px 20px;
  box-shadow: 0 20px 50px -12px #000c;
}

.subtitle-speaker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #7a6672;
  margin-bottom: 6px;
}

.speaker-left {
  display: flex;
  gap: 10px;
  font-weight: 700;
}

.speaker-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subtitle-text {
  font: 18px/1.5 var(--serif);
  color: var(--ink);
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 28px;
    min-height: 0;
  }
  .window {
    justify-self: center;
    width: min(100%, 360px);
  }
  .window figcaption {
    margin: -26px -8px 0 -8px;
  }
  .nums {
    grid-template-columns: repeat(2, 1fr);
  }
  .pages {
    grid-template-columns: 1fr;
  }
  .page:first-child {
    grid-row: auto;
  }
  .page:not(:first-child) {
    grid-column: auto;
  }
  .log li {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-left: 24px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 720px) {
  .bar {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 12px 16px;
  }
  .name {
    font-size: 21px;
  }
  .links {
    order: 3;
    flex: 1 1 100%;
    gap: 14px;
    font-size: 13px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
  }
  .hero {
    padding-bottom: 48px;
  }
  .btn {
    flex: 1 1 100%;
  }
  .page {
    padding: 24px 22px;
  }
  .diary,
  .changes,
  .about {
    padding-top: 72px;
  }
}
