/* Zenniz App topic (#app): "Get to know your game". Built on the tokens in styles.css; classes start with ag- and sv-. */

#ag-root { --ag-hl: #e3ee5b; --ag-ok: #00a862; --ag-soft: #eef2fb; --ag-top: 64px; }
#ag-root .ag-beta { display: inline-block; vertical-align: middle; font: 700 11px/1 var(--f-mono); letter-spacing: .02em; padding: 4px 7px; border-radius: 6px; background: var(--ag-hl); color: #1d2300; font-style: normal; }
#ag-root .ui { font-size: .82em; }
#ag-root .h2 { font-size: clamp(26px, 3vw, 36px); }
#ag-root section { scroll-margin-top: calc(var(--ag-top) + 12px); }

/* ---------- hero ---------- */
[data-topic="app"] .hero__card.hero__card--compact { min-height: 0; padding: clamp(18px, 2vw, 24px) clamp(22px, 4vw, 52px); grid-template-columns: minmax(0, 1fr); align-items: center; }
[data-topic="app"] .hero__card--compact .hero__sub { font-size: clamp(15px, 1.4vw, 18px); max-width: 52ch; }
[data-topic="app"] .hero__card--compact .hero__shade { background: linear-gradient(90deg, rgba(0,30,66,.94) 0%, rgba(0,30,66,.8) 50%, rgba(0,30,66,.35) 100%); }
[dir="rtl"] [data-topic="app"] .hero__card--compact .hero__shade { background: linear-gradient(270deg, rgba(0,30,66,.94) 0%, rgba(0,30,66,.8) 50%, rgba(0,30,66,.35) 100%); }
[data-topic="app"] .hero__img { object-position: 50% 35%; }
[data-topic="app"] .hero__cta svg { width: 16px; height: 16px; }
@media (max-width: 440px) { [data-topic="app"] .hero__cta .pill__dur { display: none; } }   /* keeps both buttons on one line on phones */
@media (min-width: 861px) {
  [data-topic="app"] .hero__card--compact .hero__copy { grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; row-gap: 8px; align-items: center; }
  [data-topic="app"] .hero__card--compact .hero__copy > * { grid-column: 1; }
  [data-topic="app"] .hero__card--compact .hero__cta { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
}

/* ---------- film + compact chapter list ---------- */
.ag-film { padding-top: 22px; }
.ag-film__hd { display: grid; gap: 4px; margin-bottom: 14px; }
.ag-film__body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); align-items: start; }
.ag-film__screen { border-radius: 16px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.ag-film__screen video { width: 100%; height: 100%; display: block; background: var(--navy); }
.ag-chl { display: grid; gap: 6px; }
.ag-chl__hint { font-size: 13.5px; color: var(--muted); }
.ag-chl ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.ag-chl__r { position: relative; width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 8px; align-items: center; text-align: start; padding: 9px 12px; border: 0; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; }
.ag-chl li + li .ag-chl__r { border-top: 1px solid var(--line); }
.ag-chl__r:hover { background: var(--ag-soft); }
.ag-chl__n { font: 700 12px/1 var(--f-mono); color: var(--primary); }
.ag-chl__t { font: 600 15px/1.25 var(--f-display); }
.ag-chl__time { font: 600 12px/1 var(--f-mono); color: var(--muted); }
.ag-chl__d { display: none; grid-column: 2 / -1; font-size: 13.5px; line-height: 1.35; color: var(--text); margin-top: 3px; }
.ag-chl__r[aria-current="step"] { background: var(--ag-soft); }
.ag-chl__r[aria-current="step"] .ag-chl__d { display: block; }
.ag-chl__r[aria-current="step"] .ag-chl__n { color: #fff; background: var(--primary); border-radius: 6px; padding: 3px 4px; justify-self: start; }
.ag-chl__bar { position: absolute; inset: auto 0 0 0; height: 3px; }
.ag-chl__bar i { display: block; height: 100%; width: 0; background: var(--primary); }
@media (max-width: 900px) {
  .ag-film__body { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ag-chl__hint { display: none; }
  .ag-chl__r { padding: 8px 12px; }
  .ag-chl__t { font-size: 14.5px; }
}

/* ---------- the pager: one step per page ---------- */
.ag-try { padding-block: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px); }
.ag-try__hd { display: grid; gap: 4px; margin-bottom: 14px; }
.ag-try__sub { color: var(--muted); font-size: 16px; max-width: 60ch; }
.ag-pager { position: relative; height: clamp(460px, calc(100vh - var(--ag-top) - 24px), 620px); }
@supports (height: 100svh) { .ag-pager { height: clamp(460px, calc(100svh - var(--ag-top) - 24px), 620px); } }
@media (max-width: 860px) { .ag-pager { height: clamp(460px, calc(100vh - var(--ag-top) - 16px), 760px); } @supports (height: 100svh) { .ag-pager { height: clamp(460px, calc(100svh - var(--ag-top) - 16px), 760px); } } }
.ag-pg { position: relative; height: 100%; background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(16px, 2.6vw, 30px);
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: clamp(20px, 4vw, 48px);
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  grid-template-areas: "top stage" "title stage" "task stage" "about stage" "msg stage" "nav stage"; }
.ag-pg.in-next { animation: ag-in-next .32s ease-out; }
.ag-pg.in-prev { animation: ag-in-prev .32s ease-out; }
@keyframes ag-in-next { from { opacity: 0; transform: translateX(28px); } }
@keyframes ag-in-prev { from { opacity: 0; transform: translateX(-28px); } }
[dir="rtl"] .ag-pg.in-next { animation-name: ag-in-prev; } [dir="rtl"] .ag-pg.in-prev { animation-name: ag-in-next; }

.ag-pg__top { grid-area: top; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ag-dots { display: flex; gap: 4px; }
.ag-dots button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 2px solid var(--line); background: #fff; color: var(--muted); font: 700 11px/1 var(--f-mono); cursor: pointer; }
.ag-dots button:hover { border-color: var(--primary); }
.ag-dots button[aria-current="step"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); color: var(--ink); }
.ag-dots svg { width: 13px; height: 13px; }
.ag-pg__i { display: none; margin-inline-start: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ag-soft); color: var(--primary); place-items: center; padding: 0; cursor: pointer; }
.ag-pg__i svg { width: 20px; height: 20px; }
.ag-pg__i[aria-expanded="true"] { background: var(--primary); color: #fff; }

.ag-pg__t { grid-area: title; margin-top: 14px; font: italic 800 clamp(26px, 3vw, 38px)/1.05 var(--f-display); letter-spacing: -.01em; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ag-pg__task { grid-area: task; margin-top: 12px; display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 16.5px; line-height: 1.3; color: var(--ink); }
.ag-pg__task .ag-pg__ic { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ag-hl); display: grid; place-items: center; }
.ag-pg__task svg { width: 18px; height: 18px; }
.ag-pg__task .ui { font-size: .85em; }
.ag-pg__about { grid-area: about; margin-top: 14px; min-height: 0; overflow: auto; display: grid; gap: 10px; align-content: start; }
.ag-pg__lead { font-size: 16px; color: var(--text); max-width: 40ch; }
.ag-pg__close { display: none; }
.ag-more summary { cursor: pointer; font-weight: 700; color: var(--primary); list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 15px; }
.ag-more summary::-webkit-details-marker { display: none; }
.ag-more summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); font: 700 15px/1 var(--f-mono); }
.ag-more[open] summary::before { content: "–"; }
.ag-more ul { margin: 6px 0 0; padding-inline-start: 20px; display: grid; gap: 6px; color: var(--text); font-size: 15px; }
.ag-small { font-size: 13px; color: var(--muted); }

