/* Beautiful UI for Guess-the-Person game - Enhanced Version */

:root {
  --card-bg: linear-gradient(180deg, #ffffff, #fbfdff);
  --accent-1: #1976d2;
  --accent-2: #42a5f5;
  --muted: #6b7280;
  --glass: rgba(255, 255, 255, 0.6);
  --success: #2ecc71;
  --warning: #ff9800;
  --danger: #dc143c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #f5f7fa;
}

.famous-container {
  max-width: 600px;
  min-height: 380px;
  height: auto;
  margin: 20px auto;
  padding: 15px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(13, 38, 76, 0.08);
  box-shadow: 0 12px 36px rgba(11, 34, 71, 0.08);
  display: flex;
  flex-direction: column;
  height: 550px;
  width: 600px;
  overflow: hidden;
  font-size: 12pt;
  position: relative;
}

.famous-container h3 {
  margin: 0;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  text-align: center;
  font-size: 20px;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.famous-container h3 .round {
  font-weight: 900;
  color: #ffd37a;
  font-size: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.famous-progress {
  display: flex;
  gap: 5px;
  justify-content: center;
  padding: 15px 0 3px;
  position: relative;
  z-index: 3;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e7ef;
  transition: all 300ms ease;
}

.progress-dot.active {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(25, 118, 210, 0.4);
}

.progress-dot.completed {
  background: var(--success);
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.3);
}

.famous-image {
  width: 100%;
  height: 300px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  filter: blur(40px);
  transition: filter 600ms ease;
  box-shadow: inset 0 -6px 18px rgba(0, 0, 0, 0.04);
  background-color: #f3f6fb;
  border-radius: 8px;
  margin: 1px 0;
}

.famous-hints-title {
  margin-top: 4px;
  font-weight: 700;
  color: var(--accent-1);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.famous-hints-title .tries-right {
  font-weight: 700;
  color: var(--accent-1);
  font-size: 14px;
  background: rgba(25, 118, 210, 0.08);
  padding: 3px 8px;
  border-radius: 20px;
}

.famous-hints {
  margin-top: 3px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  z-index: 2;
  list-style: none;
  margin: 10px 0;
}

.famous-hints li {
  font-size: 13pt; /* Grössere Schrift für Hinweise */
  list-style: none;
  margin: 0;
  padding: 10px;
  background: #d4ecff;
  border-radius: 8px;
  border: 1px solid #e6f3ff;
  color: #0b3d91;
  font-weight: 600;
  font-size: 9.5px;
  transition: all 300ms ease;
  line-height: 1.3;
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.famous-hints li.revealed {
  animation: fadeIn 400ms ease;
  font-size: 10pt;
}

.famous-hints li.hidden {
  opacity: 0.5;
  font-style: italic;
}

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

.famous-controls {
  display: flex;
  gap: 5px;
  /* margin-top: 4px; */
  align-items: center;
}

.famous-input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  border: 2px solid rgba(15, 45, 80, 0.08);
  font-size: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 180ms ease;
  font-family: inherit;
}

.famous-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.14);
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.famous-input::placeholder {
  color: #aaa;
}

.famous-btn {
  padding: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
  transition: all 180ms ease;
  font-family: inherit;
}

.famous-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 118, 210, 0.28);
}

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

.famous-hint-btn {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
  color: white;
  border: none;
  padding: 12px 12px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  margin: 5px auto 15px auto;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(245, 124, 0, 0.3);
  transition: transform 0.2s;
}

.famous-hint-btn span {
  font-size: 14px;
}

.famous-hint-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.28);
}

.famous-hint-btn:disabled {
  background: #ccc;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.famous-hint {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  padding: 4px 8px;
  border-radius: 6px;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms ease;
}

.famous-hint.hot {
  background: rgba(255, 152, 0, 0.1);
  color: #f57c00;
  animation: pulse 600ms ease;
}

.famous-hint.warm {
  background: rgba(66, 165, 245, 0.1);
  color: var(--accent-1);
  animation: pulse 600ms ease;
}

.famous-hint.cold {
  background: rgba(156, 163, 175, 0.1);
  color: var(--muted);
  animation: pulse 600ms ease;
}

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

.wrong {
  animation: shake 400ms;
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.2) !important;
  border-color: var(--danger) !important;
}

.correct {
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.2) !important;
  border-color: var(--success) !important;
  animation: success 600ms ease;
}

.shake {
  animation: shake 400ms !important;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(8px);
  }
  75% {
    transform: translateX(-4px);
  }
}

@keyframes success {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.famous-popup {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  background: rgba(3, 17, 42, 0.92);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 16px;
  font-weight: 800;
  text-align: center;
  z-index: 60;
  opacity: 0;
  transition: opacity 300ms ease;
}

.famous-popup.show {
  opacity: 1;
}

.famous-popup .popup-content {
  animation: slideUp 400ms ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.famous-popup .msg {
  font-size: 24px;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.famous-popup .popup-image {
  width: 350px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin: 12px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.famous-popup .reveal {
  font-size: 22px;
  color: #ffd37a;
  margin-top: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.famous-popup .score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.4);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.famous-popup .score-number {
  font-size: 55px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.famous-popup .score-total {
  font-size: 25px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.famous-popup .popup-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.famous-popup .popup-actions button {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 180ms ease;
  font-family: inherit;
}

.famous-popup .popup-actions .retry,
.famous-popup .popup-actions .next,
.famous-popup .popup-actions .restart {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.famous-popup .popup-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 118, 210, 0.4);
}

.famous-popup .popup-actions button:active {
  transform: translateY(0);
}

@media (max-width: 420px) {
  .famous-container {
    height: 500px;
    width: 300px;
    margin: 12px;
    padding: 12px;
    border-radius: 12px;
    font-size: 10pt;
  }
  
  .famous-controls {
    flex-wrap: wrap;
  }

.famous-popup .msg {
  font-size: 24px;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.famous-popup .popup-image {
  width: 200px;
  height: 100px;
}

.famous-container h3 {
  margin: 0;
  padding: 8px 6px;
  font-size: 14px;
}

.famous-popup .score-total {
  font-size: 20px;
}

.famous-hints li.revealed {
  animation: fadeIn 400ms ease;
  font-size: 8pt;
}

.progress-dot {
  width: 5px;
  height: 5px;
}

.famous-input {
    padding: 12px;
    font-size: 9px;
    border: 2px solid #e1e8f0;
    border-radius: 10px;
    flex: 1;
}
.famous-hints li {
  min-height: 30px;
}

.famous-hints {
  gap: 3px;
}

.famous-btn {
  flex: 2;
}

}

.famous-controls {
  display: flex;
  gap: 10px;
  /* margin-top: auto; */
}

.famous-input {
  flex: 1;
  padding: 12px;
  font-size: 13px;
  border: 2px solid #e1e8f0;
  border-radius: 10px;
}