@font-face {
  font-family: GameDisplay;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/zcool-kuaile-105-400-normal.woff2") format("woff2");
  unicode-range:
    U+5e, U+2190, U+250a, U+25bc, U+25cf, U+4e56, U+4ea9, U+4f3d, U+4f6c,
    U+4f88, U+4fa8, U+4fcf, U+5029, U+5188, U+51f9, U+5203, U+524a, U+5256,
    U+529d, U+5375, U+53db, U+541f, U+5435, U+5457, U+548b, U+54c7, U+54d4,
    U+54e9, U+556a, U+5589, U+55bb, U+55e8, U+55ef, U+563b, U+566a, U+576a,
    U+58f9, U+598d, U+599e, U+59a8, U+5a9b, U+5ae3, U+5bb0, U+5bde, U+5c4c,
    U+5c60, U+5d1b, U+5deb, U+5df7, U+5e18, U+5f26, U+5f64, U+601c, U+6084,
    U+60e9, U+614c, U+6208, U+621a, U+6233, U+6254, U+62d8, U+62e6, U+62ef,
    U+6323, U+632a, U+633d, U+6361, U+6405, U+640f, U+6614, U+6642, U+6657,
    U+67a3, U+6808, U+683d, U+6850, U+6897, U+68b3, U+68b5, U+68d5, U+6a58,
    U+6b47, U+6b6a, U+6c28, U+6c90, U+6ca7, U+6cf5, U+6d51, U+6da9, U+6dc7,
    U+6dd1, U+6e0a, U+6e5b, U+6e9c, U+6f47, U+6f6d, U+70ad, U+70f9, U+710a,
    U+7130, U+71ac, U+745f, U+7476, U+7490, U+7529, U+7538, U+75d2, U+7696,
    U+76b1, U+76fc, U+777f, U+77dc, U+789f, U+795b, U+79bd, U+79c9, U+7a3b,
    U+7a46, U+7aa5, U+7ad6, U+7ca5, U+7cb9, U+7cdf, U+7d6e, U+7f06, U+7f38,
    U+7fa1, U+7fc1, U+8015, U+803b, U+80a2, U+80aa, U+8116, U+813e, U+82bd,
    U+8305, U+8328, U+8346, U+846c, U+8549, U+859b, U+8611, U+8680, U+87f9,
    U+884d, U+8877, U+888d, U+88d4, U+898b, U+8a79, U+8a93, U+8c05, U+8c0d,
    U+8c26, U+8d1e, U+8d31, U+8d81, U+8e22, U+8e81, U+8f90, U+8f96, U+90ca,
    U+916c, U+917f, U+9187, U+918b, U+9499, U+94a9, U+9524, U+9540, U+958b,
    U+9600, U+9640, U+96b6, U+96c7, U+96ef, U+98d9, U+9976, U+997f, U+9a74,
    U+9a84, U+9c8d, U+9e26, U+9e9f, U+ad6d, U+c5b4, U+d55c, U+ff0f;
}
@font-face {
  font-family: GameDisplay;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/zcool-kuaile-113-400-normal.woff2") format("woff2");
  unicode-range:
    U+26, U+3c, U+d7, U+4e4e, U+4e61, U+4e71, U+4ebf, U+4f26, U+5012, U+51ac,
    U+51b0, U+51b2, U+51b7, U+5218, U+521a, U+5220, U+5237, U+523b, U+526f,
    U+5385, U+53bf, U+53e5, U+53eb, U+53f3, U+53f6, U+5409, U+5438, U+54c8,
    U+54e5, U+552f, U+5584, U+5706, U+5723, U+5750, U+575a, U+5987-5988, U+59b9,
    U+59d0, U+59d4, U+5b88, U+5b9c, U+5bdf, U+5bfb, U+5c01, U+5c04, U+5c3e,
    U+5c4b, U+5c4f, U+5c9b, U+5cf0, U+5ddd, U+5de6, U+5de8, U+5e01, U+5e78,
    U+5e7b, U+5e9c, U+5ead, U+5ef6, U+5f39, U+5fd8, U+6000, U+6025, U+604b,
    U+6076, U+613f, U+6258, U+6263, U+6267, U+6298, U+62a2, U+62e5, U+62ec,
    U+6311, U+6377, U+6388-6389, U+63a2, U+63d2, U+641e, U+642d, U+654f, U+6551,
    U+6597, U+65cf, U+65d7, U+65e7, U+6682, U+66f2, U+671d, U+672b, U+6740,
    U+6751, U+6768, U+6811, U+6863, U+6982, U+6bd2, U+6cf0, U+6d0b, U+6d17,
    U+6d59, U+6dd8, U+6dfb, U+6e7e, U+6f6e, U+6fb3, U+706f, U+719f, U+72af,
    U+72d0, U+72d7, U+732b, U+732e, U+7389, U+73e0, U+7530, U+7687, U+76d6,
    U+76db, U+7840, U+786c, U+79cb, U+79d2, U+7a0e, U+7a33, U+7a3f, U+7a97,
    U+7ade-7adf, U+7b26, U+7e41, U+7ec3, U+7f3a, U+8089, U+80dc, U+811a, U+8131,
    U+8138, U+821e, U+8349, U+83dc, U+8457, U+867d, U+86cb, U+8a89, U+8ba8,
    U+8bad, U+8bef, U+8bfe, U+8c6a, U+8d1d, U+8d4f, U+8d62, U+8dd1, U+8df3,
    U+8f6e, U+8ff9, U+900f, U+9014, U+9057, U+9192, U+91ce, U+9488, U+94a2,
    U+9547, U+955c, U+95f2, U+9644, U+964d, U+96c4-96c5, U+96e8, U+96f6-96f7,
    U+9732, U+9759, U+9760, U+987a, U+989c, U+9910, U+996d-996e, U+9b54, U+9e21,
    U+9ebb, U+9f50;
}
@font-face {
  font-family: GameDisplay;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/zcool-kuaile-115-400-normal.woff2") format("woff2");
  unicode-range:
    U+25, U+4e14, U+4e1d, U+4e3d, U+4e49, U+4e60, U+4e9a, U+4eb2, U+4ec5,
    U+4efd, U+4f3c, U+4f4f, U+4f8b, U+4fbf, U+5019, U+5145, U+514b, U+516b,
    U+516d, U+5174, U+5178, U+517b, U+5199, U+519b, U+51b3, U+51b5, U+5207,
    U+5212, U+5219, U+521d, U+52bf, U+533b, U+5343, U+5347, U+534a, U+536b,
    U+5370, U+53e4, U+53f2, U+5403, U+542c, U+547d, U+54a8, U+54cd, U+54ea,
    U+552e, U+56f4, U+5747, U+575b, U+5883, U+589e, U+5931, U+5947, U+5956-5957,
    U+5a92, U+5b83, U+5ba4, U+5bb3, U+5bcc, U+5c14, U+5c1a, U+5c3d, U+5c40,
    U+5c45, U+5c5e, U+5df4, U+5e72, U+5e95, U+5f80, U+5f85, U+5fb7, U+5fd7,
    U+601d, U+626b, U+627f, U+62c9, U+62cd, U+6309, U+63a7, U+6545, U+65ad,
    U+65af, U+65c5, U+666e, U+667a, U+670b, U+671b, U+674e, U+677f, U+6781,
    U+6790, U+6797, U+6821, U+6838-6839, U+697c, U+6b27, U+6b62, U+6bb5, U+6c7d,
    U+6c99, U+6d4b, U+6d4e, U+6d6a, U+6e29, U+6e2f, U+6ee1, U+6f14, U+6f2b,
    U+72b6, U+72ec, U+7387, U+7533, U+753b, U+76ca, U+76d8, U+7701, U+773c,
    U+77ed, U+77f3, U+7814, U+793c, U+79bb, U+79c1, U+79d8, U+79ef, U+79fb,
    U+7a76, U+7b11, U+7b54, U+7b56, U+7b97, U+7bc7, U+7c73, U+7d20, U+7eaa,
    U+7ec8, U+7edd, U+7eed, U+7efc, U+7fa4, U+804c, U+8058, U+80cc, U+8111,
    U+817e, U+826f, U+8303, U+843d, U+89c9, U+89d2, U+8ba2, U+8bbf, U+8bc9,
    U+8bcd, U+8be6, U+8c22, U+8c61, U+8d22, U+8d26-8d27, U+8d8a, U+8f6f, U+8f7b,
    U+8f83, U+8f91, U+8fb9, U+8fd4, U+8fdc, U+9002, U+94b1, U+9519, U+95ed,
    U+961f, U+9632-9633, U+963f, U+968f-9690, U+96be, U+9876, U+9884, U+98de,
    U+9988, U+9999, U+9ec4, U+ff1b;
}
@font-face {
  font-family: GameDisplay;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/zcool-kuaile-117-400-normal.woff2") format("woff2");
  unicode-range:
    U+4e, U+201c-201d, U+3010-3011, U+4e07, U+4e1c, U+4e24, U+4e3e, U+4e48,
    U+4e50, U+4e5f, U+4e8b-4e8c, U+4ea4, U+4eab-4eac, U+4ecb, U+4ece, U+4ed6,
    U+4ee3, U+4ef6-4ef7, U+4efb, U+4f20, U+4f55, U+4f7f, U+4fdd, U+505a, U+5143,
    U+5149, U+514d, U+5171, U+5177, U+518c, U+51fb, U+521b, U+5229, U+522b,
    U+52a9, U+5305, U+5317, U+534e, U+5355, U+5357, U+535a, U+5373, U+539f,
    U+53bb, U+53ca, U+53cd, U+53d6, U+53e3, U+53f0, U+5458, U+5546, U+56db,
    U+573a, U+578b, U+57ce, U+58f0, U+590d, U+5934, U+5973, U+5b57, U+5b8c,
    U+5b98, U+5bb9, U+5bfc, U+5c06, U+5c11, U+5c31, U+5c55, U+5df2, U+5e03,
    U+5e38, U+5e76, U+5e94, U+5efa, U+5f71, U+5f97, U+5feb, U+6001, U+603b,
    U+60f3, U+611f, U+6216, U+624d, U+6253, U+6295, U+6301, U+6392, U+641c,
    U+652f, U+653e, U+6559, U+6599, U+661f, U+671f, U+672f, U+6761, U+67e5,
    U+6807, U+6837, U+683c, U+6848, U+6b22, U+6b64, U+6bd4, U+6c14, U+6c34,
    U+6c42, U+6ca1, U+6d41, U+6d77, U+6d88, U+6e05, U+6e38, U+6e90, U+7136,
    U+7231, U+7531, U+767e, U+76ee, U+76f4, U+771f, U+7801, U+793a, U+79cd,
    U+7a0b, U+7a7a, U+7acb, U+7ae0, U+7b2c, U+7b80, U+7ba1, U+7cbe, U+7d22,
    U+7ea7, U+7ed3, U+7ed9, U+7edf, U+7f16, U+7f6e, U+8001, U+800c, U+8272,
    U+8282, U+82b1, U+8350, U+88ab, U+88c5, U+897f, U+89c1, U+89c4, U+89e3,
    U+8a00, U+8ba1, U+8ba4, U+8bae-8bb0, U+8bbe, U+8bc1, U+8bc4, U+8bfb, U+8d28,
    U+8d39, U+8d77, U+8d85, U+8def, U+8eab, U+8f66, U+8f6c, U+8f7d, U+8fd0,
    U+9009, U+90ae, U+90fd, U+91cc-91cd, U+91cf, U+95fb, U+9650, U+96c6, U+9891,
    U+98ce, U+ff1f;
}
:root {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #273e32;
  background: #193e35;
  --paper: #fff9ed;
  --green: #24594e;
  --orange: #b74428;
  --ink: #273e32;
  --muted: #596a50;
  --safe: env(safe-area-inset-bottom, 0px);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input {
  font: inherit;
}
button {
  border: 0;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.15s,
    transform 0.15s;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #c77628;
  outline-offset: 3px;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  text-wrap: balance;
}
p {
  line-height: 1.65;
}
.icon {
  display: inline-block;
  vertical-align: middle;
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  flex-shrink: 0;
}
button strong {
  font-weight: 650;
}
button small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
}
.positive {
  color: #267144;
}
.negative {
  color: #ae3d29;
}
.full {
  width: 100%;
}
.app {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  overflow: hidden;
}
.desktop-world {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, #173f35, #315e4c);
  overflow: hidden;
}
.desktop-world:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/street.jpg") center/cover;
  opacity: 0.09;
}
.world-name {
  position: absolute;
  left: calc(50% - 560px);
  top: 18%;
  font:
    40px GameDisplay,
    sans-serif;
  color: #efd598;
  writing-mode: vertical-rl;
  letter-spacing: 8px;
}
.world-name span {
  font:
    12px "PingFang SC",
    sans-serif;
  letter-spacing: 3px;
  color: #d8e0c7;
  margin-right: 18px;
}
.world-note {
  position: absolute;
  right: calc(50% - 560px);
  bottom: 15%;
  font-size: 12px;
  line-height: 2.2;
  letter-spacing: 2px;
  color: #dae1c9;
}
.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #204b3f;
  color: #f8edcf;
  padding: 8px 12px;
  min-height: 53px;
  flex-shrink: 0;
}
.brand {
  font-family: GameDisplay, sans-serif;
  font-size: 25px;
  white-space: nowrap;
  letter-spacing: 1px;
  color: #f6d88d;
  background: none;
  padding: 0;
  min-height: 40px;
}
.calendar-button {
  background: #305e4e;
  color: #f8efda;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  min-height: 40px;
  font-size: 11px;
  margin-left: auto;
}
.calendar-button > .icon {
  width: 19px;
  height: 19px;
  color: #f2d187;
}
.calendar-button b {
  font-size: 15px;
}
.calendar-button small {
  display: block;
  font-size: 9px;
  color: #e3e8cf;
  margin-top: 1px;
}
.calendar-button small .icon {
  height: 10px;
  width: 10px;
}
.settings {
  background: none;
  color: #dce6cd;
  min-width: 38px;
  min-height: 40px;
  padding: 5px;
}
.wallet-hud {
  display: grid;
  grid-template-columns: 1fr 1fr 90px;
  flex-shrink: 0;
  background: #fff8e6;
  padding: 9px 13px;
  border-bottom: 1px solid #d4d7bd;
  min-height: 54px;
}
.wallet-hud button {
  background: none;
  text-align: left;
  border-right: 1px solid #d9dcc6;
  padding: 0 10px;
  min-width: 0;
}
.wallet-hud button:first-child {
  padding-left: 0;
}
.wallet-hud button:last-child {
  border: 0;
  padding-right: 0;
}
.wallet-hud small {
  font-size: 10px;
  color: #5e6d53;
  margin-bottom: 3px;
}
.wallet-hud b {
  font-size: 17px;
  white-space: nowrap;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wallet-hud em {
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
}
.playfield {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  isolation: isolate;
  overflow: hidden;
  background: #6d8060;
}
.scene-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -3;
  background: #849370;
}
.scene-backdrop > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.atlas-backdrop > img {
  position: absolute;
  width: auto;
  max-width: none;
  height: 200%;
  left: 50%;
  top: var(--row);
  transform: translateX(var(--shift));
  object-fit: initial;
}
.stage-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    #123d2630,
    transparent 30%,
    #23463015 65%,
    #14302266
  );
  z-index: -1;
}
.location {
  position: absolute;
  top: 12px;
  left: 13px;
  border-radius: 6px;
  background: #244e3ddf;
  padding: 6px 9px;
  color: #fff5d8;
  font-size: 11px;
  display: flex;
  gap: 5px;
  align-items: center;
  z-index: 4;
}
.location .icon {
  height: 13px;
  width: 13px;
}
.player-actor {
  position: absolute;
  bottom: -4px;
  left: -12px;
  height: min(100%, 325px);
  aspect-ratio: 1;
  background: url("assets/player-poses.png") var(--pose) var(--gender) / 400%
    200% no-repeat;
  z-index: 2;
  filter: drop-shadow(0 5px 8px #1539293b);
}
.stage:has(.npc-actor) .player-actor {
  height: min(92%, 285px);
  left: -20px;
}
.npc-actor {
  position: absolute;
  right: 12px;
  bottom: 18px;
  height: min(73%, 220px);
  aspect-ratio: 1;
  background: url("assets/portraits.jpg") var(--x) var(--y) / 400% 200%
    no-repeat;
  border-radius: 44% 44% 13px 13px;
  box-shadow: 0 7px 17px #15392940;
  z-index: 1;
}
.npc-actor > span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 6px;
  background: #fff5e4e8;
  font-size: 12px;
  font-weight: 650;
  color: #2f523b;
}
.scene-badge {
  position: absolute;
  right: 13px;
  bottom: 19px;
  background: #fff7e7ed;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 5px 15px #14302520;
  max-width: 49%;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.7;
  z-index: 3;
}
.scene-badge .icon {
  width: 16px;
  height: 16px;
  color: #a0752b;
  margin-right: 4px;
}
.scene-badge small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #5e6e4f;
}
.story-alert {
  position: absolute;
  right: 12px;
  top: 54px;
  padding: 10px 12px;
  border-radius: 10px;
  min-height: 44px;
  background: #e9bd64;
  color: #59451e;
  box-shadow: 0 5px 14px #173a2b30;
  z-index: 5;
  font-size: 11px;
}
.scene-tabs {
  position: absolute;
  right: 10px;
  left: 10px;
  top: 49px;
  display: flex;
  gap: 5px;
  z-index: 5;
}
.scene-tabs button {
  min-height: 35px;
  flex: 1;
  font-size: 10px;
  background: #fff8e5e8;
  border-radius: 6px;
  color: #476343;
  padding: 5px;
}
.scene-tabs .selected {
  background: #2c5c46;
  color: #fff7da;
}
.dialogue {
  position: relative;
  flex-shrink: 0;
  min-height: 190px;
  padding: 11px 17px 14px;
  background: #fff9ed;
  border-top: 3px solid #d8bd80;
  box-shadow: 0 -5px 15px #17382918;
  z-index: 6;
}
.dialogue:before {
  content: "";
  position: absolute;
  top: -7px;
  left: 28px;
  width: 14px;
  height: 10px;
  background: #fff9ed;
  transform: rotate(45deg);
}
.speaker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
  margin-bottom: 4px;
}
.speaker {
  font-size: 12px;
  font-weight: 700;
  color: #476b40;
}
.dialogue h1 {
  font-size: 19px;
  line-height: 1.45;
  margin-bottom: 6px;
  letter-spacing: 0.1px;
  font-weight: 750;
}
.speech {
  font-size: 12px;
  color: #596b4f;
  line-height: 1.75;
  margin-bottom: 9px;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}
