@charset "UTF-8";
.account-button {
  border: 1px solid #d4b77f66;
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-status {
  font: 10px/1.8 sans-serif;
  color: #99b8aa;
  margin: 8px 0;
  letter-spacing: 0.04em;
}
.secondary-actions {
  flex-wrap: wrap;
  row-gap: 0;
}
.run-history {
  max-height: 43svh;
  overflow: auto;
  border-top: 1px solid #bca67433;
}
.run-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #bca67433;
  padding: 15px 0;
}
.run-row strong {
  display: block;
  font-size: 15px;
  color: #d4b77f;
  letter-spacing: 0.05em;
}
.run-row small {
  display: block;
  font: 10px/1.9 sans-serif;
  color: #9aafa4;
}
.run-row > span {
  font: 25px serif;
  color: #b7a77a;
  border: 1px solid #bca67433;
  padding: 7px 10px;
}
#google-signin {
  min-height: 1px;
  margin: 15px 0;
  font: 12px/1.8 sans-serif;
  color: #b9c9bc;
}
@media (max-width: 600px) {
  .site-header nav > a {
    display: none !important;
  }
  .site-header nav {
    gap: 9px;
  }
  .account-button {
    font-size: 11px;
    padding: 8px 9px;
    max-width: 120px;
  }
  .hero {
    min-height: 750px !important;
  }
  .hero-copy {
    padding-bottom: 75px !important;
  }
  .account-status {
    max-width: 245px;
  }
  .secondary-actions {
    max-width: 270px;
  }
}
:root {
  --ink: #08171e;
  --panel: #10262c;
  --gold: #d4b77f;
  --paper: #ede6d5;
  --jade: #9bd7c8;
  --muted: #9aaba9;
  --line: #bca67433;
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  color: var(--paper);
  background: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover,
button:hover {
  color: #fff3ce;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
button {
  min-height: 44px;
  border: 0;
  background: none;
}
p {
  line-height: 1.8;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
[hidden] {
  display: none !important;
}
.site-header {
  height: 90px;
  max-width: 1440px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.5%;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 20px;
  letter-spacing: 0.2em;
}
.brand small {
  display: block;
  font: 8px/2 sans-serif;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.brand-seal {
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  height: 36px;
  width: 33px;
  font-size: 23px;
  transform: rotate(-4deg);
}
nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13px;
  letter-spacing: 0.1em;
}
nav a {
  padding: 14px 0;
}
.icon-button {
  border: 1px solid var(--line);
  width: 44px;
  min-width: 44px;
  font-size: 22px;
}
.hero {
  position: relative;
  min-height: 700px;
  height: min(810px, calc(100svh - 130px));
  max-width: 1440px;
  margin: auto;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-art {
  position: absolute;
  inset: 0;
  background-image: var(--asset-key_visual,url("./assets/key_visual.webp"));
  background-size: auto 140%;
  background-position: right 40% center;
  background-repeat: no-repeat;
  background-color: #07151c;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #08171ef5 2%,
      #08171ec9 32%,
      #08171e30 60%,
      #08171e00 85%
    ),
    linear-gradient(0deg, #08171ef0 0%, transparent 30%, #07151c10 90%);
}
.hero-copy {
  position: relative;
  padding: 58px 0 30px 10%;
  z-index: 2;
  width: 58%;
}
.eyebrow {
  color: var(--gold);
  font: 10px/2 sans-serif;
  letter-spacing: 0.24em;
}
.eyebrow span {
  display: inline-block;
  width: 25px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 8px;
}
.chapter {
  font-size: 12px;
  letter-spacing: 0.5em;
  color: #bec8bb;
  margin: 30px 0 8px;
}
h1 {
  font-size: clamp(70px, 8vw, 112px);
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.25;
  color: #eee3cc;
  margin: 0 0 8px;
  text-shadow: 0 3px 25px #020b0e;
}
.subtitle {
  font-size: 21px;
  letter-spacing: 0.6em;
  color: var(--gold);
  margin: 0 0 20px;
}
.divider {
  color: var(--gold);
  display: flex;
  gap: 15px;
  align-items: center;
  width: 190px;
  font-size: 10px;
  margin-bottom: 22px;
}
.divider:before,
.divider:after {
  content: "";
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c8ac7566);
}
.divider:after {
  transform: rotate(180deg);
}
.poem {
  font-size: 17px;
  letter-spacing: 0.2em;
  color: #ccd3c7;
  margin-bottom: 30px;
}
.primary {
  background: linear-gradient(110deg, #d7be8c, #bda16c);
  color: #16272a;
  border: 1px solid #ead6a7;
  box-shadow: inset 0 0 0 3px #10212520;
  font-weight: bold;
  letter-spacing: 0.25em;
  padding: 14px 28px;
  min-height: 54px;
}
.primary:hover {
  background: #e8d1a1;
  color: #14272c;
}
.enter {
  width: 260px;
  text-align: left;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.enter span {
  font: 25px sans-serif;
}
.play-note {
  font: 10px/2 sans-serif;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 12px;
}
.secondary-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #b6c5bb;
  font-size: 12px;
}
.secondary-actions button {
  padding: 0;
  min-height: 44px;
}
.secondary-actions a {
  padding: 14px 0;
}
.best {
  color: #b8a477;
  font: 10px/1.8 sans-serif;
  letter-spacing: 0.1em;
  margin-top: 12px;
}
.hero-caption {
  position: absolute;
  bottom: 36px;
  right: 7%;
  text-align: right;
  color: #bbc9bf;
  font-size: 14px;
  letter-spacing: 0.2em;
}
.hero-caption small {
  display: block;
  font: 8px/3 sans-serif;
  color: #bfa773;
  letter-spacing: 0.3em;
}
.vertical-note {
  position: absolute;
  top: 80px;
  right: 5%;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: #d9c79988;
}
.art-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.8' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 30px 7%;
  max-width: 1440px;
  margin: auto;
  gap: 36px;
}
.features article {
  display: flex;
  gap: 18px;
  align-items: center;
}
.feature-symbol {
  color: var(--gold);
  font-size: 26px;
  border: 1px solid var(--line);
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transform: rotate(2deg);
}
.features h2 {
  font-size: 14px;
  letter-spacing: 0.15em;
  font-weight: 400;
  margin: 0 0 5px;
}
.features p {
  font: 11px/1.7 sans-serif;
  color: var(--muted);
  margin: 0;
}
.seo-copy {
  max-width: 850px;
  padding: 35px 24px;
  margin: 0 auto;
  font: 13px/1.9 sans-serif;
  color: #9bafa9;
}
.seo-copy h2 {
  font: 22px serif;
  color: var(--gold);
}
.js .seo-copy {
  display: none;
}
footer {
  max-width: 1440px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 22px 6%;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  color: #819791;
  font: 10px/1.8 sans-serif;
}
#play {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 65px;
  padding: 20px;
}
.playing .site-header,
.playing footer {
  display: none;
}
.playing {
  overflow: hidden;
}
.game-shell {
  position: relative;
  height: min(100svh, 1000px);
  width: auto;
  aspect-ratio: 390/844;
  max-width: 100%;
  isolation: isolate;
  box-shadow: 0 0 80px #0005;
  user-select: none;
  container-type: inline-size;
}
#play {
  padding: 0;
  min-height: 100svh;
}
#game {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}
.game-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 2.5% 5%;
  height: 12%;
  background: linear-gradient(#07161efa, #07161ed9, transparent);
  pointer-events: none;
  font-family: sans-serif;
}
.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  height: 42px;
}
.hud-top button {
  pointer-events: auto;
  font-size: 18px;
  background: #0c2128bb;
}
.hud-top time {
  font-variant-numeric: tabular-nums;
  color: #e4d2a8;
  font-size: 19px;
}
.resource {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 10px;
  margin-top: 4px;
}
.resource span {
  letter-spacing: 0.15em;
  color: #c0cec5;
  white-space: nowrap;
}
.resource b {
  width: 26px;
  text-align: right;
  font: 10px sans-serif;
}
.bar {
  height: 5px;
  background: #020d14a6;
  border: 1px solid #acb7aa22;
  overflow: hidden;
  flex: 1;
}
.bar i {
  height: 100%;
  display: block;
  transform-origin: left;
  width: 100%;
  transition: width 0.12s linear;
}
.hp i {
  background: linear-gradient(90deg, #659e90, #a1dac8);
}
.incense i {
  background: linear-gradient(90deg, #a98b53, #ecd29a);
}
#boss-hud {
  padding-top: 14px;
  color: #efaaa2;
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.2em;
}
#boss-hud > div:first-child {
  display: flex;
  justify-content: space-between;
  padding-bottom: 5px;
}
.boss {
  height: 7px;
}
.boss i {
  background: linear-gradient(90deg, #893c50, #e98c7c);
}
.game-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 5% 3%;
  height: 15%;
  background: linear-gradient(transparent, #08171eea 20%);
  font-family: sans-serif;
  pointer-events: none;
}
.xp-label {
  display: flex;
  justify-content: space-between;
  color: #d6c69a;
  font-size: 10px;
  margin-bottom: 7px;
}
.xp {
  height: 4px;
}
.xp i {
  background: #a4ded0;
}
.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
}
.control-row p {
  font-size: 10px;
  line-height: 1.8;
  flex: 1;
  color: #b9c9bd;
  margin: 0;
}
.control-row p:last-child {
  text-align: right;
}
.control-row small {
  font-size: 9px;
  color: #809b94;
}
.control-row button {
  pointer-events: auto;
  touch-action: none;
  width: 66px;
  height: 66px;
  border: 1px solid #c8af74;
  border-radius: 50%;
  background: #c4aa6b15;
  box-shadow:
    inset 0 0 0 5px #091a21,
    inset 0 0 0 6px #c8af7444;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e5cb8d;
}
.control-row button span {
  font: 27px serif;
  line-height: 1.1;
}
.control-row button small {
  font-size: 9px;
  margin-top: 3px;
  color: inherit;
}
.desktop-guide {
  max-width: 270px;
}
.desktop-guide h2 {
  font-size: 29px;
  color: #d9c397;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin: 24px 0;
}
.desktop-guide p {
  font-size: 14px;
  color: #aabdb3;
  letter-spacing: 0.08em;
}
.desktop-guide dl {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  font: 12px/2 sans-serif;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 13px;
}
.desktop-guide dt {
  color: var(--gold);
}
.desktop-guide dd {
  margin: 0;
  color: #9eafa8;
}
.desktop-guide .guide-hint {
  font-size: 12px;
}
.game-shell #game-message {
  position: absolute;
  top: 43%;
  left: 6%;
  right: 6%;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: #f0dcaf;
  text-shadow: 0 2px 6px #000;
  pointer-events: none;
  transition: opacity 1s;
}
dialog {
  color: var(--paper);
  background: linear-gradient(145deg, #152e33, #0a1b23);
  border: 1px solid #b69c6555;
  width: min(560px, calc(100% - 24px));
  max-height: 92svh;
  padding: 0;
  box-shadow: 0 20px 100px #000b;
}
dialog::backdrop {
  background: #010b11bb;
  backdrop-filter: blur(7px);
}
#modal-content {
  padding: 32px;
  overflow-wrap: anywhere;
}
dialog h2 {
  font-size: 29px;
  font-weight: 400;
  letter-spacing: 0.13em;
  color: #e4cf9f;
  margin: 6px 0 20px;
}
dialog h3 {
  color: #d8c18e;
  letter-spacing: 0.13em;
  font-size: 17px;
}
dialog p {
  font-size: 14px;
  color: #b9cac0;
  line-height: 1.9;
}
.modal-kicker {
  font: 9px/2 sans-serif;
  color: var(--gold);
  letter-spacing: 0.25em;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.secondary {
  border: 1px solid #c2ae7b55;
  padding: 10px 19px;
  color: #cfceb4;
  font-size: 13px;
  min-height: 48px;
  letter-spacing: 0.1em;
}
.close {
  float: right;
  font: 23px sans-serif;
  min-width: 44px;
}
.intro-text {
  font-size: 21px;
  line-height: 2.1;
  letter-spacing: 0.15em;
  color: #e7dec7;
  margin: 32px 0;
  min-height: 180px;
}
.intro-counter {
  color: var(--gold);
  font: 11px sans-serif;
  letter-spacing: 0.2em;
}
.cards {
  display: grid;
  gap: 12px;
}
.upgrade {
  border: 1px solid #c3ab6a55;
  padding: 18px;
  background: linear-gradient(120deg, #d4bb7d0a, transparent);
  text-align: left;
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 100px;
}
.upgrade:hover {
  border-color: #dec385;
  background: #cfb97b18;
}
.upgrade-glyph {
  font: 32px serif;
  color: var(--gold);
  border-right: 1px solid var(--line);
  padding-right: 18px;
}
.upgrade strong {
  font-size: 18px;
  letter-spacing: 0.2em;
}
.upgrade small {
  display: block;
  font: 11px/1.9 sans-serif;
  color: #b3c8bb;
}
.upgrade .tag {
  font-size: 9px;
  color: #ad9866;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 25px 0;
}
.stat-grid div {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  color: var(--gold);
  font-size: 25px;
}
.stat-grid small {
  display: block;
  color: #8eaaa0;
  font: 10px/2 sans-serif;
}
.memory {
  border: 1px solid var(--line);
  padding: 20px;
  margin: 15px 0;
  background: #a8c9af08;
}
.memory.locked {
  color: #58736b;
}
.memory h3 {
  margin: 0 0 10px;
}
.memory p {
  margin: 0;
  font-size: 13px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 24px 0;
  font: 14px sans-serif;
}
.setting-row input[type="range"] {
  width: 55%;
  accent-color: var(--gold);
  min-height: 44px;
}
.setting-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--gold);
}
.service-links {
  display: grid;
  gap: 10px;
}
.service-links a {
  padding: 14px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: #d3c69e;
}
.legal {
  font: 11px/1.8 sans-serif;
  color: #8ba198;
}
.share-link {
  width: 100%;
  background: #04131c;
  color: #bad0c4;
  border: 1px solid var(--line);
  padding: 12px;
  font: 12px sans-serif;
  min-height: 44px;
}
.share-preview {
  width: 150px;
  display: block;
  margin: 15px auto;
}
.sponsor {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 11px;
  color: #91a89e;
}
#toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: #d7c697;
  color: #14292b;
  padding: 12px 20px;
  z-index: 30;
  font: 12px/1.6 sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#toast.show {
  opacity: 1;
}
@media (min-width: 1600px) {
  .hero-art {
    background-size: auto 145%;
    background-position: right 40% center;
  }
}
@media (max-width: 950px) {
  .desktop-guide {
    display: none;
  }
  .hero-copy {
    width: 70%;
    padding-left: 7%;
  }
  .hero-art {
    background-position: 60% center;
  }
  .features {
    gap: 20px;
    padding: 27px 5%;
  }
  .features article {
    gap: 10px;
  }
  .features h2 {
    font-size: 12px;
  }
  .features p {
    font-size: 10px;
  }
  .feature-symbol {
    width: 38px;
    height: 42px;
    font-size: 22px;
  }
  nav {
    gap: 20px;
  }
  .hero-caption {
    right: 5%;
    bottom: 26px;
  }
}
@media (max-width: 600px) {
  .site-header {
    height: 72px;
    padding: 0 6%;
  }
  .brand {
    font-size: 17px;
    gap: 9px;
  }
  .brand small {
    font-size: 6px;
  }
  .brand-seal {
    height: 31px;
    width: 28px;
    font-size: 21px;
  }
  nav {
    gap: 14px;
    font-size: 11px;
  }
  nav a:nth-child(2) {
    display: none;
  }
  .icon-button {
    width: 44px;
    min-width: 44px;
  }
  .hero {
    min-height: 650px;
    height: calc(100svh - 72px);
    max-height: 920px;
  }
  .hero-art {
    background-size: auto 112%;
    background-position: 57% 45%;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, #07171ecf, #07171e22 65%),
      linear-gradient(0deg, #08171e 0%, #08171eb0 26%, #08171e05 80%);
  }
  .hero-copy {
    padding: 40px 0 20px 8%;
    width: 94%;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.2em;
  }
  .chapter {
    margin: 30px 0 7px;
    font-size: 10px;
  }
  h1 {
    font-size: 76px;
  }
  .subtitle {
    font-size: 17px;
    margin-bottom: 20px;
  }
  .divider {
    width: 165px;
    margin-bottom: 22px;
  }
  .poem {
    font-size: 14px;
    letter-spacing: 0.15em;
    margin-bottom: 25px;
  }
  .enter {
    width: 230px;
    min-height: 55px;
    font-size: 17px;
  }
  .play-note {
    font-size: 9px;
  }
  .secondary-actions {
    gap: 17px;
    font-size: 11px;
  }
  .hero-caption {
    bottom: 22px;
    left: 8%;
    right: auto;
    text-align: left;
    font-size: 11px;
  }
  .hero-caption small {
    font-size: 7px;
  }
  .vertical-note {
    top: 55px;
    right: 6%;
    font-size: 9px;
  }
  .features {
    grid-template-columns: 1fr;
    padding: 25px 8%;
    gap: 22px;
  }
  .features article {
    gap: 20px;
  }
  .features h2 {
    font-size: 14px;
  }
  .features p {
    font-size: 11px;
  }
  .feature-symbol {
    width: 42px;
    height: 42px;
  }
  footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 22px 8%;
    gap: 10px 25px;
  }
  footer a {
    min-height: 44px;
    padding-top: 10px;
    width: 100%;
  }
  #modal-content {
    padding: 24px;
  }
  dialog h2 {
    font-size: 25px;
  }
  .intro-text {
    font-size: 19px;
  }
  .upgrade {
    padding: 14px;
    min-height: 93px;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat-grid div {
    font-size: 22px;
  }
  .playing .game-shell {
    width: min(100vw, calc(100svh * 390 / 844));
    height: auto;
    max-height: 100svh;
  }
  .playing #play {
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    min-height: 100svh;
  }
  .playing .game-shell {
    max-height: calc(
      100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom)
    );
  }
}
@media (max-width: 350px) {
  h1 {
    font-size: 65px;
  }
  .hero-copy {
    padding-top: 28px;
  }
  .hero {
    min-height: 610px;
  }
  .secondary-actions {
    gap: 12px;
  }
  .hud-top {
    height: 36px;
  }
  .resource {
    margin-top: 2px;
  }
  .control-row button {
    width: 58px;
    height: 58px;
  }
  .control-row p {
    font-size: 9px;
  }
  .control-row small {
    font-size: 8px;
  }
  #modal-content {
    padding: 20px;
  }
  .upgrade-glyph {
    font-size: 28px;
    padding-right: 12px;
  }
  .upgrade strong {
    font-size: 16px;
  }
  .upgrade small {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.mobile-help {
  display: none;
}
@media (max-width: 600px) {
  .mobile-help {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .hero {
    height: auto !important;
  }
}

.dream-status {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 17.5%;
  pointer-events: none;
  text-align: center;
  font: 11px/1.7 sans-serif;
  color: #e9d4a7;
  text-shadow: 0 2px 4px #000;
}
.dream-status #objective {
  display: inline-block;
  background: #071a22df;
  border: 1px solid #cfb57555;
  border-radius: 4px;
  padding: 3px 8px;
}
.dream-status small {
  display: block;
  color: #a9d7d0;
  font-size: 10px;
}
.run-build {
  color: #c2dacf;
  font: 12px/1.9 sans-serif;
  padding: 12px;
  border: 1px solid #c6ad6644;
}
.story-premise {
  max-width: 850px;
  padding: 40px 24px;
  margin: auto;
  color: #b5c7bc;
  font: 14px/2 serif;
}
.story-premise h2 {
  font-weight: 400;
  color: #d9c18e;
  letter-spacing: 0.1em;
}
@media (max-width: 420px) {
  .dream-status {
    font-size: 10px;
    bottom: 18%;
  }
  .dream-status small {
    font-size: 9px;
  }
}

.game-bottom {
  height: 20%;
  background: linear-gradient(transparent, #08171ef5 15%);
}
.dream-status {
  bottom: 20.5%;
  font-size: 10px;
}
.dream-status small {
  font-size: 9px;
}
.weapon-belt {
  display: flex;
  gap: 4px;
  height: 39px;
  margin-bottom: 7px;
  pointer-events: none;
}
.weapon-slot {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  flex: 1;
  min-width: 0;
  background: #0b222bdd;
  border: 1px solid #a4b7ae44;
  border-bottom: 2px solid var(--weapon-color);
  border-radius: 4px;
  color: var(--weapon-color);
}
.weapon-slot > span {
  font: 22px serif;
}
.weapon-slot div {
  min-width: 0;
}
.weapon-slot b {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 9px/1.8 sans-serif;
}
.weapon-slot small {
  font: 8px/1.5 sans-serif;
  letter-spacing: 1px;
  display: block;
}
.weapon-slot.evolved {
  box-shadow: inset 0 0 14px #d2b56833;
  border-color: var(--weapon-color);
}
.weapon-card .upgrade-glyph,
.weapon-card .rank-pips {
  color: var(--weapon-color);
}
.weapon-card.evolution {
  border-color: var(--weapon-color);
  box-shadow: inset 0 0 35px #d3b56d22;
}
.rank-pips {
  letter-spacing: 0.15em;
}
.route-map {
  padding: 12px;
  border: 1px solid #a9c3ad44;
  border-radius: 5px;
  color: #d2c28e;
  font: 12px/1.8 serif;
  margin-bottom: 18px;
}
#meditate {
  width: 60px;
  height: 60px;
  border-color: #98cfc0;
  color: #b5e6d4;
}
#meditate[aria-pressed="true"] {
  background: #b5e6d42b;
  box-shadow: 0 0 22px #91ddba44;
}
.control-row {
  gap: 7px;
}
.control-row p {
  font-size: 9px;
}
.control-row p:last-child {
  max-width: 75px;
}
@media (max-width: 420px) {
  .weapon-slot {
    padding: 2px 3px;
    gap: 2px;
  }
  .weapon-slot > span {
    font-size: 18px;
  }
  .weapon-slot b {
    font-size: 8px;
  }
  .weapon-slot small {
    font-size: 7px;
    letter-spacing: 0;
  }
  .control-row button {
    width: 60px;
    height: 60px;
  }
  .control-row {
    gap: 5px;
  }
}

