/* The Nobel Rooms — "Try it on your face" studio
   Caption styles ported from the old site's caption presets.
   Graphics ported from the MOGRT 101 Pack (lower-third, highlighter, pill-check,
   subscribe-click, big-counter, notification, speech-bubble, arrow-draw). */

/* Caption fonts: latin woff2 from @fontsource (OFL / Apache, see assets/fonts/OFL-caption-fonts.txt).
   Browsers only download a face when a caption on screen uses it. */
@font-face { font-family: "NR Poppins"; src: url("../assets/fonts/poppins-latin-100-normal.woff2") format("woff2"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Poppins"; src: url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Poppins"; src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Poppins"; src: url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Anton"; src: url("../assets/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Bebas"; src: url("../assets/fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Barlow Condensed"; src: url("../assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Bricolage"; src: url("../assets/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Caveat"; src: url("../assets/fonts/caveat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Marker"; src: url("../assets/fonts/permanent-marker-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Kalam"; src: url("../assets/fonts/kalam-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Great Vibes"; src: url("../assets/fonts/great-vibes-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Instrument Sans"; src: url("../assets/fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Instrument Serif"; src: url("../assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "NR Teko"; src: url("../assets/fonts/teko-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "NR DM Serif"; src: url("../assets/fonts/dm-serif-display-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "NR Khand"; src: url("../assets/fonts/khand-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Manrope"; src: url("../assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Orbitron"; src: url("../assets/fonts/orbitron-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Montserrat"; src: url("../assets/fonts/montserrat-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "NR Inter"; src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face {
  font-family: "NR Lora";
  src: url("../assets/fonts/Lora-SemiBoldItalic-sub.woff2") format("woff2");
  font-weight: 600; font-style: italic; font-display: swap;
}

/* ---------- Layout ---------- */
.studio { background: var(--cream-2); overflow: clip; }
.studio .upload { background: var(--cream); }
.studio .upload:hover { background: #fff; }
.studio .seg { background: var(--cream-3); }
.studio .studio__step small { background: var(--cream); }
.studio__app {
  display: grid; gap: 20px; align-items: start;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 980px) {
  .studio__app { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 4vw, 64px); }
  .studio__stagecol { order: 2; position: sticky; top: 96px; }
  .studio__controls { order: 1; }
}

/* ---------- Stage ---------- */
.studio__stagecol { display: grid; gap: 14px; justify-items: center; }
.studio__frame {
  --u: 1.62cqw;
  position: relative; container-type: size; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); background: var(--ink-2);
  box-shadow: 0 40px 70px -34px rgba(37, 35, 31, .6), 0 10px 24px -14px rgba(37, 35, 31, .35);
  height: min(60svh, 560px); aspect-ratio: 9 / 16;
  transition: aspect-ratio .6s var(--ease-out), height .6s var(--ease-out), width .6s var(--ease-out);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.studio__frame[data-aspect="16x9"] { --u: .78cqw; aspect-ratio: 16 / 9; height: auto; width: min(100%, 560px); }
@media (min-width: 980px) {
  .studio__frame { height: min(76svh, 660px); }
  .studio__frame[data-aspect="16x9"] { height: auto; width: min(48vw, 660px); }
}
/* brand bracket marks, kept under the graphics */
.studio__frame::before, .studio__frame::after {
  content: ""; position: absolute; z-index: 2; width: 28px; height: 28px; pointer-events: none;
  border: 3px solid rgba(246, 243, 235, .85);
}
.studio__frame::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.studio__frame::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }

.studio__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  pointer-events: none;
}
/* the sample poster has a burned-in caption at the bottom: crop it out */
.studio__photo.is-sample { object-position: 46% 0; transform: scale(1.34); transform-origin: 50% 6%; }
.studio__frame[data-aspect="16x9"] .studio__photo.is-sample { object-position: 50% 0; transform: scale(1.3); transform-origin: 45% 0; }
.studio__frame::selection { background: transparent; }

.studio__drop {
  position: absolute; inset: 10px; z-index: 30; display: grid; place-items: center; pointer-events: none;
  border: 3px dashed var(--coral); border-radius: 22px; background: rgba(37, 35, 31, .62);
  color: var(--cream); font-family: var(--display); font-weight: 600; font-size: 1.3rem;
  opacity: 0; transition: opacity .2s;
}
.is-dragover .studio__drop { opacity: 1; }

.studio__layer { position: absolute; inset: 0; z-index: 6; }
.studio__hint {
  position: absolute; z-index: 8; left: 50%; top: 16px; transform: translateX(-50%);
  white-space: nowrap; padding: 6px 12px; border-radius: 999px; pointer-events: none;
  background: rgba(20, 19, 17, .72); color: var(--cream); font-size: .78rem; font-weight: 600;
  opacity: 0; transition: opacity .3s;
}
.studio__hint.is-on { opacity: 1; }

.studio__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.studio__play {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--cream); font-family: var(--display); font-weight: 600; font-size: 1rem;
  transition: transform .35s var(--ease-out), box-shadow .3s;
}
.studio__play svg { width: 18px; height: 18px; color: var(--coral); }
.studio__play:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.studio__play:active { transform: scale(.97); }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--cream-2); }
.seg__btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums;
  transition: background-color .25s, color .25s;
}
.seg__btn[aria-checked="true"] { background: var(--cream); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(37, 35, 31, .4); }
.seg__ico { display: block; border: 2px solid currentColor; border-radius: 3px; }
.seg__ico--tall { width: 9px; height: 15px; }
.seg__ico--wide { width: 16px; height: 10px; }

/* ---------- Controls ---------- */
.studio__controls { min-width: 0; }
.studio__tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--ink); margin-bottom: 18px;
}
.studio__tabs button {
  height: 42px; border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: var(--muted-dark);
  font-family: var(--display); font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background-color .25s, color .25s;
}
.studio__tabs button[aria-selected="true"] { background: var(--cream); color: var(--ink); }
.studio__tabs b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--grad-sig); color: var(--ink); font-size: .75rem; display: inline-grid; place-items: center; font-family: var(--body); font-weight: 800; }
.studio__tabs b[hidden] { display: none; }

.studio__panel { display: none; }
[data-panel="photo"] [data-panel-id="photo"],
[data-panel="caps"] [data-panel-id="caps"],
[data-panel="mg"] [data-panel-id="mg"] { display: block; }

@media (min-width: 980px) {
  .studio__tabs { display: none; }
  .studio__panel { display: block; padding-block: 26px; border-top: 1px solid var(--line); }
  .studio__panel:first-of-type { padding-top: 0; border-top: 0; }
}

.studio__step {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: clamp(1.35rem, 1.2rem + .5vw, 1.7rem); margin-bottom: 16px;
}
.studio__step > span {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--ink); color: var(--cream); font-size: 1.05rem;
}
.studio__step small { font-family: var(--body); font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; padding: 4px 10px; border-radius: 999px; background: var(--cream-2); }
@media (max-width: 979px) { .studio__step { display: none; } .studio__panel[data-panel-id="mg"] .studio__step { display: flex; font-size: 0; margin-bottom: 12px; } .studio__panel[data-panel-id="mg"] .studio__step > span { display: none; } }

/* upload */
.upload {
  display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r-md); cursor: pointer;
  background: var(--cream-2); box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow .25s, background-color .25s, transform .35s var(--ease-out);
}
.upload:hover { background: var(--cream-3); }
.upload:focus-within { box-shadow: inset 0 0 0 2px var(--coral-mid); }
.is-dragover .upload { box-shadow: inset 0 0 0 2px var(--coral-mid); background: #fff; }
.upload__icon { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--ink); }
.upload__icon svg { width: 24px; height: 24px; }
.upload__text { display: grid; gap: 2px; }
.upload__text strong { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.upload__text small { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.upload__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.upload__row:not(:has(:not([hidden]))) { display: none; }
.chipbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--cream); font-weight: 700; font-size: .9rem; transition: transform .3s var(--ease-out), opacity .2s;
}
.chipbtn:hover { transform: translateY(-1px); }
.chipbtn[hidden] { display: none; }
.chipbtn:focus-within { outline: 3px solid var(--coral-mid); outline-offset: 3px; }
.chipbtn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.chipbtn--ghost:disabled { opacity: .45; cursor: default; transform: none; }
.chipbtn--selfie { display: none; }
@media (pointer: coarse) { .chipbtn--selfie { display: inline-flex; } }
.studio__privacy { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.studio__privacy svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.studio__err { margin-top: 10px; color: var(--red); font-weight: 600; font-size: .9rem; }

/* line field */
.field { display: grid; gap: 6px; }
.field__label { font-size: .9rem; font-weight: 600; color: var(--muted); }
.field__input {
  width: 100%; height: 52px; padding: 0 18px; border-radius: 14px; border: 0; background: #fff; color: var(--ink);
  font: 600 1.05rem/1 var(--body); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s;
}
.field__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--coral-mid); }
.field__tip { font-size: .85rem; color: var(--muted); margin: 8px 0 16px; }

