/* ==========================================================================
   mo3alemi - player.css - video stage, chrome, chapters, quality/speed menu
   Stage 1 (mobile-first redesign). 360px first, then 520 / 768 / 1024px.

   Original split from the single-file build (معلمي.html), source lines 192-232.
   Plain classic script: it shares one global scope with the other files, so the
   load order in index.html matters. Never load these files with type="module".

   The video stage stays a black content surface with white chrome - that is the
   one intentional exception to the theme tokens, and the player stays inside
   the page gutter (no negative-margin bleed).
   ========================================================================== */

/* ------------------------------------------------------------- the stage --- */
.pl{
  position:relative;
  background:#000;
  border-radius:var(--r-lg);
  overflow:hidden;
  aspect-ratio:16/9;
  width:100%;
  touch-action:manipulation;
  user-select:none;
  -webkit-user-select:none;
  direction:ltr;            /* the chrome inside the stage is always LTR */
  color:#fff;
  transition:all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.pl:fullscreen,
.pl:-webkit-full-screen,
.pl.is-fullscreen{
  border-radius:0 !important;
  width:100vw !important;
  height:100vh !important;
  max-width:none !important;
  max-height:none !important;
  aspect-ratio:auto !important;
  background:#000 !important;
  animation:plFullscreenIn 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.pl.is-fullscreen:not(:fullscreen):not(:-webkit-full-screen){
  position:fixed !important;
  inset:0 !important;
  z-index:999999 !important;
  margin:0 !important;
}
@keyframes plFullscreenIn{
  0%{transform:scale(0.94);opacity:0.75;}
  100%{transform:scale(1);opacity:1;}
}
.pl video,.pl canvas,.pl iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  background:#000;
  border:0;
}
.pl canvas[hidden]{display:none}

/* YouTube Anti-Leak Shields (block opening on YouTube / copying link) */
.yt-shield-top{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:65px;
  z-index:10;
  background:transparent;
  pointer-events:auto;
  cursor:default;
}
.yt-shield-bottom{
  position:absolute;
  bottom:0;
  right:0;
  width:130px;
  height:55px;
  z-index:10;
  background:transparent;
  pointer-events:auto;
  cursor:default;
}

/* double-tap skip zones: half the stage each, they stop above the control bar */
.zone{position:absolute;top:0;bottom:0 !important;z-index:2;touch-action:manipulation}
.zl{left:0;width:32%}
.zc{left:32%;width:36%}
.zr{right:0;width:32%}

/* Top Speed Boost Pill Badge (Long-press 2x / 1.25x) */
.pl-speed-badge{
  position:absolute;
  top:14px;
  left:50%;
  transform:translateX(-50%) translateY(-20px);
  z-index:7;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 14px;
  background:rgba(0,0,0,0.78);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,0.22);
  border-radius:var(--r-pill, 999px);
  color:#fff;
  font-size:13px;
  font-weight:700;
  letter-spacing:0.5px;
  pointer-events:none;
  opacity:0;
  transition:opacity 0.2s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  direction:ltr;
  box-shadow:0 4px 16px rgba(0,0,0,0.55);
}
.pl-speed-badge.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}
.pl-speed-badge .pl-speed-badge-ico{
  font-size:14px;
  color:var(--accent, #5B4BE8);
}

/* skip / seek feedback */
.flash{
  position:absolute;
  top:38%;
  z-index:3;
  background:rgba(0,0,0,.62);
  color:#fff;
  border-radius:var(--r-pill);
  padding:8px 18px;
  font-size:var(--fs-body);
  pointer-events:none;
  opacity:0;
  transition:opacity var(--t) var(--ease);
  direction:ltr;
}
.flash.l{left:10%}
.flash.r{right:10%}
.flash.c{left:50%;transform:translateX(-50%)}
.flash.show{opacity:1}

/* anti-piracy watermark: small, faint, moved by JS */
.wm{
  position:absolute;
  z-index:4;
  font-size:11px;
  line-height:1.2;
  color:rgba(255,255,255,.34);
  text-shadow:0 1px 2px rgba(0,0,0,.6);
  pointer-events:none;
  user-select:none;
  transition:top 1.2s var(--ease),left 1.2s var(--ease);
  direction:ltr;
  white-space:nowrap;
}
.wm.bouncing-wm{
  position:absolute;
  top:0;
  left:0;
  z-index:4;
  pointer-events:none;
  user-select:none;
  transition:none;
  color:rgba(255,255,255,.42);
  text-shadow:0 1px 3px rgba(0,0,0,.75);
  text-align:center;
  line-height:1.25;
  white-space:nowrap;
}
.wm.bouncing-wm .wm-phone{
  display:none;
}
.wm.bouncing-wm .wm-brand{
  font-size:7.5px;
  font-weight:700;
  letter-spacing:0.7px;
  color:rgba(255,255,255,.45);
}
.wm.bouncing-wm .wm-user{
  font-size:8px;
  font-weight:600;
  letter-spacing:0;
  text-transform:none;
  color:rgba(255,255,255,.55);
}

/* --------------------------------------------------------------- controls --- */
.ctl{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:5;
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:6px max(8px, env(safe-area-inset-right, 8px)) max(6px,var(--sab)) max(8px, env(safe-area-inset-left, 8px));
  background:linear-gradient(transparent,rgba(0,0,0,.88));
  transition:transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
  will-change:transform, opacity;
}
.pl.ctl-hidden .ctl{
  transform:translateY(100%);
  opacity:0;
  pointer-events:none;
}
.pl.ctl-hidden .mn{
  display:none !important;
}
.pl.ctl-hidden{
  cursor:none;
}

/* Center Play/Pause Ripple Badge */
.pl-center-icon{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%) scale(0.6);
  width:68px;
  height:68px;
  border-radius:50%;
  background:rgba(0,0,0,0.68);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border:2px solid rgba(255,255,255,0.22);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  z-index:6;
  opacity:0;
  transition:opacity 0.22s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:0 8px 24px rgba(0,0,0,0.45);
}
.pl-center-icon.active{
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
}
.pl-center-icon svg{
  width:32px;
  height:32px;
  fill:currentColor;
}
.ctl .r1{
  display:flex;
  align-items:center;
  gap:4px;
  min-height:var(--tap);
}

