@font-face {
  font-family: "ThreefoldSans";
  src: url("../assets/fonts/shiyuan.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "ThreefoldSerif";
  src: url("../assets/fonts/SourceHanSerifSC-Medium.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "ThreefoldPixel";
  src: url("../assets/fonts/fusion-pixel-12px-monospaced-zh_hans.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "ThreefoldPixelMplus";
  src: url("../assets/fonts/PixelMplus12-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "ThreefoldPublicPixel";
  src: url("../assets/fonts/PublicPixel.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #e8e2d6;
  --dim: #9c9284;
  --gold: #d9b36c;
  --deep: #0d0c0a;
  --sans: "ThreefoldSans", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "ThreefoldSerif", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --pixel: "ThreefoldPixel", "ThreefoldSans", monospace;
  --pixeljp: "ThreefoldPixelMplus", "ThreefoldSans", monospace;
  --publicpixel: "ThreefoldPublicPixel", "ThreefoldPixel", monospace;
}

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

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

#app {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  transform-origin: center center;
  background: #000;
  overflow: hidden;
}

#cv {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  image-rendering: auto;
}

#vpcv {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
  z-index: 13;
  pointer-events: none;
  image-rendering: auto;
}

#bubbles, #hud, #dialogue, #choices, #fade, #flash, #chapter, #title,
#pause, #saves, #settings, #opnote, #backlog, #ending, #toast, #loading,
#white, #vig, #noise, #chrom, #trihearts, #frame {
  position: absolute;
}

#fade {
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: none;
  z-index: 8;
}

#white {
  inset: 0;
  background: #f2ede4;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

#logoBig {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060505;
  opacity: 0;
  pointer-events: none;
}

#logoBig img { width: 980px; }

#flash {
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

/* ---------- HUD ---------- */
#hud {
  right: 28px;
  bottom: 10px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}

#hud.on { opacity: 1; pointer-events: auto; }

#coinbox {
  position: absolute; left: 34px; top: 26px; z-index: 12;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .2s;
}
#coinbox.on { opacity: 1; }
#coinbox.bump { transform: scale(1.12); }
#coinbox img { width: 30px; height: 30px; object-fit: contain; }
#coinnum { color: #f3ead8; font-size: 26px; letter-spacing: 1px; font-family: var(--pixel); text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.coinimg { position: absolute; width: 24px; height: 24px; object-fit: contain; pointer-events: none; z-index: 12; }
#trihearts { left: auto; right: 73.5px; top: 994px; display: flex; flex-direction: row-reverse; gap: 5px; opacity: 0; z-index: 11; pointer-events: none; transition: opacity .2s; }
#trihearts.on { opacity: 1; }
#trihearts .heart { position: relative; width: 30px; height: 30px; flex: 0 0 30px; }
#trihearts .heart img { position: absolute; display: block; object-fit: contain; }
#trihearts .heart .frame { left: 0; top: 0; width: 30px; height: 30px; }
#trihearts .heart .fill { left: 3px; top: 3px; width: 24px; height: 24px; }
#trihearts .heart .eff { left: 50%; top: 50%; width: 100px; height: 100px; opacity: 0; transform: translate(-50%,-50%) scale(.01); pointer-events: none; }
#trihearts .heart.appear .frame { animation: triHeartFrame 1s linear both; }
#trihearts .heart .fill.fillin { animation: triHeartFill 1s linear both; }
#trihearts .heart .eff.play { animation: triHeartEff 1s linear both; }
@keyframes triHeartFrame { from { opacity: 0; } to { opacity: 1; } }
@keyframes triHeartFill { from { opacity: 0; } to { opacity: 1; } }
@keyframes triHeartEff {
  0% { opacity: 1; transform: translate(-50%,-50%) scale(.01); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(.7); }
}
#frame { z-index: 10; opacity: 0; pointer-events: none; box-shadow: inset 0 0 0 64px rgba(8,7,6,.92); }

#chapSummary {
  position: absolute; inset: 0; z-index: 32; display: none;
  background: rgba(10, 8, 6, .93); color: #efe3cd; cursor: pointer;
}
#chapSummary.on { display: block; }
#chapSummary .csinner {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 1180px; max-height: 880px; overflow: hidden;
  border: 1px solid rgba(217,179,108,.45);
  background: rgba(24,20,16,.96);
  padding: 54px 64px 40px;
}
.cskicker { font-size: 22px; letter-spacing: 8px; color: #b99e6e; }
#cschapter { font-size: 54px; letter-spacing: 6px; margin-top: 10px; color: #f4e8d2; }
#csscore { font-size: 26px; color: #c8b48d; margin-top: 18px; letter-spacing: 2px; }
#cslist { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; font-size: 24px; color: #d9cbb1; }
#cslist .row { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(217,179,108,.14); padding: 8px 0; }
#cslist .row.lock { color: #6f6558; }
.cstip { margin-top: 30px; font-size: 22px; color: #8f8066; text-align: center; letter-spacing: 3px; }

.hudbtn {
  width: auto;
  height: 34px;
  padding: 0 10px;
  border: none;
  background: none;
  color: #8f8578;
  font-size: 20px;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 0;
  transition: color .16s;
  font-family: inherit;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .95);
  display: flex;
  align-items: center;
  gap: 7px;
}

.hudbtn[hidden] { display: none; }

.hudbtn .k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid rgba(196, 186, 166, .34);
  border-radius: 3px;
  background: rgba(10, 9, 7, .55);
  font-size: 16px;
  letter-spacing: 1px;
  color: #cfc4ae;
}

.hudbtn:hover { color: #e3d7c2; }
.hudbtn.active { color: var(--gold); }

#btnrow {
  position: absolute;
  left: 0;
  right: 36.344px;
  bottom: 38.3px;
  height: 56.809px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 25px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  z-index: 47;
}
#btnrow.on { opacity: 1; }
#hud.hintson .hudbtn { opacity: 0; pointer-events: none; }
#btnrow .kb {
  display: inline-flex;
  align-items: center;
  height: 56.809px;
  padding: 0;
}
#btnrow .kb img { height: 45px; width: auto; display: block; }
#btnrow .kb img.sp { width: 12px; height: 30px; }
#btnrow .kb .t {
  margin-left: 8px;
  font-size: 22px;
  line-height: 1;
  color: #d1ffba;
  white-space: nowrap;
}

