/* Marathi Games - kesari accent theme */

.card-locale-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #c75b12 0%, #e67e22 100%);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(199, 91, 18, 0.35);
}

.marathi-game-body .game-container.marathi-game {
  --marathi-accent: #c75b12;
  --marathi-accent-light: #e67e22;
}

.marathi-game .game-header h1 {
  font-family: inherit;
}

.marathi-game .game-header::after {
  background: linear-gradient(90deg, var(--marathi-accent), var(--marathi-accent-light));
}

.marathi-game .stat-value {
  color: var(--marathi-accent);
}

.marathi-game .btn-primary,
.marathi-game .option-btn.correct {
  background: linear-gradient(135deg, var(--marathi-accent-light) 0%, var(--marathi-accent) 100%);
  border-color: transparent;
}

.marathi-game .option-btn.correct {
  box-shadow: 0 0 0 2px rgba(199, 91, 18, 0.25);
}

/* Difficulty picker - override common.css hover (white text on light bg) */
.marathi-difficulty {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0 1.25rem;
}

.marathi-game .marathi-difficulty .difficulty-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex: 1;
  min-width: 96px;
  min-height: 52px;
  padding: 0.55rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.marathi-game .marathi-difficulty .difficulty-btn__label {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
}

.marathi-game .marathi-difficulty .difficulty-btn__desc {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
}

.marathi-game .marathi-difficulty .difficulty-btn:hover {
  border-color: var(--marathi-accent);
  background: color-mix(in srgb, var(--marathi-accent) 14%, var(--surface));
  color: #8a3a08;
  box-shadow: 0 3px 12px color-mix(in srgb, var(--marathi-accent) 16%, transparent);
  transform: translateY(-2px);
}

[data-theme="dark"] .marathi-game .marathi-difficulty .difficulty-btn:hover {
  color: #f0a060;
}

.marathi-game .marathi-difficulty .difficulty-btn:hover .difficulty-btn__desc {
  color: color-mix(in srgb, var(--marathi-accent) 75%, var(--text-muted));
}

.marathi-game .marathi-difficulty .difficulty-btn.active,
.marathi-game .marathi-difficulty .difficulty-btn[aria-pressed="true"] {
  border-color: var(--marathi-accent);
  background: linear-gradient(145deg, var(--marathi-accent-light) 0%, var(--marathi-accent) 100%);
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--marathi-accent) 38%, transparent);
  transform: translateY(-1px);
}

.marathi-game .marathi-difficulty .difficulty-btn.active:hover,
.marathi-game .marathi-difficulty .difficulty-btn[aria-pressed="true"]:hover {
  border-color: #a04a0e;
  background: linear-gradient(145deg, #e8872e 0%, #b35214 100%);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--marathi-accent) 45%, transparent);
  transform: translateY(-2px);
}

.marathi-game .marathi-difficulty .difficulty-btn.active .difficulty-btn__desc,
.marathi-game .marathi-difficulty .difficulty-btn[aria-pressed="true"] .difficulty-btn__desc {
  color: rgba(255, 255, 255, 0.92);
}

.marathi-game .marathi-difficulty .difficulty-btn:focus-visible {
  outline: 2px solid var(--marathi-accent);
  outline-offset: 2px;
}

.marathi-topic-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--marathi-accent-light), var(--marathi-accent));
  letter-spacing: 0.02em;
}

.marathi-howto {
  text-align: left;
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--marathi-accent) 20%, var(--border));
  background: color-mix(in srgb, var(--marathi-accent) 5%, var(--surface));
}

.marathi-howto__title {
  font-size: 0.85rem;
  font-weight: 800;
  margin: 0 0 0.45rem;
  color: var(--marathi-accent);
}

.marathi-howto__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.marathi-progress {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.marathi-progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--marathi-accent), var(--marathi-accent-light));
  transition: width 0.25s ease;
}

.marathi-toolbar {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.marathi-scramble-display {
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 1rem 0.5rem;
  color: var(--marathi-accent);
  word-break: break-all;
  line-height: 1.5;
}

.marathi-hint-text {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0.75rem;
}

.marathi-game .question-text {
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Marathi word search */
.marathi-ws-grid {
  display: grid;
  gap: 3px;
  justify-content: center;
  margin: 0.75rem auto;
  user-select: none;
  touch-action: none;
}

.marathi-ws-cell {
  width: clamp(26px, 7vw, 34px);
  height: clamp(26px, 7vw, 34px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.85rem, 3.5vw, 1.05rem);
  font-weight: 700;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.marathi-ws-cell.is-selected {
  background: color-mix(in srgb, var(--marathi-accent) 25%, var(--surface));
  border-color: var(--marathi-accent);
  color: var(--marathi-accent);
}

.marathi-ws-cell.is-found {
  background: color-mix(in srgb, #27ae60 20%, var(--surface));
  border-color: #27ae60;
  color: #1e8449;
}

.marathi-ws-word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.marathi-ws-word-list li {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--marathi-accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--marathi-accent) 22%, transparent);
}

.marathi-ws-word-list li.is-found {
  text-decoration: line-through;
  opacity: 0.55;
}

.marathi-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  max-width: min(92vw, 420px);
  text-align: center;
}

.marathi-toast--info {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.marathi-game .answer-input {
  font-size: 1.1rem;
  text-align: center;
}

/* FAQ block in About section (English) */
.game-about-seo .game-faq {
  margin: 0 0 1.25rem;
}

.game-about-seo .game-faq dt {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  margin-top: 0.85rem;
}

.game-about-seo .game-faq dt:first-child {
  margin-top: 0;
}

.game-about-seo .game-faq dd {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
