.dt-page {
    --dt-bg: #f6f8fc;
    --dt-card: #fff;
    --dt-text: #0f1c2e;
    --dt-muted: #5a6b80;
    --dt-line: #e4eaf2;
    --dt-blue: #2563eb;
    --dt-blue-deep: #1d4ed8;
    --dt-soft: #eef3fe;
    --dt-shadow: 0 10px 26px rgba(19, 44, 79, .05);
    max-width: 1128px;
    margin: 0 auto 72px;
    padding: 28px 20px 0;
    color: var(--dt-text);
    background: var(--dt-bg);
}

html[data-theme="dark"] .dt-page {
    --dt-bg: #10151c;
    --dt-card: #10151c;
    --dt-text: #e8eef8;
    --dt-muted: #9aabc0;
    --dt-line: #243044;
    --dt-soft: #10151c;
    --dt-shadow: none;
}

.dt-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--dt-muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.dt-crumb a { color: var(--dt-blue); text-decoration: none; }
.dt-crumb a:hover { text-decoration: underline; }

.dt-page h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.dt-lead {
    margin: 0 0 18px;
    max-width: 68ch;
    color: var(--dt-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.dt-card {
    background: var(--dt-card);
    border: 1px solid var(--dt-line);
    border-radius: 16px;
    box-shadow: var(--dt-shadow);
    padding: 22px 22px 20px;
    margin: 0 0 16px;
}

.dt-card h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.dt-card p,
.dt-card li {
    line-height: 1.7;
}

.dt-card p { margin: 0 0 10px; }
.dt-card ul,
.dt-card ol { margin: 8px 0 0; padding-left: 1.2rem; }

.dt-compare-card {
    padding: 0;
    overflow: hidden;
    background: #000;
    border-color: #1a1a1a;
}

.dt-compare-card > p {
    margin: 0;
    padding: 12px 16px 0;
    background: var(--dt-card);
}

.dt-compare-card > p:last-child { padding-bottom: 14px; }

.dt-full-float {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    appearance: none;
    border: 0;
    background: #3a3a3a;
    color: #fff;
    border: 1px solid #5c5c5c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .55);
    border-radius: 999px;
    padding: 8px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.dt-meter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px 8px 0;
    background: #000;
}

.dt-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
    padding: 8px 14px;
    background: #3a3a3a;
    border-radius: 8px;
}

.dt-pill-label {
    max-width: 6.2em;
    color: #e4e4e4;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 650;
}

.dt-pill strong {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    line-height: 1;
}

.dt-pill small {
    font-size: .62em;
    font-weight: 650;
    letter-spacing: 0;
    margin-left: 2px;
}

.dt-ready {
    margin: 8px;
    background: #3a3a3a;
    color: #fff;
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    border-radius: 6px;
    padding: 12px 16px;
}

.dt-ready.is-on { background: #00c43a; }

.dt-status {
    min-height: 1.4em;
    color: var(--dt-muted);
    margin: 4px 0 14px;
}

.dt-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.dt-btn {
    appearance: none;
    border: 0;
    background: var(--dt-blue);
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.dt-btn:hover { background: var(--dt-blue-deep); }
.dt-btn:focus-visible { outline: 3px solid #93b4f7; outline-offset: 2px; }

.dt-btn-ghost {
    background: var(--dt-soft);
    color: var(--dt-blue-deep);
}

.dt-note {
    border-color: #f3d7a1;
    background: #fffaf2;
}

html[data-theme="dark"] .dt-note {
    border-color: #6b5424;
    background: #10151c;
}

html[data-theme="dark"] .dt-hero:not(:fullscreen):not(.is-max) {
    background: #10151c;
}

.dt-stage {
    position: relative;
    background: #05070c;
    border-radius: 14px;
    overflow: hidden;
    min-height: 220px;
    margin-top: 12px;
}

.dt-compare-card .dt-stage {
    margin: 0;
    border-radius: 0;
    background: #000;
    min-height: 0;
}

#dt-compare:fullscreen,
#dt-compare.is-max {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #000;
}

#dt-compare:fullscreen .dt-lanes,
#dt-compare.is-max .dt-lanes {
    flex: 1;
    min-height: 0;
    grid-template-rows: repeat(var(--dt-rows, 3), minmax(0, 1fr));
}

#dt-compare:fullscreen .dt-lane,
#dt-compare.is-max .dt-lane,
#dt-compare:fullscreen .dt-lane-track,
#dt-compare.is-max .dt-lane-track {
    height: 100%;
    min-height: 0;
}

#dt-compare:fullscreen .dt-lane-track,
#dt-compare.is-max .dt-lane-track {
    background-size: auto 100%;
}

.dt-lanes {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: #2a2a2a;
}

.dt-lane {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    min-width: 0;
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}

.dt-lane-track {
    position: relative;
    height: 96px;
    min-width: 0;
    background-color: #000;
    background-repeat: repeat-x;
    background-size: auto 100%;
    overflow: hidden;
}

.dt-ruler {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        90deg,
        transparent 0 31px,
        rgba(255, 255, 255, .2) 31px 32px
    );
}