/* icon buttons: 44px by default, 40px is allowed inside the overlay */
.cbtn{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:var(--tap);
  min-height:var(--tap);
  padding:0;
  border:0;
  border-radius:var(--r);
  background:none;
  color:#fff;
  font-size:var(--fs-body);
  cursor:pointer;
  transition:background var(--t-fast) var(--ease),transform var(--t-fast) var(--ease);
}
.cbtn svg{width:22px;height:22px}
.cbtn:not(.pp):hover{background:rgba(255,255,255,.16)}
.cbtn:not(.pp):active{background:rgba(255,255,255,.26)}
.cbtn.pp{
  width:48px;
  height:48px;
  min-width:48px;
  min-height:48px;
  border-radius:50%;
  background:rgba(255,255,255,.2);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.cbtn.pp:hover{background:rgba(255,255,255,.32)}
.cbtn.pp:active{transform:scale(.94)}

/* timecode: always LTR, tabular so it does not jitter while playing */
.tm{
  min-width:0;
  margin-inline-end:auto;
  padding-inline-start:4px;
  font-size:var(--fs-xs);
  line-height:1.2;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  direction:ltr;
}

/* ------------------------------------------------------------- seek bar ---
   30px hit area, the visible track is centred inside it and the knob has a
   44px invisible touch target. */
.sb{
  position:relative;
  height:30px;
  margin-top:2px;
  cursor:pointer;
  touch-action:none;
}
.sb-lay{position:absolute;left:0;right:0;top:13px;height:4px}
.sb-lay.lg{top:11px;height:8px;filter:saturate(1.25) brightness(1.1)}
.sb-bg,.sb-reach,.sb-play{position:absolute;top:0;bottom:0;left:0;border-radius:var(--r-pill)}
.sb-bg{width:100%;background:rgba(255,255,255,.24)}
.sb-reach{width:0;background:rgba(255,255,255,.44)}
.sb-play{width:0;background:var(--accent)}
.sb-knob{
  position:absolute;
  top:7px;
  width:16px;
  height:16px;
  margin-left:-8px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 3px rgba(255,255,255,.26),0 1px 4px rgba(0,0,0,.5);
  transition:transform var(--t-fast) var(--ease);
}
.sb-knob::before{content:"";position:absolute;inset:-14px}   /* 44px invisible target */
.sb-knob.in{transform:scale(1.25)}
.sb-lab{
  position:absolute;
  top:-12px;
  transform:translateX(-50%);
  max-width:70%;
  padding:2px 10px;
  border-radius:var(--r-pill);
  background:rgba(255,255,255,.94);
  color:#10122a;
  font-size:11px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  pointer-events:none;
  box-shadow:0 2px 8px rgba(0,0,0,.35);
}

/* ------------------------------------------------- Seekbar Buffer Line --- */
.sb-buf{
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:0;
  background:rgba(255,255,255,0.35);
  border-radius:var(--r-pill);
  transition:width 0.25s linear;
  pointer-events:none;
}

/* ------------------------------------------------- Volume Control Group --- */
.vgrp{
  display:inline-flex;
  align-items:center;
  gap:2px;
  position:relative;
}
.vslider-wrap{
  width:0;
  overflow:hidden;
  transition:width 0.22s var(--ease);
  display:flex;
  align-items:center;
}
.vgrp:hover .vslider-wrap,
.vgrp:focus-within .vslider-wrap,
.vslider-wrap.active{
  width:64px;
  margin-inline-end:6px;
}
.vslider{
  width:60px;
  height:4px;
  -webkit-appearance:none;
  appearance:none;
  background:rgba(255,255,255,0.3);
  border-radius:2px;
  outline:none;
  cursor:pointer;
}
.vslider::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#fff;
  cursor:pointer;
  box-shadow:0 1px 3px rgba(0,0,0,0.5);
}
.vslider::-moz-range-thumb{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#fff;
  cursor:pointer;
  border:0;
}

