/* Shared immersive layer for the confirmed heartbeat-story runtime. */
body[data-heartbeat-runtime] .motion-toggle[aria-pressed="true"]{border-color:color-mix(in srgb,var(--gold) 42%,transparent);color:var(--text)}

body[data-heartbeat-runtime] #contractScreen{padding:12px var(--safe-r)}
body[data-heartbeat-runtime] #contractScreen .contract-sheet{
  position:relative;height:100%;min-height:0;padding:16px 22px 12px;overflow:hidden;border:0;
  background:radial-gradient(circle at 72% 32%,color-mix(in srgb,var(--gold) 8%,transparent),transparent 24%),linear-gradient(180deg,rgba(255,255,255,.018),transparent 42%),#000;
  box-shadow:none;
}
body[data-heartbeat-runtime] #contractScreen .contract-head{padding-bottom:7px}
body[data-heartbeat-runtime] #contractScreen .contract-title{padding:8px 0 5px}
body[data-heartbeat-runtime] #contractScreen .contract-title h1{margin:2px 0;font-size:clamp(20px,2.45vw,31px)}
body[data-heartbeat-runtime] #contractScreen .contract-sheet blockquote{position:absolute;right:22px;top:49px;width:min(39%,380px);margin:0;background:transparent}
body[data-heartbeat-runtime] #contractScreen .contract-choice-head{margin:1px 0 2px}

body[data-heartbeat-runtime] .relationship-route{position:relative;height:148px;margin:0 0 5px;isolation:isolate}
body[data-heartbeat-runtime] .relationship-route::before{position:absolute;inset:8% 1% 10%;content:"";pointer-events:none;background:radial-gradient(ellipse at 48% 55%,color-mix(in srgb,var(--gold) 5%,transparent),transparent 58%)}
body[data-heartbeat-runtime] .relationship-route__line{position:absolute;z-index:-1;inset:5px 0 0;width:100%;height:calc(100% - 5px);overflow:visible}
body[data-heartbeat-runtime] .relationship-route__line path{fill:none;stroke:color-mix(in srgb,var(--gold) 28%,transparent);stroke-width:1.2;stroke-dasharray:2 5;vector-effect:non-scaling-stroke}
body[data-heartbeat-runtime] #contractScreen .boundary-options{position:absolute;inset:0;display:block!important}
body[data-heartbeat-runtime] #contractScreen .boundary-option{
  --x:0%;--y:50%;position:absolute;left:var(--x);top:var(--y);width:18%;min-width:0;min-height:60px;height:auto;padding:0 0 0 37px;
  transform:translate(-50%,-50%);overflow:visible;border:0;background:transparent;box-shadow:none;text-align:left;
}
body[data-heartbeat-runtime] #contractScreen .boundary-option:nth-child(1){--x:7%;--y:67%}
body[data-heartbeat-runtime] #contractScreen .boundary-option:nth-child(2){--x:27%;--y:36%}
body[data-heartbeat-runtime] #contractScreen .boundary-option:nth-child(3){--x:49%;--y:56%}
body[data-heartbeat-runtime] #contractScreen .boundary-option:nth-child(4){--x:71%;--y:30%}
body[data-heartbeat-runtime] #contractScreen .boundary-option:nth-child(5){--x:92%;--y:53%}
body[data-heartbeat-runtime] #contractScreen .boundary-option>i{
  position:absolute;left:0;top:50%;width:29px;height:29px;margin:0;display:grid;place-items:center;transform:translateY(-50%);
  border:1px solid rgba(255,255,255,.27);border-radius:50%;background:#050507;color:var(--soft);font-size:9px;
  transition:border-color .18s,background-color .18s,box-shadow .18s;
}
body[data-heartbeat-runtime] #contractScreen .boundary-option>i::after{position:absolute;inset:-6px;content:"";border:1px solid transparent;border-radius:50%}
body[data-heartbeat-runtime] #contractScreen .boundary-option .option-copy>em{margin-bottom:2px;color:var(--soft);font-size:8px}
body[data-heartbeat-runtime] #contractScreen .boundary-option strong{font-size:11px;line-height:1.35}
body[data-heartbeat-runtime] #contractScreen .boundary-option small,body[data-heartbeat-runtime] #contractScreen .boundary-option .story-choice-arrow{display:none!important}
body[data-heartbeat-runtime] #contractScreen .boundary-option:hover,body[data-heartbeat-runtime] #contractScreen .boundary-option:focus-visible,body[data-heartbeat-runtime] #contractScreen .boundary-option.selected{background:transparent;box-shadow:none}
body[data-heartbeat-runtime] #contractScreen .boundary-option:hover>i,body[data-heartbeat-runtime] #contractScreen .boundary-option:focus-visible>i{border-color:var(--gold);color:var(--gold)}
body[data-heartbeat-runtime] #contractScreen .boundary-option.selected>i{border-color:var(--gold);background:color-mix(in srgb,var(--gold) 10%,transparent);color:var(--gold);box-shadow:0 0 18px color-mix(in srgb,var(--gold) 20%,transparent)}
body[data-heartbeat-runtime] #contractScreen .boundary-option.selected>i::after{border-color:color-mix(in srgb,var(--gold) 30%,transparent)}
body[data-heartbeat-runtime] #contractScreen .boundary-option.selected strong{color:var(--gold)}
body[data-heartbeat-runtime] #contractScreen .boundary-option.completed:not(.selected)>i{border-color:rgba(94,234,212,.62);color:var(--mint)}
body[data-heartbeat-runtime] #contractScreen .boundary-option.completed>i::before{position:absolute;right:-5px;bottom:-5px;width:14px;height:14px;content:"✓";display:grid;place-items:center;border:1px solid rgba(94,234,212,.58);border-radius:50%;color:var(--mint);background:#050507;font:8px/1 "DM Mono",monospace}

