/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff;
}

.app {
  min-height: 100vh;
  position: relative;
}

/* Start Screen */
.start-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Floating shapes animation */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 1s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 2s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 30%;
  animation-delay: 3s;
}

.shape-5 {
  width: 70px;
  height: 70px;
  bottom: 30%;
  right: 10%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Start content */
.start-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  max-width: 520px;
  width: 90%;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Game title */
.game-title {
  margin-bottom: 48px;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.title-word {
  display: inline-block;
  margin: 0 10px;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.title-word:hover {
  transform: scale(1.1);
}

/* Game settings */
.game-settings {
  margin-bottom: 40px;
}

.setting-group {
  margin-bottom: 25px;
  text-align: left;
}

.setting-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.label-icon {
  display: none;
}

/* Language options styling */
.language-options {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.language-btn {
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  backdrop-filter: blur(10px);
}

.language-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.language-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

.language-btn.active:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Number input styling */
.number-input {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.number-input:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.number-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.number-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.number-btn:active {
  transform: scale(0.98);
}

.number-field {
  width: 80px;
  height: 36px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  outline: none;
}

.number-field::-webkit-inner-spin-button,
.number-field::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Start button */
.start-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  backdrop-filter: blur(10px);
  letter-spacing: 0.5px;
}

.start-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.start-btn:active {
  transform: translateY(0);
}

.btn-sparkle {
  /* Animation removed */
}

/* Game screen */
.game-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  padding: 40px;
}

/* Game Header - Turn and Timer Side by Side */
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  width: 100%;
}

/* Team Turn Display */
.team-turn-display {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 0;
}

.team-turn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.team-color-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.team-turn-text {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.round-info {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-weight: 500;
}

/* Team Scores Display */
.team-scores-display {
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.scores-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.team-score-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.team-score-item.current-team {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.team-score-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.team-score-label {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  flex: 1;
}

.team-score-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  min-width: 30px;
  text-align: right;
  transition: all 0.3s ease;
}

.team-score-value.animating {
  color: #4ecdc4;
  text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
  transform: scale(1.1);
}

/* Timer Section */
.timer-section {
  display: flex;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.timer-display {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timer-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.timer-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #4ecdc4 0deg,
    #4ecdc4 var(--progress),
    transparent var(--progress),
    transparent 360deg
  );
  transition: --progress 0.1s linear;
}

.timer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  position: relative;
}

.timer-seconds {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1;
  margin-bottom: 5px;
}

.timer-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Game Controls */
.game-controls {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.back-btn {
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-icon {
  display: none;
}

.btn-text {
  font-weight: 600;
}

/* Word Display Section */
.word-display-section {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.word-display {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 400px;
}

.word-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.word-progress {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.progress-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.current-word {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin: 0;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  min-width: 300px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.word-navigation {
  display: flex;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 500px;
}

.nav-btn {
  flex: 0 1 auto;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  position: relative;
}

.nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.skip-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  padding: 14px 28px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  flex: 0 0 auto;
  min-width: 100px;
  border-style: dashed;
}

.skip-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}

.word-guessed-btn {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(56, 142, 60, 0.2));
  border: 1.5px solid rgba(76, 175, 80, 0.4);
  padding: 18px 48px;
  font-size: 1.05rem;
  font-weight: 600;
  flex: 1 1 auto;
  color: #ffffff;
  min-width: 180px;
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.word-guessed-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.word-guessed-btn:hover:not(:disabled)::before {
  left: 100%;
}

.word-guessed-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.28), rgba(56, 142, 60, 0.28));
  border-color: rgba(76, 175, 80, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(76, 175, 80, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.word-guessed-btn:active:not(:disabled) {
  transform: translateY(0);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.nav-btn:active:not(:disabled) {
  transform: translateY(-1px);
}

.end-round-btn {
  padding: 14px 32px;
  background: rgba(255, 77, 77, 0.2);
  border: 1px solid rgba(255, 77, 77, 0.4);
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 77, 77, 0.2);
  min-width: 150px;
  backdrop-filter: blur(10px);
}

.end-round-btn:hover:not(:disabled) {
  background: rgba(255, 77, 77, 0.25);
  border-color: rgba(255, 77, 77, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 77, 77, 0.3);
}

.end-round-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.end-round-btn:active:not(:disabled) {
  transform: translateY(-1px);
}

/* Round Score Section */
.round-score-section {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.score-display {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 400px;
}

.score-title {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.score-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.score-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.score-value {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
}

.total-score {
  background: linear-gradient(
    135deg,
    rgba(78, 205, 196, 0.3),
    rgba(102, 126, 234, 0.3)
  );
  border-color: rgba(78, 205, 196, 0.5);
}

.total-score .score-value {
  font-size: 1.5rem;
  color: #4ecdc4;
}

.continue-btn {
  background: linear-gradient(135deg, #4ecdc4, #45b7d1);
  border: none;
  border-radius: 50px;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(78, 205, 196, 0.3);
}

.continue-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(78, 205, 196, 0.4);
}

.continue-btn:active {
  transform: translateY(-1px);
}

/* Game Complete Screen */
.game-complete-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.game-complete-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  padding: 40px;
}

.complete-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.complete-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.complete-message {
  margin-bottom: 30px;
}

.complete-message p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  font-weight: 500;
}

/* Final Scores */
.final-scores {
  margin-bottom: 30px;
}

.final-scores-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.final-scores-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.final-score-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.final-score-item.winner {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.3),
    rgba(255, 193, 7, 0.3)
  );
  border-color: rgba(255, 215, 0, 0.5);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.final-score-color {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.final-score-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  flex: 1;
}

.final-score-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  min-width: 50px;
  text-align: right;
}

.winner-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 6px;
  margin-left: 10px;
}

/* Winner Announcement */
.winner-announcement {
  margin-bottom: 30px;
  text-align: center;
}

.winner-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.winner-text {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.complete-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.complete-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.complete-btn:active {
  transform: translateY(0);
}

/* Start Round Section */
.start-round-section {
  margin-bottom: 40px;
  text-align: center;
}

.start-round-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 18px 48px;
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  letter-spacing: 0.3px;
}

.start-round-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.start-round-btn:active {
  transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
  .start-content {
    padding: 30px 20px;
    margin: 20px;
  }

  .game-title {
    font-size: 2.5rem;
  }

  .setting-label {
    font-size: 1rem;
  }

  .language-options {
    gap: 8px;
  }

  .language-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
    min-width: 100px;
  }

  .number-input {
    padding: 3px;
  }

  .number-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .number-field {
    width: 70px;
    height: 35px;
    font-size: 1rem;
  }

  /* Game screen responsive */
  .game-header {
    gap: 15px;
  }

  .team-turn-display {
    padding: 15px;
  }

  .team-turn-text {
    font-size: 1.5rem;
  }

  .timer-circle {
    width: 180px;
    height: 180px;
  }

  .timer-seconds {
    font-size: 2.5rem;
  }

  .timer-label {
    font-size: 0.9rem;
  }

  .game-container {
    padding: 20px;
  }

  /* Word display responsive */
  .word-display {
    min-width: 350px;
    padding: 25px;
  }

  .current-word {
    font-size: 2.5rem;
    min-width: 250px;
    padding: 15px;
  }

  .nav-btn {
    padding: 12px 20px;
    font-size: 1rem;
    min-width: 100px;
  }

  .end-round-btn {
    padding: 12px 25px;
    font-size: 1.1rem;
    min-width: 130px;
  }

  /* Score display responsive */
  .score-display {
    min-width: 350px;
    padding: 25px;
  }

  .score-title {
    font-size: 1.8rem;
  }

  /* Team scores responsive */
  .scores-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }

  .team-score-item {
    padding: 10px 12px;
  }

  .team-score-label {
    font-size: 0.9rem;
  }

  .team-score-value {
    font-size: 1.1rem;
  }

  /* Final scores responsive */
  .final-scores-title {
    font-size: 1.5rem;
  }

  .final-score-item {
    padding: 12px 15px;
  }

  .final-score-label {
    font-size: 1.1rem;
  }

  .final-score-value {
    font-size: 1.3rem;
  }

  .winner-title {
    font-size: 1.5rem;
  }

  .winner-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .game-title {
    font-size: 2rem;
  }

  .start-content {
    padding: 25px 15px;
  }

  .language-options {
    flex-direction: column;
    gap: 8px;
  }

  .language-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-width: 90px;
  }

  .number-input {
    gap: 5px;
  }

  .number-btn {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .number-field {
    width: 60px;
    height: 30px;
    font-size: 0.9rem;
  }

  /* Game screen responsive */
  .game-header {
    gap: 10px;
  }

  .team-turn-display {
    padding: 12px;
  }

  .team-turn-text {
    font-size: 1.3rem;
  }

  .team-color-circle {
    width: 60px;
    height: 60px;
  }

  .timer-circle {
    width: 150px;
    height: 150px;
  }

  .timer-seconds {
    font-size: 2rem;
  }

  .timer-label {
    font-size: 0.8rem;
  }

  .game-container {
    padding: 15px;
  }

  .back-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* Word display responsive */
  .word-display {
    min-width: 300px;
    padding: 20px;
  }

  .current-word {
    font-size: 2rem;
    min-width: 200px;
    padding: 10px;
  }

  .nav-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
    min-width: 80px;
  }

  .end-round-btn {
    padding: 10px 20px;
    font-size: 1rem;
    min-width: 110px;
  }

  /* Score display responsive */
  .score-display {
    min-width: 300px;
    padding: 20px;
  }

  .score-title {
    font-size: 1.5rem;
  }

  .score-item {
    padding: 12px 15px;
  }

  .score-label {
    font-size: 1rem;
  }

  .score-value {
    font-size: 1.1rem;
  }

  .total-score .score-value {
    font-size: 1.3rem;
  }

  /* Team scores responsive */
  .scores-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
  }

  .team-score-item {
    padding: 8px 10px;
  }

  .team-score-label {
    font-size: 0.8rem;
  }

  .team-score-value {
    font-size: 1rem;
  }

  /* Final scores responsive */
  .final-scores-title {
    font-size: 1.3rem;
  }

  .final-score-item {
    padding: 10px 12px;
  }

  .final-score-label {
    font-size: 1rem;
  }

  .final-score-value {
    font-size: 1.2rem;
  }

  .winner-title {
    font-size: 1.3rem;
  }

  .winner-text {
    font-size: 1rem;
  }

  /* Game complete responsive */
  .complete-title {
    font-size: 2rem;
  }

  .complete-message p {
    font-size: 1.1rem;
  }

  .complete-btn {
    padding: 12px 25px;
    font-size: 1.1rem;
  }
}

