.dn {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 2.5vw, 1.75rem) 2.5rem;
}

.dn-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.dn-head h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.dn-head h1 em {
  font-style: normal;
  color: var(--orange);
}

.dn-tabs-wrap {
  position: relative;
  min-width: 0;
}
.dn-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  width: 100%;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--bg-elev);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--orange) 35%, transparent) transparent;
  scroll-behavior: smooth;
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-tabs {
    scrollbar-color: rgba(255, 90, 31, 0.35) transparent;
  }
}
.dn-tabs-wrap.is-fade-start .dn-tabs {
  mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 100%);
}
.dn-tabs-wrap.is-fade-end .dn-tabs {
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 1.75rem), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 1.75rem), transparent);
}
.dn-tabs-wrap.is-fade-start.is-fade-end .dn-tabs {
  mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 calc(100% - 1.75rem), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 calc(100% - 1.75rem), transparent);
}
.dn-tabs__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 22, 28, 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.dn-tabs__nav[hidden] {
  display: none;
}
.dn-tabs__nav--prev {
  left: 0.2rem;
}
.dn-tabs__nav--next {
  right: 0.2rem;
}
.dn-tabs__nav:hover,
.dn-tabs__nav:focus-visible {
  border-color: color-mix(in srgb, var(--orange) 45%, transparent);
  color: #fff;
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-tabs__nav:hover,
.dn-tabs__nav:focus-visible {
    border-color: rgba(255, 90, 31, 0.45);
  }
}
.dn-tabs__nav svg {
  width: 1rem;
  height: 1rem;
}
.dn-tabs::-webkit-scrollbar {
  height: 4px;
}
.dn-tabs::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--orange) 35%, transparent);
  border-radius: 4px;
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 90, 31, 0.35);
  }
}
.dn-tab {
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  padding: 0.48rem 0.75rem;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.dn-tab small {
  margin-left: 0.28rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffb763;
}
.dn-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}
.dn-tab.is-on {
  background: var(--orange);
  color: var(--bp-on, #140800);
  box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--orange) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-tab.is-on {
    box-shadow: 0 8px 18px -12px rgba(255, 90, 31, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
}
.dn-tab.is-on small {
  color: color-mix(in srgb, var(--bp-on, #140800) 78%, transparent);
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-tab.is-on small {
    color: rgba(20, 8, 0, 0.78);
  }
}
.dn-tab:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--orange) 70%, transparent);
  outline-offset: 2px;
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-tab:focus-visible {
    outline: 2px solid rgba(255, 90, 31, 0.7);
  }
}

.dn-note {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--orange) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--orange) 16%, transparent);
}

@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-note {
    background: rgba(255, 90, 31, 0.07);
    border: 1px solid rgba(255, 90, 31, 0.16);
  }
}

