/* the exam carousel on the student dashboard (extras/exam-carousel.js): a glassy 3D coverflow of tall cards,
   standing free on the page (no box behind it). Everything here is scoped to .xc. The colours come from each
   exam (--c1/--c2/--ac); no brand purple. */
.xc{position:relative;height:clamp(560px,48vw,660px);margin:0 0 calc(8*var(--u,1px));overflow:hidden;isolation:isolate;outline:none;border-radius:20px;
  background:transparent;--cw:320px;touch-action:pan-y;user-select:none;-webkit-user-select:none;--ui-ink:#1F2432;--ui-glass:rgba(255,255,255,.55);--ui-line:rgba(31,36,50,.12)}
:root[data-theme="dark"] .xc{--ui-ink:#F2EDE2;--ui-glass:rgba(255,255,255,.07);--ui-line:rgba(255,255,255,.16)}
/* no backdrop: the cards stand on the page itself */
.xc-bg{display:none}
.xc-track{position:absolute;inset:0 0 64px;z-index:1;perspective:1100px;perspective-origin:50% 45%;transform-style:preserve-3d;pointer-events:none}
/* the side cards sit behind the track plane in 3D; the plane itself must not swallow their clicks */
.xc-s{pointer-events:auto}

/* ---------- glass cards ---------- */
.xc-s{position:absolute;left:50%;top:50%;width:var(--cw);height:calc(100% - 20px);border-radius:26px;overflow:hidden;display:block;color:#fff!important;text-decoration:none!important;
  background:var(--floor,var(--c1));
  box-shadow:0 24px 44px rgba(15,18,28,.28),0 6px 14px rgba(15,18,28,.16),inset 0 0 0 1px rgba(255,255,255,.16);
  transition:transform .65s cubic-bezier(.22,1,.36,1),opacity .45s ease,box-shadow .3s ease,filter .45s ease;will-change:transform;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}
.xc:not(.ready) .xc-s{transition:none}
.xc.drag .xc-s{transition:opacity .2s ease}
.xc-s>img{position:absolute;left:0;right:0;top:0;width:100%;height:86%;object-fit:cover;object-position:50% 0;transform:scale(1.08);transform-origin:50% 40%;
  -webkit-mask-image:linear-gradient(180deg,#000 74%,transparent 98%);mask-image:linear-gradient(180deg,#000 74%,transparent 98%);transition:transform 1.2s cubic-bezier(.22,1,.36,1),filter .5s ease;filter:saturate(.9) brightness(.8)}
.xc-s.on>img{transform:scale(1);filter:saturate(1.05) brightness(.95)}
.xc-s:not(.on){filter:brightness(.82) saturate(.9);cursor:pointer}
/* glass sheen: a soft specular highlight across the top and a bright rim */
.xc-s::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit;
  background:linear-gradient(155deg,rgba(255,255,255,.16) 0%,transparent 26%),linear-gradient(180deg,transparent 56%,color-mix(in srgb,var(--floor,#0a0d16) 72%,transparent) 70%,var(--floor,#0a0d16) 84%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),inset 0 0 0 1px rgba(255,255,255,.12)}
.xc-shade{display:none}
.xc-s::after{content:"";position:absolute;left:22%;right:22%;top:0;height:1px;z-index:2;background:linear-gradient(90deg,transparent,var(--ac),transparent);opacity:.9}

/* status chip (Open / Free / Locked): frosted glass */
.xc-st{position:absolute;top:12px;right:12px;z-index:3;display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:999px;font:700 .64rem/1 var(--font-sans,system-ui);letter-spacing:.1em;text-transform:uppercase;
  color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);-webkit-backdrop-filter:blur(10px) saturate(1.4);backdrop-filter:blur(10px) saturate(1.4);box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.xc-s.lk .xc-st{color:#E3F4F4}
.xc-st i{width:6px;height:6px;border-radius:50%;background:var(--ac);box-shadow:0 0 8px var(--ac)}.xc-s.lk .xc-st i{display:none}
/* the Prepora mark: Prepa's head and the wordmark, in the same corner of every card */
.xc-brand{position:absolute;top:10px;left:12px;z-index:3;display:inline-flex;align-items:center;gap:7px;padding:4px 11px 4px 4px;border-radius:999px;color:#fff;
  background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.26);-webkit-backdrop-filter:blur(12px) saturate(1.4);backdrop-filter:blur(12px) saturate(1.4);box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.xc-brand img{width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.92);padding:1px;display:block}
.xc-wm{font:800 .66rem/1 var(--font-sans,system-ui);letter-spacing:.1em;text-transform:uppercase;color:#fff}

/* the lower part of the card: a dark glass panel with the exam's details (name and number, one line, scale and sections) */
.xc-txt{position:absolute;left:0;right:0;bottom:0;z-index:3;display:flex;flex-direction:column;gap:7px;padding:0 20px 20px;text-shadow:0 1px 10px rgba(0,0,0,.35)}
.xc-kick{font:700 .62rem/1.2 var(--font-sans,system-ui);letter-spacing:.16em;text-transform:uppercase;color:var(--ac)}
.xc-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.xc-txt b{font:800 clamp(1.3rem,1.9vw,1.65rem)/1.05 var(--font-sans,system-ui);letter-spacing:-.01em;color:#fff}
.xc-k{flex:none;font:600 .72rem/1 var(--font-sans,system-ui);letter-spacing:.06em;color:rgba(255,255,255,.6)}
.xc-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.xc-meta>span{font:600 .66rem/1 var(--font-sans,system-ui);padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:rgba(255,255,255,.86)}
.xc-go{margin-top:8px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 9px 9px 16px;border-radius:14px;font:700 .8rem/1 var(--font-sans,system-ui);
  color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.24);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:inset 0 1px 0 rgba(255,255,255,.25);
  opacity:0;transform:translateY(6px);transition:opacity .35s ease .12s,transform .45s cubic-bezier(.22,1,.36,1) .12s,background .2s ease}
.xc-go i{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--ac);color:var(--floor,#0a0d16);font-style:normal;font-weight:800;text-shadow:none;transition:transform .2s ease}
.xc-s.on .xc-go{opacity:1;transform:none}
/* side cards: the same panel and text; only the open button stays on the front card */
.xc-s:not(.on) .xc-go{display:none}
/* the front card covers the inner half of each side card, so the text moves to the outer half */
.xc-s.l .xc-txt{padding-right:46%}
.xc-s.r .xc-txt{padding-left:46%;text-align:right}
.xc-s.r .xc-row{flex-direction:row-reverse}
.xc-s.r .xc-meta{justify-content:flex-end}
@media (max-width:640px){.xc-s.l .xc-txt{padding-right:30%}.xc-s.r .xc-txt{padding-left:30%}}
/* the active exam's name in the control bar */
.xc-now{display:grid;gap:2px;min-width:0;max-width:200px;padding:0 6px;line-height:1.1}
.xc-now b{font:700 .78rem/1.1 var(--font-sans,system-ui);color:var(--ui-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xc-now span{font:500 .66rem/1.1 var(--font-sans,system-ui);color:color-mix(in srgb,var(--ui-ink) 60%,transparent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (hover:hover){
  .xc-s.on:hover{box-shadow:0 30px 60px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.26)}
  .xc-s.on:hover>img{transform:scale(1.03)}
  .xc-s.on:hover .xc-go{background:rgba(255,255,255,.28)}
  .xc-s.on:hover .xc-go i{transform:translateX(3px)}
}
.xc-s:focus-visible{outline:2px solid rgba(255,255,255,.85);outline-offset:3px}
.xc:focus-visible{box-shadow:inset 0 0 0 2px var(--ui-line)}

/* ---------- controls: one glass pill ---------- */
.xc-ui{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);height:42px;z-index:3;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 6px;border-radius:999px;
  background:var(--ui-glass);border:1px solid var(--ui-line);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);box-shadow:0 4px 12px rgba(15,18,28,.08),inset 0 1px 0 rgba(255,255,255,.4);color:color-mix(in srgb,var(--ui-ink) 65%,transparent)}
.xc-nav{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--ui-line);background:transparent;color:var(--ui-ink);cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s cubic-bezier(.22,1,.36,1)}
.xc-nav:disabled{opacity:.35;cursor:default}
@media (hover:hover){.xc-nav:not(:disabled):hover{background:color-mix(in srgb,var(--ui-ink) 8%,transparent)}}
.xc-nav:active:not(:disabled){transform:scale(.92)}.xc-nav:focus-visible,.xc-dot:focus-visible{outline:2px solid var(--ui-ink);outline-offset:2px}
.xc-count{font:600 .7rem/1 var(--font-sans,system-ui);letter-spacing:.14em;min-width:54px;text-align:center}.xc-count b{color:var(--ui-ink)}
.xc-dots{display:flex;gap:5px}
.xc-dot{width:6px;height:6px;padding:0;border-radius:3px;border:0;background:color-mix(in srgb,var(--ui-ink) 22%,transparent);cursor:pointer;transition:width .3s cubic-bezier(.22,1,.36,1),background .3s ease}
.xc-dot[aria-current]{width:20px;background:var(--ui-ink)}
.xc .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.xc.one .xc-track{inset:0}.xc.one .xc-s{height:calc(100% - 26px)}
@media (max-width:640px){
  .xc{height:clamp(500px,140vw,580px)}
  .xc-txt{padding:0 15px 15px}.xc-txt b{font-size:1.25rem}.xc-brand{top:9px;left:9px}.xc-now{display:none}
  .xc-dots{display:none}.xc-st{top:10px;right:10px}
}
/* glass needs a backdrop filter; without one the panels fall back to a darker tint so text stays readable */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.xc-ui{background:var(--surface,#fff)}}
@media (prefers-reduced-motion:reduce){.xc-s{transition:opacity .2s ease}.xc-s>img{transition:none}.xc-go{transition:none}.xc-bg,.xc-bg::after{transition:none}}
