:root {
  --bg: #09090b;
  --surface: #111114;
  --border: #27272a;
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --accent: #f48fb1;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

.stage {
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.75rem 1.1rem;
  gap: 0.4rem;
}

.top-bar {
  text-align: center;
  flex-shrink: 0;
}

.subtitle {
  font-size: clamp(0.88rem, 2.8vw, 1.05rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.accent {
  color: var(--accent);
}

.canvas-wrap {
  flex: 1 1 auto;
  width: 100%;
  max-width: 880px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#bouquet-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

#bouquet-canvas:active {
  cursor: grabbing;
}

.controls {
  flex-shrink: 0;
}

.btn-note {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.btn-note:hover {
  border-color: var(--accent);
  background: #18181b;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.95rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.modal-close {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 1.25rem 1.35rem 1.45rem;
}

.modal-body h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.modal-body p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.signoff {
  margin-top: 1rem;
  color: var(--muted) !important;
}