body[data-heartbeat-runtime] .route-preview{min-height:48px;padding:7px 11px;border-left:2px solid var(--gold);background:rgba(255,255,255,.022)}
body[data-heartbeat-runtime] .route-preview small,body[data-heartbeat-runtime] .route-preview strong,body[data-heartbeat-runtime] .route-preview p{display:block;margin:0}
body[data-heartbeat-runtime] .route-preview small{color:var(--soft);font:8px/1.35 "DM Mono",monospace;letter-spacing:.08em}
body[data-heartbeat-runtime] .route-preview strong{margin-top:2px;font-size:12px;font-weight:500}
body[data-heartbeat-runtime] .route-preview p{margin-top:2px;color:var(--soft);font-size:9px}
body[data-heartbeat-runtime] #contractScreen .contract-foot{padding-top:7px}

body[data-heartbeat-runtime] .story-path{position:absolute;z-index:54;left:var(--safe-l);top:12px;width:148px;color:var(--faint);pointer-events:none}
body[data-heartbeat-runtime] .story-path__label{display:block;margin-bottom:7px;color:var(--soft);font:8px/1 "DM Mono",monospace;letter-spacing:.12em}
body[data-heartbeat-runtime] .story-path ol{display:grid;gap:0;margin:0;padding:0;list-style:none}
body[data-heartbeat-runtime] .story-path li{position:relative;display:grid;grid-template-columns:14px 1fr;align-items:center;gap:7px;min-height:24px;font-size:9px;letter-spacing:.06em}
body[data-heartbeat-runtime] .story-path li::before{position:absolute;left:5px;top:-50%;width:1px;height:100%;content:"";background:rgba(255,255,255,.13)}
body[data-heartbeat-runtime] .story-path li:first-child::before{display:none}
body[data-heartbeat-runtime] .story-path li i{position:relative;z-index:1;width:11px;height:11px;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:#030304}
body[data-heartbeat-runtime] .story-path li.complete{color:rgba(117,217,200,.7)}
body[data-heartbeat-runtime] .story-path li.complete i{border-color:var(--mint);background:var(--mint);box-shadow:inset 0 0 0 3px #030304}
body[data-heartbeat-runtime] .story-path li.current{color:var(--text)}
body[data-heartbeat-runtime] .story-path li.current i{border-color:var(--gold);box-shadow:0 0 0 4px color-mix(in srgb,var(--gold) 10%,transparent)}

body[data-heartbeat-runtime] .cinema.continuous-scene{
  --scene-focus:67%;--scene-pan:-2%;background-color:#000;
  background-image:linear-gradient(90deg,rgba(0,0,0,.98) 0%,rgba(0,0,0,.74) 33%,rgba(0,0,0,.12) 64%,rgba(0,0,0,.8) 100%),radial-gradient(ellipse at var(--scene-focus) 35%,rgba(94,83,91,.34),transparent 24%),linear-gradient(105deg,#020203 0 34%,#111015 34% 35%,#060608 35% 57%,#17131a 57% 58%,#030304 58% 100%);
  background-position:var(--scene-pan) center;transition:background-position .65s cubic-bezier(.2,.75,.2,1),filter .4s ease;
}
body[data-heartbeat-runtime] .cinema.continuous-scene::before{position:absolute;inset:0;content:"";opacity:.62;background:linear-gradient(115deg,transparent 0 36%,rgba(255,255,255,.035) 36% 36.2%,transparent 36.2% 66%,rgba(255,255,255,.03) 66% 66.2%,transparent 66.2%),linear-gradient(180deg,transparent 0 67%,rgba(255,255,255,.025) 67% 67.4%,transparent 67.4%);pointer-events:none}
body[data-heartbeat-runtime] .cinema.continuous-scene[data-story-step="1"]{--scene-focus:70%;--scene-pan:-2%}
body[data-heartbeat-runtime] .cinema.continuous-scene[data-story-step="2"]{--scene-focus:64%;--scene-pan:-1%}
body[data-heartbeat-runtime] .cinema.continuous-scene[data-story-step="3"]{--scene-focus:59%;--scene-pan:1%}
body[data-heartbeat-runtime] .cinema.continuous-scene[data-story-step="4"]{--scene-focus:55%;--scene-pan:2%}
body[data-heartbeat-runtime] .cinema.continuous-scene[data-story-step="5"]{--scene-focus:52%;--scene-pan:3%}

.reduced-motion body[data-heartbeat-runtime] .screen.active,.reduced-motion body[data-heartbeat-runtime] .continue-caret{animation:none}
.reduced-motion body[data-heartbeat-runtime] .cinema.continuous-scene,.reduced-motion body[data-heartbeat-runtime] .video-progress i,.reduced-motion body[data-heartbeat-runtime] .boundary-option>i{transition:none}

@media(max-width:900px),(max-height:500px){
  body[data-heartbeat-runtime] #contractScreen{padding:7px 18px}
  body[data-heartbeat-runtime] #contractScreen .contract-sheet{padding:8px 14px}
  body[data-heartbeat-runtime] #contractScreen .contract-title{padding:3px 0}
  body[data-heartbeat-runtime] #contractScreen .contract-title h1{font-size:18px}
  body[data-heartbeat-runtime] #contractScreen .contract-sheet blockquote{top:29px;right:14px;padding:5px 8px;font-size:9px}
  body[data-heartbeat-runtime] .relationship-route{height:116px}
  body[data-heartbeat-runtime] #contractScreen .boundary-option{width:19%;padding-left:31px}
  body[data-heartbeat-runtime] #contractScreen .boundary-option>i{width:25px;height:25px}
  body[data-heartbeat-runtime] #contractScreen .boundary-option strong{font-size:10px}
  body[data-heartbeat-runtime] .route-preview{min-height:42px;padding:5px 9px}
  body[data-heartbeat-runtime] .route-preview p{display:none}
  body[data-heartbeat-runtime] #contractScreen .contract-foot{padding-top:4px}
  body[data-heartbeat-runtime] .story-path{top:7px;width:128px}
  body[data-heartbeat-runtime] .story-path li{min-height:21px;font-size:8px}
}

@media(max-width:760px),(max-height:370px){
  body[data-heartbeat-runtime] #contractScreen .contract-head{padding-bottom:3px}
  body[data-heartbeat-runtime] #contractScreen .contract-title small,body[data-heartbeat-runtime] #contractScreen .contract-title p{display:none}
  body[data-heartbeat-runtime] #contractScreen .contract-title h1{font-size:16px}
  body[data-heartbeat-runtime] #contractScreen .contract-sheet blockquote{display:none}
  body[data-heartbeat-runtime] .contract-choice-head{margin:0!important}
  body[data-heartbeat-runtime] .contract-choice-head span{font-size:9px}
  body[data-heartbeat-runtime] .relationship-route{height:105px}
  body[data-heartbeat-runtime] #contractScreen .boundary-option{width:20%;min-height:48px;padding-left:27px}
  body[data-heartbeat-runtime] #contractScreen .boundary-option>i{width:22px;height:22px;font-size:8px}
  body[data-heartbeat-runtime] #contractScreen .boundary-option .option-copy>em{display:none}
  body[data-heartbeat-runtime] #contractScreen .boundary-option strong{font-size:9px}
  body[data-heartbeat-runtime] .route-preview{min-height:36px;padding:4px 8px}
  body[data-heartbeat-runtime] .route-preview small{font-size:7px}
  body[data-heartbeat-runtime] .route-preview strong{font-size:10px}
  body[data-heartbeat-runtime] #contractScreen .contract-foot>span{display:none}
  body[data-heartbeat-runtime] #contractScreen .contract-foot .primary-button{min-height:44px}
  body[data-heartbeat-runtime] .story-path{top:5px;width:110px}
  body[data-heartbeat-runtime] .story-path__label{margin-bottom:4px}
  body[data-heartbeat-runtime] .story-path li{min-height:18px}
  body[data-heartbeat-runtime] .story-path li span{display:none}
}

@media(prefers-reduced-motion:reduce){
  body[data-heartbeat-runtime] .cinema.continuous-scene,body[data-heartbeat-runtime] .video-progress i,body[data-heartbeat-runtime] .relationship-route *{transition:none!important}
}

/* V1.112: C51 story controls and canonical frameless dialogue. */
body[data-heartbeat-runtime] .story-quick-actions[hidden]{display:none}
body[data-heartbeat-runtime] .story-quick-actions{
  margin-left:auto;
  margin-right:max(10px,env(safe-area-inset-right));
  display:flex;
  align-items:center;
  gap:8px;
  transform:translateY(10px);
}
body[data-heartbeat-runtime] .story-quick-actions button{width:44px;height:52px;min-width:44px;min-height:44px;padding:3px 0;display:grid;grid-template-rows:18px 12px;place-items:center;border:0;border-radius:0;background:transparent;color:var(--faint);font:11px/1 "PingFang SC",sans-serif}
body[data-heartbeat-runtime] .story-quick-actions button i{color:var(--soft);font:500 15px/1 "DM Mono",monospace;font-style:normal}
body[data-heartbeat-runtime] .story-quick-actions button:hover,body[data-heartbeat-runtime] .story-quick-actions button:focus-visible,body[data-heartbeat-runtime] .story-quick-actions button[aria-pressed="true"],body[data-heartbeat-runtime] .story-quick-actions button[aria-pressed="true"] i{color:var(--gold)}
body[data-heartbeat-runtime] .brand{min-width:0;display:flex;align-items:center;gap:10px;padding-left:0;border-left:0}
body[data-heartbeat-runtime] .brand strong{font-size:20px;font-weight:600;line-height:1;letter-spacing:.1em;white-space:nowrap}
body[data-heartbeat-runtime] .brand small{color:rgba(255,255,255,.54);font:500 10px/1 "DM Mono",monospace;letter-spacing:.18em;white-space:nowrap}
body[data-heartbeat-runtime] .experience-screen .adv-wrap{left:max(48px,15vw);right:auto;bottom:max(56px,calc(env(safe-area-inset-bottom) + 24px));width:min(620px,58vw);padding:0}
body[data-heartbeat-runtime] .experience-screen .adv-wrap::before{left:calc(-1 * max(48px,15vw));right:-80px;top:-44px;bottom:-32px}
body[data-heartbeat-runtime] .experience-screen .adv-box{min-height:0;padding:0;border:0;background:transparent;box-shadow:none;backdrop-filter:none;text-align:left}
body[data-heartbeat-runtime] .experience-screen .speaker-tab{display:block;min-width:0;margin:0 0 16px;padding:0;border:0;border-radius:0;background:transparent;color:var(--gold);font-size:20px;font-weight:600;line-height:1.2;letter-spacing:.1em;text-align:left}
body[data-heartbeat-runtime] .experience-screen .dialogue,body[data-heartbeat-runtime] .experience-screen .adv-wrap.narration .dialogue,body[data-heartbeat-runtime] .experience-screen .adv-wrap.system .dialogue{display:inline;color:var(--text);font-size:25px;font-weight:500;line-height:1.75;letter-spacing:.02em;text-shadow:0 2px 16px #000,0 1px 4px #000}
body[data-heartbeat-runtime] .experience-screen .adv-wrap.narration .speaker-tab{visibility:hidden}
body[data-heartbeat-runtime] .experience-screen .continue-caret{position:static;display:inline-block;margin-left:12px;color:#fff;font-size:12px;transform:rotate(-90deg)}
body[data-heartbeat-runtime] .story-ui-hidden .topbar,body[data-heartbeat-runtime] .story-ui-hidden .adv-wrap,body[data-heartbeat-runtime] .story-ui-hidden .scene-caption,body[data-heartbeat-runtime] .story-ui-hidden .story-quick-actions{opacity:0;pointer-events:none}
@media(max-width:1000px),(max-height:560px){
  body[data-heartbeat-runtime] .brand strong{font-size:17px}body[data-heartbeat-runtime] .brand small{display:none}
  body[data-heartbeat-runtime] .story-quick-actions{gap:6px}body[data-heartbeat-runtime] .story-quick-actions button{height:44px;font-size:10px}
  body[data-heartbeat-runtime] .experience-screen .adv-wrap{left:max(24px,calc(env(safe-area-inset-left) + 14px));bottom:max(54px,calc(env(safe-area-inset-bottom) + 20px));width:min(72vw,560px)}
  body[data-heartbeat-runtime] .experience-screen .speaker-tab{margin-bottom:12px;font-size:16px}
  body[data-heartbeat-runtime] .experience-screen .dialogue,body[data-heartbeat-runtime] .experience-screen .adv-wrap.narration .dialogue,body[data-heartbeat-runtime] .experience-screen .adv-wrap.system .dialogue{font-size:18px;line-height:1.75}
}

/* V1.135: keep the three heartbeat archives on one confirmed UI system. */
body[data-heartbeat-runtime] .experience-hud{display:none!important}
body[data-heartbeat-runtime] .story-quick-actions button i svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.45;
  stroke-linecap:round;
  stroke-linejoin:round;
}

body[data-heartbeat-runtime] #contractScreen{padding:24px max(32px,calc(env(safe-area-inset-right) + 18px)) 24px max(32px,calc(env(safe-area-inset-left) + 18px))}
body[data-heartbeat-runtime] #contractScreen .contract-sheet{
  width:min(1480px,100%);
  height:auto;
  min-height:100%;
  padding:24px 28px;
  display:grid;
  grid-template-rows:auto minmax(180px,1fr) auto auto;
  align-content:stretch;
  overflow:hidden;
  background:#000;
}
body[data-heartbeat-runtime] #contractScreen .contract-title{padding:0 0 24px}
body[data-heartbeat-runtime] #contractScreen .contract-title h1{margin:0;font-size:26px;line-height:1.3;letter-spacing:.08em}
body[data-heartbeat-runtime] .relationship-route{
  position:relative;
  height:auto;
  min-height:180px;
  margin:0;
  display:flex;
  align-items:center;
  border:0!important;
  isolation:isolate;
}
body[data-heartbeat-runtime] .relationship-route::before,
body[data-heartbeat-runtime] .relationship-route__line{display:none!important}
body[data-heartbeat-runtime] #contractScreen .boundary-options{
  position:static;
  inset:auto;
  width:100%;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:stretch;
}
body[data-heartbeat-runtime] #contractScreen .boundary-option,
body[data-heartbeat-runtime] #contractScreen .boundary-option:nth-child(n){
  position:relative;
  left:auto;
  top:auto;
  width:auto;
  min-height:132px;
  padding:28px 22px 22px;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr);
  align-content:center;
  align-items:center;
  gap:16px;
  transform:none;
  overflow:visible;
  border:0;
  border-right:1px solid var(--line);
  background:transparent;
  box-shadow:none;
}
body[data-heartbeat-runtime] #contractScreen .boundary-option:last-child{border-right:0}
body[data-heartbeat-runtime] #contractScreen .boundary-option::after,
body[data-heartbeat-runtime] #contractScreen .boundary-option>i::after,
body[data-heartbeat-runtime] #contractScreen .boundary-option.completed>i::before{
  content:none!important;
  display:none!important;
}
body[data-heartbeat-runtime] #contractScreen .boundary-option>i{
  position:static;
  width:38px;
  height:38px;
  margin:0;
  transform:none;
  font-size:11px;
}
body[data-heartbeat-runtime] #contractScreen .boundary-option .option-copy>em{margin-bottom:6px;font-size:9px;letter-spacing:.08em}
body[data-heartbeat-runtime] #contractScreen .boundary-option strong{font-size:15px;line-height:1.45;letter-spacing:.04em}
body[data-heartbeat-runtime] #contractScreen .boundary-option:hover,
body[data-heartbeat-runtime] #contractScreen .boundary-option:focus-visible{background:rgba(255,255,255,.025)}
body[data-heartbeat-runtime] #contractScreen .boundary-option.selected{
  background:color-mix(in srgb,var(--gold) 5.5%,transparent)!important;
  box-shadow:inset 0 0 0 2px var(--gold)!important;
}
body[data-heartbeat-runtime] #contractScreen .boundary-option.completed:not(.selected)>i{
  border-color:var(--line)!important;
  color:var(--faint)!important;
}
body[data-heartbeat-runtime] #contractScreen .episode-status{
  position:absolute!important;
  top:10px!important;
  right:10px!important;
  width:auto!important;
  height:auto!important;
  padding:3px 6px!important;
  display:block!important;
  border:1px solid rgba(94,234,212,.5)!important;
  border-radius:4px!important;
  color:var(--mint)!important;
  background:rgba(94,234,212,.045)!important;
  font:500 9px/1.2 "Noto Serif SC","Songti SC",serif!important;
  white-space:nowrap;
}
body[data-heartbeat-runtime] .route-preview{
  min-height:76px;
  margin-top:18px;
  padding:14px 18px;
  display:grid;
  grid-template-columns:190px minmax(180px,.7fr) 1fr;
  align-items:center;
  gap:24px;
  border-left:2px solid var(--gold);
  background:rgba(255,255,255,.025);
}
body[data-heartbeat-runtime] .route-preview strong{margin:0;font-size:16px}
body[data-heartbeat-runtime] .route-preview p{margin:0;font-size:11px;line-height:1.6}
body[data-heartbeat-runtime] #contractScreen .contract-foot{padding-top:18px;justify-content:flex-end}
body[data-heartbeat-runtime] #contractScreen .contract-foot .primary-button{min-width:210px}

