/* ═══════════════════════════════════════════════════
   OFFLINE EXAM — Center Exam Without Internet
   Pinned Scroll-Driven Animation
   ═══════════════════════════════════════════════════ */

/* ═══════ OUTER SECTION ═══════ */
.offline-exam {
  position: relative;
}

.offline-exam-cinema {
  position: relative;
  height: 350vh;
}

.offline-exam-stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  --p: 0;
}

/* ═══════ AMBIENT BACKGROUND ═══════ */
.offline-exam-aurora {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 40% at 30% 30%, rgba(0, 188, 212, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 50% at 70% 70%, rgba(124, 77, 255, 0.1), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(0, 150, 136, 0.08), transparent 70%);
  filter: blur(60px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.offline-exam-grid-fx {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ═══════ HEADER ═══════ */
.offline-exam-header {
  position: absolute;
  top: clamp(50px, 8vh, 100px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  width: min(800px, 92vw);
  pointer-events: none;
}

.offline-exam-headline {
  font-family: var(--font-ar);
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  flex-wrap: wrap;
}

.offline-exam-headline-accent {
  display: inline-flex;
  align-items: baseline;
  background: linear-gradient(135deg, #00bcd4, #7c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(0, 188, 212, 0.35));
}

.offline-exam-sub {
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
  max-width: 560px;
  margin: 0 auto;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* ═══════ VIDEO LINKS ═══════ */
.offline-exam-links {
  position: absolute;
  bottom: clamp(24px, 4vh, 50px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  gap: 16px;
  pointer-events: all;
  opacity: calc(var(--p) * 1.5);
  transition: opacity 0.4s ease;
}

.offline-exam-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  font-family: var(--font-ar);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease-out-quart);
  text-decoration: none;
}

.offline-exam-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(0,188,212,0.4);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,188,212,0.15);
}

.offline-exam-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ═══════ DECORATED CTAs — shared shell for both buttons ═══════ */
.offline-exam-link.is-explain,
.offline-exam-link.is-demo {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
  overflow: visible;
}

.offline-exam-link.is-explain { animation: oexCtaBob 2.6s ease-in-out infinite; }
.offline-exam-link.is-demo    { animation: oexCtaBob 3.2s ease-in-out infinite 0.4s; }

/* Rotating gradient halo (border) — colors set per variant */
.offline-exam-link-aura {
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.offline-exam-link-aura::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(260%, 320px);
  aspect-ratio: 1;
  filter: saturate(1.4);
  will-change: transform;
  animation: oexCtaRotate 3s linear infinite;
}

.offline-exam-link-aura::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 100px;
  z-index: 1;
}

/* Soft outer glow */
.offline-exam-link-glow {
  position: absolute;
  inset: -14px;
  border-radius: 100px;
  z-index: -1;
  pointer-events: none;
  filter: blur(14px);
  animation: oexCtaGlow 2.6s ease-in-out infinite;
}

/* Pulsing rings */
.offline-exam-link.is-explain::before,
.offline-exam-link.is-demo::before,
.offline-exam-link.is-explain::after,
.offline-exam-link.is-demo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  border: 1.5px solid;
  z-index: 0;
  pointer-events: none;
  animation: oexCtaPulse 1.8s ease-out infinite;
}

.offline-exam-link.is-explain::after,
.offline-exam-link.is-demo::after {
  animation-delay: 0.9s;
}

.offline-exam-link-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  color: #fff;
  font-family: var(--font-ar);
  font-size: 0.92rem;
  font-weight: 800;
}

.offline-exam-link-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offline-exam-link-icon svg {
  width: 14px;
  height: 14px;
}

.offline-exam-link.is-explain svg,
.offline-exam-link.is-demo svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Shimmering label */
.offline-exam-link-label {
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: oexCtaShimmer 2.8s linear infinite;
}

.offline-exam-link.is-explain:hover,
.offline-exam-link.is-demo:hover {
  background: transparent;
  border: 0;
  transform: translateY(-3px) scale(1.04);
  box-shadow: none;
  animation-play-state: paused;
}

.offline-exam-link.is-explain:hover .offline-exam-link-glow,
.offline-exam-link.is-demo:hover .offline-exam-link-glow {
  filter: blur(18px);
}