/* ---------- dialogue ---------- */
#dialogue {
  left: 259.5px;
  top: 770px;
  right: auto;
  bottom: auto;
  width: 1401px;
  height: 320px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
}

#dialogue.face { left: 39.5px; }

#dlgface {
  position: absolute;
  left: 1350.5px;
  bottom: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  transform: translateX(-50%);
  display: none;
  pointer-events: none;
  image-rendering: auto;
}

#dialogue.face #dlgface { left: 1570.5px; display: block; }

#dlgbg {
  position: absolute;
  inset: 0;
  background: url("../assets/ui/talk_bgwithname.png") center top / 100% 100% no-repeat;
  opacity: 1;
  pointer-events: none;
}

#dialogue.on { opacity: 1; pointer-events: auto; }

#dlgname {
  position: absolute;
  left: 34.2px;
  top: 11.9px;
  width: 290.8px;
  height: 76.1px;
  line-height: 76.1px;
  text-align: center;
  padding: 0;
  min-width: 0;
  font-size: 34px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
  color: #f4d493;
  background: url("../assets/ui/talk_name_red.png") center / 100% 100% no-repeat;
  border: none;
  clip-path: none;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .9), 0 0 2px rgba(0,0,0,.8);
  display: none;
}

#dlgname.on { display: block; }

#dlgtext {
  position: absolute;
  left: 119.1px;
  top: 97px;
  width: 1138.7px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 46px;
  -webkit-text-stroke: 0.6px rgba(0, 0, 0, .45);
  letter-spacing: 0;
  color: #ffffff;
  white-space: pre-wrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .8);
  max-height: 223px;
  overflow: hidden;
}

#dlgtext.narr { color: #e6dfd2; }

#dlgtext .hl { color: #f0a45a; }
#dlgtext .th { color: #7fd0d6; font-style: italic; }

#dlgpinyin {
  position: absolute;
  left: 1284.7px;
  top: 97px;
  width: 136.3px;
  pointer-events: none;
}
#dlgpinyin .pyitem {
  position: absolute;
  left: 0;
  width: 136.3px;
  height: 34px;
  line-height: 34px;
  font-size: 18px;
  color: #ffffff;
  white-space: nowrap;
}
#dlgpinyin .pyitem:nth-child(1) { top: 0; }
#dlgpinyin .pyitem:nth-child(2) { top: 44.4px; }
#dlgpinyin .pyitem:nth-child(3) { top: 87.9px; }
#dlgpinyin .pyitem:nth-child(4) { top: 130.4px; }
#dlgpinyin .pyitem span { display: inline-block; padding-left: 31.2px; }

#dlgnext {
  position: absolute;
  left: 1173px;
  right: auto;
  top: 221px;
  bottom: auto;
  width: 70px;
  height: 70px;
  border: none;
  background: url("../assets/ui/talk_next.png") center / contain no-repeat;
  transform: none;
  opacity: .9;
  animation: bob 1.6s infinite ease-in-out;
}

@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .5; }
  50% { transform: rotate(45deg) translate(0, 6px); opacity: 1; }
}

/* ---------- choices ---------- */
#choices {
  left: 1302px;
  top: 762.5px;
  right: auto;
  bottom: auto;
  width: 618px;
  height: 135px;
  padding-bottom: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: none;
  pointer-events: auto;
}

#choices.on { display: block; }

.choice {
  position: absolute;
  left: 0;
  width: 618px;
  height: 135px;
  padding: 0 35px 0 0;
  line-height: 135px;
  text-align: right;
  font-size: 28px;
  color: #cccccc;
  background: url("../assets/ui/talk_selbg.png") center / 100% 100% no-repeat;
  border: none;
  cursor: pointer;
  transition: color .16s;
  font-family: inherit;
  letter-spacing: 0;
}

.choice:nth-child(2) { top: -110px; }
.choice:nth-child(3) { top: -220px; }
.choice:nth-child(4) { top: -330px; }
.choice:nth-child(5) { top: -440px; }

.choice:hover {
  color: #fff;
  background-image: url("../assets/ui/talk_selchose.png");
}

.choice.sel {
  color: #fff;
  background-image: url("../assets/ui/talk_selchose.png");
}

/* ---------- chapter card ---------- */
#chapter {
  inset: 0;
  display: none;
  background: none;
  pointer-events: none;
}

#chapter.on { display: block; }

#chaptername {
  position: absolute;
  left: 735.1px;
  top: 0;
  width: 449.8px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0;
  color: #bbbbbb;
  border: none;
  padding: 0;
  animation: none;
}

@keyframes chapterin {
  from { letter-spacing: 30px; opacity: 0; }
  to { letter-spacing: 12px; opacity: 1; }
}

/* ---------- title ---------- */
#title {
  inset: 0;
  background: #0a0a0b;
  overflow: hidden;
}

#titlebg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#titlelayers {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  pointer-events: none;
}

#titlelayers img {
  position: absolute;
  display: block;
  will-change: transform;
}

#titlemask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(8, 5, 4, .18), rgba(8, 5, 4, .18)),
    linear-gradient(90deg, rgba(8, 6, 5, .64) 0%, rgba(8, 6, 5, .56) 16%, rgba(8, 6, 5, .30) 34%, rgba(8, 6, 5, .10) 48%, rgba(8, 6, 5, 0) 60%),
    linear-gradient(0deg, rgba(8, 6, 5, .35) 0%, rgba(8, 6, 5, 0) 16%);
  pointer-events: none;
}

#titlemenu {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  pointer-events: none;
}

#titlemenu .tbtn {
  position: absolute;
  left: 238.3px;
  width: 294.9px;
  height: 69.7px;
  padding: 0;
  border: none;
  background: none;
  color: #cccccc;
  font-size: 30px;
  letter-spacing: 0;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  isolation: isolate;
}

