.topbar {
  min-height: 360px;
}

.topbar .logo {
  width: 248px;
  top: 200px;
}

h1 {
  background: linear-gradient(135deg, #ef3000 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  margin: 8px 0 0;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;
  color: var(--text-soft);
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.deck-list-container {
  width: min(82vw, 560px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: calc(20px + 0.5cm);
}

.deck-item {
  border-radius: 15px;
  border: 3px solid var(--border-glow);
  background: var(--card-bg);
  backdrop-filter: blur(1px);
  box-shadow:
    0 0 28px rgba(255, 130, 15, 0.24),
    inset 0 0 24px rgba(255, 123, 0, 0.22);
  overflow: hidden;
}

.deck-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(10px, 2.5vw, 22px);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold);
  font-family: inherit;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 800;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  text-align: left;
  gap: 12px;
}

.deck-toggle:hover {
  opacity: 0.86;
}

.deck-plus {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.deck-item.open .deck-plus {
  transform: rotate(45deg);
}

.deck-body {
  display: none;
  padding: 0 clamp(10px, 2.5vw, 22px) 16px;
}

.deck-item.open .deck-body {
  display: block;
}

.deck-list-wrap {
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 147, 38, 0.4) transparent;
}

.deck-list-wrap::-webkit-scrollbar {
  width: 4px;
}

.deck-list-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 147, 38, 0.4);
  border-radius: 2px;
}

.deck-list {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(11px, 1.05vw, 14px);
  line-height: 1.75;
  color: rgba(255, 235, 200, 0.88);
  white-space: pre;
}

.export-btn {
  display: inline-block;
  width: 100%;
  padding: 9px 15px 11px;
  border-radius: 10px;
  border: 2px solid rgba(255, 147, 38, 0.52);
  background: rgba(35, 10, 7, 0.58);
  color: rgba(255, 244, 226, 0.95);
  font-family: inherit;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: opacity 0.2s, transform 0.15s;
}

.export-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.export-btn.copied {
  border-color: rgba(60, 200, 100, 0.7);
  color: #aaeecc;
}

@media (max-width: 980px) {
  .topbar {
    min-height: 210px;
  }

  .topbar .logo {
    width: 116px;
    top: 116px;
  }
}
