* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #acbed3 0%, #e2e8f0 50%, #acbed3 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #1e293b;
  overflow: hidden;
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  pointer-events: none;
}

.background div {
  position: absolute;
  font-size: 64vh;
  filter: drop-shadow(2px 4px 10px #85a4c9);
}

.background div:nth-child(1) {
  top: 0;
  left: 0;
  translate: -50% -52%;
  rotate: -43deg;
}

.background div:nth-child(2) {
  top: 100%;
  left: 100%;
  translate: -49% -50%;
  rotate: 132deg;
  z-index: -1;
}

.background div:nth-child(3) {
  font-size: 26vh;
  top: 20%;
  left: 90%;
  translate: -50% -50%;
}

.background div:nth-child(4) {
  font-size: 37vh;
  top: 100%;
  left: 23%;
  translate: -50% -92%;
  z-index: 20;
}

.game-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.title {
  font-size: 3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  letter-spacing: -0.025em;
}

.subtitle {
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 500;
}

.content-section {
  background: rgba(248, 250, 252, 0.8);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border: 1px solid #e2e8f0;
}

ol {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

li::marker {
  font-weight: 900;
  color: #4f46e5;
}

.generateBtn {
  cursor: pointer;
  font-weight: 900;
  transition: all 0.2s ease;
}

.generateBtn:hover {
  color: #4f46e5;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  text-align: center;
  margin-bottom: 1rem;
}

.hint-container {
  margin-bottom: 1rem;
  width: 100%;
}

.hint {
  background: #ffffff;
  border-radius: 6px;
  padding: 1rem;
  color: #1f2937;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
  font-size: 1.5rem;
  font-weight: 600;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hint.show {
  opacity: 1;
  transform: translateY(0);
}

.hint-label {
  color: #6366f1;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown {
  font-style: italic;
  color: #6b7280;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.button {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.025em;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-primary {
  background: #4f46e5;
  color: white;
  border: 2px solid #4f46e5;
}

.btn-primary:hover {
  background: #4338ca;
  border-color: #4338ca;
}

.btn-secondary {
  background: #6b7280;
  color: white;
  border: 2px solid #6b7280;
}

.btn-secondary:hover {
  background: #4b5563;
  border-color: #4b5563;
}

.btn-accent {
  background: #059669;
  color: white;
  border: 2px solid #059669;
}

.btn-accent:hover {
  background: #047857;
  border-color: #047857;
}

.controls {
  display: flex;
  gap: 0.75rem;
}

.controls .button {
  flex: 1;
}

.workshop-info {
  text-align: center;
  color: #4b5563;
  margin-bottom: 1rem;
}

.workshop-info p:first-child {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.workshop-info p:last-child {
  font-size: 0.875rem;
  color: #6b7280;
}

.answer-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.answer {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4f46e5;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  letter-spacing: 0.05em;
}

#answer-img {
  max-width: 100%;
  max-height: 10rem;
}

.info-reveal {
  background-image: url(https://upload.wikimedia.org/wikipedia/commons/thumb/a/a3/Wikipedia-logo-v2-square.svg/langfr-1024px-Wikipedia-logo-v2-square.svg.png);
  background-repeat: no-repeat;
  background-size: 25%;
  background-position: 5% -18%;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: rgb(53, 53, 53);
  font-weight: 900;
}
.info-reveal:hover {
  background-color: rgb(220, 223, 226);
}

.hint-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.hint-tag {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  color: #475569;
  font-weight: 500;
}

.rules {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
  text-align: left;
}

.rules ul {
  list-style: none;
  padding-left: 0;
}

.rules li {
  margin-bottom: 0.25rem;
  position: relative;
  padding-left: 1rem;
}

.rules li::before {
  content: "•";
  color: #4f46e5;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.hidden {
  display: none;
}

/* Professional hover effects */
.game-container:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.hint:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

@media (max-width: 640px) {
  .game-container {
    padding: 1.5rem;
    margin: 0.5rem;
  }

  .title {
    font-size: 2.5rem;
  }

  .hint {
    font-size: 1.25rem;
  }

  .answer {
    font-size: 2rem;
  }

  .controls {
    flex-direction: column;
  }

  .content-section {
    padding: 1.5rem;
  }
}