#titlemenu .tbtn.sel {
  color: #ffe36b;
}

#titlemenu .tbtn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 445px;
  height: 71px;
  transform: translate(-50%, -50%);
  background: url("../assets/ui/title/title_chose.png") center / 100% 100% no-repeat;
  opacity: 0;
  z-index: -1;
  filter: brightness(.55);
}

#titlemenu .tbtn.sel::before {
  opacity: 0;
}

#titlemenu .tbtn:hover::before {
  opacity: .3;
}

#titlemenu .tbtn[data-i="0"] { top: 423px; }
#titlemenu .tbtn[data-i="1"] { top: 572px; }
#titlemenu .tbtn[data-i="2"] { top: 665px; }
#titlemenu .tbtn[data-i="3"] { top: 758px; }
#titlemenu .tbtn[data-i="4"] { top: 850px; }
#titlemenu .tbtn[data-i="5"] { top: 943px; }

#titlemenu .tline {
  position: absolute;
  left: 309px;
  width: 179px;
  height: 3px;
  background: url("../assets/ui/title/title_separation.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

#titlemenu .tline[data-i="1"] { top: 560px; }
#titlemenu .tline[data-i="2"] { top: 653px; }
#titlemenu .tline[data-i="3"] { top: 746px; }
#titlemenu .tline[data-i="4"] { top: 839px; }
#titlemenu .tline[data-i="5"] { top: 932px; }

#lastsave {
  position: absolute;
  left: 169px;
  top: 505px;
  width: 433px;
  height: 33px;
  line-height: 33px;
  font-size: 20px;
  color: #ffd9ab;
  text-align: center;
  white-space: nowrap;
}

#titleversion {
  position: absolute;
  right: 26px;
  bottom: 14px;
  font-size: 20px;
  color: #d8d2c8;
}

#titlepub {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  pointer-events: none;
}

#titlepub img { position: absolute; }
#pubesc { left: 1392px; top: 8.4px; width: 228.03px; height: 91.21px; }
#pubnova { left: 1625.06px; top: 47.97px; width: 151.09px; height: 31.87px; }
#pubfmod { left: 1789.41px; top: 40.54px; width: 115.78px; height: 39.31px; }

#pausemenu {
  position: absolute;
  right: 0;
  top: 0;
  width: 380px;
  height: 1080px;
  pointer-events: none;
}

.popt {
  position: absolute;
  left: 0;
  width: 380px;
  height: 100px;
  display: block;
  padding: 0;
  border: none;
  background: none;
  color: #aaaaaa;
  font-size: 24px;
  letter-spacing: 0;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
}

.popt:nth-child(1) { top: 80.8px; }
.popt:nth-child(2) { top: 180.8px; }
.popt:nth-child(3) { top: 280.8px; }
.popt:nth-child(4) { top: 380.8px; }
.popt:nth-child(5) { top: 480.8px; }
.popt:nth-child(6) { top: 580.8px; }

.popt::before, .popt::after {
  content: "";
  position: absolute;
  left: 52px;
  width: 300px;
  height: 24px;
  background: center / 100% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.popt::before { top: -12.2px; background-image: url("../assets/image/ui/newui/main_sptT.png"); }
.popt::after { top: 87.5px; background-image: url("../assets/image/ui/newui/main_sptB.png"); }
.popt:hover::before, .popt:hover::after, .popt.sel::before, .popt.sel::after { opacity: 1; }
.pico { position: absolute; left: 66px; top: 26px; width: 48px; height: 48px; flex: none; }
.popt span { display: block; line-height: 100px; }
.popt:hover span, .popt.sel span { color: #ffdf7e; text-shadow: 0 0 14px rgba(255, 200, 80, .35); }
.popt:hover img, .popt.sel img { filter: drop-shadow(0 0 8px rgba(255, 200, 80, .5)); }

#pause .panelinner { display: none; }
#pause { background: rgba(0, 0, 0, .62); }

#logo {
  position: absolute;
  left: 140px;
  top: 156px;
  width: 488px;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .55));
  pointer-events: none;
}

.mbtn {
  width: 374px;
  height: 100px;
  border: none;
  background: url("../assets/ui/talk_selbg.png") center / 100% 100% no-repeat;
  color: #e5dbcb;
  font-size: 27px;
  letter-spacing: 5px;
  cursor: pointer;
  font-family: inherit;
  transition: color .18s, filter .18s;
  text-align: center;
  padding: 0;
}

.mbtn:hover {
  background-image: url("../assets/ui/talk_selchose.png");
  color: #fff;
  padding-left: 0;
}

.mbtn.small { width: 300px; height: 84px; font-size: 23px; letter-spacing: 3px; }

/* ---------- panels ---------- */
.panel {
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(2px);
  z-index: 30;
}

.panel.on { display: flex; }

.panelinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 56px 72px;
  background: linear-gradient(180deg, #17140f, #0d0c0a);
  border: 1px solid rgba(217, 179, 108, .35);
}

.panelinner.wide { width: 900px; max-height: 820px; }

/* ---------- control guide ---------- */
#opnote { background: #040405; backdrop-filter: none; }

#opnotebox { position: absolute; inset: 0; }
#opnoteimg, #opnoteimg2, #opnoteimg3 { position: absolute; display: block; object-fit: fill; }
#opnoteimg { left: 155.5px; top: 104.5px; width: 865px; height: 436.5px; }
#opnoteimg2 { left: 157.8px; top: 527.1px; width: 862.7px; height: 441.9px; }
#opnoteimg3 { left: 1065.7px; top: 336.4px; width: 745.6px; height: 439.3px; }
#opnoteback { position: absolute; left: 1792.7px; top: 0.6px; width: 84px; height: 212px; padding: 0; border: 0; background: url("../assets/ui/backlog/save_exit.png") center / 100% 100% no-repeat; cursor: pointer; }
#opnotenav { display: none; }

.ptitle {
  font-size: 40px;
  letter-spacing: 10px;
  color: var(--gold);
  margin-bottom: 18px;
}

.row {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 22px;
  width: 100%;
  font-size: 25px;
  color: #d6cbb6;
  padding: 0 6px;
}

