/* <!-- © Hidden Invetigations - Sakibul Ali Khan --> */

:root {
  --bg: #0f0c07;
  --panel: #1a140d;
  --text: #f8f0dc;
  --muted: #cebfa0;
  --accent: #d4af37; 
  --accent-2: #88b4ff;
  --border: #3a2b1a;

  --radius: 14px;
  --gap: 16px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  line-height: 1.6;
}

body {
  background: #0f0c07;
  font-size: clamp(15px, 1.2vw, 18px);
}

a {
  color: var(--accent-2);
}

.site-header,
.site-footer {
  text-align: center;
  padding: 20px 14px;
}

.brand {
  margin: 0;
  font-family: "Pirata One", serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: 0.5px;
  color: var(--accent);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.site-header .sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
}

.container {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px;
}

@media (min-width: 960px) {
  .container {
    grid-template-columns: minmax(280px, 460px) 1fr;
    align-items: start;
  }
}

.panel {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      rgba(0, 0, 0, 0.1)
    ),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(14px, 2vw, 20px);
  box-shadow: var(--shadow);
}

.deck-title {
  font-family: "UnifrakturMaguntia", serif;
  margin-top: 0;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--accent);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
label {
  font-weight: 600;
}

input[type="text"],
input[type="email"],
select {
  background: #140f0a;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.help,
.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) {
  .grid2 {
    grid-template-columns: 1fr 1fr;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

button {
  appearance: none;
  border: 1px solid var(--border);
  background: #140f0a;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.03s ease, border-color 0.15s ease,
    background 0.15s ease;
  min-width: 180px;
  flex: 1 1 220px;
}
button:hover {
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.primary {
  background: linear-gradient(180deg, #d4af37, #b38d22);
  border-color: #9c7a1c;
  color: #1a1208;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.ghost {
  background: transparent;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#status {
  color: var(--accent-2);
  font-size: 0.95rem;
}

.canvas-wrap {
  margin-top: 10px;
  background: repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 3px,
      transparent 6px
    ),
    #140f0a;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: clamp(6px, 1.5vw, 10px);
  overflow: auto;
}

canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
