* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background-color: #eef3ff !important;
  color: #0f172a !important;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #f7f9ff;
  padding: 14px 0 max(24px, env(safe-area-inset-bottom));
}

.game-shell {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 18px;
}

.level-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe3f0;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  margin-bottom: 18px;
}


.waiting-screen {
  padding-top: 24px;
}

.waiting-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe3f0;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
  padding: 24px 18px;
}

.waiting-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0f4c81;
  font-size: 13px;
  font-weight: 700;
}

.waiting-title {
  margin: 16px 0 10px;
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1.05;
  font-weight: 800;
}

.waiting-subtitle {
  max-width: 640px;
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.65;
}

.waiting-note {
  margin-top: 20px;
}

@media (min-width: 768px) {
  .waiting-screen {
    padding-top: 40px;
  }

  .waiting-card {
    padding: 36px 34px;
  }
}

.level-card-head {
  margin-bottom: 14px;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.level-status-grid {
  display: grid;
  gap: 12px;
}

.timer-box {
  display: grid;
  gap: 4px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  padding: 12px 14px;
}

.timer-label {
  color: #3730a3;
  font-size: 13px;
  font-weight: 700;
}

.timer-value {
  color: #1f2937;
  font-size: clamp(26px, 9vw, 34px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
}

.progress-box {
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  padding: 12px;
  background: rgba(248, 250, 252, 0.92);
}

.progress-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.progress-title {
  color: #334155;
  font-size: 14px;
}

.progress-count {
  color: #111827;
  font-size: 17px;
  font-weight: 700;
}

.level-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
  margin-top: 8px;
}

.level-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5 0%, #2563eb 100%);
  transition: width 0.4s ease;
}

.progress-meta {
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}

.card {
  background: #ffffff !important;
  border: 1px solid #dbe3f0 !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.card-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #dbe3f0 !important;
  color: #0f172a;
  font-size: 17px;
  font-weight: 700;
}

.card-body {
  background: #ffffff !important;
  color: #0f172a !important;
  line-height: 1.7;
  font-size: 16px;
}


.card-body img,
.card-body iframe,
.card-body video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 8px;
}

.task-section {
  margin-top: 6px !important;
}

.form-control {
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 10px;
  background: #ffffff;
}

.form-control:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

.form-control::placeholder {
  color: #94a3b8;
}

.alert {
  border-radius: 12px;
  border: 1px solid transparent;
}

.alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.alert-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
}

.btn-success {
  background-color: #16a34a;
  border-color: #16a34a;
}

.btn-success:hover {
  background-color: #15803d;
  border-color: #15803d;
}

.footer-message {
  position: sticky;
  top: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 227, 240, 0.95);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  z-index: 30;
}

.code-entry-form {
  display: flex;
  width: 100%;
  gap: 8px;
  align-items: center;
}

.code-entry-form:focus-within {
  transform: translateZ(0);
}

.code-entry-form input[type="text"] {
  flex-grow: 1;
  min-height: 48px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 16px;
}

.code-entry-form button {
  min-width: 56px;
  min-height: 48px;
  background-color: #4f46e5;
  border: none;
  color: #fff;
  border-radius: 12px;
  padding: 0 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-entry-form button:hover {
  background-color: #4338ca;
}

@media (max-width: 768px) {
  body {
    padding-top: 12px;
  }

  .game-shell {
    padding: 0 14px;
  }

  .level-card {
    padding: 18px;
  }

  .footer-message {
    top: 8px;
    padding: 10px 12px;
  }
}

.hint-section {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hint-card {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
}

.hint-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #334155;
  font-weight: 600;
  line-height: 1.4;
}

.hint-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
  flex-shrink: 0;
}

.hint-status-separator {
  display: inline-block;
  margin: 0 6px;
  color: #94a3b8;
}

.hint-status-complete {
  margin-bottom: 12px;
}

.hint-thread {
  display: grid;
  gap: 10px;
}

.hint-speaker {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #4338ca;
}

.hint-list {
  display: grid;
  gap: 10px;
}

.hint-item {
  display: flex;
}

.hint-bubble {
  max-width: 100%;
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-radius: 16px 16px 16px 6px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.hint-text {
  line-height: 1.6;
  color: #1e293b;
}

.hint-empty {
  color: #64748b;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
}

.global-progress-card {
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  padding: 16px;
}

.global-progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.global-progress-label {
  color: #3730a3;
  font-weight: 600;
}

.global-progress-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: #1d4ed8;
}

.global-progress-track {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
  border: 1px solid #bfdbfe;
}

