/* Daily Theory — daily puzzle. Loads with shared.css (vars) + site-chrome.css (chrome). */

body { display: block; padding: 0; margin: 0; }

.dt-page { max-width: 640px; margin: 0 auto; padding: 28px 20px 48px; }

.dt-head { text-align: center; margin-bottom: 20px; }
.dt-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; color: var(--text, #0f172a); }
.dt-head .dt-sub { color: var(--text-light, #64748b); font-size: 15.5px; line-height: 1.6; margin: 0; }
.dt-meta { display: flex; justify-content: center; gap: 14px; margin-top: 10px; font-weight: 700; font-size: 14px; color: var(--text-light, #64748b); }
.dt-meta #dt-number { color: var(--primary, #0d9488); }

.dt-card { background: var(--card, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 18px;
    padding: 24px; box-shadow: var(--shadow, 0 1px 3px rgba(0,0,0,.1)); }

.dt-start { display: block; margin: 10px auto 0; font: inherit; font-weight: 800; font-size: 17px;
    padding: 14px 38px; border-radius: 12px; border: 0; cursor: pointer; color: #fff;
    background: linear-gradient(135deg, #14b8a6, #0d9488); box-shadow: 0 6px 18px rgba(13,148,136,.35); }
.dt-rules { color: var(--text-light, #64748b); font-size: 14.5px; line-height: 1.7; }
.dt-rules li { margin: 4px 0; }

.dt-progress { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.dt-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--border, #e2e8f0); }
.dt-dot.now { outline: 2px solid var(--primary, #0d9488); outline-offset: 2px; }
.dt-dot.right { background: #16a34a; }
.dt-dot.wrong { background: #dc2626; }

.dt-question { font-size: 20px; font-weight: 700; color: var(--text, #0f172a); line-height: 1.5; margin: 0 0 16px; }

.dt-options { display: grid; gap: 10px; }
.dt-option { font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer;
    padding: 13px 16px; border-radius: 12px; border: 2px solid var(--border, #e2e8f0);
    background: var(--bg, #f8fafc); color: var(--text, #0f172a); }
.dt-option:hover:not(:disabled) { border-color: var(--primary, #0d9488); }
.dt-option.right { border-color: #16a34a; background: rgba(22, 163, 74, .12); }
.dt-option.wrong { border-color: #dc2626; background: rgba(220, 38, 38, .12); }
.dt-option:disabled { cursor: default; }

.dt-feedback { min-height: 24px; margin: 14px 0 0; font-weight: 700; font-size: 15px; }
.dt-feedback.good { color: #16a34a; }
.dt-feedback.bad { color: #dc2626; }

.dt-next { display: none; margin: 12px auto 0; font: inherit; font-weight: 800; font-size: 15px;
    padding: 11px 28px; border-radius: 10px; border: 0; cursor: pointer;
    background: var(--primary, #0d9488); color: #fff; }

/* Results */
.dt-grid { text-align: center; font-size: 38px; letter-spacing: 4px; margin: 8px 0 4px; }
.dt-big-score { text-align: center; font-size: 46px; font-weight: 800; color: var(--primary, #0d9488); margin: 0 0 14px; }
.dt-done h2 { text-align: center; font-size: 22px; font-weight: 800; color: var(--text, #0f172a); margin: 0 0 10px; }
.dt-statrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.dt-stat { background: var(--bg, #f8fafc); border: 1px solid var(--border, #e2e8f0); border-radius: 12px; text-align: center; padding: 12px 6px; }
.dt-stat .v { font-size: 24px; font-weight: 800; color: var(--text, #0f172a); }
.dt-stat .l { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-light, #64748b); margin-top: 4px; }

.dt-share { display: block; width: 100%; margin: 6px 0 4px; font: inherit; font-weight: 800; font-size: 16px;
    padding: 14px; border-radius: 12px; border: 0; cursor: pointer; color: #fff;
    background: linear-gradient(135deg, #14b8a6, #0d9488); }
.dt-share-status { text-align: center; min-height: 20px; font-size: 13.5px; font-weight: 600; color: var(--primary, #0d9488); }

.dt-countdown-row { text-align: center; color: var(--text-light, #64748b); font-size: 14px; margin-top: 8px; }
.dt-countdown-row b { font-variant-numeric: tabular-nums; color: var(--text, #0f172a); }

.dt-review { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border, #e2e8f0);
    font-size: 14.5px; line-height: 1.7; color: var(--text-light, #64748b); }
.dt-review a { color: var(--primary, #0d9488); font-weight: 700; }

/* Publish CTA in results panel */
.dt-publish { text-align: center; margin-top: 10px; min-height: 24px; }
.dt-signin { font: inherit; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 10px;
    border: 2px solid var(--primary, #0d9488); background: transparent; color: var(--primary, #0d9488); cursor: pointer; }
.dt-signin:hover { background: var(--primary, #0d9488); color: #fff; }
.dt-published { font-size: 14px; font-weight: 600; color: var(--primary, #0d9488); }

/* Streak leaderboard */
.dt-board { margin-top: 30px; background: var(--card, #fff); border: 1px solid var(--border, #e2e8f0);
    border-radius: 18px; padding: 22px 24px; }
.dt-board h2 { font-size: 21px; font-weight: 800; color: var(--text, #0f172a); margin: 0 0 4px; }
.dt-board-sub { color: var(--text-light, #64748b); font-size: 13.5px; line-height: 1.6; margin: 0 0 14px; }
.dt-board-list { list-style: none; margin: 0; padding: 0; }
.dt-board-list li { display: flex; align-items: center; gap: 12px; padding: 9px 6px;
    border-bottom: 1px solid var(--border, #e2e8f0); font-size: 15px; }
.dt-board-list li:last-child { border-bottom: 0; }
.dt-rank { width: 34px; text-align: center; font-weight: 800; color: var(--text-light, #64748b); flex-shrink: 0; }
.dt-name { font-weight: 700; color: var(--text, #0f172a); flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-fire { font-weight: 800; color: #d97706; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dt-board-empty { color: var(--text-light, #64748b); font-size: 14px; justify-content: center; }
.dt-board-cta { text-align: center; margin-top: 14px; min-height: 24px; }
.dt-board-error { font-size: 13.5px; font-weight: 600; color: #dc2626; }

.dt-info { margin-top: 30px; color: var(--text-light, #64748b); font-size: 15px; line-height: 1.7; }
.dt-info h2 { font-size: 21px; font-weight: 800; color: var(--text, #0f172a); margin: 24px 0 8px; }
.dt-info a { color: var(--primary, #0d9488); font-weight: 700; text-decoration: none; }
.dt-info a:hover { text-decoration: underline; }
