:root {
  --ink: #281d18;
  --muted: #75685f;
  --cream: #fff9ec;
  --orange: #ff8a3d;
  --yellow: #ffd45c;
  --green: #66c7a3;
  --blue: #71b9ff;
  --pink: #ff91b8;
  --line: rgba(40, 29, 24, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "PingFang SC", system-ui, sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }

.eyebrow {
  margin: 0 0 12px;
  color: #b64c19;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hub {
  min-height: 100vh;
  padding: 48px clamp(22px, 6vw, 88px);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 212, 92, 0.58), transparent 24%),
    radial-gradient(circle at 12% 82%, rgba(102, 199, 163, 0.34), transparent 28%),
    var(--cream);
}
.hub-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hub h1 { margin: 0; font-size: clamp(52px, 8vw, 108px); line-height: 0.88; letter-spacing: -0.075em; }
.hub h1 span { color: var(--orange); }
.hub .lead { max-width: 650px; margin: 28px 0; color: var(--muted); font-size: clamp(18px, 2vw, 25px); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.primary, .secondary {
  border: 0;
  border-radius: 999px;
  padding: 15px 23px;
  color: white;
  background: var(--ink);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(40, 29, 24, 0.15);
}
.secondary { color: var(--ink); background: white; box-shadow: inset 0 0 0 1px var(--line); }
.concept-card {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border-radius: 42px;
  background: linear-gradient(150deg, #fc7d44, #f3b93f 45%, #54bea1);
  box-shadow: 0 30px 80px rgba(101, 64, 37, 0.25);
}
.concept-card::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.45); border-radius: 30px; }
.concept-pet { position: absolute; width: 62%; left: 19%; bottom: 6%; }
.concept-pet svg { display: block; width: 100%; height: auto; overflow: visible; }
.concept-copy { position: absolute; inset: 42px 42px auto; color: white; z-index: 1; }
.concept-copy strong { display: block; font-size: 28px; }
.concept-copy span { opacity: .8; }
.orbit { position: absolute; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: white; font-size: 32px; box-shadow: 0 12px 25px rgba(66,42,28,.18); }
.orbit.one { right: 9%; top: 34%; transform: rotate(8deg); }
.orbit.two { left: 8%; top: 47%; transform: rotate(-10deg); }
.orbit.three { right: 14%; bottom: 10%; }

.story { max-width: 1180px; margin: 70px auto 0; }
.story h2 { margin-bottom: 24px; font-size: clamp(28px, 4vw, 50px); letter-spacing: -.04em; }
.story-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.story-step { min-height: 190px; padding: 22px; border-radius: 24px; background: rgba(255,255,255,.75); border: 1px solid var(--line); }
.story-step b { display: block; margin-bottom: 12px; color: var(--orange); font-size: 13px; }
.story-step strong { display: block; font-size: 20px; }
.story-step p { color: var(--muted); line-height: 1.55; }