/* caption style tiles */
.capgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 979px) {
  .capgrid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .capgrid::-webkit-scrollbar { display: none; }
  .captile { flex: 0 0 132px; scroll-snap-align: start; }
}
.captile {
  display: grid; grid-template-rows: 1fr auto; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform .35s var(--ease-out), box-shadow .25s;
}
.captile:hover { transform: translateY(-2px); }
.captile[aria-checked="true"] { box-shadow: inset 0 0 0 2.5px var(--coral-mid), 0 10px 20px -14px rgba(201, 54, 47, .7); }
.captile__demo {
  --u: 1px; container-type: inline-size;
  height: 78px; display: grid; place-items: center; overflow: hidden; background: #231f27; margin: 3px 3px 0; border-radius: 11px 11px 4px 4px;
}
.captile__demo .sc { position: static; transform: none; width: 100%; font-size: 9.5cqw; padding: 0 6px; }
.captile__name { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px 9px; font-size: .8rem; font-weight: 700; line-height: 1.2; }
.captile__name i { width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--grad-sig); display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--ease-out); }
.captile__name i svg { width: 11px; height: 11px; color: var(--ink); }
.captile[aria-checked="true"] .captile__name i { opacity: 1; transform: none; }

/* graphics tiles */
.mggrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 979px) { .mggrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } }
@media (max-width: 420px) { .mggrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mgtile {
  position: relative; display: grid; gap: 6px; justify-items: center; align-content: start; padding: 8px 6px 10px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--ink); color: var(--cream); transition: transform .35s var(--ease-out), background-color .25s;
}
.mgtile:hover { transform: translateY(-2px); background: var(--ink-3); }
.mgtile:active { transform: scale(.96); }
.mgtile__pv { width: 100%; aspect-ratio: 16 / 10; border-radius: 9px; background: #34312b; display: grid; place-items: center; overflow: hidden; }
.mgtile__pv svg { width: 78%; height: 78%; }
.mgtile__name { font-size: .78rem; font-weight: 700; line-height: 1.2; text-align: center; }
.mgtile__add { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.mgtile__add svg { width: 13px; height: 13px; }
.mgtile__n { position: absolute; top: 4px; left: 4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: none; place-items: center; background: var(--grad-sig); color: var(--ink); font-size: .72rem; font-weight: 800; }
.mgtile.has-n .mgtile__n { display: grid; }
.mgfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.swatches { display: flex; align-items: center; gap: 8px; }
.swatches__label { font-size: .85rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(37, 35, 31, .15); transition: transform .3s var(--ease-out), box-shadow .2s; }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--ink); }
.swatches button:hover { transform: scale(1.08); }

/* ---------- CTA ---------- */
.studio__cta {
  margin-top: clamp(36px, 5vw, 56px); padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-lg);
  background: var(--ink); color: var(--cream); display: grid; gap: 20px; align-items: center;
}
@media (min-width: 980px) {
  .studio__cta { grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr); gap: 28px; }
}
.studio__ctatitle { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.studio__ctasub { color: var(--muted-dark); margin-top: 8px; max-width: 44ch; }
.studio__cta .btn { justify-self: start; }
.lookform { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 5px; border-radius: 999px; background: var(--ink-3); position: relative; }
.lookform__input { min-width: 0; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--cream); font: 600 .95rem var(--body); }
.lookform__input::placeholder { color: var(--muted-dark); opacity: .8; }
.lookform__input:focus { outline: none; }
.lookform:focus-within { box-shadow: 0 0 0 2px var(--coral-mid); }
.lookform__btn { height: 44px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; background: var(--cream); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: .95rem; white-space: nowrap; transition: transform .3s var(--ease-out); }
.lookform__btn:hover { transform: translateY(-1px); }
.lookform__msg { grid-column: 1 / -1; font-size: .88rem; padding: 0 14px; color: var(--muted-dark); }
.lookform__msg:empty { display: none; }
.lookform.is-done { border-radius: var(--r-md); }
.lookform.is-done .lookform__msg { color: var(--cream); padding: 8px 14px 6px; }
.lookform.is-error .lookform__msg { color: var(--coral); }
@media (max-width: 420px) {
  .lookform { grid-template-columns: 1fr; border-radius: var(--r-md); }
  .lookform__btn { width: 100%; }
}

