/* Games: Promptle */

.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.header {
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.header p {
    color: var(--color-text-sub);
}

/* Image Display */
.image-display {
    width: 100%;
    max-width: 512px;
    aspect-ratio: 1;
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Game Area */
.game-area {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Prompt Display */
.prompt-slots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.word-box {
    border: 2px solid var(--color-text-sub);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    min-width: 3ch;
    text-align: center;
    color: transparent;
    /* Hidden text by default */
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    font-family: var(--font-family-mono);
    font-weight: bold;
    font-size: 1.2rem;
    user-select: none;
}

.word-box.revealed {
    color: var(--color-bg);
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.word-box.placeholder {
    /* Empty state style if needed, currently reusing base */
}

/* Input Area */
.input-area {
    display: flex;
    gap: 1rem;
}

.input-area input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--color-surface);
    color: var(--color-text-main);
    font-family: var(--font-family-main);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.input-area input:focus {
    border-color: var(--color-primary);
}

/* Feedback Area */
.feedback-area {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1rem;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.guess-history {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guess-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.05);
    font-family: var(--font-family-mono);
    font-size: 0.9rem;
}

.guess-item.correct {
    border-left: 4px solid var(--color-secondary);
}

.guess-item.close {
    border-left: 4px solid var(--color-primary);
}

.guess-item.wrong {
    border-left: 4px solid var(--color-accent);
}

.similarity-score {
    font-weight: bold;
}

/* Game Over Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal.visible {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 400px;
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 30px rgba(187, 134, 252, 0.2);
}

.modal h2 {
    color: var(--color-primary);
    margin-top: 0;
}

.hidden {
    display: none !important;
}
/* Hint System */
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(187, 134, 252, 0.1);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hint-display {
  background-color: rgba(3, 218, 198, 0.1);
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: bold;
  animation: fadeIn 0.3s ease;
}

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