/* Showcase page: stage, wheel and controls. The templates inside use /templates/assets/tpl.css. */
.sc-stage { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 22px; align-items: start; margin: 20px 0 14px; }
.sc-device { width: 100%; max-width: 1040px; margin: 0 auto; border: 1px solid var(--border-ice); background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 0 56px rgba(46,134,171,0.16); transition: max-width 0.6s var(--ease-out); }
.sc-device[data-device="phone"] { max-width: 390px; }
.sc-chrome { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.sc-dots { display: flex; gap: 6px; }
.sc-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-ice); display: block; }
.sc-url { flex: 1; text-align: center; font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.05em; color: var(--dim); background: var(--base); border-radius: 999px; padding: 4px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-screen { height: clamp(420px, calc(64vh / var(--zu)), 640px); overflow: hidden; position: relative; background: #000; }
.sc-device[data-device="phone"] .sc-screen { height: clamp(500px, calc(72vh / var(--zu)), 700px); }
.sc-view { transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease; transform-origin: 50% 0; background: var(--bg); min-height: 100%; }
.sc-view.out { opacity: 0; transform: scale(0.985); filter: blur(5px); }
.sc-side { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 18px 12px; border: 1px solid var(--border); background: var(--surface); }
.sc-wheel { position: relative; width: 170px; height: 170px; }
.sc-wheel .wheel-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, hsl(0 85% 55%), hsl(60 85% 50%), hsl(120 75% 45%), hsl(180 80% 45%), hsl(240 80% 60%), hsl(300 75% 55%), hsl(360 85% 55%)); -webkit-mask: radial-gradient(circle at center, transparent 0 62%, #000 63%); mask: radial-gradient(circle at center, transparent 0 62%, #000 63%); opacity: 0.85; }
.sc-wheel svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sc-wheel .wl { stroke: #fff; stroke-width: 2; stroke-dasharray: 4 4; opacity: 0.9; }
.sc-wheel circle.wd { stroke: #fff; stroke-width: 2.5; }
.wheel-mid { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--font-ui); line-height: 1.1; }
.wheel-mid b { font-size: 1.5rem; color: var(--white); font-weight: 600; }
.wheel-mid span { font-size: 0.6rem; letter-spacing: 0.18em; color: var(--dim); text-transform: uppercase; }
.sc-hues { font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--dim); display: grid; gap: 4px; }
.sc-hues b { color: var(--ice); font-weight: 600; }
.sc-rule-note { font-size: 0.9rem; color: var(--dim); line-height: 1.45; }
.sc-bar { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; margin: 6px 0 0; font-family: var(--font-ui); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--ice); }
.sc-bar a { color: var(--ice); border-bottom: 1px solid var(--border-ice); text-decoration: none; margin-left: 16px; }
.sc-bar a:hover { color: var(--signal); border-bottom-color: var(--signal); }
.sc-ctl { display: grid; gap: 14px; margin-top: 8px; }
.sc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sc-lab { font-family: var(--font-ui); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--dim); text-transform: uppercase; min-width: 86px; }
.sc-chip { font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--ice); background: var(--surface); border: 1px solid var(--border-ice); padding: 8px 12px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.sc-chip:hover { border-color: var(--ice); }
.sc-chip[aria-pressed="true"] { border-color: var(--signal); color: #fff; }
.sc-chip:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.sc-note { font-size: 0.9rem; color: var(--dim); font-family: var(--font-ui); letter-spacing: 0.03em; }
.sc-blocks { margin-top: 34px; }
@media (max-width: 900px) { .sc-stage { grid-template-columns: 1fr; } .sc-side { grid-template-columns: auto 1fr; text-align: left; justify-items: start; align-items: center; } .sc-lab { min-width: 100%; } }
@media (max-width: 520px) { .sc-side { grid-template-columns: 1fr; justify-items: center; text-align: center; } .sc-wheel { width: 150px; height: 150px; } }
@media (prefers-reduced-motion: reduce) { .sc-view, .sc-device { transition: none; } }

/* the site scanline overlay would stripe the template previews */
.scanlines { display: none; }

/* "See your business in it" */
.sc-you { margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--border-ice); border-left: 3px solid var(--ice); background: linear-gradient(90deg, rgba(168,216,234,0.08), rgba(168,216,234,0.02)); transition: border-color .3s ease, box-shadow .3s ease; }
.sc-you.on { border-left-color: var(--signal); box-shadow: 0 0 0 1px rgba(57,255,20,0.12), 0 0 24px rgba(57,255,20,0.06); }
.sc-you-lab { margin: 0 0 10px; font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--ice); }
.sc-you-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.sc-you-row input { flex: 2 1 220px; min-width: 0; padding: 11px 12px; background: rgba(8,8,8,0.7); border: 1px solid var(--border); border-bottom-color: var(--ice); color: #E8EEF3; font-family: var(--font-ui); font-size: 0.95rem; letter-spacing: 0.02em; }
.sc-you-row input#sc-town { flex: 1 1 150px; }
.sc-you-row input:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 2px rgba(168,216,234,0.18); }
.sc-you-go, .sc-you-clear { padding: 10px 16px; font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.14em; cursor: pointer; }
.sc-you-go { background: var(--ice); color: #080808; border: 1px solid var(--ice); font-weight: 600; }
.sc-you-go:hover, .sc-you-go:focus-visible { background: #fff; }
.sc-you-clear { background: none; color: var(--dim); border: 1px solid var(--border); }
.sc-you-clear:hover, .sc-you-clear:focus-visible { color: var(--ice); border-color: var(--ice); }
.sc-you-hint { margin: 10px 0 0; font-size: 0.95rem; color: var(--dim); }
@media (max-width: 600px) { .sc-you { padding: 14px; } .sc-you-row input, .sc-you-row input#sc-town { flex: 1 1 100%; } .sc-you-go, .sc-you-clear { flex: 1 1 0; } }

/* Customize button + panel */
.sc-you-cfg { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(168,216,234,0.06); color: var(--ice); border: 1px solid var(--border-ice); font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.14em; cursor: pointer; }
.sc-you-cfg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sc-you-cfg:hover, .sc-you-cfg:focus-visible { border-color: var(--ice); background: rgba(168,216,234,0.12); }
.sc-cfg { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, calc(92vw / var(--zu))); height: calc(100dvh / var(--zu)); max-height: calc(100dvh / var(--zu)); overflow-y: auto; padding: 0; border: 1px solid var(--ice); background: #0b0e12; color: #E8EEF3; box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(168,216,234,0.08); }
.sc-cfg::backdrop { background: rgba(4,6,8,0.28); }
.sc-cfg[open] { animation: sc-cfg-in .22s ease-out; }
@keyframes sc-cfg-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.sc-cfg-in { padding: 18px 20px 20px; }
.sc-cfg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sc-cfg-title { margin: 0; font-family: var(--font-ui); font-size: 0.82rem; letter-spacing: 0.16em; color: var(--ice); font-weight: 600; }
.sc-cfg-x { width: 34px; height: 34px; background: none; border: 1px solid var(--border); color: var(--dim); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.sc-cfg-x:hover, .sc-cfg-x:focus-visible { color: var(--ice); border-color: var(--ice); }
.sc-cfg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc-cfg-f { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.sc-cfg-f > span, .sc-cfg-f > legend { font-family: var(--font-ui); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding: 0; margin-bottom: 6px; }
.sc-cfg-f input[type="text"], .sc-cfg-f select { width: 100%; box-sizing: border-box; padding: 10px 11px; background: rgba(8,8,8,0.8); border: 1px solid var(--border); border-bottom-color: var(--ice); color: #E8EEF3; font-family: var(--font-ui); font-size: 0.9rem; }
.sc-cfg-f select { appearance: auto; }
.sc-cfg-f input:focus, .sc-cfg-f select:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 2px rgba(168,216,234,0.18); }
.sc-cfg-seg { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.sc-cfg-seg legend { width: 100%; }
.sc-cfg-seg label { position: relative; cursor: pointer; }
.sc-cfg-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sc-cfg-seg span { display: inline-block; padding: 8px 12px; border: 1px solid var(--border-ice); font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ice); }
.sc-cfg-seg input:checked + span { border-color: var(--signal); color: #fff; }
.sc-cfg-seg input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.sc-cfg-note { margin: 12px 0 0; font-size: 0.9rem; color: var(--dim); }
.sc-cfg-share { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.sc-cfg-share input { flex: 1 1 220px; min-width: 0; padding: 10px 11px; background: rgba(168,216,234,0.05); border: 1px dashed var(--border-ice); color: var(--ice); font-family: var(--font-ui); font-size: 0.74rem; }
.sc-cfg-msg { min-height: 1.2em; margin: 8px 0 0; font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--signal); }
.sc-cfg-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.sc-cfg-acts .text-link { font-family: var(--font-ui); font-size: 0.74rem; letter-spacing: 0.06em; }
@media (max-width: 600px) {
  .sc-cfg { inset: auto 0 0 0; width: calc(100vw / var(--zu)); max-width: calc(100vw / var(--zu)); height: auto; max-height: calc(88dvh / var(--zu)); border-width: 1px 0 0; }
  .sc-cfg[open] { animation-name: sc-cfg-up; }
  @keyframes sc-cfg-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .sc-cfg-grid { grid-template-columns: 1fr; }
  .sc-you-cfg { flex: 1 1 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .sc-cfg[open] { animation: none; } }