.ag-pg__stage { grid-area: stage; position: relative; min-height: 0; display: flex; flex-direction: column; gap: 10px; border-radius: 18px; background: var(--ag-soft); padding: 14px; }
.ag-pg__msg { grid-area: msg; margin-top: 12px; min-height: 54px; display: flex; align-items: flex-end; }
.ag-pg__nav { grid-area: nav; margin-top: 12px; display: flex; gap: 10px; }

/* message line */
.ag-msg { width: 100%; display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 10px 14px; font-size: 15px; line-height: 1.35; animation: ag-pop .3s ease-out; }
.ag-msg > svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.ag-msg p { margin: 0; }
.ag-msg b { font-weight: 700; }
.ag-msg--info { background: var(--ag-soft); color: var(--ink); }
.ag-msg--info > svg { color: var(--primary); }
.ag-msg--ok { background: #dff7ea; color: #064d2c; font-weight: 600; }
.ag-msg--hint { background: #fff6d6; color: #5a4500; font-weight: 600; }
.ag-msg__sub { margin-top: 3px !important; font-weight: 500; }
.ag-msg__n { font: 700 12px/1 var(--f-mono); font-style: normal; color: var(--primary); white-space: nowrap; margin-inline-start: 4px; }
.ag-msg .ag-link { margin-top: 4px; }
@keyframes ag-pop { from { transform: translateY(4px); opacity: 0; } }

/* Back / Next */
.ag-nav { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; border-radius: 40px; padding: 12px 20px; font: 700 16px/1 var(--f-body); cursor: pointer; border: 2px solid transparent; }
.ag-nav svg { width: 18px; height: 18px; }
.ag-nav--back { background: transparent; color: var(--ink); border-color: var(--line); }
.ag-nav--back:disabled { opacity: .35; cursor: default; }
.ag-nav--next { background: var(--ink); color: #fff; margin-inline-start: auto; padding-inline: 26px; }
@media (hover: hover) { .ag-nav--back:hover:not(:disabled) { border-color: var(--ink); } .ag-nav--next:hover { background: var(--primary); } }
[dir="rtl"] .ag-nav svg { transform: scaleX(-1); }
.ag-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: 700 14.5px/1.2 var(--f-body); color: var(--primary); cursor: pointer; }
.ag-link svg { width: 16px; height: 16px; }

/* phones: on small screens the step text sits above the stage, and "About this step" opens over the stage */
@media (max-width: 860px) {
  .ag-pg { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
    grid-template-areas: "top" "title" "task" "stage" "msg" "nav"; border-radius: 20px; padding: 14px; }
  .ag-pg__i { display: grid; }
  .ag-pg__t { margin-top: 10px; font-size: clamp(23px, 6.4vw, 30px); }
  .ag-pg__task { margin-top: 8px; font-size: 15.5px; }
  .ag-pg__task .ag-pg__ic { width: 28px; height: 28px; }
  .ag-pg__stage { margin-top: 10px; padding: 10px; }
  .ag-pg__msg { margin-top: 8px; min-height: 50px; }
  .ag-pg__nav { margin-top: 8px; }
  .ag-pg__nav .ag-nav { flex: 1; }
  .ag-pg__about { grid-area: stage; margin-top: 10px; z-index: 3; display: none; background: #fff; border: 2px solid var(--primary-soft); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-lg); }
  .ag-pg.is-info .ag-pg__about { display: grid; animation: ag-pop .2s ease-out; }
  .ag-pg__close { display: inline-flex; justify-self: start; margin-top: 6px; border: 0; border-radius: 30px; padding: 9px 16px; background: var(--ink); color: #fff; font: 700 14px/1 var(--f-body); cursor: pointer; }
  .ag-msg { font-size: 14.5px; padding: 9px 12px; }
}
@media (max-width: 420px) { .ag-dots button { width: 25px; height: 25px; } }

/* ---------- stage building blocks ---------- */
/* .ag-fit takes the free space; the phone inside keeps its shape and is as big as it can be */
.ag-fit { position: relative; flex: 1 1 0; min-height: 0; container-type: size; }
.ag-phone { position: absolute; inset: 0; margin: auto; width: min(100cqw, calc(100cqh * var(--ar))); aspect-ratio: var(--ar); border: 5px solid #0b0f16; border-radius: 22px; background: #0b0f16; box-shadow: 0 16px 40px rgba(0,30,66,.22); }
.ag-phone__clip { position: absolute; inset: 0; overflow: hidden; border-radius: 17px; background: #fff; }
.ag-phone__clip img { position: absolute; left: 0; width: 100%; max-width: none; user-select: none; -webkit-user-select: none; }
.ag-fit--card { display: flex; align-items: center; justify-content: center; }

/* glowing hotspots */
.ag-hot { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; z-index: 2; }
.ag-hot i { position: absolute; inset: 6px; border-radius: 50%; border: 3px solid var(--ag-hl); background: rgba(227,238,91,.14); box-shadow: 0 0 0 2px rgba(0,30,66,.7), inset 0 0 0 1px rgba(0,30,66,.35); }
.ag-hot::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 3px solid var(--ag-hl); animation: ag-pulse 1.6s ease-out infinite; }
.ag-hot.is-big { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.ag-hot.is-big i { inset: 8px; }
.ag-hot.is-seen i { border-color: var(--ag-ok); background: transparent; box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
.ag-hot.is-seen::before { animation: none; opacity: 0; }
.ag-hot[aria-pressed="true"] i { border-color: var(--ag-ok); background: rgba(0,168,98,.18); }
.ag-hot:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
@keyframes ag-pulse { 0% { transform: scale(.7); opacity: .95; } 100% { transform: scale(1.5); opacity: 0; } }
/* word-shaped hotspots (the labels on the Playstyle chart) */
.ag-word { position: absolute; height: 6.5%; min-height: 30px; transform: translate(-50%, -50%); border: 2.5px solid var(--ag-hl); border-radius: 10px; background: rgba(227,238,91,.12); cursor: pointer; z-index: 2; animation: ag-glow 1.6s ease-in-out infinite; }
.ag-word:hover { background: rgba(227,238,91,.3); }
.ag-word.is-right { animation: none; border-color: var(--ag-ok); background: rgba(0,168,98,.3); }
.ag-word.is-wrong { animation: none; border-color: #ff7a7a; background: rgba(214,90,90,.3); }
.ag-word.is-off { animation: none; opacity: 0; }
.ag-word:disabled { cursor: default; }
@keyframes ag-glow { 50% { box-shadow: 0 0 0 5px rgba(227,238,91,.35); } }
@media (prefers-reduced-motion: reduce) { .ag-hot::before, .ag-word { animation: none; } }

/* step 3: score card */
.ag-score { width: min(100%, 440px); height: 100%; max-height: 470px; background: #061a33; color: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 12px; }
.ag-score__top { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 6px; }
.ag-score__top span { font-weight: 600; font-size: 15px; color: #dbe7ff; align-self: start; }
.ag-score__top b { font: 800 54px/.9 var(--f-display); color: #d5e34a; }
.ag-score__top small { font: 700 13px/1 var(--f-mono); color: #8fa3c4; margin-bottom: 5px; }
.ag-score__graph { flex: 1 1 0; min-height: 36px; border-radius: 10px; overflow: hidden; }
.ag-score__graph img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.ag-score__parts { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ag-part { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; text-align: start; padding: 11px 12px; border-radius: 14px; border: 2px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.ag-part:hover:not(:disabled) { border-color: var(--ag-hl); background: rgba(227,238,91,.08); }
.ag-part__name { font-weight: 700; font-size: 15px; }
.ag-part__v { font: 800 24px/1 var(--f-display); color: #d5e34a; }
.ag-part__bar { grid-column: 1 / -1; height: 5px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.ag-part__bar i { display: block; height: 100%; background: #d5e34a; border-radius: 6px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.ag-part:disabled { cursor: default; opacity: 1; }
.ag-part.is-guess { border-color: #fff; }
.ag-part.is-best { border-color: var(--ag-hl); background: rgba(227,238,91,.14); }

/* step 5: serve chart */
.ag-serve { width: min(100%, 500px); height: 100%; max-height: 470px; background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.ag-serve__facts { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ag-serve__facts div { display: grid; gap: 2px; }
.ag-serve__facts b { font: 800 30px/1 var(--f-display); color: var(--ink); }
.ag-serve__facts div + div b { color: var(--primary); }
.ag-serve__facts small { font: 700 13px/1 var(--f-mono); }
.ag-serve__facts span { font-size: 13px; color: var(--muted); line-height: 1.25; }
.ag-seg { flex: none; display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--ag-soft); border-radius: 40px; padding: 4px; align-self: flex-start; }
.ag-seg button { border: 0; background: none; padding: 9px 16px; border-radius: 40px; font-weight: 700; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.ag-seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
.ag-chart { flex: 1 1 0; min-height: 90px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; align-items: end; }
.ag-bar { position: relative; height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 5px; border: 0; background: none; padding: 0; color: var(--ink); cursor: pointer; }
.ag-bar__lab { font: 700 12.5px/1 var(--f-mono); text-align: center; }
.ag-bar.is-on .ag-bar__lab { color: var(--primary); font-size: 14px; }
.ag-bar__col { position: relative; border-radius: 9px; background: var(--ag-soft); overflow: hidden; display: flex; align-items: flex-end; }
.ag-bar__col i { display: block; width: 100%; background: #b9c6e3; border-radius: 9px 9px 0 0; transition: height .6s cubic-bezier(.2,.8,.2,1), background .2s ease; }
.ag-chart.is-won .ag-bar__col i { background: #9fd9b8; }
.ag-bar.is-best .ag-bar__col i { background: var(--ink); }
.ag-chart.is-won .ag-bar.is-best .ag-bar__col i { background: var(--ag-ok); }
.ag-bar.is-on .ag-bar__col { outline: 3px solid var(--primary); outline-offset: 2px; }
.ag-bar:hover .ag-bar__col { outline: 2px solid rgba(24,91,187,.4); outline-offset: 2px; }
.ag-bar__star { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; color: #e8b500; }
.ag-bar__x { font: 600 11.5px/1.1 var(--f-mono); text-align: center; color: var(--muted); white-space: nowrap; }
.ag-chart__x { flex: none; font-size: 12.5px; color: var(--muted); text-align: center; margin-top: -4px; }
@media (max-width: 420px) { .ag-chart { gap: 4px; } .ag-bar__x { font-size: 10px; } .ag-serve__facts b { font-size: 26px; } }

/* step 6: who did better */
.ag-duel { width: min(100%, 520px); max-height: 100%; overflow: auto; background: #fff; border-radius: 22px; padding: 14px; box-shadow: var(--shadow); display: grid; align-content: start; gap: 8px; }
.ag-duel__hd { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; font-weight: 700; color: var(--muted); font-size: 14.5px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ag-duel__hd b { font: 800 24px/1 var(--f-display); color: var(--ink); padding-inline: 10px; }
.ag-duel__r { display: grid; grid-template-columns: minmax(64px, 1fr) minmax(0, 1.6fr) minmax(64px, 1fr); gap: 8px; align-items: stretch; min-height: 0; }
.ag-duel__r p { display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 600; color: var(--ink); font-size: 14px; line-height: 1.2; margin: 0; }
.ag-duel__b { display: flex; align-items: center; justify-content: center; gap: 3px; padding: 4px 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--ag-soft); color: var(--ink); font: 700 15px/1.1 var(--f-mono); min-height: 38px; cursor: pointer; white-space: nowrap; }
.ag-duel__b:hover:not(:disabled) { border-color: var(--primary); background: #fff; }
.ag-duel__b:disabled { cursor: default; }
.ag-duel__b.is-right { background: #dff7ea; border-color: var(--ag-ok); }
.ag-duel__b.is-wrong { background: #fde8e8; border-color: #d65a5a; }
.ag-duel__b svg { width: 15px; height: 15px; color: var(--ag-ok); flex: none; }

/* step 7: placement chips under the phone */
.ag-ctl { flex: none; display: grid; gap: 6px; justify-items: center; }
.ag-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.ag-chip { display: inline-flex; align-items: center; gap: 3px; font: 600 13px/1.2 var(--f-app); padding: 6px 9px; white-space: nowrap; border-radius: 10px; border: 1.5px solid var(--app-line); background: var(--app-white); color: var(--app-ink); cursor: pointer; }
.ag-chip svg { width: 14px; height: 14px; }
.ag-chip[aria-pressed="true"] { background: #cfe0ff; border-color: #cfe0ff; }
.ag-chip:disabled { opacity: .4; cursor: not-allowed; }
.ag-seg--views { align-self: center; grid-template-columns: repeat(4, auto); }
.ag-seg--views button { padding: 8px 13px; font-size: 13.5px; position: relative; }
.ag-seg--views button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ag-seg--views button.is-new:not(:disabled)::after { content: ""; position: absolute; top: 4px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #c9b800; }
.ag-seg--views button:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 380px) { .ag-seg--views button { padding: 7px 9px; font-size: 12.5px; } }

/* step 8: SmartView phone mock-up, styled after the app's dark filter sheet */
.sv-phone { width: min(100%, 340px); height: 100%; max-height: 620px; border-radius: 30px; border: 6px solid #0b0f16; background: #0b2238; box-shadow: 0 20px 50px rgba(0,30,66,.35); color: #e8f2ff; font-family: var(--f-app); display: flex; flex-direction: column; overflow: hidden auto; scrollbar-width: none; direction: ltr; text-align: left; font-size: 15px; }
.sv-phone button { border: 0; background: none; color: inherit; cursor: pointer; }
.sv-top { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 2px; }
.sv-ic { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.sv-ic:hover { background: rgba(255,255,255,.08); }
.sv-ic svg { width: 20px; height: 20px; }
.sv-apply { background: #fff !important; color: #1e4fb3 !important; font-weight: 600; font-size: 14px; padding: 7px 18px; border-radius: 40px; box-shadow: 0 0 0 3px rgba(227,238,91,.7); }
.sv-sent { flex: none; padding: 4px 16px 0; font-size: 16px; line-height: 2; color: #fff; }
.sv-tok { display: inline-flex !important; align-items: center; gap: 4px; background: #aec6ff !important; color: #0b2238 !important; font-weight: 600; font-size: 14px; line-height: 1.2; padding: 3px 7px 3px 10px; border-radius: 8px; vertical-align: 1px; }
.sv-tok svg { width: 13px; height: 13px; }
.sv-cnt { color: #aec6ff; font-family: var(--f-mono); font-size: 14px; }
.sv-sugg { flex: none; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 4px 14px 8px; }
.sv-sugg b { font-size: 14px; font-weight: 600; color: #c9d7ee; }
.sv-sugg button { border: 1.5px solid rgba(232,242,255,.45) !important; border-radius: 10px; padding: 6px 11px; font-size: 13px; font-weight: 500; }
.sv-sugg button:hover { border-color: #fff !important; }
.sv-gap { flex: 1 1 0; }
.sv-sheet { margin-top: auto; flex: 0 0 auto; min-height: 0; background: #0e2a44; border-radius: 20px 20px 0 0; padding: 6px 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.sv-grab { flex: none; display: block; width: 34px; height: 4px; border-radius: 4px; background: rgba(232,242,255,.35); align-self: center; }
.sv-cats { flex: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; text-align: center; }
.sv-cats b { font-size: 15px; font-weight: 700; }
.sv-chips { flex: none; display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 6px; }
.sv-chip { border: 1.5px solid rgba(232,242,255,.55) !important; border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 500; }
.sv-chip:hover:not(:disabled) { border-color: #fff !important; }
.sv-chip.on { background: #aec6ff !important; color: #0b2238 !important; border-color: #aec6ff !important; }
.sv-chip:disabled { opacity: .4; cursor: not-allowed; }
.sv-tabs { flex: none; display: flex; flex-wrap: nowrap; justify-content: safe center; gap: 3px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid rgba(232,242,255,.12); padding-top: 8px; }
.sv-tabs button { flex: none; font-size: 11px; font-weight: 600; padding: 5px 7px; white-space: nowrap; border-radius: 30px; border: 1.5px solid rgba(232,242,255,.35) !important; }
.sv-tabs button[aria-pressed="true"] { background: #fff !important; color: #0b2238 !important; border-color: #fff !important; }
.sv-play { position: relative; flex: 1 0 100%; background: #000; overflow: hidden; display: flex; align-items: center; }
.sv-play__img { position: relative; width: 100%; container-type: inline-size; }
.sv-play__img img { width: 100%; height: auto; display: block; }
.sv-play__n { position: absolute; left: 4.2%; top: 84.6%; transform: translateY(-50%); color: #fff; font: 500 3.1cqw/1 var(--f-app); }

/* finish page */
.ag-pg--end { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; color: #fff;
  background: radial-gradient(100% 120% at 50% 0%, #0d3f93 0%, #062a68 45%, var(--navy) 85%); }
.ag-pg--end h3 { color: #fff; font: italic 800 clamp(28px, 4vw, 46px)/1.04 var(--f-display); max-width: 18ch; margin: 0; }
.ag-pg--end p { color: var(--inv-text); font-size: 17px; max-width: 44ch; }
.ag-end__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.ag-end__cta button.pill { background: transparent; cursor: pointer; }
.ag-end__back { position: absolute; left: 16px; bottom: 16px; color: #fff; border-color: rgba(255,255,255,.3); }
[dir="rtl"] .ag-end__back { left: auto; right: 16px; }

:lang(ko) #ag-root, #ag-root:lang(ko) { word-break: keep-all; }