.dt-lane-label {
    position: static;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    background: #1b1b1b;
    border-right: 1px solid #3a3a3a;
    color: #b6ff9a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    text-align: center;
    line-height: 1.15;
}

.dt-block {
    width: 64px;
    height: 64px;
    position: absolute;
    top: 50%;
    margin-top: -32px;
    left: 0;
    z-index: 1;
    background: none;
    will-change: transform;
}

.dt-alien {
    display: block;
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.dt-ghost-block {
    width: 54px;
    height: 54px;
    border-radius: 4px;
    background: #fff;
    position: absolute;
    top: 62px;
    left: 0;
    will-change: transform;
}

.dt-ghost-stage { min-height: 260px; }

.dt-ghost-stage .dt-stage-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.dt-stage-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 12px 12px;
}

.dt-speed {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #d5deea;
    flex: 1;
    min-width: 220px;
}

.dt-speed input { flex: 1; accent-color: var(--dt-blue); }

.dt-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.dt-hero:fullscreen,
.dt-stage:fullscreen,
.dt-hero.is-max,
.dt-stage.is-max {
    background: #05070c;
    color: #f4f7fb;
    margin: 0;
    border-radius: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
}

.dt-hero.is-max,
.dt-stage.is-max {
    position: fixed;
    inset: 0;
    z-index: 5000;
    padding: 28px 20px;
}

.dt-hero:fullscreen .dt-hz,
.dt-hero.is-max .dt-hz { color: #8eb0ff; }

.dt-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dt-swatches {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 6px;
    background: #000;
    padding: 12px;
    border-radius: 12px;
}

.dt-swatch {
    aspect-ratio: 1;
    border-radius: 6px;
    position: relative;
}

.dt-swatch span {
    position: absolute;
    left: 4px;
    bottom: 4px;
    color: #9aa;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.dt-res-pattern {
    height: 72px;
    border-radius: 12px;
    background:
        repeating-linear-gradient(90deg, #0f1c2e 0 1px, transparent 1px 8px),
        repeating-linear-gradient(#0f1c2e 0 1px, #f6f8fc 1px 8px);
    border: 1px solid var(--dt-line);
}

.dt-pills,
.dt-res-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.dt-pills li,
.dt-res-facts {
    background: var(--dt-soft);
    color: var(--dt-blue-deep);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
}

.dt-res-facts { display: block; border-radius: 12px; line-height: 1.6; font-weight: 600; }

.dt-mouse {
    margin-top: 12px;
    min-height: 140px;
    border-radius: 14px;
    border: 1px dashed var(--dt-line);
    background: var(--dt-soft);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 16px;
    touch-action: none;
}

.dt-figure {
    margin: 14px 0 0;
    background: var(--dt-soft);
    border-radius: 12px;
    overflow: hidden;
}

.dt-figure img { display: block; width: 100%; height: auto; }
.dt-figure figcaption { padding: 8px 12px 10px; color: var(--dt-muted); font-size: 13px; }

.dt-faq details {
    border-top: 1px solid var(--dt-line);
    padding: 10px 0;
}

.dt-faq details:first-of-type { border-top: 0; }

.dt-faq summary {
    cursor: pointer;
    font-weight: 700;
}

.dt-faq details p { margin: 8px 0 0; color: var(--dt-muted); }

.dt-related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dt-related a {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--dt-line);
    border-radius: 14px;
    padding: 14px;
    background: var(--dt-bg);
    min-height: 100%;
}

.dt-related a:hover { border-color: #93b4f7; }
.dt-related strong { display: block; margin-bottom: 6px; color: var(--dt-blue-deep); }
.dt-related span { color: var(--dt-muted); font-size: .92rem; line-height: 1.5; }

.dt-check { list-style: none; padding: 0; margin: 12px 0 0; }
.dt-check li {
    background: var(--dt-soft);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 0 0 8px;
}

@media (max-width: 900px) {
    .dt-grid-2,
    .dt-related { grid-template-columns: 1fr 1fr; }
    .dt-swatches { grid-template-columns: repeat(6, 1fr); }
    .dt-meter { grid-template-columns: 1fr 1fr; }
    .dt-pill strong { font-size: 24px; }
}

@media (max-width: 560px) {
    .dt-page { padding: 18px 14px 0; }
    .dt-card { padding: 16px 14px; }
    .dt-compare-card { padding: 0; }
    .dt-ready { font-size: 22px; letter-spacing: .04em; }
    .dt-lanes { gap: 8px; padding: 8px; }
    .dt-lane { grid-template-columns: 58px minmax(0, 1fr); }
    .dt-lane-label { font-size: 11px; }
    .dt-lane-track { height: 72px; }
    .dt-block,
    .dt-alien { width: 48px; height: 48px; }
    .dt-block { margin-top: -24px; }
    .dt-pill { min-height: 52px; padding: 6px 10px; }
    .dt-pill strong { font-size: 22px; }
    .dt-grid-2,
    .dt-related { grid-template-columns: 1fr; }
    .dt-swatches { grid-template-columns: repeat(5, 1fr); }
}