.row input[type=range] { width: 100%; accent-color: #c8a263; }

#savelist, #loglist {
  width: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 560px;
}

.slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(217, 179, 108, .18);
  cursor: pointer;
  font-size: 24px;
}

.slot:hover { border-color: var(--gold); background: rgba(217, 179, 108, .1); }
.slot .meta { color: #9c9284; font-size: 21px; }

.logline { padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 24px; line-height: 1.6; }
.logline .who { color: var(--gold); margin-right: 14px; }
.logline.narr { color: #f3dc8a; }

#endtext { font-size: 28px; line-height: 1.9; color: #ddd2bc; max-width: 700px; text-align: center; white-space: pre-wrap; }

/* ---------- toast ---------- */
#toast {
  left: 50%;
  top: 80px;
  transform: translateX(-50%);
  padding: 16px 46px;
  background: rgba(12, 10, 8, .88);
  border: 1px solid rgba(217, 179, 108, .4);
  font-size: 24px;
  color: #e9dcc3;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  letter-spacing: 2px;
}

#toast.on { opacity: 1; }

/* ---------- loading ---------- */
#loading {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060606;
  z-index: 60;
  transition: opacity .5s;
}

#loading.off { opacity: 0; pointer-events: none; }

.loadbox { position: absolute; left: 1581px; top: 983px; width: 240px; height: 24px; display: block; }
.loadname { display: none; }
.loadbar { width: 240px; height: 4px; margin-top: 10px; background: rgba(255, 255, 255, .1); }
#loadfill { width: 0; height: 100%; background: linear-gradient(90deg, #8a6b38, #e0bf84); transition: width .3s; }
.loadtip { display: none; }

/* bubbles for bub_ dialogues */
.bubble {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 26px 34px 30px;
  color: #3b3228;
  font-size: 26px;
  line-height: 1.55;
  max-width: 660px;
  min-width: 150px;
  pointer-events: none;
  border: 22px solid transparent;
  border-image: url(../assets/image/ui/ui_talkbubble_bk.png) 30 fill / 22px stretch;
  image-rendering: pixelated;
}
.bubble.down { transform: translate(-50%, 0); }
.bubble .bubbletext { position: relative; z-index: 1; }
.bubble .bubbletail {
  position: absolute;
  width: 29px;
  height: 35px;
  left: 46px;
  bottom: -30px;
  image-rendering: pixelated;
}
.bubble.down .bubbletail { top: -30px; bottom: auto; transform: scaleY(-1); }

/* ---------- stacking ---------- */
#dialogue { z-index: 12; }
#introtext { position: absolute; inset: 0; z-index: 11; pointer-events: none; }
#introtext > div {
  position: absolute;
  display: none;
  color: #afc8b3;
  font-family: var(--sans);
  font-size: 37px;
  line-height: 0.9;
  letter-spacing: 0;
  white-space: pre-line;
  opacity: 0;
}
#introdown {
  left: 26px;
  bottom: 88px;
  width: 1630px;
  text-align: left;
}
#intromid {
  left: 145px;
  top: 50%;
  width: 1630px;
  transform: translateY(-50%);
  text-align: center;
}
#bubbles { z-index: 13; }
#choices { z-index: 14; }
#hud { z-index: 16; }
#flash { z-index: 18; }
#vig { z-index: 15; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(0,0,0,0.9) 100%); opacity: 0; transition: opacity .2s linear; }
#noise { z-index: 16; opacity: 0; mix-blend-mode: overlay; background-image: repeating-conic-gradient(rgba(255,255,255,.18) 0deg 1deg, rgba(0,0,0,.18) 1deg 2deg); background-size: 3px 3px; }
#chrom { z-index: 17; opacity: 0; mix-blend-mode: screen; background: linear-gradient(90deg, rgba(255,0,60,.22), rgba(0,0,0,0) 38%, rgba(0,0,0,0) 62%, rgba(0,220,255,.22)); transition: opacity .2s linear; }
.heartupimg { position: absolute; object-fit: contain; pointer-events: none; z-index: 12; transform: translate(-50%, -50%); animation: heartup 1s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes heartup {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.95); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(.5); }
  76.666% { opacity: 1; transform: translate(-50%, calc(-50% - var(--rise76))) scale(.5); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - var(--rise))) scale(.5); }
}
.emoteimg { position: absolute; width: 84px; height: 84px; object-fit: contain; pointer-events: none; transition: opacity .3s linear; z-index: 12; }
#logoBig { z-index: 20; }
#white { z-index: 9; }
#chapter { z-index: 22; }
#about { z-index: 46; }
#title { z-index: 40; }
#loading { z-index: 60; }
#toast { z-index: 61; }

#vcursor {
  position: absolute;
  left: 960px;
  top: 540px;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: url(../assets/image/ui/ui_cutcursor.png) center / 64px 64px no-repeat;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .7));
  pointer-events: none;
  display: none;
  z-index: 72;
}

/* ---------- about / credits ---------- */
#about {
  position: absolute;
  inset: 0;
  background: #060505;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
  font-family: inherit;
}
#about.on { opacity: 1; pointer-events: auto; }
#aboutmask {
  position: absolute;
  left: 319px;
  top: 156px;
  width: 1292px;
  height: 768px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#aboutmask::-webkit-scrollbar { display: none; }
