/* SKIDS Digital Showroom — premium fitting room. */
:root {
  --bg: #0b1018; --panel: #111827; --panel-2: #16202e; --ink: #eaf0f6; --muted: #8b96a8;
  --teal: #0f766e; --cyan: #06b6d4; --sun: #f59e0b; --orange: #f97316; --ok: #2dd4bf; --bad: #fb923c;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: radial-gradient(1200px 700px at 80% -10%, #12203a, var(--bg) 60%); color: var(--ink); font-family: "Inter", system-ui, sans-serif; min-height: 100vh; }
a { color: var(--cyan); }
h3 { font-family: "Fraunces", serif; font-size: 1.15rem; font-weight: 600; margin-bottom: 14px; }
h3 small { font-family: "Inter", sans-serif; font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; font-family: inherit; border: none; cursor: pointer; background: var(--teal); color: #fff; transition: transform .2s, background .2s; }
.btn:hover:not(:disabled) { transform: translateY(-2px); background: #0d5d57; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,0.25); }
.muted { color: var(--muted); }

/* top */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 4vw; border-bottom: 1px solid rgba(255,255,255,0.06); position: sticky; top: 0; background: rgba(11,16,24,0.85); backdrop-filter: blur(12px); z-index: 20; }
.brand { font-family: "Fraunces", serif; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.03em; }
.brand span { color: var(--sun); }
.brand small { font-weight: 500; color: var(--muted); font-size: 0.85rem; margin-left: 6px; }
.child-pick { display: flex; gap: 10px; }
.child-pick input { padding: 11px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15); background: var(--panel); color: var(--ink); font-family: inherit; font-size: 0.85rem; width: 150px; }

/* layout */
.layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 26px; padding: 26px 4vw 60px; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

/* stage */
.stage { background: var(--panel); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 22px; position: relative; }
.stage-hint { color: var(--muted); font-size: 0.85rem; margin-bottom: 14px; min-height: 18px; }
.stage-wrap { position: relative; border-radius: 18px; overflow: hidden; background: #0a0f18; min-height: 460px; display: grid; place-items: center; }
.stage-wrap img { max-width: 100%; max-height: 620px; display: block; user-select: none; }
#overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#frameGroup { transition: transform .3s ease; }
.lens { fill: rgba(6,182,212,0.16); stroke: var(--teal); stroke-width: 5; }
.bridge { fill: none; stroke: var(--teal); stroke-width: 5; }
.temple { stroke: var(--teal); stroke-width: 5; stroke-linecap: round; }
.pupil-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); border: 2px solid #fff; transform: translate(-50%,-50%); box-shadow: 0 0 12px rgba(245,158,11,0.8); }
.stage-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.measure-readout { margin-top: 12px; font-size: 0.85rem; color: var(--cyan); min-height: 18px; }

/* panels */
.panel { display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--panel); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 20px; }
.kv { display: flex; flex-direction: column; gap: 7px; font-size: 0.9rem; }
.kv div { display: flex; justify-content: space-between; }
.kv b { color: var(--cyan); font-family: "Fraunces", serif; }
.shortlist { display: flex; flex-direction: column; gap: 10px; }
.frame-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid rgba(255,255,255,0.06); cursor: pointer; transition: border-color .2s, transform .2s; }
.frame-item:hover { border-color: var(--cyan); transform: translateX(3px); }
.frame-item.sel { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.frame-item .fname { flex: 1; font-weight: 600; font-size: 0.9rem; }
.frame-item .fdec { font-size: 0.72rem; color: var(--muted); }
.frame-item .tag { font-size: 0.66rem; padding: 3px 9px; border-radius: 999px; }
.tag.ok { background: rgba(45,212,191,0.15); color: var(--ok); }
.tag.bad { background: rgba(249,115,22,0.18); color: var(--bad); }
.quote { font-size: 0.9rem; display: flex; flex-direction: column; gap: 8px; }
.quote .total { font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--cyan); }
.quote .warn { color: var(--orange); font-size: 0.82rem; }
.note { border-color: rgba(13,148,136,0.3); }
.note p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.note b { color: var(--ok); }

/* foot */
.foot { padding: 22px 4vw; text-align: center; color: var(--muted); font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.06); }