/* =================================================================
   CAPTIONS (24 styles ported from the old-site caption presets)
   ================================================================= */
.studio__cap {
  position: absolute; z-index: 10; left: 6%; right: 6%; top: var(--cap-y, 64%); height: 22%; transform: translateY(-50%);
  display: grid; justify-items: center; align-content: center;
  cursor: grab; touch-action: none; border-radius: 16px; outline: 2px dashed transparent; outline-offset: -2px;
  transition: outline-color .2s, background-color .2s;
}
.studio__frame[data-aspect="16x9"] .studio__cap { height: 26%; left: 8%; right: 8%; }
.studio__cap:hover, .studio__cap.is-dragging { outline-color: rgba(246, 243, 235, .55); background: rgba(20, 19, 17, .12); }
.studio__cap:focus-visible { outline: 2px dashed var(--cream); outline-offset: -2px; }
.studio__cap.is-dragging { cursor: grabbing; }
.studio__cap::after { /* up/down handle, shows on hover and focus */
  content: ""; position: absolute; right: -4px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325231F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M8 8l4-4 4 4M8 16l4 4 4-4'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease-out); pointer-events: none;
}
.studio__cap:hover::after, .studio__cap:focus-visible::after, .studio__cap.is-dragging::after { opacity: 1; transform: none; }

.sc { --fs: 6.2cqw; display: grid; justify-items: center; text-align: center; width: 100%; font-size: var(--fs); line-height: 1.04; pointer-events: none; }
.studio__frame[data-aspect="16x9"] .sc { --fs: 3.9cqw; }
.sc .ln { display: flex; flex-wrap: wrap; justify-content: center; column-gap: .26em; max-width: 100%; }
.sc .w, .sc .ch { display: inline-block; will-change: transform; }
.sc .ch { white-space: pre; }
.sc .wd { display: inline-flex; white-space: nowrap; }
.sc .w { transition: color .18s, text-shadow .18s; }
:where(.sc) .ln { text-shadow: 0 .05em .18em rgba(0, 0, 0, .6); }

