/* WannaGo 玩哪去 — responsive styles (mobile first) */
:root {
  --ink: #14213D; --ink2: #3A4A6B; --muted: #5A6B8A; --sky: #DFF3FF; --sky2: #F1F8FF;
  --sun: #FFC845; --coral: #FF7A59; --coral-d: #C2410C; --teal: #2EC4B6; --teal-d: #0F6B5F; --blue: #1D6FA5;
  --white: #fff; --line: #D6E4F2; --pink: #E8467C; --radius: 1.5rem; --shadow: 0 .4rem 1rem rgba(20, 33, 61, .08);
  --font: 'Noto Sans TC', system-ui, -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --round: 'Huninn', 'Noto Sans TC', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sky); color: var(--ink); font-family: var(--font); line-height: 1.55; padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
a { color: var(--blue); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
rt { font-size: .42em; font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.1rem; }
.round { font-family: var(--round); font-weight: 400; }
.muted { color: var(--muted); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: .75rem; }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.between { justify-content: space-between; }
.scroll-x { display: flex; gap: .6rem; overflow-x: auto; padding: .25rem .1rem .6rem; scroll-snap-type: x proximity; }
.scroll-x > * { flex: 0 0 auto; scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .9rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.section { padding-top: 1rem; padding-bottom: 1rem; }
.h1 { font-family: var(--round); font-weight: 400; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.15; margin: 0 0 .3rem; }
.h2 { font-family: var(--round); font-weight: 400; font-size: 1.6rem; margin: 0; }
.h3 { font-size: 1.15rem; font-weight: 900; margin: 0; line-height: 1.35; }
.sub { font-family: var(--round); font-size: clamp(1.25rem, 2.6vw, 1.75rem); color: var(--blue); margin: 0 0 1rem; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 1.1rem 1.2rem; }
.tag { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .15rem .6rem; font-size: .78rem; font-weight: 900; background: var(--sky2); }
.tag.free { background: var(--teal-d); color: #fff; }
.tag.paid { background: var(--ink); color: #fff; }
.tag.demo { background: #FFF1D6; color: #8A4B00; }
.tag.rain { background: var(--blue); color: #fff; }
.tag.match { background: var(--sun); }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem; padding: 0 1.1rem; border: 0; border-radius: .9rem; font-weight: 900; text-decoration: none; background: var(--ink); color: #fff; }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.teal { background: var(--teal); color: var(--ink); }
.btn.coral { background: var(--coral); color: var(--ink); }
.btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn.soft { background: var(--sky2); color: var(--ink); }
.btn.sm { min-height: 2.5rem; padding: 0 .8rem; font-size: .88rem; border-radius: .75rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.on { background: var(--teal-d); color: #fff; }
.iconbtn { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .25rem .9rem .25rem .3rem; border-radius: 999px; border: 2px solid transparent; background: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink); }
.chip.plain { padding: .25rem .9rem; }
.chip[aria-pressed="true"], .chip.active { background: var(--sun); border-color: var(--ink); }
.chip .ico { width: 2rem; height: 2rem; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 2rem; }
.field { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 700; }
.input, .select, .textarea { min-height: 2.9rem; border: 1px solid #C9D6E8; border-radius: .8rem; padding: 0 .8rem; background: #fff; width: 100%; font-size: 1rem; }
.textarea { padding: .7rem .8rem; min-height: 6rem; resize: vertical; line-height: 1.6; }
.seg { display: flex; background: var(--sky2); border-radius: 1rem; padding: .25rem; gap: .25rem; }
.seg button { flex: 1; min-height: 2.6rem; border: 0; border-radius: .75rem; background: transparent; font-weight: 900; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: #fff; box-shadow: var(--shadow); }
.notice { border-radius: 1rem; padding: .8rem 1rem; font-size: .92rem; }
.notice.warn { background: #FFF1D6; }
.notice.err { background: #FFE3E3; color: #8A1C1C; }
.notice.ok { background: #DDF4E4; color: #0B6B3A; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(223, 243, 255, .94); backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; gap: .6rem; min-height: 4rem; }
.logo { display: flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo b { font-family: var(--round); font-weight: 400; font-size: 1.45rem; }
.logo small { white-space: nowrap; font-family: var(--round); font-size: 1rem; color: #D9480F; }
.dnav { display: none; gap: .2rem; }
.dnav a { padding: .5rem .8rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; }
.dnav a[aria-current="page"] { background: var(--sun); }
.tools { display: flex; gap: .35rem; align-items: center; }
.tool { min-width: 2.6rem; min-height: 2.6rem; border: 0; border-radius: 999px; background: #fff; font-weight: 900; font-size: .85rem; padding: 0 .6rem; }
.tool[aria-pressed="true"] { background: var(--ink); color: #fff; }
.me-btn { display: none; }

/* bottom nav (mobile) */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-radius: 1.4rem 1.4rem 0 0; box-shadow: 0 -.4rem 1.2rem rgba(20, 33, 61, .1); padding: .35rem .3rem calc(.5rem + env(safe-area-inset-bottom)); }
.bnav .in { max-width: 40rem; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bnav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; min-height: 3.6rem; justify-content: center; text-decoration: none; color: var(--muted); font-size: .75rem; font-weight: 700; }
.bnav a .pill { width: 3.2rem; height: 2rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.bnav a[aria-current="page"] { color: var(--ink); font-weight: 900; }
.bnav a[aria-current="page"] .pill { background: var(--sun); }
.badge { position: absolute; top: .1rem; right: 18%; min-width: 1.25rem; height: 1.25rem; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: .72rem; font-weight: 900; display: flex; align-items: center; justify-content: center; padding: 0 .3rem; }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 1rem 0 .5rem; }
.hero .txt { flex: 1 1 26rem; }
.hero .mascot { flex: 0 1 14rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.search { display: flex; flex-wrap: wrap; gap: .5rem; background: #fff; border-radius: 1.4rem; padding: .5rem; box-shadow: var(--shadow); }
.search input { flex: 2 1 11rem; border: 0; outline: 0; background: transparent; min-height: 3rem; padding: 0 .8rem; font-size: 1rem; }
.bubble { position: relative; background: #fff; border-radius: 1.2rem; padding: .6rem .9rem; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); max-width: 15rem; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -.6rem; margin-left: -.6rem; border: .6rem solid transparent; border-top-color: #fff; border-bottom: 0; }
.ww-bounce { animation: wwB 2.6s ease-in-out infinite; border: 0; background: transparent; padding: 0; }
@keyframes wwB { 0%, 100% { transform: translateY(0) } 45% { transform: translateY(-.7rem) } }
@keyframes pop { from { transform: translateY(.8rem); opacity: 0 } to { transform: none; opacity: 1 } }
.pop { animation: pop .3s ease-out; }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* event cards */
.ev { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink); }
.ev .art { position: relative; aspect-ratio: 16 / 9; background: var(--sky2); }
.ev .art svg, .ev .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev .art .tl { position: absolute; left: .6rem; top: .6rem; display: flex; gap: .3rem; flex-wrap: wrap; }
.ev .art .tr { position: absolute; right: .6rem; top: .6rem; }
.ev .art .bl { position: absolute; left: .6rem; bottom: .6rem; display: flex; gap: .3rem; }
.ev .body { padding: .8rem .95rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.ev .meta { font-size: .85rem; color: var(--ink2); }
.ev .acts { display: flex; gap: .4rem; margin-top: auto; padding-top: .4rem; }
.datebox { background: #fff; border-radius: .9rem; padding: .35rem .6rem; text-align: center; line-height: 1.1; box-shadow: var(--shadow); }
.datebox b { display: block; font-size: 1.4rem; }
.datebox small { display: block; font-size: .7rem; font-weight: 900; color: #D9480F; }
.rank { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; font-family: var(--round); font-size: 1.2rem; box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .2); }
.hotcard { width: 14.5rem; }

/* weather */
.wx { display: grid; grid-template-columns: repeat(7, minmax(4rem, 1fr)); gap: .4rem; overflow-x: auto; }
.wx button { border: 2px solid transparent; border-radius: 1rem; background: #fff; padding: .4rem .1rem; display: flex; flex-direction: column; align-items: center; gap: .1rem; min-height: 7.5rem; }
.wx button[aria-pressed="true"] { border-color: var(--sun); background: #FFF4D6; }
.wx .lv { color: #fff; border-radius: 999px; padding: 0 .45rem; font-size: .7rem; font-weight: 900; }

/* detail */
.detail { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--sky2); }
.cover svg, .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kv { display: grid; grid-template-columns: 5.5rem 1fr; gap: .45rem .8rem; font-size: .95rem; }
.kv dt { font-weight: 900; color: var(--muted); }
.kv dd { margin: 0; }
.comment { display: flex; gap: .6rem; font-size: .92rem; }
.avatar { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--sun); display: flex; align-items: center; justify-content: center; font-weight: 900; flex: 0 0 2.2rem; }
.prose p { margin: 0 0 1rem; line-height: 1.85; font-size: 1.05rem; }

/* trip */
.route { background: var(--ink); color: #fff; border-radius: 1.8rem; padding: 1.2rem; }
.leg { display: flex; gap: .8rem; align-items: center; }
.leg .dot { flex: 0 0 2.1rem; height: 2.1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--ink); }
.move { display: flex; gap: .8rem; align-items: center; padding: .35rem 0 .35rem .8rem; color: #9EEBE2; font-weight: 700; font-size: .9rem; }
.move::before { content: ''; width: .45rem; height: 1.8rem; border-radius: .3rem; background: var(--teal); }
.sugg { margin: .2rem 0 .4rem 2.9rem; border: 1px dashed #FF9E85; background: #22335A; border-radius: 1rem; padding: .6rem .75rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; font-size: .9rem; }
.sugg.park { border-color: #74C0FC; background: #1B3A66; }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; text-align: center; border-top: 2px dashed #3A4A6B; margin-top: 1rem; padding-top: .9rem; }

/* toast & modal */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(6rem + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: .6rem; background: var(--ink); color: #fff; border-radius: 999px; padding: .4rem .45rem .4rem .8rem; box-shadow: 0 .6rem 1.5rem rgba(0, 0, 0, .25); max-width: calc(100vw - 2rem); }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(20, 33, 61, .45); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal > div { background: #fff; border-radius: 1.8rem; padding: 1.3rem; width: 100%; max-width: 30rem; max-height: 100%; overflow: auto; }

footer.foot { padding: 1.5rem 0 2rem; font-size: .85rem; color: var(--ink2); }
footer.foot a { color: var(--ink2); }

/* tablet */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* desktop */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .bnav { display: none; }
  .dnav { display: flex; }
  .me-btn { display: inline-flex; }
  .toast { bottom: 2rem; }
  .detail { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
  .detail aside { position: sticky; top: 5rem; }
  .wrap { padding: 0 1.5rem; }
}

/* ---------- 丸丸 animation rig ---------- */
.ww-rig { overflow: visible; }
.ww-rig g { transform-box: view-box; }
.ww-rig .w-all { transform-origin: 120px 236px; }
.ww-rig .w-body { transform-origin: 120px 214px; }
.ww-rig .w-armL { transform-origin: 54px 160px; }
.ww-rig .w-armR { transform-origin: 186px 160px; }
.ww-rig .w-eyes { transform-origin: 120px 138px; }
.ww-rig .w-leaf { transform-origin: 120px 50px; }
.ww-rig [class^="p-"] { opacity: 0; transition: opacity .3s; }
/* idle: breathe + leaf sway + auto blink */
.act-idle .w-body, .act-blink .w-body { animation: ww-breathe 3.2s ease-in-out infinite; }
.act-idle .w-leaf { animation: ww-leaf 2.6s ease-in-out infinite; }
.act-idle .w-eyes { animation: ww-blink 4.5s infinite; }
/* wave */
.act-wave .w-armR { animation: ww-wave .5s ease-in-out infinite alternate; }
.act-wave .w-body { animation: ww-tilt 1s ease-in-out infinite alternate; }
.act-wave .p-spark { opacity: 1; }
/* happy: jump */
.act-happy .w-all { animation: ww-jump .6s cubic-bezier(.3,0,.4,1) infinite; }
.act-happy .w-armL { transform: rotate(120deg); } .act-happy .w-armR { transform: rotate(-120deg); }
.act-happy .p-spark, .act-happy .p-love { opacity: 1; }
/* comfort: arms hug inward, slow rock */
.act-comfort .w-armL { transform: rotate(-55deg) translate(26px, -6px); transition: transform .4s; }
.act-comfort .w-armR { transform: rotate(55deg) translate(-26px, -6px); transition: transform .4s; }
.act-comfort .w-body { animation: ww-rock 2.4s ease-in-out infinite; }
.act-comfort .p-love { opacity: 1; animation: ww-float 2.4s ease-in-out infinite; }
/* sway: shake head left-right */
.act-sway .w-body { animation: ww-sway .9s ease-in-out infinite; }
.act-sway .w-leaf { animation: ww-leaf .45s ease-in-out infinite; }
/* blink */
.act-blink .w-eyes { animation: ww-blink2 .9s infinite; }
/* think: hand to chin + bubble */
.act-think .w-armR { transform: rotate(-150deg) translate(-8px, 8px); transition: transform .4s; }
.act-think .w-body { transform: rotate(-6deg); transition: transform .4s; }
.act-think .p-think { opacity: 1; animation: ww-float 1.8s ease-in-out infinite; }
/* listen: tilt toward sound, hand to ear */
.act-listen .w-body { transform: rotate(10deg); transition: transform .4s; }
.act-listen .w-armR { transform: rotate(-110deg); transition: transform .4s; }
.act-listen .p-listen { opacity: 1; animation: ww-pulse 1s ease-in-out infinite; }
/* dance */
.act-dance .w-all { animation: ww-dance 1s ease-in-out infinite; }
.act-dance .w-armL { animation: ww-armL .5s ease-in-out infinite alternate; }
.act-dance .w-armR { animation: ww-armR .5s ease-in-out infinite alternate-reverse; }
.act-dance .w-feet { animation: ww-feet .5s ease-in-out infinite alternate; }
.act-dance .p-notes { opacity: 1; animation: ww-float 1s ease-in-out infinite; }
@keyframes ww-breathe { 50% { transform: scale(1.025, .98); } }
@keyframes ww-leaf { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes ww-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes ww-blink2 { 0%, 40%, 100% { transform: scaleY(1); } 20% { transform: scaleY(.1); } }
@keyframes ww-wave { from { transform: rotate(-120deg); } to { transform: rotate(-160deg); } }
@keyframes ww-tilt { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }
@keyframes ww-jump { 0%,100% { transform: translateY(0) scale(1.04, .96); } 40% { transform: translateY(-28px) scale(.97, 1.03); } }
@keyframes ww-rock { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes ww-sway { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes ww-float { 50% { transform: translateY(-6px); } }
@keyframes ww-pulse { 50% { opacity: .35; } }
@keyframes ww-dance { 0%,100% { transform: rotate(-8deg) translateY(0); } 25% { transform: rotate(0) translateY(-12px); } 50% { transform: rotate(8deg) translateY(0); } 75% { transform: rotate(0) translateY(-12px); } }
@keyframes ww-armL { from { transform: rotate(30deg); } to { transform: rotate(140deg); } }
@keyframes ww-armR { from { transform: rotate(-30deg); } to { transform: rotate(-140deg); } }
@keyframes ww-feet { to { transform: translateY(-4px); } }
.ww-acts { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; max-width: 19rem; }
.ww-acts button { border: 2px solid var(--ink); background: #fff; border-radius: 999px; padding: .2rem .6rem; font-size: .78rem; font-weight: 700; cursor: pointer; min-height: 2rem; }
.ww-acts button[aria-pressed="true"] { background: var(--sun); }
.ww-tap { background: none; border: 0; padding: 0; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ww-rig *, .ww-rig { animation: none !important; transition: none !important; } }
