:root {
  --ink: #17251f;
  --ink-soft: #33453d;
  --jade: #3f6555;
  --jade-light: #87a797;
  --paper: #f5f0e6;
  --paper-deep: #e8dfcf;
  --gold: #c9a45b;
  --cinnabar: #a95242;
  --white: #fffdf8;
  --shadow: 0 18px 48px rgba(14, 25, 20, .28);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #0f1915; }
body { display: grid; place-items: center; overflow: hidden; }
button, select, textarea { font: inherit; }
button { cursor: pointer; }

.game-shell {
  position: relative;
  width: min(100vw, 540px);
  height: 100dvh;
  max-height: 960px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), var(--shadow);
}

.scene { --look-x: 0px; --look-y: 0px; position: absolute; inset: 0 0 76px; overflow: hidden; perspective: 900px; }
.scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 70% 18%, rgba(255,225,153,.17), transparent 32%); mix-blend-mode: screen; animation: daylight 7s ease-in-out infinite alternate; }
.scene-art { width: 100%; height: 100%; object-fit: cover; object-position: 51% center; transform: translate3d(var(--look-x), var(--look-y), 0) scale(1.075); transition: transform .55s cubic-bezier(.2,.8,.2,1); animation: settle 1.2s ease-out both; will-change: transform; }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,20,16,.52) 0%, transparent 24%, transparent 63%, rgba(11,21,17,.52) 100%); pointer-events: none; }

