.dhtw { --dhtw-size: 132px; margin: 6px 0 0; }
.dhtw-tiles { display: flex; flex-wrap: wrap; gap: 14px; }
.dhtw-tile { position: relative; width: var(--dhtw-size); height: var(--dhtw-size); max-width: calc(50vw - 40px); max-height: calc(50vw - 40px); border-radius: 16px; background: linear-gradient(180deg, #fff, #f8faff); box-shadow: 0 1px 2px rgba(15,23,42,.06), inset 0 0 0 1px #e2e8f0; transition: box-shadow .25s, transform .25s; display: grid; place-items: center; touch-action: none; }
.dhtw-tile.is-active { box-shadow: 0 10px 26px -14px rgba(29,78,216,.55), inset 0 0 0 2px #2563eb; transform: translateY(-2px); }
.dhtw-tile svg { width: 100%; height: 100%; display: block; }
.dhtw-fallback { font: 700 calc(var(--dhtw-size) * .6)/1 'Noto Sans KR', 'Malgun Gothic', sans-serif; color: #0f172a; }
.dhtw-guide { stroke: #cbd5e1; stroke-width: .6; stroke-dasharray: 2.5 2.5; fill: none; }
.dhtw-frame { fill: none; stroke: none; }
.dhtw-ghost path { fill: none; stroke: #e5eaf3; stroke-width: 7.5; stroke-linecap: round; stroke-linejoin: round; }
.dhtw-ink path { fill: none; stroke: #0b1f4d; stroke-width: 7.5; stroke-linecap: round; stroke-linejoin: round; }
.dhtw-num { transition: opacity .2s; }
.dhtw-num circle { fill: #ef3340; }
.dhtw-num text { fill: #fff; font: 700 5.4px/1 system-ui, sans-serif; text-anchor: middle; dominant-baseline: central; }
.dhtw.is-practice .dhtw-ghost path { stroke: #dbe3f0; }
.dhtw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 16px; pointer-events: none; cursor: crosshair; }
.dhtw.is-practice .dhtw-canvas { pointer-events: auto; }
.dhtw-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dhtw-btn { appearance: none; border: 1px solid #cbd5e1; background: #fff; color: #0f172a; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; min-height: 0; margin: 0; text-transform: none; letter-spacing: 0; cursor: pointer; transition: background .2s, border-color .2s; }
.dhtw-btn:hover { border-color: #2563eb; color: #1d4ed8; }
.dhtw-btn-main { background: #0b1f4d; border-color: #0b1f4d; color: #fff; }
.dhtw-btn-main:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.dhtw-tip { margin: 10px 0 0; font-size: 13.5px; color: #64748b; }
@media (prefers-reduced-motion: reduce) { .dhtw-tile { transition: none; } }