.choices.single {
  grid-template-columns: 1fr;
}
.choice,
.primary {
  border-radius: 10px;
  min-height: 45px;
  background: #e7eddc;
  color: #365b3c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 7px;
  gap: 1px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.primary {
  background: #b74428;
  color: #fff5e2;
  box-shadow: 0 4px 10px #8a49201c;
}
.primary small {
  color: #fff0d8;
}
.choice small {
  font-size: 10px;
  color: #526d48;
}
.choice.primary small {
  color: #ffecd5;
}
.primary .icon {
  width: 17px;
  height: 17px;
}
.close-dialog {
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5ebd8;
  color: #62774d;
  padding: 4px;
  margin-left: auto;
}
.close-dialog .icon {
  width: 15px;
  height: 15px;
}
.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 10px;
  color: #597148;
}
.pager button {
  width: 36px;
  height: 30px;
  min-width: 36px;
  background: #e6ecda;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.pager button:first-child .icon {
  transform: rotate(180deg);
}
.pager .icon {
  width: 16px;
  height: 16px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 5px 0 6px;
}
.pair > span {
  font-size: 10px;
  color: #5b6c4e;
}
.pair b {
  display: block;
  font-size: 21px;
  line-height: 1.5;
  color: #315a3c;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.note {
  font-size: 10px;
  line-height: 1.65;
  color: #536d46;
  margin-top: 4px;
}
.warning {
  color: #975322;
}
.chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 7px 0;
}
.chip {
  flex: 1;
  min-width: 46px;
  min-height: 38px;
  border-radius: 8px;
  padding: 7px 5px;
  background: #e7eddc;
  color: #587248;
  font-size: 11px;
}
.chip.selected {
  background: #315f47;
  color: #fff5d5;
}
.option-label {
  font-size: 11px;
  color: #596e4c;
  margin-top: 10px;
}
.toggle-button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px;
  background: #e5ecda;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 8px;
  color: #426238;
  text-align: center;
}
.toggle-button small {
  font-size: 10px;
}
.config-cost {
  font-size: 13px;
  font-weight: 650;
  color: #446a3e;
  text-align: center;
  margin: 12px 0 4px;
}
.time-picks {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}
.day-pick {
  flex: 1;
  background: #e9e2c5;
  color: #846b2d;
  min-height: 66px;
  border-radius: 10px;
  font-size: 12px;
}
.day-pick b {
  font-size: 30px;
  display: inline;
}
.forecast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 7px 0;
}
.forecast span {
  font-size: 10px;
  color: #60734d;
}
.forecast b {
  display: block;
  font-size: 23px;
  line-height: 1.5;
  margin-top: 3px;
  color: #3b653e;
}
.compact-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
  font-size: 10px;
  color: #5b704e;
  padding: 5px 0;
}
.compact-ledger.large {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px 10px;
  margin: 10px 0;
}
.compact-ledger.large b {
  font-size: 16px;
  display: block;
  color: #345d3c;
  line-height: 1.5;
  margin-top: 3px;
}
.growth-strip {
  padding: 8px 10px;
  border-radius: 8px;
  background: #e0eacb;
  color: #3b652f;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 7px;
}
.growth-strip b {
  font-size: 13px;
}
.bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 9px calc(6px + var(--safe));
  background: #1f4b3d;
  border-top: 1px solid #50725b;
  flex-shrink: 0;
  z-index: 8;
  min-height: 57px;
}
.nav-item {
  color: #d1dfbe;
  background: none;
  min-height: 43px;
  padding: 3px 0;
  font-size: 10px;
  border-radius: 9px;
}
.nav-item strong {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-weight: 400;
}
.nav-item .icon {
  width: 21px;
  height: 21px;
}
.nav-item.active {
  background: #39674d;
  color: #ffe1a1;
}
.person-meta {
  font-size: 11px;
  color: #576c47;
  line-height: 1.85;
  margin: 5px 0;
}
.person-meta b {
  color: #345c35;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 8px 0;
}
.skills-grid button {
  background: #e7eddb;
  border-radius: 8px;
  text-align: left;
  padding: 7px 6px;
  min-height: 52px;
}
.skills-grid span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  font-size: 12px;
  color: #4b6940;
}
.skills-grid b {
  font-size: 12px;
  color: #315d37;
  white-space: nowrap;
}
.skills-grid i,
.learning-progress {
  height: 4px;
  display: block;
  position: relative;
  background: #c9d7b8;
  border-radius: 4px;
  overflow: hidden;
  margin: 5px 0;
}
.skills-grid em,
.learning-progress i {
  display: block;
  position: absolute;
  inset: 0;
  background: #668e47;
  transform-origin: left;
}
.skills-grid small {
  font-size: 11px;
  color: #4b6840;
  white-space: nowrap;
}
.learning-progress {
  height: 7px;
  margin: 16px 0;
}
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 10px 0;
}
.stepper button {
  width: 46px;
  height: 44px;
  background: #dfe9cf;
  color: #46693a;
  border-radius: 9px;
  font-size: 24px;
}
.stepper input {
  width: 126px;
  max-width: 45%;
  height: 48px;
  border: 1px solid #c8d4b7;
  background: #fffdf4;
  border-radius: 9px;
  text-align: center;
  color: #31583b;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.decision-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e9e2c3;
  border-radius: 9px;
  padding: 10px;
  font-size: 11px;
  color: #645326;
  gap: 8px;
  margin-top: 8px;
}
.decision-head b {
  font-size: 16px;
}
.decision-outcome {
  font-size: 12px;
  line-height: 1.75;
  margin: 10px 0;
  color: #526843;
}
.dice-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0;
}
.die {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 57px;
  width: 57px;
  border: 1px solid #d1c398;
  background: #fffdf2;
  border-radius: 10px;
  padding: 10px;
  gap: 4px;
  box-shadow: 0 4px 9px #81723e22;
  animation: dice-in 0.4s ease-out;
}
.die i {
  border-radius: 50%;
}
.die .pip {
  background: #3c6440;
}
.dice-result > small {
  font-size: 12px;
  color: #62744f;
}
.result-cash {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
}
.title-app {
  background: #fff8e7;
}
.title-art {
  flex: 1;
  min-height: 200px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.title-logo {
  position: absolute;
  top: 12%;
  left: 15px;
  right: 15px;
  z-index: 3;
  text-align: center;
  color: #ffe3a5;
  text-shadow: 0 3px 7px #344b2c88;
}
.title-logo h1 {
  font-family: GameDisplay, sans-serif;
  font-size: 59px;
  font-weight: 500;
  letter-spacing: 5px;
  -webkit-text-stroke: 0.5px #77542d;
  line-height: 1.3;
}
.title-logo p {
  font-size: 13px;
  letter-spacing: 7px;
  color: #fff1c8;
  font-weight: 600;
  margin-top: 6px;
}
.title-player {
  position: absolute;
  bottom: -6px;
  right: -20px;
  width: 300px;
  height: 300px;
  background: url("assets/player-poses.png") 0 var(--gender) / 400% 200%
    no-repeat;
  filter: drop-shadow(0 6px 13px #243c3426);
}
.title-dialogue {
  padding: 23px 24px calc(18px + var(--safe));
  border-top: 3px solid #d8bd80;
  flex-shrink: 0;
  background: #fff8e7;
}
.title-dialogue h2 {
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.title-dialogue p {
  font-size: 12px;
  color: #566c49;
}
.title-dialogue > .choices {
  grid-template-columns: 1fr;
  margin-top: 17px;
}
.title-dialogue .primary {
  min-height: 47px;
  font-size: 14px;
}
.title-dialogue > small {
  font-size: 10px;
  color: #61704e;
  display: block;
  text-align: center;
  margin-top: 15px;
}
.title-dialogue input {
  height: 46px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c7d0b7;
  border-radius: 9px;
  background: #fffdf5;
  color: #35573d;
  font-size: 14px;
  margin-top: 12px;
}
.new-note {
  font-size: 10px !important;
  margin: 8px 0 13px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + var(--safe));
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  background: #204733;
  color: #fff7dc;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 10px;
  box-shadow: 0 6px 18px #193b3133;
  z-index: 100;
  width: max-content;
  max-width: min(90vw, 420px);
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.clock-overlay {
  position: absolute;
  inset: 0;
  background: #163c30ed;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff3d2;
}
.clock-scene {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  z-index: -1;
}
.time-passage {
  text-align: center;
  padding: 25px 20px;
  width: 100%;
}
.time-passage h2 {
  font-size: 24px;
  margin-bottom: 30px;
}
.time-passage > p {
  font-size: 12px;
  color: #e1e8c8;
  margin: 14px 0 25px;
}
.time-passage > .primary {
  display: inline-flex;
  padding: 13px 19px;
}
.clock-face {
  height: 210px;
  width: 210px;
  border-radius: 50%;
  background: #f5ecd1;
  border: 8px solid #c5a55d;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 12px 30px #09271f55;
}
.clock-tick {
  position: absolute;
  left: calc(50% - 1px);
  top: 8px;
  width: 2px;
  height: 9px;
  background: #7c734c;
  transform-origin: 1px 89px;
}
.clock-twelve,
.clock-six {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  color: #6f693f;
  font-size: 17px;
}
.clock-twelve {
  top: 15px;
}
.clock-six {
  bottom: 15px;
}
.hour-hand,
.minute-hand {
  position: absolute;
  left: calc(50% - 3px);
  bottom: 50%;
  width: 6px;
  height: 48px;
  background: #426c4b;
  border-radius: 6px;
  transform-origin: center bottom;
  animation: clock-spin 2s linear infinite;
}
.minute-hand {
  height: 72px;
  width: 4px;
  left: calc(50% - 2px);
  background: #a76b32;
  animation-duration: 0.42s;
}
.clock-pin {
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #c59e4b;
  position: absolute;
  left: calc(50% - 7px);
  top: calc(50% - 7px);
}
.passing-day {
  margin-top: 26px;
  font-size: 19px;
  color: #e9deab;
}
.passing-day strong {
  font-size: 44px;
  margin: 0 7px;
  color: #ffe19a;
  font-variant-numeric: tabular-nums;
}
.scene-arrive .scene-backdrop {
  animation: scene-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.scene-arrive .player-actor {
  animation: actor-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scene-enter {
  from {
    opacity: 0.35;
    filter: brightness(1.1);
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1);
  }
}
@keyframes actor-enter {
  from {
    opacity: 0.5;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes clock-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes dice-in {
  from {
    transform: translateY(-8px) rotate(-15deg);
  }
  to {
    transform: translateY(0) rotate(0);
  }
}
@media (min-width: 650px) {
  body {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 20px;
  }
  .app {
    height: calc(100dvh - 40px);
    max-height: 960px;
    border-radius: 20px;
    box-shadow: 0 20px 70px #0f2b2480;
    border: 1px solid #76957b70;
  }
  .title-logo h1 {
    font-size: 62px;
  }
}
@media (max-width: 1000px) {
  .world-name,
  .world-note {
    display: none;
  }
}
@media (max-width: 374px) {
  .hud {
    padding: 6px 10px;
    min-height: 49px;
    gap: 5px;
  }
  .brand {
    font-size: 22px;
  }
  .calendar-button {
    font-size: 10px;
    padding: 5px 7px;
  }
  .wallet-hud {
    grid-template-columns: 1fr 1fr 77px;
    padding: 8px 11px;
    min-height: 50px;
  }
  .wallet-hud b {
    font-size: 15px;
  }
  .wallet-hud em {
    font-size: 10px;
  }
  .dialogue {
    padding: 9px 12px 11px;
    min-height: 174px;
  }
  .dialogue h1 {
    font-size: 17px;
    margin-bottom: 5px;
  }
  .speech {
    font-size: 11px;
    line-height: 1.7;
    margin-bottom: 7px;
  }
  .choices {
    gap: 6px;
    margin-top: 8px;
  }
  .choice,
  .primary {
    font-size: 11px;
    padding: 8px 5px;
    min-height: 43px;
  }
  .pair b {
    font-size: 19px;
  }
  .scene-badge {
    padding: 8px 10px;
    font-size: 11px;
  }
  .skills-grid {
    gap: 5px;
  }
  .skills-grid button {
    padding: 6px 5px;
    min-height: 48px;
  }
  .skills-grid span,
  .skills-grid b {
    font-size: 12px;
  }
  .title-logo h1 {
    font-size: 50px;
  }
  .title-dialogue {
    padding: 17px 18px;
  }
  .title-dialogue h2 {
    font-size: 19px;
  }
  .title-dialogue p {
    font-size: 11px;
  }
  .title-player {
    width: 250px;
    height: 250px;
    right: -12px;
  }
  .title-logo {
    top: 8%;
  }
  .bottom-nav {
    padding-top: 4px;
    padding-bottom: calc(4px + var(--safe));
    min-height: 53px;
  }
  .nav-item {
    min-height: 41px;
  }
  .close-dialog {
    width: 28px;
    height: 28px;
  }
  .compact-ledger.large {
    gap: 9px;
  }
  .compact-ledger.large b {
    font-size: 14px;
  }
  .decision-outcome {
    font-size: 11px;
    margin: 8px 0;
  }
  .scene-tabs button {
    font-size: 9px;
  }
  .location {
    font-size: 10px;
  }
}
@media (max-height: 680px) {
  .dialogue h1 {
    font-size: 17px;
  }
  .speech {
    font-size: 11px;
  }
  .dialogue {
    padding-top: 8px;
    padding-bottom: 10px;
  }
  .speaker-row {
    min-height: 22px;
  }
  .skills-grid button {
    min-height: 46px;
  }
  .title-logo {
    top: 7%;
  }
  .title-logo h1 {
    font-size: 49px;
  }
  .title-player {
    width: 240px;
    height: 240px;
  }
  .title-dialogue {
    padding-top: 16px;
  }
  .title-dialogue h2 {
    font-size: 19px;
  }
  .time-passage h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .clock-face {
    height: 180px;
    width: 180px;
  }
  .clock-tick {
    transform-origin: 1px 74px;
  }
  .minute-hand {
    height: 60px;
  }
  .hour-hand {
    height: 40px;
  }
}
@media (max-height: 530px) {
  .app {
    overflow-y: auto;
  }
  .stage {
    min-height: 130px;
  }
  .dialogue {
    overflow: visible;
  }
  .playfield {
    overflow: visible;
  }
  .bottom-nav {
    position: sticky;
    bottom: 0;
  }
  .title-art {
    min-height: 180px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
.reduce-motion *,
.reduce-motion *:before,
.reduce-motion *:after {
  animation: none !important;
  transition: none !important;
}

/* Cover each atlas cell independently, including short stages on small phones. */
.stage,
.clock-scene {
  container-type: size;
}
.atlas-backdrop > img {
  height: max(200cqh, 133.334cqw);
  width: auto;
  left: 50%;
  top: 50%;
  transform: translate(var(--shift), var(--row));
}
.close-dialog {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.pager button {
  width: 44px;
  min-width: 44px;
  height: 40px;
}
.growth-detail {
  font-size: 11px;
  line-height: 1.7;
  color: #43633a;
  margin-top: 5px;
}
