/* The cute theme: pastel pink, rounded, bouncy. Every rule is scoped to [data-theme="cute"], so
   this file is inert in the classic theme. The map colours live in js/colors.js. */
:root[data-theme="cute"] {
  color-scheme: light;
  --page: #fff0f6;
  --surface: #ffffff;
  --surface-2: #fff2f8;
  --border: #f8d3e3;
  --text: #5b2a45;
  --text-2: #8a4a6b;
  --muted: #c08aa5;
  --grid: #fbe1ec;
  --axis: #f4c3d8;
  --accent: #ff4f93;
  --accent-2: #ff8fbf;
  --nearby: #a77fe6;
  --good: #33bf86;
  --warn: #ff9f43;
  --radius: 22px;
  --shadow: 0 6px 0 #ffd9ea, 0 14px 30px rgba(255, 99, 160, 0.14);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: "Nunito", system-ui, sans-serif;
}
[data-theme="cute"] ::selection { background: #ffc4dc; }
[data-theme="cute"] body {
  background:
    radial-gradient(#ffd6e7 1.4px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(180deg, #ffeaf3 0%, #fff4f9 45%, #f3ecff 100%) fixed;
  min-height: 100vh;
}
[data-theme="cute"] .top, [data-theme="cute"] main, [data-theme="cute"] .login-screen { position: relative; z-index: 1; }

/* a few clouds drifting slowly behind everything */
[data-theme="cute"] .cute-sky { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cute-sky .cloud { position: absolute; left: -200px; width: 120px; height: 38px; background: #fff; border-radius: 999px; opacity: 0.9; box-shadow: 0 4px 0 #ffe1ee; animation: drift 70s linear infinite; }
.cute-sky .cloud::before, .cute-sky .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cute-sky .cloud::before { width: 56px; height: 56px; left: 16px; top: -26px; }
.cute-sky .cloud::after { width: 42px; height: 42px; left: 58px; top: -18px; }
.cute-sky .c1 { top: 9%; }
.cute-sky .c2 { top: 46%; scale: 0.7; animation-duration: 95s; animation-delay: -40s; }
.cute-sky .c3 { top: 78%; scale: 1.2; animation-duration: 120s; animation-delay: -85s; }
@keyframes drift { from { translate: 0 0; } to { translate: calc(100vw + 400px) 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(0.94); } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-5px) rotate(-10deg); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -6deg; } 75% { rotate: 6deg; } }

/* header */
[data-theme="cute"] .top { border-bottom: 0; padding: 14px 18px 6px; }
[data-theme="cute"] .logo { width: 28px; height: 28px; stroke-width: 2; }
[data-theme="cute"] .logo .dot { animation: heartbeat 1.6s ease-in-out infinite; transform-origin: 12px 12px; }
[data-theme="cute"] .name { font-size: 22px; font-weight: 800; letter-spacing: 0.01em; color: var(--accent); }
[data-theme="cute"] .name::after { content: " ✈"; display: inline-block; }
[data-theme="cute"] .name:hover::after { animation: hop 1.2s var(--bounce); }
[data-theme="cute"] .conn.live i { box-shadow: 0 0 0 3px rgba(51, 191, 134, 0.25); }
[data-theme="cute"] .clock { font-weight: 700; color: var(--accent); }
[data-theme="cute"] .icon-btn { background: #fff; border: 2px solid #ffc4dc; color: var(--accent); font-weight: 700; box-shadow: 0 3px 0 #ffd9ea; transition: transform 0.25s var(--bounce); }
[data-theme="cute"] .icon-btn:hover { border-color: var(--accent-2); transform: translateY(-1px); }

/* panels pop in once on load */
[data-theme="cute"] .grid { gap: 16px; padding: 10px 18px 24px; }
[data-theme="cute"] .panel { border: 2px solid var(--border); box-shadow: var(--shadow); animation: pop-in 0.7s var(--bounce) both; }
[data-theme="cute"] .map-panel { border-width: 3px; border-color: #ffc4dc; }
[data-theme="cute"] .side > .panel:nth-child(1) { animation-delay: 0.08s; }
[data-theme="cute"] .side > .panel:nth-child(2) { animation-delay: 0.16s; }
[data-theme="cute"] h2 { font-size: 14px; font-weight: 800; letter-spacing: 0.03em; text-transform: none; color: var(--accent); }
[data-theme="cute"] .panel h2::before { content: "♡"; display: inline-block; margin-right: 6px; color: var(--accent-2); }

/* map */
[data-theme="cute"] .detail { background: rgba(255, 255, 255, 0.92); border: 2px solid var(--border); border-radius: 16px; box-shadow: 0 4px 0 #ffe1ee; backdrop-filter: blur(4px); }
[data-theme="cute"] .detail { animation: pop-in 0.45s var(--bounce); }
[data-theme="cute"] .detail .cs { color: var(--accent); font-weight: 800; }
[data-theme="cute"] .detail .close { color: var(--accent-2); transition: transform 0.3s var(--bounce); }
[data-theme="cute"] .detail .close:hover { transform: rotate(90deg) scale(1.2); }
[data-theme="cute"] .ring-label { background: rgba(255, 255, 255, 0.85); color: var(--text-2); border-radius: 999px; padding: 0 6px; font-weight: 700; }
[data-theme="cute"] .home-marker { width: 22px; height: 22px; background: none; border: 0; box-shadow: none; }
[data-theme="cute"] .home-marker::before { content: "♥"; position: absolute; inset: -5px 0 0; text-align: center; font-size: 28px; line-height: 1; color: var(--accent); text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 3px 8px rgba(255, 79, 147, 0.5); animation: heartbeat 1.6s ease-in-out infinite; }
[data-theme="cute"] .home-marker::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid var(--accent-2); animation: ac-pulse 2.4s ease-out infinite; }
[data-theme="cute"] .ac svg { stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 2px 3px rgba(150, 60, 120, 0.35)); animation: bob 2.6s ease-in-out infinite; }
[data-theme="cute"] .ac:nth-child(3n) svg { animation-delay: -0.9s; }
[data-theme="cute"] .ac:nth-child(3n+1) svg { animation-delay: -1.7s; }
[data-theme="cute"] .ac:hover svg { animation: wiggle 0.5s ease-in-out infinite; }
[data-theme="cute"] .ac .lbl { color: var(--text); font-weight: 800; text-shadow: 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; }
[data-theme="cute"] .ac .lbl small { color: var(--text-2); font-weight: 600; }
[data-theme="cute"] .ac.alerting .lbl::before { content: "♥ "; color: var(--accent); }
[data-theme="cute"] .maplibregl-ctrl-attrib { background: rgba(255, 255, 255, 0.8) !important; }
[data-theme="cute"] .maplibregl-ctrl-group { border-radius: 14px; box-shadow: 0 3px 0 #ffd9ea !important; overflow: hidden; }

/* hero, list */
[data-theme="cute"] .next .eyebrow { font-weight: 800; }
[data-theme="cute"] .next .hero { font-weight: 800; color: var(--accent); }
[data-theme="cute"] .next { background: linear-gradient(160deg, #fff 55%, #fff0f7 100%); }
[data-theme="cute"] .wx-line { border-top: 2px dashed var(--grid); font-weight: 600; }
[data-theme="cute"] .row { border-radius: 14px; border-bottom-style: dashed; transition: transform 0.25s var(--bounce), background 0.2s; }
[data-theme="cute"] .row:hover { background: #fff0f7; transform: translateX(4px) scale(1.01); }
[data-theme="cute"] .row.sel { background: #ffe4f0; box-shadow: inset 3px 0 0 var(--accent); }
[data-theme="cute"] .row .cs { font-weight: 800; }
[data-theme="cute"] .chip { border-width: 2px; background: #fff; font-weight: 800; }
[data-theme="cute"] .chip.over { background: linear-gradient(90deg, #ff4f93, #ff8fbf); border-color: transparent; }
[data-theme="cute"] .row.over .t { color: var(--accent); font-weight: 800; }
[data-theme="cute"] .tooltip { background: #fff; border: 2px solid var(--border); border-radius: 14px; box-shadow: 0 4px 0 #ffe1ee, 0 10px 24px rgba(255, 99, 160, 0.18); }

/* settings drawer */
[data-theme="cute"] .settings { border: 0; border-radius: 28px 0 0 28px; box-shadow: -8px 0 0 #ffd9ea, -20px 0 40px rgba(255, 99, 160, 0.18); background: #fffafc; }
[data-theme="cute"] .settings::backdrop { background: rgba(255, 196, 220, 0.4); backdrop-filter: blur(3px); }
[data-theme="cute"] .settings-head h2 { color: var(--accent); font-size: 20px; }
[data-theme="cute"] .settings .close { color: var(--accent-2); transition: transform 0.3s var(--bounce); }
[data-theme="cute"] .settings .close:hover { transform: rotate(90deg) scale(1.2); }
[data-theme="cute"] .settings-group:not(:last-child) { border-bottom: 2px dashed var(--grid); }
[data-theme="cute"] .settings-group h3 { color: var(--text); font-weight: 800; }

/* controls */
[data-theme="cute"] select { border: 2px solid var(--border); border-radius: 999px; padding: 5px 12px; color: var(--text); }
[data-theme="cute"] .btn { border: 2px solid var(--border); border-radius: 999px; padding: 7px 16px; font-weight: 700; color: var(--text); background: #fff; box-shadow: 0 3px 0 #ffd9ea; transition: transform 0.25s var(--bounce), box-shadow 0.15s; }
[data-theme="cute"] .btn:hover { border-color: #ffb3d1; transform: translateY(-2px); box-shadow: 0 5px 0 #ffd0e4; }
[data-theme="cute"] .btn:active { transform: translateY(2px) scale(0.97); box-shadow: 0 1px 0 #ffd9ea; }
[data-theme="cute"] .btn.primary { background: linear-gradient(180deg, #ff7aae, #ff4f93); border-color: #ff4f93; color: #fff; box-shadow: 0 3px 0 #e23a7d; }
[data-theme="cute"] .link-btn { color: var(--accent); }

/* alert toast: pastel daytime sky, pink house, a plane trailing hearts */
[data-theme="cute"] .toast { background: #fff; border: 2px solid var(--border); border-radius: 22px; box-shadow: 0 6px 0 #ffd9ea, 0 16px 34px rgba(255, 99, 160, 0.22); }
[data-theme="cute"] .toast .close { color: #fff; text-shadow: 0 1px 2px rgba(200, 60, 120, 0.5); }
[data-theme="cute"] .toast .body { border-left: 0; }
[data-theme="cute"] .toast .body b { color: var(--accent); font-weight: 800; }
[data-theme="cute"] .toast .bar { height: 5px; background: #ffe4f0; }
[data-theme="cute"] .toast .bar i { background: linear-gradient(90deg, #ff4f93, #c48cf5); }
[data-theme="cute"] .scene { background: linear-gradient(180deg, #bfe3ff 0%, #ffd9ec 75%, #ffe9f3 100%); }
[data-theme="cute"] .scene .stars { background-image: radial-gradient(14px 9px at 18% 30%, #fff 98%, transparent), radial-gradient(10px 7px at 24% 26%, #fff 98%, transparent), radial-gradient(16px 9px at 74% 22%, #fff 98%, transparent), radial-gradient(10px 7px at 80% 18%, #fff 98%, transparent); animation: bob 4s ease-in-out infinite; }
[data-theme="cute"] .scene .ground { background: #c8f0d6; border-top: 2px solid #a7e3bd; }
[data-theme="cute"] .scene .house path { fill: #ff8fbf; }
[data-theme="cute"] .scene .house .win { fill: #fff1a8; }
[data-theme="cute"] .scene .ping { border-color: var(--accent-2); }
[data-theme="cute"] .scene .flyer svg { fill: #fff; stroke: var(--accent); stroke-width: 1.2; filter: drop-shadow(0 2px 3px rgba(255, 79, 147, 0.6)); }
[data-theme="cute"] .scene .flyer .trail { height: 12px; top: 9px; background: none; color: #ff7aae; font-size: 11px; line-height: 12px; letter-spacing: 6px; text-align: right; overflow: hidden; white-space: nowrap; }
[data-theme="cute"] .scene .flyer .trail::before { content: "♥ ♡ ♥ ♡ ♥ ♡ ♥ ♡ ♥"; opacity: 0.85; }
[data-theme="cute"] .scene.rtl .flyer .trail { text-align: left; }
[data-theme="cute"] .scene .eta { color: var(--accent); text-shadow: 0 0 3px #fff, 0 0 6px #fff; font-weight: 800; }
[data-theme="cute"] .scene .eta small { color: var(--text-2); }

/* sign-in */
[data-theme="cute"] .login { background: #fff; border: 2px solid var(--border); border-radius: 26px; padding: 1.75rem 1.5rem; box-shadow: var(--shadow); animation: pop-in 0.6s var(--bounce) both; }
[data-theme="cute"] .login h1 { font-weight: 800; color: var(--accent); }
[data-theme="cute"] .login h1::before { content: "✈"; display: inline-block; margin-right: 8px; animation: hop 2.4s var(--bounce) infinite; }
[data-theme="cute"] .login input { border: 2px solid var(--border); border-radius: 999px; padding: 0 1rem; }
[data-theme="cute"] .login .submit { border-radius: 999px; background: linear-gradient(180deg, #ff7aae, #ff4f93); box-shadow: 0 4px 0 #e23a7d; transition: transform 0.25s var(--bounce), box-shadow 0.15s; }
[data-theme="cute"] .login .submit:not([disabled]):hover { transform: translateY(-2px); }
[data-theme="cute"] .login .submit:not([disabled]):active { transform: translateY(3px); box-shadow: 0 1px 0 #e23a7d; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  [data-theme="cute"] *, [data-theme="cute"] *::before, [data-theme="cute"] *::after { animation: none !important; transition: none !important; }
  [data-theme="cute"] .cute-sky { display: none; }
}
[data-theme="cute"] .chip.sight.hidden { background: #f6f1f4; }
