/* Idiom Chain Game (成語接龍) — RT-FUN-084
   Widget styling. The .ic-* classes scope the game board, current-idiom banner,
   input row, chain history (with pinyin), controls and feedback. The shell/ad
   styling comes from the platform tool layout. AMBER/gold theme (accent #B45309)
   to match the fun-misc category card. Loaded automatically by show.blade.php. */

.ic-game { display: flex; flex-direction: column; gap: 14px; }

/* Intro / helper note (neutral — this is a game, not a fortune tool). */
.ic-intro {
  padding: 10px 14px; background: #FEF3C7; border-left: 3px solid #B45309;
  border-radius: 0 6px 6px 0; font-size: 12.5px; color: var(--rt-accent); line-height: 1.55;
}

/* Current-idiom banner. */
.ic-current {
  padding: 18px 16px; text-align: center; border-radius: 10px;
  background: var(--rt-result-bg); color: var(--rt-result-ink);
  border: 1px solid rgba(180,83,9,.22);
}
.ic-cur-loading { color: var(--rt-result-muted); font-style: italic; font-size: 14px; }
.ic-cur-idiom {
  font-family: var(--rt-font-sans); font-size: 38px; line-height: 1.15;
  letter-spacing: .08em; color: var(--rt-result-ink); margin-bottom: 4px;
}
@media (max-width: 480px) { .ic-cur-idiom { font-size: 30px; } }
.ic-cur-pinyin { font-size: 13px; color: var(--rt-result-muted); margin-bottom: 8px; letter-spacing: .02em; }
.ic-cur-tail { font-size: 12.5px; color: var(--rt-result-muted); }
.ic-cur-tail strong { color: #FBBF24; font-size: 16px; }

/* Input row. */
.ic-inputrow { display: flex; flex-direction: column; gap: 6px; }
.ic-inputrow label {
  font-family: var(--rt-font-mono); font-size: 11px; color: var(--rt-ink-muted);
  text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
}
.ic-input {
  padding: 12px 14px; border: 1px solid var(--rt-hairline); border-radius: 8px;
  font-size: 18px; background: #fff; width: 100%; letter-spacing: .06em;
}
.ic-input:focus { outline: none; border-color: #B45309; box-shadow: 0 0 0 3px rgba(180,83,9,.12); }
.ic-input:disabled { background: var(--rt-surface-2); color: var(--rt-ink-muted); cursor: not-allowed; }

/* Controls. */
.ic-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.ic-btn {
  padding: 10px 18px; font-size: 13px; border-radius: 6px; cursor: pointer;
  font-family: var(--rt-font-mono); text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
}
.ic-btn:disabled { opacity: .5; cursor: not-allowed; }
.ic-btn-submit { background: #B45309; color: #fff; border: 1px solid #92400E; }
.ic-btn-submit:hover:not(:disabled) { background: #92400E; }
.ic-btn-hint { background: #fff; color: #92400E; border: 1px solid rgba(180,83,9,.4); }
.ic-btn-hint:hover:not(:disabled) { background: #FEF3C7; }
.ic-btn-new { background: #fff; color: var(--rt-ink-muted); border: 1px solid var(--rt-hairline); }
.ic-btn-new:hover { background: var(--rt-surface-2); }

/* Feedback line. */
.ic-feedback {
  min-height: 0; font-size: 13.5px; line-height: 1.5; border-radius: 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.ic-feedback:not(:empty) { padding: 10px 14px; }
.ic-feedback-ok { background: #ECFDF5; border: 1px solid #6EE7B7; color: #065F46; }
.ic-feedback-info { background: #FEF3C7; border: 1px solid #FCD34D; color: #92400E; }
.ic-feedback-error { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; }
.ic-feedback-win { background: #FFFBEB; border: 1px solid #FBBF24; color: #92400E; font-weight: 600; }
.ic-feedback strong { font-size: 16px; letter-spacing: .04em; }
.ic-feedback-extra { font-weight: 400; font-size: 12px; opacity: .9; }

/* Score. */
.ic-score {
  font-family: var(--rt-font-mono); font-size: 11.5px; color: var(--rt-ink-muted);
  text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
}

/* Chain history. */
.ic-chain-wrap { padding: 14px 16px; background: var(--rt-bg-inset); border-radius: 8px; }
.ic-chain-title {
  font-family: var(--rt-font-mono); font-size: 11.5px; color: var(--rt-ink-muted);
  text-transform: uppercase; letter-spacing: .04em; font-weight: 700; margin-bottom: 10px;
}
.ic-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ic-step {
  display: flex; align-items: baseline; gap: 10px; padding: 7px 10px;
  background: #fff; border: 1px solid var(--rt-hairline); border-radius: 6px;
}
.ic-step-num {
  font-family: 'SF Mono', Menlo, monospace; font-size: 11px; color: var(--rt-ink-muted);
  width: 20px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.ic-by {
  flex-shrink: 0; font-family: var(--rt-font-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px;
}
.ic-by-tool { background: #FEF3C7; color: #92400E; border: 1px solid rgba(180,83,9,.3); }
.ic-by-you { background: #E0F2FE; color: #075985; border: 1px solid rgba(3,105,161,.3); }
.ic-step-idiom { font-family: var(--rt-font-sans); font-size: 18px; letter-spacing: .06em; color: var(--rt-ink); }
.ic-step-pinyin { font-size: 11.5px; color: var(--rt-ink-muted); margin-left: auto; text-align: right; }
@media (max-width: 480px) {
  .ic-step { flex-wrap: wrap; }
  .ic-step-pinyin { margin-left: 30px; width: 100%; text-align: left; }
}

/* Helper note. */
.ic-note {
  padding: 10px 14px; background: #FEF3C7; border-radius: 6px;
  font-size: 12.5px; color: var(--rt-accent); line-height: 1.55;
}
