/* Hint modal — sits on top of the standard .modal-card layout.
   The recipe panel uses the same chip aesthetic as the lineage panel so
   the visual language stays consistent across research surfaces. */

.hint-card {
  max-width: 520px;
}

.hint-flavor {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-dim, #b8bce0);
  margin: 4px 0 18px;
}
.hint-flavor.hint-revealed {
  color: var(--accent, #ffd23f);
  font-style: normal;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
  font-size: 15px;
  text-align: center;
}
.hint-fine {
  font-size: 12px;
  font-family: 'EB Garamond', serif;
  color: var(--ink-dim, #b8bce0);
  text-align: center;
  margin: 14px 0 0;
  opacity: 0.78;
}

.hint-watch,
.hint-retry,
.hint-begin {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a0612;
  background: var(--accent, #ffd23f);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 6px 14px rgba(255, 210, 63, 0.18);
  transition: transform 0.08s ease, filter 0.12s ease;
}
.hint-retry {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink, #fff);
  box-shadow: none;
  border: 1px solid rgba(255, 210, 63, 0.4);
}
.hint-begin {
  background: rgba(255, 210, 63, 0.18);
  color: var(--accent, #ffd23f);
  box-shadow: none;
  border: 1px solid var(--accent, #ffd23f);
  margin-top: 14px;
}
.hint-watch:hover,
.hint-retry:hover,
.hint-begin:hover  { filter: brightness(1.12); }
.hint-watch:active,
.hint-retry:active,
.hint-begin:active { transform: translateY(1px); }

.hint-recipe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 22px 14px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 210, 63, 0.22);
  border-radius: 6px;
  margin: 8px 0 6px;
}
.hint-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--tint, rgba(255, 255, 255, 0.2));
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--ink, #fff);
  letter-spacing: 0.03em;
}
.hint-chip-dot {
  width: 10px;
  height: 10px;
  background: var(--tint, #888);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--tint, transparent);
  flex-shrink: 0;
}
.hint-chip-unknown {
  background: transparent;
  border-style: dashed;
  color: var(--ink-dim);
}
.hint-mystery {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  letter-spacing: 0.16em;
  color: var(--ink-dim, #b8bce0);
  padding: 6px 14px;
  border: 1px dashed currentColor;
  border-radius: 4px;
  opacity: 0.75;
}
.hint-plus,
.hint-arrow {
  font-family: 'Cinzel', serif;
  color: var(--ink-dim, #b8bce0);
  font-size: 16px;
  user-select: none;
}

/* The Hint button in the topbar gets a subtle glow so it reads as the
   "burn an ad for help" action without screaming. Inherits .ghost. */
#btn-hint {
  position: relative;
}
#btn-hint::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(255, 210, 63, 0.18);
  opacity: 0;
  transition: opacity 0.25s ease;
}
#btn-hint:hover::after { opacity: 1; }

/* --- Simulated rewarded-ad overlay (web testing only) ------------------- */
.fake-ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'EB Garamond', serif;
}
.fake-ad-card {
  background: var(--panel, #1b1f3a);
  border: 1px solid rgba(255, 210, 63, 0.35);
  padding: 28px 36px;
  border-radius: 6px;
  text-align: center;
  min-width: 320px;
  color: var(--ink, #fff);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}
.fake-ad-label {
  font-size: 11px;
  color: var(--ink-dim, #b8bce0);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.fake-ad-art {
  font-size: 72px;
  margin: 18px 0 12px;
  color: var(--accent, #ffd23f);
  text-shadow: 0 0 30px rgba(255, 210, 63, 0.4);
}
.fake-ad-count {
  font-size: 16px;
  margin-bottom: 18px;
}
.fake-ad-num {
  color: var(--accent, #ffd23f);
  font-weight: 700;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.06em;
}
.fake-ad-skip {
  background: transparent;
  color: var(--ink-dim, #b8bce0);
  border: 1px solid var(--ink-dim, #b8bce0);
  padding: 8px 18px;
  font-size: 11px;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
}
.fake-ad-skip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink, #fff);
}

/* Hide the Hint button when JS decides it shouldn't appear (non-mobile,
   no GameAds, etc). The .hidden utility is used elsewhere; redeclaring
   for safety in case main.css load order changes. */
#btn-hint.hidden { display: none !important; }