.weapon-metrics {
  color: #b6e3da !important;
  font: 11px/1.9 sans-serif !important;
}
.weapon-weakness {
  color: #c9b99e !important;
}
.arts-book article {
  padding: 12px 0;
  border-bottom: 1px solid #b8c6b333;
}
.arts-book h3 {
  margin: 4px 0;
}
.arts-book p {
  margin: 7px 0;
}

/* Twelve realms and alchemy; controls stay inside the 390px playfield. */
.chapter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.chapter-grid .upgrade{min-width:0}.alchemy-card{padding:16px;border:1px solid #99b9b433;border-radius:12px;background:#122a3066;margin:10px 0}.alchemy-card p{font-size:14px}.essence-stock{display:flex;flex-wrap:wrap;gap:8px}.essence-stock button{flex:1;min-width:95px}.essence-stock small{display:block;font-size:10px;margin-top:5px}.relic-card{border-color:#b9b2d988}.chapter-grid small{display:block} @media(max-width:520px){.chapter-grid{grid-template-columns:1fr}.alchemy-card{padding:12px}}

.alchemy-status{position:absolute;left:50%;transform:translateX(-50%);top:27%;width:82%;text-align:center;pointer-events:none;color:#efdcb0;font:11px/1.6 sans-serif;text-shadow:0 1px 5px #000;opacity:.9}.alchemy-status small{display:block;color:#bce5d7;font-size:10px}

/* 6.2: independent feedback, six real portraits, no interactive alchemy controls. */
.alchemy-status{left:3%;top:12%;transform:none;width:94%;text-align:center;font:11px/1.35 sans-serif;background:linear-gradient(#071b22ed,#0c252ada);border:1px solid #c5ad6b66;border-radius:8px;padding:4px 5px;box-sizing:border-box;opacity:1;z-index:3}.alchemy-status>span{display:block;color:#f2ddb1;font-weight:600;font-size:10px}.alchemy-status small{font-size:9px;line-height:1.4}.guardian-roster{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;margin:3px 0}.guardian-card{min-width:0;position:relative;border:1px solid #a5b7b344;border-radius:5px;padding:2px 0;background:#102a30;color:var(--guardian-color);line-height:1.1}.guardian-portrait{display:block;width:32px;height:28px;margin:auto;background-repeat:no-repeat}.guardian-card b,.guardian-card span,.guardian-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:8px;line-height:1.25}.guardian-card b{font-size:9px;font-weight:600}.guardian-card.dormant{opacity:.48;filter:grayscale(.85)}.guardian-card.main-guardian{border-color:var(--guardian-color);box-shadow:inset 0 0 9px #c5e9ce33}.guardian-card.support-guardian{border-bottom:2px solid #8de4d8}.guardian-card.guardian-changed{box-shadow:0 0 8px var(--guardian-color)}.alchemy-feed{position:absolute;top:37%;left:3%;width:61%;pointer-events:none;z-index:3;font:11px/1.4 sans-serif;color:#d2eedc;text-shadow:0 1px 4px #000}.alchemy-feed p{background:#071c24cc;border-left:2px solid #b8ce9e;margin:3px 0;padding:4px 6px;border-radius:0 4px 4px 0;font-size:11px}.alchemy-feed time{font-size:9px;color:#aaa777;margin-right:5px}.alchemy-feed small{display:block;font-size:9px;color:#bfd1c5;background:#071c2488;padding:3px 5px}.alchemy-feed .notice-rescue{color:#d0ffa7}.alchemy-feed .notice-evolve{border-color:#f4c879;color:#ffe2a3}@media(max-width:360px){.alchemy-status{padding:3px}.guardian-portrait{width:27px;height:25px}.guardian-card b{font-size:8px}.alchemy-feed{font-size:10px;width:68%}}

/* 7.0 comic presentation; large type, portrait touch layout, wide desktop arena. */
body{font-size:18px}button,a,input{font-size:16px}small,.legal{font-size:14px;line-height:1.6}.primary,.secondary{border-width:2px;box-shadow:3px 3px 0 #030b11}.modal-kicker{font-size:15px}#modal-content{font-size:18px;line-height:1.6}#modal-content h2{font-size:30px;line-height:1.4}#modal-content h3{font-size:22px}#modal-content p{font-size:17px}.upgrade strong{font-size:21px;line-height:1.4}.upgrade small,.weapon-metrics,.weapon-weakness{font-size:16px;line-height:1.55}.upgrade-glyph{font-size:42px}.tag,.rank-pips{font-size:15px}.cards{gap:14px}.stat-grid small,.run-row small,.setting-row{font-size:16px}.site-header nav{font-size:16px}.play-note,.best,.account-status,.secondary-actions{font-size:16px}.hero-copy .eyebrow{font-size:16px}
.playing #play{gap:0;padding:0;min-height:100svh}.desktop-guide{display:none}.playing .game-shell{width:min(100vw,calc(100svh * 390 / 650));height:100svh;max-height:100svh;aspect-ratio:auto;border:3px solid #040a0e;box-sizing:border-box;box-shadow:0 0 0 2px #d3b76f44,0 0 60px #0009}.game-hud{height:auto;padding:6px 4%;font-family:Arial,sans-serif}.hud-top{height:32px;font-size:16px;letter-spacing:0}.hud-top time{font-size:24px}.hud-top button{font-size:24px;min-width:44px;min-height:36px}.resource{font-size:15px;gap:8px;margin-top:3px}.resource b{font-size:16px;min-width:36px}.bar{height:9px;border:1px solid #03070a}.resource span{letter-spacing:0}#boss-hud{font-size:14px;letter-spacing:0;padding-top:4px}#boss-hud>div:first-child{padding-bottom:2px}
.alchemy-status{top:86px;left:3%;width:94%;font-family:Arial,sans-serif;padding:4px;border:2px solid #070e13;border-radius:3px;box-shadow:3px 3px 0 #02090c}.alchemy-status>span{font-size:13px;line-height:1.25;letter-spacing:0}.guardian-roster{gap:2px;margin:4px 0}.guardian-card{padding:2px 0;border-radius:2px;border-width:1px}.guardian-portrait{width:30px;height:25px}.guardian-card b{font-size:13px;line-height:1.2}.guardian-card span{font-size:12px;line-height:1.2}.guardian-card small{display:none}.alchemy-status small{font-size:13px;line-height:1.3}.alchemy-status #alchemy-stock{display:none}#alchemy-progress{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.guardian-card.main-guardian:after,.guardian-card.support-guardian:after{position:absolute;right:0;top:0;background:#0c252c;border:1px solid var(--guardian-color);font:bold 12px/1.1 sans-serif;content:'主';padding:1px}.guardian-card.support-guardian:after{content:'輔';color:#a7efde}
.dream-status{top:190px;bottom:auto;left:3%;right:3%;font:14px/1.4 Arial,sans-serif}.dream-status #objective{padding:2px 6px;border:2px solid #050a10;background:#101d24f0}.dream-status small{display:none}.game-bottom{height:160px;padding:6px 4% max(6px,env(safe-area-inset-bottom));box-sizing:border-box;background:linear-gradient(transparent,#08171ef5 15%)}.weapon-belt{height:40px;gap:4px;margin:0 0 4px}.weapon-slot{padding:3px 2px;justify-content:center;border-width:2px;border-radius:2px}.weapon-slot>span{display:none}.weapon-slot b{font-size:13px;line-height:1.25}.weapon-slot small{font-size:12px;letter-spacing:0;line-height:1.25}.xp-label{font-size:14px;margin-bottom:3px}.bar.xp{height:6px}.control-row{padding-top:6px;gap:8px}.control-row p{font-size:14px;line-height:1.35}.control-row small{font-size:12px;line-height:1.35}.control-row button{width:64px;height:64px;flex-shrink:0;border:3px solid #d2bc81;background:#10242a;box-shadow:3px 3px 0 #030b11;border-radius:12px}.control-row button span{font:bold 29px/1.1 serif}.control-row button small{font-size:12px}.alchemy-feed{top:auto;bottom:163px;left:4%;width:92%;font-size:14px}.alchemy-feed p{font-size:14px;line-height:1.4;padding:4px 6px;margin:2px 0;border-left-width:4px;background:#0a2029e8}.alchemy-feed time{font-size:12px}.alchemy-feed p:nth-child(n+2){display:none}.alchemy-feed small{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:2px 4px}#game-message{font-weight:700}.game-shell #game-message{font-size:21px;letter-spacing:0;text-shadow:2px 2px #000,-1px -1px #000;top:40%}.orientation-hint{display:none;position:absolute;inset:0;z-index:20;background:#08151df5;color:#ffe3a1;align-items:center;justify-content:center;text-align:center;font:bold 26px/1.6 sans-serif;padding:20px}.mobile-sideways.playing .orientation-hint{display:flex}
.wide-game.playing #play{padding:12px 16px;box-sizing:border-box;height:100svh;min-height:0}.wide-game.playing .game-shell{width:min(calc(100vw - 32px),calc((100svh - 24px) * 16 / 9),1920px);height:auto;max-height:calc(100svh - 24px);aspect-ratio:16/9}.wide-game .game-hud{width:72%;padding:8px 16px;box-sizing:border-box;display:grid;grid-template-columns:1fr 1fr;gap:2px 14px}.wide-game .hud-top{grid-column:1/-1;height:32px;font-size:20px}.wide-game .hud-top time{font-size:27px}.wide-game .resource{font-size:17px}.wide-game .resource b{font-size:19px}.wide-game #boss-hud{grid-column:1/-1;font-size:16px;padding:0}.wide-game .alchemy-status{top:12%;left:auto;right:1.4%;width:25%;padding:9px;border:3px solid #080e12;background:#0a2029ee;box-shadow:5px 5px 0 #02090d}.wide-game .alchemy-status>span{font-size:16px;line-height:1.4}.wide-game .guardian-roster{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0}.wide-game .guardian-portrait{width:52px;height:45px}.wide-game .guardian-card{padding:4px 1px;border-width:2px}.wide-game .guardian-card b{font-size:16px}.wide-game .guardian-card span{font-size:14px}.wide-game .guardian-card small{display:block;font-size:14px;line-height:1.3}.wide-game .alchemy-status small{font-size:15px;line-height:1.5}.wide-game .alchemy-status #alchemy-stock{display:block}.wide-game #alchemy-progress{white-space:normal;font-size:16px;border-top:1px solid #b9c2a955;padding-top:6px}.wide-game .game-bottom{left:1.8%;bottom:1.5%;width:69.5%;height:102px;padding:7px 9px;display:grid;grid-template-columns:minmax(0,1fr) 255px;grid-template-areas:'weapons controls' 'label controls' 'xp controls';gap:3px 12px;border:2px solid #070d11;background:#09202be8;box-shadow:4px 4px 0 #050a0e}.wide-game .weapon-belt{grid-area:weapons;height:46px;margin:0}.wide-game .weapon-slot b{font-size:16px}.wide-game .weapon-slot small{font-size:14px}.wide-game .xp-label{grid-area:label;font-size:16px;margin:0}.wide-game .bar.xp{grid-area:xp}.wide-game .control-row{grid-area:controls;padding:0;gap:8px}.wide-game .control-row>p:first-child{display:none}.wide-game .control-row button{width:68px;height:68px}.wide-game .control-row button span{font-size:34px}.wide-game .control-row button small{font-size:14px}.wide-game .control-row #build-label{font-size:15px}.wide-game .control-row #build-label small{font-size:13px}.wide-game .dream-status{top:auto;bottom:15.7%;left:2%;width:69%;right:auto;font-size:17px}.wide-game .alchemy-feed{top:auto;bottom:2%;left:auto;right:1.4%;width:25%;font-size:16px}.wide-game .alchemy-feed p{font-size:15px;padding:6px 8px;margin:5px 0}.wide-game .alchemy-feed p:nth-child(n+2){display:block}.wide-game .alchemy-feed small{font-size:14px;white-space:normal}.wide-game .game-shell #game-message{left:8%;right:auto;width:58%;font-size:30px;top:40%}
@media(max-width:350px){.guardian-card b{font-size:12px}.guardian-card span{font-size:12px}.alchemy-status>span{font-size:12px}.alchemy-status small{font-size:12px}.game-bottom{height:155px}.weapon-slot b{font-size:12px}.control-row #build-label{font-size:12px}.control-row #build-label small{font-size:12px}.alchemy-feed{bottom:158px}.upgrade strong{font-size:19px}.upgrade small{font-size:16px}}
@media(prefers-reduced-motion:reduce){.guardian-card,.bar i,.game-shell #game-message{transition:none}}

/* Keep the wide sidebar legible on smaller laptop windows. */
.wide-game .guardian-portrait{width:44px;height:36px}.wide-game .alchemy-feed p:nth-child(n+2){display:none}.wide-game .alchemy-status #alchemy-stock{font-size:14px}.wide-game .guardian-card small{display:none}@media(min-width:1280px) and (min-height:700px){.wide-game .alchemy-feed p:nth-child(2){display:block}}@media(min-width:1500px) and (min-height:850px){.wide-game .guardian-portrait{width:60px;height:50px}.wide-game .guardian-card b{font-size:18px}.wide-game .guardian-card small{display:block;font-size:15px}.wide-game .alchemy-status small{font-size:17px}.wide-game .alchemy-feed p:nth-child(3){display:block;font-size:17px}}
/* Portrait: use large named badges, leaving room for the touch battlefield. */
.guardian-portrait{display:none}.guardian-card b{font-size:14px}.guardian-card span{font-size:13px}.alchemy-status>span{font-size:14px}.alchemy-status small{font-size:14px}.alchemy-status #alchemy-progress{display:none}.dream-status{top:200px}.control-row #build-label,.control-row #build-label small{font-size:13px}.wide-game .guardian-portrait{display:block}.wide-game #alchemy-progress{display:block}.wide-game .dream-status{top:auto}
/* Stats occupy one compact row; roster and objective do not sit on the life bars. */
.game-hud{display:grid;grid-template-columns:1fr 1fr;gap:3px 10px;line-height:1.2}.hud-top{grid-column:1/-1}.resource{margin:0;gap:4px;line-height:1.2;font-size:14px}.resource b{font-size:15px;min-width:28px;width:28px}#boss-hud{grid-column:1/-1;line-height:1.15;padding-top:0}.boss{height:6px}.alchemy-status{top:96px}.dream-status{top:210px}.wide-game .alchemy-status{top:12%}.wide-game .dream-status{top:auto}.playing:not(.wide-game) #play{padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);box-sizing:border-box}.playing:not(.wide-game) .game-shell{height:calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.playing:not(.wide-game) .game-bottom{padding-bottom:6px}
/* The wide canvas keeps an exact 16:9 content box; the ink frame is outside it. */
.wide-game.playing .game-shell{border:0;outline:3px solid #040a0e}

/* 7.1: every game menu fits the visible viewport, including zoom and the keyboard. */
dialog {
  position: fixed;
  inset: auto;
  left: var(--menu-x, 50vw);
  top: var(--menu-y, 50vh);
  transform: translate(-50%, -50%);
  margin: 0;
  box-sizing: border-box;
  width: 640px;
  max-width: calc(var(--menu-width, 100vw) - max(12px, env(safe-area-inset-left)) - max(12px, env(safe-area-inset-right)));
  max-height: calc(var(--menu-height, 100vh) - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
  overflow: hidden;
}
@supports (height: 100dvh) {
  dialog { top: var(--menu-y, 50dvh); max-height: calc(var(--menu-height, 100dvh) - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom))); }
}
dialog[open] { display: flex; flex-direction: column; }
#modal-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  padding: clamp(14px, 4vw, 28px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
#modal-content *, #modal-content *::before, #modal-content *::after { box-sizing: border-box; min-width: 0; }
#modal-content h2 { font-size: clamp(23px, 4.6vw, 30px); letter-spacing: .06em; }
#modal-content button, #modal-content a { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
#modal-content img, #modal-content canvas { max-width: 100%; height: auto; }
#modal-content iframe { max-width: 100%; }
#modal-content .close { position: sticky; top: 0; z-index: 5; float: right; min-height: 44px; background: #10262c; border: 1px solid #c2ae7b77; }
#modal-content .upgrade { gap: clamp(8px, 2vw, 18px); padding: clamp(12px, 3vw, 18px); width: 100%; }
#modal-content .upgrade > span:last-child { flex: 1; }
#modal-content .upgrade-glyph { flex-shrink: 0; padding-right: 10px; }
#modal-content .modal-actions { gap: 8px; padding: 10px 0 2px; }
#modal-content .modal-actions > button { flex: 1 1 150px; }
#modal-content .setting-row { flex-wrap: wrap; }
#modal-content .share-link { min-width: 0; max-width: 100%; }
#modal-content .run-row { flex-wrap: wrap; }
#modal-content .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 380px) {
  #modal-content .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #modal-content .upgrade-glyph { font-size: 30px; }
  #modal-content .modal-actions > button { flex-basis: 100%; }
}
@media (min-height: 600px) {
  #modal-content .modal-actions { position: sticky; bottom: -1px; z-index: 4; background: #10262cf5; box-shadow: 0 -8px 14px #10262cdd; }
}
/* 7.2: one visible screen per menu. Long reference content uses explicit pages. */
.screen-menu[open] {
  --menu-gap: 8px;
  width: 760px;
  height: min(820px, calc(var(--menu-height, 100dvh) - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom))));
  left: calc(var(--menu-x, 50vw) + (max(12px, env(safe-area-inset-left)) - max(12px, env(safe-area-inset-right))) / 2);
  top: calc(var(--menu-y, 50dvh) + (max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom))) / 2);
  overflow: hidden;
}
.screen-menu[data-kind="upgrade"], .screen-menu[data-kind="path"], .screen-menu[data-kind="dream"], .screen-menu[data-kind="route"], .screen-menu[data-kind="chapters"] { width: 1120px; }
.screen-menu #modal-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  gap: var(--menu-gap);
  padding: clamp(12px, 2vw, 24px);
  overflow: hidden;
  scrollbar-gutter: auto;
  font: 17px/1.5 'Microsoft JhengHei', sans-serif;
}
.screen-menu #modal-content [hidden] { display: none !important; }
.screen-menu #modal-content .menu-header {
  flex: 0 0 auto; display: block; position: relative; margin: 0; padding: 0 48px 0 0; border: 0;
}
.screen-menu #modal-content .menu-header h2 { margin: 0; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.25; letter-spacing: .04em; }
.screen-menu #modal-content .modal-kicker { display: block; font-size: 14px; line-height: 1.4; letter-spacing: .1em; margin-bottom: 5px; }
.screen-menu #modal-content .close { float: none; position: absolute; top: 0; right: 0; height: 44px; width: 44px; padding: 0; }
.screen-menu #modal-content .menu-body { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; width: 100%; }
.screen-menu #modal-content .menu-page { display: flex; flex-direction: column; gap: var(--menu-gap); height: 100%; min-height: 0; overflow: hidden; }
.screen-menu #modal-content .menu-page > * { flex-shrink: 0; margin: 0; }
.screen-menu #modal-content .menu-page p { font-size: 17px; line-height: 1.55; letter-spacing: 0; }
.screen-menu #modal-content .menu-page h3 { margin: 0; font-size: 21px; line-height: 1.4; letter-spacing: .04em; }
.screen-menu #modal-content .menu-probe { position: absolute; top: 0; left: 0; height: auto; overflow: visible; visibility: hidden; pointer-events: none; }
.screen-menu #modal-content .menu-footer {
  flex: 0 0 auto; display: flex; flex-direction: column; width: 100%; gap: 8px;
  padding: 0; margin: 0; border: 0; background: none; letter-spacing: 0;
}
.screen-menu #modal-content .modal-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; gap: 8px;
  padding: 0; margin: 0; background: none; box-shadow: none; width: 100%;
}
.screen-menu #modal-content .modal-actions > :only-child { grid-column: 1/-1; }
.screen-menu #modal-content .modal-actions button,
.screen-menu #modal-content .menu-pager button { min-height: 44px; padding: 8px 10px; font-size: 16px; line-height: 1.3; letter-spacing: 0; }
.screen-menu #modal-content .menu-pager { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr); gap: 8px; align-items: center; }
.screen-menu #modal-content .menu-page-number { text-align: center; font-size: 16px; color: #ead29a; }
.screen-menu #modal-content .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: 1 1 0; min-height: 0; }
.screen-menu #modal-content .cards:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.screen-menu #modal-content .cards:has(> :only-child) { grid-template-columns: 1fr; }
.screen-menu #modal-content .upgrade { width: 100%; min-height: 0; height: 100%; padding: 16px; gap: 10px; flex-direction: column; align-items: flex-start; justify-content: center; letter-spacing: 0; }
.screen-menu #modal-content .upgrade strong { font-size: 23px; line-height: 1.35; letter-spacing: 0; }
.screen-menu #modal-content .upgrade small { font-size: 16px; line-height: 1.5; letter-spacing: 0; }
.screen-menu #modal-content .upgrade-glyph { font-size: 38px; line-height: 1.1; padding: 0; border: 0; }
.screen-menu #modal-content .choice-rank { display: inline; white-space: nowrap; font-weight: 400; color: #b6cfca; }
.screen-menu #modal-content .choice-option { display: grid; grid-template-rows: minmax(0,1fr) 44px; gap: 6px; min-height: 0; }
.screen-menu #modal-content .choice-info { min-height: 44px; padding: 6px; font-size: 16px; line-height: 1.3; letter-spacing: 0; }
.screen-menu #modal-content .choice-description { margin-top: 8px; }
.screen-menu #modal-content .choice-metrics { color: #a7e5df; margin-top: 8px; }
.screen-menu #modal-content .chapter-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-template-rows: repeat(3,minmax(0,1fr)); gap: 8px; flex: 1 1 0; min-height: 0; }
.screen-menu #modal-content .chapter-grid .upgrade { padding: 10px; justify-content: center; }
.screen-menu #modal-content .chapter-grid .upgrade strong { font-size: 21px; }
.screen-menu #modal-content .chapter-grid .upgrade small { font-size: 15px; }
.screen-menu #modal-content .setting-row { min-height: 44px; margin: 0; padding: 4px 0; font-size: 17px; }
.screen-menu #modal-content .intro-text { min-height: 0; font-size: 21px; line-height: 1.7; letter-spacing: .05em; }
.screen-menu #modal-content .stat-grid { margin: 0; gap: 12px; }
.screen-menu #modal-content .stat-grid div { font-size: 25px; padding-top: 8px; }
.screen-menu #modal-content .stat-grid small { font-size: 15px; }
.screen-menu #modal-content .share-preview { max-height: 220px; width: auto; align-self: center; object-fit: contain; }
.screen-menu #modal-content .run-row { padding: 10px 0; gap: 8px; }
.screen-menu #modal-content .run-row small { font-size: 15px; line-height: 1.4; }
.screen-menu #modal-content .menu-context { display: none; }
@media (max-width: 719px) {
  .screen-menu #modal-content { font-size: 16px; }
  .screen-menu #modal-content .modal-kicker { display: none; }
  .screen-menu #modal-content .cards,
  .screen-menu #modal-content .cards:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; grid-auto-rows: minmax(0,1fr); }
  .screen-menu #modal-content .choice-option { grid-template-columns: minmax(0,1fr) 48px; grid-template-rows: 1fr; gap: 4px; }
  .screen-menu #modal-content .upgrade { flex-direction: row; align-items: center; padding: 10px; gap: 8px; }
  .screen-menu #modal-content .upgrade strong { font-size: 19px; }
  .screen-menu #modal-content .upgrade small { font-size: 14px; line-height: 1.35; }
  .screen-menu #modal-content .upgrade-glyph { font-size: 28px; }
  .screen-menu #modal-content .choice-description, .screen-menu #modal-content .choice-metrics { margin-top: 3px; }
  .screen-menu #modal-content .menu-page p { font-size: 16px; line-height: 1.45; }
  .screen-menu #modal-content .chapter-grid { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(4,minmax(0,1fr)); gap: 5px; }
  .screen-menu #modal-content .chapter-grid .upgrade { padding: 6px 4px; }
  .screen-menu #modal-content .chapter-grid .upgrade strong { font-size: 17px; }
  .screen-menu #modal-content .chapter-grid .upgrade small { font-size: 14px; }
}
.screen-menu[data-density="1"] #modal-content,
.screen-menu[data-density="2"] #modal-content,
.screen-menu[data-density="3"] #modal-content { --menu-gap: 5px; padding: 10px; }
.screen-menu[data-density="1"] #modal-content .upgrade,
.screen-menu[data-density="2"] #modal-content .upgrade,
.screen-menu[data-density="3"] #modal-content .upgrade { padding: 6px; gap: 6px; }
.screen-menu[data-density="2"] #modal-content .upgrade-glyph,
.screen-menu[data-density="3"] #modal-content .upgrade-glyph { display: none; }
.screen-menu[data-density="2"] #modal-content .menu-page > .route-map,
.screen-menu[data-density="3"] #modal-content .menu-page > .route-map { display: none; }
.screen-menu[data-density="3"] #modal-content .choice-description,
.screen-menu[data-density="3"] #modal-content .choice-metrics,
.screen-menu[data-density="3"] #modal-content .menu-page > p:not(.choice-intro) { display: none; }
.screen-menu[data-density="3"] #modal-content .menu-context { display: block; position: absolute; top: 0; right: 0; padding: 6px; font-size: 14px; min-height: 44px; }
.screen-menu[data-density="3"] #modal-content .menu-header:has(.menu-context) { padding-right: 84px; }
@media (max-height: 500px) {
  .screen-menu #modal-content { padding: 8px; --menu-gap: 4px; }
  .screen-menu #modal-content .modal-kicker { display: none; }
  .screen-menu #modal-content .menu-header h2 { font-size: 21px; }
  .screen-menu #modal-content .menu-page p { font-size: 14px; line-height: 1.4; }
  .screen-menu #modal-content .upgrade { padding: 6px; gap: 6px; }
  .screen-menu #modal-content .upgrade strong { font-size: 18px; }
  .screen-menu #modal-content .upgrade small { font-size: 14px; line-height: 1.3; }
  .screen-menu #modal-content .upgrade-glyph { display: none; }
  .screen-menu #modal-content .chapter-grid .upgrade strong { font-size: 16px; }
  .screen-menu #modal-content .chapter-grid .upgrade small { font-size: 14px; }
}

