/* Window Seat – seat-free window page (window.html). Builds on app.css (card, stops, texts). */
:root { --left: #E8590C; --right: #1F6FB2; }
.wpage { max-width: 980px; margin: 0 auto; padding: 20px 16px 48px; }
.whead .trip { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.wverdict { margin: 10px 0 0; padding: 12px 14px; background: var(--card); border-radius: 16px; font-size: 14px; line-height: 1.45; }
.wverdict b.left { color: var(--left); } .wverdict b.right { color: var(--right); }

.wcontrols { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 16px 0 14px; }
.wseg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.wseg button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; font-size: 14px; font-weight: 650; color: var(--ink); cursor: pointer; }
.wseg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.l { background: var(--left); } .dot.r { background: var(--right); }

.wlayout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 860px) { .wlayout { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; } .wlayout .card { position: sticky; top: 16px; } }

/* One aircraft window: a deep rounded frame with the live canvas behind it. */
.wstage { position: relative; display: grid; justify-items: center; touch-action: none; user-select: none; cursor: grab; }
.wstage:active { cursor: grabbing; }
.wframe { width: min(100%, 400px, calc((100svh - 180px) * 0.68)); aspect-ratio: 2 / 3; padding: 16px; border-radius: 46% / 32%; background: linear-gradient(145deg, #FBFAF7, #E9E4DC); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), 0 14px 40px rgba(60, 45, 25, .16); }
.wopening { position: relative; width: 100%; height: 100%; border-radius: 44% / 30%; overflow: hidden; background: linear-gradient(#9EC5E8, #DCE9F3 55%, #C9C3B5); box-shadow: inset 0 0 18px rgba(0, 0, 0, .25); }
.wopening canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; transition: filter .45s ease, transform .6s ease, opacity .3s ease; }
.wstage.loading .wopening canvas { opacity: 0; }
/* The label over the aimed sight: a pill above a thin stem whose foot is on the sight (stem on top when .below). */
.wmark { position: absolute; z-index: 2; width: 0; height: 0; pointer-events: none; }
.wmark[hidden] { display: none; }
.wmark-stem { position: absolute; left: -0.75px; bottom: 0; width: 1.5px; height: 22px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 2px rgba(0, 0, 0, .45); }
.wmark-label { position: absolute; bottom: 22px; left: 0; translate: -50% 0; white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink, #1B1D22); font-size: 12px; line-height: 1.35; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
.wmark-label b { font-weight: 650; }
.wmark-label small { color: var(--muted, #6E6A64); font-size: 11px; }
.wmark.below .wmark-stem { bottom: auto; top: 0; }
.wmark.below .wmark-label { bottom: auto; top: 22px; }
.wstage.blurring .wopening canvas { filter: blur(16px) brightness(1.06) saturate(1.1); transform: scale(1.08); }
.whint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

.wnote { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }
.wlinks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 2px 2px; font-size: 14px; font-weight: 650; }
.wlinks a { color: var(--ink); text-underline-offset: 3px; }
.wpage .foot { text-align: left; }

@media (prefers-reduced-motion: reduce) {
  .wopening canvas { transition: opacity .2s ease; }
  .wstage.blurring .wopening canvas { filter: none; transform: none; opacity: .4; }
}
