.block-drop-game {
  --bd-ink: #132033;
  --bd-muted: #61738d;
  --bd-line: rgba(94, 118, 143, 0.28);
  --bd-panel: rgba(255, 255, 255, 0.84);
  --bd-panel-strong: rgba(255, 255, 255, 0.95);
  --bd-accent: #43d8ff;
  --bd-gold: #ffd76a;
  --bd-danger: #ff5d76;
  color: var(--bd-ink);
  display: grid;
  gap: 18px;
  isolation: isolate;
  position: relative;
}

.dark .block-drop-game {
  --bd-ink: #edf8ff;
  --bd-muted: #a9bad0;
  --bd-line: rgba(170, 220, 242, 0.2);
  --bd-panel: rgba(9, 18, 34, 0.8);
  --bd-panel-strong: rgba(10, 21, 40, 0.95);
}

.block-drop-game .bd-hero,
.block-drop-game .bd-play-panel,
.block-drop-game .bd-side-panel,
.block-drop-game .bd-card,
.block-drop-game .bd-hud article,
.block-drop-game .bd-mode {
  backdrop-filter: blur(22px);
  background: var(--bd-panel);
  border: 1px solid var(--bd-line);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.15);
}

.block-drop-game .bd-hero {
  align-items: center;
  background:
    radial-gradient(circle at 84% 20%, rgba(67, 216, 255, 0.3), transparent 17rem),
    radial-gradient(circle at 10% 86%, rgba(255, 215, 106, 0.28), transparent 18rem),
    var(--bd-panel);
  border-radius: 30px;
  display: flex;
  justify-content: space-between;
  min-height: 176px;
  overflow: hidden;
  padding: 30px 34px;
  position: relative;
}

.block-drop-game .bd-hero::after {
  color: rgba(255, 255, 255, 0.55);
  content: "▣ ▤ ▥ ▧";
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0.28;
  pointer-events: none;
  position: absolute;
  right: 170px;
  top: 50%;
  transform: translateY(-50%) rotate(-7deg);
  white-space: nowrap;
  z-index: -1;
}

.block-drop-game h1,
.block-drop-game h2,
.block-drop-game p {
  margin-top: 0;
}

.block-drop-game .bd-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4.35rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 8px 0 12px;
}

.block-drop-game .bd-hero p {
  color: var(--bd-muted);
  font-size: 1.04rem;
  max-width: 680px;
}

.block-drop-game .bd-hero-controls,
.block-drop-game .bd-primary-controls,
.block-drop-game .bd-actions,
.block-drop-game .bd-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.block-drop-game .button,
.block-drop-game .button-soft,
.block-drop-game .bd-mode,
.block-drop-game .bd-touch-controls button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 16px;
}

.block-drop-game .bd-touch-controls button {
  min-height: 48px;
  touch-action: manipulation;
  user-select: none;
}

