.ep-hero {
  margin-bottom: 0.7rem;
}

.dw-url-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.dw-url-bar .ep-btn--primary {
  background: #15803d;
  border-color: #166534;
}

.dw-url-input {
  flex: 1 1 240px;
  min-height: 42px;
  padding: 0.4rem 0.8rem;
  border: 2px solid rgba(44, 44, 44, 0.34);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.dw-url-input:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

.dw-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.dw-weapons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.38rem;
  margin-bottom: 0.4rem;
}

.dw-wbtn {
  min-height: 40px;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 2px solid rgba(44, 44, 44, 0.28);
  background: #fffcf6;
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
}

.dw-wbtn:hover, .dw-wbtn:focus-visible {
  border-color: var(--red);
}

.dw-wbtn.is-active {
  background: var(--red);
  border-color: #962d22;
  color: #ffffff;
}

.dw-weapon-note {
  font-size: 0.96rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.dw-stage-box {
  width: 100%;
  border: 2px solid rgba(44, 44, 44, 0.38);
  border-radius: 8px;
  overflow: hidden;
  background: #1e293b;
  margin-bottom: 0.65rem;
}

#dw-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 480;
  height: auto;
  touch-action: none;
  cursor: crosshair;
}

.dw-touch-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}

.dw-touch-group {
  display: flex;
  gap: 0.4rem;
}

.dw-tbtn {
  min-width: 54px;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 2px solid rgba(44, 44, 44, 0.32);
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.dw-tbtn--fire {
  background: var(--red);
  border-color: #962d22;
  color: #ffffff;
}

.dw-result {
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--green);
  background: rgba(39, 174, 96, 0.1);
  border-radius: 6px;
  margin-bottom: 0.7rem;
}

.dw-result-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dw-copy-msg {
  font-size: 0.94rem;
  font-weight: 700;
  color: #166534;
}

@media (max-width: 760px) {
  .dw-weapons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .dw-weapons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