/* ------------------------------------------------- Buffering Animation --- */
.vid-buffering{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  z-index:6;
  pointer-events:none;
  opacity:0;
  transition:opacity 0.25s var(--ease);
}
.vid-buffering.active{
  opacity:1;
}
.vid-spinner-svg{
  width:58px;
  height:58px;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,0.7));
}
.vid-spinner-path{
  stroke:#8b5cf6;
  stroke-linecap:round;
  transform-origin:center;
  animation:vidSpinnerMorph 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes vidSpinnerMorph {
  /* Phase 1: Elastic stretch forward (0% - 20%) */
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
    transform: rotate(0deg);
    stroke: #8b5cf6;
  }
  20% {
    stroke-dasharray: 110, 150;
    stroke-dashoffset: -20;
    transform: rotate(180deg);
    stroke: #a78bfa;
  }
  /* Phase 2: Accelerated snap & whip catch-up (20% - 40%) */
  28% {
    stroke-dasharray: 120, 150;
    stroke-dashoffset: -35;
    transform: rotate(320deg);
  }
  40% {
    stroke-dasharray: 45, 150;
    stroke-dashoffset: -120;
    transform: rotate(450deg);
    stroke: #6366f1;
  }
  /* Phase 3: Triple breathing pulsation (40% - 60%) */
  50% {
    stroke-dasharray: 85, 150;
    stroke-dashoffset: -140;
    transform: rotate(570deg) scale(1.08);
    stroke: #38bdf8;
  }
  60% {
    stroke-dasharray: 40, 150;
    stroke-dashoffset: -190;
    transform: rotate(660deg) scale(0.96);
    stroke: #818cf8;
  }
  /* Phase 4: Reverse whip recoil & forward spring (60% - 80%) */
  70% {
    stroke-dasharray: 95, 150;
    stroke-dashoffset: -210;
    transform: rotate(730deg);
  }
  80% {
    stroke-dasharray: 30, 150;
    stroke-dashoffset: -270;
    transform: rotate(860deg);
    stroke: #c084fc;
  }
  /* Phase 5: Neon ripple wave returning to origin (80% - 100%) */
  90% {
    stroke-dasharray: 75, 150;
    stroke-dashoffset: -300;
    transform: rotate(970deg);
    stroke: #a855f7;
  }
  100% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: -350;
    transform: rotate(1080deg);
    stroke: #8b5cf6;
  }
}

/* ------------------------------------------------- YouTube-style Settings Popover --- */
.mn{
  position:absolute;
  right:12px !important;
  left:auto !important;
  inset-inline-end:auto !important;
  inset-inline-start:auto !important;
  bottom:54px !important;
  z-index:9;
  width:235px;
  max-width:calc(100% - 24px);
  max-height:calc(100% - 64px);
  overflow-y:auto;
  overflow-x:hidden;
  display:flex;
  flex-direction:column;
  padding:6px;
  border-radius:12px;
  background:rgba(20, 24, 38, 0.95);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 12px 32px rgba(0,0,0,0.65);
  color:#fff;
  user-select:none;
}
.mn[hidden]{display:none}

