:root {
  --bg: #f4f6f8;
  --surface: rgba(255, 255, 255, 0.96);
  --text: #16181d;
  --muted: #717782;
  --line: #e8ebef;
  --brand: #6c5ce7;
  --brand-dark: #5144c7;
  --green: #22b573;
  --shadow: 0 18px 50px rgba(42, 45, 60, 0.16);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #dfe4ea; color: var(--text); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

body {
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 12% 10%, rgba(108, 92, 231, .18), transparent 34%),
    radial-gradient(circle at 90% 86%, rgba(34, 181, 115, .12), transparent 34%),
    #e9edf2;
}

#app {
  width: min(100%, 420px);
  height: min(900px, calc(100vh - 32px));
  min-height: 680px;
  background: var(--bg);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 90px rgba(35, 39, 52, .26), inset 0 0 0 1px rgba(255,255,255,.9);
}

.screen { height: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.statusbar { height: 34px; padding: 10px 22px 0; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; z-index: 10; }
.header { padding: 12px 20px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 5; }
.header h1 { font-size: 22px; margin: 0; letter-spacing: -.5px; }
.header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.header-action, .icon-btn { border: 0; background: white; min-width: 40px; height: 40px; border-radius: 14px; box-shadow: 0 6px 18px rgba(34, 39, 52, .08); color: var(--text); }
.back { font-size: 20px; }
.content { flex: 1; overflow: auto; padding: 0 18px 100px; scrollbar-width: none; }
.content::-webkit-scrollbar { display: none; }

.launch {
  background:
    radial-gradient(circle at 86% 8%, rgba(255,255,255,.85), transparent 30%),
    linear-gradient(160deg, #f6f4ff 0%, #eef9f4 100%);
}
.launch .brand-block { padding: 12px 22px 6px; }
.brand-chip { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.85); padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--brand-dark); }
.launch h1 { font-size: 31px; line-height: 1.14; margin: 20px 0 8px; letter-spacing: -1px; }
.launch .subtitle { color: var(--muted); line-height: 1.6; font-size: 14px; margin: 0; }
.step-meta { display: flex; justify-content: space-between; align-items: center; margin: 18px 22px 8px; }
.step-meta strong { font-size: 15px; }
.step-meta span { color: var(--muted); font-size: 12px; }
.progress { height: 4px; margin: 0 22px 18px; background: rgba(108,92,231,.12); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #9c88ff); transition: width .25s ease; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 22px 28px; overflow: auto; }
.option-card { border: 1px solid rgba(108,92,231,.08); background: rgba(255,255,255,.9); min-height: 104px; padding: 14px; border-radius: 22px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 10px 28px rgba(38, 42, 55, .06); transition: .18s ease; }
.option-card:hover, .option-card:focus { transform: translateY(-2px); border-color: rgba(108,92,231,.35); box-shadow: 0 14px 30px rgba(75,63,160,.12); }
.option-card .emoji { font-size: 27px; }
.option-card b { font-size: 15px; }
.option-card small { color: var(--muted); }
.option-card.compact { min-height: 66px; justify-content: center; }
.choice-summary { margin: auto 22px 18px; padding: 12px 14px; background: rgba(255,255,255,.66); border: 1px dashed rgba(108,92,231,.25); border-radius: 16px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.map-screen { background: #eef2ec; }
.map-area { position: absolute; inset: 0 0 76px; overflow: hidden; background:
  linear-gradient(22deg, transparent 48%, rgba(255,255,255,.85) 49% 53%, transparent 54%),
  linear-gradient(112deg, transparent 45%, rgba(255,255,255,.8) 46% 51%, transparent 52%),
  repeating-linear-gradient(8deg, transparent 0 72px, rgba(200,210,205,.35) 73px 75px),
  #e8efe5;
}
.water { position: absolute; right: -55px; top: 75px; width: 145px; height: 620px; border-radius: 45% 0 0 55%; background: #cfe8f2; opacity: .8; }
.park { position: absolute; left: -20px; top: 245px; width: 200px; height: 125px; border-radius: 36px; background: rgba(196,225,178,.72); transform: rotate(-5deg); }
.road-label { position: absolute; color: #aab1ad; font-size: 11px; letter-spacing: 2px; transform: rotate(-24deg); }
.map-top { position: relative; z-index: 4; padding: 2px 14px; display: flex; gap: 10px; }
.filter-btn { flex: 1; border: 0; background: rgba(255,255,255,.95); height: 44px; border-radius: 16px; font-weight: 700; box-shadow: 0 8px 24px rgba(45,57,51,.12); }
.light-pill { position: relative; z-index: 4; margin: 10px 14px 0; padding: 9px 12px; background: rgba(255,255,255,.92); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; box-shadow: 0 8px 24px rgba(45,57,51,.1); font-size: 11px; }
.light-pill strong { display: block; font-size: 12px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 4px rgba(34,181,115,.12); margin-right: 7px; }
.link-btn { border: 0; background: transparent; color: #e85d75; font-weight: 700; font-size: 12px; }
.marker { position: absolute; z-index: 3; transform: translate(-50%, -50%); border: 0; background: transparent; padding: 0; }
.marker-avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: white; font-weight: 800; border: 3px solid white; box-shadow: 0 8px 18px rgba(40,50,48,.2); position: relative; }
.marker-avatar::after { content: ""; position: absolute; bottom: -8px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid white; }
.marker-label { margin-top: 8px; white-space: nowrap; background: rgba(255,255,255,.93); border-radius: 9px; padding: 4px 7px; font-size: 9px; font-weight: 700; box-shadow: 0 5px 14px rgba(43,48,55,.11); }
.map-count { position: absolute; z-index: 3; left: 50%; bottom: 94px; transform: translateX(-50%); background: rgba(255,255,255,.9); border-radius: 999px; padding: 7px 12px; font-size: 11px; box-shadow: 0 8px 22px rgba(40,45,54,.11); white-space: nowrap; }

.tabbar { position: absolute; z-index: 20; bottom: 0; left: 0; right: 0; height: 76px; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); padding: 8px 7px 12px; }
.tab { border: 0; background: transparent; color: #9a9fa7; font-size: 10px; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.tab .tab-icon { font-size: 20px; }
.tab.active { color: var(--brand); font-weight: 800; }

.sheet-backdrop { position: absolute; z-index: 30; inset: 0; background: rgba(23,25,31,.24); backdrop-filter: blur(2px); }
.bottom-sheet { position: absolute; z-index: 31; left: 10px; right: 10px; bottom: 10px; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); padding: 10px 18px 22px; max-height: 82%; overflow: auto; animation: rise .22s ease-out; }
@keyframes rise { from { transform: translateY(35px); opacity: 0; } }
.grabber { width: 42px; height: 5px; background: #dfe2e8; border-radius: 999px; margin: 2px auto 16px; }
.profile-head { display: flex; gap: 13px; align-items: center; }
.avatar { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; color: white; font-weight: 900; font-size: 20px; }
.profile-head h2 { margin: 0; font-size: 19px; }
.profile-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.game-card { margin: 16px 0; padding: 14px; border-radius: 19px; background: #f6f4ff; border: 1px solid #ebe7ff; }
.game-card small { color: var(--muted); }
.game-card b { display: block; margin-top: 5px; font-size: 14px; }
.button-row { display: flex; gap: 10px; }
.btn { border: 0; border-radius: 16px; min-height: 46px; padding: 0 17px; font-weight: 800; flex: 1; }
.btn.primary { background: linear-gradient(135deg, var(--brand), #806eea); color: white; box-shadow: 0 10px 22px rgba(108,92,231,.25); }
.btn.secondary { background: #f1f2f5; color: #343842; }
.btn.danger { background: #fff0f2; color: #df4f67; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 9px 12px; font-size: 12px; }
.chip.active { background: #ece9ff; color: var(--brand-dark); border-color: #cfc7ff; font-weight: 800; }

.list { display: grid; gap: 12px; }
.card { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 15px; box-shadow: 0 8px 22px rgba(38,42,55,.05); }
.post-top { display: flex; align-items: center; gap: 10px; }
.mini-avatar { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; color: white; font-weight: 800; }
.post-top strong { font-size: 13px; }
.post-top small { display: block; color: var(--muted); margin-top: 2px; }
.post-text { font-size: 14px; line-height: 1.65; margin: 12px 0; }
.photo-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.fake-photo { min-height: 105px; border-radius: 15px; display: grid; place-items: center; font-size: 30px; background: linear-gradient(135deg,#e8e4ff,#dff5ea); }
.post-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 10px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 6px 3px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 15px; padding: 12px 13px; background: #fafbfc; outline: none; }
.field textarea { resize: none; min-height: 100px; }

.profile-hero { text-align: center; padding: 8px 0 18px; }
.profile-hero .avatar { margin: 0 auto 10px; width: 72px; height: 72px; border-radius: 24px; }
.profile-hero h2 { margin: 0; }
.profile-hero p { color: var(--muted); font-size: 12px; }
.menu-list { display: grid; gap: 9px; }
.menu-item { width: 100%; border: 0; background: white; border-radius: 17px; padding: 15px; display: flex; justify-content: space-between; align-items: center; font-weight: 650; }
.menu-item span:last-child { color: #afb3ba; }

.notice { background: #fff8e8; border: 1px solid #f4dfaa; color: #7c6430; border-radius: 14px; padding: 10px 12px; font-size: 11px; line-height: 1.5; }
.toast { position: absolute; z-index: 80; left: 50%; bottom: 94px; transform: translateX(-50%); background: rgba(25,27,33,.9); color: white; padding: 10px 14px; border-radius: 999px; font-size: 12px; white-space: nowrap; animation: toastin .18s ease; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%,10px); } }
.empty { text-align: center; color: var(--muted); padding: 65px 20px; }
.empty .big { font-size: 44px; margin-bottom: 12px; }

@media (max-width: 480px) {
  body { padding: 0; display: block; background: var(--bg); }
  #app { width: 100vw; height: 100dvh; min-height: 620px; border-radius: 0; }
}
