/* Courses: the gallery of ribbons, the course page and the watch page. Built on site.css's tokens;
   nothing here sets a colour of its own except the theater, which is always dark like a cinema. */

:root { --rc-img: 116px; --shadow: 0 18px 40px -26px var(--sheet-shadow); --wb: #fffdf9; --wb-ink: #2b2226; --wb-line: rgba(43,34,38,.12); }
:root[data-palette="evening"] { --wb: #1e161b; --wb-ink: #f5ede6; --wb-line: rgba(214,180,124,.18); }

.courses, .course, .watch { padding-bottom: 72px; }
.sec-head { display: grid; gap: 6px; margin-bottom: 22px; }
.sec-head p { margin: 0; color: var(--ink2); max-width: 40em; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- the gallery ---------- */
.courses-head { padding-block: 44px 26px; display: grid; gap: 12px; }
.courses-head h1 { max-width: 15ch; }
.finder { display: grid; gap: 14px; margin-bottom: 26px; position: sticky; top: var(--nav); z-index: 3; padding-block: 12px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--bg2); color: var(--ink2); border-radius: var(--pill); padding: 9px 16px; font: 500 15px/1 var(--body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); color: var(--btn-ink); border-color: transparent; }
.search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--bg2); border-radius: var(--pill); padding: 0 18px; height: 48px; color: var(--ink3); }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
.search svg { width: 20px; height: 20px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: 16px var(--body); color: var(--ink); outline: none; height: 100%; }
.none { color: var(--ink2); text-align: center; padding: 30px 0; }

.rcards, .lgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rcard { display: grid; grid-template-columns: var(--rc-img) minmax(0, 1fr) 30px; grid-template-areas: "img body go"; align-items: center; column-gap: 16px; row-gap: 4px; padding: 10px; padding-right: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s; }
.rcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: 0 26px 50px -28px var(--sheet-shadow); }
.rc-img { grid-area: img; position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 8px); overflow: hidden; background: var(--bg3); align-self: center; }
.rc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.rcard:hover .rc-img img { transform: scale(1.04); }
.rc-body { grid-area: body; display: grid; gap: 4px; min-width: 0; align-self: center; }
.rc-meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.rc-title { font-family: var(--display); font-size: 23px; line-height: 1.1; font-weight: var(--dw); text-wrap: balance; }
.rc-sub { color: var(--ink2); font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-hit { font-size: 13px; color: var(--ink3); }
.rc-hit b { color: var(--em); font-weight: 600; }
.rc-go { grid-area: go; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); position: relative; transition: background .3s, color .3s, transform .3s; }
.rc-go svg { width: 20px; height: 20px; animation: nudge 2.8s cubic-bezier(.45,.05,.35,1) infinite; }
.rc-go::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; animation: halo 2.8s ease-out infinite; }
.lcard:hover .rc-go { background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); color: var(--btn-ink); border-color: transparent; transform: translateX(3px); }
@keyframes nudge { 0%, 62%, 100% { transform: translateX(0); } 72% { transform: translateX(4px); } 82% { transform: translateX(0); } 90% { transform: translateX(2px); } }
@keyframes halo { 0%, 60% { opacity: 0; transform: scale(1); } 66% { opacity: .55; } 100% { opacity: 0; transform: scale(1.45); } }
.rcards li[hidden] { display: none; }
/* the way in: three tapered chevrons, light running through them toward the course */
.rcard .rc-enter { width: 30px; height: 42px; border: 0; border-radius: 0; background: none; place-items: stretch; justify-self: end; }
.rcard .rc-enter::after { display: none; }
.rc-enter svg { width: 100%; height: 100%; overflow: visible; animation: none; transition: filter .45s; }
.rc-enter .e { fill: var(--gold); transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s; }
.rc-enter .e1 { --o: .2; opacity: var(--o); animation: run 3.2s ease-in-out infinite; }
.rc-enter .e2 { --o: .48; opacity: var(--o); animation: run 3.2s ease-in-out .16s infinite; }
.rc-enter .e3 { animation: tip 3.2s cubic-bezier(.45,.05,.35,1) .3s infinite; }
@keyframes run { 0%, 34%, 100% { opacity: var(--o); } 14% { opacity: 1; } }
@keyframes tip { 0%, 30%, 100% { transform: none; } 11% { transform: translateX(4px); } 20% { transform: translateX(-1px); } }
.rcard:hover .rc-enter .e { animation: none; opacity: 1; }
.rcard:hover .rc-enter .e2 { transform: translateX(3px); }
.rcard:hover .rc-enter .e3 { transform: translateX(7px); }
.rcard:hover .rc-enter svg { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--gold) 50%, transparent)); }