.topbar { position: absolute; z-index: 4; top: 0; left: 0; right: 0; padding: max(14px, env(safe-area-inset-top)) 14px 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-lockup { display: flex; align-items: center; color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,.45); min-width: 0; }
.brand-seal { display: grid; place-items: center; width: 38px; height: 38px; margin-right: 9px; border: 1px solid rgba(255,255,255,.62); border-radius: 10px; background: rgba(129,51,42,.82); box-shadow: inset 0 0 0 3px rgba(255,255,255,.12); font-family: serif; font-size: 21px; }
.brand-lockup p { margin: 0; font-family: "STKaiti", "KaiTi", serif; font-size: 19px; letter-spacing: 2px; white-space: nowrap; }
.brand-lockup div span { font-size: 10px; opacity: .8; letter-spacing: 1px; }
.resources { display: flex; gap: 6px; }
.resource { min-width: 66px; height: 40px; padding: 5px 8px; color: var(--white); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(18,36,29,.72); backdrop-filter: blur(12px); display: grid; grid-template-columns: 17px 1fr; grid-template-rows: 17px 11px; text-align: left; }
.resource > span { grid-row: 1 / 3; color: #f4d77e; align-self: center; }
.resource b { font-size: 12px; line-height: 1; }
.resource small { font-size: 8px; opacity: .62; }

.daily-card { position: absolute; z-index: 3; top: 78px; left: 12px; display: flex; align-items: center; gap: 8px; padding: 8px; color: var(--white); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(24,42,34,.75); backdrop-filter: blur(13px); box-shadow: 0 8px 26px rgba(0,0,0,.18); }
.daily-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #6f3a30; background: #f5d89f; font-family: serif; font-weight: 800; }
.daily-card div:nth-child(2) { display: grid; }
.daily-card span { font-size: 10px; opacity: .75; }
.daily-card strong { font-size: 12px; }
.daily-card button { border: 0; border-radius: 10px; padding: 7px 10px; background: var(--cinnabar); color: white; font-size: 11px; }

.mailbox { position: absolute; z-index: 3; right: 12px; top: 126px; width: 88px; padding: 10px 8px; display: grid; place-items: center; color: var(--ink); border: 1px solid rgba(255,255,255,.65); border-radius: 17px; background: rgba(249,243,229,.88); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.mailbox > span { font-size: 23px; color: var(--cinnabar); }
.mailbox b { font-size: 10px; margin-top: 3px; }
.mailbox small { font-size: 8px; opacity: .58; }

.build-point { position: absolute; z-index: 3; transform: translate(-50%, -50%) translateZ(24px); display: grid; justify-items: center; color: white; text-shadow: 0 2px 8px rgba(0,0,0,.8); cursor: pointer; filter: drop-shadow(0 5px 8px rgba(0,0,0,.35)); transition: transform .18s ease; }
.build-point:active { transform: translate(-50%, -50%) translateZ(45px) scale(.92); }
.build-point i { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 3px; border: 2px solid rgba(255,255,255,.82); border-radius: 50%; background: rgba(45,92,70,.9); font-style: normal; font-size: 12px; box-shadow: 0 0 0 5px rgba(255,255,255,.14); animation: pulse 2.5s ease-in-out infinite; }
.build-point span { padding: 3px 7px; border-radius: 7px; background: rgba(15,29,23,.72); font-size: 10px; font-weight: 700; white-space: nowrap; }
.build-point small { font-size: 8px; color: #f5d889; }
.point-1 { left: 50%; top: 42%; }
.point-2 { left: 76%; top: 34%; }
.point-3 { left: 26%; top: 32%; }
.point-4 { left: 22%; top: 62%; }
.point-5 { left: 79%; top: 70%; }

.quest-peek { position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 13px; padding: 12px 14px; color: var(--white); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(20,38,30,.8); backdrop-filter: blur(14px); box-shadow: var(--shadow); cursor: pointer; }
.quest-title { display: flex; justify-content: space-between; font-size: 12px; }
.quest-title span { font-weight: 800; letter-spacing: 1px; }
.quest-title b { color: #f0d08b; }
.progress { height: 4px; margin: 8px 0 6px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.14); }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d7b45f, #f5dda1); }
.quest-peek p { margin: 0; font-size: 9px; opacity: .68; }

.bottom-nav { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; height: 76px; padding: 8px 10px max(8px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.08); background: rgba(19,34,28,.97); }
.bottom-nav button { border: 0; color: rgba(255,255,255,.55); background: transparent; display: grid; justify-items: center; gap: 2px; font-size: 10px; }
.bottom-nav span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 11px; font-size: 18px; }
.bottom-nav .active { color: #f2d38a; }
.bottom-nav .active span { color: var(--ink); background: #e8c879; box-shadow: 0 4px 14px rgba(226,192,110,.28); }

.sheet-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(5,11,8,.55); backdrop-filter: blur(3px); }
.bottom-sheet { position: fixed; z-index: 21; left: 50%; bottom: 0; width: min(100vw, 540px); max-height: 82dvh; overflow: auto; transform: translateX(-50%); padding: 12px 18px calc(24px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; color: var(--ink); background: linear-gradient(155deg, #fbf8f0, #ebe2d1); box-shadow: 0 -20px 70px rgba(0,0,0,.38); animation: rise .28s ease-out both; }
.sheet-grip { width: 42px; height: 4px; margin: 0 auto 14px; border-radius: 99px; background: rgba(23,37,31,.18); }
.sheet-close { position: absolute; top: 15px; right: 18px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--ink-soft); background: rgba(23,37,31,.08); font-size: 21px; }
.panel-heading { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; }
.panel-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff9e8; background: var(--cinnabar); box-shadow: inset 0 0 0 4px rgba(255,255,255,.13); font-family: serif; font-size: 23px; }
.panel-heading small { color: var(--jade); font-size: 9px; letter-spacing: 2px; }
.panel-heading h2 { margin: 2px 0 0; font-family: "STKaiti", "KaiTi", serif; font-size: 25px; font-weight: 600; letter-spacing: 2px; }
.panel-lead { color: #5e685f; font-size: 13px; line-height: 1.7; }
.calendar-row { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; margin: 20px 0; }
.calendar-row span { padding: 8px 2px; display: grid; gap: 8px; justify-items: center; border: 1px solid rgba(62,81,70,.12); border-radius: 13px; color: #777; background: rgba(255,255,255,.48); font-size: 9px; }
.calendar-row b { color: var(--ink); font-size: 12px; }
.calendar-row .done { color: var(--jade); background: #dfe9df; }
.calendar-row .today { color: white; background: var(--cinnabar); transform: translateY(-5px); box-shadow: 0 8px 17px rgba(150,76,62,.25); }
.calendar-row .today b { color: white; }
.primary-action { width: 100%; padding: 14px; border: 0; border-radius: 15px; color: white; background: linear-gradient(135deg, #3d6252, #213e33); box-shadow: 0 8px 18px rgba(37,70,56,.2); font-weight: 700; letter-spacing: 1px; }

.task-list { display: grid; gap: 9px; }
.task-list article { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid rgba(46,69,57,.1); border-radius: 16px; background: rgba(255,255,255,.5); }
.task-list i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #e7dfd0; font-style: normal; }
.task-list .complete { color: white; background: var(--jade); }
.task-list div { display: grid; }
.task-list b { font-size: 13px; }
.task-list small { color: #758078; font-size: 10px; }
.task-list em { color: var(--cinnabar); font-style: normal; font-size: 12px; font-weight: 700; }

.item-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.item-grid article { min-height: 130px; padding: 18px 12px; display: grid; place-items: center; border: 1px solid rgba(56,78,67,.1); border-radius: 20px; background: rgba(255,255,255,.55); }
.item-grid article > span { font-size: 34px; color: var(--gold); }
.item-grid b { font-size: 12px; }
.item-grid small { color: #7a827c; font-size: 10px; }
.item-grid .locked { filter: grayscale(1); opacity: .5; }

.story-stack { display: grid; gap: 10px; }
.story-stack article { min-height: 115px; padding: 18px; overflow: hidden; border-radius: 18px; color: white; background: linear-gradient(120deg, #345746, #142d23); box-shadow: 0 9px 20px rgba(25,48,38,.18); }
.story-stack article:nth-child(2) { background: linear-gradient(120deg, #8c5345, #4d2f2b); }
.story-stack span { color: #eed68f; font-size: 9px; letter-spacing: 2px; }
.story-stack h3 { margin: 7px 0; font-family: serif; font-size: 19px; }
.story-stack p { margin: 0; opacity: .67; font-size: 11px; }
.story-stack .story-locked { color: var(--ink); background: rgba(255,255,255,.5); box-shadow: none; }
.story-stack .story-locked span { color: var(--cinnabar); }

label { display: grid; gap: 7px; margin: 14px 0; font-size: 12px; font-weight: 700; }
select, textarea { width: 100%; border: 1px solid rgba(43,67,55,.16); border-radius: 13px; color: var(--ink); background: rgba(255,255,255,.65); outline: none; }
select { padding: 12px; }
textarea { min-height: 116px; padding: 12px; resize: vertical; line-height: 1.6; }
.privacy-note { margin: -3px 0 14px; color: #768078; font-size: 10px; }
.building-card { display: flex; align-items: center; gap: 15px; margin: 14px 0; padding: 15px; border-radius: 18px; background: rgba(255,255,255,.55); }
.level-ring { width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; align-content: center; border: 5px solid #d9c38b; border-radius: 50%; color: var(--jade); font-size: 9px; }
.level-ring b { font-size: 20px; }
.building-card h3, .building-card p { margin: 0; }
.building-card p { margin-top: 5px; color: #6d776f; font-size: 11px; line-height: 1.6; }
.cost-row { display: flex; justify-content: space-between; margin: 18px 2px; font-size: 12px; }
.cost-row b { color: var(--cinnabar); }
.profile-card { text-align: center; padding: 25px 12px; }
.avatar { width: 76px; height: 76px; margin: 0 auto 12px; display: grid; place-items: center; border: 1px solid #c5a45d; border-radius: 26px; color: white; background: var(--jade); font-family: serif; font-size: 30px; transform: rotate(4deg); }
.profile-card small { color: var(--cinnabar); letter-spacing: 2px; }
.profile-card h2 { margin: 5px 0 20px; font-family: serif; }
.profile-card div { display: grid; grid-template-columns: auto auto auto auto; justify-content: center; gap: 5px 10px; align-items: center; }
.profile-card div b { font-size: 20px; }
.profile-card div span { color: #788178; font-size: 10px; }
.achievement { padding: 18px; border-radius: 18px; color: white; background: linear-gradient(135deg, #845044, #3f2f2a); }
.achievement span { color: #efd58c; font-size: 9px; letter-spacing: 2px; }
.achievement h3 { margin: 6px 0; font-family: serif; }
.achievement p { margin: 0; opacity: .65; font-size: 11px; }
.resource.premium > span { color: #9ed9d0; }
.wallet-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.wallet-grid article { padding: 14px 8px; display: grid; gap: 5px; text-align: center; border-radius: 16px; background: rgba(255,255,255,.58); }
.wallet-grid span { color: var(--gold); font-family: serif; font-size: 22px; }
.wallet-grid b { font-size: 18px; }.wallet-grid small { color: #6d776f; font-size: 9px; }.wallet-grid .premium-card { background: #dfece8; }
.section-title { margin: 18px 0 8px; font-size: 13px; }.ledger-list { display: grid; gap: 6px; }
.ledger-list article { display: grid; grid-template-columns: 1fr auto; padding: 9px 11px; border-radius: 12px; background: rgba(255,255,255,.48); font-size: 11px; }
.ledger-list small { grid-column: 1 / -1; color: #788178; font-family: ui-monospace, monospace; font-size: 8px; }
.rule-note, .future-strip { margin-top: 13px; padding: 11px; border-radius: 12px; color: #657068; background: rgba(63,101,85,.09); font-size: 10px; line-height: 1.55; }
.invite-card { margin: 16px 0; padding: 15px; display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; border-radius: 16px; background: rgba(255,255,255,.55); }
.invite-card div { display: grid; gap: 4px; }.invite-card small { color: #6e786f; font-size: 9px; }.invite-card em { color: var(--cinnabar); font-size: 10px; font-style: normal; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(201,164,91,.16); }.status-dot.done { background: var(--jade); }
.future-strip { display: grid; gap: 3px; }.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.profile-actions button, .skin { padding: 12px; border: 1px solid rgba(63,101,85,.15); border-radius: 13px; color: var(--jade); background: rgba(255,255,255,.55); font-weight: 700; }
.character-stage { display: flex; align-items: center; gap: 15px; padding: 15px; border-radius: 18px; background: linear-gradient(135deg, rgba(135,167,151,.28), rgba(255,255,255,.6)); }
.character-figure { width: 76px; height: 100px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 40px 40px 24px 24px; color: white; background: linear-gradient(#243e34 0 35%, #668b78 36%); font-family: serif; font-size: 22px; box-shadow: 0 16px 22px rgba(28,52,42,.18); }
.character-stage h3, .character-stage p { margin: 4px 0; }.character-stage p { color: #657068; font-size: 10px; line-height: 1.5; }
.skin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }.skin { display: grid; gap: 3px; }.skin small { font-size: 9px; font-weight: 400; }.skin.active { color: white; background: var(--jade); }.skin.locked { opacity: .5; }
.lady-task { margin: 14px 0; padding: 18px; border-radius: 18px; color: white; background: linear-gradient(135deg, #805044, #293e35); }.lady-task small { color: #efd58c; letter-spacing: 1px; }.lady-task h3 { margin: 8px 0; font-family: serif; }.lady-task p { opacity: .75; font-size: 11px; line-height: 1.6; }.lady-task b { font-size: 11px; }
.primary-action:disabled { opacity: .55; cursor: default; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 96px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 40px); padding: 10px 15px; border-radius: 12px; color: white; background: rgba(19,35,28,.94); box-shadow: var(--shadow); font-size: 11px; animation: toast-in .2s ease-out; pointer-events: none; }

@keyframes settle { from { opacity: .4; transform: translate3d(var(--look-x), var(--look-y), 0) scale(1.12); } to { opacity: 1; transform: translate3d(var(--look-x), var(--look-y), 0) scale(1.075); } }
@keyframes daylight { from { opacity: .55; transform: translateX(-2%); } to { opacity: 1; transform: translateX(2%); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255,255,255,.06); transform: translateY(-2px); } }
@keyframes rise { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes toast-in { from { transform: translate(-50%, 8px); opacity: 0; } }

/* G2 playable layer: game HUD, actionable building, and growth feedback. */
.build-point { width: auto; padding: 0; border: 0; font: inherit; background: transparent; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.build-point.point-1 { min-width: 104px; min-height: 92px; align-content: center; border-radius: 28px; }
.sheet-backdrop[hidden], .bottom-sheet[hidden], .toast[hidden], .growth-burst[hidden] { display: none !important; pointer-events: none !important; }
.sheet-backdrop:not([hidden]), .bottom-sheet:not([hidden]) { pointer-events: auto; }
.bottom-sheet { animation: none; }
.sheet-close { z-index: 2; pointer-events: auto; touch-action: manipulation; }
.quest-peek { width: auto; border: 1px solid rgba(255,255,255,.2); text-align: left; font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.build-version { position: absolute; z-index: 9; right: 8px; bottom: 3px; color: rgba(255,255,255,.48); font: 7px ui-monospace, monospace; pointer-events: none; }
.topbar { padding-bottom: 14px; background: linear-gradient(180deg, rgba(8,17,13,.72), transparent); }
.daily-card { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.daily-card:active { transform: scale(.97); }
.daily-card.rewarded { animation: reward-glow .9s ease; }
.daily-card button:disabled { background: var(--jade); opacity: .8; }
.build-point { transition: transform .18s ease, filter .25s ease, opacity .25s ease; }
.build-point.playable i { width: 42px; height: 42px; color: #382716; border-color: #ffe5a2; background: radial-gradient(circle at 35% 28%, #fff0b8, #c98e35 72%); box-shadow: 0 0 0 6px rgba(255,213,120,.18), 0 8px 22px rgba(0,0,0,.4); }
.build-point.playable span { padding: 5px 10px; border: 1px solid rgba(241,207,130,.38); background: linear-gradient(180deg, rgba(53,38,25,.92), rgba(17,28,23,.9)); font-size: 11px; }
.build-point.leveled-up i { color: white; background: radial-gradient(circle at 35% 25%, #8bc7a8, #315f4a 70%); animation: leveled-pulse 2.4s ease-in-out infinite; }
.build-point.locked-point { opacity: .72; filter: grayscale(.45) drop-shadow(0 5px 8px rgba(0,0,0,.35)); }
.build-point.locked-point i { background: rgba(43,45,42,.88); }
.build-point.clue-unlocked i { color: #4a311a; background: #f1cc79; animation: clue-pulse 1.8s ease-in-out infinite; }
.build-point.clue-unlocked small { color: #fff2b8; }
.quest-peek p { opacity: .78; }
.quest-peek::before { content: "辅助"; position: absolute; right: 14px; top: -9px; padding: 3px 8px; border-radius: 7px; color: #3e2b16; background: #e5c174; font-size: 8px; font-weight: 800; }
.reward-preview { margin: 12px 0; padding: 13px 15px; display: flex; justify-content: space-between; border: 1px solid rgba(201,164,91,.28); border-radius: 14px; background: linear-gradient(135deg, rgba(255,244,204,.7), rgba(255,255,255,.5)); font-size: 12px; }
.reward-preview b { color: #9c5a2f; }
.task-list article.ready { border-color: rgba(201,164,91,.55); box-shadow: 0 0 0 3px rgba(201,164,91,.1); animation: task-ready 1.5s ease-in-out infinite; }
.task-list article.claimed { opacity: .7; }
.building-hero { position: relative; height: 135px; display: grid; place-items: center; overflow: hidden; border-radius: 20px; background: radial-gradient(circle at 50% 65%, rgba(245,202,105,.5), transparent 25%), linear-gradient(160deg, #284a3b, #10271e); }
.workshop-mini { width: 115px; height: 72px; display: grid; place-items: center; border: 2px solid #d7b45f; border-radius: 45px 45px 12px 12px; color: #ffe8a3; background: linear-gradient(145deg, #567b65, #243f33); box-shadow: 0 18px 28px rgba(0,0,0,.35), inset 0 -8px 0 rgba(0,0,0,.16); font-size: 30px; }
.workshop-mini::after { content: ""; width: 38px; height: 32px; position: absolute; margin-top: 40px; border-radius: 20px 20px 4px 4px; background: #ffd477; box-shadow: 0 0 25px #ffc861; }
.building-hero .level-ring { position: absolute; right: 14px; bottom: 12px; color: #fff7da; border-color: #d9b96b; background: rgba(13,29,22,.82); }
.building-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.building-stats article { padding: 11px; display: grid; gap: 4px; border-radius: 13px; background: rgba(255,255,255,.54); }
.building-stats small { color: #788178; font-size: 9px; }
.building-stats b { font-size: 12px; }
.requirement-row { height: 26px; position: relative; margin: -8px 2px 14px; overflow: hidden; border-radius: 9px; background: rgba(38,61,49,.1); }
.requirement-row span { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; font-size: 9px; }
.requirement-row i { display: block; height: 100%; background: linear-gradient(90deg, rgba(215,180,95,.55), rgba(245,218,143,.75)); transition: width .5s ease; }
.upgrade-requirements { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 14px; }
.upgrade-requirements > span { padding: 8px; display: grid; grid-template-columns: 18px 1fr; align-items: center; border-radius: 10px; background: rgba(255,255,255,.48); color: #667069; font-size: 9px; }
.upgrade-requirements > span i { grid-row: 1 / 3; font-style: normal; }.upgrade-requirements > span b { font-size: 9px; }.upgrade-requirements .met i { color: var(--jade); }.upgrade-requirements .missing i { color: var(--cinnabar); }
.upgrade-action:not(:disabled) { animation: upgrade-ready 1.6s ease-in-out infinite; }
.growth-burst { position: absolute; z-index: 12; left: 50%; top: 45%; width: 250px; padding: 24px 18px; transform: translate(-50%,-50%); display: grid; gap: 5px; place-items: center; border: 1px solid rgba(255,231,165,.8); border-radius: 24px; color: white; background: radial-gradient(circle at 50% 0, rgba(232,190,91,.55), transparent 55%), rgba(20,44,34,.94); box-shadow: 0 0 60px rgba(244,198,88,.48), 0 22px 55px rgba(0,0,0,.5); animation: growth-in 3.2s ease both; }
.growth-burst span { color: #f7d780; font-size: 11px; letter-spacing: 3px; }
.growth-burst b { font-family: serif; font-size: 22px; }
.growth-burst small { opacity: .76; }
.growth-burst[hidden] { display: none; }
.upgrade-pop { animation: building-upgrade 1.1s cubic-bezier(.2,.9,.25,1.25); }
@keyframes reward-glow { 45% { transform: scale(1.05); box-shadow: 0 0 35px rgba(246,207,113,.7); } }
@keyframes task-ready { 50% { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(201,164,91,.18); } }
@keyframes upgrade-ready { 50% { box-shadow: 0 0 0 5px rgba(215,180,95,.13), 0 12px 24px rgba(37,70,56,.25); filter: brightness(1.07); } }
@keyframes building-upgrade { 35% { transform: translate(-50%,-50%) translateZ(70px) scale(1.28); filter: brightness(1.7) drop-shadow(0 0 25px #ffd77a); } 70% { transform: translate(-50%,-50%) translateZ(35px) scale(.94); } }
@keyframes growth-in { 0% { opacity: 0; transform: translate(-50%,-40%) scale(.6); } 12%,75% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 100% { opacity: 0; transform: translate(-50%,-58%) scale(.94); } }
@keyframes leveled-pulse { 50% { box-shadow: 0 0 0 8px rgba(119,187,151,.15), 0 0 24px rgba(119,187,151,.5); } }
@keyframes clue-pulse { 50% { transform: translateY(-3px); box-shadow: 0 0 0 7px rgba(241,204,121,.14), 0 0 22px rgba(241,204,121,.5); } }

@media (min-width: 700px) {
  body { padding: 24px; }
  .game-shell { height: min(900px, calc(100dvh - 48px)); border-radius: 28px; }
  .bottom-sheet { bottom: 24px; border-radius: 28px; max-height: calc(82dvh - 24px); }
}

@media (max-width: 380px) {
  .resource { min-width: 57px; padding-inline: 6px; }
  .brand-lockup p { font-size: 16px; }
  .mailbox { top: 122px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