.global-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5 0%, #2563eb 100%);
  transition: width 0.4s ease;
}

.global-progress-summary {
  margin-top: 10px;
  color: #334155;
}


.session-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 2px 8px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.session-footer-meta {
  display: grid;
  gap: 2px;
}

.session-footer-logout {
  flex-shrink: 0;
  border-radius: 999px;
  padding-left: 12px;
  padding-right: 12px;
}

@media (max-width: 575px) {
  .session-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .session-footer-logout {
    align-self: flex-start;
  }

  .card-header {
    font-size: 16px;
  }
}


.game-login-page {
  min-height: 100vh;
  padding: 20px 16px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at top, rgba(129, 140, 248, 0.35), transparent 36%),
    linear-gradient(180deg, #0f172a 0%, #172554 52%, #0f172a 100%) !important;
  color: #e2e8f0 !important;
}

.login-screen {
  min-height: calc(100vh - max(24px, env(safe-area-inset-bottom)) - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(14px);
}

.login-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(59, 130, 246, 0.28));
  border: 1px solid rgba(165, 180, 252, 0.35);
  margin-bottom: 16px;
}

.login-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 700;
}

.login-title {
  margin: 0;
  font-size: clamp(32px, 10vw, 44px);
  line-height: 1.05;
  font-weight: 800;
  color: #f8fafc;
}

.login-subtitle {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #cbd5e1;
}

.login-form {
  margin-top: 24px;
}

.login-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
}

.login-input {
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 18px;
  padding: 0 18px;
}

.login-input::placeholder {
  color: #94a3b8;
}

.login-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #818cf8;
  color: #f8fafc;
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.22);
}

.login-button {
  width: 100%;
  min-height: 58px;
  border: none;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.28);
}

.login-button:hover,
.login-button:focus {
  background: linear-gradient(135deg, #5558e6 0%, #2563eb 100%);
}

.login-alert {
  margin-top: 20px;
  border-radius: 14px;
}

@media (min-width: 768px) {
  .game-login-page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .login-card {
    padding: 32px;
  }
}

.helper-page {
  min-height: 100vh;
  padding: 18px 16px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at top, rgba(250, 204, 21, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 50%, #f7f9ff 100%) !important;
}

.helper-screen {
  min-height: calc(100vh - 36px - max(24px, env(safe-area-inset-bottom)));
  display: flex;
  align-items: center;
  justify-content: center;
}

.helper-card {
  width: 100%;
  max-width: 520px;
  padding: 24px 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(191, 219, 254, 0.95);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.14);
  text-align: center;
}

.helper-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.helper-logout {
  border-radius: 999px;
  border-color: rgba(148, 163, 184, 0.45);
  color: #475569;
  background: rgba(255, 255, 255, 0.72);
}

.helper-logout:hover,
.helper-logout:focus {
  color: #0f172a;
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.35);
}

.helper-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.helper-eyebrow {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6366f1;
}

.helper-title {
  margin: 10px 0 0;
  font-size: clamp(32px, 10vw, 42px);
  line-height: 1.05;
  font-weight: 800;
  color: #0f172a;
}

.helper-subtitle {
  margin: 14px auto 0;
  max-width: 28rem;
  font-size: 17px;
  line-height: 1.6;
  color: #475569;
}

.helper-form {
  margin-top: 28px;
  text-align: left;
}

.helper-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.helper-input {
  min-height: 60px;
  border-radius: 18px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 20px;
  padding: 0 18px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.helper-input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 0.24rem rgba(99, 102, 241, 0.18);
}

.helper-button {
  width: 100%;
  min-height: 60px;
  margin-top: 8px;
  border: none;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #2563eb 100%);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.24);
}

.helper-button:hover,
.helper-button:focus {
  background: linear-gradient(135deg, #5558e6 0%, #1d4ed8 100%);
}

@media (min-width: 768px) {
  .helper-page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .helper-card {
    padding: 32px;
  }
}


.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #dbe3f0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.status-banner-success {
  border-color: #cfe7db;
  background: linear-gradient(135deg, #f8fffb 0%, #eefbf4 100%);
}

.status-banner-warning {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffdf5 0%, #fffbeb 100%);
}

.status-banner-error {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff7f7 0%, #fef2f2 100%);
}

.status-banner-info {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #f7fbff 0%, #eff6ff 100%);
}

.status-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 15px;
  flex-shrink: 0;
}

.status-banner-success .status-banner-icon {
  background: #dff5e8;
  color: #157347;
}