.dn-split {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.dn-panel {
  display: grid;
  gap: 0;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, 0.65);
  position: sticky;
  top: 5.25rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  scrollbar-width: thin;
}
.dn-step {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.dn-step:first-child {
  padding-top: 0.15rem;
}
.dn-step:last-of-type {
  border-bottom: 0;
}
.dn-step h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.dn-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.dn-swatch {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.dn-swatch.is-on {
  border-color: var(--ink);
}
.dn-swatch--custom {
  position: relative;
  overflow: hidden;
  background: conic-gradient(#ff5a1f, #f7c948, #2ecc71, #1e90ff, #8e44ad, #ff5a1f);
}
.dn-swatch--custom input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dn-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.dn-choice button {
  flex: 1 1 auto;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 0.45rem 0.6rem;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.dn-choice button:hover {
  color: var(--ink);
}
.dn-choice button.is-on {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  color: var(--ink);
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-choice button.is-on {
    background: rgba(255, 90, 31, 0.12);
  }
}

.dn-text {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
}
.dn-text:focus {
  outline: none;
  border-color: var(--orange);
}

.dn-step.is-drop {
  outline: 2px dashed var(--orange);
  outline-offset: 3px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--orange) 6%, transparent);
}

@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-step.is-drop {
    background: rgba(255, 90, 31, 0.06);
  }
}

.dn-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.dn-actions .btn svg {
  width: 1rem;
  height: 1rem;
}
.dn-panel > .dn-note {
  margin-top: 0.85rem;
}
.dn-fine {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}
.dn-fine svg {
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.1rem;
}

.dn-stage {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  position: sticky;
  top: 5.25rem;
  padding: 0.45rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), rgba(0, 0, 0, 0.2);
  box-shadow: 0 20px 48px -36px rgba(0, 0, 0, 0.75);
}
.dn-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(72vh, calc(100vw * 9 / 16));
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0b0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px color-mix(in srgb, var(--orange) 8%, transparent);
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-screen {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 90, 31, 0.08);
  }
}
/* Flappy / Photo Booth: Unity playfield ~9:16 — avoid side letterbox */
.dn-screen--portrait {
  aspect-ratio: 9 / 16;
  width: min(100%, 360px);
  max-height: min(72vh, 640px);
}
/* Dino runner: Unity playAspect 600:240 */
.dn-screen--runner {
  aspect-ratio: 600 / 240;
  width: 100%;
  max-height: min(42vh, 380px);
}
.dn-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.dn-screen:fullscreen {
  border-radius: 0;
  border: 0;
  aspect-ratio: auto;
  width: 100%;
  max-height: none;
}
.dn-exitfs {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.6);
  color: #fff;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s var(--ease);
}
.dn-exitfs:hover,
.dn-exitfs:focus-visible {
  opacity: 1;
}
.dn-exitfs[hidden] {
  display: none;
}
.dn-exitfs svg {
  width: 18px;
  height: 18px;
}
.dn-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.8rem;
  background: #0b0c0e;
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: opacity 0.3s var(--ease), visibility 0s 0.3s;
}
.dn-loading.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.dn-loading.is-done .dn-spinner {
  animation: none;
}
.dn-loading p {
  margin: 0;
}
.dn-spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--orange);
  animation: dn-spin 0.9s linear infinite;
}
@keyframes dn-spin {
  to {
    transform: rotate(360deg);
  }
}
.dn-stage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.35rem 0.15rem 0.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.dn-hint {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.dn-load-art {
  width: min(240px, 62%);
  overflow: hidden;
}
.dn-load-art [data-scene] {
  display: none;
}
.dn-loading[data-scene="flappy"] [data-scene="flappy"],
.dn-loading[data-scene="dino"] [data-scene="dino"],
.dn-loading[data-scene="booth"] [data-scene="booth"],
.dn-loading[data-scene="salon"] [data-scene="salon"],
.dn-loading[data-scene="arcade"] [data-scene="arcade"] {
  display: inline;
}
.dn-loading.is-done .ill * {
  animation-play-state: paused;
}
.dn-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.dn-tab__ico {
  width: 16px;
  height: 16px;
}
.dn-tab.is-on .dn-tab__ico .a {
  fill: var(--bp-on, #140800);
}
.dn-tab.is-on .dn-tab__ico .a-soft {
  fill: color-mix(in srgb, var(--bp-on, #140800) 22%, transparent);
  stroke: var(--bp-on, #140800);
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-tab.is-on .dn-tab__ico .a-soft {
    fill: rgba(20, 8, 0, 0.22);
  }
}
.dn-hint-art {
  width: 30px;
  flex-shrink: 0;
}
.dn-hint-scan {
  animation-name: dn-hint-scan;
}
@keyframes dn-hint-scan {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(15px); }
}

@media (max-width: 1024px) {
  .dn-split {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .dn {
    padding-top: 1rem;
  }
  .dn-head h1 {
    max-width: none;
  }
  .dn-split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .dn-panel {
    position: static;
    max-height: none;
    order: 2;
  }
  .dn-stage {
    position: static;
    order: 1;
  }
  .dn-screen {
    border-radius: 12px;
    max-height: min(56vh, calc(100vw * 9 / 16));
    width: 100%;
  }
  .dn-screen--portrait {
    width: min(100%, 300px);
    max-height: min(62vh, 560px);
  }
  .dn-screen--runner {
    max-height: min(36vh, 280px);
  }
  .dn-stage {
    padding: 0.35rem;
    border-radius: 14px;
  }
  .dn-tabs {
    flex-wrap: nowrap;
  }
}

@media (max-width: 767px) {
  /* Arrows sit in a gutter beside the strip so they never cover tab labels */
  .dn-tabs-wrap.is-fade-start {
    padding-left: 2.85rem;
  }
  .dn-tabs-wrap.is-fade-end {
    padding-right: 2.85rem;
  }
  .dn-tabs__nav--prev {
    left: 0;
  }
  .dn-tabs__nav--next {
    right: 0;
  }
}

@media (pointer: coarse), (max-width: 860px) {
  .dn-tab,
  .dn-choice button {
    min-height: 44px;
  }
  .dn-swatch {
    width: 2.75rem;
    height: 2.75rem;
  }
  .dn-tabs__nav {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .dn-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .dn-tabs-wrap.is-fade-start .dn-tabs,
  .dn-tabs-wrap.is-fade-end .dn-tabs,
  .dn-tabs-wrap.is-fade-start.is-fade-end .dn-tabs {
    mask-image: none;
    -webkit-mask-image: none;
  }
  .dn-tabs__nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .dn-tab {
    font-size: 0.78rem;
    padding: 0.42rem 0.65rem;
  }
  .dn-stage__bar {
    flex-wrap: wrap;
  }
  .dn-hint {
    flex: 1 1 100%;
  }
  .dn-hint-art {
    display: none;
  }
  .dn-screen--portrait {
    width: min(100%, 280px);
    max-height: min(58vh, 520px);
  }
}

/* Experience families + game chips */
.dn-fams {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.dn-fam {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.55rem 0.8rem 0.55rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--bg-elev);
  color: var(--ink-soft);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}
.dn-fam:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  color: var(--ink);
}
.dn-fam.is-on {
  border-color: color-mix(in srgb, var(--orange) 70%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--orange) 12%, transparent), transparent 80%), var(--bg-elev);
  color: var(--ink);
  box-shadow: 0 14px 30px -22px color-mix(in srgb, var(--orange) 90%, transparent);
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-fam.is-on {
    border-color: rgba(255, 90, 31, 0.7);
    background: linear-gradient(180deg, rgba(255, 90, 31, 0.12), transparent 80%), #16181d;
    box-shadow: 0 14px 30px -22px rgba(255, 90, 31, 0.9);
  }
}
.dn-fam:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--orange) 70%, transparent);
  outline-offset: 2px;
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-fam:focus-visible {
    outline: 2px solid rgba(255, 90, 31, 0.7);
  }
}
.dn-fam__art {
  flex: none;
  width: 84px;
  padding: 4px;
  border-radius: 10px;
  background: #0f1115;
}
.dn-fam:not(.is-on) .dn-fam__art * {
  animation-play-state: paused;
}
.dn-fam__txt {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.dn-fam__txt b {
  font-size: 0.95rem;
}
.dn-fam__txt small {
  overflow: hidden;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dn-tabs-wrap[hidden],
.dn-tab[hidden] {
  display: none;
}
.dn-tabs-wrap .dn-tabs {
  padding: 0.25rem;
  border-radius: 999px;
}
.dn-tabs-wrap .dn-tab {
  border-radius: 999px;
}

/* One-step logo drop */
.dn-step--drop h2 {
  font-size: 0.98rem;
}
.dn-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem 0.7rem 0.7rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.dn-drop:hover,
.dn-step.is-drop .dn-drop {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--orange) 8%, transparent);
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-drop:hover,
.dn-step.is-drop .dn-drop {
    background: rgba(255, 90, 31, 0.08);
  }
}
.dn-drop.is-filled {
  border-style: solid;
  border-color: color-mix(in srgb, var(--orange) 55%, transparent);
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-drop.is-filled {
    border-color: rgba(255, 90, 31, 0.55);
  }
}
.dn-drop.is-busy {
  opacity: 0.6;
  pointer-events: none;
}
.dn-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.dn-drop__art {
  flex: none;
  width: 44px;
}
.dn-drop.is-filled .dn-drop__art {
  display: none;
}
.dn-drop__arrow {
  fill: none;
  stroke: var(--ill-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dn-drop__thumb {
  flex: none;
  width: 64px;
  height: 44px;
  padding: 5px 7px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
  box-sizing: border-box;
}
.dn-drop__thumb[hidden] {
  display: none;
}
.dn-drop__txt {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.dn-drop__txt b {
  font-size: 0.86rem;
}
.dn-drop__txt small {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.dn-drop__txt small[hidden] {
  display: none;
}
.dn-drop__swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--lp-orange, var(--orange));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* "İnce ayar" */
.dn-more {
  border-bottom: 1px solid var(--line);
}
.dn-more > summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 0;
  list-style: none;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.dn-more > summary::-webkit-details-marker {
  display: none;
}
.dn-more > summary svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.dn-more > summary small {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}
.dn-more > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 0.4rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease);
}
.dn-more[open] > summary::after {
  transform: rotate(-135deg) translateY(-2px);
}
.dn-more__line {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 2;
  stroke-linecap: round;
}
.dn-more__knob {
  fill: var(--bg-elev);
  stroke: var(--orange);
  stroke-width: 2;
  transition: transform 0.35s var(--ease);
}
.dn-more[open] .dn-more__knob:first-of-type {
  transform: translateX(-6px);
}
.dn-more[open] .dn-more__knob:last-of-type {
  transform: translateX(6px);
}
.dn-more__body {
  display: grid;
  gap: 0.15rem;
  padding: 0 0 0.75rem;
  animation: dn-more-in 0.28s var(--ease) both;
}
.dn-set {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem 0.6rem;
  padding: 0.45rem 0;
  border-radius: 10px;
}
.dn-set[hidden] {
  display: none;
}
.dn-set > .dn-drop {
  grid-column: 2;
}
.dn-set.is-drop {
  outline: 2px dashed var(--orange);
  outline-offset: 2px;
  background: color-mix(in srgb, var(--orange) 6%, transparent);
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-set.is-drop {
    background: rgba(255, 90, 31, 0.06);
  }
}
.dn-set__k {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}
.dn-set .dn-swatches {
  gap: 0.3rem;
}
.dn-set .dn-swatch {
  width: 1.45rem;
  height: 1.45rem;
}
.dn-set .dn-text {
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
}
.dn-choice--seg {
  flex-wrap: nowrap;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.dn-choice--seg button {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  padding: 0.38rem 0.3rem;
  font-size: 0.74rem;
  white-space: nowrap;
}
.dn-choice--seg button.is-on {
  background: color-mix(in srgb, var(--lp-orange, var(--orange)) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lp-orange, var(--orange)) 60%, transparent);
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn-choice--seg button.is-on {
    background: rgba(247, 147, 30, 0.22);
    box-shadow: inset 0 0 0 1px rgba(247, 147, 30, 0.6);
  }
}
.dn-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: start;
  font-size: 0.8rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.dn-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dn-switch i {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 0.2s var(--ease);
}
.dn-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s var(--ease);
}
.dn-switch input:checked + i {
  background: var(--lp-orange, var(--orange));
}
.dn-switch input:checked + i::after {
  transform: translateX(14px);
}
.dn-switch input:focus-visible + i {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.dn-place {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.dn-pos {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  width: 84px;
  height: 56px;
  padding: 3px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(transparent 46%, rgba(255, 255, 255, 0.05) 46% 54%, transparent 54%);
}
.dn-pos button {
  display: grid;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.dn-pos button:nth-child(-n + 3) {
  align-items: start;
}
.dn-pos button:nth-child(n + 4) {
  align-items: end;
}
.dn-pos button:nth-child(3n + 1) {
  justify-items: start;
}
.dn-pos button:nth-child(3n + 2) {
  justify-items: center;
}
.dn-pos button:nth-child(3n) {
  justify-items: end;
}
.dn-pos i {
  width: 10px;
  height: 6px;
  border-radius: 2px;
  background: var(--line-strong);
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.dn-pos button:hover i {
  background: var(--ink-soft);
}
.dn-pos button.is-on i {
  background: var(--lp-orange, var(--orange));
  transform: scale(1.35);
}
.dn-size {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.dn-size svg {
  flex: none;
  width: 11px;
  height: 11px;
  fill: var(--muted);
}
.dn-size input {
  flex: 1;
  min-width: 0;
  accent-color: var(--lp-orange, var(--orange));
}
.dn-more__reset {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: start;
  margin-top: 0.35rem;
  padding: 0.35rem 0.1rem;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}
.dn-more__reset svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}
.dn-more__reset:hover:not(:disabled) {
  color: var(--ink);
}
.dn-more__reset:hover:not(:disabled) svg {
  transform: rotate(-200deg);
}
.dn-more__reset:disabled {
  opacity: 0.35;
  cursor: default;
}
.dn-drop__clear {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--ink-soft);
  cursor: pointer;
}
.dn-drop__clear[hidden] {
  display: none;
}
.dn-drop__clear:hover {
  border-color: #e5484d;
  color: #ffb4b4;
}
.dn-drop__clear svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.dn-drop--sm {
  gap: 0.6rem;
  padding: 0.5rem 0.55rem;
  border-radius: 12px;
}
.dn-drop[hidden] {
  display: none;
}
.dn-drop--sm .dn-drop__art {
  width: 34px;
}
.dn-drop--sm .dn-drop__thumb {
  width: 48px;
  height: 34px;
  padding: 3px;
}
.dn-drop__thumb--dark {
  background: repeating-conic-gradient(#2a2a2e 0 25%, #1c1c20 0 50%) 0 0 / 10px 10px;
}
.dn-drop--sm .dn-drop__txt b {
  font-size: 0.8rem;
}
.dn-drop--sm .dn-drop__txt small {
  font-size: 0.7rem;
}
.dn-set.is-drop .dn-drop {
  border-color: var(--orange);
}
@media (pointer: coarse), (max-width: 860px) {
  .dn-set .dn-swatch {
    width: 2.1rem;
    height: 2.1rem;
  }
}
.dn-drop.is-off .dn-drop__thumb {
  opacity: 0.35;
  filter: grayscale(1);
}
.dn-more__body .dn-step:last-of-type {
  border-bottom: 0;
}
@keyframes dn-more-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Animated hint chips */
.dn-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}
.dn-hintchip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.7rem 0.25rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.76rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.dn-hintchip svg {
  width: 26px;
  height: 26px;
  padding: 2px;
  border-radius: 999px;
  background: #0f1115;
}
.dn-key {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: dn-key 1.6s ease-in-out infinite;
}
@keyframes dn-key {
  0%, 55%, 100% { transform: none; }
  65% { transform: translateY(2px) scaleY(0.75); }
}
.dn-tap {
  transform-box: fill-box;
  transform-origin: center;
  animation: dn-tap 1.6s ease-in-out infinite;
}
.dn-tap-ring {
  fill: none;
  stroke: var(--ill-accent);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: dn-tap-ring 1.6s ease-out infinite;
}
@keyframes dn-tap {
  0%, 100% { transform: scale(0.85); }
  40% { transform: scale(1); }
}
@keyframes dn-tap-ring {
  0%, 30% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Logo applied: sparkle burst over the game */
.dn-burst {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.dn-burst svg {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  opacity: 0;
  animation: dn-burst 1.1s cubic-bezier(0.2, 0.8, 0.3, 1) var(--d) both;
}
@keyframes dn-burst {
  0% { transform: translate(0, 0) scale(0.2) rotate(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(140deg); opacity: 0; }
}

/* "Etkinliğimde kullan" moment */
.dn-go {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: rgba(8, 9, 12, 0);
  backdrop-filter: blur(0);
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.dn-go.is-on {
  background: rgba(8, 9, 12, 0.6);
  backdrop-filter: blur(6px);
}
.dn-go__card {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-elev);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.25s var(--ease);
}
.dn-go.is-on .dn-go__card {
  transform: none;
  opacity: 1;
}
.dn-go__card b {
  font-size: 1.05rem;
}
.dn-go__card span {
  font-size: 0.82rem;
  color: var(--muted);
}
.dn-go__art {
  width: 64px;
  margin-bottom: 0.3rem;
}
.dn-go__ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ill-pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
.dn-go__check {
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: dn-check 0.4s 0.2s ease-out forwards;
}
@keyframes dn-check {
  to { stroke-dashoffset: 0; }
}

/* Mobile: sticky "Etkinliğimde kullan" */
.dn-mbar {
  display: none;
}
@media (max-width: 860px) {
  .dn-fams {
    gap: 0.4rem;
  }
  .dn-fam {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.4rem;
    text-align: center;
  }
  .dn-fam__art {
    width: 100%;
  }
  .dn-fam__txt b {
    font-size: 0.8rem;
  }
  .dn-fam__txt small {
    display: none;
  }
  .dn-mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: block;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(10, 11, 14, 0.96) 60%, rgba(10, 11, 14, 0));
  }
  .dn-actions > .btn {
    display: none;
  }
  .dn-foot {
    padding-bottom: 5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dn-key, .dn-tap, .dn-tap-ring, .dn-more__body, .dn-go__ring, .dn-go__check { animation: none; }
  .dn-go__check { stroke-dashoffset: 0; }
}

/* Brand colour on the primary actions (text stays readable on light brands) */
.dn .btn--primary {
  color: var(--bp-on, #140800);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--orange) 18%, transparent);
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn .btn--primary {
    box-shadow: 0 8px 24px rgba(255, 90, 31, 0.18);
  }
}
.dn .btn--primary:hover {
  color: var(--bp-on-deep, #fff);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--orange) 28%, transparent);
}
@supports not (color: color-mix(in srgb, red, blue)) {

  .dn .btn--primary:hover {
    box-shadow: 0 10px 28px rgba(255, 90, 31, 0.28);
  }
}