#aboutcontent {
  width: 1292px;
  margin: 0;
  padding: 0 0 180px;
  color: #fff;
  font-size: 20px;
  line-height: 1.78;
  white-space: pre-wrap;
  word-break: break-word;
}
#aboutcontent .abhead {
  text-align: center;
  color: #cbfdf3;
  font-size: 36px;
  line-height: 1.78;
  margin-bottom: 0;
}
#aboutcontent .abhead-thanks { margin-top: -54px; }
#aboutcontent .abtwo { display: flex; gap: 87.7px; }
#aboutcontent .abtwo > div { flex: 0 0 578.9px; width: 578.9px; min-width: 0; font-size: 32px; line-height: 1.78; }
#aboutcontent .abfull { margin-top: 36px; margin-left: 44.8px; width: 1201.7px; }
#abouttrack {
  position: absolute;
  left: 1863px;
  top: 177px;
  width: 20px;
  height: 747px;
  background: rgba(120, 110, 96, .18);
}
#aboutthumb {
  position: absolute;
  left: 0;
  width: 20px;
  height: 125px;
  background: #857c6e;
}
.aboutnav {
  position: absolute;
  top: 513px;
  width: 71.8px;
  height: 122.7px;
  border: 0;
  padding: 0;
  background: url("../assets/ui/saveload/save_nextdark.png") center / contain no-repeat;
  opacity: .42;
  cursor: pointer;
  transition: opacity .16s;
}
.aboutnav:hover { opacity: .9; }
#aboutprev { left: 114px; transform: rotate(180deg); }
#aboutnext { left: 1734px; }
#aboutpagetext {
  position: absolute;
  left: 880px;
  top: 941px;
  width: 160px;
  height: 82px;
  line-height: 82px;
  text-align: center;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
}
.aboutback {
  position: absolute;
  left: 1756px;
  top: 0;
  width: 84px;
  height: 212px;
  border: 0;
  background: url(../assets/ui/backlog/save_exit.png) center / 100% 100% no-repeat;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}
