.main-text {
  margin-top: 100px;
}

.oc-section {
  max-width: 560px;
  margin: 60px auto 0 auto;
  padding: 28px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0));
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.74);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.oc-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.65), rgba(255,255,255,0) 40%);
  pointer-events: none;
  opacity: 0.55;
}

.oc-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 14, 22, 0.68);
  backdrop-filter: blur(8px);
  z-index: 30;
}

.oc-overlay-card {
  width: min(440px, calc(100% - 48px));
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  padding: 22px 22px 20px;
  text-align: center;
  box-shadow: 0 28px 70px rgba(0,0,0,0.35);
  position: relative;
  z-index: 1;
}

.oc-overlay-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: #0d1020;
  letter-spacing: 0.01em;
}

.oc-overlay-subtitle {
  margin-top: 6px;
  font-size: 1.02rem;
  font-weight: 600;
  color: rgba(13, 16, 32, 0.75);
}

.oc-score-label {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(13, 16, 32, 0.55);
}

.oc-score-label-tight {
  margin-top: 12px;
}

.oc-score {
  margin-top: 6px;
  font-size: 4.1rem;
  font-weight: 900;
  line-height: 1;
  color: #0d1020;
}

.oc-score-small {
  font-size: 2.4rem;
  opacity: 0.9;
}

.oc-overlay-btn {
  margin-top: 18px;
  padding: 12px 42px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  background: linear-gradient(90deg, #111 0%, #2a2f4a 100%);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
  font-family: 'Poppins', sans-serif;
}

.oc-overlay-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.1);
  box-shadow: 0 22px 52px rgba(0,0,0,0.28);
}

.oc-overlay-btn:active {
  transform: translateY(0px) scale(0.99);
}

.level-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 14, 22, 0.65);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 900;
  font-size: 3.2rem;
  border-radius: 18px;
  z-index: 20;
  letter-spacing: 0.02em;
  text-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.oc-timer-hud {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  position: relative;
  z-index: 1;
}

.oc-timer-value {
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #0d1020;
}

.time-meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-top: 8px;
}

.time-meter-fill {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: 999px;
  background: linear-gradient(90deg, #00c853, #ffe600, #ff0303);
  transition: transform 120ms linear;
}

.time-meter-fill[data-level="ok"] {
  filter: saturate(1.05);
}

.time-meter-fill[data-level="mid"] {
  filter: saturate(1.3);
}

.time-meter-fill[data-level="low"] {
  filter: saturate(1.6);
  animation: ocPulse 420ms ease-in-out infinite;
}

@keyframes ocPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Old HUD/buttons/result removed; overlays handle flow now */

.oc-board {
  width: 100%;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.03);
  padding: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  position: relative;
  z-index: 1;
}

.oc-cell {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  outline: none;
  user-select: none;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.10);
  transition: transform 120ms ease;
}

.oc-cell.oc-enter {
  animation: oc-pop 420ms cubic-bezier(.18, .89, .32, 1.18) both;
}

@keyframes oc-pop {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.oc-cell:hover {
  transform: scale(1.02);
}

.oc-cell.disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.92;
}

@media (max-width: 600px) {
  .main-text {
      margin-top: 60px;
  }
  .oc-section {
      max-width: 90%;
      margin: 20px auto 0 auto;
      padding: 12px 14px;
  }
  .oc-board {
    padding: 12px;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oc-cell,
  .oc-cell.oc-enter {
    animation: none !important;
    transition: none !important;
  }
}