/* ═══ VARIANT A: "شرح الميزة" — Magenta / Purple (watch / cinematic) ═══ */
.offline-exam-link.is-explain .offline-exam-link-aura::before {
  background: conic-gradient(
    from 0deg,
    #e040fb 0deg,
    #7c4dff 90deg,
    #b388ff 180deg,
    #ff4081 270deg,
    #e040fb 360deg
  );
}

.offline-exam-link.is-explain .offline-exam-link-aura::after {
  background: linear-gradient(135deg, #1a1030 0%, #100722 100%);
}

.offline-exam-link.is-explain .offline-exam-link-glow {
  background: radial-gradient(
    closest-side,
    rgba(224, 64, 251, 0.55),
    rgba(124, 77, 255, 0.35) 45%,
    transparent 75%
  );
}

.offline-exam-link.is-explain::before { border-color: rgba(224, 64, 251, 0.6); }
.offline-exam-link.is-explain::after  { border-color: rgba(124, 77, 255, 0.5); }

.offline-exam-link.is-explain .offline-exam-link-icon {
  background: linear-gradient(135deg, #e040fb, #7c4dff);
  box-shadow: 0 0 14px rgba(224, 64, 251, 0.55);
  color: #fff;
}

.offline-exam-link.is-explain .offline-exam-link-label {
  background-image: linear-gradient(
    100deg,
    #ffffff 0%, #ffffff 35%, #ffd6ff 50%, #ffffff 65%, #ffffff 100%
  );
}

/* ═══ VARIANT B: "تجربة عملية" — Cyan / Green (try / interactive) ═══ */
.offline-exam-link.is-demo .offline-exam-link-aura::before {
  background: conic-gradient(
    from 0deg,
    #00e5ff 0deg,
    #1de9b6 90deg,
    #00c853 180deg,
    #64ffda 270deg,
    #00e5ff 360deg
  );
}

.offline-exam-link.is-demo .offline-exam-link-aura::after {
  background: linear-gradient(135deg, #062028 0%, #03161a 100%);
}

.offline-exam-link.is-demo .offline-exam-link-glow {
  background: radial-gradient(
    closest-side,
    rgba(0, 229, 255, 0.5),
    rgba(0, 200, 83, 0.32) 45%,
    transparent 75%
  );
}

.offline-exam-link.is-demo::before { border-color: rgba(0, 229, 255, 0.6); }
.offline-exam-link.is-demo::after  { border-color: rgba(0, 200, 83, 0.5);  }

.offline-exam-link.is-demo .offline-exam-link-icon {
  background: linear-gradient(135deg, #00e5ff, #00c853);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.55);
  color: #06202a;
}

.offline-exam-link.is-demo .offline-exam-link-icon svg {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.4));
}

.offline-exam-link.is-demo .offline-exam-link-label {
  background-image: linear-gradient(
    100deg,
    #ffffff 0%, #ffffff 35%, #b9f6ca 50%, #ffffff 65%, #ffffff 100%
  );
}

@keyframes oexCtaRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes oexCtaPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(1.45); opacity: 0;   }
}

@keyframes oexCtaGlow {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1;   }
}

@keyframes oexCtaBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

@keyframes oexCtaShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .offline-exam-link.is-explain,
  .offline-exam-link.is-demo,
  .offline-exam-link.is-explain::before,
  .offline-exam-link.is-explain::after,
  .offline-exam-link.is-demo::before,
  .offline-exam-link.is-demo::after,
  .offline-exam-link-aura::before,
  .offline-exam-link-glow,
  .offline-exam-link-label {
    animation: none;
  }
}

/* ═══════ ANIMATION CANVAS — Center Area ═══════ */
.offline-exam-canvas {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding-top: clamp(140px, 18vh, 200px);
  padding-bottom: clamp(80px, 10vh, 120px);
  pointer-events: none;
}

.offline-exam-scene {
  position: relative;
  width: min(700px, 90vw);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════ ADMIN DEVICE — Center Element (المعلم/الأدمن) ═══════ */
.oex-router {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 10;
  opacity: max(0, min(1, var(--p) / 0.08));
}

.oex-admin-phone {
  width: 64px;
  height: 88px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1a1f3a, #0d1024);
  border: 1.5px solid rgba(0,188,212,0.45);
  padding: 6px;
  position: relative;
  box-shadow:
    0 0 30px rgba(0,188,212,0.35),
    0 8px 24px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

.oex-admin-phone::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
}

.oex-admin-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(0,188,212,0.18), rgba(124,77,255,0.14));
  display: flex;
  align-items: center;
  justify-content: center;
}