.screen-menu #modal-content .menu-page p, .screen-menu #modal-content .menu-page h3 { margin: 0; }
.screen-menu #modal-content .menu-page article:not(.choice-option) { display: flex; flex-direction: column; gap: 8px; }
.screen-menu #modal-content .run-history { max-height: none; overflow: hidden; }
.screen-menu #modal-content .menu-page .run-row { flex-direction: row; }

.screen-menu #modal-content .upgrade strong { font-size: 25px; }
.screen-menu #modal-content .upgrade small { font-size: 18px; }
@media(max-width:719px){
 .screen-menu #modal-content .upgrade strong { font-size:21px; }
 .screen-menu #modal-content .upgrade small { font-size:16px; line-height:1.3; }
}
@media(max-height:500px){
 .screen-menu #modal-content .upgrade strong { font-size:20px; }
 .screen-menu #modal-content .upgrade small { font-size:16px; }
 .screen-menu #modal-content .chapter-grid .upgrade strong { font-size:17px; }
 .screen-menu #modal-content .chapter-grid .upgrade small { font-size:14px; }
}

/* 8.0: illustrated role dialogue, within the same single-screen menu. */
.screen-menu #modal-content .dialogue-card { display:flex; gap:20px; min-height:0; flex:1 1 0; }
.screen-menu #modal-content .dialogue-portrait { flex:0 0 42%; min-height:0; background-image:var(--asset-dialogue-v8,url('./assets/dialogue-v8.png')); background-size:400% 200%; background-repeat:no-repeat; aspect-ratio:1; align-self:center; border:2px solid #d2b77c99; box-shadow:4px 4px #031017; }
.screen-menu #modal-content .dialogue-copy { display:flex; flex-direction:column; justify-content:center; gap:14px; min-width:0; }
.screen-menu #modal-content .dialogue-copy h3 { color:#f0d8a0; font-size:26px; }
.screen-menu #modal-content .dialogue-copy p { font-size:22px; line-height:1.7; }
.screen-menu[data-kind="route"] #modal-content .dialogue-card,
.screen-menu[data-kind="dream"] #modal-content .dialogue-card { flex:0 1 40%; min-height:110px; }
.screen-menu[data-kind="route"] #modal-content .dialogue-portrait,
.screen-menu[data-kind="dream"] #modal-content .dialogue-portrait { flex-basis:140px; max-height:180px; }
.screen-menu[data-kind="route"] #modal-content .dialogue-copy p,
.screen-menu[data-kind="dream"] #modal-content .dialogue-copy p { font-size:18px; line-height:1.5; }
.guardian-card small { display:block; font-size:13px; line-height:1.3; }
@media(max-width:719px){
 .screen-menu #modal-content .dialogue-card { flex-direction:column; align-items:stretch; gap:10px; }
 .screen-menu #modal-content .dialogue-portrait { flex:0 1 auto; width:min(220px,40vh); max-height:32vh; }
 .screen-menu #modal-content .dialogue-copy h3 { font-size:23px; }
 .screen-menu #modal-content .dialogue-copy p { font-size:20px; line-height:1.55; }
 .screen-menu[data-kind="route"] #modal-content .dialogue-card,
 .screen-menu[data-kind="dream"] #modal-content .dialogue-card { flex-direction:row; flex:0 1 32%; min-height:90px; }
 .screen-menu[data-kind="route"] #modal-content .dialogue-portrait,
 .screen-menu[data-kind="dream"] #modal-content .dialogue-portrait { flex:0 0 90px; width:90px; max-height:120px; }
 .screen-menu[data-kind="route"] #modal-content .dialogue-copy p,
 .screen-menu[data-kind="dream"] #modal-content .dialogue-copy p { font-size:16px; line-height:1.4; }
}
@media(max-height:550px){
 .screen-menu #modal-content .dialogue-card { flex-direction:row; gap:10px; }
 .screen-menu #modal-content .dialogue-portrait { flex-basis:28%; width:28%; max-height:42vh; }
 .screen-menu #modal-content .dialogue-copy p { font-size:18px; line-height:1.5; }
 .screen-menu[data-density="3"] #modal-content .dialogue-portrait { display:none; }
}