.status-banner-warning .status-banner-icon {
  background: #fef3c7;
  color: #b45309;
}

.status-banner-error .status-banner-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.status-banner-info .status-banner-icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-banner-copy {
  display: grid;
  gap: 2px;
}

.status-banner-label {
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-banner-text {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
}

.progress-subtitle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.progress-subtitle {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.progress-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.level-progress-track {
  position: relative;
}

.level-progress-fill {
  position: relative;
  z-index: 1;
}

.level-progress-threshold {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  transform: translate(-50%, -50%);
}

.progress-meta-stack {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.progress-box-ready {
  border-color: #bfdbd1;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 250, 245, 0.98) 100%);
}

.progress-box-ready .level-progress-track {
  background: #d9f2e5;
}

.progress-box-ready .level-progress-fill {
  background: linear-gradient(90deg, #14b8a6 0%, #22c55e 100%);
}

.transition-card {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #d6e9dd;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.transition-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f7ee;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
}

.transition-title {
  margin: 12px 0 8px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
}

.transition-text {
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.transition-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #16a34a;
  background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.18);
}

.transition-btn:hover,
.transition-btn:focus {
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.24);
}

@media (min-width: 768px) {
  .transition-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.finish-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.28), transparent 30%),
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.24), transparent 34%),
    linear-gradient(135deg, #312e81 0%, #1d4ed8 52%, #0f172a 100%);
  border: 1px solid rgba(191, 219, 254, 0.35);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.28);
  color: #eff6ff;
}

.finish-hero::before,
.finish-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.finish-hero::before {
  top: -48px;
  right: -12px;
  width: 168px;
  height: 168px;
  background: rgba(255, 255, 255, 0.1);
}

.finish-hero::after {
  left: -36px;
  bottom: -64px;
  width: 180px;
  height: 180px;
  background: rgba(59, 130, 246, 0.18);
}

.finish-hero__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.finish-hero__title {
  position: relative;
  z-index: 1;
  margin: 16px 0 10px;
  font-size: clamp(34px, 8vw, 56px);
  line-height: 0.98;
  font-weight: 900;
  color: #ffffff;
}

.finish-hero__subtitle {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 0 20px;
  color: rgba(239, 246, 255, 0.88);
  font-size: 18px;
  line-height: 1.55;
}

.finish-hero__content {
  position: relative;
  z-index: 1;
  padding: 18px 18px 4px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(191, 219, 254, 0.18);
  backdrop-filter: blur(10px);
  color: #eff6ff;
}

.finish-hero__content > :last-child {
  margin-bottom: 0;
}

.finish-hero__content,
.finish-hero__content p,
.finish-hero__content li,
.finish-hero__content h1,
.finish-hero__content h2,
.finish-hero__content h3,
.finish-hero__content h4,
.finish-hero__content h5,
.finish-hero__content h6 {
  color: inherit;
}

.finish-hero__content a {
  color: #bfdbfe;
}

.global-progress-section {
  margin-bottom: 10px;
}

.global-progress-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.8), transparent 30%),
    linear-gradient(135deg, #eef4ff 0%, #f8fbff 45%, #eef2ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 24px;
  padding: 20px 18px;
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.12);
}

.global-progress-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -76px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  pointer-events: none;
}

.global-progress-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.global-progress-title {
  margin: 0;
  color: #172554;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.1;
  font-weight: 900;
}

.global-progress-note {
  margin: 10px 0 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.5;
}

.global-progress-track {
  position: relative;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: rgba(191, 219, 254, 0.6);
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.global-progress-fill {
  position: relative;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed 0%, #2563eb 50%, #22c55e 100%);
  box-shadow:
    0 0 18px rgba(59, 130, 246, 0.45),
    0 0 30px rgba(34, 197, 94, 0.2);
  animation: global-progress-load 1.2s ease-out forwards;
}

.global-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.42) 45%, transparent 100%);
  transform: translateX(-100%);
  animation: global-progress-shine 2.2s ease-in-out 0.6s infinite;
}

.global-progress-summary {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: #334155;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

@keyframes global-progress-load {
  from {
    width: 0;
  }

  to {
    width: var(--progress-width, 0%);
  }
}

@keyframes global-progress-shine {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(180%);
  }
}

@media (max-width: 575px) {
  .finish-hero {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .finish-hero__subtitle {
    font-size: 16px;
  }

  .finish-hero__content {
    padding: 16px 14px 2px;
  }

  .global-progress-card {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .global-progress-meta {
    flex-direction: column;
  }
}