.oex-admin-phone-screen svg {
  width: 30px;
  height: 30px;
  color: #00bcd4;
  filter: drop-shadow(0 0 6px rgba(0,188,212,0.6));
}

.oex-admin-label {
  font-family: var(--font-ar);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0,188,212,0.12);
  border: 1px solid rgba(0,188,212,0.25);
  white-space: nowrap;
}

/* WiFi pulse rings */
.oex-wifi-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(0,188,212,0.2);
  pointer-events: none;
  z-index: 9;
}

.oex-wifi-ring:nth-child(2) {
  width: 140px;
  height: 140px;
  opacity: max(0, min(1, (var(--p) - 0.03) / 0.06));
  animation: oexPulse 3s ease-out infinite;
}

.oex-wifi-ring:nth-child(3) {
  width: 210px;
  height: 210px;
  opacity: max(0, min(1, (var(--p) - 0.06) / 0.06));
  animation: oexPulse 3s ease-out infinite 0.6s;
}

.oex-wifi-ring:nth-child(4) {
  width: 290px;
  height: 290px;
  opacity: max(0, min(1, (var(--p) - 0.09) / 0.06));
  animation: oexPulse 3s ease-out infinite 1.2s;
}

@keyframes oexPulse {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
}

/* ═══════ SUBMISSION LINES — Phones → Admin (data transfer, no internet) ═══════ */
.oex-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
  overflow: visible;
}

.oex-line {
  fill: none;
  stroke: rgba(0,200,83,0.55);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(0,200,83,0.4));
  /* Sync appearance with the per-phone checkmark phase (>=0.55) */
  opacity: max(0, min(1, (var(--p) - 0.55) / 0.10));
  animation: oexLineFlow 1.6s linear infinite;
}

@keyframes oexLineFlow {
  to { stroke-dashoffset: -20; }
}

/* ═══════ PHONE DEVICES — Students around router ═══════ */
.oex-phone {
  position: absolute;
  width: 52px;
  height: 90px;
  border-radius: 12px;
  background: #1a1a2e;
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 11;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.5s var(--ease-out-quart);
}

.oex-phone-screen {
  width: 42px;
  height: 68px;
  border-radius: 6px;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Phone notch */
.oex-phone::before {
  content: '';
  position: absolute;
  top: 4px;
  width: 16px;
  height: 4px;
  border-radius: 4px;
  background: #0d1117;
}

/* Positions around the router — arranged in a circle */
.oex-phone[data-pos="0"] {
  top: 10%;
  left: 50%;
  transform: translate(-50%, 0);
  --phone-threshold: 0.10;
}

.oex-phone[data-pos="1"] {
  top: 30%;
  right: 8%;
  --phone-threshold: 0.13;
}

.oex-phone[data-pos="2"] {
  bottom: 15%;
  right: 15%;
  --phone-threshold: 0.16;
}

.oex-phone[data-pos="3"] {
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  --phone-threshold: 0.19;
}

.oex-phone[data-pos="4"] {
  top: 30%;
  left: 8%;
  --phone-threshold: 0.22;
}

.oex-phone[data-pos="5"] {
  bottom: 15%;
  left: 15%;
  --phone-threshold: 0.14;
}

/* Phone appear animation */
.oex-phone {
  opacity: max(0, min(1, (var(--p) - var(--phone-threshold)) / 0.06));
}

/* ═══════ DATA PACKETS — Flying between router and phones ═══════ */
.oex-packet {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00bcd4;
  box-shadow: 0 0 12px rgba(0,188,212,0.6);
  z-index: 12;
  pointer-events: none;
}

/* ═══════ PHASE 2: EXAM ON SCREEN ═══════ */
.oex-phone-exam {
  position: absolute;
  inset: 2px;
  border-radius: 4px;
  background: #0f1923;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
  opacity: max(0, min(1, (var(--p) - 0.30) / 0.08));
}

.oex-q-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
}

.oex-q-opt {
  height: 6px;
  border-radius: 3px;
  background: rgba(0,188,212,0.12);
  border: 1px solid rgba(0,188,212,0.2);
}

.oex-q-opt.is-selected {
  background: rgba(0,188,212,0.3);
  border-color: rgba(0,188,212,0.5);
}

