.rscit-wrapper {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.rscit-container {
  background: white;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(2,6,23,0.12);
  max-width: 760px;
  width: 100%;
  padding: 36px;
  position: relative;
  transition: all 0.22s ease;
  box-sizing: border-box;
  margin: 0;
  min-height: 400px;
}

.rscit-container.rscit-fullscreen {
  max-width: none;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  padding: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  position: relative;
  min-height: auto;
}

.rscit-container.rscit-fullscreen .rscit-quiz-screen {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.rscit-container.rscit-fullscreen .rscit-result-screen {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
}

.rscit-container.rscit-fullscreen .rscit-result-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
}

.rscit-container.rscit-fullscreen .rscit-all-answers {
  margin-top: 18px;
  text-align: left;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
  width: 100%;
}

.rscit-fullscreen-control {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
}

.rscit-timer-control {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: none;
}

.rscit-fullscreen-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  background: rgba(255,255,255,0.92);
  color: #333;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border: 1px solid rgba(15,25,60,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rscit-fullscreen-btn:hover {
  background: rgba(99,110,255,0.12);
  color: #2b3db3;
}

.rscit-fs-icon {
  font-size: 18px;
  font-weight: bold;
}

.rscit-timer {
  font-weight: 700;
  font-size: 15px;
  color: #222;
  padding: 6px 10px;
  min-width: 86px;
  text-align: center;
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border: 1px solid rgba(15,25,60,0.04);
}

.rscit-title {
  color: #3b5bd3;
  text-align: center;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 700;
}

.rscit-input-group {
  margin-bottom: 12px;
}

.rscit-label {
  display: block;
  margin-bottom: 6px;
  color: #333;
  font-weight: 600;
  font-size: 13px;
}

.rscit-input {
  width: 100%;
  padding: 10px;
  border: 1.6px solid #e5e7ef;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.rscit-input:focus {
  outline: none;
  border-color: #3b5bd3;
  box-shadow: 0 6px 18px rgba(59,91,211,0.06);
}

.rscit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.rscit-btn-primary {
  background: linear-gradient(135deg,#667eea 0%,#764ba2 100%);
  color: white;
}

.rscit-btn-secondary {
  background: #f0f2f6;
  color: #333;
}

.rscit-hidden {
  display: none !important;
}

.rscit-question-container {
  margin: 18px 0;
}

.rscit-question-number {
  color: #667eea;
  font-weight: 700;
  margin-bottom: 8px;
}

.rscit-question-text {
  font-size: 18px;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.45;
}

.rscit-options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rscit-option {
  padding: 12px;
  border: 1.6px solid #e7e9f2;
  border-radius: 8px;
  cursor: pointer;
  transition: all .18s ease;
  background: white;
  box-sizing: border-box;
  gap: 20px;
}

.rscit-option:hover:not(.rscit-locked) {
  border-color: #667eea;
  background: #f8f9ff;
}

.rscit-option.rscit-selected {
  border-color: #667eea;
  background: #f0f3ff;
}

.rscit-option.rscit-correct {
  border-color: #28a745;
  background: #eaf9ef;
}

.rscit-option.rscit-incorrect {
  border-color: #e23f3f;
  background: #fff0f0;
}

.rscit-option.rscit-locked {
  cursor: not-allowed;
  opacity: 0.98;
}

.rscit-navigation {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.rscit-navigation button {
  flex: 1;
}

.rscit-result-container {
  text-align: center;
}

.rscit-score {
  font-size: 44px;
  color: #3b5bd3;
  font-weight: 800;
  margin: 12px 0;
}

.rscit-all-answers {
  margin-top: 18px;
  text-align: left;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

.rscit-container:not(.rscit-fullscreen) .rscit-all-answers {
  overflow-y: visible;
  max-height: none;
}

.rscit-answer-item {
  margin-bottom: 18px;
  padding: 14px;
  background: #fbfdff;
  border-radius: 8px;
  border: 1px solid #f0f4ff;
}

.rscit-answer-item:last-child {
  margin-bottom: 0;
}

.rscit-container.rscit-fullscreen .rscit-all-answers::-webkit-scrollbar {
  width: 8px;
}

.rscit-container.rscit-fullscreen .rscit-all-answers::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.rscit-container.rscit-fullscreen .rscit-all-answers::-webkit-scrollbar-thumb {
  background: #c2c9db;
  border-radius: 4px;
}

.rscit-container.rscit-fullscreen .rscit-all-answers::-webkit-scrollbar-thumb:hover {
  background: #a0a8c2;
}

@media (max-width: 520px) {
  .rscit-container {
    padding: 18px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center; 
  }
  
  .rscit-timer {
    min-width: 70px;
    font-size: 13px;
    padding: 5px 8px;
  }
  
  .rscit-fullscreen-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .rscit-container.rscit-fullscreen {
    padding: 15px;
    justify-content: flex-start;
    min-height: auto;
  }
  
  .rscit-container.rscit-fullscreen .rscit-all-answers {
    max-height: 50vh;
  }
  
  .rscit-container.rscit-fullscreen .rscit-fullscreen-control {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  .rscit-container.rscit-fullscreen .rscit-timer-control {
    position: absolute;
    top: 10px;
    left: 10px;
  }
  
  .rscit-container.rscit-fullscreen .rscit-fullscreen-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  
  .rscit-container.rscit-fullscreen .rscit-timer {
    min-width: 65px;
    font-size: 12px;
    padding: 4px 6px;
  }
  
  .rscit-options-container {
    gap: 12px;
  }
}