/* ---------- the course page ---------- */
.course .back, .watch .back { display: inline-block; margin-top: 22px; }
.c-top { display: grid; gap: 26px; padding-block: 18px 34px; align-items: start; }
.c-intro { display: grid; gap: 14px; min-width: 0; }
.c-blurb { font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1.3; color: var(--em); margin: 0; max-width: 26em; position: relative; }
.c-about p { margin: 0 0 10px; color: var(--ink2); max-width: 38em; }
.c-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.c-facts li { border: 1px solid var(--line); border-radius: var(--pill); padding: 6px 13px; font-size: 14px; color: var(--ink2); background: var(--glass); }
.c-facts li::before { content: "\2726"; color: var(--gold); margin-right: 7px; font-size: 10px; vertical-align: 1px; }

.price-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--gold3), var(--gold), var(--gold3)); }
.price-card.pulse { animation: pc-pulse 1.1s cubic-bezier(.2,.7,.2,1); }
@keyframes pc-pulse { 30% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 30%, transparent), var(--shadow); transform: scale(1.015); } }
.pc-buy, .pc-own { display: grid; gap: 14px; }
.price-card .price { font-family: var(--display); font-size: 46px; line-height: 1; font-weight: 500; }
.price small { font-size: 17px; color: var(--ink3); font-family: var(--body); margin-left: 4px; }
.pc-note { color: var(--ink3); font-size: 14px; margin-top: -8px; }
.offers { display: grid; gap: 8px; }
.offer { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.offer:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 7%, transparent); }
.offer input { accent-color: var(--gold); margin: 0; }
.o-note { font-size: 15px; }
.o-note em { display: block; font-style: normal; font-size: 13px; color: var(--em); }
.o-price { font-family: var(--display); font-size: 22px; }
.o-price small { font-size: 13px; }
.pc-inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 15px; color: var(--ink2); }
.pc-inc li { padding-left: 24px; position: relative; }
.pc-inc li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.pc-btn, .pc-continue { width: 100%; padding-block: 16px; font-size: 17px; }
.pc-ask { text-align: center; color: var(--ink3); font-size: 14px; text-decoration: none; }
.pc-ask:hover { color: var(--gold); }
.own-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.own-row b { display: block; font-family: var(--display); font-size: 24px; font-weight: 500; }
.own-row span { color: var(--ink2); font-size: 15px; }
.ring { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--line); stroke-width: 4; }
.ring .ring-on { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1s cubic-bezier(.2,.7,.2,1); }

