:root {
  --cream: #fff8ec;
  --paper: #fffdf8;
  --ink: #49342f;
  --muted: #94837b;
  --coral: #ef674c;
  --coral-dark: #d84b39;
  --peach: #ffe2ce;
  --line: #f1e5d8;
  --mint: #5f9d78;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 3% 24%, #ffe9d6 0 13px, transparent 14px),
              radial-gradient(circle at 96% 56%, #ffe8b5 0 10px, transparent 11px),
              var(--cream);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #ed9c73; outline-offset: 3px; }
.page-shell { width: min(1200px, 100%); margin: auto; padding: 0 25px; }

.topbar { height: 79px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; letter-spacing: -1px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: var(--coral); border-radius: 13px; transform: rotate(-9deg); box-shadow: 0 5px 0 #ffc1a8; font-size: 22px; }
.brand-dot { color: var(--coral); }
.top-label { display: flex; align-items: center; gap: 8px; border: 1px solid #f1d7c1; border-radius: 100px; padding: 8px 13px; background: #fffdf7; color: #8e776b; font-size: 12px; font-weight: 800; }
.top-dot { width: 8px; height: 8px; background: #80b58c; border-radius: 50%; box-shadow: 0 0 0 4px #e5f2e4; }

.hero { position: relative; min-height: 354px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; border: 2px solid #f4c6aa; border-radius: 31px; padding: 28px 5% 28px 6%; background: linear-gradient(115deg, #fff0df 0%, #ffe1c7 54%, #ffd3ba 100%); box-shadow: 0 13px 28px #b9794a13; }
.hero::before, .hero::after { content: ""; position: absolute; width: 240px; height: 240px; border: 2px dashed #f5b895; border-radius: 50%; opacity: .5; }
.hero::before { left: -140px; top: -130px; }
.hero::after { right: -110px; bottom: -180px; }
.hero-copy { position: relative; z-index: 2; max-width: 615px; }
.eyebrow { display: inline-flex; align-items: center; gap: 4px; background: #fff8ed; border: 1px solid #f5b997; border-radius: 100px; color: #d35b3b; padding: 5px 12px; font-weight: 800; font-size: 12px; letter-spacing: 1px; }
.sparkle { font-size: 18px; line-height: 1; }
.hero h1 { margin: 16px 0 10px; font-size: clamp(46px, 5vw, 70px); line-height: 1.18; letter-spacing: -3px; font-weight: 900; }
.hero h1 em { color: var(--coral-dark); font-style: normal; text-shadow: 2px 3px 0 #ffefcb; }
.question { color: var(--coral-dark); }
.hero p { margin: 0; color: #81645a; font-size: 15px; font-weight: 600; line-height: 1.8; }
.hero-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 25px; padding: 11px 15px; background: #fffdf8; border-radius: 100px; box-shadow: 0 7px 0 #ffc8a9; color: #9a614e; font-size: 12px; font-weight: 800; }
.hero-note span { font-size: 16px; }
.hero-note b { color: var(--coral); }
.hero-art { position: relative; width: 440px; height: 305px; flex: none; z-index: 1; }
.hero-orbit { position: absolute; width: 340px; height: 260px; left: 55px; top: 26px; background: #fff8e9; border-radius: 50%; transform: rotate(-13deg); box-shadow: 12px 17px 0 #f9c6a7; }
.hero-art img { position: absolute; width: 420px; max-width: none; left: 7px; top: -67px; filter: drop-shadow(0 8px 5px #c2744124); }
.art-sticker { position: absolute; z-index: 3; background: #fffefa; border: 2px solid #e9674a; border-radius: 11px; padding: 7px 11px; color: #d9573d; font-size: 13px; font-weight: 900; box-shadow: 3px 4px 0 #f6a98d; }
.sticker-one { top: 23px; left: 8px; transform: rotate(-12deg); }
.sticker-two { right: -7px; bottom: 40px; transform: rotate(10deg); }
.art-star { position: absolute; color: #e9814f; font-size: 32px; }
.star-one { right: 7px; top: 8px; }
.star-two { left: 12px; bottom: 18px; color: #eeb558; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 20px; margin-top: 23px; align-items: stretch; }
.panel { position: relative; min-width: 0; padding: 29px; border: 1.5px solid var(--line); border-radius: 25px; background: var(--paper); box-shadow: 0 12px 26px #9d715511; }
.search-panel::before { content: ""; position: absolute; width: 57px; height: 12px; top: -7px; left: 40px; border-radius: 20px; background: #ffc984; transform: rotate(-7deg); }
.step { color: var(--coral-dark); font-size: 12px; font-weight: 900; letter-spacing: 1px; }
.step span { color: #e9ad89; margin: 0 2px; }
.section-head h2, .results-head h2 { margin: 7px 0 5px; font-size: 26px; font-weight: 900; letter-spacing: -.7px; }
.section-head h2 span { font-size: 23px; }
.section-head p, .results-head p { margin: 0; color: var(--muted); font-size: 13px; }
.field-label { margin: 25px 0 10px; font-size: 13px; font-weight: 900; }
.required { margin-left: 5px; color: #dc785b; font-size: 10px; font-weight: 800; }
.location-box { display: flex; align-items: center; gap: 11px; padding: 11px; background: #fff7ec; border: 1.5px solid #f4dfc7; border-radius: 14px; }
.location-icon { width: 41px; height: 41px; display: grid; place-items: center; flex: none; border-radius: 12px; background: #ffe3d0; color: var(--coral); font-size: 26px; }
.location-copy { flex: 1; min-width: 0; }
.location-copy strong, .location-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-copy strong { font-size: 14px; font-weight: 800; }
.location-copy small { margin-top: 3px; color: #ac8e7e; font-size: 11px; }
.locate-button { padding: 8px 11px; border: 0; border-radius: 9px; background: #fff; color: var(--coral-dark); font-size: 12px; font-weight: 900; box-shadow: 0 2px 0 #efcbb5; }
.address-form { margin-top: 14px; }
.address-form label { display: block; margin-bottom: 7px; color: #9c8377; font-size: 12px; font-weight: 700; }
.input-row { display: flex; gap: 8px; }
.input-row input { width: 100%; min-width: 0; padding: 11px 12px; border: 1.5px solid #f0ddc9; border-radius: 10px; background: #fff; outline: none; font-size: 13px; }
.input-row input:focus { border-color: var(--coral); }
.input-row button { flex: none; padding: 0 12px; border: 1.5px solid #f3d6bd; border-radius: 10px; background: #fff3e5; color: #bd6747; font-size: 12px; font-weight: 800; }
.range-label, .category-label { margin-top: 24px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 13px; border: 1.5px solid #f0ddca; border-radius: 100px; background: #fffaf2; color: #846c5e; font-size: 12px; font-weight: 800; transition: transform .15s, background .15s, border-color .15s; }
.chip:hover { transform: translateY(-2px); border-color: var(--coral); }
.chip.active { border-color: var(--coral); background: var(--coral); color: white; box-shadow: 0 3px 0 #d8533d; }
.category-row .chip.active { border-color: #84b598; background: #e1f2e4; color: #357b5c; box-shadow: 0 3px 0 #9bcaaa; }
.primary-button { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 27px; padding: 14px 17px; border: 0; border-radius: 12px; background: var(--coral); color: #fff; box-shadow: 0 5px 0 #c74637; font-size: 15px; font-weight: 900; transition: transform .15s, box-shadow .15s; }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 7px 0 #c74637; }
.primary-button:disabled { opacity: .55; }
.arrow { font-size: 22px; line-height: 1; }
.demo-button { display: block; width: 100%; margin-top: 13px; padding: 10px; border: 1.5px dashed #f1c5a9; border-radius: 10px; background: #fffaf1; color: #ba8062; font-size: 12px; font-weight: 800; }
.status-line { min-height: 18px; margin: 13px 0 0; color: #9a857a; font-size: 12px; line-height: 1.5; }
.status-line.error { color: #bd503e; }

.wheel-panel { display: flex; flex-direction: column; align-items: center; overflow: hidden; background: radial-gradient(circle at 82% 18%, #fff9cf 0 45px, transparent 46px), linear-gradient(155deg, #fff7d9, #ffe8b4); border-color: #f6da9b; }
.wheel-panel::before, .wheel-panel::after { content: "✦"; position: absolute; color: #f3b45f; font-size: 28px; }
.wheel-panel::before { right: 29px; top: 64px; }
.wheel-panel::after { left: 31px; bottom: 118px; font-size: 18px; }
.wheel-panel .section-head { align-self: stretch; z-index: 1; }
.wheel-panel .section-head h2 span { color: #edae4f; }
.wheel-wrap { position: relative; display: grid; place-items: center; width: min(100%, 320px); aspect-ratio: 1; margin: 22px auto 12px; padding: 9px; border: 7px solid #fff8e5; border-radius: 50%; box-shadow: 0 10px 0 #f1c579, 0 16px 28px #a96d342a; background: #fff8e5; }
.wheel-face { width: 100%; height: 100%; border-radius: 50%; transition: transform 5s cubic-bezier(.13,.76,.15,1); }
#wheel { width: 100%; height: 100%; display: block; border-radius: 50%; }
.wheel-pointer { position: absolute; z-index: 4; top: -12px; left: 50%; width: 0; height: 0; transform: translateX(-50%); border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 29px solid #a5463b; filter: drop-shadow(0 3px 1px #824a334a); }
.wheel-center { position: absolute; z-index: 3; width: 54px; height: 54px; display: grid; place-items: center; border: 5px solid #fff8e8; border-radius: 50%; background: var(--coral); color: white; font-size: 23px; font-weight: 900; box-shadow: 0 3px 8px #79422b4c; pointer-events: none; }
.wheel-bottom { width: 100%; margin-top: auto; text-align: center; z-index: 1; }
.wheel-bottom p { margin: 8px 0 12px; color: #9a775d; font-size: 12px; font-weight: 700; }
.spin-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 14px; border: 0; border-radius: 12px; background: #49342f; color: #fff; font-size: 15px; font-weight: 900; box-shadow: 0 5px 0 #291e1b; transition: transform .15s; }
.spin-button:hover:not(:disabled) { transform: translateY(-2px); }
.spin-button:disabled { background: #c5b9a8; box-shadow: 0 5px 0 #a89b88; }
.spin-button span { color: #ffd66f; font-size: 20px; }

.results-section { margin: 53px 0 60px; }
.results-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.results-head h2 { font-size: 30px; }
.results-head h2 span { font-size: 26px; }
.count-pill { flex: none; padding: 8px 12px; border: 1.5px solid #f3d7bb; border-radius: 100px; background: #fff7e9; color: #a66e51; font-size: 11px; font-weight: 900; }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.place-card { min-width: 0; padding: 11px 11px 14px; border: 1.5px solid var(--line); border-radius: 21px; background: #fffdf8; box-shadow: 0 7px 18px #a6795312; transition: transform .2s, box-shadow .2s, opacity .2s; }
.place-card:hover { transform: translateY(-4px); box-shadow: 0 13px 24px #a6795322; }
.place-card.excluded { opacity: .45; }
.place-media { position: relative; display: grid; place-items: center; height: 148px; overflow: hidden; border-radius: 15px; background: radial-gradient(circle at 50% 48%, #fff8df 0 40px, transparent 42px), radial-gradient(circle at 20% 20%, #ffd2b8 0 15px, transparent 16px), linear-gradient(125deg, #ffe5ce, #fbc8aa); }
.place-card:nth-child(4n+2) .place-media { background: radial-gradient(circle at 50% 48%, #fff7d6 0 40px, transparent 42px), linear-gradient(125deg, #fce9b3, #f8d79b); }
.place-card:nth-child(4n+3) .place-media { background: radial-gradient(circle at 50% 48%, #fff8e1 0 40px, transparent 42px), linear-gradient(125deg, #d8ead0, #a8d5bc); }
.place-card:nth-child(4n+4) .place-media { background: radial-gradient(circle at 50% 48%, #fff8e1 0 40px, transparent 42px), linear-gradient(125deg, #f9d6d6, #efb7c3); }
.food-fallback { font-size: 65px; filter: drop-shadow(0 7px 2px #825c3322); }
.place-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-label { position: absolute; z-index: 2; left: 9px; top: 9px; padding: 5px 9px; border-radius: 100px; background: #fffdf4e8; color: #a45f45; font-size: 10px; font-weight: 900; backdrop-filter: blur(5px); }
.place-top { display: flex; align-items: start; gap: 9px; margin: 14px 5px 0; }
.place-number { width: 32px; height: 32px; display: grid; place-items: center; flex: none; border-radius: 9px; background: #fff0df; color: var(--coral); font-size: 11px; font-weight: 900; }
.place-heading { min-width: 0; flex: 1; }
.place-heading h3 { overflow: hidden; margin: 0 0 4px; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 900; }
.place-heading span { display: block; overflow: hidden; color: #ac8e7c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.place-address { overflow: hidden; margin: 13px 5px; min-height: 16px; color: #9f8a7f; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.place-footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin: 0 5px; padding-top: 12px; border-top: 1px dashed #edddcf; }
.distance { color: var(--mint); font-size: 11px; font-weight: 900; }
.place-actions { display: flex; gap: 10px; white-space: nowrap; }
.place-actions button, .place-actions a { padding: 0; border: 0; background: none; color: var(--coral-dark); text-decoration: none; font-size: 11px; font-weight: 900; }
.place-actions button { color: #ab9284; }
.empty-state { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; min-height: 190px; border: 2px dashed #efd3b6; border-radius: 21px; background: #fffaf0; color: #a18b7d; font-size: 12px; text-align: center; }
.empty-state div { font-size: 46px; }
.empty-state strong { color: var(--ink); font-size: 16px; }
footer { padding: 23px 0 35px; border-top: 1px dashed #e8d8c6; color: #ae9588; text-align: center; font-size: 11px; }
footer span { margin: 0 8px; }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: #2d201bba; }
.result-modal { position: relative; width: min(100%, 390px); padding: 32px 27px 28px; border: 4px solid #fff3d7; border-radius: 26px; background: #fffdf6; box-shadow: 0 25px 70px #1d100b50; text-align: center; animation: pop .3s ease-out; }
.modal-close { position: absolute; top: 10px; right: 13px; border: 0; background: none; color: #ad8c7d; font-size: 26px; }
.result-confetti { color: var(--coral); font-size: 12px; font-weight: 900; letter-spacing: 2px; }
.result-emoji { margin: 13px 0 7px; font-size: 68px; filter: drop-shadow(0 5px 2px #0002); }
.result-modal h2 { margin: 0 0 9px; font-size: 26px; line-height: 1.3; overflow-wrap: anywhere; }
.result-modal p { margin: 0 0 22px; color: #a28b7c; font-size: 12px; }
.modal-actions { display: grid; gap: 9px; }
.modal-actions a, .modal-actions button { display: block; width: 100%; padding: 13px; border: 0; border-radius: 11px; font-size: 14px; font-weight: 900; text-decoration: none; }
.modal-actions a { background: var(--coral); color: #fff; }
.modal-actions button { background: #fff0dc; color: #9d634c; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 920px) {
  .hero-art { width: 340px; transform: scale(.82); transform-origin: center right; margin-left: -30px; }
  .hero h1 { font-size: 51px; }
  .panel { padding: 23px; }
  .results-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 690px) {
  .page-shell { padding: 0 14px; }
  .topbar { height: 66px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 34px; height: 34px; font-size: 19px; }
  .top-label { display: none; }
  .hero { display: block; min-height: 470px; padding: 29px 24px 8px; border-radius: 24px; }
  .hero h1 { font-size: clamp(39px, 10vw, 53px); letter-spacing: -2px; margin: 13px 0 8px; }
  .hero p { max-width: 300px; font-size: 13px; }
  .hero-note { margin-top: 15px; padding: 9px 11px; font-size: 10px; }
  .hero-art { width: 260px; height: 200px; margin: 0 auto; transform: none; }
  .hero-orbit { width: 230px; height: 172px; left: 20px; top: 19px; }
  .hero-art img { width: 280px; left: -13px; top: -51px; }
  .art-sticker { padding: 4px 7px; font-size: 10px; }
  .sticker-one { left: -22px; top: 27px; }
  .sticker-two { right: -18px; bottom: 22px; }
  .star-one { right: -17px; top: 8px; }
  .star-two { left: -15px; bottom: 9px; }
  .content-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .panel { padding: 23px 19px; border-radius: 21px; }
  .section-head h2 { font-size: 23px; }
  .wheel-wrap { width: min(100%, 305px); margin-top: 27px; }
  .results-section { margin: 39px 0; }
  .results-head h2 { font-size: 25px; }
  .results-head p { max-width: 245px; font-size: 11px; line-height: 1.5; }
  .results-grid { grid-template-columns: 1fr; gap: 13px; }
  .place-media { height: 156px; }
}
@media (max-width: 365px) {
  .hero { min-height: 480px; padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: 38px; }
  .input-row button { padding: 0 8px; }
  .chip { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; }
  .wheel-face { transition-duration: .01ms !important; }
}
