* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1500px;
  min-width: 1200px;
  margin: 20px auto;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: #fff;
}

.container * {
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

h2 {
  font-size: 1.3rem;
}

.subtitle {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 98%;
  margin: 0 auto;
  line-height: 1.6;
}

.main-content {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
}

.grid-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.control-panel {
  width: 350px;
  background: rgba(30, 41, 59, 0.7);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: 700px;
  height: 700px;
  margin: 20px 0;
}

.grid-cell {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #e2e8f0;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.grid-cell:hover {
  background: rgba(74, 222, 128, 0.15);
  transform: translateY(-3px);
}

.grid-cell.correct {
  background: rgba(74, 222, 128, 0.3);
  color: #4ade80;
  border-color: #4ade80;
}

.grid-cell.active {
  background: rgba(96, 165, 250, 0.3);
  color: #60a5fa;
  border-color: #60a5fa;
  transform: scale(0.95);
}

.stats {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin: 25px 0;
}

.stat-box {
  background: rgba(30, 41, 59, 0.7);
  border-radius: 12px;
  padding: 15px 25px;
  text-align: center;
  min-width: 180px;
  width: calc(33.33% - 50px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.stat-title {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #60a5fa;
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.control-btn {
  padding: 14px 10px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.control-btn:active {
  transform: translateY(0);
}

.control-btn.generate {
  background: linear-gradient(135deg, #10b981, #06b6d4);
}

.control-btn.download {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.control-btn.print {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.control-btn.share {
  background: linear-gradient(135deg, #6366f1, #a855f7);
}

.control-btn.clear {
  background: linear-gradient(135deg, #64748b, #475569);
}

.evaluation {
  margin-top: 30px;
  background: rgba(30, 41, 59, 0.7);
  border-radius: 15px;
}

.evaluation h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 10px;
}

.evaluation-content {
  display: grid;
  gap: 20px;
}

.age-group {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 12px;
  padding: 20px;
}

.age-group h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #60a5fa;
  display: flex;
  align-items: center;
  gap: 8px;
}

.evaluation-list {
  list-style: none;
}

.evaluation-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
}

.evaluation-list li:last-child {
  border-bottom: none;
}

.level {
  font-weight: bold;
}

.level.excellent {
  color: #4ade80;
}

.level.medium {
  color: #fbbf24;
}

.level.long {
  color: #f87171;
}

.instructions {
  margin-top: 30px;
  background: rgba(30, 41, 59, 0.7);
  border-radius: 15px;
  padding: 25px;
}

.instructions h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #60a5fa;
  display: flex;
  align-items: center;
  gap: 10px;
}

.instructions-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.instruction-card {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 15px;
}

.instruction-icon {
  font-size: 2.5rem;
  min-width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.2);
  border-radius: 50%;
}

.instruction-text h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #cbd5e1;
}

.instruction-text p {
  color: #94a3b8;
  line-height: 1.6;
}

footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 1rem;
}

.current-result {
  margin-top: 20px;
  text-align: center;
  font-size: 1.4rem;
  min-height: 40px;
  color: #fbbf24;
  font-weight: bold;
}