.block-drop-game .button {
  background: linear-gradient(135deg, #1fbff2, #7468ff);
  box-shadow: 0 14px 30px rgba(31, 191, 242, 0.25);
  color: white;
}

.block-drop-game .button-soft,
.block-drop-game .bd-touch-controls button {
  background: rgba(67, 216, 255, 0.12);
  color: var(--bd-ink);
}

.block-drop-game .button:disabled,
.block-drop-game .button-soft:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.block-drop-game .button:focus-visible,
.block-drop-game .button-soft:focus-visible,
.block-drop-game .bd-mode:focus-visible,
.block-drop-game .bd-touch-controls button:focus-visible,
.block-drop-game .bd-canvas:focus-visible,
.block-drop-game select:focus-visible,
.block-drop-game input:focus-visible {
  outline: 3px solid var(--bd-gold);
  outline-offset: 3px;
}

.block-drop-game .bd-touch-controls button:active {
  transform: translateY(1px);
}

.block-drop-game .bd-mode-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.block-drop-game .bd-mode {
  background:
    linear-gradient(140deg, rgba(67, 216, 255, 0.14), transparent),
    var(--bd-panel);
  border-radius: 22px;
  color: var(--bd-ink);
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
}

.block-drop-game .bd-mode.is-active {
  border-color: rgba(67, 216, 255, 0.78);
  box-shadow:
    0 0 0 3px rgba(67, 216, 255, 0.14),
    0 22px 70px rgba(15, 23, 42, 0.16);
}

.block-drop-game .bd-mode span {
  color: var(--bd-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.block-drop-game .bd-hud {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.block-drop-game .bd-hud article {
  border-radius: 18px;
  padding: 13px 14px;
}

.block-drop-game .bd-hud span,
.block-drop-game .eyebrow,
.block-drop-game .bd-card label,
.block-drop-game .bd-status p,
.block-drop-game .bd-panel-heading .badge {
  color: var(--bd-muted);
}

.block-drop-game .bd-hud strong {
  display: block;
  font-size: clamp(1rem, 2vw, 1.38rem);
  line-height: 1.1;
}

.block-drop-game .bd-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(180px, 0.75fr) minmax(300px, 1.25fr) minmax(170px, 0.75fr);
}

.block-drop-game .bd-play-panel,
.block-drop-game .bd-side-panel,
.block-drop-game .bd-card {
  border-radius: 26px;
  padding: 18px;
}

.block-drop-game .bd-panel-heading {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.block-drop-game .bd-panel-heading h2,
.block-drop-game .bd-card h2 {
  font-size: 1.08rem;
  margin: 0;
}

.block-drop-game .bd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.block-drop-game .badge {
  background: rgba(67, 216, 255, 0.12);
  border: 1px solid rgba(67, 216, 255, 0.26);
  border-radius: 999px;
  color: var(--bd-ink);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 9px;
}

.block-drop-game .bd-canvas-shell {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(6, 13, 28, 0.96), rgba(9, 18, 35, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(255, 255, 255, 0.045) 35px 36px),
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(255, 255, 255, 0.045) 35px 36px);
  border: 1px solid rgba(67, 216, 255, 0.25);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.block-drop-game .bd-canvas {
  aspect-ratio: 1 / 2;
  display: block;
  max-height: min(72vh, 720px);
  max-width: 100%;
  outline: none;
  touch-action: none;
}

.block-drop-game .bd-preview {
  background: rgba(5, 13, 27, 0.88);
  border: 1px solid rgba(67, 216, 255, 0.22);
  border-radius: 16px;
  display: block;
  max-width: 100%;
}

.block-drop-game .bd-next-stack {
  display: grid;
  gap: 9px;
  justify-items: center;
}

.block-drop-game .bd-status {
  align-items: center;
  background: rgba(67, 216, 255, 0.1);
  border: 1px solid rgba(67, 216, 255, 0.22);
  border-radius: 18px;
  display: flex;
  gap: 12px;
  margin: 12px 0;
  padding: 12px 14px;
}

.block-drop-game .bd-status-icon {
  align-items: center;
  background: linear-gradient(135deg, #43d8ff, #7468ff);
  border-radius: 14px;
  color: white;
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 1.4rem;
  height: 42px;
  justify-content: center;
}

.block-drop-game .bd-touch-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 12px;
}

.block-drop-game .bd-info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.block-drop-game .bd-card ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.block-drop-game .bd-card li + li {
  margin-top: 7px;
}

.block-drop-game .bd-card label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  margin-bottom: 12px;
}

.block-drop-game .bd-card select {
  background: var(--bd-panel-strong);
  border: 1px solid var(--bd-line);
  border-radius: 12px;
  color: var(--bd-ink);
  min-height: 40px;
  padding: 8px 10px;
}

.block-drop-game .bd-check {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.block-drop-game .bd-achievements {
  list-style: "★ ";
}

.block-drop-game .bd-reset-dialog {
  background: var(--bd-panel-strong);
  border: 1px solid var(--bd-line);
  border-radius: 22px;
  color: var(--bd-ink);
  max-width: 460px;
  padding: 24px;
}

.block-drop-game .bd-debug {
  background: #07101f;
  border: 1px solid rgba(67, 216, 255, 0.24);
  border-radius: 16px;
  color: #bdf6ff;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

@media (max-width: 1180px) {
  .block-drop-game .bd-layout,
  .block-drop-game .bd-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .block-drop-game .bd-play-panel {
    grid-column: 1 / -1;
    order: -1;
  }

  .block-drop-game .bd-hud,
  .block-drop-game .bd-mode-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .block-drop-game .bd-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .block-drop-game .bd-layout,
  .block-drop-game .bd-info-grid,
  .block-drop-game .bd-mode-row,
  .block-drop-game .bd-hud {
    grid-template-columns: 1fr;
  }

  .block-drop-game .bd-touch-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .block-drop-game *,
  .block-drop-game *::before,
  .block-drop-game *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
