/* CITY CALENDAR, STREET STAGE and LIFE LEGEND (2026-11-21): the three phone apps in js/calendar.js, js/stage.js, js/legend.js.
   Light first, html.dark below. Loaded after profile2.css. Phone width first (390 px). */

/* ---------- shared bits ---------- */
.cal, .stg, .lgd { text-align: left; }
.stg-act { display: grid; gap: 8px; margin: 12px 0 6px; }
.stg-act .btn { width: 100%; }
.stg-why { text-align: center; color: #b45309; }

/* ---------- Calendar ---------- */
.cal-city { margin: 2px 0 10px; color: var(--ink-soft); font-size: 12.5px; font-weight: 700; text-align: center; }
.cal-today { display: flex; gap: 12px; align-items: center; margin: 0 0 10px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #fce7f3, #fef3c7); color: #3b1d2b; }
.cal-today.quiet { background: rgba(23, 38, 30, .06); color: var(--ink); }
.cal-ic { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .7); font-size: 30px; }
.cal-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cal-tx small { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.cal-tx b { font-size: 17px; line-height: 1.25; }
.cal-tx span { font-size: 13px; line-height: 1.4; opacity: .88; }
.cal-tx em { align-self: flex-start; margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: #7c3aed; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; }
.cal-h { margin: 14px 0 6px; font-size: 13px; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.cal-list { display: grid; gap: 6px; }
.cal-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: rgba(23, 38, 30, .05); }
.cal-e { flex: 0 0 auto; font-size: 24px; width: 32px; text-align: center; }
.cal-n { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cal-n b { font-size: 14px; line-height: 1.3; }
.cal-n small { color: var(--ink-soft); font-size: 11.5px; }
.cal-w { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.cal-w i { padding: 1px 7px; border-radius: 999px; background: #ede9fe; color: #6d28d9; font-style: normal; font-size: 11px; }

/* ---------- Street Stage ---------- */
.stg-hero { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #ede9fe, #fce7f3); color: #2b1d3b; }
.stg-ic { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .75); font-size: 30px; }
.stg-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stg-tx small { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.stg-tx b { font-size: 20px; line-height: 1.2; }
.stg-tx span { font-size: 12.5px; opacity: .85; }
.stg-bar, .lgd-bar { height: 7px; margin: 8px 0 10px; border-radius: 99px; background: rgba(23, 38, 30, .1); overflow: hidden; }
.stg-bar i, .lgd-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #a78bfa, #db2777); }
.lgd-bar i { background: linear-gradient(90deg, #fbbf24, #d97706); }
.stg-nums { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0 0 10px; padding: 10px 0; border-radius: 16px; background: rgba(23, 38, 30, .05); }
.stg-nums > div { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 0 4px; }
.stg-nums > div + div { border-left: 1px solid var(--line); }
.stg-nums b { font-size: 17px; line-height: 1.2; white-space: nowrap; }
.stg-nums span { color: var(--ink-soft); font-size: 11.5px; }
.stg-info { display: grid; gap: 6px; margin: 0 0 8px; }
.stg-info > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(23, 38, 30, .05); font-size: 13px; }
.stg-info span { color: var(--ink-soft); }
.stg-info b { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.stg-info .stg-fest { background: #ede9fe; color: #4c1d95; }
.stg-info .stg-fest span { color: #6d28d9; }
.stg-top { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 0 8px; font-size: 14px; }
.stg-top span { color: var(--ink-soft); font-size: 12.5px; }
.stg-msg { min-height: 40px; display: grid; place-items: center; margin: 0 0 6px; text-align: center; font-size: 15px; font-weight: 700; }
.stg-dots { display: flex; justify-content: center; gap: 7px; margin: 0 0 12px; min-height: 12px; }
.stg-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(23, 38, 30, .15); transition: background .15s, transform .15s; }
.stg-dots i.on { background: #db2777; transform: scale(1.15); }
.stg-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.stg-pad { position: relative; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 20px; background: var(--pc, #8b5cf6); color: #fff; opacity: .55; filter: saturate(.7); box-shadow: 0 5px 0 rgba(0, 0, 0, .22); transition: transform .08s, opacity .12s, filter .12s, box-shadow .12s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.stg-pad span { font-size: 38px; line-height: 1; }
.stg-pad small { font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.stg-pads.go .stg-pad { opacity: 1; filter: none; }
.stg-pad:disabled { cursor: default; }
.stg-pad.lit { opacity: 1; filter: brightness(1.25) saturate(1.2); transform: translateY(4px) scale(1.03); box-shadow: 0 1px 0 rgba(0, 0, 0, .22), 0 0 26px var(--pc, #8b5cf6); }
.stg-pads.go .stg-pad:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, .22); }
.stg-res { text-align: center; padding: 6px 0 10px; }
.stg-res h3 { margin: 4px 0 2px; font-size: 20px; }
.stg-res p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.stg-big { font-size: 54px; line-height: 1.1; }
.stg-up { margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; background: #fef3c7; color: #78350f; text-align: center; font-size: 14px; }

/* ---------- Life Legend ---------- */
.lgd-hero { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #fef3c7, #fde68a); color: #422006; }
.lgd-hero.crowned { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.lgd-ic { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .7); font-size: 32px; }
.lgd-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lgd-tx small { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.lgd-tx b { font-size: 20px; line-height: 1.2; }
.lgd-tx span { font-size: 12.5px; line-height: 1.4; opacity: .88; }
.lgd-list { display: grid; gap: 6px; }
.lgd-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: rgba(23, 38, 30, .05); }
.lgd-row.done { background: rgba(16, 185, 129, .12); }
.lgd-e { flex: 0 0 auto; width: 32px; text-align: center; font-size: 24px; }
.lgd-n { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lgd-n b { font-size: 14px; line-height: 1.3; }
.lgd-n small { color: var(--ink-soft); font-size: 11.5px; line-height: 1.35; }
.lgd-pb { display: block; height: 5px; margin-top: 3px; border-radius: 99px; background: rgba(23, 38, 30, .1); overflow: hidden; }
.lgd-pb i { display: block; height: 100%; background: linear-gradient(90deg, #fbbf24, #d97706); border-radius: 99px; }
.lgd-s { flex: 0 0 auto; max-width: 92px; text-align: right; font-size: 12px; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }

/* ---------- dark mode ---------- */
html.dark .cal-today { background: linear-gradient(135deg, #4a1d3b, #4a3a12); color: #fde7f1; }
html.dark .cal-today.quiet { background: rgba(255, 255, 255, .07); color: var(--ink); }
html.dark .cal-ic, html.dark .stg-ic, html.dark .lgd-ic { background: rgba(255, 255, 255, .14); }
html.dark .cal-row, html.dark .lgd-row, html.dark .stg-info > div, html.dark .stg-nums { background: rgba(255, 255, 255, .07); }
html.dark .lgd-row.done { background: rgba(16, 185, 129, .18); }
html.dark .cal-w i { background: rgba(167, 139, 250, .2); color: #ddd6fe; }
html.dark .stg-hero { background: linear-gradient(135deg, #2e2150, #4a1d3b); color: #f3e8ff; }
html.dark .stg-bar, html.dark .lgd-bar, html.dark .lgd-pb, html.dark .stg-dots i { background: rgba(255, 255, 255, .14); }
html.dark .stg-dots i.on { background: #f472b6; }
html.dark .stg-info .stg-fest { background: rgba(167, 139, 250, .2); color: #ede9fe; }
html.dark .stg-info .stg-fest span { color: #c4b5fd; }
html.dark .stg-up { background: rgba(245, 158, 11, .2); color: #fde68a; }
html.dark .stg-why { color: #fbbf24; }
html.dark .lgd-hero { background: linear-gradient(135deg, #4a3a12, #5c3a0c); color: #fef3c7; }
html.dark .lgd-hero.crowned { background: linear-gradient(135deg, #7c5a10, #92400e); }