/* ------------------------------------------------- Captions Overlay --- */
.pl-captions{
  position:absolute;
  bottom:64px;
  left:50%;
  transform:translateX(-50%);
  max-width:85%;
  padding:6px 14px;
  background:rgba(0, 0, 0, 0.78);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  color:#fff;
  font-size:13.5px;
  font-weight:600;
  line-height:1.4;
  text-align:center;
  border-radius:6px;
  z-index:5;
  pointer-events:none;
  box-shadow:0 2px 10px rgba(0,0,0,0.6);
  text-shadow:0 1px 3px rgba(0,0,0,0.95);
  transition:all 0.15s ease;
  user-select:none;
}
.pl-captions[hidden]{display:none}

.mn-view{
  display:flex;
  flex-direction:column;
  gap:2px;
  width:100%;
}
.mn-view[hidden]{display:none}

.mn-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:6px 10px;
  border-radius:8px;
  cursor:pointer;
  transition:background 0.15s ease;
}
.mn-item:hover, .mn-item:active{
  background:rgba(255,255,255,0.09);
}
.mn-item-left{
  display:flex;
  align-items:center;
  gap:10px;
}
.mn-ico{
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,0.85);
}
.mn-titles{
  display:flex;
  flex-direction:column;
  gap:2px;
  text-align:start;
}
.mn-title{
  font-size:13px;
  font-weight:600;
  color:#fff;
}
.mn-sub{
  font-size:11px;
  color:rgba(255,255,255,0.5);
  font-weight:400;
  font-variant-numeric:tabular-nums;
}
.mn-arr{
  color:rgba(255,255,255,0.35);
  font-size:16px;
  font-weight:700;
  padding-inline-start:4px;
}

.mn-header{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  font-size:13px;
  font-weight:700;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,0.08);
  margin-bottom:4px;
  cursor:pointer;
  border-radius:6px;
  transition:background 0.15s;
}
.mn-header:hover{
  background:rgba(255,255,255,0.06);
}
.mn-back-arr{
  font-size:16px;
  color:rgba(255,255,255,0.6);
  font-weight:700;
}
.mn-opts{
  display:flex;
  flex-direction:column;
  gap:1px;
  max-height:220px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,0.2) transparent;
}
.mn-opts::-webkit-scrollbar{
  width:4px;
}
.mn-opts::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,0.2);
  border-radius:2px;
}
.mn-opt{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  padding:8px 10px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:13px;
  font-weight:500;
  border-radius:6px;
  cursor:pointer;
  text-align:start;
  transition:background 0.15s;
}
.mn-opt:hover{
  background:rgba(255,255,255,0.08);
}
.mn-opt.on{
  color:var(--accent);
  font-weight:700;
}
.mn-chk{
  color:var(--accent);
  font-weight:700;
  font-size:13px;
}

/* ------------------------------------------------------------ error pane --- */
.perr{
  position:absolute;
  inset:0;
  z-index:4;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  text-align:center;
  background:#000;
  font-size:var(--fs-sm);
}
.perr:empty{display:none}

/* ------------------------------------------------------------- chapters ---
   Comfortable 44px+ rows with a clear now / locked / done affordance. */
.chap{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:var(--tap);
  padding:12px;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--surface);
  color:inherit;
  cursor:pointer;
  text-align:start;
  transition:background var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease);
}
.chap:active{background:var(--surface-2)}
.chap.now{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--accent)}
.chap.now:active{background:var(--accent-soft-2)}
.chap.done{box-shadow:inset 3px 0 0 var(--ok)}
.chap.lock{opacity:.6;cursor:not-allowed}
.chap.lock:active{background:var(--surface)}
.chap .tt{
  flex:none;
  min-width:84px;
  color:var(--muted);
  font-size:var(--fs-xs);
  font-variant-numeric:tabular-nums;
  direction:ltr;            /* timecodes stay LTR */
}
.chap.now .tt{color:var(--accent)}
.chap .nm{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.45}

