/* City in the Sky – midnight navy, aurora teal, soft violet */
[data-cis-view], .cis-note, .cis-banner, .cis-art, .cis-nums { --n0: #070b1f; --n1: #0d1430; --n2: #121a3a; --n3: #1c2652; --tx: #e9eeff; --mu: #9fa9d6; --tl: #3ee6d2; --tl2: #22c4b0; --vi: #8b7bff; --rd: #ff6b81; }
[data-cis-view] { display: block; margin: 18px 0; color: var(--tx); font-size: 15px; line-height: 1.5; }
[data-cis-view] * { box-sizing: border-box; }
[data-cis-view]:not(.is-ready) { min-height: 80px; }
[data-cis-view] button, [data-cis-view] input, [data-cis-view] select { font: inherit; color: inherit; }
[data-cis-view] button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[data-cis-view] button:focus-visible { outline: 2px solid var(--tl); outline-offset: 2px; }
.cis-card { margin: 12px 0; padding: 16px; border-radius: 18px; background: linear-gradient(170deg, var(--n2), var(--n1)); border: 1px solid #26306a; box-shadow: 0 0 0 1px rgba(62, 230, 210, .05), 0 14px 32px rgba(0, 0, 0, .35); }
.cis-card h3, .cis-card h4 { margin: 8px 0; color: var(--tx); }
.cis-card h4 small { font-weight: 400; color: var(--mu); font-size: 13px; }
.cis-card ul { margin: 8px 0; padding-left: 20px; }
.cis-row { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.cis-row--wrap { flex-wrap: wrap; }
.cis-row > * { flex: 1 1 auto; }
.cis-input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid #2c3878; border-radius: 12px; background: var(--n0); color: var(--tx); font-size: 16px; color-scheme: dark; }
.cis-input:focus { outline: none; border-color: var(--tl); box-shadow: 0 0 0 3px rgba(62, 230, 210, .2); }
.cis-label { display: block; flex: 1 1 140px; font-size: 12px; font-weight: 700; color: var(--mu); letter-spacing: .04em; }
.cis-label .cis-input { margin-top: 4px; }
.cis-label input[type=range] { width: 100%; accent-color: var(--tl); margin-top: 8px; }
.cis-label b { float: right; color: var(--tl); font-size: 14px; }
.cis-check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; flex: 0 0 auto; }
.cis-check input { width: 20px; height: 20px; accent-color: var(--tl); }
.cis-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 1.5px solid #2c3878; border-radius: 12px; background: var(--n0); color: var(--tx) !important; font-weight: 700; font-size: 14px; }
.cis-btn--glow { border: 0; background: linear-gradient(135deg, var(--tl), var(--vi)); color: #051018 !important; box-shadow: 0 0 22px rgba(62, 230, 210, .35); }
.cis-link { border: 0; background: none; padding: 0; color: var(--tl); font-weight: 700; text-align: left; }
.cis-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--mu); font-size: 18px; }
.cis-hint { margin: 8px 0; font-size: 13px; color: var(--mu); }
.cis-tag { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--tl); }
.cis-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--n0); border: 1px solid #26306a; flex: 1 1 100%; }
.cis-seg button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: none; color: var(--mu); font-weight: 700; font-size: 13px; white-space: nowrap; }
.cis-seg button[aria-pressed=true] { background: var(--n3); color: var(--tl); box-shadow: inset 0 0 0 1px rgba(62, 230, 210, .5); }
.cis-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.cis-chips button { min-height: 36px; padding: 0 12px; border: 1.5px solid #2c3878; border-radius: 999px; background: none; font-size: 13px; font-weight: 600; color: var(--tx); }
.cis-chips button[aria-pressed=true] { border-color: var(--tl); background: rgba(62, 230, 210, .14); color: var(--tl); }
.cis-progress { height: 6px; margin-bottom: 10px; border-radius: 3px; background: var(--n0); overflow: hidden; }
.cis-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--tl), var(--vi)); transition: width .3s; }
.cis-answers { display: grid; gap: 8px; margin-top: 10px; }
.cis-answers .cis-btn { justify-content: flex-start; text-align: left; font-weight: 600; min-height: 48px; }
.cis-answers .is-right { border-color: var(--tl); background: rgba(62, 230, 210, .16); }
.cis-answers .is-wrong { border-color: var(--rd); background: rgba(255, 107, 129, .14); }
.cis-answers .is-dim { opacity: .5; }
.cis-res { min-height: 46px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cis-result h3 { font-size: 26px; color: var(--tl); }

/* builder */
.cis-stage { position: relative; margin: 6px auto; max-width: 420px; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px #26306a, 0 18px 40px rgba(0, 0, 0, .45); }
.cis-svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.cis-slot { fill: rgba(62, 230, 210, .12); stroke: rgba(62, 230, 210, .85); stroke-width: 1.2; stroke-dasharray: 3 2; cursor: pointer; animation: cis-pulse 2s ease-in-out infinite; }
.cis-slot.is-full { fill: transparent; stroke: transparent; animation: none; }
.cis-slot.is-full.is-erase { stroke: var(--rd); stroke-dasharray: 3 2; }
@keyframes cis-pulse { 50% { stroke-opacity: .35; } }
.cis-win { fill: #1d2340; opacity: .55; }
.cis-win.is-lit { fill: #ffe9a3; opacity: 1; filter: drop-shadow(0 0 1.5px #ffd36e); }
.cis-lamp { fill: #c9d2ff; }
.cis-lamp.is-lit { fill: #fff1a6; filter: drop-shadow(0 0 4px #ffe58a); }
.cis-beam { fill: #fff6c8; opacity: .35; }
.cis-beacon { fill: #a0a8c8; }
.cis-beacon.is-lit { fill: #ff6b6b; filter: drop-shadow(0 0 3px #ff6b6b); }
.cis-spin { animation: cis-rot 6s linear infinite; }
@keyframes cis-rot { to { transform: rotate(360deg); } }
.cis-isle { animation: cis-float 6s ease-in-out infinite; }
@keyframes cis-float { 50% { transform: translateY(-4px); } }
.cis-flyer { cursor: grab; }
.cis-title { font: 700 20px 'Nimbus Display', system-ui, sans-serif; fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .35); stroke-width: 3px; }
.cis-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 4px; }
.cis-stats div { padding: 8px 4px; border-radius: 12px; background: var(--n2); text-align: center; border: 1px solid #26306a; }
.cis-stats b { display: block; font-size: 16px; color: var(--tl); }
.cis-stats span { font-size: 11px; color: var(--mu); }
.cis-palette { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.cis-palette button { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 72px; padding: 8px 6px; border: 1.5px solid #26306a; border-radius: 14px; background: var(--n2); font-size: 11px; font-weight: 700; color: var(--mu); }
.cis-palette button span { font-size: 22px; }
.cis-palette button[aria-pressed=true] { border-color: var(--tl); color: var(--tl); background: rgba(62, 230, 210, .1); }
.cis-palette .is-fly { border-style: dashed; }
.cis-gallery h4 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--mu); }
.cis-gallery ul { list-style: none; margin: 0; padding: 0; }
.cis-gallery li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid #26306a; margin: 0; }
.cis-gallery small { color: var(--mu); font-size: 12px; }

/* towers */
.cis-compare svg { display: block; width: 100%; height: auto; }
.cis-axis { stroke: #3a4686; }
.cis-grid { stroke: #26306a; stroke-dasharray: 2 3; }
.cis-tick { font-size: 9px; fill: var(--mu); }
.cis-tower { fill: url(#none); fill: #3ee6d2; opacity: .9; transform-box: fill-box; transform-origin: bottom; animation: cis-grow .6s ease-out both; }
.cis-compare svg .cis-tower:nth-of-type(even) { fill: #8b7bff; }
@keyframes cis-grow { from { transform: scaleY(0); } }
.cis-tval { font-size: 11px; font-weight: 700; fill: var(--tx); }
.cis-legend { display: flex; justify-content: space-around; gap: 4px; font-size: 11px; color: var(--mu); text-align: center; }
.cis-legend span { flex: 1; }
.cis-facts { list-style: none; padding: 0 !important; }
.cis-facts li { padding: 8px 0; border-top: 1px solid #26306a; margin: 0; }
.cis-facts span { display: block; font-size: 13px; color: var(--mu); }

/* clouds, golden hour, styles, mood */
.cis-q { margin: 0 0 10px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cis-q legend { width: 100%; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--mu); }
.cis-q button { min-height: 38px; padding: 0 12px; border: 1.5px solid #2c3878; border-radius: 999px; background: none; font-size: 13px; font-weight: 600; color: var(--tx); }
.cis-q button[aria-pressed=true] { border-color: var(--tl); background: rgba(62, 230, 210, .14); color: var(--tl); }
.cis-cloudpic, .cis-facade { display: block; width: 100%; height: auto; margin: 10px 0; border-radius: 14px; }
.cis-cloudres h4 { font-size: 22px; color: var(--tl); margin: 4px 0; }
.cis-times { list-style: none; margin: 10px 0; padding: 0 !important; }
.cis-times li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid #26306a; margin: 0; }
.cis-times i { font-style: normal; }
.cis-times b { color: var(--tl); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cis-dayline { position: relative; height: 18px; margin: 14px 0 22px; border-radius: 9px; background: #0b1030; }
.cis-dayline i { position: absolute; top: 0; bottom: 0; border-radius: 9px; }
.cis-dl-day { background: #2f8fff; }
.cis-dl-gold { background: #ffb86b; }
.cis-dayline span { position: absolute; top: 22px; transform: translateX(-50%); font-size: 10px; color: var(--mu); }
.cis-dayline span:first-of-type { transform: none; }
.cis-dayline span:last-of-type { transform: translateX(-100%); }
.cis-mood-svg { display: block; width: 100%; height: auto; border-radius: 14px; }
.cis-mood-b { fill: #10173a; }
.cis-mood-w { fill: #ffe9a3; opacity: calc(var(--lit, 0) * .9); transition: opacity .4s; }
.cis-fact { min-height: 48px; margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--tl); background: rgba(62, 230, 210, .06); border-radius: 0 10px 10px 0; font-size: 14px; }

/* page bits */
.cis-banner { margin: 0 0 18px; }
.cis-banner img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px #26306a, 0 16px 36px rgba(0, 0, 0, .45); }
.cis-art { margin: 18px 0; }
.cis-art img { display: block; width: 100%; height: auto; border-radius: 16px; }
.cis-art figcaption { margin-top: 6px; font-size: 13px; color: #9fa9d6; text-align: center; }
.cis-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.cis-nums div { padding: 12px 6px; border-radius: 14px; text-align: center; background: #121a3a; border: 1px solid #26306a; }
.cis-nums b { display: block; font-size: 24px; color: #3ee6d2; }
.cis-nums span { font-size: 12px; color: #9fa9d6; }
.cis-note { position: fixed; left: 50%; bottom: 92px; z-index: 99999; transform: translate(-50%, 12px); padding: 10px 18px; border-radius: 12px; background: var(--n3); border: 1px solid var(--tl); color: var(--tx); font-weight: 700; font-size: 14px; opacity: 0; transition: .3s; pointer-events: none; box-shadow: 0 0 24px rgba(62, 230, 210, .25); }
.cis-note.is-up { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .cis-isle, .cis-spin, .cis-slot, .cis-tower { animation: none; } }
