/* Shared fallback styling for daily mini-game pages. */
:root {
  --bb-primary: #2563eb;
  --bb-primary-dark: #1d4ed8;
  --bb-bg: #f6f8fc;
  --bb-surface: #ffffff;
  --bb-text: #0f172a;
  --bb-muted: #475569;
  --bb-border: #dbe3f0;
  --bb-success: #16a34a;
  --bb-danger: #dc2626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--bb-text);
  background: linear-gradient(180deg, #eef3ff 0%, var(--bb-bg) 45%, #edf2fb 100%);
}

.game-container {
  width: min(900px, 94vw);
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
}

.game-tagline {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--bb-muted);
}

.input-row,
.anagram-row,
.images-row,
#options-area,
#emotion-options,
#stops-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.image-col {
  max-width: 360px;
}

.image-col img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--bb-border);
  display: block;
}

input[type="text"],
input[type="number"],
textarea {
  width: min(480px, 90vw);
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--bb-border);
  border-radius: 10px;
  font-size: 1rem;
}

button,
.btn {
  padding: 0.62rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--bb-primary);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

button:hover,
.btn:hover {
  background: var(--bb-primary-dark);
  transform: translateY(-1px);
}

button:disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

#result-message,
#result-box,
#anagram-result,
#pattern-result,
#sequence-result,
#reaction-result,
#typing-status,
#visual-search-status,
#stroop-status {
  margin-top: 0.75rem;
  min-height: 1.4rem;
  font-weight: 600;
}

#differences-found,
#counter-display,
#cycle-count,
#timer,
#score,
#streak,
#moveCount {
  font-weight: 700;
}

.visual-search-cell,
.stop-card {
  border: 1px solid var(--bb-border);
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
}

@media (max-width: 700px) {
  .game-container {
    margin: 1rem auto;
    padding: 1rem;
  }

  .images-row {
    flex-direction: column;
  }
}
