﻿.module-shell {
  padding: 32px 24px 20px;
  min-height: 100vh;
}


.start-screen,
.session-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.start-screen {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.timer-bar {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--grey);
}

.timer {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 6px;
}

.status-line {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
}

.grandma-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(20, 40, 50, 0.18);
  border: 2px solid rgba(0, 124, 186, 0.2);
  background: #fff;
}

.grandma-wrap img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wave-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 124, 186, 0.4);
  opacity: 0;
}

.wave-ring.delay {
  inset: -30px;
}

.grandma-wrap.speaking .wave-ring {
  opacity: 1;
  animation: wave 2s ease-out infinite;
}

.grandma-wrap.speaking .wave-ring.delay {
  animation-delay: 0.4s;
}

@keyframes wave {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.1);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.module-start,
.module-talk {
  width: 100%;
  max-width: 320px;
  border: none;
  cursor: pointer;
}

.module-talk {
  border: 1px solid rgba(34, 37, 38, 0.2);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
}

.module-talk.active {
  background: var(--secondary);
  color: #fff;
  border-color: transparent;
}

.module-talk:disabled,
.module-start:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.module-topic {
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.module-topic.visible {
  opacity: 1;
  transform: translateY(0);
}

.topic-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 6px;
}

.module-transcript {
  width: 100%;
  max-width: 520px;
}

.transcript-log {
  min-height: 120px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(34, 37, 38, 0.1);
  background: #fbfcfd;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.congrats-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(245, 130, 31, 0.2), rgba(0, 124, 186, 0.15)), #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.congrats-card {
  text-align: center;
  background: #fff;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(20, 40, 50, 0.2);
  max-width: 420px;
  width: 90%;
}

.congrats-time {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 16px 0 24px;
}

@media (min-width: 900px) {
  .module-shell {
    padding: 60px 80px 20px;
  }

  .grandma-wrap {
    width: 190px;
    height: 190px;
  }

  .grandma-wrap img {
    width: 250px;
    height: 250px;
  }
}

.hidden {
  display: none !important;
}