.phone-page { min-height: 100vh; padding: 22px; background: #e8ddca; }
.phone-shell { max-width: 430px; min-height: calc(100vh - 44px); margin: 0 auto; overflow: hidden; border-radius: 38px; background: var(--cream); box-shadow: 0 25px 80px rgba(57,44,34,.2); }
.phone-hero { position: relative; min-height: 285px; padding: 28px; overflow: hidden; color: white; background: linear-gradient(145deg, #f47a3c, #f6b936); }
.phone-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -70px; top: -80px; border-radius: 50%; border: 60px solid rgba(255,255,255,.12); }
.phone-hero h1 { position: relative; z-index: 1; margin: 0; max-width: 260px; font-size: 37px; line-height: 1.02; letter-spacing: -.045em; }
.phone-pet { position: absolute; z-index: 2; width: 172px; right: -6px; bottom: -8px; }
.phone-pet svg { display: block; width: 100%; height: auto; overflow: visible; }
.paint-board { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(circle at 50% 35%, #fff6dd, #ffe3b0); }
.paint-base { position: absolute; inset: 6%; }
.paint-base svg { display: block; width: 100%; height: 100%; }
#paintCanvas { position: absolute; inset: 6%; width: 88%; height: 88%; touch-action: none; cursor: crosshair; }
.paint-tools { display: grid; gap: 8px; margin-top: 10px; }
.paint-colors { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.paint-color { height: 36px; border: 3px solid rgba(40,29,24,.12); border-radius: 11px; background: var(--c); }
.paint-color.active { border-color: var(--ink); transform: translateY(-2px); }
.paint-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.paint-actions button { padding: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 12px; font-weight: 800; }
.paint-actions button.active { color: white; background: var(--ink); border-color: var(--ink); }
.phone-content { padding: 24px; }
.unlock-banner { display: none; margin: -4px 0 22px; padding: 15px; border-radius: 16px; color: #176443; background: #dcf7eb; font-weight: 850; text-align: center; animation: pop-in .35s ease-out; }
.unlock-banner.show { display: block; }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 900; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-heading label { margin: 0; }
.field-help { margin: 7px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.text-button { padding: 0; border: 0; color: #b64c19; background: none; font-size: 12px; font-weight: 800; }
.field input, .field select { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 15px; background: white; outline: none; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatch { height: 48px; border: 3px solid transparent; border-radius: 14px; }
.swatch.active { border-color: var(--ink); transform: translateY(-2px); }
.swatch[data-accent="orange"] { background: var(--orange); }
.swatch[data-accent="mint"] { background: var(--green); }
.swatch[data-accent="blue"] { background: var(--blue); }
.swatch[data-accent="pink"] { background: var(--pink); }
.scan-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin: 0 0 12px; padding: 14px; border: 2px dashed rgba(40,29,24,.28); border-radius: 16px; color: var(--ink); background: #fff8e6; font-weight: 900; }
.scan-button .scan-icon { font-size: 20px; }
.scanner { position: fixed; inset: 0; z-index: 50; color: white; background: #000; }
.scanner[hidden] { display: none; }
.scanner-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner-frame { position: absolute; left: 50%; top: 50%; width: min(68vw, 300px); aspect-ratio: 1; transform: translate(-50%, -55%); border-radius: 22px; outline: 3px solid rgba(255,255,255,.92); box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
.scanner-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(18px, env(safe-area-inset-top)) 20px 18px; background: linear-gradient(rgba(0,0,0,.6), transparent); font-size: 17px; }
.scanner-close { width: 40px; height: 40px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.2); font-size: 18px; }
.scanner-status { position: absolute; left: 20px; right: 20px; bottom: max(40px, env(safe-area-inset-bottom)); margin: 0; text-align: center; font-weight: 750; line-height: 1.5; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.collect-count { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fff1cb; color: #8a6a1c; font-size: 11px; }
.checkpoint .status.stamp { animation: stamp .55s cubic-bezier(.2,1.4,.4,1) both; }
.phone-pet .appear { transform-box: fill-box; transform-origin: center; animation: accessory-pop .7s cubic-bezier(.34,1.56,.64,1) both; }
.pet-sparkle { position: absolute; opacity: 0; color: #fff4c2; font-size: 26px; pointer-events: none; text-shadow: 0 0 12px rgba(255,220,120,.9); }
.pet-sparkle.s1 { left: 6%; top: 10%; }.pet-sparkle.s2 { right: 8%; top: 2%; font-size: 20px; }.pet-sparkle.s3 { left: 16%; bottom: 12%; font-size: 18px; }
.phone-pet.receive .pet-sparkle { animation: sparkle 1s ease-out both; }
.phone-pet.receive .pet-sparkle.s2 { animation-delay: .12s; }.phone-pet.receive .pet-sparkle.s3 { animation-delay: .24s; }
.reward { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(255,170,60,.55), rgba(20,10,6,.92) 70%); opacity: 0; transition: opacity .25s ease; }
.reward[hidden] { display: none; }
.reward.show { opacity: 1; }
.reward.leaving { opacity: 0; transition: opacity .55s ease .15s; }
.reward-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.reward-stage { position: relative; display: grid; justify-items: center; padding: 30px 24px; color: white; text-align: center; }
.reward-rays { position: absolute; left: 50%; top: 86px; width: 420px; height: 420px; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(255,230,150,.35) 0 12deg, transparent 12deg 30deg); border-radius: 50%; -webkit-mask: radial-gradient(circle, black 15%, transparent 68%); mask: radial-gradient(circle, black 15%, transparent 68%); animation: rays 9s linear infinite; }
.reward.show .reward-rays { animation: rays 9s linear infinite, pop-in .5s ease-out both; }
.reward-item { position: relative; display: grid; place-items: center; width: 172px; height: 172px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff9e6, #ffd45c 60%, #ff9f43); box-shadow: 0 25px 60px rgba(0,0,0,.4), inset 0 -8px 0 rgba(0,0,0,.08); font-size: 92px; line-height: 1; }
.reward.show .reward-item { animation: item-pop .75s cubic-bezier(.34,1.56,.64,1) both; }
.reward.leaving .reward-item { visibility: hidden; }
.reward-kicker { margin: 26px 0 0; color: #ffe8a3; font-size: 13px; font-weight: 900; letter-spacing: .18em; }
.reward-title { margin: 6px 0 0; font-size: 40px; letter-spacing: -.03em; }
.reward-progress { margin: 8px 0 0; color: rgba(255,255,255,.78); font-weight: 750; }
.reward.show .reward-kicker, .reward.show .reward-title, .reward.show .reward-progress, .reward.show .reward-continue { animation: rise .55s ease-out both; }
.reward.show .reward-title { animation-delay: .1s; }.reward.show .reward-progress { animation-delay: .2s; }.reward.show .reward-continue { animation-delay: .35s; }
.reward-continue { margin-top: 26px; padding: 15px 28px; border: 0; border-radius: 999px; color: #251a15; background: #ffd45c; font-size: 16px; font-weight: 900; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.reward.complete .reward-item { background: radial-gradient(circle at 35% 30%, #fff, #b5f0d5 60%, #66c7a3); }
.reward-flyer { position: fixed; z-index: 70; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff9e6, #ffd45c 60%, #ff9f43); font-size: 92px; line-height: 1; pointer-events: none; box-shadow: 0 20px 45px rgba(0,0,0,.35); }
.scanner.success .scanner-frame { outline-color: #5ee3a1; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45), 0 0 0 6px rgba(94,227,161,.45); animation: frame-pulse .45s ease-out; }
.scanner.success .scanner-status { color: #9ff5c9; }
@keyframes stamp { from { opacity: 0; transform: scale(2.4) rotate(-14deg); } 60% { opacity: 1; transform: scale(.92) rotate(3deg); } to { transform: scale(1) rotate(0); } }
@keyframes receive { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-22px) scale(1.08) rotate(-3deg); } 55% { transform: translateY(4px) scale(.97) rotate(2deg); } 100% { transform: translateY(0) scale(1); } }
@keyframes accessory-pop { from { opacity: 0; transform: scale(0) rotate(-20deg); } 70% { opacity: 1; transform: scale(1.18) rotate(4deg); } to { transform: scale(1) rotate(0); } }
@keyframes sparkle { 0% { opacity: 0; transform: scale(.3) rotate(0); } 35% { opacity: 1; transform: scale(1.3) rotate(40deg); } 100% { opacity: 0; transform: scale(.4) rotate(90deg) translateY(-14px); } }
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes item-pop { from { opacity: 0; transform: scale(.2) rotate(-25deg); } 60% { opacity: 1; transform: scale(1.12) rotate(6deg); } to { transform: scale(1) rotate(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes frame-pulse { from { transform: translate(-50%, -55%) scale(1.08); } to { transform: translate(-50%, -55%) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .phone-pet, .concept-pet, .reward-rays, .reward.show .reward-item, .reward.show .reward-kicker, .reward.show .reward-title, .reward.show .reward-progress, .reward.show .reward-continue { animation: none !important; }
}
.checkpoints { display: grid; gap: 10px; }
.checkpoint { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 18px; text-align: left; background: white; }
.checkpoint .icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: #fff1cb; font-size: 26px; }
.checkpoint strong, .checkpoint small { display: block; }
.checkpoint small { margin-top: 3px; color: var(--muted); }
.checkpoint .status { color: #b38c32; font-size: 12px; font-weight: 900; }
.checkpoint.collected { background: #effbf6; border-color: rgba(59,156,120,.32); }
.checkpoint.collected .status { color: #25845f; }
.send-button { width: 100%; margin-top: 22px; padding: 17px; border: 0; border-radius: 17px; color: white; background: var(--ink); font-weight: 900; }
.toast { display: none; margin-top: 14px; padding: 14px; border-radius: 14px; color: #176443; background: #dcf7eb; font-weight: 750; text-align: center; }
.toast.show { display: block; }
.toast.error { color: #9c3c25; background: #fff0e8; }

.checkpoint-page { min-height: 100vh; padding: 42px clamp(18px, 5vw, 70px); background: #f0e9dc; }
.checkpoint-header { max-width: 1100px; margin: 0 auto 28px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.checkpoint-header h1 { margin: 0; font-size: clamp(35px, 5vw, 65px); letter-spacing: -.055em; }
.checkpoint-header p { max-width: 600px; color: var(--muted); line-height: 1.55; }
.checkpoint-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.station-card { padding: 25px; border: 1px solid var(--line); border-radius: 28px; background: white; text-align: center; box-shadow: 0 16px 45px rgba(57,44,34,.1); break-inside: avoid; }
.station-card .station-icon { font-size: 46px; }
.station-card h2 { margin: 8px 0 4px; }
.station-card p { min-height: 42px; margin: 0 0 16px; color: var(--muted); }
.qr-frame { display: grid; place-items: center; aspect-ratio: 1; padding: 13px; border: 2px dashed rgba(40,29,24,.18); border-radius: 22px; background: #fffdf7; }
.qr-frame img { width: 100%; height: 100%; }
.station-card small { display: block; margin-top: 14px; color: var(--muted); }
.print-note { max-width: 1100px; margin: 22px auto 0; padding: 16px 19px; border-radius: 16px; color: #5d4b3f; background: #fff8dc; }

.route-page { min-height: 100vh; padding: 22px; background: #e8ddca; }
.route-shell { max-width: 720px; min-height: calc(100vh - 44px); margin: 0 auto; padding: 25px; border-radius: 34px; background: var(--cream); box-shadow: 0 25px 80px rgba(57,44,34,.18); }
.route-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.route-header h1 { margin: 0; font-size: clamp(28px, 7vw, 43px); line-height: 1; letter-spacing: -.045em; }
.route-header p:last-child { margin: 9px 0 0; color: var(--muted); }
.route-back { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); background: white; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); font-size: 24px; }
.route-map-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #f8f8f5; }
.route-map-card svg { display: block; width: 100%; height: auto; }
.map-shell { fill: #e8eaed; stroke: #b9bec5; stroke-width: 7; }
.mall-street, .mall-spoke { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 62; }
.mall-street.north { stroke: #ffd91a; }.mall-street.east { stroke: #27aee4; }.mall-street.south { stroke: #54c995; }.mall-street.west, .mall-spoke { stroke: #f26059; }.mall-spoke { stroke-width: 50; opacity: .7; }
.map-atrium { fill: white; stroke: #c9ced5; stroke-width: 5; }.map-label, .map-small { fill: #34404a; font: 700 22px system-ui; text-anchor: middle; }.map-small { font-size: 15px; font-weight: 650; }
.map-store rect { fill: #d9dde2; stroke: #aeb5bd; stroke-width: 3; }.map-store text { fill: #20262e; font: 800 16px system-ui; text-anchor: middle; }.map-store .map-unit { fill: #5d6874; font-size: 13px; font-weight: 600; }.map-store.lego-store rect { fill: #ffe500; stroke: #db251d; stroke-width: 7; }.map-store.muted { opacity: .65; }
.route-underlay, .route-progress { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 18; }.route-underlay { stroke: rgba(40,29,24,.22); stroke-dasharray: 2 28; }.route-progress { stroke: #ff6d3a; transition: stroke-dashoffset .55s ease; }
.you-marker { transition: transform .55s ease; }
.you-shadow { fill: rgba(40,29,24,.28); }
.you-label rect { fill: #2878bd; stroke: white; stroke-width: 4; }
.you-label text { fill: white; font: 900 20px system-ui; text-anchor: middle; }
.destination-pin text { fill: #20262e; font: 800 17px system-ui; text-anchor: middle; paint-order: stroke; stroke: white; stroke-width: 5px; }.destination-pin path { fill: #db251d; stroke: white; stroke-width: 5; }.destination-pin circle { fill: #ffe500; }
.map-legend { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 12px 15px; color: var(--muted); background: white; font-size: 11px; }.map-legend span { display: flex; align-items: center; gap: 6px; }.map-legend i { display: inline-block; width: 18px; height: 7px; border-radius: 9px; }.legend-you { background: #2878bd; }.legend-route { background: #ff6d3a; }
.route-instruction { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; margin-top: 16px; padding: 18px; border-radius: 20px; background: white; border: 1px solid var(--line); }.route-step-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: white; background: #2878bd; font-size: 29px; font-weight: 900; }.route-instruction span { color: var(--orange); font-size: 11px; font-weight: 900; }.route-instruction h2 { margin: 2px 0 3px; font-size: 20px; }.route-instruction p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.route-meter { height: 7px; margin: 14px 2px 0; overflow: hidden; border-radius: 8px; background: #e2d9cc; }.route-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--orange); transition: width .55s ease; }.route-next { margin-top: 12px; }
.arrival-card { display: none; margin-top: 16px; padding: 21px; border-radius: 21px; color: #176443; background: #dcf7eb; text-align: center; }.arrival-card.show { display: block; animation: pop-in .35s ease-out; }.arrival-card strong { font-size: 20px; }.arrival-card p { margin: 8px 0 18px; line-height: 1.55; }.route-disclaimer { margin: 17px 4px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-13px) rotate(1deg); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

@media (max-width: 820px) {
  .hub-grid { grid-template-columns: 1fr; }
  .concept-card { min-height: 440px; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .checkpoint-grid { grid-template-columns: 1fr; }
  .checkpoint-header { align-items: start; flex-direction: column; }
}
@media (max-width: 520px) {
  .hub { padding: 30px 18px; }
  .story-grid { grid-template-columns: 1fr; }
  .phone-page { padding: 0; }
  .phone-shell { min-height: 100vh; border-radius: 0; }
  .route-page { padding: 0; }
  .route-shell { min-height: 100vh; padding: 18px; border-radius: 0; }
}

@media print {
  .checkpoint-page { padding: 12mm; background: white; }
  .checkpoint-header .actions, .print-note { display: none; }
  .checkpoint-grid { grid-template-columns: repeat(3, 1fr); gap: 8mm; }
  .station-card { padding: 7mm; box-shadow: none; }
}

/* ---- Phone app shell: tabs, bottom navigation, drawing sheet ---------------- */
.app .phone-shell { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.app .phone-pet { padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pet-draw-hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); padding: 5px 10px; border-radius: 999px; color: #5a3416; background: rgba(255,255,255,.9); font-size: 11px; font-weight: 900; white-space: nowrap; box-shadow: 0 4px 12px rgba(80,40,10,.18); pointer-events: none; }
.tab-panel[hidden] { display: none; }
.tab-header { padding: 30px 24px 4px; }
.tab-header h1 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.progress-card { margin-bottom: 14px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.progress-card > div:first-child { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.progress-bar { height: 9px; margin-top: 10px; overflow: hidden; border-radius: 9px; background: #f1e7d6; }
.progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--yellow)); transition: width .6s cubic-bezier(.34,1.56,.64,1); }
.app .send-button { margin-top: 6px; }
.app .toast { position: fixed; z-index: 30; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); width: min(390px, calc(100% - 32px)); margin: 0; transform: translateX(-50%); box-shadow: 0 12px 30px rgba(40,29,24,.18); animation: pop-in .3s ease-out; }

.event-list { display: grid; gap: 14px; }
.event-card { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.event-card.featured { color: white; border: 0; background: linear-gradient(145deg, #f47a3c, #f6b936); }
.event-card.featured p { color: rgba(255,255,255,.9); }
.event-emoji { font-size: 34px; }
.event-card h2 { margin: 6px 0 4px; font-size: 19px; }
.event-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.event-tag { position: absolute; top: 16px; right: 16px; padding: 4px 9px; border-radius: 999px; color: #8a6a1c; background: #fff1cb; font-size: 11px; font-weight: 900; }
.event-tag.live { color: #176443; background: #dcf7eb; }
.event-action { display: inline-block; margin-top: 12px; padding: 9px 14px; border: 0; border-radius: 999px; color: white; background: var(--ink); font-size: 13px; font-weight: 900; text-decoration: none; }
.event-card.featured .event-action { color: var(--ink); background: white; }
.demo-note { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }

.map-pin circle { fill: white; stroke: #db251d; stroke-width: 6; }
.map-pin text { font-size: 30px; text-anchor: middle; }
.map-pin.screen circle { stroke: #2878bd; }
.screen-atrium { fill: #fff8dc; stroke: #f6b936; }
.map-list { display: grid; gap: 10px; margin-top: 14px; }
.map-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: white; text-decoration: none; }
.map-row .icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff1cb; font-size: 24px; }
.map-row strong, .map-row small { display: block; }
.map-row small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.map-row .go { padding: 7px 12px; border-radius: 999px; color: white; background: #2878bd; font-size: 12px; font-weight: 900; }
.map-row .go.muted { color: var(--muted); background: #f1e7d6; }

.me-pet { position: relative; display: block; width: 220px; margin: 0 auto 18px; padding: 0; border: 0; background: radial-gradient(circle at 50% 45%, #fff1cb, transparent 68%); cursor: pointer; }
.me-pet svg { display: block; width: 100%; height: auto; overflow: visible; }
.field-note { margin-left: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mood { padding: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 12px; font-weight: 800; }
.mood.active { color: white; background: var(--ink); border-color: var(--ink); }
.me-pet .pet-draw-hint { bottom: 6px; }

.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: end; width: min(430px, 100%); padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); border-radius: 26px 26px 0 0; background: rgba(255,255,255,.96); box-shadow: 0 -10px 30px rgba(57,44,34,.12); backdrop-filter: blur(14px); }
.nav-item { display: grid; justify-items: center; gap: 2px; padding: 6px 0 2px; border: 0; color: #9a8c80; background: none; font-size: 11px; font-weight: 800; -webkit-tap-highlight-color: transparent; }
.nav-item .nav-icon { font-size: 22px; filter: grayscale(1); opacity: .6; transition: transform .2s; }
.nav-item.active { color: var(--ink); }
.nav-item.active .nav-icon { filter: none; opacity: 1; transform: translateY(-2px) scale(1.1); }
.nav-center { position: relative; justify-self: center; width: 74px; height: 74px; margin-top: -34px; padding: 0; border: 5px solid white; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd9a8, #ff8a3d); box-shadow: 0 10px 24px rgba(201,85,24,.4); -webkit-tap-highlight-color: transparent; animation: nav-breathe 3s ease-in-out infinite; }
.nav-center:active { transform: scale(.94); }
.nav-pet { position: absolute; inset: 2px 4px 6px; }
.nav-pet svg { display: block; width: 100%; height: 100%; }
.nav-pen { position: absolute; right: -6px; bottom: -4px; display: grid; place-items: center; width: 28px; height: 28px; border: 3px solid white; border-radius: 50%; background: var(--yellow); font-size: 13px; }

body.sheet-open { overflow: hidden; }
.draw-sheet { position: fixed; z-index: 40; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(30,18,10,0); transition: background .25s ease; }
.draw-sheet[hidden] { display: none; }
.draw-sheet.open { background: rgba(30,18,10,.5); }
.draw-inner { width: min(430px, 100%); max-height: 100%; overflow-y: auto; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--cream); transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.draw-sheet.open .draw-inner { transform: none; }
.draw-header { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; margin-bottom: 12px; }
.draw-header h2 { margin: 0; font-size: 17px; text-align: center; }
.draw-header .text-button { justify-self: start; }
.draw-done { justify-self: end; padding: 9px 16px; border: 0; border-radius: 999px; color: white; background: var(--ink); font-weight: 900; }
.draw-help { margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
@keyframes nav-breathe { 50% { box-shadow: 0 10px 30px rgba(255,138,61,.65); } }
@media (min-width: 521px) { .app .phone-shell { padding-bottom: 110px; } }
