/* The MTG ID calculator. */
.id-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.id-form { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; }
.id-form h2 { margin: 0; font-size: 1.1rem; }
.id-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.id-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.id-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.id-field span { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-muted, #8c9ab0); }
.id-field input, .id-field select { width: 100%; min-height: 46px; padding: 0 0.8rem; border-radius: 12px; border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.14)); background: var(--bg-dark, #110d18); color: #fff; font: inherit; font-size: 16px; }
.id-field input:focus, .id-field select:focus { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 1px; }
.id-fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.id-fieldset legend { float: none; width: auto; margin: 0 0 0.5rem; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-muted, #8c9ab0); }
.id-fieldset small { font-size: 12px; line-height: 1.45; color: var(--text-muted, #8c9ab0); }
.id-more { display: flex; flex-direction: column; gap: 0.75rem; }
.id-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent-secondary, #d998ff); margin-bottom: 0.75rem; }
.id-more[open] { gap: 0.75rem; }
.id-progress { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.id-progress i { display: block; height: 100%; width: 0; background: var(--accent-primary, #8f5cff); transition: width 0.1s linear; }

.id-out { padding: 1.25rem; min-height: 260px; }
.id-hint { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--text-muted, #8c9ab0); }
.id-hint i { margin-top: 3px; }
.id-hint p { margin: 0; font-size: 14px; line-height: 1.5; }
.id-out #idResult:not([hidden]) + .id-hint { display: none; }

.id-verdict { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.1rem; margin-bottom: 1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.id-verdict span { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-muted, #8c9ab0); }
.id-verdict b { font-size: 1.15rem; line-height: 1.35; }
.id-verdict.is-good { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.4); }
.id-verdict.is-mid { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.4); }
.id-rows { display: flex; flex-direction: column; gap: 0.9rem; }
.id-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1rem; align-items: baseline; }
.id-row b { display: block; font-size: 0.95rem; }
.id-row small { font-size: 12px; color: var(--text-muted, #8c9ab0); }
.id-row strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.id-track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.id-track i { display: block; height: 100%; border-radius: 4px; background: var(--accent-primary, #8f5cff); }
.id-fine { margin: 1rem 0 0; font-size: 12px; line-height: 1.5; color: var(--text-muted, #8c9ab0); }

.id-read { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.8rem; }
.id-read h2 { margin: 0; font-size: 1.15rem; }
.id-read ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 14px; line-height: 1.55; }
.id-read li b { color: #fff; }
.id-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted, #8c9ab0); }

@media (max-width: 899.98px) {
    .id-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .id-form, .id-out, .id-read { padding: 1rem; }
    .id-three { gap: 0.5rem; }
}