/* ═══════ PHASE 3: CHECKMARKS ═══════ */
.oex-phone-check {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c853, #00bfa5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 13;
  opacity: max(0, min(1, (var(--p) - 0.55) / 0.08));
  box-shadow: 0 0 16px rgba(0,200,83,0.4);
}

.oex-phone-check svg {
  width: 16px;
  height: 16px;
  color: #fff;
  stroke-width: 3;
}

/* ═══════ PHASE 4: STATISTICS DASHBOARD ═══════ */
.oex-stats-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(380px, 80vw);
  background: rgba(15, 20, 30, 0.9);
  border: 1px solid rgba(0,188,212,0.2);
  border-radius: 20px;
  padding: 24px;
  z-index: 20;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);

  opacity: max(0, min(1, (var(--p) - 0.68) / 0.08));
  transform: translate(-50%, calc(-50% + (1 - max(0, min(1, (var(--p) - 0.68) / 0.08))) * 30px));
}

.oex-stats-title {
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.oex-stats-title-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,188,212,0.2), rgba(124,77,255,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
}

.oex-stats-title-icon svg {
  width: 16px;
  height: 16px;
  color: #00bcd4;
}

/* Question stat bars */
.oex-stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.oex-stat-q {
  font-family: var(--font-ar);
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 52px;
  text-align: left;
  white-space: nowrap;
}

.oex-stat-bar-track {
  flex: 1;
  height: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}

.oex-stat-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s var(--ease-out-quart);
  width: 0;
}

.oex-stat-bar-fill.is-high {
  background: linear-gradient(90deg, #00c853, #69f0ae);
}

.oex-stat-bar-fill.is-mid {
  background: linear-gradient(90deg, #ffc107, #ffca28);
}

.oex-stat-bar-fill.is-low {
  background: linear-gradient(90deg, #ff5252, #ff8a80);
}

.oex-stat-pct {
  font-family: var(--font-ar);
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 36px;
  text-align: center;
}

.oex-stat-pct.is-high { color: #69f0ae; }
.oex-stat-pct.is-mid  { color: #ffca28; }
.oex-stat-pct.is-low  { color: #ff8a80; }

/* Stats summary */
.oex-stats-summary {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.oex-stats-kpi {
  text-align: center;
}

.oex-stats-kpi-num {
  font-family: var(--font-ar);
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00bcd4, #7c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.oex-stats-kpi-label {
  font-family: var(--font-ar);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}


/* ═══════ PHASE LABELS ═══════ */
.oex-phase-label {
  position: absolute;
  bottom: clamp(100px, 16vh, 150px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  font-family: var(--font-ar);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

/* ═══════ MOBILE ═══════ */
@media (max-width: 768px) {
  .offline-exam-cinema {
    height: 280vh;
  }

  .offline-exam-scene {
    height: 300px;
    width: min(340px, 88vw);
  }

  .oex-router {
    width: 70px;
    height: 92px;
    gap: 6px;
  }

  .oex-admin-phone {
    width: 50px;
    height: 70px;
    border-radius: 11px;
    padding: 5px;
  }

  .oex-admin-phone-screen svg {
    width: 24px;
    height: 24px;
  }

  .oex-admin-label {
    font-size: 0.62rem;
    padding: 2px 8px;
  }

  .oex-wifi-ring:nth-child(2) { width: 100px; height: 100px; }
  .oex-wifi-ring:nth-child(3) { width: 150px; height: 150px; }
  .oex-wifi-ring:nth-child(4) { width: 210px; height: 210px; }

  .oex-phone {
    width: 40px;
    height: 70px;
    border-radius: 9px;
  }

  .oex-phone-screen {
    width: 32px;
    height: 52px;
    border-radius: 4px;
  }

  .oex-stats-panel {
    width: min(320px, 88vw);
    padding: 18px;
  }

  .offline-exam-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .offline-exam-link.is-explain .offline-exam-link-content,
  .offline-exam-link.is-demo .offline-exam-link-content {
    padding: 11px 22px;
    font-size: 0.86rem;
  }

  .oex-phone-check {
    width: 22px;
    height: 22px;
  }

  .oex-phone-check svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 380px) {
  .offline-exam-headline {
    font-size: clamp(1.5rem, 7vw, 1.8rem);
  }

  .oex-phone {
    width: 34px;
    height: 60px;
  }

  .oex-phone-screen {
    width: 28px;
    height: 44px;
  }
}
