@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

.edu-subject-container, .edu-subject-container * {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.edu-subject-container {
  max-width: 900px;
  margin: 10px auto;
  padding: 30px 40px;
  background: #fff;
  border-radius: 15px;
}

.subject-description {
  color: #666;
  font-size: 0.9em;
  margin: 12px 0 0 0;
  line-height: 1.6;
  font-weight: 400;
}

.edu-phase-container {
  background: #fff;
  border-radius: 12px;
  padding: 25px 30px;
  margin-top: 0;
}

.edu-phase-header {
  position: relative;
  display: block;
  text-align: center;
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.edu-phase-header h3 {
  margin: 0 0 12px 0;
  text-align: center;
  color: #1a1a1a;
  font-size: 1.25em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.edu-prev-left {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.edu-phase-info {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.min-score {
  display: inline-flex;
  align-items: center;
  background: #fff3e0;
  color: #e65100;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8em;
  font-weight: 600;
  box-shadow: 0 2px 0 #ffcc80;
}

.attempts-info {
  display: inline-flex;
  align-items: center;
  background: #e8f1ff;
  color: #3d86ff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8em;
  font-weight: 600;
  box-shadow: 0 2px 0 #b3d4ff;
}

.edu-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #e8f1ff;
  color: #3d86ff;
  border: 2px solid #3d86ff;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.edu-info-btn:hover {
  background: #3d86ff;
  color: white;
  transform: scale(1.1);
}

.edu-info-btn:active {
  transform: scale(0.95);
}

.edu-info-btn svg {
  display: block;
}

.edu-previous-phase-btn {
  display: inline-flex;
  align-items: center;
  background: #64748b;
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8em;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 0 #475569;
}

.edu-previous-phase-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #94a3b8;
}

.edu-previous-phase-btn, .edu-previous-phase-btn:hover, .edu-previous-phase-btn:active, .edu-previous-phase-btn:focus, .edu-previous-phase-btn:focus-visible {
  transition: none !important;
  animation: none !important;
  transform: none !important;
  box-shadow: 0 2px 0 #475569 !important;
}

.edu-phase-description {
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid #3d86ff;
}

.edu-phase-description p {
  margin: 0;
  color: #555;
  line-height: 1.6;
  font-size: 0.9em;
}

.edu-explanation-modal {
  display: block !important;
  visibility: hidden;
  opacity: 0;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483647 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

.edu-explanation-modal.active {
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateZ(0);
}

.edu-explanation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.edu-explanation-content {
  position: absolute !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 1;
  margin: 0 !important;
  padding: 0 !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    -webkit-transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    -webkit-transform: translate(-50%, -50%) scale(1);
  }
}

.edu-explanation-close {
  position: absolute !important;
  cursor: pointer !important;
  color: #64748b !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease;
  z-index: 2 !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.edu-explanation-close:hover {
  background: #e5e7eb !important;
  color: #1a1a1a !important;
  transform: rotate(90deg);
}

.edu-explanation-body {
  flex: 1 !important;
}

.edu-explanation-body h4 {
  align-items: center;
  gap: 8px;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #e8f1ff !important;
}

.edu-explanation-body p:last-child {
  margin-bottom: 0 !important;
}

body.edu-modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

.edu-game-container {
  min-height: 280px;
  margin-bottom: 0;
  transition: all 0.3s ease;
}

.edu-game-container:empty::before {
  content: "⏳ Carregando jogo...";
  display: block;
  text-align: center;
  padding: 80px 0;
  color: #999;
  font-size: 1em;
  font-weight: 500;
}

.edu-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.98);
  padding: 18px 35px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(61, 134, 255, 0.3);
  font-size: 0.95em;
  font-weight: 600;
  color: #3d86ff;
  z-index: 1000;
}

.edu-loading::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid #3d86ff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.edu-result-container {
  margin-top: 25px;
}

.edu-result-box {
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.edu-result-box.passed {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
}

.edu-result-box.failed {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  color: white;
}

.edu-result-box h3 {
  margin: 0 0 15px 0;
  font-size: 1.5em;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.edu-result-box p {
  margin: 10px 0;
  font-size: 0.95em;
  font-weight: 500;
}

.score-display {
  font-size: 1.5em !important;
  margin: 25px 0 !important;
  font-weight: 700;
}

.score-display strong {
  font-size: 1.4em;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  display: block;
  margin-top: 8px;
}

.min-score-display {
  opacity: 0.95;
  font-size: 0.9em !important;
}

.edu-result-box .attempts-info {
  opacity: 0.9;
  font-size: 0.85em !important;
  margin-top: 20px !important;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.completion-message {
  margin-top: 25px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.completion-message h3 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  font-weight: 700;
}

.completion-message p {
  margin: 0;
  font-size: 0.95em;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.edu-next-phase-btn, .edu-retry-btn {
  display: inline-block;
  margin: 15px 8px 0;
  padding: 14px 35px;
  font-size: 0.95em;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.edu-next-phase-btn {
  background: #3d86ff !important;
  color: white !important;
  box-shadow: 0 4px 0 #2563eb !important;
}

.edu-next-phase-btn:hover:not(:disabled), .edu-next-phase-btn:focus:not(:disabled), .edu-next-phase-btn:active:not(:disabled) {
  background: #3d86ff !important;
  color: white !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #2563eb !important;
}

.edu-next-phase-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #94a3b8 !important;
  box-shadow: 0 4px 0 #64748b !important;
}

.edu-retry-btn {
  background: #64748b !important;
  color: white !important;
  box-shadow: 0 4px 0 #475569 !important;
}

.edu-retry-btn:hover, .edu-retry-btn:focus, .edu-retry-btn:active {
  background: #64748b !important;
  color: white !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #475569 !important;
}

.edu-login-required, .edu-no-phases, .edu-max-attempts {
  text-align: center;
  padding: 50px 30px;
  background: linear-gradient(135deg, #3d86ff 0%, #5c9aff 100%);
  color: white;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(61, 134, 255, 0.3);
}

.edu-login-required p, .edu-no-phases p, .edu-max-attempts p {
  font-size: 1em;
  margin: 0;
  line-height: 1.6;
  font-weight: 500;
}

.edu-instructions-accordion {
  margin-bottom: 20px;
}

.edu-instructions-toggle {
  width: 100%;
  padding: 15px 20px;
  font-size: 15px;
  border: none;
  background: #f3f4f6;
  color: #374151;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 0 #d1d5db;
  transition: all 0.2s ease;
  position: relative;
  z-index: 999;
  font-family: "Poppins", sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.edu-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.edu-instructions-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.edu-instructions-body {
  padding: 15px;
  border: 2px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: white;
}

.edu-instructions-body ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
}

.edu-instructions-body li {
  margin-bottom: 8px;
}

.edu-instructions-body li:last-child {
  margin-bottom: 0;
}

.edu-subject-container .edu-info-btn, .edu-subject-container .edu-info-btn:focus, .edu-subject-container .edu-info-btn:active, .edu-subject-container .edu-info-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.edu-subject-container .edu-info-btn:active, .edu-subject-container .edu-info-btn:focus, .edu-subject-container .edu-info-btn:focus-visible {
  background: #e8f1ff !important;
  color: #3d86ff !important;
  border-color: #3d86ff !important;
}

.edu-subject-container .edu-instructions-toggle, .edu-subject-container .edu-instructions-toggle:active, .edu-subject-container .edu-instructions-toggle:focus, .edu-subject-container .edu-instructions-toggle:focus-visible, .edu-subject-container .edu-instructions-toggle:focus-within, .edu-subject-container .edu-instructions-toggle:visited, .edu-subject-container .edu-instructions-toggle:link {
  background: #f3f4f6 !important;
  color: #374151 !important;
  text-decoration: none !important;
  outline: none !important;
  border: none !important;
  box-shadow: 0 4px 0 #d1d5db !important;
}

.edu-subject-container .edu-instructions-toggle:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 0 #d1d5db !important;
  background: #e5e7eb !important;
  color: #374151 !important;
}

.edu-subject-container .edu-instructions-toggle:active {
  transform: translateY(2px) !important;
  box-shadow: 0 2px 0 #d1d5db !important;
  background: #e5e7eb !important;
  color: #374151 !important;
}

.edu-topbar-progress, .edu-topbar-progress * {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.edu-topbar-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  background: #ffffff;
}

.edu-topbar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 16px 10px;
}

.edu-topbar-row {
  justify-content: space-between;
  flex-wrap: wrap;
}

.edu-topbar-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.edu-topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.edu-topbar-phase {
  display: inline-flex;
  align-items: center;
  background: #e8f1ff;
  color: #3d86ff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 0 #b3d4ff;
  white-space: nowrap;
}

.edu-topbar-attempts {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.edu-topbar-bar {
  flex: 1;
  height: 10px;
  background: #e8f1ff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  margin: 0 12px;
}

.edu-topbar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3d86ff 0%, #5c9aff 100%);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.edu-topbar-progress button.edu-topbar-info-btn, .edu-topbar-progress a.edu-topbar-info-btn, .edu-topbar-progress .edu-topbar-info-btn, .edu-topbar-progress button.edu-info-btn, .edu-topbar-progress a.edu-info-btn, .edu-topbar-progress .edu-info-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background-color: #e8f1ff !important;
  background-image: url("https://boxlevel.com.br/wp-content/uploads/2026/01/cropped-9rdiKPVACPgafRyQZvkn.png") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 20px 20px !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: none !important;
  animation: none !important;
  transform: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.edu-topbar-progress button.edu-topbar-info-btn:hover, .edu-topbar-progress button.edu-topbar-info-btn:focus, .edu-topbar-progress button.edu-topbar-info-btn:focus-visible, .edu-topbar-progress button.edu-topbar-info-btn:active, .edu-topbar-progress .edu-info-btn:hover, .edu-topbar-progress .edu-info-btn:focus, .edu-topbar-progress .edu-info-btn:focus-visible, .edu-topbar-progress .edu-info-btn:active {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  animation: none !important;
  transform: none !important;
  background-color: #dbeafe !important;
}

.edu-topbar-progress .edu-topbar-info-btn::before, .edu-topbar-progress .edu-topbar-info-btn::after, .edu-topbar-progress .edu-info-btn::before, .edu-topbar-progress .edu-info-btn::after {
  content: none !important;
  display: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.edu-topbar-progress .edu-topbar-info-btn, .edu-topbar-progress .edu-info-btn {
  filter: none !important;
}

.edu-subject-container .edu-phase-progress {
  display: none !important;
}

.edu-subject-header {
  display: none !important;
}

.edu-next-phase-btn:focus, .edu-retry-btn:focus, .edu-previous-phase-btn:focus, .edu-info-btn:focus {
  outline: 3px solid rgba(61, 134, 255, 0.5);
  outline-offset: 2px;
}

* {
  -webkit-tap-highlight-color: transparent;
}

button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-table th {
  width: 200px;
}

.form-table input[type="number"], .form-table input.regular-text {
  width: 100%;
  max-width: 400px;
}

textarea#game_code {
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.column-ordem, .column-nota_minima {
  width: 100px;
}

.tablenav.top {
  margin-bottom: 20px;
}

.tablenav select {
  min-width: 200px;
}

@media (max-width: 768px) {
  .edu-subject-container {
    margin: 0 !important;
    padding: 6px !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    padding-top: 40px !important;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  .site, .site-content, .content-area, .elementor-section, .elementor-container, .entry-content, article, main, .hentry, #primary, #content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .edu-phase-container {
    padding: 12px 8px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .edu-phase-header h3 {
    font-size: 1.1em;
  }

  .edu-phase-description {
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 12px 8px;
  }

  .edu-info-btn {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .edu-explanation-body h4 {
    padding-bottom: 8px !important;
  }

  .edu-explanation-body p {
    margin-bottom: 12px !important;
  }

  .edu-explanation-close {
    width: 32px !important;
    height: 32px !important;
    font-size: 20px !important;
  }

  .edu-game-container {
    padding: 0px 0 !important;
    min-height: 200px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-left: -8px;
    margin-right: -8px;
  }

  .edu-result-box {
    padding: 20px 12px;
    border-radius: 12px;
  }

  .edu-result-box h3 {
    font-size: 1.3em;
  }

  .score-display {
    font-size: 1.35em !important;
  }

  .score-display strong {
    font-size: 1.3em;
  }

  .min-score, .attempts-info, .edu-previous-phase-btn {
    padding: 5px 12px;
    font-size: 0.75em;
  }

  .edu-next-phase-btn, .edu-retry-btn {
    display: block;
    width: calc(100% - 16px);
    margin: 12px 8px;
    padding: 14px 20px;
    font-size: 0.9em;
  }

  .edu-login-required, .edu-no-phases, .edu-max-attempts {
    padding: 30px 15px;
    border-radius: 12px;
  }

  .edu-login-required p, .edu-no-phases p, .edu-max-attempts p {
    font-size: 0.9em;
  }

  .completion-message {
    padding: 20px;
  }

  .edu-prev-left {
    position: static;
    transform: none;
    margin-bottom: 10px;
  }

  .edu-instructions-accordion {
    margin-bottom: 15px;
  }

  .edu-instructions-toggle {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 8px;
  }

  .edu-instructions-body {
    padding: 12px;
    border-radius: 0 0 8px 8px;
  }

  .edu-instructions-body ul {
    font-size: 13px;
    padding-left: 18px;
  }

  .edu-instructions-body li {
    margin-bottom: 6px;
  }

  .edu-topbar-inner {
    padding: 10px 8px 8px;
  }

  .edu-topbar-title {
    font-size: 13px;
  }

  .edu-topbar-row {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .edu-topbar-meta {
    font-size: 11px;
    gap: 5px !important;
    margin-left: 0 !important;
  }

  .edu-topbar-bar {
    height: 8px;
    margin: 0 5px !important;
    min-width: 50px !important;
  }

  .edu-topbar-phase {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .edu-subject-container {
    padding: 30px 35px;
    margin: 25px 20px;
  }

  .edu-phase-header h3 {
    font-size: 1.2em;
  }

  .edu-game-container {
    padding: 35px 25px;
  }

  .edu-next-phase-btn, .edu-retry-btn {
    padding: 13px 32px;
    font-size: 0.9em;
  }

  .edu-explanation-content {
    max-width: 650px;
    width: 90% !important;
    max-height: 90vh !important;
  }
}

.edu-game-container {
  width: 850px;
  height: 520px;
  max-width: 100%;
  margin: 20px auto 0;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #ffffff;
  box-sizing: border-box;
  padding: 0;
}

.edu-game-container .bs-game-root {
  width: 100%;
  height: 100%;
  position: relative;
  box-sizing: border-box;
}

.edu-game-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .edu-game-container {
    width: 100% !important;
    height: 346px !important;
    max-width: 100% !important;
  }

  .edu-game-container .bs-game-root {
    width: 100% !important;
    height: 100% !important;
  }

  .edu-game-container canvas {
    width: 100% !important;
    height: 100% !important;
  }
}

.edu-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #eaeaea;
}

.edu-bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edu-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.edu-btn:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}

.edu-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.edu-verify-btn {
  background: linear-gradient(180deg, #1aa3ff, #0077e6);
}

.edu-verify-btn:hover {
  filter: brightness(1.05);
}

.edu-skip-btn {
  background: linear-gradient(180deg, #ff4b4b, #e60000);
}

.edu-skip-btn:hover {
  filter: brightness(1.05);
}

@media (max-width: 520px) {
  .edu-bottom-inner {
    flex-direction: column;
    gap: 12px;
  }

  .edu-btn {
    width: 100%;
    justify-content: center;
  }
}

.edu-bottom-actions .edu-btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  min-height: 44px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.08s ease,
    box-shadow 0.08s ease,
    filter 0.08s ease;
}

.edu-bottom-actions .edu-btn:active {
  transform: translateY(4px);
  box-shadow: none;
}

.edu-bottom-actions .edu-verify-btn {
  background-color: #0d8cff !important;
  color: #ffffff !important;
  box-shadow: 0 4px 0 #0a6fca;
}

.edu-bottom-actions .edu-skip-btn {
  background-color: #ff2f2f !important;
  color: #ffffff !important;
  height: 44px !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 0 #c61f1f;
}

@media (max-width: 520px) {
  .edu-bottom-actions {
    width: 100%;
  }

  .edu-bottom-actions .edu-btn {
    width: 100%;
  }
}

.edu-phase-container {
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  .edu-topbar-coins {
    font-size: 16px;
    padding: 6px 8px;
    gap: 5px;
  }

  .edu-topbar-coins strong {
    font-size: 18px;
  }

  .edu-topbar-coins::before {
    font-size: 20px;
  }
}

.edu-btn.edu-verify-btn.is-disabled, .edu-btn.edu-verify-btn:disabled {
  background: #bdbdbd !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: 0 4px 0 #808080;
}

button.edu-previous-phase-btn.edu-prev-left:hover, button.edu-previous-phase-btn.edu-prev-left:focus, button.edu-previous-phase-btn.edu-prev-left:focus-visible, button.edu-previous-phase-btn.edu-prev-left:active {
  background-color: #566479 !important;
}

.edu-topbar-coins {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.edu-topbar-coins .edu-coin-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background-image: url("https://boxlevel.com.br/wp-content/uploads/2026/02/OjG03AOkwiKbDlrpIQyb.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.bs-edu-prefase-start {
  background: #3d86ff !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 12px 28px !important;
  min-height: 44px;
  font-family: Poppins, sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  text-transform: none !important;
  box-shadow: 0 4px 0 #2d5eaf !important;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
  outline: none !important;
}

.bs-edu-prefase-start:hover {
  filter: brightness(1.04);
}

.bs-edu-prefase-start:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2d5eaf !important;
}

.bs-edu-prefase-start:focus-visible {
  box-shadow: 0 4px 0 #2d5eaf;
}

.bs-edu-prefase-start[disabled], .bs-edu-prefase-start:disabled {
  opacity: .75;
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
}

.edu-game-container {
  opacity: 1 !important;
  filter: none !important;
}

:root {
  --edu-bottombar-h: 72px;
  --edu-toast-gap: 12px;
}

.edu-bottom-toast {
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 14px;
}

.edu-bottom-toast .edu-toast-card {
  background: rgba(255,255,255,0.92);
  transform: translateY(16px);
  opacity: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.edu-bottom-toast.is-show .edu-toast-card {
  transform: translateY(0);
  opacity: 1;
}

.edu-bottom-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--edu-bottombar-h, 72px) + 10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 10000;
}

.edu-bottom-toast .edu-toast-pill {
  display: none;
}

.edu-bottom-toast.is-passed .edu-toast-title {
  color: rgba(0,0,0,0.55);
}

.edu-bottom-toast.is-passed .edu-toast-sub {
  background: #ffffff;
  color: #111;
}

.edu-bottom-toast.is-failed .edu-toast-title {
  color: #6b7280;
}

.edu-bottom-toast.is-failed .edu-toast-sub {
  background: #ffffff;
  color: #111;
}

@media (max-width: 520px) {
  .edu-bottom-toast, .edu-bottom-toast.is-passed, .edu-bottom-toast.is-failed {
    bottom: calc(var(--edu-bottombar-h, 72px) + 10px + env(safe-area-inset-bottom)) !important;
  }
}

.edu-skip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.edu-skip-btn::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-image: url("https://boxlevel.com.br/wp-content/uploads/2026/01/avfqlNfvHZYJoBErJakD.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.edu-skip-btn.is-error::before {
  content: none !important;
  background-image: none !important;
}

@media (max-width: 768px) {
  .edu-phase-container.edu-state-failed .edu-phase-header h3, .edu-phase-container.edu-state-failed .edu-previous-phase-btn, .edu-phase-container.edu-state-failed .edu-instructions-toggle {
    display: none !important;
  }

  .edu-phase-container.edu-state-failed {
    margin-top: -10px;
  }

  .edu-phase-container.edu-state-passed .edu-phase-header h3, .edu-phase-container.edu-state-passed .edu-previous-phase-btn, .edu-phase-container.edu-state-passed .edu-instructions-toggle {
    display: none !important;
  }

  .edu-phase-container.edu-state-passed {
    margin-top: -10px;
  }
}

.edu-loading {
  display: none !important;
}

.edu-topbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edu-topbar-progress-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  text-decoration: none;
  line-height: 0;
}

.edu-topbar-progress-btn img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

@media (max-width: 520px) {
  .edu-topbar-progress-btn {
    width: 30px;
    height: 30px;
  }

  .edu-topbar-progress-btn img {
    width: 30px;
    height: 30px;
  }
}

.edu-bottom-actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
}

.edu-bottom-actions .edu-previous-phase-btn {
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  flex: 0 0 44px !important;
  border-radius: 50% !important;
  background-color: #8a95a3 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 0 #656d79 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease !important;
}

.edu-bottom-actions .edu-previous-phase-btn::before {
  content: "" !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  display: block !important;
  color: #ffffff !important;
  margin-left: -2px !important;
}

.edu-bottom-actions .edu-previous-phase-btn:hover {
  filter: brightness(1.05) !important;
}

.edu-bottom-actions .edu-previous-phase-btn:active {
  transform: translateY(4px) !important;
  box-shadow: none !important;
}

.edu-bottom-actions .edu-previous-phase-btn:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

@media (max-width: 520px) {
  .edu-bottom-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
  }

  .edu-bottom-actions .edu-previous-phase-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    flex: 0 0 40px !important;
  }

  .edu-bottom-actions .edu-previous-phase-btn::before {
    font-size: 16px !important;
    margin-left: -2px !important;
  }

  .edu-bottom-actions .edu-skip-btn, .edu-bottom-actions .edu-verify-btn {
    flex: 1 !important;
    width: auto !important;
  }
}

.edu-bottom-actions .edu-verify-btn {
  height: 44px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.edu-verify-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
}

.edu-next-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: 10px;
  flex-shrink: 0;
}

.edu-badge-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.edu-badge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 2.5;
}

.edu-badge-fill {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.edu-badge-num {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  font-family: "Poppins", sans-serif;
}

.edu-cancel-countdown {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  flex-shrink: 0;
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.edu-cancel-countdown img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.edu-cancel-countdown:hover, .edu-cancel-countdown:focus, .edu-cancel-countdown:active, .edu-cancel-countdown:focus-visible {
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

@media (max-width: 520px) {
  .edu-phase-container.edu-state-failed .edu-bottom-actions .edu-skip-btn, .edu-phase-container.edu-state-failed .edu-bottom-actions .edu-verify-btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    justify-content: center;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    line-height: 44px;
    white-space: nowrap;
  }

  .edu-phase-container.edu-state-failed .edu-bottom-actions .edu-skip-btn::before {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 360px) {
  .edu-phase-container.edu-state-failed .edu-bottom-actions .edu-skip-btn, .edu-phase-container.edu-state-failed .edu-bottom-actions .edu-verify-btn {
    font-size: 13px;
    padding: 0 12px;
  }
}

@media (max-width: 340px) {
  .edu-phase-container.edu-state-failed .edu-bottom-actions .edu-skip-btn, .edu-phase-container.edu-state-failed .edu-bottom-actions .edu-verify-btn {
    white-space: normal;
    word-break: keep-all;
    height: auto;
    line-height: 1.05;
    padding-top: 8px;
    padding-bottom: 8px;
    text-align: center;
  }

  .edu-phase-container.edu-state-failed .edu-bottom-actions .edu-skip-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .edu-phase-container.edu-state-failed .edu-bottom-actions .edu-skip-btn::before {
    margin: 0;
  }
}

@media (max-width: 340px) {
  .edu-phase-container.edu-state-failed .edu-bottom-actions .edu-verify-btn {
    white-space: normal !important;
    line-height: 1.05 !important;
    height: auto !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    text-align: center !important;
  }
}

@media (max-width: 376px) {
  .edu-subject-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .edu-phase-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.edu-game-container {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

.edu-game-container > * {
  position: relative;
  z-index: 1;
}

.edu-game-loading {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  background: #ffffff !important;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2 !important;
  border-radius: inherit;
  pointer-events: all !important;
}

.edu-game-loading.show {
  display: flex !important;
}

.edu-game-container.edu-is-loading > *:not(.edu-game-loading) {
  visibility: hidden !important;
}

.edu-game-container.edu-is-loading .edu-game-loading {
  visibility: visible !important;
}

.edu-game-loading .spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #f0f0f0;
  border-top: 6px solid #0066ff;
  border-radius: 50%;
  animation: eduSpin 1s linear infinite;
}

@keyframes eduSpin{
    to{ transform: rotate(360deg); }
}

.edu-explanation-modal, .edu-explanation-modal *, .edu-bottom-toast, .edu-bottom-toast * {
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

.edu-phase-container .edu-de-novo-wrap .bspr2-prefase-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 0 0 14px !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  line-height: 0 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  position: relative !important;
  z-index: 7 !important;
}

.edu-phase-container .edu-de-novo-wrap .bspr2-prefase-btn:hover, .edu-phase-container .edu-de-novo-wrap .bspr2-prefase-btn:focus, .edu-phase-container .edu-de-novo-wrap .bspr2-prefase-btn:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  opacity: .88 !important;
  transform: none !important;
}

.edu-phase-container .edu-de-novo-wrap .bspr2-prefase-btn:active {
  transform: translateY(1px) !important;
}

.edu-phase-container .edu-de-novo-wrap .bspr2-prefase-btn::before, .edu-phase-container .edu-de-novo-wrap .bspr2-prefase-btn::after {
  content: none !important;
  display: none !important;
}

.edu-phase-container .edu-de-novo-wrap .bspr2-prefase-icon {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  flex: 0 0 18px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  filter: none !important;
}

.edu-explanation-modal {
  transition: opacity .22s ease, visibility .22s ease !important;
}

.edu-explanation-close {
  line-height: 1 !important;
  background-color: transparent !important;
}

.edu-explanation-close::before {
  width: 100% !important;
  height: 100% !important;
  transform: translateY(-1px) !important;
}

.edu-explanation-close:hover, .edu-explanation-close:focus, .edu-explanation-close:focus-visible {
  background-color: transparent !important;
  color: #64748b !important;
}

.edu-bottom-toast {
  pointer-events: none !important;
}

.edu-bottom-toast .edu-toast-card {
  pointer-events: auto !important;
  cursor: pointer !important;
  border-radius: 999px !important;
  max-width: 360px !important;
  width: auto !important;
  padding: 8px 16px !important;
  gap: 6px !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  border: 0 !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background-color .16s ease, transform .16s ease, opacity .22s ease !important;
}

.edu-bottom-toast .edu-toast-title {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: rgba(0,0,0,0.55) !important;
  line-height: 1 !important;
  text-align: center !important;
}

.edu-bottom-toast .edu-toast-title:empty, .edu-bottom-toast .edu-toast-pill {
  display: none !important;
}

.edu-bottom-toast .edu-toast-sub {
  background: #ffffff !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  margin: 0 !important;
  color: #111111 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.edu-bottom-toast.is-passed .edu-toast-card {
  background: #bbf7d0 !important;
}

.edu-bottom-toast.is-passed .edu-toast-card:hover, .edu-bottom-toast.is-passed .edu-toast-card:focus, .edu-bottom-toast.is-passed .edu-toast-card:focus-visible {
  background: #a7f3c2 !important;
  transform: translateY(-1px) !important;
}

.edu-bottom-toast.is-failed .edu-toast-card {
  background: #e5e7eb !important;
}

.edu-bottom-toast.is-failed .edu-toast-card:hover, .edu-bottom-toast.is-failed .edu-toast-card:focus, .edu-bottom-toast.is-failed .edu-toast-card:focus-visible {
  background: #d1d5db !important;
  transform: translateY(-1px) !important;
}

.edu-bottom-toast .edu-toast-card:active {
  transform: translateY(0) !important;
}

@media (max-width: 520px) {
  .edu-bottom-toast .edu-toast-card {
    max-width: 90vw !important;
    padding: 8px 14px !important;
  }

  .edu-bottom-toast .edu-toast-sub {
    font-size: 14px !important;
    padding: 6px 13px !important;
  }

  .edu-explanation-content {
    width: 100% !important;
    max-height: 82vh !important;
  }
}

.edu-explanation-overlay {
  background: rgba(15, 23, 42, 0.42) !important;
}

.edu-explanation-content {
  top: auto !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  transform: translate(-50%, 100%) !important;
  -webkit-transform: translate(-50%, 100%) !important;
  width: min(680px, calc(100% - 24px)) !important;
  max-width: 680px !important;
  max-height: 82vh !important;
  background: #ffffff !important;
  border-radius: 30px 30px 0 0 !important;
  border: 1px solid #eef2f7 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  animation: none !important;
  transition: transform .26s cubic-bezier(.2, .8, .2, 1) !important;
}

.edu-explanation-modal.active .edu-explanation-content {
  transform: translate(-50%, 0) !important;
  -webkit-transform: translate(-50%, 0) !important;
  animation: none !important;
}

.edu-explanation-content::before {
  content: "" !important;
  display: block !important;
  width: 42px !important;
  height: 4px !important;
  margin: 12px auto 4px auto !important;
  border-radius: 999px !important;
  background: #d1d5db !important;
}

.edu-explanation-body {
  padding: 18px 24px 28px !important;
  max-height: calc(82vh - 40px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.edu-explanation-body::before {
  content: none !important;
  display: none !important;
}

.edu-explanation-body h4 {
  margin: 0 42px 16px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #111827 !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  display: block !important;
}

.edu-explanation-body p {
  background: #f1f5f9 !important;
  color: #374151 !important;
  font-size: 15.5px !important;
  font-weight: 500 !important;
  line-height: 1.58 !important;
  margin: 0 !important;
  padding: 0 16px 10px !important;
}

.edu-explanation-body h4 + p {
  padding-top: 16px !important;
  border-radius: 18px 18px 0 0 !important;
}

.edu-explanation-body p:last-child {
  padding-bottom: 16px !important;
  border-radius: 0 0 18px 18px !important;
}

.edu-explanation-body h4 + p:last-child {
  border-radius: 18px !important;
}

.edu-explanation-body strong, .edu-explanation-body b {
  color: #111827 !important;
  font-weight: 800 !important;
}

.edu-explanation-body ul, .edu-explanation-body ol {
  background: #f1f5f9 !important;
  margin: 0 !important;
  padding: 14px 18px 14px 34px !important;
  border-radius: 18px !important;
  color: #374151 !important;
  font-size: 15.5px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}

.edu-explanation-body li {
  margin-bottom: 8px !important;
}

.edu-explanation-body li:last-child {
  margin-bottom: 0 !important;
}

.edu-explanation-close {
  top: 22px !important;
  right: 22px !important;
  width: 34px !important;
  height: 34px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 0 !important;
}

.edu-explanation-close::before {
  content: "×" !important;
  display: block !important;
  color: #94a3b8 !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 34px !important;
  text-align: center !important;
}

.edu-explanation-close:hover, .edu-explanation-close:focus, .edu-explanation-close:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.edu-explanation-close:hover::before {
  color: #475569 !important;
}

@media (max-width: 768px) {
  .edu-explanation-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 84vh !important;
    border-radius: 28px 28px 0 0 !important;
  }

  .edu-explanation-body {
    padding: 16px 18px 26px !important;
    max-height: calc(84vh - 40px) !important;
  }

  .edu-explanation-body h4 {
    font-size: 20px !important;
    margin-right: 38px !important;
    margin-bottom: 14px !important;
  }

  .edu-explanation-body p {
    font-size: 15px !important;
    line-height: 1.55 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .edu-explanation-close {
    top: 20px !important;
    right: 18px !important;
  }
}

.edu-bottom-toast.no-explanation .edu-toast-card {
  cursor: default !important;
  pointer-events: none !important;
}

.edu-bottom-toast.has-explanation .edu-toast-card {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.edu-bottom-toast.is-app-update .edu-toast-card {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.edu-explanation-text-wrap {
  position: relative !important;
  margin: 0 0 14px 0 !important;
}

.edu-explanation-text {
  position: relative !important;
  color: #475569 !important;
  line-height: 1.7 !important;
  font-size: 0.95em !important;
  background: #f1f5f9 !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  overflow: hidden !important;
  transition: max-height 0.25s ease !important;
}

.edu-explanation-text.edu-is-collapsed {
  max-height: 210px !important;
}

.edu-explanation-text:not(.edu-is-collapsed) {
  max-height: 360px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

.edu-explanation-text.edu-is-collapsed::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 58px !important;
  background: linear-gradient(to bottom, rgba(241, 245, 249, 0), #f1f5f9 90%) !important;
  pointer-events: none !important;
}

.edu-explanation-text:not(.edu-is-collapsed)::after {
  display: none !important;
}

.edu-explanation-readmore {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 10px 0 0 0 !important;
  padding: 8px 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #e8f1ff !important;
  color: #3d86ff !important;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.edu-explanation-readmore:hover, .edu-explanation-readmore:focus, .edu-explanation-readmore:active {
  background: #dbeafe !important;
  color: #2563eb !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.edu-explanation-readmore.is-hidden {
  display: none !important;
}

.edu-explanation-audios {
  display: grid !important;
  gap: 12px !important;
  margin-top: 18px !important;
}

.edu-explanation-audio-block {
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  padding: 12px !important;
}

.edu-explanation-audio-title {
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin: 0 0 10px 0 !important;
}

.edu-explanation-audio-player {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 48px !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 999px !important;
  padding: 8px 10px !important;
  box-sizing: border-box !important;
}

.edu-explanation-audio-player audio {
  display: none !important;
}

.edu-audio-play, .edu-audio-speed {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}

.edu-audio-play {
  position: relative !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  background: #3d86ff !important;
  color: #ffffff !important;
  font-size: 0 !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.edu-audio-icon {
  display: block !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 8px solid transparent !important;
  border-bottom: 8px solid transparent !important;
  border-left: 12px solid #ffffff !important;
  margin-left: 3px !important;
}

.edu-audio-play.is-playing .edu-audio-icon {
  width: 5px !important;
  height: 16px !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: #ffffff !important;
  box-shadow: 9px 0 0 #ffffff !important;
  margin-left: -8px !important;
}

.edu-audio-play.is-playing {
  padding-left: 0 !important;
}

.edu-audio-play:hover, .edu-audio-play:focus, .edu-audio-play:active {
  background: #2563eb !important;
  color: #ffffff !important;
  transform: none !important;
  box-shadow: none !important;
}

.edu-audio-speed {
  min-width: 48px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background: #e8f1ff !important;
  color: #3d86ff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 0 8px !important;
  line-height: 1 !important;
}

.edu-audio-speed:hover, .edu-audio-speed:focus, .edu-audio-speed:active {
  background: #dbeafe !important;
  color: #2563eb !important;
  transform: none !important;
  box-shadow: none !important;
}

.edu-audio-track-area {
  min-width: 0 !important;
}

.edu-audio-track-title {
  display: none !important;
}

.edu-audio-seek {
  position: relative !important;
  width: 100% !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: #e5e7eb !important;
  overflow: hidden !important;
  cursor: pointer !important;
  touch-action: none !important;
}

.edu-audio-seek-fill {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 0%;
  border-radius: 999px !important;
  background: #3d86ff !important;
}

.edu-audio-time-row {
  display: flex !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: 4px !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

@media (max-width: 520px) {
  .edu-explanation-text.edu-is-collapsed {
    max-height: 185px !important;
  }

  .edu-explanation-text:not(.edu-is-collapsed) {
    max-height: 285px !important;
  }

  .edu-explanation-audios {
    margin-top: 14px !important;
    gap: 10px !important;
  }

  .edu-explanation-audio-block {
    padding: 10px !important;
    border-radius: 12px !important;
  }

  .edu-explanation-audio-player {
    grid-template-columns: 38px minmax(0, 1fr) 44px !important;
    gap: 8px !important;
    padding: 7px 8px !important;
  }

  .edu-audio-play {
    width: 38px !important;
    height: 38px !important;
  }

  .edu-audio-speed {
    min-width: 44px !important;
    height: 32px !important;
    font-size: 11px !important;
  }
}

.edu-topbar-supporter-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}

.edu-topbar-supporter-wrap[data-empty="1"] {
  display: none !important;
}

.edu-topbar-supporter-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: none !important;
  transform: none !important;
}

.edu-topbar-supporter-btn:hover, .edu-topbar-supporter-btn:focus, .edu-topbar-supporter-btn:focus-visible, .edu-topbar-supporter-btn:active {
  background: #ffffff !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.edu-topbar-supporter-btn img {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  object-fit: contain !important;
  pointer-events: none !important;
}

.edu-supporter-pill {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  width: max-content !important;
  max-width: 280px !important;
  min-width: 150px !important;
  padding: 8px 10px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12) !important;
  display: none !important;
  z-index: 1000001 !important;
  pointer-events: auto !important;
}

.edu-topbar-supporter-wrap.is-open .edu-supporter-pill {
  display: block !important;
}

.edu-supporter-pill::before {
  content: "" !important;
  position: absolute !important;
  top: -6px !important;
  right: 13px !important;
  width: 12px !important;
  height: 12px !important;
  background: #ffffff !important;
  border-left: 1px solid #e5e7eb !important;
  border-top: 1px solid #e5e7eb !important;
  transform: rotate(45deg) !important;
}

.edu-supporter-pill-label {
  margin-bottom: 5px !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.edu-supporter-person {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  min-width: 0 !important;
}

.edu-supporter-person strong {
  display: block !important;
  max-width: 210px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.edu-supporter-avatar {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  background: #f1f5f9 !important;
  display: block !important;
}

@media (max-width: 520px) {
  .edu-topbar-supporter-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }

  .edu-topbar-supporter-btn img {
    width: 20px !important;
    height: 20px !important;
  }

  .edu-supporter-pill {
    right: -44px !important;
    max-width: calc(100vw - 28px) !important;
    min-width: 200px !important;
  }

  .edu-supporter-pill::before {
    right: 55px !important;
  }

  .edu-supporter-person strong {
    max-width: 180px !important;
  }
}

@media (max-width: 360px) {
  .edu-supporter-pill {
    right: -70px !important;
    min-width: 190px !important;
  }

  .edu-supporter-pill::before {
    right: 81px !important;
  }

  .edu-supporter-person strong {
    max-width: 155px !important;
  }
}

.edu-supporter-pill {
  transition: max-height .25s ease, padding .25s ease !important;
}

.edu-supporter-pill-label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.edu-supporter-info-btn {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.edu-supporter-info-btn img {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  object-fit: contain !important;
}

.edu-supporter-info-text {
  display: none !important;
  margin-top: 9px !important;
  padding-top: 9px !important;
  border-top: 1px solid #e5e7eb !important;
  font-size: 10.5px !important;
  line-height: 1.35 !important;
  color: #64748b !important;
  max-width: 170px !important;
}

.edu-supporter-pill.is-expanded .edu-supporter-info-text {
  display: block !important;
}

.edu-supporter-name-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
}

.edu-supporter-info-btn {
  position: static !important;
  top: auto !important;
  margin: 0 !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  flex: 0 0 18px !important;
}

@media (max-width: 420px) {
  .edu-topbar-inner {
    padding-left: 6px !important;
    padding-right: 9px !important;
  }

  .edu-topbar-row {
    gap: 4px !important;
    flex-wrap: nowrap !important;
  }

  .edu-topbar-meta {
    gap: 4px !important;
    margin-left: 0 !important;
  }

  .edu-topbar-bar {
    margin-left: 3px !important;
    margin-right: 3px !important;
    min-width: 42px !important;
  }

  .edu-topbar-phase {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .edu-topbar-coins {
    padding-left: 6px !important;
    padding-right: 6px !important;
    gap: 4px !important;
  }
}
