/* Glowkit Customize page: the kit studio, share link and question form */

/* hero: one alert in three colours, the personalisation in one look */
.hero__media { position: relative; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(45% 40% at 50% 80%, rgb(224 36 47 / .4), transparent 70%), radial-gradient(70% 60% at 50% 55%, #2a2b31, #121316 60%, #0b0b0d); }
.hero-tints { display: grid; gap: 22px; width: min(78%, 420px); container-type: inline-size; }
.hero-tints > .nk-alert { filter: drop-shadow(0 14px 22px rgb(0 0 0 / .6)); }
.hero-tints > .nk-alert:nth-child(2) { margin-left: 12%; }
.is-live .hero-tints > .nk-alert { animation: cz-float 3.6s var(--m-ease-io) infinite alternate; }
.is-live .hero-tints > .nk-alert:nth-child(2) { animation-delay: -1.2s; } .is-live .hero-tints > .nk-alert:nth-child(3) { animation-delay: -2.4s; }
@keyframes cz-float { from { transform: translateY(0); } to { transform: translateY(-6px); } }

/* the studio: controls on the left, the live preview held beside them */
.studio { align-items: start; row-gap: var(--s-6); }
.studio__preview { position: sticky; top: calc(var(--nav, 72px) + 16px); }
.cpanel { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); } .cpanel:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cgroup { font: 600 var(--t-lead)/1.2 var(--font-display); margin: 0 0 var(--s-2); }
.ctl { margin: var(--s-4) 0 0; padding: 0; border: 0; min-width: 0; display: grid; gap: var(--s-2); }
.ctl > legend, .ctl > .lbl { padding: 0; margin-bottom: var(--s-2); font: 500 var(--t-small)/1.3 var(--font-text); color: var(--muted); }
.ctl output { color: var(--ink); margin-left: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input, .swatches input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink);
  font: 500 var(--t-small)/1 var(--font-text); cursor: pointer; transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
.seg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + span, .swatches input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .seg span:hover { border-color: var(--ink); } }
.swatches { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.swatches label { position: relative; display: grid; justify-items: center; gap: 6px; cursor: pointer; font: 500 12.5px/1 var(--font-text); color: var(--muted); }
.swatches label em { font-style: normal; font-size: var(--t-small); }
.swatches label > span { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--c) 60%, #fff), var(--c) 55%, color-mix(in oklab, var(--c) 55%, #000));
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-strong); }
.swatches input:checked + span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.swatch-custom input[type="color"] { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.swatch-custom:has(input[type="radio"]:checked) input[type="color"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); border-radius: 50%; }
input[type="color"] { inline-size: 56px; block-size: 40px; border: 1px solid var(--line-strong); border-radius: 10px; background: none; padding: 2px; }
input[type="color"]:disabled { opacity: .4; }
input[type="range"] { width: 100%; accent-color: var(--action); min-height: 44px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--t-small); }
.check input { width: 20px; height: 20px; accent-color: var(--action); }
.form--studio { margin-top: var(--s-2); }

