html:has(.dk-page),
.dk-page {
  overflow-x: clip;
  touch-action: manipulation;
}

.dk-page {
  --dk-ink: #f4f0ff;
  --dk-muted: #c9c2e6;
  --dk-gold: #e6c36a;
  background: #070b18;
  max-width: 100%;
  color: var(--dk-ink);
}

.dk-page .site-header,
.dk-page .site-header.is-scrolled,
.dk-page .site-header.is-open {
  border-bottom: 2px solid #e6c36a;
  background: color-mix(in oklch, #070b18 90%, transparent);
  backdrop-filter: blur(12px);
}

.dk-page .logo,
.dk-page .nav-desktop a,
.dk-page .nav-mobile a {
  color: #f6efe4;
}

.dk-page .nav-desktop a:hover,
.dk-page .nav-desktop a[aria-current="page"],
.dk-page .nav-mobile a:hover,
.dk-page .nav-mobile a[aria-current="page"] {
  color: #fffaf3;
}

.dk-page .menu-toggle {
  border-color: #e6c36a;
  background: #12182c;
}

.dk-page .burger span,
.dk-page .burger-close span {
  background: #f6efe4;
}

.dk-page .nav-mobile {
  background: #070b18;
  border-top-color: #e6c36a;
}

.dk-page .footer-nav a,
.dk-page .site-footer p,
.dk-page .footer-logo {
  color: var(--dk-muted);
}

.dk-skip {
  background: var(--dk-gold);
  color: #1a1408;
}

.dk-shell {
  padding: 5.75rem 0.6rem 2.4rem;
}

.dk-layout {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.dk-ad {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: center;
  border: 1px dashed color-mix(in srgb, var(--dk-ink) 28%, transparent);
  border-radius: 0.75rem;
  background: rgba(8, 10, 24, 0.7);
  color: var(--dk-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.dk-ad-side {
  display: none;
}

.dk-stage {
  border-radius: 1.35rem;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(230, 195, 106, 0.16), transparent 46%),
    linear-gradient(180deg, #1c1630 0%, #0c0a16 55%, #120c1c 100%);
  border: 1px solid color-mix(in srgb, var(--dk-gold) 55%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 180, 0.18),
    0 18px 40px rgba(0, 0, 0, 0.38);
  padding: 1.25rem 0.75rem 1.4rem;
}

.dk-kicker {
  margin: 0;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--dk-gold);
}

.dk-stage h1 {
  margin: 0.2rem 0 0.15rem;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.dk-lead {
  color: var(--dk-muted);
  line-height: 1.7;
}

.dk-title-art {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin: 0.4rem auto 0.6rem;
  border-radius: 12px;
  border: 2px solid #e6c36a;
  box-shadow:
    0 0 0 4px #2a1c08,
    0 0 0 6px rgba(230, 195, 106, 0.55),
    0 16px 36px rgba(0, 0, 0, 0.5);
}
.dk-title-mark {
  margin: 0.4rem 0 0.2rem;
  font-size: clamp(1.4rem, 5.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  color: transparent;
  background: linear-gradient(180deg, #fff6d8, #e6c36a 50%, #a67c1a);
  -webkit-background-clip: text;
  background-clip: text;
}

.dk-home-hi {
  text-align: center;
  color: #ffe9b0;
  font-weight: 700;
}

.dk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.dk-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff1c0 0%, #e6c36a 42%, #a67c1a 100%);
  color: #2a1a08;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 6px 0 #6a4a12,
    0 10px 18px rgba(0, 0, 0, 0.35);
}

.dk-btn-ghost {
  background: transparent;
  color: var(--dk-ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dk-gold) 55%, transparent);
}

.dk-hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.4rem;
  align-items: end;
  margin-bottom: 0.4rem;
}

.dk-hud strong {
  display: block;
  font-size: 1.15rem;
  text-shadow: 0 1px 0 #3a2a10, 0 0 12px rgba(230, 195, 106, 0.35);
}

.dk-hud-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--dk-gold);
  text-shadow: 0 0 8px rgba(230, 195, 106, 0.35);
}

.dk-hud-mid {
  text-align: center;
  font-weight: 800;
  color: #ffe08a;
  font-size: 0.85rem;
}

.dk-hud-right {
  text-align: right;
}

.dk-canvas-wrap {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: #050712;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow:
    0 0 0 2px #f3d98a,
    0 0 0 6px #6a4e16,
    0 0 0 8px #e6c36a,
    inset 0 0 40px rgba(0, 0, 0, 0.35),
    0 18px 36px rgba(0, 0, 0, 0.5);
}

#dk-canvas {
  display: block;
  width: min(100%, 400px);
  height: auto;
  max-height: min(68vh, 720px);
  touch-action: none;
}

.dk-bossbar {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 22rem);
  pointer-events: none;
}

.dk-bossbar span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #ffe08a;
  margin-bottom: 0.18rem;
}

.dk-bossbar-track {
  height: 0.48rem;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #e6c36a, 0 0 10px rgba(230, 195, 106, 0.25);
}

.dk-bossbar-track i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ff6aa8, #ffe08a 55%, #fff6d0);
}

.dk-touch {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.5rem;
  margin-top: 0.65rem;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.dk-stick {
  position: relative;
  min-height: 6.2rem;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(230, 195, 106, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 0 0 1px rgba(230, 195, 106, 0.45),
    inset 0 8px 16px rgba(0, 0, 0, 0.28);
  touch-action: none;
}

.dk-stick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.4rem;
  height: 2.4rem;
  margin: -1.2rem 0 0 -1.2rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff1c0, #c9a227);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 0 #6a4a12, 0 8px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.dk-touch-btn {
  appearance: none;
  border: 0;
  border-radius: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #2a1a08;
  background: linear-gradient(180deg, #fff1c0, #d4b24a 50%, #8a6418);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 0 #6a4a12;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.dk-help {
  margin: 0.5rem 0 0;
  color: var(--dk-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  -webkit-user-select: none;
  user-select: none;
}

.dk-over-score {
  font-size: 1.3rem;
  text-align: center;
}

.dk-dl {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.dk-dl div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid color-mix(in srgb, var(--dk-gold) 22%, transparent);
  padding-bottom: 0.35rem;
}

.dk-dialog {
  border: 1px solid var(--dk-gold);
  border-radius: 1rem;
  padding: 1.2rem;
  background: #10162a;
  color: var(--dk-ink);
  max-width: 22rem;
}

.dk-dialog::backdrop {
  background: rgba(4, 6, 16, 0.7);
}

.dk-seo {
  padding: 1.5rem 0.8rem 3rem;
  color: #d8d2ee;
}

.dk-seo h2 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.5rem;
}

.dk-seo p {
  line-height: 1.85;
  font-size: 0.95rem;
}

.dk-ad-result {
  margin-top: 1.2rem;
}

@media (min-width: 960px) {
  .dk-layout {
    grid-template-columns: 9.5rem minmax(0, 1fr) 9.5rem;
    align-items: start;
  }

  .dk-ad-side {
    display: flex;
    min-height: 28rem;
    position: sticky;
    top: 5.5rem;
  }

  .dk-ad-mobile {
    display: none;
  }
}

@media (max-width: 639px) {
  #dk-canvas {
    max-height: min(58vh, 620px);
  }
}
