.hud {
  --milk: rgba(250, 248, 243, 0.62);
  --milk-strong: rgba(252, 250, 246, 0.82);
  --edge: rgba(255, 255, 255, 0.75);
  --line: rgba(30, 52, 58, 0.10);
  --ink: #17282d;
  --ink-2: #4c5d61;
  --ink-3: #8a9799;
  --teal: #1d4f57;
  --amber: #b7792b;
  --cool: #3c6f9a;
  --blur: blur(22px) saturate(1.25);
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 50px -24px rgba(40, 52, 50, 0.35);
  position: fixed; inset: 0; z-index: 10; pointer-events: none;
  font-family: 'Inter', system-ui, sans-serif; color: var(--ink);
  font-size: 13px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
.hud * { box-sizing: border-box; }
.hud button, .hud a, .hud input, .hud section, .hud aside { pointer-events: auto; }
.hud button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.hud .k { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.hud h2 { margin: 0; font-weight: 400; }

/* pre-entry: only token corner + hint */
.hud > *:not(.hx-token):not(.hx-hint):not(.hx-mark) { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.hud.entered > *:not(.hx-token):not(.hx-hint):not(.hx-sheet) { opacity: 1; visibility: visible; transition: opacity 1.2s ease .3s, visibility 0s; }
.hud .hx-mark { opacity: 0; }
.hud.entered .hx-mark { opacity: 1; }

/* wordmark */
.hx-mark { position: absolute; top: 26px; left: 30px; pointer-events: none; }
.hx-mark span { font-family: 'Instrument Serif', Georgia, serif; font-size: 34px; letter-spacing: -.01em; color: var(--teal); line-height: 1; }

/* hint */
.hx-hint {
  position: absolute; left: 50%; bottom: 9vh; transform: translateX(-50%); margin: 0;
  font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 22px;
  color: rgba(23, 40, 45, .55); letter-spacing: .02em; transition: opacity 1s ease, transform 1.2s ease;
}
.hud.entered .hx-hint { opacity: 0; transform: translate(-50%, 12px); }

/* glass base */
.hx-vitals, .hx-token, .hx-sheet, .hv-panel, .hx-feed-btn, .hv-handle {
  background: var(--milk); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--edge); box-shadow: var(--shadow);
}

/* vitals */
.hx-vitals { position: absolute; left: 30px; bottom: 30px; width: 236px; border-radius: 18px; padding: 16px 18px 14px; }
.hx-phase { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hx-phase strong { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 24px; color: var(--teal); line-height: 1; }
.hx-vitals[data-phase="frozen"] .hx-phase strong { color: var(--cool); }
.hx-vitals dl { margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
.hx-vitals dl div { min-width: 0; }
.hx-vitals dt { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hx-vitals dd { margin: 1px 0 0; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* token corner */
.hx-token { position: absolute; top: 24px; right: 30px; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 14px; }
.hx-ca { min-width: 0; }
.hx-none { font-size: 12.5px; color: var(--ink-2); }
.hx-copy { display: flex; align-items: center; gap: 8px; padding: 0; }
.hx-copy code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; color: var(--ink); }
.hx-copied { font-size: 11px; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(29,79,87,.3); }
.hx-buy { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 10px; background: var(--teal); color: #f6f3ea; font-weight: 500; font-size: 13px; text-decoration: none; transition: background .2s; white-space: nowrap; }
.hx-buy:hover { background: #163f46; }
.hx-buy.is-off { background: rgba(29, 79, 87, .14); color: rgba(23, 40, 45, .45); cursor: not-allowed; }

/* inner voice floating lines */
.hv-stage { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hv-line {
  position: absolute; left: 50%; top: 50%; margin: 0; max-width: min(520px, 80vw);
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
  font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(19px, 2vw, 26px); line-height: 1.25;
  color: rgba(23, 40, 45, .82); text-align: center; text-shadow: 0 0 22px rgba(255, 252, 244, .9);
  transition: opacity 5s ease, transform 6s cubic-bezier(.2,.6,.3,1), filter 5s ease;
}
.hv-line.drift { opacity: 0; filter: blur(3px); transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 60px)); }

/* drawer */
.hv-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 380px; transform: translateX(100%); transition: transform .55s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.hv-drawer.open { transform: translateX(0); }
.hv-handle {
  position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: 0;
  width: 34px; height: 128px; border-radius: 12px 0 0 12px; border-right: 0;
  display: flex; align-items: center; justify-content: center; color: var(--ink-2);
}
.hv-handle span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.hv-handle:hover { color: var(--ink); }
.hv-panel { position: absolute; inset: 14px 14px 14px 0; border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; background: var(--milk-strong); }
.hv-head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px 22px; border-bottom: 1px solid var(--line); }
.hv-head h2 { font-family: 'Instrument Serif', Georgia, serif; font-size: 26px; color: var(--teal); line-height: 1; }
.hv-count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.h-x { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); }
.h-x:hover { background: rgba(23,40,45,.06); color: var(--ink); }
.hv-list { list-style: none; margin: 0; padding: 6px 0 20px; overflow-y: auto; flex: 1; }
.hv-item { padding: 14px 22px; border-bottom: 1px solid var(--line); }
.hv-item p { margin: 0; font-size: 14px; color: var(--ink); }
.hv-meta { display: flex; gap: 10px; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
.hv-meta a { margin-left: auto; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(29,79,87,.3); }
.hv-item.is-right .hv-meta span:first-child { color: var(--amber); }
.hv-item.is-wrong .hv-meta span:first-child { color: var(--cool); }
.hv-empty { padding: 60px 30px; text-align: center; }
.hv-empty p { margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-size: 22px; color: var(--ink); }
.hv-empty .sub { margin-top: 6px; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--ink-3); }

/* sheets (lobe + feed) */
.hud .hx-sheet { visibility: hidden; transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1), visibility 0s .5s; }
.hud.entered .hx-sheet.open { visibility: visible; transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.hx-sheet {
  position: absolute; left: 50%; bottom: 30px; width: 380px; max-height: calc(100vh - 140px); overflow-y: auto;
  border-radius: 22px; padding: 20px 22px 22px; background: var(--milk-strong);
  opacity: 0; pointer-events: none; transform: translate(-50%, 18px) scale(.985);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.hx-lobe { left: auto; right: 74px; bottom: auto; top: 50%; transform: translate(0, calc(-50% + 14px)); }
.hud.entered .hx-sheet.open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.hud.entered .hx-lobe.open { transform: translate(0, -50%); }
.hx-lobe-head { display: flex; align-items: flex-start; justify-content: space-between; }
.hx-lobe-head h2 { font-family: 'Instrument Serif', Georgia, serif; font-size: 46px; line-height: 1; color: var(--ink); margin-top: 4px; }
.hx-feed .hx-lobe-head h2 { font-size: 32px; color: var(--teal); }
.hx-mood { margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.hx-mood.warm { color: var(--amber); }
.hx-mood.cool { color: var(--cool); }
.hx-spark { display: block; width: 100%; height: 44px; margin-top: 12px; }
.hx-spark path { fill: none; stroke: var(--teal); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hx-rows, .hx-pos { margin-top: 16px; border-top: 1px solid var(--line); }
.hx-rows > div, .hx-pos > div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.hx-rows .k, .hx-pos .k { display: inline; }
.hx-guess { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hx-guess li { display: grid; grid-template-columns: 1.2fr .7fr .8fr .6fr; padding: 5px 0; color: var(--ink-2); }
.hx-guess li.r span:last-child { color: var(--amber); }
.hx-guess li.w span:last-child { color: var(--cool); }
.hx-lt p { margin: 12px 0 0; font-size: 13px; color: var(--ink); }
.hx-lt time { color: var(--ink-3); font-size: 11.5px; }
.hx-lt a, .hx-msg a { color: var(--teal); }
.hx-note { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); }
.hx-note.strong { color: var(--ink-2); padding: 10px 12px; border-radius: 10px; background: rgba(29, 79, 87, .06); }

/* feed trigger */
.hx-feed-btn { position: absolute; right: 30px; bottom: 30px; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px 0 14px; border-radius: 14px; color: var(--teal); font-weight: 500; transition: background .2s; }
.hx-feed-btn:hover, .hx-feed-btn.active { background: var(--milk-strong); }
.hx-feed { left: auto; right: 30px; bottom: 84px; transform: translate(0, 18px); width: 340px; }
.hud.entered .hx-feed.open { transform: translate(0, 0); }
.hx-lede { margin: 10px 0 0; color: var(--ink-2); font-size: 13px; }
.hx-field { display: block; margin-top: 16px; }
.hx-field > span:first-child { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.hx-input { display: flex; align-items: center; margin-top: 6px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.7); border: 1px solid var(--line); padding: 0 14px; }
.hx-input input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 500 18px 'Inter', sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.hx-input em { font-style: normal; color: var(--ink-3); font-size: 13px; }
.hx-field.off { opacity: .5; }
.hx-actions { margin-top: 12px; }
.hx-primary { width: 100%; height: 44px; border-radius: 12px; background: var(--teal) !important; color: #f6f3ea !important; font-weight: 500; }
.hx-primary:disabled { background: rgba(29, 79, 87, .14) !important; color: rgba(23, 40, 45, .45) !important; cursor: not-allowed; }
.hx-ghost { margin-top: 12px; width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--line) !important; color: var(--ink) !important; }
.hx-ghost:disabled { color: var(--ink-3) !important; cursor: not-allowed; }
.hx-msg { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-2); word-break: break-word; }

.hud :focus-visible { outline: 2px solid rgba(29, 79, 87, .45); outline-offset: 2px; }

/* phone: bottom sheets */
@media (max-width: 640px) {
  .hx-mark { top: 18px; left: 16px; }
  .hx-mark span { font-size: 28px; }
  .hx-token { top: auto; bottom: 16px; left: 16px; right: 16px; justify-content: space-between; padding-left: 14px; }
  .hx-vitals { top: 62px; bottom: auto; left: 16px; right: 16px; width: auto; padding: 12px 14px; border-radius: 16px; }
  .hx-phase { padding-bottom: 8px; }
  .hx-phase strong { font-size: 20px; }
  .hx-vitals dl { grid-template-columns: repeat(3, 1fr); gap: 7px 10px; margin-top: 8px; }
  .hx-vitals dd { font-size: 13px; }
  .hx-feed-btn { right: 16px; bottom: 80px; height: 40px; }
  .hx-hint { bottom: 96px; }
  .hx-sheet, .hx-lobe, .hx-feed {
    left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 78vh;
    border-radius: 22px 22px 0 0; padding: 18px 20px calc(22px + env(safe-area-inset-bottom));
    transform: translateY(100%); z-index: 3;
  }
  .hx-sheet::before { content: ''; display: block; width: 38px; height: 4px; border-radius: 2px; background: rgba(23,40,45,.16); margin: -6px auto 12px; }
  .hud.entered .hx-sheet.open, .hud.entered .hx-lobe.open, .hud.entered .hx-feed.open { transform: translateY(0); }
  .hv-drawer { width: 100%; z-index: 4; }
  .hv-panel { inset: 64px 0 0 0; border-radius: 22px 22px 0 0; }
  .hv-handle { top: auto; bottom: 136px; transform: none; width: 30px; height: 100px; }
  .hv-drawer.open .hv-handle { opacity: 0; pointer-events: none; }
}

/* ===== quiet pass (reference: whisper chrome) ===== */
.hud { font-size: 11.5px; font-weight: 300; --milk: rgba(250,248,243,.28); --milk-strong: rgba(250,248,243,.5); --edge: rgba(255,255,255,.45); --shadow: 0 20px 60px -40px rgba(40,52,50,.25); --blur: blur(28px) saturate(1.1); }
.hud .k { font-size: 9.5px; letter-spacing: .16em; font-weight: 400; }
.hx-mark span { font-size: 22px; font-weight: 400; }
.hx-vitals { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; width: 210px; padding: 0; }
.hx-phase { border-bottom: 1px solid rgba(23,40,45,.08); }
.hx-phase strong { font-size: 20px; font-style: italic; }
.hx-vitals dt { font-size: 9.5px; letter-spacing: .16em; }
.hx-vitals dd { font-size: 12px; font-weight: 400; color: var(--ink-2); }
.hx-token { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; gap: 18px; top: 30px; }
.hx-ca { text-align: right; }
.hx-none, .hx-copy code { font-size: 11px; color: var(--ink-2); }
.hx-buy { height: auto; padding: 0 0 2px; border-radius: 0; background: none; color: var(--teal); font-size: 11.5px; font-weight: 500; border-bottom: 1px solid rgba(29,79,87,.5); letter-spacing: .02em; }
.hx-buy:hover { background: none; border-bottom-color: var(--teal); }
.hx-buy.is-off { background: none; color: var(--ink-3); border-bottom-color: rgba(23,40,45,.15); }
.hx-feed-btn { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; height: auto; padding: 0; font-size: 11.5px; letter-spacing: .02em; }
.hx-feed-btn:hover, .hx-feed-btn.active { background: none; color: var(--ink); }
.hx-feed-btn svg { width: 12px; height: 12px; }
.hv-handle { width: 22px; height: 96px; background: rgba(250,248,243,.22); box-shadow: none; border-color: rgba(255,255,255,.35); }
.hv-handle span { font-size: 9.5px; letter-spacing: .2em; font-weight: 400; color: var(--ink-3); }
.hv-panel { border-color: rgba(255,255,255,.4); }
.hv-head h2 { font-size: 20px; font-style: italic; }
.hv-item p { font-size: 13px; font-weight: 300; }
.hv-empty p { font-size: 19px; font-style: italic; }
.hv-empty .sub { font-size: 11.5px; font-weight: 300; }
.hv-line { font-size: clamp(16px, 1.6vw, 21px); font-style: italic; color: rgba(23,40,45,.7); }
.hx-sheet { width: 300px; padding: 18px 20px 20px; border-radius: 16px; }
.hx-lobe { right: 64px; overflow: visible; }
.hx-lobe-head h2 { font-size: 30px; font-weight: 400; }
.hx-lobe-head h2::after { content: attr(data-ghost); }
.hx-ghost-type { position: absolute; right: 100%; top: 50%; transform: translate(-6vw, -50%); font-family: 'Instrument Serif', Georgia, serif; font-size: min(30vw, 420px); line-height: .8; color: rgba(29,79,87,.06); pointer-events: none; white-space: nowrap; letter-spacing: -.03em; }
.hx-mood { font-size: 12.5px; font-weight: 400; }
.hx-rows > div, .hx-pos > div { font-size: 11.5px; padding: 8px 0; border-bottom-color: rgba(23,40,45,.06); }
.hx-rows, .hx-pos { border-top-color: rgba(23,40,45,.06); }
.hx-note, .hx-lede { font-size: 11.5px; font-weight: 300; }
.hx-note.strong { background: none; padding: 0; color: var(--ink-2); }
.hx-feed { width: 290px; bottom: 60px; }
.hx-feed .hx-lobe-head h2 { font-size: 24px; font-style: italic; }
.hx-input { height: 40px; background: rgba(255,255,255,.35); border-color: rgba(23,40,45,.07); }
.hx-input input { font-size: 15px; font-weight: 400; }
.hx-primary { height: 36px; border-radius: 10px; font-size: 12px; }
.hx-ghost { height: 32px; border: 0 !important; font-size: 11.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(23,40,45,.2); }
.hx-cursor { position: fixed; left: 0; top: 0; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--ink); opacity: 0; pointer-events: none !important; z-index: 20; }
.hud.entered .hx-cursor { opacity: .75; }
@media (pointer: coarse) { .hx-cursor { display: none; } }
@media (max-width: 640px) {
  .hx-vitals { top: 56px; }
  .hx-token { bottom: 22px; }
  .hx-feed-btn { bottom: 56px; }
  .hx-ghost-type { display: none; }
  .hx-sheet, .hx-lobe, .hx-feed { width: auto; border-radius: 18px 18px 0 0; background: rgba(250,248,243,.72); }
}
@media (max-width: 640px) {
  .hx-token { top: auto; bottom: 22px; left: 16px; right: 16px; }
  .hx-ca { text-align: left; }
  .hx-vitals { width: auto; right: 16px; }
  .hx-sheet, .hx-lobe, .hx-feed { left: 0; right: 0; bottom: 0; top: auto; width: auto; }
  .hx-feed-btn { right: 16px; bottom: 64px; }
  .hx-hint { bottom: 110px; }
}
.hv-drawer { z-index: 5; }
.hv-drawer.open .hv-handle { opacity: 0; pointer-events: none; }
.hx-sheet { z-index: 3; }

/* ===== story chapters ===== */
.hud.story .hx-hint { display: none; }
.hud.story > .hs { opacity: 1 !important; visibility: visible !important; }
.hs { position: absolute; inset: 0; pointer-events: none; }
.hs button { pointer-events: auto; }

.hs-text {
  position: absolute; left: 30px; bottom: 86px; margin: 0; max-width: 360px;
  font-size: 19px; line-height: 1.32; font-weight: 400; letter-spacing: -.01em; color: var(--ink);
  opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.hs-text.in { opacity: 1; transform: none; }
.hs-text span {
  --a: 0;
  opacity: calc(.16 + .84 * var(--a));
  filter: blur(calc((1 - var(--a)) * 2.2px));
  transition: opacity .35s ease, filter .35s ease;
}

.hs-mark { position: absolute; top: 22px; right: 30px; text-align: right; }
.hs-mark-v {
  display: block; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(54px, 6.4vw, 96px); line-height: .9; letter-spacing: -.02em; color: var(--ink);
}
.hs-mark.long .hs-mark-v { font-size: clamp(44px, 5vw, 76px); }
.hs-mark-v.in { animation: hsIn 1s cubic-bezier(.2,.7,.2,1); }
@keyframes hsIn { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
.hs-mark-s { display: block; margin-top: 8px; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); min-height: 1em; }

.hs-cue { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 10px; transform: translate(-13px, -13px); font-size: 11px; color: var(--ink-2); transition: opacity .6s ease; }
.hs-cue.gone { opacity: 0; }
.hs-ring { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(23,40,45,.35); display: grid; place-items: center; }
.hs-ring i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink); }
.hud.story:not(.entered) .hx-cursor { opacity: 0; }

.hs-bar { position: absolute; left: 30px; right: 30px; bottom: 22px; height: 20px; display: flex; align-items: center; justify-content: space-between; }
.hs-chap { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--ink); }
.hs-line { position: relative; width: 64px; height: 1px; background: rgba(23,40,45,.16); overflow: hidden; }
.hs-line i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform .2s linear; }
.hs-skip { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ink-2); padding: 4px 8px; }
.hs-skip:hover { color: var(--ink); }
.hs-sound { width: 24px; height: 20px; display: grid; place-items: center; color: var(--ink-2); }
.hs-sound .b { transition: d .3s; }
.hs-sound .b1 { d: path('M1 5.5v1'); } .hs-sound .b2 { d: path('M4 5v2'); } .hs-sound .b3 { d: path('M7 5.5v1'); } .hs-sound .b4 { d: path('M10 5v2'); } .hs-sound .b5 { d: path('M13 5.5v1'); }
.hs-sound.on { color: var(--ink); }
.hs-sound.on .b1 { d: path('M1 4v4'); } .hs-sound.on .b2 { d: path('M4 1.5v9'); } .hs-sound.on .b3 { d: path('M7 3v6'); } .hs-sound.on .b4 { d: path('M10 1v10'); } .hs-sound.on .b5 { d: path('M13 4v4'); }

/* re-home existing parts around the story layout */
.hud.story .hx-vitals { left: 30px; bottom: auto; top: 70px; width: 190px; }
.hud.story .hx-token { top: auto; bottom: 58px; right: 30px; transition: all .8s cubic-bezier(.2,.7,.2,1); }
.hud.story .hx-feed-btn { bottom: 100px; }
.hud.story .hx-feed { bottom: 130px; }
.hud.story.st-early .hx-vitals, .hud.story.st-early .hv-drawer, .hud.story.st-early .hx-feed-btn { opacity: 0 !important; visibility: hidden !important; }
/* The Pot: feed featured */
.hud.story.st-pot .hx-feed-btn { bottom: 104px; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 26px; color: var(--teal); gap: 12px; }
.hud.story.st-pot .hx-feed-btn svg { width: 18px; height: 18px; }
.hud.story.st-out .hx-feed-btn { opacity: 0 !important; visibility: hidden !important; }
/* Out again: token big */
.hud.story.st-out .hx-token { bottom: 50%; right: 30px; transform: translateY(50%); flex-direction: column; align-items: flex-end; gap: 16px; }
.hud.story.st-out .hx-token .k { font-size: 10.5px; }
.hud.story.st-out .hx-none, .hud.story.st-out .hx-copy code { font-size: 16px; color: var(--ink); }
.hud.story.st-out .hx-buy { height: 46px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--teal); color: #f6f3ea; font-size: 14px; }
.hud.story.st-out .hx-buy.is-off { background: rgba(29,79,87,.12); color: rgba(23,40,45,.45); }
.hud.story.st-out .hx-vitals { opacity: .0 !important; visibility: hidden !important; }

@media (max-width: 640px) {
  .hs-text { left: 16px; right: 16px; bottom: 74px; max-width: none; font-size: 17px; }
  .hs-mark { top: 16px; right: 16px; }
  .hs-mark-v { font-size: 52px; }
  .hs-bar { left: 16px; right: 16px; bottom: 16px; }
  .hud.story .hx-vitals { top: 112px; left: 16px; right: 16px; width: auto; }
  .hud.story .hx-vitals dl { grid-template-columns: repeat(3, 1fr); }
  .hud.story .hx-token { left: auto; right: 16px; top: 112px; bottom: auto; }
  .hud.story.st-mid .hx-token { opacity: 0; visibility: hidden; }
  .hud.story .hx-feed-btn { bottom: 190px; right: 16px; }
  .hud.story.st-pot .hx-feed-btn { bottom: 200px; left: 16px; right: auto; font-size: 22px; }
  .hud.story.st-out .hx-token { top: 50%; bottom: auto; left: 16px; right: 16px; transform: translateY(-50%); align-items: stretch; }
  .hud.story.st-out .hx-ca { text-align: left; }
  .hud.story.st-out .hx-buy { justify-content: center; }
  .hud.story .hv-handle { bottom: 240px; }
}
.hud.story.st-out .hx-token { right: 70px; }
@media (max-width: 640px) {
  .hud.story .hx-vitals { top: 132px; }
  .hud.story.st-out .hx-token { right: 16px; left: 16px; }
  .hud.story.st-out .hv-handle { opacity: 0; pointer-events: none; }
}

.hx-x{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;color:currentColor;opacity:.55;transition:opacity .2s}
.hx-x:hover{opacity:1}