/* the live preview */
.pv { display: grid; gap: 16px; padding: 20px; border-radius: 18px; border: 1px solid rgb(255 255 255 / .08);
  background: radial-gradient(60% 50% at 50% 105%, rgb(224 36 47 / .3), transparent 70%), radial-gradient(70% 60% at 50% 0%, #1d1e22, #0d0d0f 70%); }
[data-tint] { filter: url("#kit-tint"); }
[data-tint] img { filter: grayscale(1) brightness(1.8); } /* grey logos: recolouring would give them the wrong colours */
.pv__scene > .ovr { aspect-ratio: 16 / 9; }
.pv__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: center; }
.pv__cell { min-width: 0; container-type: inline-size; display: grid; place-items: center; min-height: 150px; padding: 10px; border-radius: 12px; background: rgb(255 255 255 / .025); }
.pv__cell > .nk { width: 100%; }
.pv .hud__swap i, .pv .hud__swap span i { font-style: normal; }
.pv.has-logo :is(.disc, .nk-alert .av) { background: var(--logo) center / cover no-repeat; }
/* font choices */
.pv[data-font="wide"] :is(.ovr__t, .ovr__pill, .hud__big, .hud__tab, .nk-alert b, .nk-alert small, .tag-name, .tag-live, .hud__swap span) { font-stretch: 125%; }
.pv[data-font="condensed"] :is(.ovr__t, .ovr__pill, .hud__big, .hud__tab, .nk-alert b, .nk-alert small, .tag-name, .tag-live, .hud__swap span) { font-stretch: 75%; }
.pv[data-font="mono"] :is(.ovr__t, .ovr__pill, .hud__big, .hud__tab, .nk-alert b, .nk-alert small, .tag-name, .tag-live, .hud__swap span) { font-family: var(--font-mono); font-stretch: 100%; letter-spacing: -0.02em; }
/* corner choices */
.pv[data-corners="sharp"] :is(.ovr, .hud__body, .cam2, .ovr__pill, .ovr__game, .ovr__cam, .ovr__chat) { border-radius: 2px; }
.pv[data-corners="round"] :is(.ovr, .cam2) { border-radius: 26px; }
.pv[data-corners="round"] .hud__body { border-radius: 18px; }
/* alert styles: a bar without the disc, or a centred card */
.nk-alert.al-bar { grid-template-columns: 1fr; }
.nk-alert.al-bar .av { display: none; }
.nk-alert.al-bar small { grid-column: 1; margin-left: 0; }
.nk-alert.al-bar b { grid-column: 1; margin-left: 0; padding-left: 6cqw; }
.nk-alert.al-bar b::after { left: 6cqw; }
.nk-alert.al-card { grid-template-columns: 1fr; justify-items: center; row-gap: 3cqw; padding: 6cqw 5cqw 7cqw; border-radius: 3cqw; border: 1.5px solid var(--rx);
  background: linear-gradient(180deg, var(--cx-1), var(--cx-2)); text-align: center; }
.nk-alert.al-card .av { grid-column: 1; grid-row: auto; width: 22cqw; height: 22cqw; }
.nk-alert.al-card small { grid-column: 1; grid-row: auto; justify-self: center; margin: 0; clip-path: none; border-radius: 99px; padding: 1.6cqw 5cqw; }
.nk-alert.al-card b { grid-column: 1; grid-row: auto; margin: 0; padding: 0 0 3cqw; background: none; box-shadow: none; clip-path: none; }
.nk-alert.al-card b::before { content: none; }
.nk-alert.al-card b::after { left: 50%; margin-left: -8cqw; bottom: 0; }
.pv .nk-alert.is-playing b::after { animation: nk-drain var(--hold, 5s) linear 1 both; }

/* bundle builder */
.bundle { align-items: start; row-gap: var(--s-6); }
.blist { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; }
.blist > legend { margin-bottom: var(--s-3); }
.bitem { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 50px; padding: 5px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.bitem input, .season input { width: 20px; height: 20px; accent-color: var(--action); }
.bitem span { display: grid; gap: 2px; } .bitem b { font-weight: 500; } .bitem small { color: var(--muted); font-size: var(--t-small); }
.bitem em, .season em { font-style: normal; font-variant-numeric: tabular-nums; }
.seasons { margin-top: var(--s-5); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.seasons > legend { grid-column: 1 / -1; }
.season { position: relative; display: grid; justify-items: start; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-strong); cursor: pointer; }
.season .sw { width: 100%; height: 46px; border-radius: 10px; background: linear-gradient(120deg, var(--h1), var(--h2)); }
.season input { position: absolute; right: 12px; top: 12px; }
.season:has(input:checked) { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.bsum { position: relative; padding: 24px; border-radius: 18px; border: 1px solid transparent;
  background: radial-gradient(90% 55% at 50% 112%, rgb(224 36 47 / .35), transparent 72%) padding-box, linear-gradient(180deg, #1f2024, #101113) padding-box,
    linear-gradient(140deg, #ffffff 0%, #ff8a93 22%, #7a0d15 42%, #ffd2d6 58%, #8a8e96 78%, #ffffff 100%) border-box; }
.bsum dl { margin: var(--s-4) 0; display: grid; gap: 10px; }
.bsum dl > div { display: flex; justify-content: space-between; gap: 12px; }
.bsum dt { color: var(--muted); } .bsum dd { margin: 0; font-variant-numeric: tabular-nums; }
.bsum .total { padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--t-lead); }
.bsum .total dd { font: 800 2rem/1 var(--font-display); }
.bsum .btn { width: 100%; }

/* share and email */
.send-card { display: grid; gap: var(--s-4); align-content: start; padding: 28px; }
.share-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.share-row input { min-height: 48px; padding: 0 14px; border-radius: var(--r-md, 10px); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: 400 var(--t-small)/1 var(--font-mono); }
.after-pay { margin: 0; padding-left: 1.4em; list-style: decimal; display: grid; gap: 12px; line-height: 1.55; }
.after-pay li::marker { color: var(--action); font-weight: 700; }

@media (max-width: 1023px) {
  .studio__preview, .bsum { position: static; }
  .studio__preview { order: -1; }
  .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .pv { padding: 12px; gap: 10px; }
  .pv__row { gap: 10px; }
  .pv__cell { min-height: 120px; padding: 6px; }
  .share-row { grid-template-columns: 1fr; }
}

@media (max-width: 1023px) { #bundle { --h: 2; --hm: 2; } }

.share-pv { container-type: inline-size; filter: url("#kit-tint"); }
.share-pv > .ovr { aspect-ratio: 16 / 7; }
@media (min-width: 640px) and (max-width: 1023px) { .share-pv > .ovr { aspect-ratio: 16 / 10; } }
.bside { display: grid; gap: var(--s-5); align-content: start; }
.bside .seasons { margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.season { padding: 10px; gap: 6px; font-size: var(--t-small); } .season .sw { height: 28px; } .season input { right: 8px; top: 8px; width: 18px; height: 18px; }.pv__stage { container-type: inline-size; display: grid; place-items: center; min-height: 260px; padding: 24px 12%; border-radius: 14px; background: radial-gradient(60% 70% at 50% 100%, rgb(255 255 255 / .05), transparent 70%), rgb(255 255 255 / .025); }
.pv__stage > .nk-alert { width: 100%; }
@media (max-width: 639px) { .pv__stage { min-height: 170px; padding: 16px 6%; } }@media (max-width: 639px) { .pv--alerts .pv__row { display: none; } .pv__cell { min-height: 108px; } }
@media (max-width: 639px) { .form--studio { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .form--studio > .field--full, .form--studio > p, .form--studio > .btn-row { grid-column: 1 / -1; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* this page's sections fit their content: no empty screen-height filler under the studio, the alert lab or the forms */
main > :is(section, .section):not(.hero) { height: auto !important; min-height: 0 !important; padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }.agree { align-items: flex-start; gap: 12px; line-height: 1.5; }
.agree input { margin-top: 2px; flex: none; }
.agree a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--action); }

/* the basics: only choices the kit can use (look.js) */
[data-hide][hidden] { display: none !important; }
.pv .hud__swap span { animation: none !important; opacity: 0 !important; transform: none !important; transition: opacity .25s ease; }
.pv .hud__swap span.is-on { opacity: 1 !important; }
.pv :is(.ovr__name, .tag-name, .hud__swap i) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form--studio .field { min-width: 0; align-content: start; }
@media (max-width: 639px) {
  .pv__row { grid-template-columns: minmax(0, 1fr); }
  .pv .hud__tab { padding-left: 11cqw; } /* clear of the disc */
  .pv .ovr__sub { font-size: max(9px, 2.5cqw); letter-spacing: .14em; }
  .pv .ovr__sub::before, .pv .ovr__sub::after { display: none; }
}
#useLook[hidden] { display: none !important; }

/* transitions: five $5 stingers, each with a short preview that plays while it's on screen */
.tr-lead { max-width: 62ch; margin-top: 10px; }
.tr-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 1180px) { .tr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 640px) { .tr-grid { grid-template-columns: minmax(0, 1fr); } }
.tr-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 14px 14px 18px; }
.tr-card h3, .tr-card p { padding: 0 6px; }
.tr-media { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b0b0d; }
.tr-media video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.tr-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 0; }
.tr-note { max-width: 80ch; margin-top: 22px; }