/* the trailer card and its glittering play button */
.trailer { margin-bottom: 46px; }
.tr-card { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; border: 0; padding: 0; border-radius: calc(var(--radius) + 6px); overflow: hidden; cursor: pointer; background: #120c10; box-shadow: 0 30px 60px -30px var(--sheet-shadow); isolation: isolate; }
.tr-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(24px) saturate(1.2); opacity: .7; }
.tr-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tr-card:hover .tr-img { transform: scale(1.03); }
.tr-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,8,12,.05) 30%, rgba(14,8,12,.78)); z-index: 1; }
.tr-play { position: absolute; left: 50%; top: 46%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center; z-index: 2; color: #2a1a10; background: radial-gradient(circle at 34% 30%, #fff6e2, #e9d3ac 38%, #c69a5a 78%, #a9844f); box-shadow: 0 0 0 1px rgba(255,240,210,.6) inset, 0 14px 40px -8px rgba(214,180,124,.8), 0 0 60px rgba(233,211,172,.45); transition: transform .35s cubic-bezier(.2,.7,.2,1); overflow: visible; }
.tr-play::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.75) 48%, transparent 62%); background-size: 260% 100%; animation: tr-sheen 3.2s cubic-bezier(.45,.05,.35,1) infinite; mix-blend-mode: soft-light; }
.tr-play > svg { width: 34px; height: 34px; margin-left: 5px; position: relative; }
.tr-card:hover .tr-play { transform: scale(1.08); }
.tr-ring { position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid rgba(233,211,172,.8); animation: tr-ring 2.6s ease-out infinite; }
.tr-ring.r2 { animation-delay: 1.3s; }
.tr-s { position: absolute; width: 16px; height: 16px; color: #fff3d6; filter: drop-shadow(0 0 6px rgba(255,226,166,.9)); animation: twinkle 2.4s ease-in-out infinite; }
.tr-s svg { width: 100%; height: 100%; display: block; }
.tr-s.s1 { right: -14px; top: -10px; }
.tr-s.s2 { left: -18px; bottom: 6px; width: 11px; height: 11px; animation-delay: .8s; }
.tr-s.s3 { right: -22px; bottom: -6px; width: 9px; height: 9px; animation-delay: 1.5s; }
@keyframes tr-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes tr-sheen { 0%, 40% { background-position: 120% 0; } 85%, 100% { background-position: -40% 0; } }
@keyframes twinkle { 0%, 100% { transform: scale(.3) rotate(0); opacity: 0; } 45% { transform: scale(1) rotate(25deg); opacity: 1; } 70% { transform: scale(.7) rotate(40deg); opacity: .6; } }
.tr-label { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; display: grid; gap: 4px; text-align: left; color: #f5ede6; }
.tr-label .eyebrow { color: #e9d3ac; }
.tr-label b { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.15; }
.tr-video { width: 100%; aspect-ratio: 16 / 9; max-width: 100%; border-radius: calc(var(--radius) + 6px); background: #000; display: block; }

/* lesson cards: a grid of three at seven or more, bigger ribbons under seven */
.lessons { margin-bottom: 52px; }
.lessons .sec-head { grid-template-columns: 1fr auto; align-items: end; }
.lessons .sec-head .eyebrow, .lessons .sec-head h2 { grid-column: 1; }
.own-legend { grid-column: 2; grid-row: 1 / span 2; font-size: 14px; color: var(--ink3); text-align: right; }
.lcard { position: relative; display: grid; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s; height: 100%; }
.lcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.l-thumb { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--bg3); }
.l-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l-art { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(20,10,14,.15), rgba(20,10,14,.55)); }
.l-art b { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 30px; color: #fbefe6; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.l-dur { position: absolute; right: 10px; bottom: 10px; background: rgba(14,8,12,.72); color: #f5ede6; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 8px; letter-spacing: .03em; z-index: 2; }
.l-veil { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 8px; z-index: 1; background: color-mix(in srgb, var(--bg) 42%, transparent); backdrop-filter: blur(3px) saturate(.75); -webkit-backdrop-filter: blur(3px) saturate(.75); color: var(--ink); transition: background .3s; }
.l-lock { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--bg2) 82%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); color: var(--gold); box-shadow: 0 8px 24px -10px var(--sheet-shadow); }
.l-lock svg { width: 22px; height: 22px; }
.l-why { font-size: 13px; font-weight: 600; letter-spacing: .04em; background: color-mix(in srgb, var(--bg2) 82%, transparent); padding: 4px 10px; border-radius: var(--pill); }
.lcard[data-state="locked"] .l-veil, .lcard[data-state="later"] .l-veil { display: grid; }
.lcard[data-state="locked"]:hover .l-veil { background: color-mix(in srgb, var(--bg) 28%, transparent); }
.lcard[data-state="later"] .l-lock { color: var(--ink3); border-color: var(--line); }
.lcard.shake .l-why { animation: why 0.6s; }
@keyframes why { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.l-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; color: #2a1a10; background: radial-gradient(circle at 34% 30%, #fff6e2, #e9d3ac 40%, #c69a5a); box-shadow: 0 10px 30px -8px rgba(214,180,124,.8); opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s; z-index: 2; }
.l-play svg { width: 22px; height: 22px; margin-left: 3px; }
.lcard[data-state="open"]:hover .l-play, .lcard[data-state="open"]:focus-visible .l-play, .lcard[data-state="done"]:hover .l-play { opacity: 1; transform: scale(1); }
.l-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); display: none; z-index: 2; }
.l-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold2), var(--gold)); }
.lcard[data-progress] .l-bar { display: block; }
.l-body { display: grid; gap: 5px; padding: 14px 16px 18px; align-content: start; min-width: 0; }
.l-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.l-kicker em { font-style: normal; color: var(--em); }
.l-title { font-family: var(--display); font-size: 20px; line-height: 1.15; font-weight: var(--dw); text-wrap: balance; }
.l-short { font-size: 14px; color: var(--ink2); line-height: 1.45; }
.lcard[data-state="done"] .l-kicker::after { content: " · Watched"; color: var(--ink3); }
.lcard[data-state="locked"] .l-title, .lcard[data-state="later"] .l-title { color: var(--ink2); }

.lgrid[data-layout="ribbons"] { gap: 16px; }
.lgrid[data-layout="ribbons"] .lcard { grid-template-columns: minmax(0, 1fr); }
.lgrid[data-layout="ribbons"] .rc-go { display: none; grid-area: auto; align-self: center; }

