body { background-color: #ecfdf5; margin: 0; font-family: 'Inter', sans-serif; }
.dt-container { max-width: 1000px; margin: 20px auto; padding: 10px 20px; }
.dt-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.dt-back-btn { text-decoration: none; color: #fff; background: #10b981; padding: 8px 16px; border-radius: 8px; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: background 0.3s; }
.dt-back-btn:hover { background: #059669; }
.dt-stats { display: flex; gap: 20px; font-weight: 700; color: #064e3b; font-size: 1.1rem; }
.dt-progress-bar { width: 100%; height: 8px; background: #d1fae5; border-radius: 4px; overflow: hidden; margin-bottom: 25px; }
.dt-progress { height: 100%; background: linear-gradient(90deg, #34d399, #10b981); width: 0%; transition: width 0.3s; }

.dt-game-area { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-items: stretch; }

.dt-left-panel { background: #1e293b; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.dt-code-window { background: #0f172a; border-radius: 8px; overflow: hidden; border: 1px solid #334155; }
.dt-code-header { background: #1e293b; padding: 10px 15px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #334155; }
.dt-dot { width: 12px; height: 12px; border-radius: 50%; }
.dt-filename { color: #94a3b8; font-family: monospace; font-size: 0.9rem; margin-left: auto; }
.dt-code { margin: 0; padding: 20px; color: #f8fafc; font-family: 'Consolas', monospace; font-size: 1.1rem; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; }

.dt-right-panel { display: flex; flex-direction: column; justify-content: center; }
.dt-question-title { color: #065f46; font-size: 1.3rem; margin-bottom: 20px; }
.dt-choices { display: flex; flex-direction: column; gap: 12px; }
.dt-choice-btn { background: white; border: 2px solid #d1fae5; color: #065f46; padding: 16px; border-radius: 12px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; text-align: left; }
.dt-choice-btn:hover { background: #ecfdf5; border-color: #10b981; transform: translateX(5px); }
.dt-choice-btn.correct { background: #10b981; border-color: #10b981; color: white; transform: none; }
.dt-choice-btn.wrong { background: #ef4444; border-color: #ef4444; color: white; transform: none; }

.dt-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 1000; backdrop-filter: blur(5px); }
.dt-modal.show { opacity: 1; pointer-events: auto; }
.dt-modal-content { background: white; padding: 40px; border-radius: 20px; text-align: center; max-width: 400px; transform: translateY(20px); transition: transform 0.3s; }
.dt-modal.show .dt-modal-content { transform: translateY(0); }
.dt-modal-icon { font-size: 4rem; color: #10b981; margin-bottom: 15px; }
.dt-modal-title { font-size: 2rem; color: #1e293b; margin: 0 0 10px 0; }
.dt-modal-score { font-size: 1.5rem; font-weight: 700; color: #059669; margin-bottom: 5px; }
.dt-modal-rank { font-size: 1.2rem; color: #64748b; margin-bottom: 25px; }
.dt-modal-btn { display: inline-block; background: #10b981; color: white; border: none; padding: 12px 24px; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; text-decoration: none; margin: 5px; transition: background 0.3s; }
.dt-modal-btn:hover { background: #059669; }

@media (max-width: 768px) {
    .dt-game-area { grid-template-columns: 1fr; }
    .dt-code { font-size: 0.95rem; }
}