/* --- Bold --- */
/* Neon Pop — big words, soft cyan glow; the spoken word lights up */
.sc--neon-pop { font-family: var(--body); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.sc--neon-pop .ln--n { color: #1cc9f8; font-size: .9em; text-shadow: 0 0 .3em rgba(28, 201, 248, .75), 0 0 .08em #fff, 0 .05em .12em rgba(0,0,0,.6); }
.sc--neon-pop .ln--e { color: #fff; font-size: 1.04em; text-shadow: 0 0 .35em rgba(28, 201, 248, .55), 0 .05em .14em rgba(0,0,0,.65); }
.sc--neon-pop .w.is-now { color: #fff; text-shadow: 0 0 .25em #1cc9f8, 0 0 .6em rgba(28, 201, 248, .9), 0 .05em .12em rgba(0,0,0,.6); }

/* Highlighted Word — lime box on the key phrase */
.sc--highlighted { font-family: "NR Poppins", var(--body); font-weight: 700; text-transform: uppercase; line-height: 1.02; }
.sc--highlighted .ln--n { color: #fff; font-size: .52em; text-shadow: 0 .06em .2em rgba(0,0,0,.7); }
.sc--highlighted .ln--e { color: #000; font-size: 1.12em; position: relative; padding: .02em .16em 0; margin: .06em 0; isolation: isolate; text-shadow: none; }
.sc--highlighted .ln--e::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #afd425; transform-origin: left; transform: scaleX(var(--hl, 1)); }

/* Every Single Day — one huge yellow word, letters build */
.sc--every-day { font-family: var(--body); font-weight: 700; letter-spacing: -.02em; line-height: .98; }
.sc--every-day .ln--e { color: #ffea00; font-size: 1.6em; text-shadow: 0 .04em .14em rgba(0,0,0,.55); }
.sc--every-day .ln--n { color: #fff; font-size: .92em; }

/* Lime Reel — small lime condensed caps, then a heavy grotesque line */
.sc--lime-reel { line-height: .98; }
.sc--lime-reel .ln--n { font-family: "NR Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #d7ff52; font-size: .66em; }
.sc--lime-reel .ln--e { font-family: "NR Bricolage", sans-serif; font-weight: 800; color: #fff; font-size: 1.14em; letter-spacing: -.03em; }

/* Anton Stack — condensed caps that stamp into a stack */
.sc--anton-stack { font-family: "NR Anton", Impact, sans-serif; font-weight: 400; text-transform: uppercase; line-height: 1; letter-spacing: .01em; color: #fff; }
.sc--anton-stack .ln--n { font-size: .92em; }
.sc--anton-stack .ln--e { font-size: 1.16em; }

/* Slide Up Line — Bebas lines rising out of a slot */
.sc--slide-up-line { font-family: "NR Bebas", sans-serif; font-weight: 400; text-transform: uppercase; line-height: .96; letter-spacing: .02em; color: #fff; }
.sc--slide-up-line .ln--n { font-size: 1.04em; }
.sc--slide-up-line .ln--e { font-size: 1.36em; }

/* Neon Trend — condensed italic, green finish */
.sc--neon-trend { font-family: "NR Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; line-height: .98; }
.sc--neon-trend .ln { transform: skewX(-9deg); }
.sc--neon-trend .ln--n { color: #fff; font-size: .96em; }
.sc--neon-trend .ln--e { color: #4dff00; font-size: 1.18em; text-shadow: 0 0 .22em rgba(128, 255, 0, .8), 0 .05em .12em rgba(0,0,0,.55); }

/* --- Fun --- */
/* Bounce Style — Anton words hop in, lime handwriting answers */
.sc--bounce-style { line-height: .95; }
.sc--bounce-style .ln--n { font-family: "NR Anton", sans-serif; color: #fff; font-size: .96em; }
.sc--bounce-style .ln--e { font-family: "NR Caveat", cursive; font-weight: 700; color: #caff38; font-size: 1.22em; transform: rotate(-4deg); margin-top: -.06em; }

/* Bold Bounce — heavy caps, violet payoff, the spoken word turns yellow */
.sc--bold-bounce { font-family: "NR Poppins", var(--body); font-weight: 700; text-transform: uppercase; line-height: 1.02; }
.sc--bold-bounce .ln--n { color: #fff; font-size: .78em; -webkit-text-stroke: .1em #111; paint-order: stroke fill; text-shadow: none; }
.sc--bold-bounce .ln--e { color: #9a4dff; font-size: .78em; -webkit-text-stroke: .1em #fff; paint-order: stroke fill; text-shadow: none; filter: drop-shadow(0 .06em .1em rgba(0,0,0,.45)); }
.sc--bold-bounce .ln--n .w.is-now { color: #ffe14d; }

/* Gold Bounce — warm gold payoff with a red under-shadow */
.sc--gold-bounce { line-height: 1; }
.sc--gold-bounce .ln--n { font-family: var(--body); font-weight: 600; color: #fff; font-size: .82em; }
.sc--gold-bounce .ln--e { font-family: "NR Bricolage", sans-serif; font-weight: 800; text-transform: uppercase; color: #ffc531; font-size: 1.16em; letter-spacing: -.01em; text-shadow: 0 .06em 0 #de1717, 0 .12em .22em rgba(0,0,0,.5); }
.sc--gold-bounce .w.is-now { color: #ffe27a; }

/* Lime Sweep — marker words wiped on */
.sc--lime-sweep { font-family: "NR Marker", cursive; font-weight: 400; line-height: 1.02; }
.sc--lime-sweep .ln { transform: rotate(-5deg); }
.sc--lime-sweep .ln--n { color: #fff; font-size: 1.04em; }
.sc--lime-sweep .ln--e { color: #e1ff00; font-size: 1.18em; text-shadow: 0 0 .25em rgba(225, 255, 0, .45), 0 .05em .12em rgba(0,0,0,.6); }

/* Handwrite Pop — light setup, handwritten payoff tilts in */
.sc--handwrite-pop { line-height: 1.02; }
.sc--handwrite-pop .ln--n { font-family: "NR Montserrat", sans-serif; font-weight: 300; color: #fff; font-size: .92em; }
.sc--handwrite-pop .ln--e { font-family: "NR Kalam", cursive; font-weight: 700; font-size: 1.08em; text-shadow: none; filter: drop-shadow(0 .05em .1em rgba(0,0,0,.55)); }
.sc--handwrite-pop .ln--e .w { background: linear-gradient(180deg, #ffd84a, #ff8a1f); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .04em; }

/* Best Animated — clean setup, blue script payoff pops */
.sc--best-animated { line-height: .98; }
.sc--best-animated .ln--n { font-family: "NR Poppins", sans-serif; font-weight: 500; color: #fff; font-size: .82em; letter-spacing: -.01em; }
.sc--best-animated .ln--e { font-family: "NR Caveat", cursive; font-weight: 700; font-size: 1.5em; text-shadow: none; filter: drop-shadow(0 0 .12em rgba(46, 168, 255, .6)) drop-shadow(0 .04em .06em rgba(0,0,0,.5)); }
.sc--best-animated .ln--e .w { background: linear-gradient(180deg, #8fdcff, #1d6dff); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .06em; }

/* Animate These — light setup, serif payoff builds letter by letter */
.sc--animate-these { line-height: 1; }
.sc--animate-these .ln--n { font-family: "NR Montserrat", sans-serif; font-weight: 300; color: #fff; font-size: .8em; letter-spacing: .02em; }
.sc--animate-these .ln--e { font-family: "NR DM Serif", serif; font-style: italic; color: #2fb1ff; font-size: 1.46em; text-shadow: 0 0 .25em rgba(5, 159, 255, .6), 0 .04em .1em rgba(0,0,0,.5); }

/* --- Cinematic --- */
/* Cinematic Style — bold sans, script underneath, both come into focus */
.sc--cinematic { line-height: .9; }
.sc--cinematic .ln--n { font-family: "NR Instrument Sans", sans-serif; font-weight: 700; color: #fff; font-size: .9em; letter-spacing: -.02em; }
.sc--cinematic .ln--e { font-family: "NR Great Vibes", cursive; font-weight: 400; color: #fff; font-size: 1.5em; margin-top: -.14em; text-shadow: 0 0 .3em rgba(0,0,0,.45); }

/* You're a Creator — Anton setup, pink script payoff */
.sc--creator { line-height: .9; }
.sc--creator .ln--n { font-family: "NR Anton", sans-serif; color: #fff; font-size: .92em; }
.sc--creator .ln--e { font-family: "NR Great Vibes", cursive; font-size: 1.6em; text-shadow: none; filter: drop-shadow(0 .04em .12em rgba(0,0,0,.55)); }
.sc--creator .ln--e .w { background: linear-gradient(90deg, #ffb3dc, #ff5c8a); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .12em; }

/* Serif Rise — lime serif italic over condensed caps */
.sc--serif-rise { line-height: .98; }
.sc--serif-rise .ln--n { font-family: "NR Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; color: #aeff00; font-size: 1.04em; }
.sc--serif-rise .ln--e { font-family: "NR Teko", sans-serif; font-weight: 600; text-transform: uppercase; color: #fff; font-size: 1.28em; letter-spacing: .03em; line-height: .86; }

/* Editorial Blue — clean setup, crisp blue serif line */
.sc--editorial-blue { line-height: 1; }
.sc--editorial-blue .ln--n { font-family: "NR Poppins", sans-serif; font-weight: 500; color: #fff; font-size: .78em; }
.sc--editorial-blue .ln--e { font-family: "NR DM Serif", serif; font-style: italic; color: #99e0ff; font-size: 1.32em; }

/* Premium — wide caps settle into place */
.sc--premium { line-height: 1; }
.sc--premium .ln--e { font-family: "NR Khand", sans-serif; font-weight: 700; text-transform: uppercase; color: #fff; font-size: 1.5em; letter-spacing: .04em; line-height: .92; }
.sc--premium .ln--n { font-family: "NR Manrope", sans-serif; font-weight: 700; text-transform: uppercase; color: rgba(255, 255, 255, .9); font-size: .46em; letter-spacing: .3em; margin-top: .2em; }

/* Momentum — futuristic caps, gold glow on the key word */
.sc--momentum { font-family: "NR Orbitron", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; line-height: 1.08; }
.sc--momentum .ln--n { color: #fff; font-size: .62em; }
.sc--momentum .ln--e { font-size: .74em; text-shadow: none; }
.sc--momentum .ln--e .w { background: linear-gradient(90deg, #ffe68a, #ffb514); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 .14em rgba(255, 149, 0, .85)) drop-shadow(0 .04em .06em rgba(0,0,0,.5)); }

/* --- Clean --- */
/* Clean Pop — thin setup, blue semibold payoff; the spoken word brightens */
.sc--clean-pop { font-family: "NR Poppins", sans-serif; line-height: 1.04; }
.sc--clean-pop .ln--n { font-weight: 100; color: rgba(255, 255, 255, .82); font-size: .82em; }
.sc--clean-pop .ln--e { font-weight: 600; text-transform: uppercase; color: #4a92ff; font-size: 1.04em; }
.sc--clean-pop .ln--n .w.is-now { color: #fff; }

/* Minimal Blur — one quiet line, words sharpen in */
.sc--minimal-blur { font-family: "NR Inter", var(--body); font-weight: 600; letter-spacing: -.02em; }
.sc--minimal-blur .ln--n, .sc--minimal-blur .ln--e { color: #fff; font-size: .8em; }

/* Blur Slide Up — light wide caps rise and sharpen */
.sc--blur-slide { font-family: "NR Montserrat", sans-serif; font-weight: 300; text-transform: uppercase; color: #fff; line-height: 1.02; }
.sc--blur-slide .ln--n { font-size: .62em; letter-spacing: .14em; }
.sc--blur-slide .ln--e { font-size: 1.22em; letter-spacing: .05em; }

/* Kicker Stack — small spaced kicker over a heavy line */
.sc--kicker-stack { text-transform: uppercase; color: #fff; line-height: 1; }
.sc--kicker-stack .ln--n { font-family: "NR Montserrat", sans-serif; font-weight: 300; font-size: .44em; letter-spacing: .3em; margin-bottom: .3em; }
.sc--kicker-stack .ln--e { font-family: "NR Anton", sans-serif; font-size: 1.2em; letter-spacing: .01em; }

/* =================================================================
   GRAPHICS (ported from MOGRT 101 Pack, 1u = 1% of a 1080p frame)
   ================================================================= */
.mg {
  --accent: #d4f23c; --accentInk: #11140a; --panel: #1b1d18; --mgink: #fff; --mgmuted: #aab0a0; --edge: rgba(255, 255, 255, .22);
  position: absolute; z-index: 1; transform: translate(-50%, -50%); cursor: grab; touch-action: none;
  border-radius: 12px; outline: 2px dashed transparent; outline-offset: 6px; transition: outline-color .2s;
  font-family: var(--display); color: var(--mgink);
}
.mg:hover, .mg.is-selected, .mg:focus-visible { outline-color: rgba(246, 243, 235, .8); }
.mg.is-dragging { cursor: grabbing; z-index: 5; }
.mg:focus-visible { outline: 2px dashed var(--cream); outline-offset: 6px; }
.mg__x {
  position: absolute; top: -14px; right: -14px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cream); color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.4);
  opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease-out); pointer-events: none;
}
.mg__x svg { width: 14px; height: 14px; transform: rotate(45deg); }
.mg:hover .mg__x, .mg.is-selected .mg__x, .mg:focus-within .mg__x { opacity: 1; transform: none; pointer-events: auto; }
@media (pointer: coarse) { .mg__x { width: 34px; height: 34px; top: -17px; right: -17px; } }
.mg__in { pointer-events: none; }

.mg .d { font-family: var(--display); font-stretch: 75%; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
.mg .b { font-family: var(--body); font-weight: 600; }
.mg svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mg .orb { display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accentInk); box-shadow: 0 calc(var(--u) * .8) calc(var(--u) * 2.4) rgba(0,0,0,.4); flex: none; }
/* premium glass with gradient rim (MOGRT premium.css .gl) */
.mg .gl {
  position: relative; border: calc(var(--u) * .18) solid transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, var(--panel)), var(--panel)) padding-box,
              linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, #fff), transparent 36%, color-mix(in srgb, var(--accent) 50%, transparent) 68%, color-mix(in srgb, var(--accent) 95%, #fff)) border-box;
  box-shadow: inset 0 calc(var(--u) * .12) calc(var(--u) * .25) rgba(255,255,255,.38), 0 0 calc(var(--u) * 4.4) color-mix(in srgb, var(--accent) 24%, transparent), 0 calc(var(--u) * 2.2) calc(var(--u) * 5) rgba(0,0,0,.5);
  overflow: hidden;
}
.mg .shn { position: absolute; top: -12%; bottom: -12%; width: 34%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-18deg); pointer-events: none; }

/* lower third (design: accent bar) */
.mg-lt { display: flex; align-items: stretch; gap: calc(var(--u) * 1.4); white-space: nowrap; }
.mg-lt__bar { width: calc(var(--u) * .7); background: var(--accent); border-radius: 99px; transform-origin: top; }
.mg-lt__tx { display: flex; flex-direction: column; justify-content: center; gap: calc(var(--u) * .5); padding: calc(var(--u) * .3) 0; overflow: hidden; }
.mg-lt__nm { font-size: calc(var(--u) * 4.6); text-shadow: 0 calc(var(--u) * .2) calc(var(--u) * 1.2) rgba(0,0,0,.55); }
.mg-lt__rl { font-size: calc(var(--u) * 1.9); text-shadow: 0 calc(var(--u) * .1) calc(var(--u) * .8) rgba(0,0,0,.7); }

/* highlighter */
.mg-hl { width: max-content; max-width: calc(var(--u) * 56); text-align: center; line-height: 1.12; font-size: calc(var(--u) * 5.2); text-shadow: 0 calc(var(--u) * .2) calc(var(--u) * 1) rgba(0,0,0,.5); }
.mg-hl .w { display: inline-block; margin: 0 .12em; }
.mg-hl .hl { position: relative; display: inline-block; padding: 0 .18em; color: var(--accentInk); z-index: 0; text-shadow: none; }
.mg-hl .hl i { position: absolute; inset: .04em 0 .02em; background: var(--accent); border-radius: .12em; transform-origin: left; z-index: -1; }

/* pill check */
.mg-pc { display: flex; flex-direction: column; gap: calc(var(--u) * 1.6); }
.mg-pc__p { display: flex; align-items: center; gap: calc(var(--u) * 2); width: calc(var(--u) * 44); padding: calc(var(--u) * 1.1) calc(var(--u) * 1.8) calc(var(--u) * 1.1) calc(var(--u) * 1.1); border-radius: 99px; font-size: calc(var(--u) * 2.9); white-space: nowrap; }
.mg-pc__ic { flex: none; width: calc(var(--u) * 6); height: calc(var(--u) * 6); border-radius: 50%; display: grid; place-items: center; font-size: calc(var(--u) * 2.9); color: #fff;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 60%, #fff), var(--accent) 60%, color-mix(in srgb, var(--accent) 60%, #000));
  box-shadow: 0 0 calc(var(--u) * 1.6) color-mix(in srgb, var(--accent) 60%, transparent); }
.mg-pc__ic svg.i { stroke: var(--accentInk); }
.mg-pc__tx { flex: 1; }
.mg-pc__rd { flex: none; position: relative; width: calc(var(--u) * 3.8); height: calc(var(--u) * 3.8); border-radius: 50%; border: calc(var(--u) * .3) solid rgba(255,255,255,.7); }
.mg-pc__rd b { position: absolute; inset: calc(var(--u) * -.3); border-radius: 50%; background: var(--accent); transform: scale(0); }
.mg-pc__rd svg { position: absolute; inset: 0; width: 100%; height: 100%; padding: calc(var(--u) * .6); fill: none; stroke: var(--accentInk); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }

/* subscribe click */
.mg-sub { position: relative; display: flex; align-items: center; gap: calc(var(--u) * 1.8); padding: calc(var(--u) * 1.2) calc(var(--u) * 1.3); border-radius: 99px; background: var(--panel); border: calc(var(--u) * .12) solid var(--edge); white-space: nowrap; box-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 3) rgba(0,0,0,.45); }
.mg-sub .orb { width: calc(var(--u) * 5.6); height: calc(var(--u) * 5.6); font-size: calc(var(--u) * 2.8); font-family: var(--display); font-weight: 700; }
.mg-sub__nm { font-size: calc(var(--u) * 2.6); line-height: 1.1; }
.mg-sub__nm small { display: block; font-size: calc(var(--u) * 1.7); color: var(--mgmuted); font-family: var(--body); font-weight: 600; text-transform: none; letter-spacing: 0; margin-top: calc(var(--u) * .3); }
.mg-sub__btn { position: relative; display: grid; margin-left: calc(var(--u) * 1.2); }
.mg-sub__f { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * .8); font-size: calc(var(--u) * 2.3); padding: calc(var(--u) * 1.3) calc(var(--u) * 2.4); border-radius: 99px; }
.mg-sub__f--a { background: #ff2d2d; color: #fff; }
.mg-sub__f--b { background: #3a3c37; color: #fff; opacity: 0; }
.mg-sub__cur { position: absolute; left: 0; top: 0; width: calc(var(--u) * 3.6); height: calc(var(--u) * 3.6); z-index: 5; color: #fff; filter: drop-shadow(0 calc(var(--u) * .2) calc(var(--u) * .4) rgba(0,0,0,.6)); }
.mg-sub__cur svg { width: 100%; height: 100%; stroke: #111; stroke-width: 1.4; }

/* big counter */
.mg-bc { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 1); }
.mg-bc__row { display: flex; align-items: center; gap: calc(var(--u) * 2); }
.mg-bc .orb { width: calc(var(--u) * 8); height: calc(var(--u) * 8); font-size: calc(var(--u) * 4.4); }
.mg-bc__n { font-size: calc(var(--u) * 13); line-height: .9; font-variant-numeric: tabular-nums; text-shadow: 0 calc(var(--u) * .3) calc(var(--u) * 1.6) rgba(0,0,0,.5); display: inline-block; text-align: left; }
.mg-bc__lb { font-size: calc(var(--u) * 2.6); color: var(--mgink); letter-spacing: .02em; white-space: nowrap; text-shadow: 0 calc(var(--u) * .1) calc(var(--u) * .8) rgba(0,0,0,.8); }

/* notification */
.mg-nf { display: flex; align-items: center; gap: calc(var(--u) * 1.6); width: calc(var(--u) * 50); padding: calc(var(--u) * 1.6) calc(var(--u) * 2.2) calc(var(--u) * 1.6) calc(var(--u) * 1.6); border-radius: calc(var(--u) * 2.6); background: var(--panel); border: calc(var(--u) * .14) solid var(--edge); box-shadow: 0 calc(var(--u) * 1.6) calc(var(--u) * 4) rgba(0,0,0,.45); }
.mg-nf__ic { flex: none; width: calc(var(--u) * 5.6); height: calc(var(--u) * 5.6); border-radius: 50%; display: grid; place-items: center; font-size: calc(var(--u) * 3); color: var(--accentInk); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 35%, #ff3d8a)); }
.mg-nf__b { flex: 1; min-width: 0; }
.mg-nf__h { display: flex; justify-content: space-between; gap: calc(var(--u) * 2); font-size: calc(var(--u) * 1.5); color: var(--mgmuted); letter-spacing: .1em; margin-bottom: calc(var(--u) * .4); }
.mg-nf__t { font-size: calc(var(--u) * 2.5); line-height: 1.1; color: var(--accent); }
.mg-nf__x { font-size: calc(var(--u) * 2.1); line-height: 1.3; margin-top: calc(var(--u) * .3); font-family: var(--body); font-weight: 600; text-transform: none; }

/* speech bubble */
.mg-sb { position: relative; max-width: calc(var(--u) * 32); width: max-content; padding: calc(var(--u) * 2.2) calc(var(--u) * 3); border-radius: calc(var(--u) * 3); background: #fff; color: #111; font-size: calc(var(--u) * 3.4); line-height: 1.1; text-align: center; box-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 3) rgba(0,0,0,.35); }
.mg-sb__nm { position: absolute; top: calc(var(--u) * -1.6); left: calc(var(--u) * 2.2); font-size: calc(var(--u) * 1.6); letter-spacing: .12em; padding: calc(var(--u) * .45) calc(var(--u) * 1.4); border-radius: 99px; background: var(--accent); color: var(--accentInk); }
.mg-sb__tl { position: absolute; bottom: calc(var(--u) * -1.1); left: calc(var(--u) * 3.6); width: calc(var(--u) * 3.2); height: calc(var(--u) * 3.2); background: #fff; transform: rotate(45deg); border-radius: calc(var(--u) * .5); z-index: -1; }
.mg-sb__tx { position: relative; display: block; }

/* arrow draw */
.mg-ar { width: calc(var(--u) * 20); height: calc(var(--u) * 20); }
.mg-ar svg { width: 100%; height: 100%; overflow: visible; display: block; filter: drop-shadow(0 calc(var(--u) * .3) calc(var(--u) * .6) rgba(0,0,0,.45)); }
.mg-ar path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

/* =================================================================
   ROUND 3: filters, drag and drop, guides, tour
   ================================================================= */
/* caption mood chips */
.capfilter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.capchip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--cream); color: var(--ink); font-weight: 700; font-size: .88rem; box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.capchip span { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--cream-2); font-size: .72rem; font-variant-numeric: tabular-nums; }
.capchip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.capchip[aria-checked="true"] { background: var(--ink); color: var(--cream); box-shadow: none; }
.capchip[aria-checked="true"] span { background: var(--grad-sig); color: var(--ink); }
.captile[hidden] { display: none; }

/* graphics: drag from the library */
.studio__mgtip { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.studio__mgtip svg { width: 18px; height: 18px; color: var(--red); flex: none; }
@media (max-width: 979px) { .studio__mgtip { margin-top: 0; } }
.mgtile { cursor: grab; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.mgtile.is-armed { transform: scale(1.04); box-shadow: 0 0 0 2px var(--coral); }
.mgtile.is-lifted { opacity: .45; }
html.is-mgdragging, html.is-mgdragging * { cursor: grabbing !important; }
.mg-ghost {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; width: 132px; margin: -46px 0 0 -66px;
  display: grid; justify-items: center; gap: 4px; padding: 8px 8px 10px; border-radius: 16px;
  background: var(--ink); color: var(--cream); font-size: .78rem; font-weight: 700;
  box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .55), 0 6px 14px -6px rgba(0, 0, 0, .4);
  rotate: -4deg; transition: rotate .25s var(--ease-out), box-shadow .25s;
}
.mg-ghost svg { width: 100%; height: auto; border-radius: 10px; background: #34312b; }
.mg-ghost.is-over { rotate: 0deg; box-shadow: 0 0 0 3px var(--coral), 0 24px 40px -14px rgba(0, 0, 0, .55); }
.studio__droptarget {
  position: absolute; inset: 10px; z-index: 12; display: grid; place-items: end center; padding-bottom: 18px; pointer-events: none;
  border: 3px dashed rgba(246, 243, 235, .7); border-radius: 22px; opacity: 0; transition: opacity .2s, border-color .2s, background-color .2s;
}
.studio__droptarget span { padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--cream); font-family: var(--display); font-weight: 600; font-size: .95rem; }
.studio__frame.is-dropready .studio__droptarget { opacity: 1; }
.studio__frame.is-over .studio__droptarget { border-color: var(--coral); background: rgba(255, 151, 92, .12); }

/* snap guides */
.studio__guide { position: absolute; z-index: 11; pointer-events: none; opacity: 0; transition: opacity .12s; background: var(--coral); box-shadow: 0 0 6px rgba(255, 151, 92, .8); }
.studio__guide--v { left: 50%; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; }
.studio__guide--h { top: 50%; left: 0; right: 0; height: 1.5px; margin-top: -.75px; }
.studio__guide.is-on { opacity: 1; }

/* placed graphic: grip handle + first-time "drag me" */
.mg__grip {
  position: absolute; z-index: 3; left: -14px; top: -14px; height: 28px; min-width: 28px; padding: 0 7px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px; background: var(--cream); color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.4);
  font: 700 .78rem/1 var(--body); white-space: nowrap; pointer-events: none; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease-out);
}
.mg__grip svg { width: 14px; height: 14px; flex: none; }
.mg__grip span { display: none; }
.mg:hover .mg__grip, .mg.is-selected .mg__grip { opacity: 1; transform: none; }
.mg.is-dropped { animation: mgDrop .5s cubic-bezier(.34, 1.8, .5, 1); }
@keyframes mgDrop { from { scale: 1.14; } to { scale: 1; } }
.mg.is-fresh { outline: 2px dashed rgba(246, 243, 235, .9); }
.mg.is-fresh .mg__grip { opacity: 1; transform: none; background: var(--grad); padding: 0 11px 0 9px; animation: gripNudge 1.6s var(--ease-out) infinite; }
.mg.is-fresh .mg__grip span { display: inline; }
@keyframes gripNudge { 0%, 100% { translate: 0 0; } 30% { translate: -4px -3px; } 60% { translate: 2px 1px; } }

.studio__bar { row-gap: 8px; }
.studio__tourbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 0; background: none; cursor: pointer;
  color: var(--ink); font-weight: 700; font-size: .88rem; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .25em;
}
.studio__tourbtn svg { width: 16px; height: 16px; fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.studio__tourbtn:hover { text-decoration-thickness: 2.5px; }

/* guided tour */
.studio .wrap { position: relative; }
.coach-ring {
  position: absolute; z-index: 40; pointer-events: none; border-radius: 22px;
  box-shadow: 0 0 0 3px var(--coral-mid), 0 0 0 9px rgba(236, 98, 68, .18);
  animation: coachRing 1.8s var(--ease-out) infinite;
}
@keyframes coachRing { 0%, 100% { box-shadow: 0 0 0 3px var(--coral-mid), 0 0 0 8px rgba(236, 98, 68, .22); } 50% { box-shadow: 0 0 0 3px var(--coral-mid), 0 0 0 16px rgba(236, 98, 68, 0); } }
.coach-hand { position: absolute; left: 0; top: 0; z-index: 42; width: 0; height: 0; pointer-events: none; }
.coach-hand svg {
  position: absolute; left: -13px; top: -3px; width: 40px; height: 40px; max-width: none; overflow: visible;
  fill: var(--cream); stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35));
}
.coach-hand__tap { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--coral-mid); opacity: 0; }
.coach-hand.is-tap .coach-hand__tap { animation: coachTap 1.4s var(--ease-out) infinite; }
.coach-hand.is-tap svg { animation: coachPress 1.4s var(--ease-out) infinite; }
@keyframes coachTap { 0% { transform: scale(.4); opacity: 1; } 70%, 100% { transform: scale(1.8); opacity: 0; } }
@keyframes coachPress { 0%, 100% { translate: 0 0; } 20% { translate: 0 3px; } 40% { translate: 0 0; } }
.coach-hand__chip { position: absolute; left: -28px; top: -40px; width: 56px; height: 36px; border-radius: 10px; background: var(--ink); box-shadow: inset 0 0 0 2px var(--coral), 0 10px 20px -8px rgba(0,0,0,.5); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease-out); }
.coach-hand.is-carry .coach-hand__chip { opacity: 1; transform: rotate(-5deg); }

.coach {
  --arrow-x: 40px;
  position: absolute; z-index: 45; width: min(340px, 100%); padding: 18px 18px 14px; border-radius: 20px;
  background: var(--ink); color: var(--cream); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6), 0 8px 18px -8px rgba(0, 0, 0, .4);
}
.coach::before { content: ""; position: absolute; top: -7px; left: var(--arrow-x); width: 16px; height: 16px; margin-left: -8px; background: var(--ink); border-radius: 3px; transform: rotate(45deg); }
.coach__title { font-size: 1.3rem; line-height: 1.1; }
.coach__text { margin-top: 6px; color: var(--muted-dark); font-size: .95rem; line-height: 1.45; }
.coach__foot { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.coach__dots { display: flex; gap: 5px; margin-right: auto; }
.coach__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(246, 243, 235, .25); transition: background-color .3s, width .3s var(--ease-out); }
.coach__dots i.is-on { background: var(--coral); }
.coach__dots i.is-on:last-of-type, .coach__dots i.is-on:not(:has(+ .is-on)) { width: 18px; border-radius: 99px; }
.coach__skip, .coach__next { height: 38px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .9rem; }
.coach__skip { background: transparent; color: var(--muted-dark); }
.coach__skip:hover { color: var(--cream); }
.coach__next { background: var(--grad); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1rem; padding: 0 18px; }
@media (max-width: 979px) {
  .coach { position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto; z-index: 70; }
  .coach::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .studio__frame { transition: none; }
  .coach-ring, .coach-hand *, .mg.is-fresh .mg__grip { animation: none !important; }
}

/* =================================================================
   ROUND 4: mobile launcher + full-screen studio
   ================================================================= */
.studio__launch, .studio__fullbar, .studio__fullcta { display: none; }
@media (max-width: 979px) {
  .js .studio__launch {
    display: grid; gap: 14px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
    font: inherit; color: var(--ink); text-align: left; -webkit-tap-highlight-color: transparent;
  }
  .js .studio__app:not(.is-full) { display: none; }
  .studio__tourbtn { display: none; }
}
.launch__frame {
  position: relative; display: block; aspect-ratio: 4 / 5; max-height: 74svh; width: 100%; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: var(--ink-2); box-shadow: 0 40px 70px -34px rgba(37, 35, 31, .6), 0 10px 24px -14px rgba(37, 35, 31, .35);
  transition: transform .45s var(--ease-out);
}
.studio__launch:active .launch__frame { transform: scale(.985); }
.launch__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 53% 0; transform: scale(1.34); transform-origin: 50% 6%; }
.launch__frame::before { /* keeps the CTA readable */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 14, 12, .18) 0%, transparent 26%, transparent 52%, rgba(15, 14, 12, .72) 100%);
}
.launch__frame::after { /* bracket mark from the logo */
  content: ""; position: absolute; z-index: 2; top: 16px; left: 16px; width: 30px; height: 30px; pointer-events: none;
  border: 3px solid rgba(246, 243, 235, .9); border-right: 0; border-bottom: 0; border-top-left-radius: 11px;
}
.launch__new {
  position: absolute; z-index: 3; top: 16px; right: 16px; padding: 5px 12px; border-radius: 99px;
  background: var(--grad); color: var(--ink); font: 800 .78rem/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase;
}
.launch__cap {
  position: absolute; z-index: 3; left: 5%; right: 5%; bottom: 104px; display: grid; justify-items: center; text-align: center; white-space: nowrap;
  font-family: "NR Poppins", var(--body); font-weight: 700; text-transform: uppercase; line-height: 1.02;
}
.launch__n { color: #fff; font-size: clamp(1rem, 4.6vw, 1.4rem); text-shadow: 0 .06em .2em rgba(0, 0, 0, .7); }
.launch__e { position: relative; margin-top: .1em; padding: .04em .18em 0; color: #000; font-size: clamp(1.6rem, 8.6vw, 2.6rem); isolation: isolate; }
.launch__e::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #afd425; transform-origin: left; animation: launchHl 3.8s var(--ease-out) .5s infinite both; }
.launch__cap i { display: inline-block; font-style: normal; animation: launchW 3.8s var(--ease-out) infinite; }
.launch__n i:nth-child(2) { animation-delay: .2s; }
.launch__n i:nth-child(3) { animation-delay: .4s; }
.launch__n i:nth-child(4) { animation-delay: .6s; }
.launch__e i { animation-delay: .8s; animation-fill-mode: both; }
@keyframes launchW { 0% { opacity: 0; transform: translateY(45%) scale(.9); } 10%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes launchHl { 0%, 16% { transform: scaleX(0); } 28%, 86% { transform: none; opacity: 1; } 94%, 100% { transform: none; opacity: 0; } }
.launch__cta {
  position: absolute; z-index: 4; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 60px; border-radius: 999px; background: var(--grad); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 1.2rem; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6);
}
.launch__cta svg { width: 22px; height: 22px; flex: none; }
.launch__ring { position: absolute; inset: -5px; border-radius: inherit; border: 2px solid var(--coral); pointer-events: none; animation: launchRing 2.4s var(--ease-out) infinite; }
@keyframes launchRing { 0% { opacity: .9; transform: scale(.98); } 70%, 100% { opacity: 0; transform: scale(1.04, 1.28); } }
.launch__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.launch__meta span { padding: 5px 12px; border-radius: 99px; background: var(--cream); font-size: .85rem; font-weight: 700; color: var(--ink); }
.launch__meta span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.launch__meta span:last-child::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-sig); }

/* full-screen mode (mobile): frame on top, controls below */
html.studio-full { overflow: hidden; }
.studio__app.is-full {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: stretch; gap: 0; overflow: hidden;
  background: var(--cream-2); padding-top: env(safe-area-inset-top, 0px);
}
.is-full .studio__fullbar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 4px 20px; }
.studio__fulltitle { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.1; letter-spacing: -.015em; }
.studio__close {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--ink); color: var(--cream); transition: transform .3s var(--ease-out);
}
.studio__close svg { width: 22px; height: 22px; transform: rotate(45deg); }
.studio__close:active { transform: scale(.94); }
.is-full .studio__stagecol { flex: none; gap: 10px; padding: 6px 16px 12px; }
.is-full .studio__frame { height: min(45svh, 520px); }
.is-full .studio__frame[data-aspect="16x9"] { height: auto; width: min(100%, 520px); }
.is-full .studio__bar { flex-wrap: nowrap; }
.is-full .studio__controls {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 14px 16px calc(24px + env(safe-area-inset-bottom, 0px)); border-radius: 26px 26px 0 0;
  background: var(--cream); box-shadow: 0 -12px 30px -22px rgba(37, 35, 31, .45);
}
.is-full .studio__tabs { margin-bottom: 14px; }
.is-full .upload { background: var(--cream-2); }
.is-full .studio__fullcta { display: grid; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.is-full .studio__fullcta p { font-weight: 600; font-size: .95rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .launch__cap i, .launch__e::before, .launch__ring { animation: none; }
}