/* inside your course (owners only) */
.inside { margin-bottom: 52px; }
.inside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: i; }
.inside-list a { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: baseline; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); text-decoration: none; }
.inside-list a:hover { border-color: var(--gold); }
.i-num { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.i-body { display: grid; gap: 3px; min-width: 0; }
.i-body b { font-family: var(--display); font-weight: 500; font-size: 19px; }
.i-body span { color: var(--ink2); font-size: 14px; }


@media (min-width: 640px) {
  :root { --rc-img: 168px; }
  .rcard { grid-template-columns: var(--rc-img) minmax(0, 1fr) 62px; grid-template-areas: "img body go"; padding: 12px; padding-right: 22px; column-gap: 22px; }
  .rcard .rc-enter { width: 54px; height: 74px; }
  .rc-img { aspect-ratio: 16 / 10; }
  .rc-body { align-self: center; }
  .rc-go { width: 48px; height: 48px; }
  .rc-title { font-size: 27px; }
  .lgrid[data-layout="grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lgrid[data-layout="ribbons"] .lcard { grid-template-columns: 300px minmax(0, 1fr) 48px; align-items: center; gap: 0 24px; padding-right: 22px; }
  .lgrid[data-layout="ribbons"] .l-thumb { height: 100%; aspect-ratio: auto; min-height: 168px; }
  .lgrid[data-layout="ribbons"] .l-body { padding: 20px 0; }
  .lgrid[data-layout="ribbons"] .l-title { font-size: 26px; }
  .lgrid[data-layout="ribbons"] .l-short { font-size: 15px; }
  .lgrid[data-layout="ribbons"] .rc-go { display: grid; width: 48px; height: 48px; }
}
@media (min-width: 760px) {
  :root { --rc-img: 220px; }
  .finder { grid-template-columns: minmax(0, 1fr) 320px; align-items: center; }
  .chips { margin: 0; padding: 0; flex-wrap: wrap; }
  .c-top { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 40px; padding-top: 26px; }
  .price-card { position: sticky; top: calc(var(--nav) + 20px); padding: 28px; }
  .c-blurb { font-size: 27px; }
  .tr-play { width: 112px; height: 112px; margin: -56px 0 0 -56px; }
  .tr-play > svg { width: 44px; height: 44px; }
  .tr-label { left: 34px; bottom: 28px; }
  .tr-label b { font-size: 30px; }
}
@media (min-width: 980px) {
  .lgrid[data-layout="grid"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .lgrid[data-layout="ribbons"] .lcard { grid-template-columns: 380px minmax(0, 1fr) 52px; }
  .lgrid[data-layout="ribbons"] .l-thumb { min-height: 214px; }
}

/* ---------- the watch page ---------- */
.w-head { display: grid; gap: 14px; padding-bottom: 20px; }
.w-title { display: grid; gap: 8px; }
.w-title h1 { font-size: calc(var(--h1) * .9); }
.w-title .lede { margin: 0; }

.theater { --t-bg: #0f0a0d; --t-ink: #f5ede6; --t-dim: rgba(245,237,230,.7); background: var(--t-bg); padding-block: 0; }
.stage { max-width: 1480px; margin-inline: auto; display: grid; background: var(--t-bg); }
.screen { position: relative; background: #000; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; color: var(--t-ink); user-select: none; -webkit-user-select: none; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; }
.big-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #2a1a10; background: radial-gradient(circle at 34% 30%, #fff6e2, #e9d3ac 40%, #c69a5a); box-shadow: 0 14px 40px -10px rgba(214,180,124,.8); transition: transform .3s, opacity .3s; z-index: 2; }
.big-play svg { width: 32px; height: 32px; margin-left: 4px; }
.big-play:hover { transform: scale(1.07); }
.screen.playing .big-play, .screen.started .big-play { opacity: 0; pointer-events: none; transform: scale(.8); }
.screen.started:not(.playing) .big-play { opacity: 1; pointer-events: auto; transform: none; }

.ctrl { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 8px; background: linear-gradient(180deg, transparent, rgba(8,4,6,.82)); display: grid; gap: 4px; transition: opacity .35s; z-index: 3; }
.screen.idle.playing .ctrl { opacity: 0; pointer-events: none; }
.screen.idle.playing { cursor: none; }
.seek { position: relative; height: 18px; cursor: pointer; touch-action: none; outline: none; }
.seek::before, .s-buf, .s-on { content: ""; position: absolute; left: 0; top: 7px; height: 4px; border-radius: 4px; transition: height .15s, top .15s; }
.seek::before { right: 0; background: rgba(255,255,255,.22); }
.s-buf { background: rgba(255,255,255,.35); width: 0; }
.s-on { background: linear-gradient(90deg, #d6b47c, #f3e4c8); width: 0; }
.seek:hover::before, .seek:hover .s-buf, .seek:hover .s-on, .seek.drag::before, .seek.drag .s-buf, .seek.drag .s-on { top: 6px; height: 6px; }
.s-knob { position: absolute; top: 9px; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #f3e4c8; box-shadow: 0 0 0 4px rgba(233,211,172,.25); transform: scale(0); transition: transform .15s; }
.seek:hover .s-knob, .seek.drag .s-knob, .seek:focus-visible .s-knob { transform: scale(1); }
.s-marks i { position: absolute; top: 5px; width: 2px; height: 8px; margin-left: -1px; background: rgba(15,10,13,.85); border-radius: 1px; pointer-events: none; }
.s-tip { position: absolute; bottom: 22px; transform: translateX(-50%); background: rgba(15,10,13,.92); color: #f5ede6; font-size: 12px; padding: 5px 8px; border-radius: 8px; white-space: nowrap; pointer-events: none; display: grid; gap: 2px; text-align: center; }
.s-tip b { font-weight: 600; color: #e9d3ac; font-size: 11px; letter-spacing: .04em; }
.c-row { display: flex; align-items: center; gap: 2px; min-width: 0; }
.c-btn { width: 40px; height: 40px; flex: none; border: 0; background: none; color: var(--t-ink); border-radius: 10px; display: grid; place-items: center; cursor: pointer; padding: 0; font: 600 14px/1 var(--body); }
.c-btn:hover { background: rgba(255,255,255,.1); }
.c-btn:focus-visible { outline: 2px solid #e9d3ac; outline-offset: -2px; }
.c-btn svg { width: 22px; height: 22px; display: block; }
.c-btn[aria-pressed="true"] { color: #e9d3ac; }
.c-speed { width: auto; min-width: 40px; padding-inline: 8px; }
.c-vol { display: flex; align-items: center; }
.c-level { width: 0; opacity: 0; transition: width .25s, opacity .25s; accent-color: #e9d3ac; margin: 0; }
.c-vol:hover .c-level, .c-vol:focus-within .c-level { width: 76px; opacity: 1; margin-right: 6px; }
.c-time { font-size: 13px; color: var(--t-dim); font-variant-numeric: tabular-nums; white-space: nowrap; padding-inline: 6px; }
.c-gap { flex: 1; }
.toast { position: absolute; left: 16px; top: 16px; z-index: 4; display: flex; align-items: center; gap: 12px; background: rgba(15,10,13,.86); backdrop-filter: blur(8px); color: #f5ede6; border: 1px solid rgba(233,211,172,.3); border-radius: var(--pill); padding: 8px 8px 8px 16px; font-size: 14px; animation: toast-in .5s cubic-bezier(.2,.7,.2,1); }
.t-act { border: 0; border-radius: var(--pill); background: rgba(233,211,172,.16); color: #f3e4c8; font: 600 13px/1 var(--body); padding: 8px 12px; cursor: pointer; }
.t-act:hover { background: rgba(233,211,172,.28); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.gate { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 20px; background: rgba(15,10,13,.55); backdrop-filter: blur(14px) saturate(.8); -webkit-backdrop-filter: blur(14px) saturate(.8); }
.g-lock { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(233,211,172,.5); color: #e9d3ac; background: rgba(15,10,13,.5); }
.g-lock svg { width: 28px; height: 28px; }
.g-title { font-family: var(--display); font-weight: 500; font-size: 26px; max-width: 18em; text-wrap: balance; }
.g-sub { color: rgba(245,237,230,.8); max-width: 30em; font-size: 15px; }
.g-go { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.gate .btn-gold { --btn-a: #f3e4c8; --btn-b: #d6b47c; --btn-ink: #2a1a10; }
.gate .btn-ghost { color: #f5ede6; border-color: rgba(245,237,230,.3); background: rgba(255,255,255,.06); }
.screen.gated .ctrl, .screen.gated .big-play { display: none; }

/* the whiteboard: a portrait panel the height of the video, live with the lesson */
.board { background: var(--wb); color: var(--wb-ink); display: grid; grid-template-rows: auto 1fr; min-height: 0; overflow: hidden; position: relative; background-image: radial-gradient(var(--wb-line) 1px, transparent 1.4px); background-size: 18px 18px; }
.b-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 0; }
.b-top .eyebrow { font-size: 11px; }
.b-dots { display: flex; gap: 5px; }
.b-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--wb-line); transition: background .3s, transform .3s; cursor: pointer; }
.b-dots i.on { background: var(--gold); transform: scale(1.35); }
.b-dots i.past { background: color-mix(in srgb, var(--gold) 45%, transparent); }
.b-stage { position: relative; min-height: 0; overflow: hidden; }
.bf { position: absolute; inset: 0; padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 12px; justify-content: center; animation: bf-in .7s cubic-bezier(.2,.7,.2,1) both; }
.bf.out { animation: bf-out .45s cubic-bezier(.4,0,.6,1) both; }
@keyframes bf-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes bf-out { to { opacity: 0; transform: translateY(-14px); } }
.bf h3 { font-size: 26px; line-height: 1.1; }
.bf .bf-p { font-size: 14px; color: color-mix(in srgb, var(--wb-ink) 70%, transparent); margin: 0; }
.bi { opacity: 0; transform: translateX(-10px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.bi.on { opacity: 1; transform: none; }
.draw { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.on .draw, .draw.on { animation: draw 1.1s cubic-bezier(.45,.05,.35,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.b-title { text-align: center; align-items: center; gap: 14px; }
.b-title h3 { font-size: 34px; max-width: 9em; }
.b-title svg { width: 70%; max-width: 220px; height: 22px; }
.b-title .bf-p { font-family: var(--display); font-style: italic; font-size: 18px; max-width: 14em; }
.b-pts { display: grid; gap: 14px; }
.b-pt { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; }
.b-ic { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--gold) 60%, transparent); display: grid; place-items: center; color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--wb)); }
.b-ic svg { width: 24px; height: 24px; }
.b-pt b { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.15; display: block; }
.b-pt span { font-size: 13px; line-height: 1.35; color: color-mix(in srgb, var(--wb-ink) 68%, transparent); display: block; }
.b-steps { display: grid; gap: 0; position: relative; }
.b-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding-bottom: 14px; position: relative; }
.b-step::before { content: ""; position: absolute; left: 16px; top: 32px; bottom: 0; width: 2px; background: color-mix(in srgb, var(--gold) 35%, transparent); transform-origin: top; transform: scaleY(0); transition: transform .8s .3s; }
.b-step.on::before { transform: scaleY(1); }
.b-step:last-child::before { display: none; }
.b-step i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 15px/1 var(--display); font-style: normal; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); color: var(--btn-ink); }
.b-step b { font-family: var(--display); font-weight: 500; font-size: 18px; display: block; line-height: 1.2; padding-top: 5px; }
.b-step span { font-size: 13px; color: color-mix(in srgb, var(--wb-ink) 68%, transparent); line-height: 1.35; }
.b-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.b-opt { border: 1px solid var(--wb-line); border-radius: var(--pill); padding: 6px 11px; font-size: 13px; background: var(--wb); }
.b-opt.mine { background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); color: var(--btn-ink); border-color: transparent; }
.b-bins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; max-height: 70%; }
.b-bin { border: 1.5px dashed color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.b-bin > b { font-family: var(--display); font-weight: 500; font-size: 18px; text-align: center; color: var(--gold); }
.b-chip { font-size: 12.5px; line-height: 1.3; background: var(--wb); border: 1px solid var(--wb-line); border-radius: 10px; padding: 6px 8px; box-shadow: 0 6px 14px -10px var(--sheet-shadow); }
.b-chip.bi { transform: translateY(-16px); }
.b-venn svg { width: 100%; max-height: 52%; overflow: visible; }
.b-venn circle { fill: color-mix(in srgb, var(--gold) 12%, transparent); stroke: var(--gold); stroke-width: 2; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.b-venn .va { transform: translateX(-26px); }
.b-venn .vb { transform: translateX(26px); }
.b-venn.on .va, .b-venn.on .vb { transform: none; }
.b-venn text { fill: var(--wb-ink); font-family: var(--display); font-size: 17px; text-anchor: middle; }
.b-venn text.both { fill: var(--em); font-style: italic; font-size: 19px; }
.b-vt { display: grid; gap: 6px; font-size: 13px; line-height: 1.35; color: color-mix(in srgb, var(--wb-ink) 72%, transparent); }
.b-vt b { color: var(--wb-ink); font-weight: 600; }
.b-gauge svg { width: 100%; max-width: 260px; margin: 0 auto; display: block; overflow: visible; }
.b-gauge .needle { transform-origin: 130px 130px; transform: rotate(-80deg); transition: transform 2.4s cubic-bezier(.3,.6,.2,1); stroke: var(--wb-ink); stroke-width: 3; stroke-linecap: round; }
.b-gauge.on .needle { transform: rotate(var(--deg, 50deg)); }
.b-gauge .ends { display: flex; justify-content: space-between; font-size: 13px; color: color-mix(in srgb, var(--wb-ink) 70%, transparent); max-width: 260px; margin: 0 auto; width: 100%; }
.b-quote { align-items: center; text-align: center; }
.b-quote svg { width: 46px; height: 40px; }
.b-quote q { font-family: var(--display); font-style: italic; font-size: 25px; line-height: 1.25; quotes: none; max-width: 11em; }
.b-quote .sig { font-size: 32px; }
.b-lines { border-radius: 14px; background: repeating-linear-gradient(180deg, transparent 0 31px, var(--wb-line) 31px 32px); height: 128px; position: relative; }
.b-lines svg { position: absolute; left: 10px; top: 8px; width: calc(100% - 20px); height: 112px; }
.b-act { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.b-act svg { width: 48px; height: 48px; }
.b-act b { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.25; }

/* the guide under the video */
.w-under { padding-top: 22px; }
.w-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 40px; }
.pn { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--bg2); min-width: 0; }
.pn:hover { border-color: var(--gold); }
.pn span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.pn b { font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pn.next { text-align: right; }
.pn[data-state="locked"] b::before, .pn[data-state="later"] b::before { content: "\1F512\FE0E  "; font-size: 13px; }
/* her notes for the lesson, and its workbooks */
.notes { display: grid; gap: 22px; margin-bottom: 48px; max-width: 46em; }
.notes .sec-head { margin-bottom: 0; }
.n-body { display: grid; gap: 14px; color: var(--ink2); font-size: 17px; line-height: 1.6; }
.n-body p, .n-body ul { margin: 0; }
.n-body ul { padding-left: 1.2em; display: grid; gap: 6px; }
.n-body li::marker { color: var(--gold); content: "\2726  "; font-size: .7em; }
.n-files { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg2); }
.n-files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.n-file { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 15px; color: var(--ink); text-decoration: none; }
.n-file svg { width: 18px; height: 18px; color: var(--gold2); }
.n-file .i-down { display: none; }
a.n-file { cursor: default; }
/* the lesson is open to you: the workbooks become downloads */
.notes.mine a.n-file { cursor: pointer; }
.notes.mine a.n-file svg:first-child { display: none; }
.notes.mine a.n-file .i-down { display: block; }
.notes.mine a.n-file:hover span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold2); }
.n-files small { font-size: 11px; letter-spacing: .1em; color: var(--ink3); }
.guide .sec-head { margin-bottom: 28px; }
.g-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.g-sec { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 0 16px; position: relative; padding-bottom: 30px; }
.g-sec::before { content: ""; position: absolute; left: 28px; top: 40px; bottom: 6px; width: 2px; background: var(--line); }
.g-sec:last-child::before { display: none; }
.g-at { width: 58px; height: 34px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--bg2); color: var(--ink2); font: 600 13px/1 var(--body); cursor: pointer; font-variant-numeric: tabular-nums; display: grid; place-items: center; position: relative; z-index: 1; transition: background .3s, color .3s, border-color .3s; }
.g-at:hover { border-color: var(--gold); color: var(--gold); }
.g-sec.now .g-at { background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); color: var(--btn-ink); border-color: transparent; }
.g-body { display: grid; gap: 12px; min-width: 0; padding: 4px 0 0; }
.g-kind { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.g-body h3 { font-size: 25px; }
.g-body > p { margin: 0; color: var(--ink2); }
.g-card { border: 1px solid var(--line); border-radius: 18px; background: var(--bg2); padding: 18px; display: grid; gap: 14px; }
.g-sec.now .g-card { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: var(--shadow); }
.g-pts { display: grid; gap: 12px; }
.g-pt { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: 14px; background: var(--glass); }
.g-pt .b-ic { width: 52px; height: 52px; }
.g-pt b { font-family: var(--display); font-weight: 500; font-size: 19px; display: block; margin-bottom: 2px; }
.g-pt span { color: var(--ink2); font-size: 15px; }
.g-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.g-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.g-steps li::before { counter-increment: s; content: counter(s); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 500 17px/1 var(--display); border: 1.5px solid var(--gold); color: var(--gold); }
.g-steps b { font-family: var(--display); font-weight: 500; font-size: 18px; display: block; padding-top: 6px; }
.g-steps span { color: var(--ink2); font-size: 15px; }
.g-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.g-picks .chip.on { background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); color: var(--btn-ink); border-color: transparent; }
.g-note { font-size: 14px; color: var(--ink3); margin: 0; }
.g-sort { display: grid; gap: 8px; }
.g-sort-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--glass); }
.g-sort-row .seg { display: flex; border: 1px solid var(--line); border-radius: var(--pill); overflow: hidden; }
.seg button { border: 0; background: none; padding: 7px 12px; font: 500 14px/1 var(--body); color: var(--ink2); cursor: pointer; }
.seg button.on { background: var(--gold); color: var(--on-gold); }
.g-sort-row.right .seg button.on { background: #3c7a55; color: #fff; }
.g-sort-row.wrong .seg button.on { background: var(--claret2); color: #fff; }
.g-take { font-family: var(--display); font-style: italic; font-size: 19px; color: var(--em); margin: 0; }
.g-venn { display: grid; gap: 14px; }
.g-venn svg { width: 100%; max-width: 420px; justify-self: center; overflow: visible; }
.g-venn circle { fill: color-mix(in srgb, var(--gold) 12%, transparent); stroke: var(--gold); stroke-width: 2; }
.g-venn text { fill: var(--ink); font-family: var(--display); font-size: 18px; text-anchor: middle; }
.g-venn text.both { fill: var(--em); font-style: italic; }
.g-vt { display: grid; gap: 10px; }
.g-vt div { padding: 12px 14px; border-radius: 12px; background: var(--glass); font-size: 15px; color: var(--ink2); }
.g-vt b { color: var(--ink); display: block; font-family: var(--display); font-weight: 500; font-size: 17px; }
.g-scale { display: grid; gap: 10px; }
.g-scale input { width: 100%; accent-color: var(--gold); }
.g-ends { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink3); }
.g-read { font-family: var(--display); font-style: italic; font-size: 19px; color: var(--em); margin: 0; min-height: 1.4em; }
.g-quote { font-family: var(--display); font-style: italic; font-size: 30px; line-height: 1.25; margin: 0; padding-left: 22px; border-left: 3px solid var(--gold); }
.g-quote cite { display: block; font-family: var(--script); font-style: normal; color: var(--gold); font-size: 30px; margin-top: 6px; }
.g-journal textarea { font: 17px/32px var(--display); color: var(--ink); width: 100%; box-sizing: border-box; min-height: 130px; border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px; resize: vertical; background: var(--bg) repeating-linear-gradient(180deg, transparent 0 31px, var(--line) 31px 32px); background-position: 0 6px; }
.g-journal textarea:focus { outline: none; border-color: var(--gold); }
.g-saved { font-size: 13px; color: var(--ink3); min-height: 1em; }
.g-action { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center; cursor: pointer; font-family: var(--display); font-size: 20px; line-height: 1.3; }
.g-action input { width: 26px; height: 26px; accent-color: var(--gold); margin: 0; }
.g-action:has(input:checked) span { text-decoration: line-through; text-decoration-color: var(--gold); color: var(--ink2); }
.guide.veiled .g-list { filter: blur(5px); pointer-events: none; user-select: none; opacity: .6; max-height: 520px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent); }
.g-veil-note { display: flex; gap: 10px; align-items: center; color: var(--ink2); margin-bottom: 18px; }
.g-veil-note svg { width: 20px; height: 20px; color: var(--gold); }

@media (max-width: 899px) {
  .board { min-height: 380px; border-top: 1px solid rgba(255,255,255,.08); }
  .theater:not([data-board="on"]) .board { display: none; }
  .c-time { display: none; }
  .ctrl { padding-inline: 4px; }
  .c-btn { width: 36px; height: 36px; }
}
@media (min-width: 900px) {
  .theater { padding-block: 0; }
  .theater[data-board="on"] .stage { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
  .theater:not([data-board="on"]) .board { display: none; }
  .w-head { padding-bottom: 24px; }
  .g-pts { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .g-vt { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bf { padding: 18px 26px 26px; }
}
/* from tablet up the theater sits inside the same column as the title above it */
@media (min-width: 760px) {
  .theater { background: none; padding-inline: 48px; }
  .stage { max-width: calc(1180px - 96px); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 34px 70px -40px var(--sheet-shadow); }
}
@media (min-width: 1100px) {
  .theater { padding-inline: 64px; }
  .stage { max-width: calc(1180px - 128px); }
}
.theater:fullscreen { display: grid; align-items: center; width: 100vw; height: 100vh; padding: 0; background: var(--t-bg); }
.theater:fullscreen .stage { max-width: none; width: 100%; max-height: 100vh; border-radius: 0; box-shadow: none; }
@media (min-width: 900px) {
  .theater:fullscreen[data-board="on"] .stage { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
  .theater:fullscreen .board { display: grid; }
  .theater:fullscreen:not([data-board="on"]) .board { display: none; }
}
@media (max-width: 899px) { .theater:fullscreen .board { display: none; } }
/* a phone held sideways: the video takes the whole screen and the whiteboard steps aside;
   its questions come as a short quiz when the video ends */
@media (orientation: landscape) and (max-height: 500px) {
  html:has(.theater) { scroll-padding-top: 0; }
  body:has(.theater) .nav { position: static; }
  .theater { padding: 0; background: var(--t-bg); }
  .stage, .theater[data-board="on"] .stage, .theater:fullscreen[data-board="on"] .stage { max-width: none; border-radius: 0; box-shadow: none; grid-template-columns: minmax(0, 1fr); }
  .board, .c-board { display: none !important; }
  .screen { aspect-ratio: auto; height: min(100svh, 56.25vw); }
  .quiz-over { padding: 8px; }
  .qz-card { padding: 14px 18px 18px; gap: 10px; }
  .qz-card h3, .qz-card .g-card h3 { font-size: 19px; }
  .qz-card .chip { padding: 8px 13px; font-size: 14px; }
}

/* the quiz after the video, over the screen */
.screen.quizzing .ctrl, .screen.quizzing .big-play, .screen.quizzing .toast { display: none; }
.quiz-over { position: absolute; inset: 0; z-index: 6; display: flex; padding: 12px; overflow: auto; background: rgba(15,10,13,.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: toast-in .5s cubic-bezier(.2,.7,.2,1); }
.qz-card { margin: auto; width: min(620px, 100%); background: var(--bg); color: var(--ink); border-radius: 18px; padding: 18px 20px; display: grid; gap: 12px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.qz-card h3 { font-size: 22px; line-height: 1.15; }
.qz-card > p { margin: 0; color: var(--ink2); font-size: 15px; }
.qz-card .g-card { border: 0; padding: 0; background: none; }
.qz-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.qz-n { font-size: 13px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.qz-go { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; position: sticky; bottom: -18px; margin-bottom: -18px; padding-block: 10px 18px; background: var(--bg); }
.qz-go .btn { padding: 11px 18px; }
.qz-sum { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qz-sum li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--glass); }
.qz-sum b { font-family: var(--display); font-weight: 500; font-size: 17px; }
.qz-sum span { color: var(--ink2); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .rc-go svg, .rc-go::after, .rc-enter .e, .tr-ring, .tr-play::before, .tr-s, .bf, .bf.out { animation: none !important; }
  .bi, .b-venn circle, .b-gauge .needle, .b-step::before { transition: none; }
  .draw { stroke-dasharray: none; }
}