/* Start buttons container */
.start-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

/* Info button */
.info-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.info-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.info-btn:active {
  transform: translateY(0);
}

/* Popup overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Popup content */
.popup-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Popup header */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 20px 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.popup-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.popup-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.popup-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

/* Popup body */
.popup-body {
  padding: 30px;
}

/* Game rules */
.game-rules {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rule-step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.rule-step:hover {
  background: rgba(102, 126, 234, 0.15);
  transform: translateX(5px);
}

.step-number {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #333;
}

.step-content strong {
  color: #667eea;
  font-weight: 600;
}

/* Responsive popup */
@media (max-width: 768px) {
  .popup-content {
    width: 95%;
    max-height: 85vh;
  }

  .popup-header {
    padding: 20px 25px 15px 25px;
  }

  .popup-title {
    font-size: 1.5rem;
  }

  .popup-body {
    padding: 25px;
  }

  .rule-step {
    padding: 12px;
    gap: 12px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .step-content {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .popup-content {
    width: 98%;
    max-height: 90vh;
  }

  .popup-header {
    padding: 15px 20px 10px 20px;
  }

  .popup-title {
    font-size: 1.3rem;
  }

  .popup-body {
    padding: 20px;
  }

  .rule-step {
    padding: 10px;
    gap: 10px;
  }

  .step-number {
    width: 25px;
    height: 25px;
    font-size: 0.9rem;
  }

  .step-content {
    font-size: 0.95rem;
  }

  .popup-close-btn {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }
}
