/* Noos Deep Dig */
[hidden] { display: none !important; }

.dd-body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -10%, #3a2616 0%, #1a110b 45%, #0d0907 100%) fixed;
  color: #f4e7d3;
  font-family: 'Quicksand', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

.dd-page {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding: 6px 8px 14px;
}

.dd-card {
  --dd-w: 360px;
  --dd-acc: #f59e0b;
  box-sizing: border-box;
  width: var(--dd-w);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- HUD ---------- */
.dd-hud { display: flex; gap: 6px; align-items: stretch; }
.dd-chip {
  flex: 1 1 0;
  min-width: 0;
  background: #24170e;
  border: 1px solid #4a3220;
  border-radius: 12px;
  padding: 4px 8px 5px;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.dd-chip span { font-size: 9.5px; letter-spacing: .14em; color: #b8956b; font-weight: 700; white-space: nowrap; }
.dd-chip b { font-size: clamp(16px, 4.6vw, 21px); font-weight: 700; color: #ffe29a; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dd-ibtn {
  flex: 0 0 auto;
  width: 44px;
  border-radius: 12px;
  border: 1px solid #4a3220;
  background: #2d1d12;
  color: #f4e7d3;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.dd-ibtn:active { transform: scale(.95); }

/* ---------- air bar ---------- */
.dd-air {
  position: relative;
  height: 24px;
  border-radius: 12px;
  background: #1a110b;
  border: 1px solid #4a3220;
  overflow: hidden;
}
.dd-air-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  background: linear-gradient(90deg, #22d3ee, #38bdf8);
  transition: width .08s linear, background .25s;
}
.dd-air.mid .dd-air-fill { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.dd-air.low .dd-air-fill { background: linear-gradient(90deg, #f87171, #ef4444); animation: ddPulse .55s ease-in-out infinite alternate; }
@keyframes ddPulse { from { filter: brightness(1); } to { filter: brightness(1.55); } }
.dd-air-txt {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.65);
}
.dd-clock {
  position: absolute; right: 10px; top: 0; bottom: 0;
  display: flex; align-items: center;
  font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7);
  font-variant-numeric: tabular-nums;
}

/* ---------- stage ---------- */
.dd-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 360 / 520;
  border-radius: 16px;
  overflow: hidden;
  background: #120d09;
  border: 2px solid #4a3220;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04);
  touch-action: none;
}
.dd-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }

.dd-hint {
  position: absolute; left: 0; right: 0; bottom: 14%;
  text-align: center; pointer-events: none;
  font-size: clamp(12px, 3.6vw, 15px); font-weight: 700; color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.8);
  animation: ddBlink 1.2s ease-in-out infinite alternate;
}
@keyframes ddBlink { from { opacity: .55; } to { opacity: 1; } }
.dd-zone {
  position: absolute; left: 0; right: 0; top: 16%;
  text-align: center; pointer-events: none;
  font-size: clamp(16px, 5vw, 24px); font-weight: 700; letter-spacing: .18em; color: #ffe29a;
  text-shadow: 0 2px 8px rgba(0,0,0,.85);
  animation: ddZone 2.2s ease-out forwards;
}
@keyframes ddZone { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- overlays ---------- */
.dd-ov {
  position: absolute; inset: 0;
  box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 10px;
  padding: 16px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(16, 11, 8, .86);
  text-align: center;
}
.dd-ov > :first-child { margin-top: auto; }
.dd-ov > :last-child { margin-bottom: auto; }
.dd-start { background: linear-gradient(180deg, rgba(16,11,8,.72), rgba(16,11,8,.9)); }
.dd-opts { background: #1b130d; align-items: stretch; gap: 8px; touch-action: pan-y; }
.dd-opts > .dd-title, .dd-opts > .dd-btn { align-self: center; }
.dd-count { background: rgba(16, 11, 8, .45); pointer-events: none; justify-content: center; }
.dd-count b { font-size: clamp(64px, 24vw, 120px); color: #ffe29a; text-shadow: 0 4px 16px rgba(0,0,0,.7); }

.dd-title { font-size: clamp(32px, 11vw, 52px); font-weight: 700; letter-spacing: .12em; color: #ffd166; text-shadow: 0 3px 0 #7c4a12, 0 6px 18px rgba(0,0,0,.6); line-height: 1; }
.dd-title-sm { font-size: clamp(22px, 7vw, 30px); letter-spacing: .14em; text-shadow: 0 2px 0 #7c4a12; }
.dd-sub { font-size: clamp(12px, 3.5vw, 14px); color: #d9c3a3; font-weight: 600; }
.dd-modes { display: flex; flex-wrap: nowrap; gap: 6px; }
.dd-mode {
  white-space: nowrap;
  font-family: inherit; font-weight: 700; font-size: clamp(10.5px, 3vw, 12.5px); letter-spacing: .08em;
  padding: 9px 10px; border-radius: 12px;
  border: 1px solid #5a3f28; background: #2a1c11; color: #d9c3a3; cursor: pointer;
}
.dd-mode[aria-checked="true"] { background: var(--dd-acc); border-color: var(--dd-acc); color: #2a1604; }
.dd-modedesc { min-height: 2.6em; max-width: 280px; font-size: 12px; line-height: 1.35; color: #cdb690; font-weight: 600; }
.dd-best { font-size: 13px; font-weight: 700; color: #ffe29a; min-height: 1.2em; }

.dd-btn {
  font-family: inherit; font-weight: 700; letter-spacing: .12em; font-size: 14px;
  min-width: 190px; padding: 12px 22px; border-radius: 14px;
  border: 1px solid #5a3f28; background: #2d1d12; color: #f4e7d3; cursor: pointer;
}
.dd-btn:active { transform: scale(.97); }
.dd-btn-main { background: linear-gradient(180deg, #fbbf24, #f59e0b); border-color: #f59e0b; color: #2a1604; box-shadow: 0 4px 0 #a86207, 0 8px 18px rgba(0,0,0,.4); }
.dd-btn-quiet { background: transparent; color: #cdb690; font-size: 12px; }

.dd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 4px; border-bottom: 1px solid #33231a; }
.dd-row-l { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: #d9c3a3; white-space: nowrap; }
.dd-pill {
  font-family: inherit; font-weight: 700; font-size: 11.5px; letter-spacing: .1em; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid #5a3f28; background: #2d1d12; color: #ffe29a; cursor: pointer;
}
.dd-pill.off { color: #8c7658; }
.dd-pill-lg { flex: 1 1 0; padding: 11px 14px; font-size: 12.5px; }
.dd-seg { display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.dd-seg button {
  font-family: inherit; font-weight: 700; font-size: 10.5px; letter-spacing: .06em; white-space: nowrap;
  padding: 7px 8px; border-radius: 10px; border: 1px solid #5a3f28; background: #2a1c11; color: #d9c3a3; cursor: pointer;
}
.dd-seg button[aria-pressed="true"] { background: var(--dd-acc); color: #2a1604; border-color: var(--dd-acc); }
.dd-skins { display: inline-flex; gap: 6px; }
.dd-skin {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #5a3f28; cursor: pointer; padding: 0; position: relative;
}
.dd-skin[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--dd-acc); }
.dd-skin.locked { filter: grayscale(1) brightness(.45); cursor: not-allowed; }
.dd-skin.locked::after { content: "\1F512"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; }

#trophy-list, #trophy-list * { text-align: left; }
#trophy-list { max-height: 46%; overflow-y: auto; -webkit-overflow-scrolling: touch; border: 1px solid #33231a; border-radius: 12px; padding: 6px; background: #150e09; flex: 0 0 auto; }

/* ---------- on-screen keys ---------- */
.dd-keys { display: none; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.dd-card.keys-on .dd-keys { display: grid; }
.dd-keys button {
  height: clamp(44px, 8vh, 58px); border-radius: 16px; font-size: 22px; color: #ffe29a;
  background: #2a1c11; border: 1px solid #5a3f28; font-family: inherit; cursor: pointer; touch-action: none;
}
.dd-keys button.down, .dd-keys button:active { background: #4a2f1a; transform: scale(.97); }

.dd-bar { display: flex; gap: 8px; }

.dd-toast {
  position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%);
  background: #2d1d12; color: #ffe29a; border: 1px solid #5a3f28; border-radius: 999px;
  padding: 8px 16px; font-size: 12.5px; font-weight: 700; white-space: nowrap; z-index: 5; pointer-events: none;
}

/* the floating bug pill is never shown on arcade games: REPORT lives in Options and Pause */
#beta-report-trigger { display: none !important; }

/* ---------- compact + landscape ---------- */
.dd-card.tight .dd-chip { padding: 3px 6px 4px; }
.dd-card.tight .dd-chip span { font-size: 8px; letter-spacing: .08em; }
.dd-card.tight .dd-chip b { font-size: 15px; }
.dd-card.tight .dd-title { font-size: 30px; }
.dd-card.tight .dd-btn { min-width: 150px; padding: 10px 16px; }

.dd-card.land {
  display: grid;
  grid-template-columns: var(--dd-w) 200px;
  grid-template-areas: "stage hud" "stage air" "stage keys" "stage bar" "stage .";
  grid-template-rows: auto auto auto auto 1fr;
  column-gap: 12px; row-gap: 8px;
  width: auto; max-width: none;
  justify-content: center;
}
.dd-card.land .dd-stage { grid-area: stage; width: var(--dd-w); aspect-ratio: auto; height: var(--dd-h); }
.dd-card.land .dd-hud { grid-area: hud; display: grid; grid-template-columns: 1fr 1fr; }
.dd-card.land .dd-ibtn { width: auto; min-height: 38px; }
.dd-card.land .dd-air { grid-area: air; }
.dd-card.land .dd-keys { grid-area: keys; }
.dd-card.land .dd-bar { grid-area: bar; flex-direction: column; }
.dd-card.land .dd-keys button { height: 48px; }

@media (prefers-reduced-motion: reduce) {
  .dd-hint, .dd-zone, .dd-air.low .dd-air-fill { animation: none; }
}