.aboutback:hover { color: #eed9ae; border-color: rgba(220, 190, 140, .55); }


/* panels above title */
#pause, #saves, #settings, #opnote, #backlog { z-index: 46; }

/* ---------- original save/load screen ---------- */
#saves { background: #050403; }
#saveroot { position: absolute; inset: 0; background: url("../assets/ui/saveload/save_bg.png") center / cover no-repeat; color: #cfc6b7; }
#savetitle, #cfgtitle, #blogtitle, .ptitle { font-family: var(--serif); }
#savetitle { position: absolute; left: 0; top: 51px; width: 1920px; height: 112px; line-height: 112px; text-align: center; font-size: 45px; letter-spacing: 0; color: #8bd7ad; }
#saves.mode-load #savetitle { color: #bfa07b; }
.saveline { position: absolute; left: 40px; top: 150px; width: 1840px; height: 2px; background: rgba(255, 255, 255, .16); }
#savelist { position: absolute; inset: 0; width: 1920px; height: 1080px; max-height: none; display: block; overflow: visible; }
.slot { position: absolute; display: block; width: 782px; height: 124.6px; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: url("../assets/ui/saveload/save_null.png") center / 100% 100% no-repeat; }
.slot:hover, .slot.sel { border: 0; }
.slot.filled { background-image: url("../assets/ui/saveload/save_normal.png"); }
#saves.mode-load .slot.filled { background-image: url("../assets/ui/saveload/load_normal.png"); }
.slot .slotno { position: absolute; left: 34.9px; top: 12.7px; width: 178.5px; height: 37.5px; line-height: 37.5px; padding-left: 10.8px; box-sizing: border-box; font-family: var(--pixel); font-size: 18px; color: #0a0a0a; background: #d8bf92; letter-spacing: 0; font-weight: 400; z-index: 2; }
.slot .slotnum { position: absolute; left: 36.8px; top: -26.9px; width: 658.2px; height: 154.3px; display: flex; align-items: flex-end; justify-content: flex-end; font-family: var(--publicpixel); font-size: 88px; line-height: 1; color: #333; z-index: 0; pointer-events: none; }
.slot .slotinfo { position: absolute; left: 36.8px; top: 45.1px; width: 725px; font-size: 26px; color: #bbb; z-index: 2; }
.slot .slottime { position: absolute; right: 22px; bottom: 20px; font-size: 18px; color: rgba(210, 199, 180, .55); text-align: right; }
.slot .slotplay { position: absolute; right: 22px; bottom: 44px; font-size: 18px; color: rgba(210, 199, 180, .55); text-align: right; }
.slot.empty .slotinfo { color: rgba(210, 199, 180, .35); }
.slot:hover, .slot.sel { background-image: url("../assets/ui/saveload/save_chosed.png"); }
#saves.mode-load .slot:hover, #saves.mode-load .slot.sel { background-image: url("../assets/ui/saveload/load_chosed.png"); }
#savemode { position: absolute; left: 1527px; top: 949px; width: 302px; height: 62px; line-height: 62px; font-size: 30px; letter-spacing: 0; color: #8bd7ad; cursor: pointer; text-align: left; padding-left: 4px; }
#saves.mode-load #savemode { color: #bfa07b; }
#savepages { position: absolute; left: 50%; top: 186px; transform: translateX(-50%); display: flex; gap: 2px; }
#saveprev, #savenext { position: absolute; top: 128px; width: 71.77px; height: 122.67px; border: none; padding: 0; background: url("../assets/ui/saveload/save_nextdark.png") center / 40px 80px no-repeat; opacity: .39; cursor: pointer; z-index: 2; }
#saveprev { left: 48px; transform: scaleX(-1); }
#savenext { right: 48px; }
.pdot { position: relative; width: 28px; height: 28px; border: none; background: none; cursor: pointer; }
.pdot::before { content: ""; position: absolute; inset: 0; background: #626c6c; -webkit-mask: url("../assets/image/ui/ui_rectline4.png") center / 100% 100% no-repeat; mask: url("../assets/image/ui/ui_rectline4.png") center / 100% 100% no-repeat; }
.pdot.on::before { background: #8bd7ad; }
#saves.mode-load .pdot.on::before { background: #bfa07b; }
.saveexit { position: absolute; left: 1792.7px; right: auto; top: 0.6px; width: 84px; height: 212px; border: none; background: url(../assets/ui/backlog/save_exit.png) center / 100% 100% no-repeat; color: transparent; font-size: 0; cursor: pointer; }

/* ---------- original config screen ---------- */
#settings { background: #080808; }
#settingroot { position: absolute; inset: 0; color: #cfc6b7; background: url("../assets/ui/config/background_config.png") center / cover no-repeat; }
#cfgtitle { position: absolute; left: 560px; top: 30px; width: 800px; height: 113px; line-height: 113px; text-align: center; font-size: 45px; letter-spacing: 0; color: #8bd7ad; }
.cfgline { display: none; }
#cfgclip { position: absolute; left: 0; top: 156px; width: 1920px; height: 740px; overflow: hidden; }
#cfglist { position: absolute; left: 0; top: 0; width: 1920px; }
.cfgrow { position: absolute; left: 389px; width: 1300px; height: 61.88px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.cfgrow.sel { background: rgba(255, 255, 255, .07); }
.cfgname { position: absolute; left: 100px; top: 0; width: 381px; height: 61.88px; line-height: 61.88px; font-size: 30px; color: rgba(255, 255, 255, .863); }
.cfgctl { position: absolute; left: 648.5px; top: 0; width: 850px; height: 61.88px; display: flex; align-items: center; }
.cfgsel { position: absolute; left: -119.1px; top: 0; width: 865.1px; height: 61.88px; }
.cfgar { width: 48px; height: 48px; border: none; background: url("../assets/ui/setting/setting_next.png") center / contain no-repeat; cursor: pointer; opacity: .75; }
.cfgsel .cfgar.left { position: absolute; left: 203.1px; top: 6.9px; transform: none; }
.cfgsel .cfgar:not(.left) { position: absolute; left: 595.5px; top: 6.9px; transform: scaleX(-1); }
.cfgar:hover { opacity: 1; }
.cfgval { position: absolute; left: 393.8px; width: 324.4px; height: 61.88px; line-height: 61.88px; text-align: center; font-size: 30px; color: #fff; }
.cfgtrack { position: relative; width: 347.4px; height: 37.5px; cursor: pointer; margin-left: 0; }
.cfgtrack .bg { position: absolute; left: 0; right: 0; top: 13.9px; height: 9.7px; background: url("../assets/ui/setting/setting_silderbg.png") center / 100% 100% no-repeat; }
.cfgtrack .fill { position: absolute; left: 0; top: 13.9px; height: 9.7px; background: #8bd7ae; }
.cfgtrack .knob { position: absolute; top: 0; width: 34.1px; height: 37.5px; margin-left: -17.05px; background: url("../assets/ui/setting/setting_silder.png") center / contain no-repeat; }
.cfgv { width: 140.7px; margin-left: 33.3px; text-align: right; font-size: 28px; color: #efe6d6; }
#cfgscroll { position: absolute; left: 1819px; top: 215px; width: 13px; height: 662px; background: rgba(255, 255, 255, .12); }
#cfgthumb { position: absolute; left: 0; width: 13px; top: 0; height: 113px; background: rgba(255, 255, 255, .55); }
#cfgside { position: absolute; left: 1448px; top: 888px; width: 415px; background: transparent; }
.cfgsidebtn { display: block; width: 415px; height: 61.9px; margin: 0; border: none; border-bottom: 1px solid rgba(255, 255, 255, .18); background: transparent; color: rgba(153, 153, 153, .863); font-size: 30px; letter-spacing: 0; cursor: pointer; text-align: right; padding-right: 14px; }
.cfgsidebtn:hover { background: rgba(255, 255, 255, .08); color: #ffe08a; }
.cfgexit { position: absolute; left: 1783px; top: 0; width: 85px; height: 133px; border: none; background: url(../assets/ui/backlog/save_exit.png) center / 100% 100% no-repeat; color: transparent; font-size: 0; cursor: pointer; }


/* ---------- original backlog screen ---------- */
#backlog { background: #050403; }
#blogroot { position: absolute; inset: 0; background: url("../assets/ui/backlog/backlog_bg.png") center / cover no-repeat; color: #cfc6b7; }
#blogtitle { position: absolute; left: 741px; top: 35px; width: 437px; height: 108px; line-height: 108px; text-align: center; font-size: 45px; letter-spacing: 0; color: #ced7d3; }
.blogline { display: none; }
#blogvline { position: absolute; left: 850px; top: 215px; width: 2px; height: 720px; background: rgba(150, 150, 150, .35); }
#blogrightbg { position: absolute; left: 1686px; top: 223px; width: 216px; height: 702px; background: url("../assets/ui/backlog/backlog_rightbg.png") center / 100% 100% no-repeat; }
#bloggrid { position: absolute; inset: 0; }
.bb { position: absolute; width: 785px; height: 125px; overflow: hidden; }
.bb .bbname { position: absolute; left: 0; top: 74px; width: 152px; height: 40px; line-height: 40px; text-align: center; font-size: 18px; color: #ced7d3; letter-spacing: 0; z-index: 2; background: linear-gradient(90deg, rgba(34,34,34,.94), rgba(82,82,82,.55)) left bottom / 100% 26px no-repeat; }
.bb .bbname::before { content: none; }
.bb .bbavatar { position: absolute; left: 16px; top: 2px; width: 114px; height: 131px; pointer-events: none; }
.bb.named { background: url("../assets/ui/backlog/talkbg.png") center / 100% 100% no-repeat; }
.bb.sel { background: url("../assets/ui/backlog/backlog_selbg.png") center / 100% 100% no-repeat; }
.bb .bbtext { position: absolute; font-size: 20px; line-height: 1.38; color: #aaaaaa; white-space: pre-wrap; word-break: break-word; }
.bb.named .bbtext { left: 169px; right: 5px; top: 0; bottom: 0; display: flex; align-items: center; font-size: 20px; line-height: 1.38; }
.bb.narr .bbtext { left: 25px; top: 12px; width: 737px; height: 100px; display: flex; align-items: center; justify-content: center; text-align: center; color: #aaaaaa; font-size: 18px; line-height: 1.4; }
.bb.narr::before, .bb.narr::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(98, 108, 108, .4);
}
.bb.narr::before { top: 0; }
.bb.narr::after { bottom: 0; }
.bb.sel .bbtag {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 92px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  font-size: 21px;
  color: #d8c29b;
  background: rgba(98, 108, 108, .28);
  border: 1px solid rgba(160, 150, 130, .28);
}
.bb.sel .bbtext { left: 128px; right: 24px; top: 24px; color: #efe6d6; }
.bb.empty { display: flex; align-items: center; justify-content: center; color: rgba(220, 210, 190, .35); font-size: 24px; }
#blognav { position: absolute; inset: 0; }
.blognavbtn { position: absolute; width: 75px; height: 64px; border: none; background: none; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
#blogfirst { left: 1713px; top: 429px; }
#bloglatest { left: 1804px; top: 429px; }
#blogprevfast { left: 1714px; top: 505px; }
#blognextfast { left: 1805px; top: 505px; }
#blogprev { left: 1714px; top: 577px; }
#blognext { left: 1804px; top: 577px; }
.blognavbtn img { width: 75px; height: 64px; object-fit: contain; }
.blognavbtn .up { transform: scaleX(-1); }
.blognavbtn:disabled { opacity: .2; cursor: default; }
.blognavbtn img { width: 75px; height: 64px; object-fit: contain; opacity: 1; }
.blognavbtn img.up { transform: scaleX(-1); }
.blognavbtn img.down { transform: none; }
.blognavbtn:hover img { opacity: 1; }
.blognavbtn:disabled { cursor: default; }
.blognavbtn:disabled img { opacity: .2; }
#blogpageinfo { position: absolute; left: 1722px; top: 667px; width: 165px; height: 62px; line-height: 62px; text-align: center; font-size: 28px; color: #aaaaaa; letter-spacing: 0; }
#blogpageleft, #blogpageright { position: absolute; top: 984px; width: 852px; height: 32px; line-height: 32px; text-align: center; font-size: 24px; color: #616b6b; letter-spacing: 0; }
#blogpageleft { left: 0; }
#blogpageright { left: 852px; }
.blogexit { position: absolute; left: 1825px; top: 108px; width: 48px; height: 48px; border: none; background: url(../assets/ui/backlog/ui_close.png) center/contain no-repeat; color: transparent; font-size: 0; cursor: pointer; }
.blogexit:hover { opacity: .75; }





.cfgsidebtn.sel { background: rgba(255, 255, 255, .13); color: #ffe08a; }
#bloggrid .bb.empty { left: 560px; top: 460px; width: 800px; height: 125px; }

#staff {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  display: none;
  z-index: 28;
  pointer-events: none;
  color: #f3f1ec;
}
#staff.on { display: block; }
#staffinner {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  opacity: 0;
  transition: opacity .6s linear;
}
#staffinner.on { opacity: 1; }
#staffinner.scroll {
  animation: staffscroll 70s linear forwards;
}
@keyframes staffscroll {
  from { transform: translateY(1080px); }
  to { transform: translateY(-100%); }
}
.staffsingle {
  position: absolute;
  left: 0;
  width: 1920px;
  top: 360px;
  text-align: center;
}
.staffhead {
  font-size: 34px;
  letter-spacing: 10px;
  color: #c9b98f;
  margin-bottom: 26px;
}
.staffname {
  font-size: 54px;
  line-height: 1.55;
  letter-spacing: 6px;
  white-space: pre-line;
}
.stafftwo {
  position: absolute;
  left: 190px;
  top: 250px;
  width: 1540px;
  display: flex;
  justify-content: space-between;
}
.staffcol {
  width: 720px;
  text-align: center;
}
.staffcol .staffname {
  font-size: 34px;
  line-height: 1.9;
  letter-spacing: 2px;
}
.stafftheend {
  position: absolute;
  left: 0;
  top: 430px;
  width: 1920px;
  text-align: center;
  font-size: 96px;
  letter-spacing: 30px;
  font-family: var(--serif);
}
.staffscrollwrap {
  position: absolute;
  left: 560px;
  top: 0;
  width: 800px;
  text-align: center;
}
.staffscrollwrap .staffname {
  font-size: 32px;
  line-height: 2.1;
  margin-bottom: 44px;
}
.staffscrollwrap .staffhead {
  font-size: 28px;
  margin-bottom: 12px;
}
.staffthanks {
  font-size: 44px;
  letter-spacing: 8px;
  margin-top: 80px;
}
.stafftitle { top: 300px; }
.stafftitle img { width: 860px; height: auto; display: block; margin: 0 auto; }






#yesno { position: absolute; inset: 0; z-index: 50; display: none; }
#yesno.on { display: block; }
#yesnopanel { position: absolute; left: 333.6px; top: 316.1px; width: 1368.9px; height: 447.7px; transform: scale(.1); opacity: 0; }
#yesno.on #yesnopanel { animation: yesnoin .45s cubic-bezier(.215,.61,.355,1) forwards; }
#yesno.off #yesnopanel { animation: yesnoout .45s cubic-bezier(.55,.055,.675,.19) forwards; }
@keyframes yesnoin { from { transform: scale(.1); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes yesnoout { from { transform: scale(1); opacity: 1; } to { transform: scale(.001); opacity: 0; } }
#yesnoline { display: none; }
#yesnobk { position: absolute; left: -34px; top: 3px; width: 1445px; height: 442px; background: url(../assets/ui/yesorno/dialog_bg.png) center / 100% 100% no-repeat; }
#yesnowarn { position: absolute; left: 78px; top: -161px; width: 60px; height: 61px; background: url(../assets/ui/yesorno/icon_warning.png) center / contain no-repeat; }
#yesnotitle { position: absolute; left: 150px; top: 131px; width: 1073px; height: 201px; color: #eee; font-family: var(--pixel); font-size: 32px; line-height: 1.45; white-space: pre-line; overflow: hidden; }
#yesnosave { position: absolute; inset: 0; display: none; }
#yesnosave.on { display: block; }
#yesnoinfo { position: absolute; left: 86px; top: 296px; width: 395px; height: 112px; color: #aaa; font-family: var(--pixel); font-size: 20px; line-height: 1.5; white-space: pre-line; }
#yesnotalk { position: absolute; left: 429px; top: 197px; width: 585px; height: 127px; background: url(../assets/ui/yesorno/dialog_talk.png) center / 100% 100% no-repeat; }
#yesnotarget { position: absolute; left: 30px; top: 28px; width: 520px; height: 70px; color: #fff; font-family: var(--pixel); font-size: 24px; line-height: 1.35; display: flex; align-items: center; justify-content: center; text-align: center; }
.yesnoface { position: absolute; display: none; object-fit: contain; }
#yesnoface_tri { right: 199px; bottom: 149px; width: 429px; height: 471px; }
#yesnoface_rice { right: 215px; bottom: 82px; width: 554px; height: 641px; }
#yesnoface_skin { right: 233px; bottom: 121px; width: 643px; height: 643px; }
.yesnobtn { position: absolute; top: 291px; height: 50px; border: 0; padding: 0; background: url(../assets/ui/yesorno/btn_normal.png) center / 100% 100% no-repeat; color: #ccc; font-family: var(--pixel); font-size: 22px; cursor: pointer; }
.yesnobtn.sel { background-image: url(../assets/ui/yesorno/btn_chosed.png); color: #fff; }
.yesnobtn img { position: absolute; top: 1px; width: 48px; height: 48px; object-fit: contain; }
.yesnobtn span { position: absolute; top: 0; height: 50px; line-height: 50px; text-align: left; }
#yesnook img { left: 32.6px; }
#yesnook span { left: 88px; width: 60px; }
#yesnocancel img { left: 137.5px; }
#yesnocancel span { left: 196px; width: 140px; }
#yesnook { left: 511.1px; width: 154.8px; background-image: url(../assets/ui/yesorno/btn_sm.png); }
#yesnook.sel { background-image: url(../assets/ui/yesorno/btn_chosed.png); }
#yesnocancel { left: 810.5px; width: 350px; }

.slot { transition: filter .2s linear; }
.slot.disabled { filter: brightness(.52); cursor: default; }
.slotflash { position: absolute; inset: 4px; z-index: 1; opacity: 0; transition: opacity .2s linear; pointer-events: none; background: url("../assets/image/ui/ui_rectline4.png") center / 100% 100% no-repeat; filter: brightness(.28); }
.slotnew { position: absolute; right: 18px; top: 10px; z-index: 3; width: 62px; height: 19px; padding: 0; font-family: var(--pixel); font-size: 16px; line-height: 19px; color: #cfc6b7; background: #494f53; text-align: center; }

#savepages .pdot { position: relative; overflow: visible; }
#savepages .pnew { position: absolute; left: 50%; top: -27px; width: 100px; transform: translateX(-50%); font-family: var(--pixel); font-size: 18px; line-height: 20px; color: #d1d1d1; text-align: center; pointer-events: none; white-space: nowrap; }

#savelist { pointer-events: none; }
#savelist .slot { pointer-events: auto; }

#saveprev, #savenext { z-index: 3; }
#saveback { z-index: 1; }


#cpuzzle { position: absolute; inset: 0; z-index: 9; display: none; pointer-events: none; user-select: none; }
#cpstage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: auto; }
#cpborder { position: absolute; left: -28px; top: -31px; right: -28px; bottom: -31px; background: rgb(60, 39, 26); }
#cppic { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#cptiles { position: absolute; inset: 0; }
.cpT { position: absolute; box-sizing: border-box; cursor: pointer; }
#cpcover { position: absolute; inset: 0; background: rgb(60, 39, 26); pointer-events: none; transform: translateX(101%); }
#cpfade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }

#bubbles { inset: 0; pointer-events: none; }

#bubbles .bubbletext { white-space: pre-line; }

#cword { position: absolute; inset: 0; z-index: 9; display: none; pointer-events: none; user-select: none; }
#cwstage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: auto; }
#cwbg, #cwtex, #cwwave { position: absolute; }
#cwtex, #cwwave { display: block; pointer-events: none; }
#cwtops, #cwwords, #cwmarks { position: absolute; inset: 0; }
.cwTop { position: absolute; box-sizing: border-box; }
.cwTopShadow { position: absolute; display: block; }
.cwTopBack { position: absolute; display: block; transition: opacity .25s linear; }
.cwTopWord { position: absolute; display: block; transform-origin: 50% 50%; pointer-events: none; }
.cwWord { position: absolute; display: block; cursor: pointer; image-rendering: auto; }
.cwMark { position: absolute; display: block; pointer-events: none; transform-origin: 50% 50%; }
#cwfade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }

#cwdim { position: absolute; inset: 0; pointer-events: none; }
#cwshadow, #cwbg, #cwoshadow, #cwo, #cwclip { position: absolute; }

@font-face {
  font-family: "ThreefoldKai";
  src: url("../assets/fonts/XuandongKaishu.ttf") format("truetype");
  font-display: swap;
}

#tasktip {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
  z-index: 20; display: none; pointer-events: auto; cursor: pointer;
  user-select: none; touch-action: none;
}
#tasktipcv { width: 1920px; height: 1080px; display: block; }

#cslide { position: absolute; inset: 0; z-index: 9; display: none; pointer-events: none; user-select: none; }
#mt { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; z-index: 7; display: none; pointer-events: none; user-select: none; }
#mtcv { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: block; }
#csstage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; pointer-events: auto; background: #000; }
#csbg { position: absolute; inset: 0; display: none; }
#csscenes { position: absolute; inset: 0; }
.csScene { position: absolute; inset: 0; display: none; overflow: hidden; }
.csBg { position: absolute; display: block; box-sizing: border-box; }
#cscanvas { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: block; pointer-events: none; }
#cslabels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.csName { position: absolute; display: none; transform: translate(-50%, -50%); color: rgb(92,54,51); font-family: "ThreefoldKai", "ThreefoldSerif", serif; font-size: 29px; line-height: 1.05; text-align: center; white-space: pre-line; letter-spacing: 0; }
.csBottom { position: absolute; left: 253px; top: 942px; width: 745px; height: 384px; transform: translate(-50%, -50%); color: rgb(13,11,29); font-family: "ThreefoldKai", "ThreefoldSerif", serif; font-size: 58px; line-height: 1.05; text-align: center; white-space: pre-line; display: flex; align-items: center; justify-content: center; }
#csfg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; display: none; transform: translateX(-1920px); pointer-events: none; }
#csfade { position: absolute; inset: 0; background: #000; opacity: 0; display: none; pointer-events: none; }