@media(max-width:719px){
 .screen-menu #modal-content .dialogue-portrait { width:min(220px,32vh); }
 .screen-menu[data-kind="dream"] #modal-content .dialogue-portrait,
 .screen-menu[data-kind="route"] #modal-content .dialogue-portrait { width:90px; }
}
.screen-menu[data-density="3"] #modal-content .dialogue-card { flex-direction:row; gap:10px; }
.screen-menu[data-density="3"] #modal-content .dialogue-portrait { display:block; flex:0 0 64px; width:64px; height:64px; max-height:64px; }
.screen-menu[data-density="3"] #modal-content .dialogue-copy p { font-size:18px; line-height:1.5; }
html:has(dialog[open]), body:has(dialog[open]) { overflow:hidden; overscroll-behavior:none; }

/* 9.0: two visible resolutions, large costs and a compact illustrated incident. */
.boss-codex-portrait { width:180px; height:180px; margin:0 auto 8px; background-image:var(--asset-bosses-v10,url('./assets/bosses-v10.png')); background-size:400% 300%; background-repeat:no-repeat; background-color:#10212b; border:1px solid #d8c59688; }
@media(max-height:550px){.boss-codex-portrait { width:120px; height:120px; }}
.screen-menu[data-kind="fate"] #modal-content .dialogue-card { flex:0 1 32%; min-height:90px; }
.screen-menu[data-kind="fate"] #modal-content .dialogue-portrait { flex:0 0 125px; max-height:150px; }
.screen-menu[data-kind="fate"] #modal-content .dialogue-copy p { font-size:20px; line-height:1.5; }
.screen-menu[data-kind="fate"] #modal-content .fate-chart { color:#bce7d7; font-size:18px; line-height:1.45; }
.screen-menu[data-kind="fate"] #modal-content .cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:719px){
 .screen-menu[data-kind="fate"] #modal-content .dialogue-card { flex-direction:row; gap:10px; min-height:88px; }
 .screen-menu[data-kind="fate"] #modal-content .dialogue-portrait { flex:0 0 76px; width:76px; max-height:100px; }
 .screen-menu[data-kind="fate"] #modal-content .dialogue-copy p { font-size:18px; line-height:1.4; }
 .screen-menu[data-kind="fate"] #modal-content .dialogue-copy h3 { font-size:20px; }
 .screen-menu[data-kind="fate"] #modal-content .fate-chart { font-size:16px; }
 .screen-menu[data-kind="fate"] #modal-content .cards { grid-template-columns:1fr; }
 .screen-menu[data-kind="fate"] #modal-content .upgrade { min-height:88px; }
}
@media(max-height:550px){
 .screen-menu[data-kind="fate"] #modal-content .dialogue-card { min-height:0; flex:0 1 26%; }
 .screen-menu[data-kind="fate"] #modal-content .dialogue-portrait { flex:0 0 64px; width:64px; height:64px; }
 .screen-menu[data-kind="fate"] #modal-content .cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .screen-menu[data-kind="fate"] #modal-content .upgrade { min-height:0; }
}
/* 11.0: cinematic game front end; clear interactive priorities and illustrated destinations. */
.game-icon { width:26px; height:26px; display:inline-block; flex:0 0 26px; vertical-align:middle; margin-right:8px; pointer-events:none; }
button:focus-visible,a:focus-visible { outline:3px solid #b6f5ed;outline-offset:4px; }
.js body:not(.playing) #app { min-height:100svh; }
.js #home .features,.js #home .story-premise { display:none; }
.js #home .hero { min-height:calc(100svh - 88px); height:auto; max-height:none; border:0; }
.js #home .hero-art { background-image:var(--asset-temple-wide-v7,url('./assets/temple-wide-v7.png'));background-position:50% 45%;filter:saturate(.9); }
.js #home .hero-shade { background:linear-gradient(90deg,#041019f5 0%,#071a22e8 40%,#07151c35 80%),linear-gradient(0deg,#030b10 0%,transparent 45%); }
.js #home .hero-copy { position:relative;z-index:3;width:min(620px,58%);padding:40px clamp(24px,5vw,80px);margin:0; }
.js #home .hero-copy::after { content:"";position:fixed;pointer-events:none;right:9vw;bottom:5vh;width:min(28vw,420px);height:min(65vh,620px);background:var(--asset-hero,url('./assets/hero.webp')) no-repeat center bottom/contain;filter:drop-shadow(0 0 36px #73d5d66b);z-index:-1; }
.js #home .eyebrow { font-size:14px;letter-spacing:.18em;color:#e6d4a7; }
.js #home .chapter { font-size:16px;margin:10px 0; }
.js #home h1 {font-size:clamp(60px,8vw,112px);line-height:1.1;margin:5px 0;color:#fae7b9;text-shadow:0 4px #08141b,0 0 35px #ce9b4740;}
.js #home .subtitle { font-size:24px;margin:8px 0 20px;letter-spacing:.4em; }
.js #home .divider,.js #home .poem,.js #home .vertical-note,.js #home .hero-caption { display:none; }
.dream-entry {display:flex;flex-direction:column;gap:10px;}
.dream-entry .enter {width:100%;margin:0;min-height:62px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:800;letter-spacing:.12em;background:linear-gradient(120deg,#eed9a0,#bc8d43);border:1px solid #f9e4b3;color:#1c1b16;box-shadow:0 4px 0 #574226,0 10px 30px #0008;clip-path:polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px);}
.dream-entry .enter:hover {filter:brightness(1.15);transform:translateY(-2px);}
.dream-entry .enter small {display:block;font-size:15px;letter-spacing:.04em;font-weight:500;}
.dream-entry:has(#continue-run:not([hidden])) #start {min-height:44px;font-size:18px;background:#132c34e6;color:#e7d6a9;box-shadow:none;}
.js #home .play-note {font-size:16px;line-height:1.45;letter-spacing:0;margin:16px 0;color:#bfd3d0;}
.js #home .secondary-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;}
.js #home .secondary-actions .home-tile {text-align:left;position:relative;isolation:isolate;min-height:78px;padding:13px 12px;overflow:hidden;border:1px solid #bba26b88;background:#122630;box-shadow:0 5px 16px #0008;color:#fff2cc;display:flex;flex-direction:column;justify-content:center;gap:4px;}
.home-tile::before {content:"";position:absolute;inset:0;z-index:-1;background-position:center 45%;background-size:cover;opacity:.4;transition:opacity .2s,transform .2s;}
.home-tile::after {content:"";position:absolute;inset:0;background:linear-gradient(90deg,#06171ce6,transparent);z-index:-1;}
.home-tile:hover::before {opacity:.65;transform:scale(1.06);}
.tile-map::before {background-image:var(--asset-thumb-well-v11,url('./assets/thumb-well-v11.webp'));}
.tile-arts::before {background-image:var(--asset-thumb-furnace-v11,url('./assets/thumb-furnace-v11.webp'));}
.tile-record::before {background-image:var(--asset-thumb-crypt-v11,url('./assets/thumb-crypt-v11.webp'));}
.tile-save::before {background-image:var(--asset-thumb-palace-v11,url('./assets/thumb-palace-v11.webp'));}
.home-tile span {font-size:20px;line-height:1.25;font-weight:700;}
.home-tile small {font-size:14px;color:#c4d5d1;}
.js #home .secondary-actions>button:not(.home-tile),.js #home .secondary-actions>a {font-size:15px;padding:8px;min-height:38px;border:0;background:#071b2477;text-align:center;}
.js #home .best,.js #home .account-status {font-size:14px;margin:12px 0 0;}
.js body:not(.playing) #footer {display:none;}
.screen-menu {background:linear-gradient(135deg,#102c35f7,#081720fa)!important;border:1px solid #bfa36a!important;box-shadow:0 24px 100px #000b,inset 0 0 80px #0006;border-radius:18px 4px 18px 4px;}
.screen-menu::backdrop {background:#02080bbd;backdrop-filter:blur(8px);}
.screen-menu #modal-content .menu-header {border-bottom:1px solid #cdb47955;padding-bottom:12px;}
.screen-menu #modal-content .menu-header h2 {color:#ffe1a4;font-size:clamp(25px,3vw,38px);font-weight:700;line-height:1.2;}
.screen-menu #modal-content .modal-kicker {color:#84cec4;font-size:14px;letter-spacing:.14em;}
.screen-menu #modal-content button {border-radius:9px 2px 9px 2px;transition:background .15s,border-color .15s,transform .15s;touch-action:manipulation;}
.screen-menu #modal-content button:hover {border-color:#f0cf8f;background-color:#274450;}
.screen-menu #modal-content .modal-actions button {display:flex;align-items:center;justify-content:center;min-height:48px;font-size:18px;}
.screen-menu #modal-content .primary {background:linear-gradient(110deg,#f4db9b,#bd9253);color:#182327;font-weight:800;border:1px solid #fff0ba;box-shadow:0 3px #635034;}
.screen-menu #modal-content .art-medallion {display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:86px;height:86px;border:1px solid currentColor;border-radius:18px 3px;background:radial-gradient(circle,#a8c9cc22,#020c1488);box-shadow:inset 0 0 20px #0008,0 0 24px #70c9da13;transform:rotate(-3deg);}
.screen-menu #modal-content .art-medallion .game-icon {width:58px;height:58px;flex-basis:58px;margin:0;transform:rotate(3deg);}
.screen-menu #modal-content .weapon-card {border-top:3px solid var(--weapon-color);background:linear-gradient(150deg,#29404b99,#0a1b23e6);}
.screen-menu #modal-content .choice-rank {display:block;margin-top:8px;font-size:17px;color:#f0d9a4;}
.screen-menu #modal-content .choice-option {position:relative;}
.screen-menu #modal-content .realm-card {display:block;position:relative;isolation:isolate;overflow:hidden;padding:0!important;border:1px solid var(--realm-color);background:#07141b;text-align:left;box-shadow:0 6px 16px #0008;}
.realm-thumbnail {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 60%;z-index:-3;transition:transform .2s;}
.realm-card:hover .realm-thumbnail {transform:scale(1.08);}
.realm-vignette {position:absolute;inset:0;background:linear-gradient(0deg,#041016 0%,#041016aa 40%,transparent 100%);z-index:-1;}
.realm-boss {position:absolute;right:-3%;top:0;width:58%;height:90%;aspect-ratio:1;background-image:var(--asset-bosses-v10,url('./assets/bosses-v10.png'));background-repeat:no-repeat;opacity:.8;z-index:-2;mask-image:linear-gradient(180deg,#000 60%,transparent);}
.screen-menu #modal-content .realm-card-copy {position:absolute;bottom:12px;left:12px;right:8px;display:flex;flex-direction:column;gap:5px;}
.screen-menu #modal-content .realm-card-copy strong {font-size:24px;color:#fff3ce;text-shadow:0 2px 4px #000;}
.screen-menu #modal-content .realm-tier {font-size:14px;color:var(--realm-color);text-shadow:0 2px 4px #000;font-weight:800;}
.screen-menu #modal-content .realm-hazard {font-size:16px;color:#d2e4e2;}
.screen-menu #modal-content .chapter-grid .realm-card-copy strong {font-size:21px;}
.screen-menu #modal-content .chapter-grid .realm-hazard {font-size:14px;}
.screen-menu #modal-content .route-cards {min-height:180px;}
.chapter-road {display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 0;}
.chapter-road span {display:grid;place-items:center;width:38px;height:38px;border:1px solid #516970;border-radius:50%;color:#8da3a4;background:#08161e;font-size:19px;}
.chapter-road .done {background:#c6a664;color:#112428;box-shadow:0 0 20px #dbb15f33;}
.chapter-road i {height:1px;width:clamp(12px,4vw,70px);background:#7c8160;}
.screen-menu #modal-content .checkpoint-status {display:flex;align-items:center;justify-content:center;font-size:18px;color:#b6edce;background:#143e384d;border:1px solid #6aaf8c66;border-radius:7px;padding:8px;}
.save-summary {display:flex;align-items:center;gap:20px;min-height:0;padding:12px;background:linear-gradient(110deg,#213d45,#10202b);border:1px solid #d0b77988;border-radius:12px;}
.save-summary img {width:100px;max-height:140px;object-fit:cover;border-radius:8px;}
.save-summary h3 {color:#f0d6a0;}
.save-summary p {font-size:18px!important;}
.screen-menu[data-kind="pause"] #modal-content .modal-actions {grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.screen-menu[data-kind="pause"] #modal-content .modal-actions button {min-height:108px;flex-direction:column;gap:8px;font-size:22px;}
.screen-menu[data-kind="pause"] #modal-content .game-icon {width:40px;height:40px;flex-basis:40px;margin:0;}
@media(max-width:719px) {
 .js #home .hero {height:calc(100svh - 66px);min-height:0;overflow:hidden;}
 .js #home .hero-copy {width:100%;padding:20px 22px 12px;height:100%;display:flex;flex-direction:column;justify-content:center;}
 .js #home .hero-copy::after {right:-7vw;bottom:39vh;width:55vw;height:45vh;opacity:.45;}
 .js #home .hero-shade {background:linear-gradient(0deg,#041019 0%,#041019b0 65%,#04101966);}
 .js #home .eyebrow {font-size:12px;margin:0;}
 .js #home .chapter {margin:8px 0;font-size:14px;}
 .js #home h1 {font-size:64px;}
 .js #home .subtitle {font-size:20px;margin:3px 0 17px;}
 .dream-entry .enter {min-height:54px;font-size:23px;}
 .dream-entry:has(#continue-run:not([hidden])) #start {min-height:42px;}
 .js #home .play-note {font-size:14px;margin:12px 0;}
 .js #home .secondary-actions {gap:7px;}
 .js #home .secondary-actions .home-tile {min-height:62px;padding:9px 12px;}
 .home-tile span {font-size:19px;}.home-tile small {font-size:13px;}
 .js #home .secondary-actions>button:not(.home-tile),.js #home .secondary-actions>a {min-height:32px;padding:5px;font-size:14px;}
 .js #home .account-status {display:none;}.js #home .best {margin:7px 0 0;font-size:13px;}
 .js #home .mobile-help {display:none!important;}
 .screen-menu #modal-content .art-medallion {width:54px;height:54px;}.screen-menu #modal-content .art-medallion .game-icon {width:36px;height:36px;flex-basis:36px;}
 .screen-menu #modal-content .realm-card-copy {bottom:8px;left:8px;gap:3px;}
 .screen-menu #modal-content .chapter-grid .realm-card-copy strong {font-size:18px;}
 .screen-menu #modal-content .chapter-grid .realm-tier {font-size:12px;letter-spacing:0;}
 .screen-menu #modal-content .chapter-grid .realm-hazard {display:none;}
 .screen-menu #modal-content .route-cards {min-height:0;}
 .screen-menu #modal-content .realm-card-copy strong {font-size:23px;}
 .screen-menu #modal-content .realm-boss {width:38%;height:100%;}
 .screen-menu #modal-content .chapter-grid .realm-boss {width:75%;height:90%;}
 .screen-menu #modal-content .checkpoint-status {font-size:16px;padding:6px;}
 .chapter-road {gap:5px;padding:3px;}.chapter-road span {width:30px;height:30px;font-size:17px;}.chapter-road i {width:12px;}
 .screen-menu[data-kind="pause"] #modal-content .modal-actions {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
 .screen-menu[data-kind="pause"] #modal-content .modal-actions button {min-height:90px;font-size:20px;}
 .save-summary {gap:12px;}.save-summary img {width:72px;max-height:100px;}.save-summary p {font-size:16px!important;}
}
@media(max-height:700px) and (max-width:719px) {
 .js #home .chapter,.js #home .eyebrow,.js #home .best,.js #home #music,.js #home .secondary-actions>a {display:none;}
 .js #home h1 {font-size:52px;}.js #home .subtitle {margin-bottom:12px;}
 .js #home .hero-copy {padding-top:8px;}.js #home .play-note {font-size:13px;margin:10px 0;}
 .js #home .secondary-actions .home-tile {min-height:58px;}
 .dream-entry .enter {min-height:48px;}.dream-entry {gap:7px;}
}
@media(max-height:500px) {
 .screen-menu #modal-content .art-medallion {width:42px;height:42px;}.screen-menu #modal-content .art-medallion .game-icon {width:30px;height:30px;}
 .screen-menu[data-kind="pause"] #modal-content .modal-actions button {min-height:56px;flex-direction:row;font-size:18px;}
 .screen-menu[data-kind="pause"] #modal-content .game-icon {width:24px;height:24px;flex-basis:24px;}
 .chapter-road {display:none;}.screen-menu #modal-content .route-cards {min-height:70px;}
 .screen-menu #modal-content .chapter-grid .realm-card-copy strong {font-size:16px;}
 .screen-menu #modal-content .chapter-grid .realm-tier,.screen-menu #modal-content .chapter-grid .realm-hazard {display:none;}
 .save-summary img {max-height:64px;width:50px;}.save-summary p {display:none;}
}
@media(prefers-reduced-motion:reduce){.realm-thumbnail,.home-tile::before,button {transition:none!important;}}

/* Slim readable rails maximize the battle area on phones and landscape desktops. */
.install-app {display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:8px 16px;background:linear-gradient(120deg,#204b55,#102c39);border:1px solid #89c5c1;border-radius:8px;color:#d5f6e9;font-size:18px;font-weight:700;letter-spacing:.05em;}
.install-app:hover {background:#2a5964;}.install-app:disabled {opacity:.7;}
.install-steps {display:grid;gap:18px;}.install-steps>div {display:flex;align-items:center;gap:12px;font-size:21px;background:#24404b;padding:18px;border-radius:10px;}
.immersive-game.playing #play {padding:0!important;min-height:0;height:100svh;}
.immersive-game.playing .game-shell,.wide-game.immersive-game.playing .game-shell {width:100vw;height:100svh;max-height:100svh;aspect-ratio:auto;border:0;outline:none;box-shadow:none;}
.immersive-game .game-hud {padding:6px 12px;width:100%;background:linear-gradient(#07151ef2,#07151eaa);font-size:16px;}
.immersive-game .hud-top {height:28px;font-size:17px;}.immersive-game .hud-top time {font-size:23px;}
.immersive-game .resource {font-size:15px;}.immersive-game .resource b {font-size:17px;}
.immersive-game .dream-status {top:80px;bottom:auto;left:12px;right:12px;width:auto;font-size:16px;}
.immersive-game .dream-status #objective {background:#07151dcc;border:0;border-radius:5px;padding:4px 8px;}
.immersive-game .game-bottom {bottom:0;left:0;width:100%;height:125px;padding:5px 10px max(5px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#07151ef2 20%);border:0;box-shadow:none;}
.immersive-game .weapon-belt {height:32px;gap:5px;margin:0 0 3px;}.immersive-game .weapon-slot {padding:1px 4px;background:#0b2934c9;border:1px solid #87987c;border-radius:7px;}
.immersive-game .weapon-slot b {font-size:14px;}.immersive-game .weapon-slot small {font-size:13px;}
.immersive-game .xp-label {font-size:14px;margin:0 0 3px;}.immersive-game .bar.xp {height:5px;}
.immersive-game .control-row {padding-top:4px;gap:9px;justify-content:space-between;}
.immersive-game .control-row button {width:58px;height:58px;border-width:2px;border-radius:50%;box-shadow:0 4px 14px #0009;background:#17343ddd;}
.immersive-game .control-row button span {font-size:28px;}.immersive-game .control-row button small {font-size:12px;}
.immersive-game .control-row p {font-size:14px;}.immersive-game .control-row p small {font-size:12px;}
.immersive-game .alchemy-status {top:auto;bottom:129px;right:10px;left:auto;width:230px;height:46px;padding:0;transform:none;background:#07151d66;border:0;box-shadow:none;border-radius:8px;}
.immersive-game .alchemy-status>span,.immersive-game .alchemy-status>small {display:none!important;}
.immersive-game .guardian-roster {grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;margin:0;height:46px;}
.immersive-game .guardian-card {padding:2px;border:1px solid #637d7777;border-radius:5px;background:#10262ec9;overflow:hidden;}
.immersive-game .guardian-portrait {display:block;width:28px;height:25px;}
.immersive-game .guardian-card b,.immersive-game .guardian-card small {display:none;}
.immersive-game .guardian-card span {font-size:11px;line-height:1;color:#e4d8ad;}
.immersive-game .guardian-card.main-guardian:after,.immersive-game .guardian-card.support-guardian:after {font-size:10px;padding:0;}
.guardian-life {display:block;width:100%;height:3px;background:#142429;border-radius:3px;overflow:hidden;margin:1px 0;}
.guardian-life>i {display:block;height:100%;background:#7ce1ae;}
.immersive-game .alchemy-feed {right:auto;left:12px;bottom:180px;width:auto;max-width:80%;font-size:14px;}
.immersive-game .alchemy-feed small,.immersive-game .alchemy-feed time {display:none;}
.immersive-game .alchemy-feed p {font-size:14px;padding:4px 8px;margin:0;background:#0a2029aa;border-left-width:2px;}
.immersive-game .alchemy-feed p:nth-child(n+2){display:none!important;}
.immersive-game .game-shell #game-message {font-size:21px;left:8%;right:8%;width:auto;top:25%;}
.wide-game.immersive-game .game-hud {grid-template-columns:1fr 1fr;padding:6px 18px;gap:2px 24px;}
.wide-game.immersive-game .resource {font-size:18px;}.wide-game.immersive-game .resource b {font-size:19px;}
.wide-game.immersive-game .hud-top {font-size:20px;height:30px;}
.wide-game.immersive-game .dream-status {top:77px;left:18px;right:auto;width:auto;max-width:65%;font-size:17px;}
.wide-game.immersive-game .game-bottom {bottom:8px;left:18px;width:calc(100% - 310px);height:86px;padding:5px 8px;grid-template-columns:minmax(0,1fr) 220px;gap:3px 12px;border-radius:9px;background:#071b23c9;}
.wide-game.immersive-game .weapon-belt {height:35px;}.wide-game.immersive-game .weapon-slot b {font-size:17px;}.wide-game.immersive-game .weapon-slot small {font-size:15px;}
.wide-game.immersive-game .xp-label {font-size:16px;}
.wide-game.immersive-game .control-row {padding:0;}.wide-game.immersive-game .control-row button {width:64px;height:64px;}.wide-game.immersive-game #build-label {font-size:14px;}
.wide-game.immersive-game .alchemy-status {bottom:12px;right:16px;width:250px;height:70px;background:#071b23c9;padding:7px 4px;}
.wide-game.immersive-game .guardian-roster {height:54px;gap:4px;}.wide-game.immersive-game .guardian-portrait {width:32px;height:32px;}.wide-game.immersive-game .guardian-card span {font-size:12px;}
.wide-game.immersive-game .alchemy-feed {left:22px;bottom:105px;max-width:55%;}.wide-game.immersive-game .alchemy-feed p {font-size:16px;}
.wide-game.immersive-game .game-shell #game-message {font-size:28px;}
@media(min-width:720px) and (max-height:850px) {
 .js #home .hero-copy {padding:16px 4vw;width:min(610px,58%);}
 .js #home h1 {font-size:80px;}.js #home .subtitle {font-size:21px;margin:5px 0 12px;}
 .js #home .chapter {margin:5px 0;}.js #home .eyebrow {margin:0;}
 .dream-entry .enter {min-height:52px;}.dream-entry {gap:8px;}
 .js #home .secondary-actions .home-tile {min-height:65px;padding:10px;}
 .js #home .play-note {margin:10px 0;font-size:14px;}
 .js #home .best,.js #home .account-status {margin:7px 0 0;font-size:13px;}
}
@media(max-width:719px) {
 .js #home .hero-copy {padding:10px 18px;}.js #home h1 {font-size:56px;}.js #home .subtitle {margin-bottom:12px;}
 .js #home .eyebrow {display:none;}.js #home .chapter {margin:5px 0;}
 .js #home .secondary-actions>button:not(.home-tile),.js #home .secondary-actions>a {display:none;}
 .js #home .best {display:none;}.js #home .play-note {font-size:14px;margin:10px 0;}
 .install-app {min-height:44px;font-size:18px;padding:7px;}
 .screen-menu #modal-content .menu-page p {font-size:17px;line-height:1.45;}
 .screen-menu #modal-content .upgrade strong {font-size:22px;}.screen-menu #modal-content .upgrade small {font-size:17px;line-height:1.35;}
 .screen-menu #modal-content .modal-actions button {font-size:18px;min-height:46px;}
}
@media(max-width:719px) and (max-height:700px) {
 .js #home h1 {font-size:46px;}.js #home .subtitle {font-size:18px;margin:3px 0 10px;}.js #home .chapter {display:none;}
 .js #home .secondary-actions .home-tile {min-height:56px;}.home-tile small {display:none;}
 .dream-entry .enter {min-height:46px;}.dream-entry:has(#continue-run:not([hidden])) #start {min-height:40px;}
 .js #home .hero {height:calc(100svh - 66px);}
}
@media(max-width:350px){.immersive-game .alchemy-status {width:205px;}.immersive-game .weapon-slot b {font-size:13px;}.immersive-game .control-row p {font-size:13px;}}
@media(hover:hover){.immersive-game .alchemy-status:hover {background:#102b35ef;}}

/* One viewport for the launch menu, including laptop windows and saved-game actions. */
.js #home .hero {min-height:0!important;}
.js #home .secondary-actions {max-width:none;}
.js .site-header {height:88px;}
@media(min-width:720px) {
 .js #home .hero {height:calc(100svh - 88px);min-height:0;overflow:hidden;}
 .js #home .hero-copy {width:100%;height:100%;padding:20px 4vw;display:flex;flex-direction:column;justify-content:center;}
 .js #home .hero-copy>:not(.secondary-actions) {width:min(480px,46vw);max-width:46vw;}
 .js #home .secondary-actions {position:absolute;right:4vw;bottom:28px;width:40%;margin:0;}
 .js #home .hero-copy::after {right:10vw;bottom:26vh;height:55vh;width:27vw;}
 .js #home .hero-copy>.eyebrow,.js #home .hero-copy>.chapter {flex:0 0 auto;}
 .js #home .hero-copy>.dream-entry {flex:0 0 auto;}
}
@media(min-width:720px) and (max-height:700px) {
 .js #home .hero-copy>.eyebrow,.js #home .hero-copy>.chapter,.js #home .hero-copy>.best,.js #home .hero-copy>.account-status,.js #home .hero-copy>.play-note {display:none;}
 .js #home h1 {font-size:64px;margin:0;}.js #home .subtitle {margin:4px 0 16px;}
 .js #home .secondary-actions {bottom:20px;}.js #home .hero-copy::after {bottom:33vh;height:50vh;}
}
@media(max-width:719px) {
 .js .site-header {height:66px;}
 .js #home .hero-copy {padding-bottom:10px!important;}
 .js .brand small {display:none;}
 .js .account-button {font-size:15px;letter-spacing:0;max-width:125px;padding:8px 9px;}
}

/* 11.0.3: no panel fills; the map is the entire battle viewport. */
.immersive-game :is(.game-hud,.game-bottom,.alchemy-status,.alchemy-feed,.dream-status),
.immersive-game :is(#objective,.weapon-slot,.guardian-card,.hud-top button,.control-row button,.alchemy-feed p,.alchemy-feed small),
.immersive-game .guardian-card::after {
 background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;
}
.immersive-game :is(.game-hud,.game-bottom,.alchemy-status,.alchemy-feed,.dream-status,#objective,.weapon-slot,.guardian-card,.alchemy-feed p) {border-color:transparent!important;}
.immersive-game :is(.bar,.guardian-life) {background:transparent!important;box-shadow:none!important;}
.immersive-game .control-row button,.immersive-game .hud-top button {border:1px solid #f5dfa8;}
.immersive-game :is(.game-hud,.game-bottom,.alchemy-status,.alchemy-feed,.dream-status,#game-message) {
 color:#f5eed8;text-shadow:-1px -1px 1px #02070b,1px -1px 1px #02070b,-1px 1px 1px #02070b,1px 1px 1px #02070b,0 2px 4px #000;
}
.screen-menu,.screen-menu #modal-content,
.screen-menu :is(.menu-header,.menu-body,.menu-footer,.menu-page,.modal-actions,.menu-pager,.save-summary,.checkpoint-status,.route-map,.fate-chart,.stat-grid>div,.run-row,.setting-row,.install-steps>div) {
 background:transparent!important;box-shadow:none!important;border-color:transparent!important;backdrop-filter:none!important;
}
.screen-menu::backdrop {background:transparent!important;backdrop-filter:none!important;}
.screen-menu :is(button,.upgrade,.weapon-card,.realm-card,.art-medallion,.menu-context),
.screen-menu :is(button,.upgrade,.weapon-card,.realm-card):hover {
 background:transparent!important;box-shadow:none!important;
}
.screen-menu .realm-vignette {background:none!important;}
.screen-menu .dialogue-portrait,.screen-menu .boss-codex-portrait {background-color:transparent!important;box-shadow:none!important;border-color:transparent!important;}
.screen-menu :is(h2,h3,p,strong,small,span,label,button,a,.menu-page-number) {
 text-shadow:-1px -1px 1px #02070b,1px -1px 1px #02070b,-1px 1px 1px #02070b,1px 1px 1px #02070b,0 2px 4px #000;
}
.screen-menu #modal-content .primary {color:#ffe4a9!important;border-color:#f6d999!important;}
.screen-menu #modal-content .secondary,.screen-menu #modal-content .modal-actions button {color:#f1f6ea;}
.screen-menu #modal-content .game-icon {filter:drop-shadow(0 1px 2px #000);}
body.playing:has(dialog[open]) :is(.game-hud,.game-bottom,.alchemy-status,.alchemy-feed,.dream-status,#game-message) {visibility:hidden;}
body:not(.playing):has(dialog[open]) :is(.site-header,#home .hero-copy) {visibility:hidden;}
.js #home .hero-shade {background:none!important;}
.js #home :is(.enter,.install-app,.home-tile,.secondary-actions>button,.secondary-actions>a),
.js .site-header :is(button,.brand-seal),
.js #home :is(.enter,.install-app,.home-tile):hover {
 background:transparent!important;box-shadow:none!important;color:#ffe8b7;
}
.js #home .home-tile::before,.js #home .home-tile::after {background:none!important;}
.js #home :is(h1,p,button,a,span,small),.js .site-header {text-shadow:-1px -1px 1px #02070b,1px 1px 1px #02070b,0 2px 4px #000;}
.js #home .secondary-actions .home-tile {display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:1fr auto;column-gap:8px;}
.js #home .home-tile>.game-icon {grid-column:1;grid-row:1/3;width:32px;height:32px;margin:0;align-self:center;}
.js #home .home-tile>span,.js #home .home-tile>small {grid-column:2;}
@media(max-width:719px) {.js #home .secondary-actions .home-tile {grid-template-columns:28px minmax(0,1fr);column-gap:5px;}.js #home .home-tile>.game-icon {width:25px;height:25px;}.js #home .home-tile span {font-size:18px;}}


/* 11.1: original calligraphic navigation and companion-link motifs; no filled panels. */
:root {--rpg-script:"DFKai-SB","BiauKai","KaiTi","STKaiti","Noto Serif TC",serif;--rpg-gold:#f2d79b;--rpg-jade:#a0e7de;}
.js #home h1,.js #home .subtitle,.screen-menu #modal-content :is(h2,h3,.upgrade strong),.rpg-character-name {font-family:var(--rpg-script);font-weight:500;}
.screen-menu #modal-content .menu-header {padding-bottom:10px;}
.screen-menu #modal-content .menu-header h2 {position:relative;display:flex;align-items:center;gap:15px;padding-bottom:15px;font-size:clamp(28px,3.2vw,42px);letter-spacing:.12em;}
.rpg-title-seal,.rpg-action-seal {display:inline-grid;place-items:center;flex:0 0 auto;color:#e4ad86;border:1px solid currentColor;border-radius:3px 10px 3px 10px;font-family:var(--rpg-script);line-height:1;transform:rotate(-5deg);}
.rpg-title-seal {width:44px;height:44px;font-size:29px;}
.rpg-action-seal {width:30px;height:30px;font-size:23px;margin-right:10px;}
.rpg-heading-line {position:absolute;bottom:0;left:59px;width:min(55%,340px);height:15px;color:#dab97e;opacity:.8;}
.screen-menu #modal-content .modal-kicker {font-family:var(--rpg-script);font-size:17px;letter-spacing:.3em;color:#abd5c9;}
.screen-menu #modal-content .modal-actions button {justify-content:center;letter-spacing:.1em;font-family:var(--rpg-script);font-size:22px;border:0;border-bottom:1px solid #d2b77c66!important;clip-path:none;border-radius:0;}
.screen-menu #modal-content button:is(:hover,:focus-visible) {color:#ffeac1;filter:drop-shadow(0 0 6px #eccb7b77);}
.screen-menu #modal-content .upgrade {position:relative;border:0;border-left:1px solid #d5b77c99;border-right:1px solid #d5b77c55;border-radius:35px 5px 35px 5px;}
.screen-menu #modal-content .upgrade strong {font-size:29px;letter-spacing:.08em;color:#ffe7b3;}
.screen-menu #modal-content .upgrade::after {content:"";pointer-events:none;position:absolute;left:10%;right:10%;bottom:7px;height:1px;background:linear-gradient(90deg,transparent,#e1c68d,transparent);}
.screen-menu #modal-content .art-medallion {border-radius:50%;transform:none;border:1px solid currentColor;}
.screen-menu #modal-content .art-medallion .game-icon {transform:none;}
.screen-menu #modal-content .realm-card {border-radius:40px 4px 40px 4px;}
.screen-menu #modal-content .realm-card-copy strong {font-family:var(--rpg-script);letter-spacing:.08em;}
.screen-menu #modal-content .dialogue-card {gap:24px;}
.screen-menu #modal-content .dialogue-portrait {border-radius:48% 48% 8px 8px;border:0;mask-image:linear-gradient(#000 80%,transparent);}
.screen-menu #modal-content .dialogue-copy h3 {font-family:var(--rpg-script);font-size:30px;letter-spacing:.16em;color:#ffdf9a;}
.screen-menu #modal-content .dialogue-copy p {line-height:1.8;}
.rpg-home-trace {position:absolute;right:8%;top:4%;width:40%;height:76%;z-index:1;opacity:.44;pointer-events:none;filter:drop-shadow(0 0 9px #8ce5e633);}
.rpg-spirit-trace {stroke:#a5dcd3;stroke-width:1;pointer-events:none;}
.rpg-spirit-trace ellipse {stroke:#d3bb86;stroke-dasharray:3 7;}
.rpg-spirit-thread {stroke:#a4e8ea;stroke-width:2;stroke-dasharray:46 12;animation:spirit-thread-flow 12s linear infinite;}
@keyframes spirit-thread-flow {to {stroke-dashoffset:-232;}}
.js #home .subtitle {font-size:27px;letter-spacing:.35em;color:#e8d7aa;}
.js #home .dream-entry .enter {font-family:var(--rpg-script);font-size:28px;clip-path:none;border:0;border-bottom:1px solid #e6c58d;border-radius:0;letter-spacing:.2em;}
.js #home #start::before,.js #home #continue-run::before {display:grid;place-items:center;width:34px;height:34px;border:1px solid #e2ae88;border-radius:3px 10px;color:#e2ae88;content:"初";font-size:26px;margin-right:14px;}
.js #home #continue-run::before {content:"續";}.js #home .dream-entry .enter>.game-icon {display:none;}
.js #home .secondary-actions {grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:start;}
.js #home .secondary-actions .home-tile {position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;min-height:190px;padding:12px 4px;border:0;border-left:1px solid #ccb47a66;border-right:1px solid #ccb47a33;border-radius:30px 0 30px 0;}
.js #home .home-tile>span {writing-mode:vertical-rl;text-orientation:upright;font-family:var(--rpg-script);font-size:28px;letter-spacing:.18em;line-height:1.25;color:#ffe4a7;}
.js #home .home-tile>small {font-size:14px;line-height:1.4;letter-spacing:.1em;}
.js #home .home-tile>.game-icon {width:32px;height:32px;flex-basis:32px;color:#9cddd4;}
.js #home .secondary-actions>button:not(.home-tile),.js #home .secondary-actions>a {grid-column:span 2;}
.js #home .home-tile:hover {transform:translateY(-5px);}
.rpg-pause-status {display:grid;grid-template-columns:58% minmax(0,1fr);grid-template-rows:minmax(0,1fr) 64px;gap:10px;flex:1 1 0;min-height:0;height:100%;}
.rpg-character-scene {position:relative;min-height:0;isolation:isolate;}
.rpg-character-scene>.rpg-spirit-trace {position:absolute;inset:0;width:100%;height:100%;z-index:-1;opacity:.7;}
.rpg-character-scene.awaits-pact>.rpg-spirit-trace {opacity:.24;}
.rpg-character-art {position:absolute;height:88%;max-width:80%;object-fit:contain;left:50%;bottom:12%;transform:translateX(-50%);filter:drop-shadow(0 0 18px #88c9cc33);}
.rpg-character-name {position:absolute;left:2%;top:5%;writing-mode:vertical-rl;color:#ffe4a6;font-size:32px;letter-spacing:.18em;text-shadow:1px 2px 3px #000;}
.rpg-character-name small {font-family:var(--rpg-script);font-size:15px;margin-top:10px;color:#a9d2c7;}
.rpg-awaiting {position:absolute;left:0;right:0;bottom:0;text-align:center;color:#c4d2bb;font-size:17px;}
.rpg-pact {position:absolute;display:flex;align-items:center;flex-direction:column;color:var(--pact-color);transform:translate(-50%,-50%);text-align:center;gap:3px;}
.rpg-pact-0 {left:31%;top:69%;}.rpg-pact-1 {left:77%;top:33%;}.rpg-pact-2 {left:79%;top:76%;}
.rpg-pact-art {width:57px;height:57px;background-repeat:no-repeat;border:1px solid var(--pact-color);border-radius:50%;filter:drop-shadow(0 0 9px #a4e5d544);}
.rpg-pact b {font-size:17px;white-space:nowrap;text-shadow:1px 1px 3px #000;}.rpg-pact small {font-size:14px;white-space:nowrap;}.rpg-pact.fallen {filter:grayscale(.9);opacity:.65;}
.rpg-state-list {margin:0;align-self:center;display:grid;gap:12px;}
.rpg-state-list>div {display:flex;align-items:baseline;justify-content:space-between;gap:8px;border-bottom:1px solid #d0bf8c44;padding-bottom:7px;}
.rpg-state-list dt {font-family:var(--rpg-script);font-size:23px;letter-spacing:.12em;color:#e5cea0;}
.rpg-state-list dd {margin:0;color:#d9f0de;font-size:27px;font-variant-numeric:tabular-nums;}
.rpg-state-list dd small {font-size:15px;color:#bed1c7;}
.rpg-element-row {grid-column:1/-1;display:flex;justify-content:space-evenly;gap:8px;align-items:center;border-top:1px solid #c6b27e66;padding-top:8px;}
.rpg-element-row>span {display:flex;align-items:center;gap:8px;min-width:0;}
.rpg-element-row b {display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--element-color);border-radius:50%;font-family:var(--rpg-script);font-size:23px;color:var(--element-color);font-weight:400;}
.rpg-element-row strong {font-size:21px;font-variant-numeric:tabular-nums;color:#e1ebda;}
.screen-menu[data-kind="pause"] #modal-content {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(230px,.8fr);grid-template-rows:auto minmax(0,1fr);gap:16px;}
.screen-menu[data-kind="pause"] #modal-content .menu-header {grid-column:1/-1;}
.screen-menu[data-kind="pause"] #modal-content .menu-body {grid-column:1;grid-row:2;}
.screen-menu[data-kind="pause"] #modal-content .menu-footer {grid-column:2;grid-row:2;align-self:center;}
.screen-menu[data-kind="pause"] #modal-content .modal-actions {grid-template-columns:1fr;gap:10px;}
.screen-menu[data-kind="pause"] #modal-content .modal-actions button {min-height:52px;flex-direction:row;justify-content:flex-start;padding:7px 16px;font-size:26px;}
@media(max-width:719px) {
 .screen-menu #modal-content .menu-header h2 {font-size:27px;gap:9px;padding-bottom:12px;letter-spacing:.05em;}
 .rpg-title-seal {width:34px;height:34px;font-size:25px;}.rpg-heading-line {left:44px;}
 .screen-menu #modal-content .modal-actions button {font-size:20px;letter-spacing:.04em;}.rpg-action-seal {width:27px;height:27px;font-size:21px;margin-right:7px;}
 .screen-menu #modal-content .upgrade strong {font-size:24px;}.screen-menu #modal-content .upgrade small {font-size:17px;}
 .js #home .secondary-actions {gap:9px;}.js #home .secondary-actions .home-tile {min-height:155px;padding:9px 2px;gap:8px;}
 .js #home .home-tile>span {font-size:22px;letter-spacing:.12em;}.js #home .home-tile>small {display:none;}.js #home .home-tile>.game-icon {width:27px;height:27px;flex-basis:27px;}
 .js #home .dream-entry .enter {font-size:26px;}.js #home .subtitle {font-size:22px;}
 .rpg-home-trace {right:0;top:4%;width:75%;height:50%;opacity:.3;}
 .screen-menu[data-kind="pause"] #modal-content {grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;}
 .screen-menu[data-kind="pause"] #modal-content .menu-body {grid-column:1;grid-row:2;}
 .screen-menu[data-kind="pause"] #modal-content .menu-footer {grid-column:1;grid-row:3;align-self:stretch;}
 .screen-menu[data-kind="pause"] #modal-content .modal-actions {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
 .screen-menu[data-kind="pause"] #modal-content .modal-actions button {min-height:46px;font-size:21px;padding:5px;justify-content:center;}
 .rpg-pause-status {grid-template-columns:55% minmax(0,1fr);grid-template-rows:minmax(0,1fr) 46px;gap:4px;}
 .rpg-character-name {font-size:25px;}.rpg-character-name small {font-size:13px;}.rpg-character-art {height:90%;bottom:8%;}
 .rpg-awaiting {font-size:14px;}.rpg-state-list {gap:6px;}.rpg-state-list>div {padding-bottom:4px;gap:3px;}.rpg-state-list dt {font-size:19px;}.rpg-state-list dd {font-size:22px;}.rpg-state-list dd small {font-size:13px;}
 .rpg-pact-art {width:39px;height:39px;}.rpg-pact b {font-size:14px;}.rpg-pact small {font-size:12px;}
 .rpg-element-row {gap:4px;padding-top:4px;}.rpg-element-row>span {gap:4px;}.rpg-element-row b {width:27px;height:27px;font-size:20px;}.rpg-element-row strong {font-size:18px;}
}
@media(max-width:719px) and (max-height:700px) {.js #home .play-note {display:none;}.js #home .secondary-actions {margin-top:12px;}.js #home .secondary-actions .home-tile {min-height:150px;}}
@media(max-height:500px) {
 .screen-menu #modal-content .menu-header h2 {font-size:23px;}.rpg-title-seal {width:30px;height:30px;font-size:22px;}
 .screen-menu[data-kind="pause"] #modal-content .modal-actions {gap:4px;}.screen-menu[data-kind="pause"] #modal-content .modal-actions button {min-height:42px;font-size:20px;padding:3px;}
 .rpg-state-list {gap:3px;}.rpg-state-list dt {font-size:18px;}.rpg-state-list dd {font-size:21px;}.rpg-character-name {font-size:24px;}.rpg-character-name small {display:none;}
 .rpg-element-row {padding-top:3px;}.rpg-pause-status {grid-template-rows:minmax(0,1fr) 40px;}.rpg-pact b,.rpg-pact small {display:none;}.rpg-pact-art {width:34px;height:34px;}
}
@media(prefers-reduced-motion:reduce) {.rpg-spirit-thread {animation:none;}.js #home .home-tile:hover {transform:none;}}

.rpg-state-list {line-height:1.25;}