/* -------------------------------------------------------- larger screens --- */
@media (min-width:520px){
  .ctl{padding-inline:10px;gap:3px}
  .ctl .r1{gap:6px}
  .cbtn svg{width:24px;height:24px}
  .tm{font-size:var(--fs-sm);padding-inline-start:6px}
  .sb{margin-top:4px}
  .mn{right:12px !important;left:auto !important;inset-inline-end:auto !important;inset-inline-start:auto !important;width:260px;bottom:64px;gap:8px}
}
@media (min-width:768px){
  .ctl{padding-inline:12px}
}
@media (min-width:1024px){
  .pl{border-radius:var(--r-xl)}
}

/* ------------------------------------------------- placeholders (Stage 6) --- */
/* Examples in the signup form are deliberately faint and vanish as soon as the
   student starts typing (native browser behaviour). */
input::placeholder,textarea::placeholder{color:var(--muted);opacity:.55;font-weight:400}
input:focus::placeholder,textarea:focus::placeholder{opacity:.32}

/* -------------------------------------------- timed in-video question layer --- */
.vq-layer{
  position:absolute;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;
  padding:14px;background:rgba(6,8,14,.88);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  direction:rtl;text-align:center;color:#fff;opacity:0;transition:opacity .28s ease;
}
.vq-layer[hidden]{display:none !important}
.vq-layer.in{opacity:1}
.quiz-lock .ctl,.quiz-lock .zone,.quiz-lock .mn,.quiz-lock .pl-center-icon,
.quiz-lock .pl-speed-badge{pointer-events:none !important;opacity:.18;filter:grayscale(1)}
.vq-card{
  width:min(560px,100%);max-height:100%;overflow:auto;background:linear-gradient(160deg,#1d2230,#121620);
  border:1px solid rgba(255,255,255,.13);border-radius:18px;padding:20px 18px;
  box-shadow:0 24px 60px rgba(0,0,0,.6);transform:scale(.88) translateY(16px);
  animation:vqPop .42s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes vqPop{to{transform:scale(1) translateY(0)}}
.vq-badge{
  display:inline-block;margin-bottom:10px;padding:5px 12px;border-radius:999px;
  background:linear-gradient(90deg,#6C8CFF,#2FD5A6);color:#07101a;font-size:12px;font-weight:800;
}
.vq-card h3{margin:0 0 6px;font-size:clamp(16px,3.4vw,22px);line-height:1.5;overflow-wrap:anywhere}
.vq-sub{margin:0 0 14px;font-size:13px;color:rgba(255,255,255,.62)}
.vq-opts{display:grid;gap:8px;margin-bottom:16px}
.vq-opt{
  display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border-radius:12px;
  border:1.5px solid rgba(255,255,255,.16);background:rgba(255,255,255,.05);color:#fff;
  font:inherit;font-size:14px;text-align:start;cursor:pointer;transition:transform .16s,border-color .16s,background .16s;
}
.vq-opt>span:nth-child(2){flex:1;overflow-wrap:anywhere}
.vq-letter{
  flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,255,255,.12);font-weight:800;font-size:12px;
}
button.vq-opt:hover{transform:translateY(-1px);border-color:rgba(108,140,255,.8);background:rgba(108,140,255,.16)}
button.vq-opt.sel{border-color:#6C8CFF;background:rgba(108,140,255,.26);box-shadow:0 0 0 3px rgba(108,140,255,.18)}
.vq-actions{display:flex;justify-content:center}
.vq-actions .btn{min-width:150px}
.vq-card.result .vq-opt.correct{border-color:#2FD5A6;background:rgba(47,213,166,.18)}
.vq-card.result .vq-opt.picked{border-color:#ff6b6b;background:rgba(255,107,107,.15)}
.vq-tick{color:#2FD5A6;font-size:18px}
.vq-note{margin:6px 0 2px;font-size:13px;color:rgba(255,255,255,.78)}
.vq-pts{margin-top:6px;font-size:20px;font-weight:900;color:#2FD5A6}
.vq-card.wrong .vq-pts{color:#ff9a6b}
.vq-resume{margin:10px 0 0;font-size:12px;color:rgba(255,255,255,.5);animation:vqFade 1s ease-in-out infinite alternate}
.vq-layer.done .vq-card{animation:vqOut .5s ease forwards;animation-delay:2s}
@keyframes vqOut{to{transform:scale(1.06);opacity:0}}
@keyframes vqFade{from{opacity:.4}to{opacity:1}}
@media (max-width:520px){
  .vq-card{padding:14px 12px;border-radius:14px}
  .vq-opt{padding:9px 10px;font-size:13px}
}
