/* daily-idiom-puzzle (RT-FUN-089) — tool styles.
   Card system in /assets/css/share-card.css (loaded by the widget).
   Feedback palette is coral / blue / grey — deliberately NOT the Wordle scheme. */

.dip-tool { display: flex; flex-direction: column; gap: 16px; align-items: center; }

.dip-board { display: flex; flex-direction: column; gap: 8px; }
.dip-row { display: flex; gap: 8px; }
.dip-cell {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--rt-font-serif, serif);
    font-size: 30px; font-weight: 700;
    border-radius: 10px;
    border: 2px solid var(--border, #ebebeb);
    background: var(--card-bg, #fff);
    color: var(--t1, #1a1814);
}
.dip-empty { background: var(--bg, #f7f6f3); }
.dip-exact { background: #e8622a; border-color: #e8622a; color: #fff; }
.dip-present { background: #2f80b8; border-color: #2f80b8; color: #fff; }
.dip-absent { background: #9aa0a6; border-color: #9aa0a6; color: #fff; }

.dip-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--t2, #6b6760); }
.dip-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; }

.dip-inputrow { display: flex; gap: 10px; width: 100%; max-width: 380px; }
.dip-input {
    font: inherit; font-size: 1.3rem; flex: 1;
    text-align: center; letter-spacing: 4px;
    padding: 10px 12px; border: 1.5px solid var(--border, #ebebeb);
    border-radius: 10px; background: var(--card-bg, #fff); color: var(--t1, #1a1814);
}
.dip-input:focus-visible { outline: 3px solid var(--rt-accent, #e8622a); outline-offset: 1px; border-color: var(--rt-accent, #e8622a); }
.dip-btn {
    font: inherit; font-weight: 700; padding: 0 20px; border: none; border-radius: 10px;
    background: var(--rt-accent, #e8622a); color: #fff; cursor: pointer;
}
.dip-btn:disabled { opacity: 0.5; cursor: default; }
.dip-btn-ghost { background: transparent; color: var(--rt-accent, #e8622a); border: 1.5px solid var(--border, #ebebeb); }

.dip-msg { min-height: 1.2em; color: #c0392b; font-size: 0.9rem; margin: 0; }
.dip-hint-text { font-size: 0.9rem; color: var(--t2, #6b6760); min-height: 1.1em; margin: 0; text-align: center; }

.dip-result { width: 100%; max-width: 460px; text-align: center; border: 1px solid var(--border, #ebebeb); border-radius: 14px; padding: 18px; background: var(--bg, #f7f6f3); }
.dip-result-head { font-family: var(--rt-font-serif, serif); font-size: 1.5rem; margin-bottom: 8px; }
.dip-answer { font-size: 1.6rem; font-weight: 700; }
.dip-answer .dip-py { font-size: 1rem; font-weight: 400; color: var(--t2, #6b6760); }
.dip-meaning { color: var(--t2, #6b6760); margin: 6px 0 14px; }
.dip-stats { display: flex; gap: 12px; justify-content: center; }
.dip-stat { flex: 1 1 90px; background: var(--card-bg, #fff); border: 1px solid var(--border, #ebebeb); border-radius: 10px; padding: 10px; }
.dip-stat b { display: block; font-size: 1.5rem; font-family: var(--rt-font-serif, serif); }
.dip-stat span { font-size: 0.78rem; color: var(--t2, #6b6760); }
.dip-comeback { font-size: 0.85rem; color: var(--t2, #6b6760); margin: 14px 0 0; }

.dip-share-block { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.dip-stage { background: #0c1827; border-radius: 16px; width: 100%; }

/* Card (1080×1350 coords) */
.dip-card { align-items: center; text-align: center; justify-content: center; }
.dip-card .sc-eyebrow { font-size: 26px; letter-spacing: 6px; }
.dip-card-line { font-family: var(--sc-font-serif, serif); font-size: 64px; font-weight: 700; margin: 20px 0; }
.dip-card-grid { display: flex; flex-direction: column; gap: 16px; align-items: center; margin: 20px 0 30px; }
.dip-card-grow { display: flex; gap: 16px; }
.dip-card-sq { width: 84px; height: 84px; border-radius: 14px; display: inline-block; }
.dip-card-answer { font-family: var(--sc-font-serif, serif); font-size: 56px; font-weight: 700; opacity: 0.92; }

@media (max-width: 480px) {
    .dip-cell { width: 50px; height: 50px; font-size: 26px; }
}
