:root { --orange: #FF8A3D; --ink: #3b2414; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #163018; color: var(--ink); font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
body { overflow: hidden; }
#app { position: relative; width: 100%; height: 100%; height: 100dvh; overflow: hidden; }
.screen { position: absolute; inset: 0; }
.screen[hidden] { display: none; }
.bg, #map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; pointer-events: none; }
.home-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 28, 12, .72) 0%, rgba(18, 28, 12, .12) 42%, rgba(18, 28, 12, .18) 100%); }
.home-copy { position: absolute; left: 22px; right: 22px; bottom: 118px; color: #fff8ee; }
.eyebrow { margin: 0 0 6px; color: #ffd7b0; font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.home-copy h1 { margin: 0; font-size: 46px; line-height: 1; text-shadow: 0 3px 0 rgba(90, 40, 8, .35); }
.lead { margin: 10px 0 0; max-width: 16em; font-size: 15px; line-height: 1.45; color: #fff1de; }
#start, #retry, .choice, .slot, #close { border: 0; font: inherit; cursor: pointer; }
#start { position: absolute; left: 22px; right: 22px; bottom: calc(28px + env(safe-area-inset-bottom)); height: 58px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 16px; background: linear-gradient(180deg, #ffb56a, var(--orange)); color: #fffdf8; font-size: 20px; font-weight: 800; box-shadow: 0 6px 0 #c45b12; }
#start .mp-icon { width: 26px; height: 26px; color: #fff; }
#start:active { transform: translateY(3px); box-shadow: 0 3px 0 #c45b12; }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#slots { position: absolute; inset: 0; }
.slot { position: absolute; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255, 248, 230, .82); border: 3px solid #fff; color: #c45b12; font-size: 28px; font-weight: 800; box-shadow: 0 4px 0 rgba(90, 50, 10, .25); }
.slot.busy { background: transparent; border-color: transparent; box-shadow: none; color: transparent; }
.slot:active { transform: scale(.94); }
#hud { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 8px; right: 8px; display: flex; gap: 6px; }
#hud span { flex: 1; min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; background: rgba(255, 248, 236, .92); font-size: 13px; font-weight: 800; }
#hint { position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); margin: 0; min-height: 36px; padding: 8px 12px; border-radius: 12px; background: rgba(42, 24, 12, .72); color: #fff6ea; font-size: 14px; font-weight: 700; text-align: center; }
#panel { position: absolute; left: 12px; right: 12px; bottom: calc(58px + env(safe-area-inset-bottom)); padding: 10px; border-radius: 16px; background: rgba(255, 248, 236, .96); box-shadow: 0 10px 24px rgba(40, 20, 8, .28); }
#panel[hidden] { display: none; }
#panelHead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
#panelTitle { font-size: 16px; }
#close { width: 36px; height: 36px; border-radius: 10px; background: #ffe4cc; color: #8a4514; }
#close .mp-icon { width: 20px; height: 20px; }
#choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { min-height: 72px; border-radius: 12px; background: #fff; border: 2px solid #f0d2b0; color: var(--ink); text-align: left; padding: 8px 10px; }
.choice b { display: block; font-size: 16px; }
.choice span { display: block; margin-top: 2px; color: #8a6240; font-size: 12px; font-weight: 700; }
.choice:disabled { opacity: .45; }
#result { border: 0; padding: 0; background: transparent; }
#result::backdrop { background: rgba(16, 24, 12, .55); }
#result h2, #result p, #retry { margin: 0; }
#result[open] { width: min(320px, calc(100% - 36px)); padding: 22px 18px 16px; border-radius: 18px; background: #fff8ee; text-align: center; }
#result h2 { font-size: 26px; color: #6a3410; }
#result p { margin-top: 8px; color: #7b5840; font-size: 15px; line-height: 1.45; }
#retry { width: 100%; height: 50px; margin-top: 16px; border-radius: 14px; background: var(--orange); color: #fff; font-size: 18px; font-weight: 800; }