body[data-heartbeat-runtime] .experience-screen .adv-wrap.wq-dialogue-fixed-layout{
  left:clamp(82px,22vw,430px)!important;
  right:clamp(74px,13vw,270px)!important;
  bottom:max(56px,calc(env(safe-area-inset-bottom,0px) + 24px))!important;
  width:auto!important;
  max-width:none!important;
  padding:0!important;
}
body[data-heartbeat-runtime] .experience-screen .adv-wrap.wq-dialogue-readability::before{
  display:block!important;
  position:absolute!important;
  z-index:-1!important;
  left:var(--readability-left,0px)!important;
  right:auto!important;
  top:auto!important;
  bottom:calc(-1 * var(--readability-bottom,56px))!important;
  width:var(--readability-width,100%)!important;
  height:max(144px,calc(var(--readability-height,220px) - 32px))!important;
  border-radius:0!important;
  background:linear-gradient(180deg,transparent 0,rgba(0,0,0,.08) 28%,rgba(0,0,0,.42) 72%,rgba(0,0,0,var(--readability-alpha,.56)) 100%)!important;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 72px,#000 100%)!important;
  mask-image:linear-gradient(180deg,transparent 0,#000 72px,#000 100%)!important;
  pointer-events:none!important;
}
body[data-heartbeat-runtime] .experience-screen .adv-box{
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
body[data-heartbeat-runtime] .experience-screen .speaker-tab.wq-dialogue-fixed-speaker{
  margin:0 0 12px!important;
  font-size:18px!important;
  line-height:21.6px!important;
}
body[data-heartbeat-runtime] .experience-screen .speaker-tab.wq-dialogue-fixed-speaker:not([data-wq-empty="true"]){
  visibility:visible!important;
  opacity:1!important;
}
body[data-heartbeat-runtime] .experience-screen .dialogue.wq-dialogue-fixed-text,
body[data-heartbeat-runtime] .experience-screen .adv-wrap.narration .dialogue.wq-dialogue-fixed-text,
body[data-heartbeat-runtime] .experience-screen .adv-wrap.system .dialogue.wq-dialogue-fixed-text{
  display:block!important;
  font-size:20px!important;
  line-height:38px!important;
  font-style:normal!important;
}
body[data-heartbeat-runtime] .experience-screen .continue-caret{display:none!important;width:0!important;height:0!important;margin:0!important}

body[data-heartbeat-runtime] .choice-panel{
  width:min(760px,calc(100vw - 64px));
  top:max(80px,calc(env(safe-area-inset-top) + 66px));
  bottom:max(32px,calc(env(safe-area-inset-bottom) + 20px));
  padding:0;
}
body[data-heartbeat-runtime] .choice-head{margin:0 0 16px}
body[data-heartbeat-runtime] .choice-head span{color:var(--soft);font-size:14px;letter-spacing:.08em}
body[data-heartbeat-runtime] .choice-list{gap:10px}
body[data-heartbeat-runtime] .choice-list .story-choice{
  min-height:68px;
  padding:12px 52px 12px 18px;
  gap:16px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:6px;
  background:rgba(8,8,12,.9);
}
body[data-heartbeat-runtime] .choice-list .story-choice>i{width:28px;height:28px;flex-basis:28px;font-size:11px}
body[data-heartbeat-runtime] .choice-list .story-choice strong{font-size:16px;line-height:1.5;letter-spacing:.04em}

body[data-heartbeat-runtime] .result-heading{align-items:center;padding-bottom:0!important;border-bottom:0!important}
body[data-heartbeat-runtime] .result-actions{align-items:center;gap:12px}
body[data-heartbeat-runtime] .result-actions .secondary-button,
body[data-heartbeat-runtime] .result-actions .primary-button{height:48px;min-height:48px;border-radius:6px;font-size:14px}
body[data-heartbeat-runtime] .result-actions .secondary-button{min-width:160px;background:transparent}
body[data-heartbeat-runtime] .result-actions .primary-button{
  min-width:220px;
  border-color:#e7c877;
  background:#e7c877;
  color:#15120b;
  box-shadow:none;
}

@media(max-width:1000px),(max-height:560px){
  body[data-heartbeat-runtime] #contractScreen{padding:8px max(18px,env(safe-area-inset-right)) 8px max(18px,env(safe-area-inset-left))}
  body[data-heartbeat-runtime] #contractScreen .contract-sheet{height:100%;min-height:0;padding:8px 14px;grid-template-rows:auto minmax(112px,1fr) auto auto}
  body[data-heartbeat-runtime] #contractScreen .contract-title{padding:0 0 7px}
  body[data-heartbeat-runtime] #contractScreen .contract-title h1{font-size:18px}
  body[data-heartbeat-runtime] .relationship-route{min-height:112px}
  body[data-heartbeat-runtime] #contractScreen .boundary-option,
  body[data-heartbeat-runtime] #contractScreen .boundary-option:nth-child(n){min-height:94px;padding:12px 10px;grid-template-columns:28px minmax(0,1fr);gap:9px}
  body[data-heartbeat-runtime] #contractScreen .boundary-option>i{width:28px;height:28px;font-size:9px}
  body[data-heartbeat-runtime] #contractScreen .boundary-option .option-copy>em{display:block;font-size:8px;margin-bottom:3px}
  body[data-heartbeat-runtime] #contractScreen .boundary-option strong{font-size:12px}
  body[data-heartbeat-runtime] #contractScreen .episode-status{top:6px!important;right:6px!important;padding:2px 4px!important;font-size:8px!important}
  body[data-heartbeat-runtime] .route-preview{min-height:48px;margin-top:7px;padding:7px 10px;grid-template-columns:130px 170px 1fr;gap:12px}
  body[data-heartbeat-runtime] .route-preview strong{font-size:13px}
  body[data-heartbeat-runtime] .route-preview p{display:block;font-size:10px}
  body[data-heartbeat-runtime] #contractScreen .contract-foot{padding-top:6px}
  body[data-heartbeat-runtime] #contractScreen .contract-foot .primary-button{min-width:170px}
  body[data-heartbeat-runtime] .experience-screen .adv-wrap.wq-dialogue-fixed-layout{
    left:max(64px,calc(env(safe-area-inset-left,0px) + 36px),16vw)!important;
    right:max(24px,calc(env(safe-area-inset-right,0px) + 14px),4vw)!important;
    bottom:max(56px,calc(env(safe-area-inset-bottom,0px) + 24px))!important;
    width:auto!important;
  }
  body[data-heartbeat-runtime] .experience-screen .speaker-tab.wq-dialogue-fixed-speaker{margin-bottom:8px!important;font-size:14px!important;line-height:16.8px!important}
  body[data-heartbeat-runtime] .experience-screen .dialogue.wq-dialogue-fixed-text,
  body[data-heartbeat-runtime] .experience-screen .adv-wrap.narration .dialogue.wq-dialogue-fixed-text,
  body[data-heartbeat-runtime] .experience-screen .adv-wrap.system .dialogue.wq-dialogue-fixed-text{font-size:16px!important;line-height:28px!important}
  body[data-heartbeat-runtime] .choice-panel{top:max(58px,calc(env(safe-area-inset-top) + 52px));bottom:max(16px,calc(env(safe-area-inset-bottom) + 10px));width:min(620px,84vw)}
  body[data-heartbeat-runtime] .choice-head{margin-bottom:8px}
  body[data-heartbeat-runtime] .choice-head span{font-size:12px}
  body[data-heartbeat-runtime] .choice-list{gap:7px}
  body[data-heartbeat-runtime] .choice-list .story-choice{min-height:54px;padding:8px 44px 8px 14px}
  body[data-heartbeat-runtime] .choice-list .story-choice strong{font-size:13px}
  body[data-heartbeat-runtime] .result-actions .secondary-button,
  body[data-heartbeat-runtime] .result-actions .primary-button{height:44px;min-height:44px;font-size:13px}
  body[data-heartbeat-runtime] .result-actions .primary-button{min-width:180px}
}

@media(max-width:760px),(max-height:370px){
  body[data-heartbeat-runtime] #contractScreen .contract-sheet{grid-template-rows:auto minmax(94px,1fr) auto auto}
  body[data-heartbeat-runtime] #contractScreen .contract-title{padding-bottom:4px}
  body[data-heartbeat-runtime] #contractScreen .contract-title h1{font-size:16px}
  body[data-heartbeat-runtime] .relationship-route{min-height:94px}
  body[data-heartbeat-runtime] #contractScreen .boundary-option,
  body[data-heartbeat-runtime] #contractScreen .boundary-option:nth-child(n){min-height:82px;padding:8px 7px;grid-template-columns:24px minmax(0,1fr);gap:6px}
  body[data-heartbeat-runtime] #contractScreen .boundary-option>i{width:24px;height:24px;font-size:8px}
  body[data-heartbeat-runtime] #contractScreen .boundary-option strong{font-size:10px}
  body[data-heartbeat-runtime] .route-preview{min-height:42px;margin-top:5px;padding:5px 8px;grid-template-columns:105px 150px 1fr;gap:8px}
  body[data-heartbeat-runtime] .route-preview small{font-size:8px}
  body[data-heartbeat-runtime] .route-preview strong{font-size:11px}
  body[data-heartbeat-runtime] .route-preview p{display:block;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body[data-heartbeat-runtime] #contractScreen .contract-foot{padding-top:4px}
  body[data-heartbeat-runtime] #contractScreen .contract-foot .primary-button{min-height:44px}
  body[data-heartbeat-runtime] .choice-panel{width:min(560px,84vw)}
  body[data-heartbeat-runtime] .choice-list .story-choice{min-height:50px}
  body[data-heartbeat-runtime] .choice-list .story-choice strong{font-size:12px}
}
