@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --paper: #fffaf0;
  --cream: #fff3dc;
  --card: #fffdf8;
  --ink: #5b4636;
  --ink2: #8c7663;
  --ink3: #b4a08a;
  --line: #eedfc4;
  --leaf: #67b84a;
  --leaf-d: #4c9533;
  --leaf-l: #e5f5d8;
  --acorn: #c47a3f;
  --acorn-d: #8a5a33;
  --coral: #ef6f5e;
  --sky: #6db7e3;
  --sun: #f6c945;
  --pink: #f7a8b8;
  --lilac: #b7a3e3;
  --r: 22px;
  --shadow: 0 4px 0 rgba(138, 104, 70, .16), 0 14px 32px rgba(70, 48, 24, .16);
  --shadow-s: 0 3px 0 rgba(138, 104, 70, .16), 0 6px 14px rgba(70, 48, 24, .12);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Nunito", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #8fd16a; color: var(--ink); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea, select { font: inherit; color: var(--ink); }
img { display: block; }
.hidden { display: none !important; }
.fine { color: var(--ink2); font-size: 12.5px; line-height: 1.5; margin: 0; }
.ic { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.ic svg { width: 100%; height: 100%; }

#stage { position: fixed; inset: 0; touch-action: none; }
.game-canvas { display: block; width: 100%; height: 100%; outline: none; }
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
#ui { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
:where(#ui) > * { pointer-events: auto; }
#toasts { position: fixed; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 460px); }
#fade { position: fixed; inset: 0; background: #fff6e4; opacity: 0; pointer-events: none; z-index: 50; transition: opacity .38s var(--ease); }
#fade.on { opacity: 1; pointer-events: auto; }

/* ---------- 加载 ---------- */
#loading { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(circle at 50% 40%, #b8e89a, #8fd16a 70%); transition: opacity .5s var(--ease); }
#loading.out { opacity: 0; pointer-events: none; }
#loading p { margin: 0; font-weight: 800; color: #3f6b2c; letter-spacing: .05em; }
.ld-acorn { width: 64px; height: 64px; animation: hop 1s var(--ease) infinite; }
.ld-acorn svg { width: 100%; height: 100%; }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(6deg); } }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 800; box-shadow: 0 3px 0 var(--line), inset 0 0 0 2px var(--line); transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .2s; white-space: nowrap; }
.btn:hover { background: #fff; }
.btn:active { transform: translateY(2px) scale(.98); box-shadow: 0 1px 0 var(--line), inset 0 0 0 2px var(--line); }
.btn.primary { background: var(--leaf); color: #fff; box-shadow: 0 3px 0 var(--leaf-d); }
.btn.primary:hover { background: #72c455; }
.btn.primary:active { box-shadow: 0 1px 0 var(--leaf-d); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--ink2); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 17px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.busy { opacity: .7; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink2); transition: background .2s, color .2s, transform .12s; }
.icon-btn:hover { background: var(--cream); color: var(--ink); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.on { color: var(--leaf-d); background: var(--leaf-l); }
.icon-btn .ic { width: 20px; height: 20px; }
.mini { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--ink2); font-size: 12px; font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .15s, transform .12s; }
.mini:hover { background: #fff; color: var(--ink); }
.mini:active { transform: scale(.95); }
.mini .ic { width: 14px; height: 14px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); font-weight: 700; font-size: 13px; transition: transform .12s; }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--leaf-l); box-shadow: inset 0 0 0 2px #bfe3a8; color: var(--leaf-d); }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.row-center { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.ok-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--leaf-d); font-weight: 800; font-size: 13px; }

/* ---------- 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; font-weight: 800; font-size: 13px; color: var(--ink2); }
.field input, .settings input:not([type]), .settings input[type=email], .settings input[type=password], .mail textarea, .mail input, .search, .account input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.mail textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .mail textarea:focus, .mail input:focus, .search:focus, .account input:focus { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(103, 184, 74, .15); }
.with-btn { display: flex; gap: 8px; }
.with-btn input { flex: 1; min-width: 0; }
.links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.links a { color: var(--leaf-d); font-weight: 800; text-decoration: none; }
.seg { display: flex; padding: 4px; gap: 4px; background: var(--cream); border-radius: 999px; }
.seg button { flex: 1; height: 36px; border-radius: 999px; font-weight: 800; color: var(--ink2); transition: background .2s, color .2s; white-space: nowrap; padding: 0 10px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }
.seg.small button { height: 30px; font-size: 13px; }
.auth .seg:first-child { margin-bottom: 14px; }

/* ---------- 弹层 ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(60, 44, 30, .28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s var(--ease); }
.sheet-back.in { opacity: 1; }
.sheet-back.out { opacity: 0; }
.sheet { width: min(100%, 480px); max-height: min(88vh, 820px); display: flex; flex-direction: column; background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); transform: translateY(18px) scale(.97); transition: transform .32s var(--spring); overflow: hidden; border: 3px solid #fff; }
.sheet-back.in .sheet { transform: none; }
.sheet-back.out .sheet { transform: translateY(10px) scale(.98); transition-duration: .2s; }
.sheet.wide { width: min(100%, 940px); height: min(86vh, 760px); }
.sheet.small { width: min(100%, 380px); }
.sheet-head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 18px 8px 22px; }
.sheet-titles { flex: 1; min-width: 0; }
.sheet-head h2 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: .01em; }
.sheet-head p { margin: 4px 0 0; color: var(--ink2); font-size: 13px; }
.sheet-body { padding: 8px 22px 22px; overflow: auto; flex: 1; min-height: 0; }
.pad-sheet .sheet-body { padding: 0; display: flex; }

/* ---------- 轻提示 ---------- */
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); font-weight: 800; font-size: 14px; transform: translateY(-10px); opacity: 0; transition: transform .3s var(--spring), opacity .25s; max-width: 100%; }
.toast.in { transform: none; opacity: 1; }
.toast.out { opacity: 0; transform: translateY(-6px); }
.toast.ok { color: var(--leaf-d); }
.toast.error { color: #c0452f; }
.toast .ic { width: 20px; height: 20px; }

/* ---------- 标题画面 ---------- */
.title-screen { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 55%, transparent 30%, rgba(60, 40, 20, .2)); transition: opacity .5s var(--ease); }
.title-screen.out { opacity: 0; pointer-events: none; }
.title-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; animation: rise .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.logo { display: flex; flex-direction: column; align-items: center; }
.logo-acorn { width: 74px; height: 74px; animation: hop 2.4s var(--ease) infinite; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .12)); }
.logo-acorn .ic { width: 100%; height: 100%; }
.logo h1 { margin: 4px 0 0; font-size: clamp(46px, 10vw, 84px); font-weight: 1000; color: #fff; letter-spacing: -.01em; line-height: 1; text-shadow: 0 4px 0 #c47a3f, 0 8px 0 #8a5a33, 0 16px 28px rgba(60, 30, 10, .35); }
.logo-sub { margin: 18px 0 0; padding: 8px 18px; border-radius: 999px; background: rgba(255, 250, 240, .92); font-weight: 800; font-size: 15px; box-shadow: var(--shadow-s); }
.title-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; min-width: 240px; }
.title-actions .welcome { margin: 0; font-weight: 900; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.title-actions .btn.ghost { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.title-foot { margin: 0; color: #fff; font-size: 12.5px; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }

/* ---------- 捏人 ---------- */
.creator { position: fixed; right: 24px; top: 50%; transform: translate(30px, -50%); opacity: 0; width: 380px; max-height: calc(100vh - 48px); overflow: auto; padding: 22px; background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); border: 3px solid #fff; transition: transform .4s var(--ease), opacity .3s; }
.creator.in { transform: translate(0, -50%); opacity: 1; }
.creator.out { opacity: 0; }
.creator h2 { margin: 0 0 4px; font-size: 20px; font-weight: 900; }
.cr-sec { margin-top: 16px; }
.cr-sec h3 { margin: 0 0 8px; font-size: 13px; color: var(--ink2); font-weight: 900; }
.species-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.species { display: flex; flex-direction: column; align-items: center; padding: 6px 4px 8px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); font-weight: 800; font-size: 13px; transition: transform .15s var(--spring), box-shadow .2s; }
.species img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.species.on { box-shadow: inset 0 0 0 3px var(--leaf); background: var(--leaf-l); }
.species:active { transform: scale(.95); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08), 0 2px 0 rgba(0, 0, 0, .1); transition: transform .15s var(--spring); }
.swatch.on { transform: scale(1.12); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--leaf); }
.creator .btn.block { margin-top: 18px; }

/* ---------- HUD ---------- */
.hud { position: fixed; inset: 0; pointer-events: none !important; }
.hud > * { pointer-events: auto; }
.hud-tl { position: absolute; left: 16px; top: calc(14px + var(--safe-t)); }
.p-card { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255, 250, 240, .94); box-shadow: var(--shadow-s); text-align: left; transition: transform .15s var(--ease); }
.p-card:active { transform: scale(.97); }
.p-face { width: 52px; height: 52px; border-radius: 50%; background: #e9f6ff; object-fit: cover; }
.p-name { font-weight: 900; font-size: 15px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-lv { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--ink2); }
.lv-badge { padding: 1px 7px; border-radius: 999px; background: var(--sun); color: #6b4a10; font-weight: 900; }
.xp { width: 120px; height: 6px; margin-top: 4px; border-radius: 9px; background: var(--line); overflow: hidden; }
.xp i { display: block; height: 100%; background: linear-gradient(90deg, #8fd16a, var(--leaf)); border-radius: 9px; transition: width .6s var(--ease); }
.hud-tr { position: absolute; right: 16px; top: calc(14px + var(--safe-t)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tr-row { display: flex; align-items: center; gap: 8px; }
.q-row { display: flex; gap: 8px; }
.q-row .q-btn { width: 40px; padding: 0; justify-content: center; }
.q-row .q-btn > span:not(.ic) { display: none; }
.q-row .q-btn .ic { width: 22px; height: 22px; }
.pills { display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: rgba(255, 250, 240, .94); box-shadow: var(--shadow-s); font-weight: 900; font-size: 16px; }
.pill .ic { width: 24px; height: 24px; }
.acorn-pill.bump { animation: bump .5s var(--spring); }
@keyframes bump { 30% { transform: scale(1.18); } }
.clock-pill { font-size: 14px; color: var(--ink2); }
.clock-pill .ic { width: 18px; height: 18px; }
.daily-mini { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 250, 240, .9); box-shadow: var(--shadow-s); font-size: 12px; font-weight: 800; color: var(--ink2); }
.daily-mini i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.daily-mini i.ready { background: var(--sun); animation: pulse 1.2s infinite; }
.daily-mini i.on { background: var(--leaf); }
.dm-v { color: var(--ink); }
@keyframes pulse { 50% { transform: scale(1.35); } }
.hud-br { position: absolute; right: 16px; bottom: calc(16px + var(--safe-b)); display: flex; align-items: flex-end; gap: 12px; }

.q-btn { position: relative; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 11px; border-radius: 999px; background: rgba(255, 250, 240, .94); box-shadow: var(--shadow-s); font-weight: 800; font-size: 13px; transition: transform .15s var(--ease); }
.q-btn:active, .menu-btn:active { transform: scale(.95); }
.q-btn .ic { width: 20px; height: 20px; color: var(--acorn); }
.q-btn .dot, .rail-btn .dot { position: absolute; top: 4px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px #fff; display: none; }
.has-dot .dot { display: block; }
.menu-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 76px; height: 76px; border-radius: 26px; background: var(--leaf); color: #fff; box-shadow: 0 4px 0 var(--leaf-d), 0 12px 24px rgba(40, 80, 20, .3); font-weight: 900; font-size: 13px; transition: transform .15s var(--ease); }
.menu-btn .ic { width: 30px; height: 30px; }

.joy { position: fixed; left: 128px; bottom: calc(18px + var(--safe-b)); width: 124px; height: 124px; border-radius: 50%; background: rgba(255, 250, 240, .22); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55); display: none; pointer-events: none !important; opacity: .7; transition: opacity .2s; }
.joy-knob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255, 250, 240, .95); box-shadow: var(--shadow-s); transition: transform .08s; }
.joy-tip { position: absolute; left: 0; right: 0; bottom: -2px; text-align: center; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.joy.on { opacity: 1; }
.joy.on .joy-knob { transition: none; }
.joy.on .joy-tip { display: none; }
.roll-btn { position: fixed; right: 22px; bottom: calc(112px + var(--safe-b)); width: 60px; height: 60px; border-radius: 50%; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: rgba(255, 250, 240, .94); box-shadow: var(--shadow-s); font-size: 11px; font-weight: 900; color: var(--ink2); }
.roll-btn .jb-ic { width: 24px; height: 24px; color: var(--sky); }
.roll-btn .jb-ic svg { width: 100%; height: 100%; display: block; }
.roll-btn.down { transform: scale(.9); background: #e8f5ff; }
.roll-btn:active { transform: scale(.92); }
@media (pointer: coarse) { .joy { display: block; } .roll-btn { display: flex; } }
.minimap { position: fixed; left: 16px; bottom: calc(16px + var(--safe-b)); width: 184px; height: 184px; border-radius: 50%; padding: 0; overflow: hidden; background: #86d3e8; box-shadow: 0 0 0 4px rgba(255, 250, 240, .95), var(--shadow); transition: transform .15s var(--ease); }
.minimap canvas { width: 100%; height: 100%; display: block; }
.minimap:active { transform: scale(.97); }
.act-btn { position: relative; flex: none; align-self: flex-end; width: 78px; height: 78px; border-radius: 50%; background: var(--sun); color: #6b4a10; font-weight: 900; font-size: 16px; box-shadow: 0 4px 0 #c99a1e, 0 10px 24px rgba(0, 0, 0, .2); animation: popin .3s var(--spring); }
.act-btn:active { transform: scale(.94); }
@keyframes popin { from { transform: scale(.4); opacity: 0; } }
.key-hint { position: fixed; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 250, 240, .95); box-shadow: var(--shadow-s); font-weight: 800; animation: popin .25s var(--spring); }
.key-hint kbd { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: #fff; font: 900 14px var(--font); box-shadow: 0 3px 0 #2f2318; }
.banner { position: fixed; left: 50%; top: calc(76px + var(--safe-t)); transform: translate(-50%, -10px); display: flex; flex-direction: column; align-items: center; padding: 10px 28px; border-radius: 20px; background: rgba(255, 250, 240, .95); box-shadow: var(--shadow); opacity: 0; pointer-events: none; }
.banner b { font-size: 20px; font-weight: 900; }
.banner span { font-size: 13px; color: var(--ink2); font-weight: 800; }
.banner.in { animation: banner 3s var(--ease) both; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -10px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }

.npc-label { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 250, 240, .92); box-shadow: var(--shadow-s); font-weight: 900; font-size: 13px; white-space: nowrap; pointer-events: auto; cursor: pointer; transition: opacity .2s; }
.npc-label.far { opacity: .65; }
.nl-bang { display: none; width: 18px; height: 18px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 12px; align-items: center; justify-content: center; animation: bob 1.2s ease-in-out infinite; }
.npc-label.has-task .nl-bang { display: inline-flex; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.world-hint { position: absolute; left: 0; top: 0; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 12.5px; white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); }

.popups { position: fixed; right: 18px; top: calc(118px + var(--safe-t)); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none !important; }
.popup { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 250, 240, .96); box-shadow: var(--shadow-s); font-weight: 900; animation: popup 2.6s var(--ease) both; }
.popup small { color: var(--ink2); font-weight: 700; font-size: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-a { display: inline-flex; align-items: center; gap: 3px; color: var(--acorn-d); }
.pp-a .ic { width: 18px; height: 18px; }
.pp-x { color: var(--leaf-d); font-size: 13px; }
@keyframes popup { 0% { opacity: 0; transform: translateX(20px) scale(.9); } 10%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
.levelup { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none !important; z-index: 40; transition: opacity .4s; }
.levelup.out { opacity: 0; }
.lu-card { padding: 26px 40px; border-radius: 30px; background: var(--paper); box-shadow: var(--shadow); text-align: center; animation: popin .5s var(--spring); border: 4px solid var(--sun); }
.lu-big { font-size: 56px; font-weight: 1000; color: var(--acorn); line-height: 1; }
.lu-t { margin-top: 8px; font-weight: 900; font-size: 18px; }
.lu-b { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--acorn-d); font-weight: 800; }
.ach-toast { position: fixed; left: 50%; top: calc(16px + var(--safe-t)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); z-index: 45; animation: drop .45s var(--spring); transition: opacity .4s, transform .4s; }
.ach-toast.out { opacity: 0; transform: translate(-50%, -12px); }
.ach-toast b { display: block; font-weight: 900; }
.ach-toast span { font-size: 12.5px; color: var(--ink2); }
.ach-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--ab, var(--sun)); color: #fff; display: grid; place-items: center; flex: none; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.ach-ic .ic, .ach-ic svg { width: 26px; height: 26px; }
@keyframes drop { from { transform: translate(-50%, -30px); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none !important; z-index: 46; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- 对话 ---------- */
.dialog { position: fixed; inset: 0; pointer-events: none !important; }
.dialog > * { pointer-events: auto; }
.dlg-panel { position: absolute; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translate(-50%, 30px); opacity: 0; width: min(760px, calc(100% - 28px)); height: min(66vh, 640px); display: flex; flex-direction: column; background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); border: 3px solid #fff; transition: transform .35s var(--ease), opacity .25s; overflow: hidden; }
.dialog.in .dlg-panel { transform: translate(-50%, 0); opacity: 1; }
.dlg-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 8px 14px; border-bottom: 2px dashed var(--line); }
.dlg-face { width: 46px; height: 46px; border-radius: 50%; background: #e9f6ff; object-fit: cover; }
.dlg-who { flex: 1; min-width: 0; }
.dlg-who b { display: block; font-size: 17px; font-weight: 900; }
.dlg-who span { font-size: 12px; color: var(--ink2); font-weight: 700; }
.dlg-tools { display: flex; gap: 2px; }
.dlg-log { flex: 1; overflow-y: auto; padding: 12px 14px 6px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.bubble { position: relative; max-width: 88%; padding: 10px 14px; border-radius: 20px; line-height: 1.5; animation: bubin .3s var(--ease); }
@keyframes bubin { from { opacity: 0; transform: translateY(8px); } }
.bubble.npc { align-self: flex-start; background: #fff; box-shadow: inset 0 0 0 2px var(--line); border-top-left-radius: 6px; margin-top: 8px; }
.bubble.npc .tag { position: absolute; top: -10px; left: 10px; padding: 1px 9px; border-radius: 999px; background: var(--acorn); color: #fff; font-size: 11px; font-weight: 900; }
.bubble.me { align-self: flex-end; background: var(--leaf-l); box-shadow: inset 0 0 0 2px #cbe8b6; border-top-right-radius: 6px; }
.bubble.me.failed { opacity: .7; }
.b-text { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.b-text.typing::after { content: "▍"; color: var(--ink3); animation: blink .8s steps(1) infinite; }
.b-text.thinking::after { content: none; }
.think-ic { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.think-ic img { width: 56px; height: 56px; border-radius: 50%; background: #e9f6ff; object-fit: cover; animation: think-bob 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.think-dots { display: inline-flex; gap: 4px; }
.think-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); animation: think-dot 1.1s ease-in-out infinite; }
.think-dots i:nth-child(2) { animation-delay: .15s; }
.think-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes think-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes think-bob { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .think-ic img, .think-dots i { animation: none; } .think-dots i { opacity: .7; } }
@keyframes blink { 50% { opacity: 0; } }
.b-zh { margin-top: 3px; font-size: 13px; color: var(--ink2); }
.no-zh .b-zh { display: none; }
.b-zh.wait { visibility: hidden; }
.b-tools { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ctext .w { cursor: pointer; border-radius: 4px; transition: background .15s; }
.ctext .w:hover { background: #fff1c8; box-shadow: 0 2px 0 var(--sun); }
.vbadge { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; font-size: 11px; font-weight: 800; color: var(--leaf-d); }
.vbadge .ic { width: 12px; height: 12px; }
.bubble.me .mini.mine { margin-top: 6px; }
.b-notes { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.note { padding: 8px 10px; border-radius: 14px; background: #fff; font-size: 13px; }
.note .n-h { display: flex; align-items: center; gap: 4px; font-weight: 900; font-size: 12px; }
.note .n-en { margin-top: 3px; font-size: 15px; font-weight: 800; }
.note .n-zh { margin-top: 2px; color: var(--ink2); }
.note .n-tools { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.note.fix { box-shadow: inset 0 0 0 2px #f6dc8c; }
.note.fix .n-h { color: #a87a10; }
.note.pron { box-shadow: inset 0 0 0 2px #f8c0b6; }
.note.pron .n-h { color: #c0452f; }
.note.pron s { color: #c0452f; }
.note.pron b { color: var(--leaf-d); }
.note.pron.soft { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink2); box-shadow: inset 0 0 0 2px var(--line); }
.note.good { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 3px 10px; color: var(--leaf-d); font-weight: 800; font-size: 12px; background: #fff; }
.sys { align-self: center; padding: 3px 12px; border-radius: 999px; background: var(--cream); color: var(--ink2); font-size: 12px; font-weight: 800; }
.typing-dots { display: flex; gap: 5px; padding: 14px 16px; }
.typing-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink3); animation: dots 1s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 30% { transform: translateY(-5px); opacity: .6; } }
.dlg-suggest { display: flex; gap: 8px; padding: 6px 14px; overflow-x: auto; scrollbar-width: none; align-items: stretch; }
.dlg-suggest::-webkit-scrollbar { display: none; }
.dlg-suggest:empty { display: none; }
.dlg-suggest.collapsed .sg-chip { display: none; }
.sg-label { display: flex; align-items: center; gap: 4px; flex: none; font-size: 12px; font-weight: 900; color: #a87a10; }
.sg-chip { display: flex; align-items: center; gap: 4px; flex: none; max-width: 320px; padding: 4px 6px 4px 4px; border-radius: 16px; background: #fffbe9; box-shadow: inset 0 0 0 2px #f6e3a6; }
.sg-use { display: flex; flex-direction: column; align-items: flex-start; padding: 2px 6px; text-align: left; border-radius: 12px; }
.sg-use:hover { background: #fff3c4; }
.sg-use span { font-weight: 800; font-size: 13.5px; }
.sg-use small { font-size: 11.5px; color: var(--ink2); }
.no-zh .sg-use small { display: none; }
.dlg-bottom { padding: 8px 12px 12px; }
.dlg-row { display: flex; align-items: center; gap: 8px; }
.dlg-input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; outline: none; font-size: 15.5px; font-weight: 700; transition: border-color .2s, box-shadow .2s; }
.dlg-input:focus { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(103, 184, 74, .15); }
.mic { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 0 #c0452f; transition: transform .15s var(--spring), background .2s; touch-action: none; user-select: none; -webkit-user-select: none; }
.mic .ic { width: 26px; height: 26px; position: relative; z-index: 1; }
.mic-ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(239, 111, 94, .35); transform: scale(1); transition: transform .1s; z-index: 0; }
.mic.rec { background: #e0503d; transform: scale(1.08); }
.mic.rec .mic-ring { animation: none; }
.mic.busy { background: var(--ink3); box-shadow: 0 4px 0 #8c7663; }
.mic:active { transform: scale(.95); }
.send { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; box-shadow: 0 3px 0 var(--leaf-d); transition: transform .12s; }
.send:active { transform: translateY(2px) scale(.96); }
.send .ic { width: 22px; height: 22px; }
.hint-btn .ic { color: #c99a1e; }
.dlg-tip { margin-top: 6px; text-align: center; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); text-align: left; transition: transform .12s var(--ease), box-shadow .15s; }
.choice:hover { box-shadow: inset 0 0 0 2px var(--leaf), 0 3px 0 var(--leaf-d); }
.choice:active { transform: translateY(2px); }
.ch-stamp { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--acorn); }
.choice.done .ch-stamp { background: var(--leaf); color: #fff; }
.ch-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-t b { font-weight: 900; font-size: 14.5px; }
.ch-t small { color: var(--ink2); font-size: 12px; }
.ch-r { font-size: 12px; font-weight: 800; color: var(--ink2); white-space: nowrap; }
.ch-acorn { display: inline-flex; align-items: center; gap: 2px; color: var(--acorn-d); }
.ch-acorn .ic { width: 16px; height: 16px; }
.dlg-bottom .free-bar { width: 100%; margin-top: 8px; gap: 14px; padding: 12px 16px; border-radius: 18px; background: linear-gradient(135deg, #ff8a6b, #f0607a); color: #fff; box-shadow: 0 4px 0 #c8465f; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dlg-bottom .free-bar:hover { box-shadow: 0 4px 0 #b23c55; filter: brightness(1.04); }
.dlg-bottom .free-bar:active { transform: translateY(3px); box-shadow: 0 1px 0 #c8465f; }
.free-bar .fb-mic { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .25); box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); animation: fb-pulse 2.2s ease-out infinite; }
.free-bar .fb-mic .ic { width: 24px; height: 24px; }
.dlg-bottom .free-bar .ch-t b { font-size: 17px; }
.dlg-bottom .free-bar .ch-t small { font-size: 12px; color: rgba(255, 255, 255, .9); }
.fb-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 12px; font-weight: 800; white-space: nowrap; }
.fb-tag .ic { width: 14px; height: 14px; }
@keyframes fb-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .free-bar .fb-mic { animation: none; } }
.dlg-bottom .free-bar.talk { margin-top: 0; }
.free-bar .ch-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-kbd { display: flex; align-items: center; gap: 4px; flex: none; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--ink2); background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.sg-kbd .ic { width: 15px; height: 15px; }
.free-bar .mic-ring { display: none; }
.free-bar.rec { background: linear-gradient(135deg, #f0607a, #d9455f); }
.free-bar.rec .fb-mic { animation: none; background: rgba(255, 255, 255, .4); transform: scale(1.06); }
@media (max-width: 560px) { .dlg-bottom .free-bar { gap: 10px; padding: 10px 12px; } .free-bar .fb-mic { width: 40px; height: 40px; } .dlg-bottom .free-bar .ch-t b { font-size: 16px; } .fb-tag { padding: 3px 8px; font-size: 11px; } }
.choice.bye .ch-stamp { background: #e8eef6; color: #4a6a9a; }
.tracker { position: absolute; right: 16px; top: calc(16px + var(--safe-t)); width: 260px; padding: 12px 14px; border-radius: 22px; background: rgba(255, 250, 240, .96); box-shadow: var(--shadow); animation: drop2 .35s var(--spring); }
@keyframes drop2 { from { opacity: 0; transform: translateY(-14px); } }
.tr-head { display: flex; justify-content: space-between; align-items: baseline; }
.tr-head b { font-weight: 900; }
.tr-head span { font-weight: 900; color: var(--leaf-d); }
.tracker ul { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tracker li { display: grid; grid-template-columns: 22px 1fr; column-gap: 6px; font-size: 13px; font-weight: 800; align-items: start; }
.tracker li i { grid-row: span 2; width: 20px; height: 20px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; color: #fff; margin-top: 1px; }
.tracker li small { color: var(--ink3); font-size: 11px; font-weight: 700; }
.tracker li.on i { background: var(--leaf); box-shadow: none; }
.tracker li.on span { color: var(--leaf-d); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(76, 149, 51, .4); }
.tracker li.pop i { animation: bump .5s var(--spring); }
.tr-bar, .bar { height: 7px; border-radius: 9px; background: var(--line); overflow: hidden; }
.tr-bar i, .bar i { display: block; height: 100%; background: var(--leaf); border-radius: 9px; transition: width .5s var(--ease); }
.complete { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(60, 44, 30, .25); z-index: 35; animation: fadein .3s; }
@keyframes fadein { from { opacity: 0; } }
.cp-card { width: min(360px, calc(100% - 32px)); padding: 26px 22px 18px; border-radius: 30px; background: var(--paper); box-shadow: var(--shadow); text-align: center; animation: popin .45s var(--spring); border: 3px solid #fff; }
.cp-card h3 { margin: 14px 0 4px; font-size: 20px; font-weight: 900; }
.cp-card p { margin: 0; color: var(--ink2); }
.stamp { position: relative; width: 132px; height: 132px; margin: 0 auto; border-radius: 50%; border: 5px solid var(--coral); display: grid; place-items: center; transform: rotate(-12deg); animation: stamp .55s var(--spring) .1s both; background: #fff6f3; }
.stamp img { width: 88px; height: 88px; border-radius: 50%; }
.stamp span { position: absolute; bottom: 10px; padding: 1px 10px; border-radius: 6px; background: var(--coral); color: #fff; font-weight: 1000; font-size: 13px; letter-spacing: .08em; }
@keyframes stamp { from { transform: rotate(-30deg) scale(2.4); opacity: 0; } }
.cp-reward { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 4px; padding: 6px 14px; border-radius: 999px; background: var(--cream); font-weight: 900; color: var(--acorn-d); }
.cp-reward .ic { width: 22px; height: 22px; }

/* ---------- 查词 ---------- */
.lookup { position: fixed; z-index: 55; padding: 12px 14px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); border: 2px solid #fff; animation: popin .22s var(--spring); }
.lookup.above { transform: translateY(-100%); }
.lk-head { display: flex; justify-content: space-between; align-items: center; }
.lk-head b { font-size: 20px; font-weight: 900; }
.lk-ipa { color: var(--ink2); font-size: 13px; }
.lk-ipa i { color: var(--acorn); font-style: normal; font-weight: 800; }
.lk-zh { margin-top: 4px; font-weight: 800; }
.lk-ex { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: var(--cream); font-size: 13px; display: flex; flex-direction: column; }
.lk-ex small { color: var(--ink2); }
.lk-tip { display: flex; gap: 4px; margin-top: 8px; font-size: 12.5px; color: #a87a10; }

/* ---------- 跟读 ---------- */
.pr-target { margin: 6px 0; padding: 16px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); font-size: 21px; font-weight: 800; line-height: 1.6; text-align: center; }
.tok { padding: 0 2px; border-radius: 6px; }
.tok.ok { color: var(--leaf-d); }
.tok.bad { color: #c0452f; background: #ffe6e1; text-decoration: underline wavy #f0a090; text-underline-offset: 4px; }
.pr-zh { text-align: center; color: var(--ink2); margin: 0 0 4px; }
.mic-big { position: relative; width: 96px; height: 96px; border-radius: 50%; background: var(--coral); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 900; font-size: 12px; box-shadow: 0 5px 0 #c0452f; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .15s var(--spring); }
.mic-big .ic { width: 34px; height: 34px; position: relative; z-index: 1; }
.mic-big span { position: relative; z-index: 1; }
.mic-big.rec { transform: scale(1.06); background: #e0503d; }
.mic-big.busy { background: var(--ink3); box-shadow: 0 5px 0 #8c7663; }
.pr-live { text-align: center; min-height: 20px; }
.pr-result { margin-top: 8px; }
.score { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.score b { font-size: 46px; font-weight: 1000; }
.score span { font-weight: 900; }
.score.perfect b, .score.great b { color: var(--leaf-d); }
.score.good b { color: #c99a1e; }
.score.retry b { color: #c0452f; }
.tips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.tips li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.tips .chip { flex: none; }

/* ---------- 手账 ---------- */
.leafpad { display: flex; width: 100%; min-height: 0; }
.rail { flex: none; width: 92px; padding: 6px 8px 16px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; border-right: 2px dashed var(--line); }
.rail-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; border-radius: 16px; font-size: 12.5px; font-weight: 800; color: var(--ink2); transition: background .2s, color .2s; }
.rail-btn .ic { width: 24px; height: 24px; }
.rail-btn:hover { background: var(--cream); }
.rail-btn.on { background: var(--leaf-l); color: var(--leaf-d); }
.pane { flex: 1; min-width: 0; overflow-y: auto; padding: 4px 22px 24px; }
.sec { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 10px; font-size: 15px; font-weight: 900; }
.sec small { font-size: 12px; color: var(--ink2); font-weight: 700; }
.card { padding: 14px 16px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); margin-bottom: 10px; }
.scene-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scene-card { display: flex; flex-direction: column; gap: 6px; padding: 0 0 12px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); text-align: left; overflow: hidden; transition: transform .15s var(--ease); }
.scene-card:hover { transform: translateY(-2px); }
.scene-card:active { transform: translateY(1px); }
.sc-art { position: relative; height: 78px; background: linear-gradient(135deg, #f7d6a8, #e8a96b); }
.sc-mart .sc-art { background: linear-gradient(135deg, #ffe48a, #f4b23c); }
.sc-hotel .sc-art { background: linear-gradient(135deg, #bfe0ff, #6aa0dc); }
.sc-art::after { content: ""; position: absolute; left: 14px; bottom: 0; width: 64px; height: 46px; background: rgba(255, 255, 255, .85); border-radius: 10px 10px 0 0; box-shadow: 30px 8px 0 -6px rgba(255, 255, 255, .6); }
.sc-ic { position: absolute; left: 14px; bottom: 10px; z-index: 1; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sc, #c47a3f); color: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.sc-ic svg { width: 24px; height: 24px; }
.sc-isle { position: absolute; left: 62px; bottom: 12px; z-index: 1; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #2f6f9a; font-size: 11px; font-weight: 900; }
.sc-spa .sc-art { background: linear-gradient(135deg, #d4f0e0, #7fbf9a); }
.sc-cinema .sc-art { background: linear-gradient(135deg, #e3d6f3, #8a6bb0); }
.sc-visitor .sc-art { background: linear-gradient(135deg, #ffe2b8, #f2a541); }
.sc-library .sc-art { background: linear-gradient(135deg, #d2eef0, #5fa8b5); }
.sc-aquarium .sc-art { background: linear-gradient(135deg, #c8ecff, #3f9fd3); }
.sc-stamps { position: absolute; right: 10px; top: 10px; display: flex; gap: 4px; }
.sc-stamps i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.sc-stamps i.on { background: #fff; box-shadow: inset 0 0 0 4px var(--leaf); }
.sc-t, .scene-card p, .sc-who, .sc-go { margin: 0 12px; }
.sc-t b { font-size: 16px; font-weight: 900; }
.sc-t small { margin-left: 6px; color: var(--ink2); font-size: 12px; }
.scene-card p { color: var(--ink2); font-size: 12.5px; }
.sc-who { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; font-weight: 800; }
.sc-who span { display: inline-flex; align-items: center; gap: 4px; }
.sc-who img { width: 26px; height: 26px; border-radius: 50%; background: #e9f6ff; }
.sc-go { color: var(--leaf-d); font-weight: 900; font-size: 13px; }
.map-svg { border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--line); }
.map-svg svg { display: block; width: 100%; height: auto; max-height: 460px; }
.m-sea { fill: #8fd6ea; }
.m-land { fill: #a6dc7c; stroke: #f3e2b3; stroke-width: 3; }
.m-river { fill: none; stroke: #8fd6ea; stroke-width: 5; stroke-linecap: round; }
.m-path { fill: none; stroke: #ead6a6; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.m-plaza { fill: #efe6d4; }
.m-bld { cursor: pointer; }
.m-bld rect { stroke: #fff; stroke-width: 1.2; }
.m-bld text, .m-lm text, .m-npc text { font: 900 6.2px var(--font); fill: #5b4636; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 1.6px; }
.m-lm { cursor: pointer; }
.m-lm circle { fill: #fff; stroke: #b4a08a; stroke-width: .8; }
.m-lm.seen circle { fill: var(--sun); stroke: #c99a1e; }
.m-npc { cursor: pointer; }
.m-npc circle { fill: var(--coral); stroke: #fff; stroke-width: .8; }
.m-me circle { fill: var(--leaf); stroke: #fff; stroke-width: 1; }
.m-me-ring { fill: none !important; stroke: var(--leaf) !important; stroke-width: 1 !important; animation: ring 1.6s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ring { from { opacity: 1; transform: scale(.5); } to { opacity: 0; transform: scale(1.6); } }
.lm-list { display: flex; flex-wrap: wrap; gap: 8px; }
.checkin { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(135deg, #fff4d6, #ffe7b8); box-shadow: none; }
.checkin b { font-size: 16px; font-weight: 900; }
.task { display: flex; align-items: center; gap: 12px; }
.tk-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.tk-main b { grid-column: 1 / -1; font-weight: 800; }
.tk-main small { color: var(--ink2); font-weight: 800; }
.task.done { opacity: .65; }
.stamp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stamp-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.stamp-card img { width: 46px; height: 46px; border-radius: 50%; background: #e9f6ff; filter: grayscale(.6); opacity: .8; }
.stamp-card.done img { filter: none; opacity: 1; }
.stamp-card b { display: block; font-weight: 900; font-size: 14px; }
.stamp-card small { display: block; color: var(--ink2); font-size: 11.5px; }
.st-mark { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; color: #fff; }
.stamp-card.done .st-mark { background: var(--coral); border: 0; transform: rotate(-12deg); }
.wd-top { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.wd-face { width: 110px; height: 110px; border-radius: 30px; background: #e9f6ff; }
.wd-top b { font-size: 18px; font-weight: 900; }
.wd-top .btn { margin-top: 8px; }
.item-row { display: flex; gap: 8px; flex-wrap: wrap; }
.item { width: 86px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); font-size: 12px; font-weight: 800; transition: transform .15s var(--spring); }
.item img, .item .none { width: 70px; height: 70px; border-radius: 14px; background: #f3f8fc; display: grid; place-items: center; color: var(--ink3); }
.item.on { box-shadow: inset 0 0 0 3px var(--leaf); background: var(--leaf-l); }
.item:active { transform: scale(.95); }
.shop-head { display: flex; align-items: center; gap: 14px; padding-top: 6px; }
.wallet { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--cream); font-weight: 900; font-size: 20px; flex: none; }
.wallet .ic { width: 28px; height: 28px; }
.wallet span { font-size: 13px; color: var(--ink2); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.shop-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); text-align: center; }
.shop-item img { width: 96px; height: 96px; border-radius: 16px; background: #f3f8fc; }
.shop-item b { font-weight: 900; }
.shop-item small { color: var(--ink2); font-size: 11.5px; margin-bottom: 4px; }
.shop-item.owned { background: #f6fbf1; }
.nb-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.nb-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.nb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nb-t b { font-weight: 800; font-size: 15px; }
.nb-t span { color: var(--ink2); font-size: 13px; }
.nb-t small { color: var(--ink3); font-size: 11px; }
.nb-tools { display: flex; gap: 6px; flex: none; }
.empty { text-align: center; padding: 40px 10px; color: var(--ink2); }
.empty .ic { width: 48px; height: 48px; color: var(--ink3); }
.lv-card { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #fff4d6, #ffe7b8); box-shadow: none; }
.lv-big { font-size: 40px; font-weight: 1000; color: var(--acorn); }
.lv-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.lv-info small { color: var(--ink2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.stat b { font-size: 22px; font-weight: 1000; }
.stat span { font-size: 12px; color: var(--ink2); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ach { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); opacity: .6; }
.ach .ach-ic { width: 46px; height: 46px; background: var(--line); color: #fff; box-shadow: none; }
.ach .ach-ic svg { width: 28px; height: 28px; }
.ach.got { opacity: 1; }
.ach.got .ach-ic { background: var(--ab); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.ach b { font-weight: 900; }
.ach small { color: var(--ink2); font-size: 12px; }
.ach-r { font-size: 11.5px; color: var(--ink3); display: inline-flex; align-items: center; gap: 3px; }
.ach-r .ic { width: 14px; height: 14px; }
.letter { display: flex; flex-direction: column; gap: 10px; background: #fffdf3; }
.letter h3 { margin: 0; font-weight: 900; }
.rate { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; color: var(--ink2); }
.stars { display: flex; gap: 2px; }
.stars button { width: 30px; height: 30px; color: #e6c35c; }
.stars button .ic { width: 26px; height: 26px; }
.fb-hist { display: flex; flex-direction: column; }
.fb-h { display: flex; align-items: center; gap: 8px; }
.fb-h .tag { padding: 1px 9px; border-radius: 999px; background: var(--cream); font-size: 12px; font-weight: 800; }
.fb-h small { color: var(--ink3); flex: 1; }
.fb p { margin: 8px 0 0; white-space: pre-wrap; line-height: 1.5; }
.st { font-size: 12px; font-weight: 800; color: var(--ink2); }
.st-done { color: var(--leaf-d); }
.fb-reply { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--leaf-l); }
.fb-reply b { display: flex; align-items: center; gap: 4px; color: var(--leaf-d); font-size: 13px; }
.fb-reply small { color: var(--ink2); font-size: 11px; }
.settings .set-row { display: grid; grid-template-columns: 140px 1fr 56px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-weight: 800; font-size: 14px; }
.set-row small { display: block; font-size: 11.5px; color: var(--ink2); font-weight: 600; }
.set-row.col { grid-template-columns: 1fr; gap: 8px; }
.set-row.col .seg { max-width: 420px; }
.set-row.tog { grid-template-columns: 1fr auto; cursor: pointer; }
.set-row.tog input { position: absolute; opacity: 0; pointer-events: none; }
.sw { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--line); transition: background .2s; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .15); transition: transform .25s var(--spring); }
.tog input:checked + .sw { background: var(--leaf); }
.tog input:checked + .sw::after { transform: translateX(20px); }
.set-row input[type=range] { width: 100%; accent-color: var(--leaf); }
.val { text-align: right; color: var(--ink2); font-size: 13px; }
.account .acc-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; font-size: 14px; }
.account .acc-row > span { color: var(--ink2); font-weight: 800; }
.account details { margin-top: 8px; }
.account summary { cursor: pointer; font-weight: 800; color: var(--ink2); padding: 6px 0; }
.help p { margin: 0 0 6px; line-height: 1.6; font-size: 13.5px; }
.tutorial { display: flex; flex-direction: column; gap: 12px; }
.tu-step { display: grid; grid-template-columns: 26px 44px 1fr; gap: 10px; align-items: start; }
.tu-n { width: 26px; height: 26px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-weight: 1000; color: #6b4a10; margin-top: 8px; }
.tu-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--leaf-l); color: var(--leaf-d); display: grid; place-items: center; }
.tu-ic .ic { width: 24px; height: 24px; }
.tu-step b { font-weight: 900; }
.tu-step p { margin: 2px 0 0; color: var(--ink2); font-size: 13.5px; line-height: 1.55; }

/* ---------- 手机 ---------- */
@media (max-width: 720px) {
  html, body { font-size: 14px; }
  .hud-tl { left: 10px; top: calc(10px + var(--safe-t)); }
  .p-card { padding: 4px 12px 4px 4px; gap: 8px; }
  .p-face { width: 42px; height: 42px; }
  .p-name { font-size: 13.5px; max-width: 96px; }
  .xp { width: 84px; }
  .hud-tr { right: 10px; top: calc(10px + var(--safe-t)); gap: 6px; }
  .pill { height: 36px; font-size: 14px; padding: 0 11px 0 8px; }
  .clock-pill { display: none; }
  .daily-mini { padding: 5px 10px; }
  .hud-br { right: 10px; bottom: calc(12px + var(--safe-b)); gap: 8px; }
  .tr-row { gap: 6px; } /* 今日任务在橡果左边（11-24 用户），窄屏也同一行 */
  .tr-row .daily-mini { height: 36px; padding: 0 10px; font-size: 11.5px; }
  .tr-row .daily-mini i { display: none; }
  .q-row { gap: 6px; }
  .q-row .q-btn { width: 36px; height: 36px; }
  .q-row .q-btn .ic { width: 20px; height: 20px; }
  .menu-btn { width: 64px; height: 64px; border-radius: 22px; }
  .act-btn { width: 66px; height: 66px; font-size: 15px; }
  .joy { left: 116px; bottom: calc(14px + var(--safe-b)); width: 112px; height: 112px; }
  .minimap { left: 10px; bottom: calc(12px + var(--safe-b)); width: 96px; height: 96px; box-shadow: 0 0 0 3px rgba(255, 250, 240, .95), var(--shadow-s); }
  .roll-btn { right: 14px; bottom: calc(88px + var(--safe-b)); width: 56px; height: 56px; }
  .sheet-back { padding: 0; align-items: end; }
  .sheet { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; border-bottom: 0; padding-bottom: var(--safe-b); }
  .sheet.wide { height: 92vh; width: 100%; }
  .sheet-body { padding: 6px 16px 18px; }
  .leafpad { flex-direction: column; }
  .rail { flex-direction: row; width: 100%; padding: 4px 10px 8px; overflow-x: auto; border-right: 0; border-bottom: 2px dashed var(--line); scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail-btn { flex: none; width: 62px; padding: 6px 2px; font-size: 11.5px; }
  .rail-btn .ic { width: 21px; height: 21px; }
  .pane { padding: 2px 14px 24px; }
  .scene-cards { grid-template-columns: 1fr; }
  .stamp-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .settings .set-row { grid-template-columns: 96px 1fr 48px; }
  .creator { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 54vh; transform: translateY(30px); border-radius: 26px 26px 0 0; padding: 16px 16px calc(16px + var(--safe-b)); }
  .creator.in { transform: none; }
  .species-grid { grid-template-columns: repeat(8, 1fr); gap: 4px; }
  .species { padding: 3px 2px 5px; font-size: 11px; border-radius: 12px; }
  .swatch { width: 30px; height: 30px; }
  .dlg-panel { width: 100%; left: 0; transform: translateY(30px); bottom: 0; height: 74vh; border-radius: 26px 26px 0 0; border-bottom: 0; padding-bottom: var(--safe-b); }
  .dialog.in .dlg-panel { transform: none; }
  .tracker { left: 10px; right: auto; top: calc(10px + var(--safe-t)); width: min(250px, calc(100% - 20px)); padding: 10px 12px; }
  .tracker li small { display: none; }
  .choices { grid-template-columns: 1fr; }
  .b-text { font-size: 15.5px; }
  .bubble { max-width: 94%; }
  .mic { width: 52px; height: 52px; }
  .dlg-input { height: 44px; }
  .banner { top: calc(150px + var(--safe-t)); }
  .popups { top: calc(96px + var(--safe-t)); right: 10px; }
  .title-card { gap: 18px; }
}
@media (max-width: 380px) {
  .species-grid { grid-template-columns: repeat(4, 1fr); }
  .p-lv .lv-title { display: none; }
}

.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
@media (prefers-reduced-motion: reduce) {
  .ld-acorn, .logo-acorn, .nl-bang, .daily-mini i.ready { animation: none; }
}

/* ---------- 物品英文 ---------- */
.hud-tl { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.word-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255, 250, 240, .94); box-shadow: var(--shadow-s); font-weight: 800; font-size: 12.5px; color: var(--ink2); transition: background .2s, color .2s, transform .15s var(--ease); }
.word-btn b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); color: var(--acorn-d); font: 900 12px var(--font); }
.word-btn.on { background: var(--sky); color: #fff; }
.word-btn.on b { background: #fff; color: var(--sky); }
.word-btn:active { transform: scale(.95); }
.word-layer { position: absolute; inset: 0; pointer-events: none; }
.word-tag { position: absolute; left: 0; top: 0; padding: 3px 9px; border-radius: 10px; background: rgba(255, 255, 255, .93); color: #2f5f8a; font: 800 12.5px var(--font); white-space: nowrap; box-shadow: 0 2px 0 rgba(63, 111, 181, .25), 0 4px 10px rgba(0, 0, 0, .12); pointer-events: auto; cursor: pointer; transition: opacity .2s, background .15s; }
.word-tag::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: rgba(255, 255, 255, .93); }
.word-tag:hover { background: #fffbe0; color: var(--ink); z-index: 2; }
.lookup.card { border: 3px solid #cfe6f7; }
.lookup.card > .lk-zh { margin-top: 2px; }
@media (max-width: 720px) { .word-btn { height: 30px; font-size: 11.5px; } .word-tag { font-size: 11.5px; padding: 2px 7px; } }

/* ---------- 连续学习 / 每日目标 ---------- */
.streak-pill { color: var(--ink3); padding: 0 12px 0 8px; }
.streak-pill .ic { filter: grayscale(1) opacity(.55); }
.streak-pill.lit { color: #e8742a; }
.streak-pill.lit .ic { filter: none; animation: flick 1.6s ease-in-out infinite; }
@keyframes flick { 50% { transform: scale(1.12) rotate(-4deg); } }
.goal-pill { font-size: 13px; padding: 0 12px 0 6px; }
.gp-ring { width: 26px; height: 26px; }
.gp-ring svg, .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rg-bg { fill: none; stroke: var(--line); stroke-width: 3.5; }
.rg-fg { fill: none; stroke: var(--leaf); stroke-width: 3.5; stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.goal-pill.done { color: var(--leaf-d); }
.menu-btn { position: relative; }
.menu-btn .dot { display: none; }
.menu-btn.has-dot::after { content: ""; position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px #fff; }
.streak-card { border-color: #ffb36b; }
.sc-flame { width: 64px; height: 64px; margin: 0 auto; animation: flick 1.2s ease-in-out infinite; }
.sc-flame .ic { width: 100%; height: 100%; }
.streak-card .lu-big { color: #e8742a; }

/* ---------- 路线图 ---------- */
.journey { padding-top: 6px; }
.jr-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 20px; background: linear-gradient(135deg, #fff4d6, #ffe7c4); }
.jr-goal { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 200px; }
.jr-goal .ring { width: 46px; height: 46px; flex: none; }
.jr-goal b { display: block; font-weight: 900; }
.jr-goal small { color: var(--ink2); font-size: 12px; }
.jr-streak { display: flex; align-items: baseline; gap: 4px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink3); }
.jr-streak .ic { width: 22px; height: 22px; align-self: center; filter: grayscale(1) opacity(.5); }
.jr-streak.lit { color: #e8742a; }
.jr-streak.lit .ic { filter: none; }
.jr-streak b { font-size: 20px; font-weight: 1000; }
.jr-streak small { font-size: 12px; font-weight: 800; }
.jr-items { display: flex; gap: 6px; }
.jr-items span { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: #fff; font-weight: 900; font-size: 13px; }
.jr-items .ic { width: 16px; height: 16px; color: var(--sky); }
.relic-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.rb-label { font-size: 12px; font-weight: 900; color: var(--ink2); }
.relic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--c); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), 0 2px 6px rgba(0, 0, 0, .12); transform: rotate(-4deg); }
.relic .ic { width: 20px; height: 20px; }
.relic.big { width: 72px; height: 72px; border-radius: 22px; margin: 6px auto 4px; }
.relic.big .ic { width: 40px; height: 40px; }
.chapters { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.chapters::-webkit-scrollbar { display: none; }
.chap { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); font-weight: 800; font-size: 13.5px; }
.ch-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 1000; }
.ch-n .ic { width: 14px; height: 14px; }
.chap.on { box-shadow: inset 0 0 0 3px var(--c); background: #fff; }
.chap.locked { opacity: .5; }
.chap.cleared > .ic { width: 16px; height: 16px; color: var(--leaf-d); }
.card.pend { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; background: #fff6e0; box-shadow: inset 0 0 0 2px #f6d98a; }
.card.pend.active { background: #eef7ff; box-shadow: inset 0 0 0 2px #bfdcf5; }
.card.pend small { display: block; color: var(--ink2); }
.card.pend .row-end { margin: 0; }
.jmap-wrap { margin-top: 12px; border-radius: 24px; background: repeating-linear-gradient(0deg, #f6fbef 0 52px, #f0f8e6 52px 104px); box-shadow: inset 0 0 0 2px #e2efd2; overflow: hidden; }
.jmap { position: relative; margin: 0 auto; max-width: 520px; }
.jm-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.jm-lines line { stroke: #cfc3ad; stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.jm-lines line.walked { stroke: var(--leaf); stroke-dasharray: none; stroke-width: 5; }
.jm-lines line.next { stroke: #f2b33d; stroke-dasharray: 6 6; stroke-width: 4; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.jnode { position: absolute; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--c); box-shadow: inset 0 0 0 4px var(--c), 0 4px 0 rgba(0, 0, 0, .12); transition: transform .15s var(--spring); }
.jnode img { width: 46px; height: 46px; border-radius: 50%; }
.jnode .ic { width: 28px; height: 28px; }
.jnode:hover { transform: translate(-50%, -50%) scale(1.08); }
.jnode.boss { width: 76px; height: 76px; }
.jnode.boss img { width: 62px; height: 62px; }
.jnode.locked { filter: grayscale(.75); opacity: .55; }
.jnode.done { background: var(--c); color: #fff; }
.jnode.done img { opacity: .55; }
.jnode.avail::before, .jnode.active::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--c); animation: ring2 1.4s ease-out infinite; }
@keyframes ring2 { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.jnode.active { box-shadow: inset 0 0 0 4px var(--c), 0 0 0 6px rgba(246, 201, 69, .6), 0 4px 0 rgba(0, 0, 0, .12); }
.jn-check { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.jn-check .ic { width: 14px; height: 14px; }
.jn-tag { position: absolute; left: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.jn-tag .ic { width: 14px; height: 14px; }
.jm-start, .jm-end { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 900; color: var(--ink3); letter-spacing: .1em; }
.jm-start { bottom: 4px; }
.jm-end { top: 4px; }
.jdetail .jd-head { display: flex; align-items: center; gap: 12px; }
.jd-ic { width: 60px; height: 60px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fff; color: var(--c); box-shadow: inset 0 0 0 4px var(--c); }
.jd-ic img { width: 50px; height: 50px; border-radius: 50%; }
.jd-ic .ic { width: 30px; height: 30px; }
.jd-head b { font-size: 18px; font-weight: 900; }
.jd-head p { margin: 2px 0 0; color: var(--ink2); font-size: 13px; }
.jd-goals { margin: 12px 0; padding: 10px 12px 10px 28px; border-radius: 16px; background: var(--cream); font-weight: 800; font-size: 13.5px; line-height: 1.7; }
.jd-goals small { margin-left: 6px; color: var(--ink2); font-weight: 600; font-size: 11.5px; }
.jdetail .btn.block { margin-top: 12px; }
.center { text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 6px 0 4px; }
.rcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px 14px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 3px var(--line), 0 5px 0 var(--line); text-align: center; animation: cardin .45s var(--spring) both; transition: transform .18s var(--spring), box-shadow .2s; }
@keyframes cardin { from { opacity: 0; transform: translateY(30px) rotateY(80deg); } }
.rcard:hover { transform: translateY(-4px); }
.rcard:active { transform: translateY(1px); }
.rcard b { font-size: 16px; font-weight: 900; }
.rcard small { color: var(--ink2); font-size: 12px; line-height: 1.4; }
.rcard img { width: 72px; height: 72px; border-radius: 16px; background: #f3f8fc; }
.rc-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--cream); color: var(--acorn); }
.rc-ic .ic { width: 36px; height: 36px; }
.rc-rar { position: absolute; top: 8px; right: 10px; font-size: 10.5px; font-weight: 900; color: var(--ink3); }
.rcard.rare { box-shadow: inset 0 0 0 3px #a9d3f3, 0 5px 0 #a9d3f3; }
.rcard.rare .rc-ic { background: #e6f3fd; color: var(--sky); }
.rcard.rare .rc-rar { color: var(--sky); }
.rcard.epic { box-shadow: inset 0 0 0 3px #c9b6f2, 0 5px 0 #b39ce8, 0 0 22px rgba(155, 126, 222, .35); background: linear-gradient(180deg, #fff, #f7f2ff); }
.rcard.epic .rc-rar { color: #8a6ad8; }
.rcard.chosen { transform: scale(1.06); box-shadow: inset 0 0 0 4px var(--leaf), 0 5px 0 var(--leaf-d); }
.rcard:disabled:not(.chosen) { opacity: .4; transform: scale(.96); }
.picker-sheet .sheet { width: min(100%, 640px); }
.jp-dots { display: flex; gap: 8px; justify-content: center; margin: 4px 0 12px; }
.jp-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.jp-dots i.on { background: var(--leaf); }
.jp-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); margin-bottom: 8px; }
.jp-row.ok { background: #f2faea; box-shadow: inset 0 0 0 2px #cbe8b6; }
.jp-st { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line); color: #fff; }
.jp-row.ok .jp-st { background: var(--leaf); box-shadow: none; }
.jp-t { flex: 1; font-weight: 800; font-size: 14.5px; }
.jq { margin-bottom: 14px; }
.jq-q { margin: 0 0 8px; font-weight: 900; }
.jq-opts { display: flex; flex-direction: column; gap: 6px; }
.jq-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); text-align: left; transition: box-shadow .15s, background .15s; }
.jq-opt > span { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cream); font-weight: 900; font-size: 12px; }
.jq-opt b { flex: 1; font-weight: 800; }
.jq-opt.on { box-shadow: inset 0 0 0 3px var(--sky); background: #f1f8fe; }
.jq-opt.right { box-shadow: inset 0 0 0 3px var(--leaf); background: #f2faea; }
.jq-opt.wrong { box-shadow: inset 0 0 0 3px var(--coral); background: #fff0ed; }
.jq-ex { margin: 6px 0 0; font-size: 13px; color: var(--ink2); }
.jq-pass, .jq-fail { text-align: center; font-weight: 1000; font-size: 20px; margin: 10px 0; }
.jq-pass { color: var(--leaf-d); }
.jq-fail { color: #c0452f; font-size: 15px; }
.jshop .wallet { margin-bottom: 12px; }
.jshop .shop-item .relic.big { margin: 4px auto; }
.orig { margin-left: 4px; opacity: .6; font-size: 11px; }
.jshop .btn.block, .jrest .btn.block { margin-top: 12px; }
.sys.route { background: #f1ebff; color: #7a5ad0; }
.tr-route { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; padding: 1px 8px; border-radius: 999px; background: #f1ebff; color: #7a5ad0; font-size: 11px; font-weight: 900; }
.tr-route .ic { width: 13px; height: 13px; }
/* 联赛 */
.lg-head { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #e9f4ff, #f4ecff); box-shadow: none; }
.lg-ic { width: 48px; height: 48px; border-radius: 16px; background: #fff; color: #8a6ad8; display: grid; place-items: center; flex: none; }
.lg-ic .ic { width: 28px; height: 28px; }
.lg-head > div:nth-child(2) { flex: 1; }
.lg-head b { display: block; font-weight: 900; }
.lg-head small { color: var(--ink2); font-size: 12px; }
.lg-me { text-align: center; padding: 6px 12px; border-radius: 16px; background: #fff; }
.lg-me b { display: block; font-size: 20px; font-weight: 1000; color: #8a6ad8; }
.lg-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.lg-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.lg-row.me { box-shadow: inset 0 0 0 3px var(--leaf); background: #f2faea; }
.lg-rank { width: 28px; text-align: center; font-weight: 1000; color: var(--ink2); }
.lg-row.top1 .lg-rank { color: #d4a017; } .lg-row.top2 .lg-rank { color: #9aa3ad; } .lg-row.top3 .lg-rank { color: #c47a3f; }
.lg-row img, .lg-noface { width: 36px; height: 36px; border-radius: 50%; background: #e9f6ff; }
.lg-row b { flex: 1; font-weight: 800; }
.lg-xp { font-weight: 900; color: var(--leaf-d); font-size: 13px; }
@media (max-width: 720px) {
  .streak-pill, .goal-pill { height: 36px; font-size: 13px; }
  .goal-pill b { display: none; }
  .goal-pill { padding: 0 6px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .jnode { width: 50px; height: 50px; }
  .jnode img { width: 40px; height: 40px; }
}

/* ---------- 手机按钮 ---------- */
.phone-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 64px; height: 64px; border-radius: 22px; background: rgba(255, 250, 240, .96); box-shadow: var(--shadow-s); font-size: 12px; font-weight: 900; color: var(--ink2); transition: transform .15s var(--ease); }
.phone-btn:active { transform: scale(.94); }
.pb-ic { width: 28px; height: 28px; color: #4a5a7a; }
.pb-ic svg { width: 100%; height: 100%; }
.pb-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font: 900 11px/20px var(--font); font-style: normal; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 720px) { .phone-btn { width: 56px; height: 56px; border-radius: 18px; font-size: 11px; } .pb-ic { width: 24px; height: 24px; } }
/* 右下角唯一的大按钮：手机（手账已并进手机） */
.phone-btn.main { width: 76px; height: 76px; border-radius: 26px; background: var(--leaf); color: #fff; font-size: 13px; box-shadow: 0 4px 0 var(--leaf-d), 0 12px 24px rgba(40, 80, 20, .3); }
.phone-btn.main .pb-ic { width: 30px; height: 30px; }
.phone-btn.main.has-dot::after { content: ''; position: absolute; top: 6px; left: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px #fff; }
@media (max-width: 720px) { .phone-btn.main { width: 64px; height: 64px; border-radius: 22px; font-size: 12px; } .phone-btn.main .pb-ic { width: 26px; height: 26px; } }
.ph-sec { display: flex; align-items: baseline; gap: 6px; margin: 18px 4px 10px; padding-top: 12px; border-top: 1.5px dashed rgba(47, 74, 58, .25); color: #2f4a3a; }
.ph-sec b { font-size: 14px; font-weight: 1000; } .ph-sec small { font-size: 11px; font-weight: 800; opacity: .7; }

/* ---------- 故事目标 / 过场台词 ---------- */
.story-pill { position: fixed; left: 50%; top: calc(14px + var(--safe-t)); transform: translateX(-50%); z-index: 12; display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100% - 420px)); padding: 8px 10px 8px 8px; border-radius: 20px; background: rgba(255, 250, 240, .97); box-shadow: var(--shadow); border: 2px solid #ffe08a; }
.story-pill.pulse { animation: spPulse .7s var(--spring); }
@keyframes spPulse { 0% { transform: translate(-50%, -10px) scale(.94); opacity: 0; } }
.story-pill .sp-ic { width: 34px; height: 34px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fff1c4; color: #c48a10; }
.story-pill b { display: block; font-weight: 900; font-size: 14px; }
.story-pill small { display: block; color: var(--ink2); font-size: 12px; }
.story-pill.night { border-color: #b7a3e3; }
.story-pill.night .sp-ic { background: #ece6ff; color: #7a5ad0; }
.story-line { position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); transform: translateX(-50%); z-index: 25; display: flex; align-items: center; gap: 14px; width: min(640px, calc(100% - 24px)); padding: 14px 14px 14px 14px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); border: 3px solid #fff; cursor: pointer; }
.story-line.in { animation: slIn .35s var(--spring); }
@keyframes slIn { from { opacity: 0; transform: translate(-50%, 16px); } }
.sl-face { width: 66px; height: 66px; flex: none; border-radius: 50%; background: #e9f6ff; }
.sl-narr { display: grid; place-items: center; background: #fff1c4; color: #c48a10; }
.sl-narr .ic { width: 30px; height: 30px; }
.sl-body { flex: 1; min-width: 0; }
.sl-body b { display: inline-block; padding: 0 9px; border-radius: 999px; background: var(--acorn); color: #fff; font-size: 12px; font-weight: 900; }
.sl-body b:empty { display: none; }
.sl-en { margin-top: 4px; font-size: 17px; font-weight: 800; line-height: 1.45; }
.sl-zh { margin-top: 2px; font-size: 13px; color: var(--ink2); }
.sl-next { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; animation: bob 1.2s ease-in-out infinite; }
.sl-next .ic { width: 18px; height: 18px; }
.letter-paper { padding: 14px 16px; border-radius: 16px; background: repeating-linear-gradient(180deg, #fffdf3 0 30px, #f3ead6 30px 31px); box-shadow: inset 0 0 0 2px #efe2c6; }
.letter-paper p { margin: 0 0 10px; font-weight: 800; line-height: 1.5; }
.letter-paper small { display: block; color: var(--ink2); font-weight: 600; font-size: 12.5px; }
.letter-paper details { margin: 6px 0; }
.letter-paper summary { cursor: pointer; color: var(--ink2); font-size: 12.5px; }

/* ---------- 物品卡 / 事件 ---------- */
.item-card { display: flex; flex-direction: column; gap: 10px; }
.ic-head { display: flex; align-items: baseline; gap: 10px; }
.ic-head b { font-size: 26px; font-weight: 1000; }
.ic-head span { color: var(--ink2); font-weight: 800; flex: 1; }
.ic-sent { padding: 12px 14px; border-radius: 16px; background: var(--cream); font-size: 16px; font-weight: 800; line-height: 1.5; }
.ic-sent small { display: block; margin-top: 4px; color: var(--ink2); font-weight: 600; font-size: 13px; }
.ev-notice { position: fixed; left: 50%; top: calc(70px + var(--safe-t)); transform: translateX(-50%); z-index: 22; max-width: min(520px, calc(100% - 24px)); padding: 10px 16px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); font-weight: 800; line-height: 1.5; animation: drop .4s var(--spring); transition: opacity .4s; }
.ev-notice small { display: block; color: var(--ink2); font-weight: 600; font-size: 12.5px; }
.ev-notice.out { opacity: 0; }
.ev-choice .jq-opts { margin-top: 10px; }
.scramble { text-align: center; }
.sc-out { margin: 14px 0; font: 1000 30px var(--font); letter-spacing: .12em; color: var(--ink); }
.sc-out.ok { color: var(--leaf-d); }
.sc-out.bad { color: #c0452f; }
.sc-pool { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.sc-l { width: 46px; height: 46px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); font: 1000 20px var(--font); transition: transform .12s; }
.sc-l:active { transform: translateY(2px); }
.sc-l:disabled { opacity: .3; }
.chip.bad { background: #fff0ed; box-shadow: inset 0 0 0 2px #f5b3a6; color: #c0452f; }
.fw-words { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

/* ---------- 钓鱼 ---------- */
.fish-panel { position: fixed; left: 50%; bottom: calc(16px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; z-index: 20; width: min(460px, calc(100% - 24px)); padding: 12px 16px 14px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); border: 3px solid #fff; transition: transform .3s var(--ease), opacity .25s; text-align: center; }
.fish-panel.in { transform: translate(-50%, 0); opacity: 1; }
.fp-head { display: flex; justify-content: space-between; align-items: center; text-align: left; }
.fp-head b { font-weight: 900; }
.fp-status { margin: 6px 0 10px; }
.fp-status b { display: block; font-size: 16px; font-weight: 900; }
.fp-status span { color: var(--ink2); font-size: 13px; }
.fp-btn { width: 100%; height: 56px; border-radius: 999px; background: var(--sky); color: #fff; font: 900 18px var(--font); box-shadow: 0 4px 0 #3f8fc0; transition: transform .1s, background .2s; }
.fp-btn:active { transform: translateY(2px); }
.fp-btn.wait { background: #b4a08a; box-shadow: 0 4px 0 #8c7663; }
.fp-btn.bite { background: var(--coral); box-shadow: 0 4px 0 #c0452f; animation: shake .25s infinite; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.fp-btn.busy { opacity: .6; }
.fp-tip { margin-top: 8px; }
.fish-panel .fw-words { justify-content: center; margin-top: 10px; }
.fish-card .cp-card { position: relative; }
.fc-new { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 3px 14px; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 900; font-size: 13px; white-space: nowrap; }
.fc-img { width: 150px; height: 150px; margin: 0 auto; }
.fish-card h3 { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 4px 0; font-size: 26px; }
.fc-sent { margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: var(--cream); }
.fc-quiz p { margin: 6px 0; font-weight: 800; font-size: 13.5px; color: var(--ink2); }
.fc-opts { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.fish-card .btn.block { margin-top: 12px; }
.dex { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.dex-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.dex-item img { width: 74px; height: 74px; }
.dex-q { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--ink3); font: 1000 30px var(--font); }
.dex-item b { font-size: 13px; font-weight: 900; }
.dex-item small { font-size: 11px; color: var(--ink2); }
.dex-item:not(.got) { opacity: .7; }

/* ---------- 手机 ---------- */
.phone { position: fixed; right: 24px; bottom: calc(24px + var(--safe-b)); z-index: 26; width: 320px; height: min(620px, calc(100vh - 48px)); transform: translateY(40px) rotate(4deg); opacity: 0; transition: transform .35s var(--spring), opacity .25s; }
.phone.in { transform: none; opacity: 1; }
.ph-body { position: relative; display: flex; flex-direction: column; height: 100%; padding: 10px 10px 24px; border-radius: 40px; background: #2f3442; box-shadow: 0 0 0 3px #4a5064, var(--shadow); }
.ph-display { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; background: #fffaf2; }
.ph-display.home { background: linear-gradient(160deg, #bfe6ff, #c9f0cf 60%, #fff4c9); }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px 2px; color: #2f4a3a; font-size: 12px; }
.ph-status span { opacity: .6; font-size: 11px; }
.ph-batt { width: 22px; height: 11px; border-radius: 3px; border: 2px solid #2f4a3a; background: linear-gradient(90deg, #8fd16a 70%, transparent 70%); }
.ph-bar { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px; }
.ph-bar b { font-weight: 900; }
.ph-back { font-size: 26px; font-weight: 900; line-height: 1; }
.ph-screen { flex: 1; min-height: 0; overflow-y: auto; padding: 10px; }
.ph-home { position: absolute; left: 50%; bottom: 8px; width: 96px; height: 5px; margin-left: -48px; border-radius: 9px; background: #8a90a4; }
.ph-home-screen { min-height: 100%; margin: -10px; padding: 8px 12px 20px; }
.ph-clock { text-align: center; margin: 4px 0 16px; color: #2f4a3a; }
.ph-clock b { display: block; font: 1000 52px var(--font); line-height: 1; }
.ph-clock span { font-weight: 800; font-size: 13px; }
.ph-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 4px; }
.ph-app { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ph-ic { position: relative; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; color: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); transition: transform .12s var(--spring); }
.ph-app:active .ph-ic { transform: scale(.9); }
.ph-ic .ic { width: 28px; height: 28px; }
.ph-badge { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font: 900 11px/20px var(--font); font-style: normal; box-shadow: 0 0 0 2px #fff; }
.ph-app small { font-size: 12px; font-weight: 900; color: #2f4a3a; }
.ph-list { display: flex; flex-direction: column; gap: 6px; }
.ph-contact { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); text-align: left; }
.ph-contact img { width: 44px; height: 44px; border-radius: 50%; background: #e9f6ff; }
.pc-t { flex: 1; min-width: 0; }
.pc-t b { display: block; font-weight: 900; }
.pc-t small { display: block; color: var(--ink2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-contact .ph-badge { position: static; }
.ph-chat { display: flex; flex-direction: column; height: 100%; }
.ph-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; }
.ph-msg { max-width: 86%; padding: 8px 11px; border-radius: 16px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.ph-msg small { display: block; margin-top: 2px; color: var(--ink2); font-size: 11.5px; font-weight: 600; }
.ph-msg.npc { align-self: flex-start; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); border-bottom-left-radius: 5px; }
.ph-msg.me { align-self: flex-end; background: #8fd16a; color: #fff; border-bottom-right-radius: 5px; }
.ph-fix { display: flex; gap: 4px; margin-top: 5px; padding: 5px 7px; border-radius: 10px; background: rgba(255, 255, 255, .9); color: #8a6a10; font-size: 11.5px; font-weight: 700; }
.ph-fix .ic { width: 13px; height: 13px; flex: none; }
.ph-quick { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 0; }
.ph-quick .chip { font-size: 12px; padding: 6px 10px; text-align: left; }
.ph-input { display: flex; gap: 6px; padding-top: 4px; }
.ph-input input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--line); outline: none; font-weight: 700; }
.ph-input .send { width: 40px; height: 40px; }
.ph-now { margin-bottom: 10px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #ffd6dc, #ffe9b8); text-align: center; }
.ph-now small { display: block; color: var(--ink2); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ph-now b { font-size: 20px; font-weight: 1000; }
.ph-track { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; }
.ph-track > span:nth-child(2) { flex: 1; }
.ph-track b { display: block; font-weight: 900; font-size: 14px; }
.ph-track small { color: var(--ink2); font-size: 11.5px; }
.ph-track.on { box-shadow: inset 0 0 0 2.5px var(--coral); }
.ph-disc { width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle, #fff 0 18%, #3b3b48 20% 100%); color: #fff; display: grid; place-items: center; }
.ph-disc .ic { width: 0; height: 0; }
.ph-disc.spin { animation: spin 2.4s linear infinite; background: radial-gradient(circle, #fff 0 18%, var(--coral) 20% 40%, #3b3b48 42%); }
@keyframes spin { to { transform: rotate(360deg); } }
.ph-vol { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; font-weight: 800; color: var(--ink2); }
.ph-vol input { flex: 1; accent-color: var(--coral); }
@media (max-width: 720px) {
  /* 手机竖屏：也是一部完整的手机（四角圆角的机身外壳），居中拿在手里；壳里的屏幕背景铺满 */
  .phone { left: 0; right: 0; margin-inline: auto; bottom: calc(12px + var(--safe-b)); width: min(92vw, 380px); height: min(80vh, 720px); }
  .story-pill { max-width: calc(100% - 20px); top: calc(112px + var(--safe-t)); }
  .story-line { bottom: calc(12px + var(--safe-b)); padding: 10px; gap: 10px; }
  .sl-face { width: 52px; height: 52px; }
  .sl-en { font-size: 15px; }
}

/* ---------- 自言自语 / 睡觉 ---------- */
.self-bubble { position: absolute; left: 0; top: 0; max-width: 260px; padding: 8px 12px; border-radius: 16px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); font: 800 13.5px/1.4 var(--font); color: var(--ink); text-align: left; pointer-events: auto; cursor: pointer; }
.self-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #fff; }
.self-bubble small { display: block; color: var(--ink2); font-weight: 600; font-size: 11.5px; }
.self-bubble.in { animation: popin .3s var(--spring); }
.self-bubble.out { opacity: 0; transition: opacity .3s; }
/* 居民闲聊气泡（叠在名字标签上方） */
.npc-bubble { position: absolute; left: 0; top: 0; max-width: 240px; padding: 7px 11px; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .16); font: 800 13px/1.38 var(--font); color: var(--ink); text-align: left; pointer-events: auto; cursor: pointer; transition: opacity .25s, filter .25s; }
.npc-bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.npc-bubble small { display: block; margin-top: 1px; color: var(--ink2); font-weight: 600; font-size: 11.5px; }
.npc-bubble.in { animation: popin .3s var(--spring); }
.npc-bubble.dim { opacity: .55; filter: saturate(.6); }
.npc-bubble.far { opacity: .8; font-size: 12px; max-width: 200px; }
.npc-bubble.far.dim { opacity: .4; }
.npc-bubble.out { opacity: 0; }
.npc-bubble.hidden { display: none; }
/* 联机：其他玩家的名字牌和气泡 */
.npc-label.friend { background: #e8f3ff; box-shadow: 0 0 0 2px #7ec4e8, var(--shadow-s); cursor: default; }
.npc-label.friend small { padding: 0 6px; border-radius: 999px; background: #7ec4e8; color: #fff; font-size: 10.5px; font-weight: 900; }
.npc-bubble.friend { background: #f3f9ff; box-shadow: 0 0 0 2px #bfe0ff, 0 4px 14px rgba(0, 0, 0, .14); }
.npc-bubble.friend::after { border-top-color: #f3f9ff; }
.chat-heard .ch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 4px; }
.chat-heard .ch-row > span { color: var(--ink2); font-weight: 700; font-size: 13px; }
.chat-heard .ch-phrase { padding: 2px 10px; border-radius: 999px; background: #fff3c4; font: 900 14px/1.4 var(--font); color: var(--ink); }
.chat-heard .ch-row small { display: inline; }
@media (max-width: 560px) { .npc-bubble { max-width: 168px; font-size: 12px; padding: 6px 9px; } .npc-bubble small { font-size: 10.5px; } .npc-bubble.far { max-width: 150px; } }
#fade.sleep { background: #141c36; transition-duration: 1.2s; }
.story-pill.errand { top: calc(68px + var(--safe-t)); border-color: #bfe3a8; }
.story-pill.errand .sp-ic { background: var(--leaf-l); color: var(--leaf-d); }
.story-pill.night { top: calc(122px + var(--safe-t)); }
@media (max-width: 720px) { .story-pill.errand { top: calc(168px + var(--safe-t)); } .story-pill.night { top: calc(224px + var(--safe-t)); } }
/* 提醒条：文字区占满剩余宽度，窄屏不再被挤成一列竖排挡在画面中间 */
.story-pill > div { flex: 1; min-width: 0; }
@media (max-width: 720px) {
  .story-pill { width: calc(100% - 20px); }
  .story-pill b { font-size: 13px; }
  .story-pill.night small { display: none; }
  .story-pill .btn.small { padding: 6px 10px; }
}

/* ---------- 商品近景介绍卡 ---------- */
.product-panel { position: fixed; right: 20px; top: 50%; transform: translate(30px, -50%); opacity: 0; z-index: 24; width: 380px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 18px 18px 16px; border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); border: 3px solid #fff; transition: transform .35s var(--ease), opacity .25s; }
.product-panel.in { transform: translate(0, -50%); opacity: 1; }
.pp-x { position: absolute; right: 10px; top: 10px; }
/* 商品特写展台 */
.pp-stage { position: relative; height: 172px; margin: -4px -4px 10px; border-radius: 20px; background: radial-gradient(ellipse 70% 80% at 50% 38%, #ffffff 0%, #fdf6e8 55%, #f3e6cc 100%); box-shadow: inset 0 0 0 2px #f1e2c4; cursor: grab; touch-action: pan-y; overflow: hidden; }
.pp-stage:active { cursor: grabbing; }
.pp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pp-stage small { position: absolute; right: 10px; bottom: 7px; color: var(--ink3); font-size: 11px; font-weight: 700; pointer-events: none; }
.pp-stage.fail { display: none; }
.pp-head { display: flex; align-items: center; gap: 6px; padding-right: 30px; }
.pp-head b { font-size: 28px; font-weight: 1000; line-height: 1.1; }
.pp-sub { display: flex; gap: 10px; align-items: baseline; margin: 2px 0 10px; color: var(--ink2); font-weight: 800; }
.pp-ipa { font-weight: 600; color: var(--acorn); font-size: 13px; }
.pp-sec { margin-top: 10px; padding: 10px 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.pp-sec h4 { margin: 0 0 4px; font-size: 13px; font-weight: 900; color: var(--leaf-d); }
.pp-sec h4 small { margin-left: 6px; color: var(--ink3); font-weight: 700; }
.pp-en { margin: 0; font-weight: 800; line-height: 1.5; }
.pp-en.big { font-size: 17px; }
.pp-zh { margin: 2px 0 0; color: var(--ink2); font-size: 13px; }
.pp-sec.say { background: #fffbe9; box-shadow: inset 0 0 0 2px #f6e3a6; }
.row-center.left { justify-content: flex-start; margin: 8px 0 0; }
.pp-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-parts .chip small { color: var(--ink3); margin-left: 4px; }
.pp-buy { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pp-price { display: inline-flex; align-items: center; gap: 4px; font-size: 22px; font-weight: 1000; color: var(--acorn-d); }
.pp-price .ic { width: 24px; height: 24px; }
.pp-buy small { flex: 1; color: var(--ink2); font-size: 12px; }
@media (max-width: 720px) {
  .product-panel { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 58vh; transform: translateY(30px); border-radius: 26px 26px 0 0; padding-bottom: calc(16px + var(--safe-b)); }
  .product-panel.in { transform: none; }
  .pp-stage { height: 128px; margin-bottom: 8px; }
}
.sc-furniture .sc-art { background: linear-gradient(135deg, #f3e3c8, #c97a44); }

/* ---------- 自行车按钮 ---------- */
.bike-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 64px; height: 64px; border-radius: 22px; background: rgba(255, 250, 240, .96); box-shadow: var(--shadow-s); font-size: 12px; font-weight: 900; color: var(--ink2); transition: transform .15s var(--ease), background .2s; }
.bike-btn .bk-ic { width: 30px; height: 30px; color: #3f8f5f; }
.bike-btn .bk-ic svg { width: 100%; height: 100%; }
.bike-btn.on { background: #4caf7a; color: #fff; }
.bike-btn.on .bk-ic { color: #fff; }
.bike-btn:active { transform: scale(.94); }
@media (max-width: 720px) { .bike-btn { width: 56px; height: 56px; border-radius: 18px; font-size: 11px; } }

/* ---------- IsleGram ---------- */
.ig-feed { display: flex; flex-direction: column; gap: 14px; }
/* 手机笔记 */
.nt-wrap { display: flex; flex-direction: column; gap: 8px; }
.nt-top { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, #fff6dc, #ffe7b3); }
.nt-top > div { flex: 1; min-width: 0; }
.nt-top b { display: block; font-size: 16px; font-weight: 1000; }
.nt-top small { color: var(--ink2); font-size: 11.5px; font-weight: 700; }
.nt-day { display: flex; align-items: baseline; gap: 8px; margin: 8px 2px 0; }
.nt-day b { font-size: 13.5px; font-weight: 1000; color: var(--leaf-d); }
.nt-day small { color: var(--ink3); font-size: 11.5px; font-weight: 700; }
.nt-entry { display: flex; align-items: flex-start; gap: 6px; padding: 9px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.nt-text { flex: 1; min-width: 0; }
.nt-text p { margin: 0; font-weight: 800; line-height: 1.45; }
.nt-text small { display: block; color: var(--ink2); font-size: 12px; margin-top: 1px; }
.nt-n { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #eef7e8; color: var(--leaf-d); font-style: normal; font-size: 11px; font-weight: 900; }
.nt-btns { display: flex; flex-direction: column; gap: 4px; }
.nt-quiz { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.nt-q { margin: 6px 0 0; font-size: 18px; font-weight: 900; line-height: 1.45; }
.nt-qzh { color: var(--ink2); font-size: 12.5px; }
.nt-done { text-align: center; padding: 20px 0; }
.nt-done b { font-size: 34px; font-weight: 1000; color: var(--leaf-d); }
.ig-post { border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; padding-bottom: 8px; }
.ig-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.ig-head img { width: 32px; height: 32px; border-radius: 50%; background: #e9f6ff; box-shadow: 0 0 0 2px #ff7fa0; }
.ig-head b { font-weight: 900; font-size: 13.5px; }
.ig-head small { color: var(--ink3); font-size: 11px; margin-left: auto; }
.ig-pic { height: 170px; display: grid; place-items: center; }
.ig-pic img { width: 140px; height: 140px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .15)); }
.ig-pic b { font: 1000 34px var(--font); color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.ig-actions { display: flex; align-items: center; gap: 8px; padding: 6px 10px 0; }
.ig-like { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; color: var(--ink2); }
.ig-like .ic { width: 22px; height: 22px; }
.ig-like.on { color: #ff4f7b; }
.ig-like.on .ic svg path { fill: #ff4f7b; }
.ig-like.pop .ic { animation: bump .5s var(--spring); }
.ig-cap { margin: 6px 10px 0; font-size: 13.5px; line-height: 1.45; font-weight: 700; }
.ig-tag { color: #3f7fb5; }
.ig-zh { margin: 2px 10px; font-size: 12px; color: var(--ink2); }
.ig-zh summary { cursor: pointer; }
.ig-exp { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 10px 0; padding: 7px 10px; border-radius: 12px; background: #fff4f7; }
.ig-exp > span { font-size: 11px; font-weight: 900; color: #e0507a; }
.ig-exp b { cursor: pointer; text-decoration: underline dotted; }
.ig-exp small { flex: 1; color: var(--ink2); font-size: 12px; }
.ig-comments { margin: 6px 10px 0; display: flex; flex-direction: column; gap: 4px; }
.ig-c { font-size: 12.5px; line-height: 1.4; }
.ig-c b { font-weight: 900; }
.ig-choose { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 8px 10px 0; }
.ig-choose .chip { font-size: 12px; padding: 5px 9px; text-align: left; }
.ig-input { margin: 8px 10px 0; }
.ig-input input { width: 100%; height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); font: 700 12.5px var(--font); outline: none; }

/* ---------- 菜地 / 冰箱 / 厨房 ---------- */
.farm-card, .fridge, .kitchen, .cook { display: flex; flex-direction: column; gap: 10px; }
.seed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.seed { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); text-align: left; transition: transform .12s; }
.seed:active { transform: scale(.97); }
.seed:disabled { opacity: .5; }
.seed b { font-weight: 900; }
.seed small { color: var(--ink2); font-size: 11.5px; }
.seed .pp-price { font-size: 15px; }
.seed .pp-price .ic { width: 16px; height: 16px; }
.seed-dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.farm-stage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.farm-stage span { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 12px; background: var(--cream); font-weight: 900; font-size: 12.5px; color: var(--ink3); }
.farm-stage span small { font-weight: 600; font-size: 11px; }
.farm-stage span.on { background: var(--leaf-l); color: var(--leaf-d); box-shadow: inset 0 0 0 2px #bfe3a8; }
.fridge-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: #f3f8fc; box-shadow: inset 0 0 0 2px #dbe9f4; }
.fridge-row > div { flex: 1; min-width: 0; }
.fridge-row b { display: block; font-weight: 900; }
.fridge-row small { color: var(--ink2); font-size: 12px; }
.recipes { display: flex; flex-direction: column; gap: 6px; }
.recipe { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.recipe.ready { box-shadow: inset 0 0 0 2px #bfe3a8; }
.recipe b { font-weight: 900; display: inline-flex; gap: 4px; align-items: center; }
.recipe small { display: block; color: var(--ink2); font-size: 12px; }
.recipe .ingr { grid-column: 1; display: flex; gap: 4px; flex-wrap: wrap; }
.recipe .ingr span { padding: 1px 8px; border-radius: 999px; background: var(--cream); font-size: 11.5px; font-weight: 800; color: var(--ink3); }
.recipe .ingr span.on { background: var(--leaf-l); color: var(--leaf-d); }
.recipe .btn { grid-column: 2; grid-row: 1 / span 2; }
.cook-step { margin: 0; font-weight: 900; color: var(--acorn); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.cook-sent { margin: 0; font-size: 20px; font-weight: 900; }
.cook-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cook-opts .jq-opt { justify-content: center; }
.dish { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #fff4d6, #ffe7b8); }
.dish b { font-size: 20px; font-weight: 1000; }
.dish span { color: var(--ink2); font-size: 13px; }

/* 打工当店员：左上角的点单小票 */
.shift-card { position: fixed; left: 14px; top: calc(14px + var(--safe-t)); z-index: 26; width: 250px; padding: 12px 14px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); border: 3px solid #fff; animation: drop .4s var(--spring); }
.shift-card .sc-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.shift-card .sc-top b { font-weight: 1000; font-size: 15px; }
.shift-card .sc-top span { color: var(--ink2); font-size: 12px; font-weight: 800; }
.sc-order { padding: 8px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.sc-order small { display: block; margin-bottom: 4px; font-family: var(--font); color: var(--ink2); font-weight: 800; }
.sc-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; line-height: 1.6; }
.sc-row.sum { margin-top: 4px; padding-top: 4px; border-top: 2px dashed var(--line); font-size: 14px; }
.sc-row.paid b { color: var(--leaf-d); }
.sc-goals { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; }
.sc-goals li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--ink2); }
.sc-goals li .ic { width: 15px; height: 15px; color: var(--ink3); }
.sc-goals li.on { color: var(--leaf-d); }
.sc-goals li.on .ic { color: var(--leaf); }
.sc-btns { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.shift-intro ol { margin: 6px 0 8px; padding-left: 20px; font-weight: 800; line-height: 1.7; }
.shift-sum { text-align: center; }
.shift-sum .ss-big b { font-size: 44px; font-weight: 1000; color: var(--leaf-d); margin-right: 6px; }
.shift-sum .ss-big span { font-weight: 900; }
.shift-sum .ss-pay { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 1000; color: var(--acorn-d); }
.shift-sum .ic-sent { text-align: left; margin-top: 10px; }
@media (max-width: 720px) {
  .shift-card { left: 8px; right: 8px; width: auto; top: calc(8px + var(--safe-t)); padding: 8px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .shift-card .sc-top, .shift-card .sc-btns { grid-column: 1 / -1; margin: 0; }
  .shift-card .sc-goals { margin: 0; }
  .sc-row { font-size: 12px; line-height: 1.45; }
  .sc-goals li { font-size: 11.5px; }
}

/* 好感度：名字牌心形、生日、送礼、居民 App */
.npc-label .nl-heart { margin-left: 2px; padding: 0 5px; border-radius: 999px; background: #ffe3ea; color: #e0457b; font-size: 11px; font-weight: 1000; }
.npc-label .nl-heart.hidden { display: none; }
.npc-label.bday { box-shadow: 0 0 0 2px #ffcf3f, var(--shadow-s); }
.npc-label.bday::after { content: "生日"; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #ffcf3f; color: #6b4a00; font-size: 10.5px; font-weight: 1000; }
.choice.extra.bday { background: #fff6d6; }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.gift-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); text-align: left; transition: transform .15s var(--spring), box-shadow .15s; }
.gift-item:active { transform: scale(.96); }
.gift-item b { font-weight: 900; }
.gift-item small { color: var(--ink2); font-size: 12px; }
.gift-item i { font-style: normal; font-size: 11px; font-weight: 900; color: var(--ink3); }
.gift-item.love { box-shadow: inset 0 0 0 2px #ff9fbd; } .gift-item.love i { color: #e0457b; }
.gift-item.meh { opacity: .75; }
.nb-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.nb-row { display: flex; gap: 10px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.nb-row.bday { box-shadow: inset 0 0 0 2px #ffcf3f; background: #fffbea; }
.nb-row img { width: 46px; height: 46px; border-radius: 14px; background: #f3ecdf; flex: none; }
.nb-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.nb-name { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.nb-name b { font-weight: 1000; }
.nb-hearts { color: #e0457b; letter-spacing: 1px; font-size: 12px; } .nb-hearts i { font-style: normal; color: #ead7dd; }
.nb-name small { color: var(--ink3); font-size: 11px; font-weight: 800; }
.nb-bar { height: 6px; border-radius: 999px; background: #f3e8ec; overflow: hidden; } .nb-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9fbd, #e0457b); }
.nb-act { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--leaf-d); flex-wrap: wrap; } .nb-act .ic { width: 13px; height: 13px; } .nb-act small { color: var(--ink3); font-weight: 700; }
.nb-info { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--ink2); font-weight: 700; }

/* 摩天轮：俯瞰时的地标单词卡 */
.ride-card { position: fixed; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); z-index: 24; width: min(560px, calc(100% - 24px)); padding: 12px 14px; border-radius: 22px; background: rgba(255, 250, 240, .95); box-shadow: var(--shadow); animation: drop .4s var(--spring); }
.ride-card b { font-weight: 1000; } .ride-card > small { display: block; color: var(--ink2); font-size: 12px; margin: 2px 0 6px; }
/* 小屋窗外：木窗框 + 窗帘 + 说明卡 */
.window-view { position: fixed; inset: 0; z-index: 22; pointer-events: none; opacity: 0; transition: opacity .35s; }
.window-view.in { opacity: 1; }
.wv-frame { position: absolute; inset: 0; border: clamp(18px, 4vw, 42px) solid #8b5a3c; border-radius: 6px; box-shadow: inset 0 0 0 6px #6b4423, inset 0 0 60px rgba(0, 0, 0, .25); }
.wv-bar { position: absolute; background: #8b5a3c; box-shadow: 0 0 0 3px #6b4423; }
.wv-bar.v { left: 50%; top: 0; bottom: 0; width: 12px; margin-left: -6px; }
.wv-bar.hz { top: 46%; left: 0; right: 0; height: 12px; }
.wv-curtain { position: absolute; top: 0; bottom: 0; width: 15%; background: repeating-linear-gradient(90deg, #f7c6c6 0 14px, #f2b3b3 14px 28px); opacity: .95; }
.wv-curtain.l { left: 0; border-radius: 0 0 60% 0; } .wv-curtain.r { right: 0; border-radius: 0 0 0 60%; }
.wv-card { position: absolute; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translateX(-50%); width: min(520px, calc(100% - 60px)); padding: 12px 14px; border-radius: 20px; background: rgba(255, 250, 240, .96); box-shadow: var(--shadow); pointer-events: auto; display: grid; gap: 8px; }
@media (max-width: 720px) { .wv-curtain { width: 10%; } .wv-card { width: calc(100% - 40px); } }

/* 水边钓鱼提示卡 */
.shore-fish { position: fixed; left: 50%; bottom: calc(120px + var(--safe-b)); transform: translateX(-50%); z-index: 21; width: min(420px, calc(100% - 24px)); padding: 12px 14px; border-radius: 20px; background: rgba(255, 250, 240, .97); box-shadow: var(--shadow); border: 2px solid #bfe3f5; display: grid; gap: 8px; animation: drop .4s var(--spring); }
.shore-fish .sf-t b { display: block; font-weight: 1000; } .shore-fish .sf-t small { color: var(--ink2); font-size: 12px; }
.clock-notice .cn-en { display: block; font-size: 17px; font-weight: 1000; color: var(--acorn-d); }
.ach .ach-zh { display: block; font-style: normal; font-weight: 800; font-size: 12px; color: var(--ink2); }
.ach .ach-quip { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink3); line-height: 1.4; }
.ach:not(.got) .ach-quip { filter: blur(3px); opacity: .6; }
.ach-toast .ach-k { display: block; font-size: 11px; font-weight: 900; color: var(--acorn); letter-spacing: .5px; }

/* ===== 手感：按压回弹、悬停、答对/答错、进度条、切换 ===== */
.btn, .mini, .chip, .choice, .jq-opt, .gift-item, .seed, .recipe .btn, .sg-use, .ph-app .ph-ic, .nb-row, .fridge-row .btn { transition: transform .22s var(--spring), box-shadow .18s var(--ease), background .2s, filter .2s; will-change: transform; }
.btn:active, .jq-opt:active, .seed:active, .sg-use:active { transform: translateY(2px) scale(.96); filter: brightness(.97); }
.mini:active, .chip:active, .icon-btn:active { transform: scale(.9); }
@media (hover: hover) {
  .btn:hover:not(:disabled), .jq-opt:hover:not(:disabled), .chip:hover, .gift-item:hover, .seed:hover:not(:disabled) { transform: translateY(-1px); }
  .btn.primary:hover:not(:disabled) { filter: brightness(1.05); }
}
:is(.btn, .mini, .chip, .jq-opt, .choice, .icon-btn):focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.jq-opt.right { animation: okpop .45s var(--spring); }
.jq-opt.wrong { animation: shake .4s var(--ease); }
@keyframes okpop { 40% { transform: scale(1.04); } }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.bar i, .nb-bar i, .fp-bar i { transition: width .7s var(--spring); }
.sheet-body > *, .ph-screen > * { animation: rise .28s var(--ease) both; }
.pill.bump, .pills .pill.bump { animation: bump .5s var(--spring); }
/* 奖励橡果飞进右上角的橡果计数 */
.fly-acorn { position: fixed; left: 0; top: 0; z-index: 60; width: 22px; height: 22px; pointer-events: none; transition: transform .75s cubic-bezier(.5, -0.3, .6, 1), opacity .2s .65s; }
.fly-acorn .ic { width: 22px; height: 22px; }
.popup { transform-origin: right center; }
.popup .pp-x { color: var(--sky-d, #2f80b7); }

/* ===== 新场景玩法 ===== */
.lift-btns { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.lift-btn.roof { background: #24415f; color: #9fe0ff; box-shadow: inset 0 0 0 2px #3f8fd2; }
/* 天气小卡 */
.wx-chip { display: flex; align-items: center; gap: 6px; margin-top: 6px; margin-left: auto; padding: 5px 10px 5px 7px; border-radius: 999px; background: rgba(255,250,240,.92); box-shadow: 0 2px 8px rgba(60,40,20,.14); color: #5b4636; font-weight: 800; transition: transform .2s var(--spring); }
.wx-chip:active { transform: scale(.94); }
.wx-chip b { font-size: 12.5px; text-transform: capitalize; } .wx-chip small { font-size: 10.5px; color: #8c7663; }
.wx-ic { display: inline-flex; width: 20px; height: 20px; } .wx-ic svg { width: 100%; height: 100%; }
.wx-sunny .wx-ic { color: #f0a020; } .wx-cloudy .wx-ic { color: #8a98a8; } .wx-rainy .wx-ic { color: #3f8fd2; } .wx-snowy .wx-ic { color: #7ab8e0; } .wx-foggy .wx-ic { color: #9aa4ae; }
.wx-card { display: flex; flex-direction: column; gap: 10px; }
.wx-big { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, #fff6df, #eaf6ff); }
.wx-big .wx-ic { width: 44px; height: 44px; } .wx-big b { display: block; font-size: 18px; text-transform: capitalize; } .wx-big small { color: #8c7663; }
.wx-eff { padding: 8px 12px; border-radius: 12px; background: #eef8ee; color: #3f7a4f; font-weight: 700; font-size: 13px; }
@media (max-width: 600px) { .wx-chip small { display: none; } .wx-chip { padding: 4px 9px 4px 6px; } }
/* 本周活动卡 */
.fest-card { border: 2px dashed #f2b33d; background: #fffaf0; display: flex; flex-direction: column; gap: 4px; }
.fest-card.done { border-color: #8fd16a; }
.fest-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; } .fest-head small { color: #8c7663; }
.fest-st { margin-left: auto; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #f2b33d; color: #fff; }
.fest-card.done .fest-st { background: #67b84a; }
/* 复习 App */
.rv-home { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.rv-today { padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #e9f5ff, #fff6e6); display: flex; flex-direction: column; gap: 8px; }
.rv-today.done { background: linear-gradient(135deg, #eaf8e6, #fff9ec); }
.rv-today b { font-size: 17px; }
.rv-week { padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px #efe4d2; display: flex; flex-direction: column; gap: 8px; }
.rv-week h4 { margin: 0; font-size: 14px; }
.rv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rv-stat { display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border-radius: 12px; background: #faf5ec; }
.rv-stat b { font-size: 20px; color: #3f8fd2; } .rv-stat small { font-size: 10.5px; color: #8c7663; text-align: center; }
.rv-bar { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 6px; font-size: 12.5px; }
.rv-bar i { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #f2a93b, #ef6f5e); }
.rv-ex { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 12px; background: #fff6f0; font-size: 13px; }
.rv-ex s { color: #b07060; } .rv-ex b { color: #2f7a5a; } .rv-ex small { color: #8c7663; }
.rv-q { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.rv-src { color: #8c7663; font-weight: 700; }
.rv-load { padding: 30px 0; text-align: center; color: #8c7663; }
.photo-flash { position: fixed; inset: 0; background: #fff; z-index: 60; pointer-events: none; animation: photoFlash .45s ease-out forwards; }
@keyframes photoFlash { from { opacity: .95; } to { opacity: 0; } }
.lift-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 16px; background: #2b2d33; color: #ffd36b; box-shadow: inset 0 0 0 2px #4a4e57; transition: transform .2s var(--spring); }
.lift-btn b { font-size: 22px; font-weight: 1000; } .lift-btn small { font-size: 10.5px; color: #e6e9ee; font-weight: 800; }
.lift-btn:active { transform: scale(.92); background: #3a3d44; }
.sauna-glow { position: fixed; inset: 0; z-index: 15; pointer-events: none; background: radial-gradient(ellipse at center, rgba(255, 170, 90, 0) 30%, rgba(255, 120, 60, .45) 100%); opacity: 0; transition: opacity .6s; }
.sauna-glow.in { opacity: 1; animation: saunaPulse 2.4s ease-in-out infinite; }
@keyframes saunaPulse { 50% { filter: brightness(1.15); } }
.arcade { display: grid; gap: 10px; }
.arc-top { display: flex; justify-content: space-between; font-weight: 900; color: var(--ink2); }
.arc-top b { color: #8a5cc2; }
.arc-bar { height: 8px; border-radius: 999px; background: #eee3f7; overflow: hidden; } .arc-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff6b9a, #ffd23f); transition: width .1s linear; }
.arc-word { text-align: center; font-size: 34px; font-weight: 1000; color: #3a3560; padding: 10px 0; }
.arc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.arc-done { text-align: center; } .arc-done b { font-size: 44px; font-weight: 1000; color: #8a5cc2; }
.movie-sub { position: fixed; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translateX(-50%); z-index: 24; width: min(760px, calc(100% - 24px)); padding: 10px 16px; border-radius: 14px; background: rgba(10, 8, 14, .78); color: #fff; text-align: center; }
.movie-sub b { display: block; font-size: 18px; font-weight: 900; line-height: 1.4; } .movie-sub small { color: #d6cde6; font-size: 13px; }
.movie-pick { display: grid; gap: 10px; }
.movie-card { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 16px; border-radius: 18px; color: #fff; text-align: left; box-shadow: var(--shadow-s); transition: transform .2s var(--spring); }
.movie-card b { font-size: 20px; font-weight: 1000; } .movie-card small { opacity: .9; font-weight: 800; }
.movie-card:active { transform: scale(.97); }
.sail-overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; align-content: center; gap: 18px; background: linear-gradient(#9fd8f2, #3f9fd8); opacity: 0; transition: opacity .5s; color: #fff; font-size: 20px; font-weight: 1000; text-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.sail-overlay.in { opacity: 1; }
.sail-sea { position: relative; width: min(420px, 80vw); height: 90px; border-radius: 18px; overflow: hidden; background: repeating-linear-gradient(90deg, #3f9fd8 0 30px, #4aaee6 30px 60px); animation: seaMove 1.2s linear infinite; }
@keyframes seaMove { to { background-position: 60px 0; } }
.sail-boat { position: absolute; left: -60px; top: 22px; width: 70px; height: 36px; border-radius: 6px 6px 22px 22px; background: #fff; box-shadow: inset 0 -10px 0 #2c4a7c; animation: boatGo 3.4s ease-in-out forwards; }
.sail-boat::before { content: ""; position: absolute; left: 22px; top: -16px; width: 26px; height: 18px; border-radius: 4px; background: #ef6f5e; }
@keyframes boatGo { to { left: calc(100% + 10px); } }
.story-read, .mail-list { display: grid; gap: 8px; }
.balcony-card { position: fixed; z-index: 23; }

/* ---------- 弹出卡片的关闭叉（所有浮动卡片都能叉掉） ---------- */
.card-x { position: absolute; top: 7px; right: 7px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: rgba(60, 44, 30, .07); color: var(--ink2); transition: background .15s, transform .15s var(--ease); }
.card-x:hover { background: rgba(60, 44, 30, .14); }
.card-x:active { transform: scale(.88); }
.card-x .ic { width: 15px; height: 15px; }
.levelup .card-x { pointer-events: auto !important; }
.lu-card, .cp-card { position: relative; }
.ev-notice.has-x, .story-pill.has-x, .ach-toast.has-x { padding-right: 44px; }
.shore-fish.has-x .sf-t, .ride-card > b, .wv-card.has-x > .ic-sent, .shift-card.has-x .sc-top, .lookup.has-x .lk-head { padding-right: 30px; }
.toast.has-x { position: relative; padding-right: 40px; pointer-events: auto; }
.toast .card-x { top: 50%; right: 6px; width: 24px; height: 24px; transform: translateY(-50%); }
.toast .card-x:active { transform: translateY(-50%) scale(.88); }

/* 说出选项（voicepick.js） */
.vp-bar { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; padding: 6px 10px 6px 6px; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 2px var(--line); }
.vp-bar.vp-done { display: none; }
.vp-mic { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; box-shadow: 0 3px 0 #c0452f; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .15s var(--spring); }
.vp-mic .ic { width: 20px; height: 20px; position: relative; z-index: 1; }
.vp-mic .mic-ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(255,255,255,.28); transition: transform .1s; }
.vp-mic.rec { transform: scale(1.08); background: #e0503d; }
.vp-mic.busy { background: var(--ink3); box-shadow: 0 3px 0 #8c7663; }
.vp-mic:active { transform: translateY(2px); box-shadow: 0 1px 0 #c0452f; }
.vp-live { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink2); line-height: 1.35; }
.choices + .vp-bar, .gift-grid + .vp-bar { margin-top: 10px; }
.vp-hit { animation: vpHit .38s ease; box-shadow: inset 0 0 0 3px var(--sky, #5aa9e6) !important; }
@keyframes vpHit { 0% { transform: scale(1); } 45% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* 选项三档：最佳 / 能用但不够好 / 不合适 */
.jq-opt.okay { box-shadow: inset 0 0 0 3px #f2b134; background: #fff8e6; }
.jq-ex.tier0, .jq-ex.tier1, .jq-ex.tier2 { margin-top: 8px; padding: 9px 11px; border-radius: 12px; background: #f7f3ea; color: var(--ink); }
.jq-ex.tier1 { background: #fff6df; }
.jq-ex.tier2 { background: #eef8e6; }
.jq-ex b { display: block; margin-bottom: 2px; }
.jq-ex p { margin: 2px 0 0; font-size: 13px; color: var(--ink2); }
.jq-ex .jq-best b { display: inline; color: var(--ink); }
.jq-ex.tier-ai { margin-top: 8px; padding: 9px 11px; border-radius: 12px; background: #f3f0ea; }
.jq-ex.tier-ai.loading b { color: var(--ink2); font-weight: 700; animation: aiFade 1.2s ease-in-out infinite; }
@keyframes aiFade { 50% { opacity: .4; } }
.jq-ex.tier-ai.tier1 { background: #fff6df; }
.jq-ex.tier-ai.tier0 { background: #fdeeea; }

/* 对话框选项收窄：三列、矮一点，选项区最多占一部分高度（可滚动），给上面的主文本留位置 */
.dlg-log { min-height: 96px; }
.dlg-bottom .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: 172px; overflow-y: auto; padding: 2px 2px 4px; }
.dlg-bottom .choice { padding: 6px 9px; gap: 7px; border-radius: 14px; }
.dlg-bottom .ch-stamp { width: 26px; height: 26px; }
.dlg-bottom .ch-stamp .ic { width: 15px; height: 15px; }
.dlg-bottom .ch-t b { font-size: 14px; line-height: 1.2; }
.dlg-bottom .ch-t small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dlg-bottom .ch-t { min-width: 0; }
.dlg-bottom .ch-r { font-size: 11.5px; }
.dlg-bottom .choices + .vp-bar { margin-top: 6px; padding: 3px 8px 3px 4px; }
.dlg-bottom .choices + .vp-bar .vp-mic { width: 32px; height: 32px; }
.dlg-bottom .choices + .vp-bar .vp-live { font-size: 12px; }
@media (max-width: 560px) { .dlg-bottom .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 150px; } }

/* 右下角手机：小手机外形 */
.phone-btn.main { width: 62px; height: 104px; padding: 0; border-radius: 16px; background: none; box-shadow: none; transform: rotate(-6deg); transition: transform .2s var(--spring); }
.phone-btn.main:hover { transform: rotate(-2deg) translateY(-4px); }
.phone-btn.main:active { transform: rotate(-2deg) scale(.94); }
.pb-body { position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(145deg, #3b3f4d, #23252e); box-shadow: 0 0 0 2px #575c6c inset, 0 5px 0 #15161b, 0 12px 22px rgba(20, 20, 30, .35); padding: 7px 5px 9px; display: flex; }
.pb-notch { position: absolute; top: 4px; left: 50%; width: 18px; height: 4px; margin-left: -9px; border-radius: 4px; background: #15161b; z-index: 2; }
.pb-screen { position: relative; flex: 1; border-radius: 10px; overflow: hidden; background: linear-gradient(170deg, #9fdcf7 0%, #c9efc0 60%, #ffe3a8 100%); display: flex; flex-direction: column; align-items: center; padding: 6px 4px 4px; gap: 4px; }
.pb-time { font-size: 11px; font-weight: 1000; color: #2c3e50; letter-spacing: .02em; line-height: 1; margin-top: 2px; min-height: 11px; }
.pb-apps { display: grid; grid-template-columns: repeat(3, 10px); gap: 4px; margin-top: 2px; }
.pb-apps i { width: 10px; height: 10px; border-radius: 3px; box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.pb-screen small { margin-top: auto; font-size: 10px; font-weight: 900; color: #2c3e50; opacity: .8; }
.pb-bar { position: absolute; bottom: 4px; left: 50%; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: #8e93a3; }
.phone-btn.main .pb-badge { top: -6px; right: -8px; z-index: 3; }
.phone-btn.main.has-dot::after { top: -3px; left: -3px; z-index: 3; }
@media (max-width: 720px) { .phone-btn.main { width: 54px; height: 90px; } .pb-apps { grid-template-columns: repeat(3, 8px); gap: 3px; } .pb-apps i { width: 8px; height: 8px; } }

/* 左上角「物品英文」：开关样式 */
.word-btn { gap: 8px; padding: 0 6px 0 12px; }
.word-btn.on { background: rgba(255, 250, 240, .94); color: var(--ink); }
.wb-track { position: relative; display: inline-block; width: 36px; height: 20px; border-radius: 999px; background: #d8cfc2; box-shadow: inset 0 1px 2px rgba(0,0,0,.15); transition: background .2s; }
.wb-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .22s var(--spring); }
.word-btn.on .wb-track { background: var(--leaf); }
.word-btn.on .wb-knob { transform: translateX(16px); }
@media (max-width: 720px) { .wb-track { width: 32px; height: 18px; } .wb-knob { width: 14px; height: 14px; } .word-btn.on .wb-knob { transform: translateX(14px); } }

/* 餐车菜单 */
.truck-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.truck-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); text-align: center; }
.truck-item b { font-weight: 900; font-size: 13.5px; text-transform: capitalize; }
.truck-item small { color: var(--ink2); font-size: 12px; }
.truck-item i { font-style: normal; font-weight: 900; color: var(--acorn-d); font-size: 12px; }
.truck-item:disabled { opacity: .45; }
.truck-pic { width: 100%; max-width: 92px; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: radial-gradient(ellipse 70% 70% at 50% 45%, #ffffff 0%, #fdf6e8 60%, #f3e6cc 100%); margin-bottom: 4px; }
.truck-pick { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; background: #fff6e6; margin-bottom: 8px; }
.truck-pick .pp-stage { width: 104px; height: 104px; margin: 0; flex-shrink: 0; border-radius: 14px; }
.truck-pick .pp-stage small { display: none; }
.truck-pick b { display: block; font-weight: 900; font-size: 16px; text-transform: capitalize; }
.truck-pick small { color: var(--ink2); font-size: 13px; }
/* 按钮下方的键盘提示（触屏设备不显示） */
.bike-btn .key-tip { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); min-width: 20px; height: 18px; padding: 0 5px; border-radius: 5px; background: rgba(255, 250, 240, .95); box-shadow: 0 2px 0 rgba(60, 40, 20, .25); color: var(--ink); font: 900 11px/18px var(--font); text-align: center; }
.bike-btn .key-tip::before { content: '['; } .bike-btn .key-tip::after { content: ']'; }
@media (pointer: coarse) { .bike-btn .key-tip { display: none; } }
@media (pointer: fine) { .hud-br .bike-btn { margin-bottom: 22px; } }
/* 手机只保留右上角带数字的角标，左边的小红点去掉；跳跃按钮挪到手机上方不重叠 */
.phone-btn.main.has-dot::after { display: none; }
.roll-btn { bottom: calc(132px + var(--safe-b)); }
@media (max-width: 720px) { .roll-btn { bottom: calc(118px + var(--safe-b)); } }

/* 小馆菜单 */
.dine-menu { display: flex; flex-direction: column; gap: 6px; }
.dm-row { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 9px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); text-align: left; }
.dm-row b { font-weight: 900; font-size: 14px; } .dm-row small { grid-row: 2; color: var(--ink2); font-size: 12px; }
.dm-row i { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-weight: 900; color: var(--acorn-d); }
.dm-row i::after { content: ' 橡果'; font-size: 11px; font-weight: 700; color: var(--ink2); }
.dm-row:disabled { opacity: .45; }
.dm-row.has-pic { grid-template-columns: 52px 1fr auto; }
.dm-row.has-pic .dm-pic { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 12px; background: #fbf6ec; object-fit: contain; }
.dm-row.has-pic b, .dm-row.has-pic small { grid-column: 2; }
.dm-row.has-pic i { grid-column: 3; }
.toast-act { margin-left: 6px; padding: 5px 12px; border-radius: 999px; background: var(--leaf); color: #fff; font-weight: 900; font-size: 12.5px; white-space: nowrap; box-shadow: 0 2px 0 var(--leaf-d); }
.toast-act:active { transform: translateY(1px); box-shadow: none; }
.toast.has-act { pointer-events: auto; }
.gift-item-card .pp-stage { height: 170px; margin: -4px 0 4px; }
/* “可以这样说”提示行和底部输入区不被压扁（文字不出框）；空间不够时让上面的对话记录区滚动 */
.dlg-suggest, .dlg-bottom, .dlg-head { flex-shrink: 0; }
.dlg-log { min-height: 120px; }
.sg-chip { min-height: 0; align-self: center; }
.sg-use { justify-content: center; line-height: 1.25; }

/* ---- 11-24 按住说话（自行车/手机上方）---- */
.talk-btn { position: absolute; right: 0; bottom: calc(100% + 16px); display: flex; white-space: nowrap; align-items: center; gap: 8px; height: 56px; padding: 0 20px 0 14px; border-radius: 28px; background: #ff8a5c; color: #fff; font: 900 15px/1 var(--font); box-shadow: 0 4px 0 #d9663c, 0 10px 22px rgba(0, 0, 0, .18); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .15s var(--ease), background .2s; }
.talk-btn .tb-ic { width: 26px; height: 26px; flex: none; }
.talk-btn .tb-ic svg { width: 100%; height: 100%; display: block; }
.talk-btn:active { transform: translateY(2px) scale(.97); }
.talk-btn.rec { background: #e8504a; box-shadow: 0 4px 0 #b8322d, 0 0 0 0 rgba(232, 80, 74, .5); animation: talk-rec 1.2s ease-out infinite; }
@keyframes talk-rec { 0% { box-shadow: 0 4px 0 #b8322d, 0 0 0 0 rgba(232, 80, 74, .55); } 100% { box-shadow: 0 4px 0 #b8322d, 0 0 0 16px rgba(232, 80, 74, 0); } }
@media (pointer: coarse) { .talk-btn { right: 78px; } }
@media (max-width: 720px) { .talk-btn { height: 50px; padding: 0 16px 0 12px; font-size: 14px; bottom: calc(100% + 34px); } .talk-btn .tb-ic { width: 22px; height: 22px; } }
@media (max-width: 720px) and (pointer: coarse) { .talk-btn { right: 70px; } }
.npc-bubble.thinking { padding: 5px 9px; }
.npc-bubble.thinking .think-ic img { width: 40px; height: 40px; }

/* ---- 11-24 钓鱼图标（水边出现，替换原来的消息卡）---- */
.fish-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 64px; height: 64px; border-radius: 50%; background: #3fa7d6; color: #fff; font-size: 12px; font-weight: 900; box-shadow: 0 4px 0 #2a7fa6, 0 10px 22px rgba(0, 0, 0, .18); animation: fish-bob 1.6s ease-in-out infinite; }
.fish-btn .fb-ic { width: 30px; height: 30px; }
.fish-btn .fb-ic svg { width: 100%; height: 100%; display: block; }
.fish-btn.pop { animation: popin .35s var(--spring), fish-bob 1.6s ease-in-out .35s infinite; }
.fish-btn:active { transform: scale(.94); }
.fish-btn .key-tip { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); min-width: 20px; height: 18px; padding: 0 5px; border-radius: 5px; background: rgba(255, 250, 240, .95); box-shadow: 0 2px 0 rgba(60, 40, 20, .25); color: var(--ink); font: 900 11px/18px var(--font); text-align: center; }
.fish-btn .key-tip::before { content: '['; } .fish-btn .key-tip::after { content: ']'; }
@keyframes fish-bob { 50% { transform: translateY(-4px); } }
@media (pointer: coarse) { .fish-btn .key-tip { display: none; } }
@media (pointer: fine) { .hud-br .fish-btn { margin-bottom: 22px; } }
@media (max-width: 720px) { .fish-btn { width: 56px; height: 56px; font-size: 11px; } .fish-btn .fb-ic { width: 26px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .fish-btn, .fish-btn.pop, .talk-btn.rec { animation: none; } }
.task-seg { margin-bottom: 12px; }
.task-seg button { position: relative; }
.task-seg .seg-dot { position: absolute; top: 6px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #ef5a4c; }
.talk-btn .tb-key { min-width: 20px; height: 18px; padding: 0 5px; border-radius: 5px; background: rgba(255, 255, 255, .25); color: #fff; font: 900 11px/18px var(--font); text-align: center; }
.talk-btn .tb-key::before { content: '['; } .talk-btn .tb-key::after { content: ']'; }
@media (pointer: coarse) { .talk-btn .tb-key { display: none; } }

/* 物品英文下方的音量喇叭 + 弹出的音量卡（11-24） */
.vol-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 250, 240, .94); box-shadow: var(--shadow-s); color: var(--ink2); transition: transform .15s var(--ease), background .2s, color .2s; }
.vol-btn .ic svg { width: 18px; height: 18px; }
.vol-btn[aria-expanded="true"] { background: var(--leaf); color: #fff; }
.vol-btn.muted { color: var(--coral); }
.vol-btn:active { transform: scale(.94); }
.vol-card { position: relative; width: 236px; padding: 10px 40px 10px 14px; border-radius: 18px; background: rgba(255, 250, 240, .97); box-shadow: var(--shadow); animation: popin .25s var(--spring); }
.vol-t { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--ink); font-size: 13.5px; }
.vol-t .ic svg { width: 16px; height: 16px; }
.vol-row { display: grid; grid-template-columns: 30px 1fr 38px; align-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px; font-weight: 800; color: var(--ink2); }
.vol-row input { width: 100%; accent-color: var(--leaf); }
.vol-row b { text-align: right; font-size: 12px; color: var(--ink); }
@media (max-width: 720px) { .vol-btn { width: 30px; height: 30px; } .vol-btn .ic svg { width: 16px; height: 16px; } .vol-card { width: 210px; } }
