/* ── Playtest page styles ─────────────────────────────────── */
/* Theme-aware UI chrome; canvas/table always stays dark.       */
/* Variables come from tokens.css ([data-theme] on <html>).     */

/* ── Body ────────────────────────────────────────────────────── */

.playtest-body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  /* Share UI zoom with editor */
  zoom: var(--ui-zoom, 1);
  width: calc(100vw / var(--ui-zoom, 1));
  height: calc(100vh / var(--ui-zoom, 1));
}

/* ── Frosted glass overlay ──────────────────────────────────── */

.glass-overlay {
  background: var(--bg-hover-strong, rgba(28, 26, 22, 0.75));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--accent-glow, rgba(232, 145, 58, 0.12));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Canvas area always stays dark (game table feel) ──────── */
.playtest-canvas-wrapper,
#playtestCanvas {
  background: #1C1A16 !important;
  color: #E8E4DE !important;
}

/* ── Toolbar ─────────────────────────────────────────────────── */

.playtest-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  z-index: 100;
  flex-shrink: 0;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  padding: 2px;
}

/* ── Labeled toolbar groups ─────────────────────────────────── */

.toolbar-labeled-group {
  position: relative;
  padding-top: 12px;
}

.toolbar-labeled-group::before {
  content: attr(data-label);
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  pointer-events: none;
  white-space: nowrap;
}

/* Inner separator within a labeled group (lighter/thinner than toolbar-separator) */
.toolbar-separator-inner {
  width: 1px;
  height: 18px;
  background: var(--border);
  opacity: 0.5;
  flex-shrink: 0;
  margin: 0 2px;
}

.toolbar-separator {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.toolbar-spacer {
  flex: 1;
}

.toolbar-label {
  font-size: 13px;
  color: var(--text-muted);
  user-select: none;
  padding: 0 4px;
}

.toolbar-select {
  background: var(--bg-tertiary);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.toolbar-select:focus {
  border-color: var(--accent);
}

/* ── Toolbar dropdown ────────────────────────────────────────── */

.toolbar-dropdown-wrapper {
  position: relative;
}

.toolbar-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: var(--bg-elevated, rgba(28, 26, 22, 0.75));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  min-width: 140px;
  overflow: hidden;
}

.toolbar-dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.toolbar-dropdown-item:hover {
  background: var(--accent-hover);
  color: var(--accent);
}

/* ── Buttons (matching editor style) ─────────────────────────── */

.playtest-toolbar .btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.playtest-toolbar .btn svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.playtest-toolbar .btn:hover svg {
  opacity: 1;
}

.playtest-toolbar .btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.playtest-toolbar .btn:active {
  background: rgba(255, 255, 255, 0.10);
}

.playtest-toolbar .btn.active {
  color: var(--accent);
  background: rgba(232, 145, 58, 0.12);
}

.playtest-toolbar .btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.btn-sm {
  font-size: 12px;
  padding: 3px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.btn-sm:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Save indicator ─────────────────────────────────────────── */

.save-indicator {
  font-size: 11px;
  font-weight: 600;
  color: rgba(112, 173, 71, 0.8);
  padding: 0 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.save-indicator.visible {
  animation: saveFlash 1.8s ease forwards;
}

@keyframes saveFlash {
  0% { opacity: 0; }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

/* ── Main layout ─────────────────────────────────────────────── */

.playtest-layout {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

/* ── Side panel ──────────────────────────────────────────────── */

.playtest-side-panel {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 8px;
  background: var(--bg-secondary);
}

.panel-section {
  margin-bottom: 12px;
}

.panel-header {
  font-family: 'Nunito', sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  user-select: none;
}

/* ── Seat list ───────────────────────────────────────────────── */

.seat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.seat-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.seat-item.active {
  background: linear-gradient(135deg, rgba(232,145,58,0.12), rgba(232,145,58,0.04));
  border: 1px solid rgba(232,145,58,0.2);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
}

.seat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Inventory list ──────────────────────────────────────────── */

.inventory-item {
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.inventory-item.active {
  background: var(--accent-active);
  color: var(--accent);
}

.inventory-count-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(232, 145, 58, 0.15);
  padding: 1px 6px;
  border-radius: 100px;
  margin-left: 4px;
}

.inventory-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inventory-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-item:hover {
  background: var(--accent-hover);
  color: var(--accent);
}

.inventory-thumb {
  width: 32px;
  height: 40px;
  border-radius: 3px;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--bg-tertiary);
}

/* ── Deck card drawer ─────────────────────────────────────────── */

.deck-drawer {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.deck-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: -8px;
  background: var(--bg-secondary);
  z-index: 2;
  padding: 8px 0 4px;
  margin-bottom: 4px;
}

.deck-drawer-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.deck-drawer-count {
  font-size: 11px;
  color: var(--text-muted);
}

.deck-drawer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 28px;
  background: var(--bg-secondary);
  z-index: 2;
  padding: 4px 0 8px;
  margin-bottom: 8px;
}

.deck-drawer-flip {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  transition: all 0.15s;
}

.deck-drawer-flip:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.deck-drawer-flip.active {
  background: rgba(232, 145, 58, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}

.deck-drawer-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.deck-drawer-card {
  position: relative;
  cursor: pointer;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.15s;
}

.deck-drawer-card:hover {
  border-color: var(--accent);
}

.deck-drawer-thumb {
  display: block;
  border-radius: 2px;
  image-rendering: auto; /* browser's best quality downscale */
}

.deck-drawer-placeholder {
  width: 90px;
  height: 130px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  padding: 2px;
}

.deck-drawer-card-num {
  position: absolute;
  top: 2px;
  left: 2px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 9px;
  padding: 0 4px;
  border-radius: 2px;
  line-height: 1.4;
}

.deck-drawer-cards::-webkit-scrollbar {
  width: 4px;
}
.deck-drawer-cards::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ── Canvas area ─────────────────────────────────────────────── */

.playtest-canvas-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: grab;
  background: var(--bg-primary);
  display: flex; /* split pane layout */
}

.playtest-canvas-wrapper:active {
  cursor: grabbing;
}

/* ── Canvas vignette ─────────────────────────────────────────── */

.playtest-canvas-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 120px 40px rgba(0,0,0,0.3);
}

/* ── Split pane layout ──────────────────────────────────────── */

.split-pane {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0; /* prevent flex overflow */
}

.split-pane canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.split-pane-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 26, 22, 0.8);
  color: #A09890;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 12px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 5;
  display: none; /* only shown in split mode */
}

.split-divider {
  width: 6px;
  background: #4A4238;
  cursor: col-resize;
  flex-shrink: 0;
  display: none;
  transition: background 0.15s;
  z-index: 10;
}
.split-divider:hover, .split-divider.dragging {
  background: #E8913A;
}

/* Right pane hidden by default */
.split-pane-right {
  display: none;
}

/* When split view is active */
.playtest-canvas-wrapper.split-active .split-pane-right {
  display: block;
}

.playtest-canvas-wrapper.split-active .split-divider {
  display: block;
}

.playtest-canvas-wrapper.split-active .split-pane-label {
  display: block;
}

/* Boards pane hidden via toggle — overrides split-active display */
.playtest-canvas-wrapper.split-active.boards-hidden .split-pane-right {
  display: none;
}

.playtest-canvas-wrapper.split-active.boards-hidden .split-divider {
  display: none;
}

/* When boards are hidden, hide both pane labels (only one pane visible) */
.playtest-canvas-wrapper.split-active.boards-hidden .split-pane-label {
  display: none;
}

/* ── Right panel (tabbed: Log / Deck Contents) ──────────────── */

.playtest-right-panel {
  width: 320px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.right-panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.right-panel-tab {
  flex: 1;
  padding: 8px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.right-panel-tab:hover {
  color: var(--text);
}

.right-panel-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.right-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.right-panel-pane {
  display: none;
}

.right-panel-pane.active {
  display: block;
}

#logEntries {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.log-entry {
  padding: 6px 8px;
  border-radius: 4px;
  border-left: 2px solid transparent;
  color: var(--text-muted);
  line-height: 1.4;
  font-size: 12px;
  transition: background 0.15s, border-color 0.15s;
}

.log-entry:hover {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--accent);
}

/* ── Slay the Spire fanned hand ─────────────────────────────── */

.playtest-hand-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 280px;
  pointer-events: none;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

/* Warm ambient glow beneath the hand area */
.playtest-hand-overlay::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 100px;
  background: radial-gradient(ellipse, rgba(232,145,58,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hand-fan {
  position: relative;
  width: 800px;
  height: 260px;
  pointer-events: none;
}

.hand-fan-card {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform-origin: bottom center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease, bottom 0.2s ease, box-shadow 0.2s ease;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
}

.hand-fan-card:hover {
  transform: translateX(-50%) translateY(-80px) rotate(0deg) scale(1.15) !important;
  z-index: 100 !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 20px rgba(232,145,58,0.15);
}

.hand-fan-card canvas {
  display: block;
  border-radius: 6px;
}

.hand-empty-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  pointer-events: none;
  font-family: 'Nunito', sans-serif;
  padding: 12px 24px;
  border: 1px dashed rgba(232,145,58,0.2);
  border-radius: 12px;
  background: rgba(232,145,58,0.04);
  animation: handHintPulse 3s ease-in-out infinite;
}

.hand-empty-hint svg {
  animation: handHintBounce 2s ease-in-out infinite;
}

@keyframes handHintPulse {
  0%, 100% { border-color: rgba(232,145,58,0.15); }
  50% { border-color: rgba(232,145,58,0.35); }
}

@keyframes handHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ── Other seats' hand indicators ────────────────────────────── */

.hand-other-seats {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 4px 0 8px;
  pointer-events: none;
}

.hand-seat-pill {
  font-size: 11px;
  color: #A09890;
  background: rgba(28, 26, 22, 0.8);
  padding: 2px 10px;
  border-radius: 10px;
  border: 1px solid rgba(74, 66, 56, 0.5);
}

/* ── Deck hover action bar ───────────────────────────────────── */

.deck-hover-bar {
  position: absolute;
  display: flex;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 8px;
  z-index: 60;
  pointer-events: auto;
  transform: translateX(-50%);
  background: rgba(20, 18, 14, 0.92);
  border: 1px solid rgba(232, 145, 58, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.deck-hover-btn {
  padding: 5px 12px;
  background: rgba(232, 145, 58, 0.2);
  color: #E8E4DE;
  border: 1px solid rgba(232, 145, 58, 0.4);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.deck-hover-btn:hover {
  background: #E8913A;
  color: #fff;
  border-color: #E8913A;
}

/* ── Card zoom preview ───────────────────────────────────────── */

.card-preview {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 55;
  pointer-events: none;
  border-radius: 12px;
  padding: 10px;
  transition: opacity 0.2s ease;
  opacity: 0;
}
.card-preview:not(.hidden) {
  opacity: 1;
}
.card-preview canvas {
  display: block;
  border-radius: 6px;
}
.card-preview-name {
  text-align: center;
  color: #A09890;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 6px;
}

/* ── Context menu ────────────────────────────────────────────── */

.playtest-context-menu {
  position: fixed;
  border-radius: 10px;
  z-index: 500;
  min-width: 180px;
  padding: 6px;
  overflow: hidden;
  background: rgba(26, 24, 20, 0.95);
  border: 1px solid rgba(232, 145, 58, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.context-menu-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 7px 12px;
  background: none;
  border: none;
  color: #e8e4de;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}

.context-menu-btn:hover {
  background: rgba(232, 145, 58, 0.15);
  color: #E8913A;
}

.context-menu-shortcut {
  font-size: 11px;
  color: rgba(232, 145, 58, 0.4);
  font-weight: 600;
  margin-left: 16px;
  flex-shrink: 0;
}

.context-menu-separator {
  height: 1px;
  margin: 4px 8px;
  background: var(--border);
}

.context-menu-header {
  padding: 6px 12px 2px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(232, 145, 58, 0.5);
  pointer-events: none;
  user-select: none;
}

/* ── Turn tracker ────────────────────────────────────────────── */

.turn-tracker {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 12px;
}

.turn-tracker-label {
  color: #E8E4DE;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.turn-tracker-btn {
  background: rgba(232, 145, 58, 0.15);
  border: 1px solid rgba(232, 145, 58, 0.3);
  color: #E8E4DE;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.turn-tracker-btn:hover {
  background: #E8913A;
  color: #fff;
}

/* Toolbar-inline turn tracker */
.toolbar-turn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-turn-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #E8E4DE);
  white-space: nowrap;
}

/* ── Onboarding tooltips ─────────────────────────────────────── */

.playtest-onboarding-tip {
  position: fixed;
  z-index: 600;
  background: rgba(30, 27, 22, 0.95);
  border: 1px solid var(--accent, #E8913A);
  border-radius: 10px;
  padding: 14px 18px;
  max-width: 380px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 20px rgba(232,145,58,0.15);
  font-family: 'Nunito', sans-serif;
  animation: onboardingFadeIn 0.3s ease;
}

@keyframes onboardingFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.onboarding-tip-text {
  font-size: 14px;
  font-weight: 600;
  color: #E8E4DE;
  line-height: 1.5;
  margin-bottom: 10px;
}

.onboarding-tip-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.onboarding-tip-step {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

.onboarding-tip-dismiss {
  background: var(--accent, #E8913A);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}

.onboarding-tip-dismiss:hover {
  background: var(--accent-hover, #EDA355);
}

/* ── Seat counters ──────────────────────────────────────────── */

.seat-counters {
  margin-top: 6px;
  padding-left: 14px;
}

.seat-counter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #A09890;
  padding: 2px 0;
}

.seat-counter-row button {
  background: none;
  border: none;
  color: #E8913A;
  cursor: pointer;
  font-size: 12px;
  padding: 0 2px;
  font-family: inherit;
}

.seat-counter-value {
  font-weight: 600;
  color: #E8E4DE;
  min-width: 20px;
  text-align: center;
}

.add-counter-btn {
  font-size: 11px;
  color: #A09890;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  font-family: inherit;
  transition: color 0.15s;
}

.add-counter-btn:hover {
  color: #E8913A;
}

/* ── Settings slide-out panel ──────────────────────────────── */

.settings-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  z-index: 400;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  transform: translateX(0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-panel.hidden {
  display: flex !important;       /* override global .hidden so the slide animation works */
  transform: translateX(100%);
  pointer-events: none;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.settings-title {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.settings-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.settings-close-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.settings-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  flex: 1;
}

.settings-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-row-toggle {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.settings-label {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.settings-select {
  width: 100%;
}

/* ── Settings swatch picker ────────────────────────────────── */

.settings-swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.settings-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
  outline: none;
  padding: 0;
}

.settings-swatch:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.settings-swatch.active {
  border-color: var(--accent, #E8913A);
  box-shadow: 0 0 0 2px rgba(232, 145, 58, 0.3);
}

.settings-swatch-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary) !important;
  color: var(--text-muted);
  border: 2px dashed var(--border);
}

.settings-swatch-custom:hover {
  color: var(--accent);
  border-color: var(--accent);
  border-style: dashed;
}

.settings-swatch-custom.active {
  border-style: solid;
  color: var(--accent);
}

/* ── Milestone celebrations ─────────────────────────────────── */

.playtest-celebrate {
  animation: celebrateGlow 1.5s ease forwards;
}

@keyframes celebrateGlow {
  0% { box-shadow: inset 0 0 120px 40px rgba(0,0,0,0.3); }
  30% { box-shadow: inset 0 0 80px 20px rgba(232,145,58,0.15), 0 0 30px rgba(232,145,58,0.1); }
  100% { box-shadow: inset 0 0 120px 40px rgba(0,0,0,0.3); }
}

.playtest-round-toast {
  position: fixed;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 24, 20, 0.95);
  color: #E8913A;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 8px;
  border: 1px solid rgba(232, 145, 58, 0.4);
  z-index: 600;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 20px rgba(232,145,58,0.1);
  animation: roundToastIn 0.3s ease, roundToastShimmer 1.5s 0.3s ease, roundToastOut 0.4s 2.6s ease forwards;
}

@keyframes roundToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes roundToastShimmer {
  0% { border-color: rgba(232,145,58,0.4); }
  50% { border-color: rgba(232,185,100,0.6); box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 24px rgba(232,185,100,0.15); }
  100% { border-color: rgba(232,145,58,0.4); }
}

@keyframes roundToastOut {
  to { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}

/* ── Loading progress bar ──────────────────────────────────── */

.playtest-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 80;
  background: rgba(20,18,14,0.9);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  transition: opacity 0.3s;
}

.playtest-progress-fill {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.playtest-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background: var(--accent);
  border-radius: 2px;
  animation: progressSweep 1.5s ease-in-out infinite;
}

@keyframes progressSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(433%); }
}

.playtest-progress-text {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
  white-space: nowrap;
}

/* ── Utility ─────────────────────────────────────────────────── */

.hidden {
  display: none !important;
}

/* ── Scrollbar styling (match editor) ────────────────────────── */

.playtest-side-panel::-webkit-scrollbar,
.playtest-right-panel .right-panel-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.playtest-side-panel::-webkit-scrollbar-track,
.playtest-right-panel .right-panel-body::-webkit-scrollbar-track {
  background: transparent;
}

.playtest-side-panel::-webkit-scrollbar-thumb,
.playtest-right-panel .right-panel-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ── Coin flip animation ────────────────────────────────────── */

@keyframes coinFlip {
  0% { transform: translate(-50%, -50%) rotateY(0deg) scale(0.5); opacity: 0; }
  50% { transform: translate(-50%, -50%) rotateY(180deg) scale(1.2); }
  100% { transform: translate(-50%, -50%) rotateY(360deg) scale(1); opacity: 1; }
}

/* ── Timer display ──────────────────────────────────────────── */

.timer-display {
  color: #A09890;
  font-size: 12px;
  font-family: 'Nunito', monospace;
  padding: 0 8px;
  white-space: nowrap;
}

/* ── Keyboard shortcut cheat sheet ──────────────────────────── */

.playtest-body kbd {
  background: rgba(232, 145, 58, 0.15);
  border: 1px solid rgba(232, 145, 58, 0.3);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 12px;
  font-family: monospace;
  color: #E8913A;
}

/* ── Feedback panel ──────────────────────────────────────────── */

.feedback-panel {
  position: fixed;
  right: 16px;
  top: 54px;
  width: 320px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  background: var(--bg-elevated, rgba(28, 26, 22, 0.92));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.feedback-panel.hidden {
  display: none;
}

.feedback-panel.minimized .feedback-body {
  display: none;
}

.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.feedback-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.feedback-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}

.feedback-toggle:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.feedback-body {
  padding: 12px 14px;
}

.feedback-session {
  margin-bottom: 12px;
}

.feedback-session label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feedback-session input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
}

.feedback-session input:focus {
  border-color: var(--accent);
}

.feedback-form h4 {
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Star rating */
.feedback-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.feedback-stars button {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--border);
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.12s, transform 0.12s;
  line-height: 1;
}

.feedback-stars button:hover {
  transform: scale(1.2);
}

.feedback-stars button.active {
  color: #E8913A;
}

/* Linked card display */
.feedback-linked-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  min-height: 48px;
  transition: border-color 0.2s;
}

.feedback-linked-card:has(.feedback-linked-name) {
  border-color: rgba(232,145,58,0.3);
}

.feedback-linked-none {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}

.feedback-linked-thumb {
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--bg-primary);
}

.feedback-linked-placeholder {
  width: 32px;
  height: 40px;
  border-radius: 4px;
  background: rgba(232,145,58,0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.feedback-linked-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.feedback-linked-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-linked-type {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tag groups */
.feedback-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-bottom: 6px;
}

.feedback-tag-group-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-right: 4px;
  width: 100%;
  margin-bottom: 2px;
}

.feedback-add-tag-btn {
  background: none;
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-family: 'Nunito', sans-serif;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.12s;
  margin-top: 4px;
}

.feedback-add-tag-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Tags */
.feedback-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.feedback-tag {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-family: 'Nunito', sans-serif;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.12s;
  user-select: none;
}

.feedback-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.feedback-tag.active {
  background: rgba(232, 145, 58, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* Note textarea */
.feedback-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  resize: vertical;
  outline: none;
  margin-bottom: 10px;
}

.feedback-form textarea:focus {
  border-color: var(--accent);
}

.feedback-form .btn-primary {
  width: 100%;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
}

/* History */
.feedback-history {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.feedback-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.feedback-history-header h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feedback-session-filter {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  cursor: pointer;
  outline: none;
}

.feedback-session-filter:focus {
  border-color: var(--accent);
}

/* Session grouping */
.feedback-session-group {
  margin-bottom: 12px;
}

.feedback-session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.feedback-session-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.feedback-session-meta {
  font-size: 10px;
  color: var(--text-dim);
}

.feedback-session-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.feedback-session-tags .tag {
  background: rgba(232, 145, 58, 0.08);
  color: var(--accent);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.feedback-history h4 {
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feedback-entry {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
}

.feedback-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.feedback-entry-header strong {
  font-size: 12px;
  color: var(--text);
}

.feedback-rating {
  font-size: 12px;
  color: #E8913A;
  letter-spacing: 1px;
}

.feedback-entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.feedback-entry-tags .tag {
  background: rgba(232, 145, 58, 0.1);
  color: var(--accent);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
}

.feedback-entry-note {
  margin: 4px 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.feedback-entry small {
  font-size: 10px;
  color: var(--text-dim);
}

/* ── Setup Wizard ──────────────────────────────────────────── */

.setup-wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.setup-wizard {
  background: #2a2620;
  border: 1px solid var(--border, #3A3428);
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  color: var(--text, #E8E4DE);
  font-family: 'Nunito', sans-serif;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
}

.setup-step {
  padding: 28px 32px 32px;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(60px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow-y: auto;
}

.setup-step.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.setup-step.exit-left {
  position: absolute;
  opacity: 0;
  transform: translateX(-60px);
  pointer-events: none;
}

/* ── Hero / Table Preview ── */

.setup-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.setup-table-preview {
  width: 280px;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(42, 74, 42, 0.15) 0%, transparent 70%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.setup-table-svg {
  width: 100%;
  height: 100%;
}

/* ── Headings ── */

.setup-heading {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text, #E8E4DE);
  line-height: 1.3;
}

.setup-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-muted, #A09890);
  line-height: 1.4;
}

/* ── Labels ── */

.setup-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #A09890);
  margin-bottom: 6px;
}

.setup-label-hint {
  font-weight: 400;
  text-transform: none;
}

/* ── Slider section ── */

.setup-slider-section {
  margin-bottom: 24px;
}

.setup-slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.setup-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border, #3A3428);
  outline: none;
  cursor: pointer;
}

.setup-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E8913A;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.setup-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.setup-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E8913A;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.setup-player-num {
  font-size: 36px;
  font-weight: 800;
  color: #E8913A;
  min-width: 44px;
  text-align: center;
  line-height: 1;
}

/* ── Seat dots ── */

.setup-seat-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.setup-seat-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  animation: seatDotPop 0.25s ease both;
}

@keyframes seatDotPop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Step footer ── */

.setup-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.setup-skip-link {
  background: none;
  border: none;
  color: var(--text-muted, #A09890);
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  padding: 6px 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.setup-skip-link:hover {
  color: var(--text, #E8E4DE);
}

.setup-btn-primary {
  padding: 10px 32px;
  border: none;
  border-radius: 8px;
  background: #E8913A;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}

.setup-btn-primary:hover {
  background: var(--accent-hover, #EDA355);
}

/* ── Back link ── */

.setup-back-link {
  background: none;
  border: none;
  color: var(--text-muted, #A09890);
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
}

.setup-back-link:hover {
  color: #E8913A;
}

/* ── Step 2 form fields ── */

.setup-field {
  margin-bottom: 16px;
}

.setup-input {
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--border, #3A3428);
  background: var(--bg-input, #0D0C0A);
  color: var(--text, #E8E4DE);
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.setup-input:focus {
  border-color: #E8913A;
}

.setup-input-sm {
  width: 70px;
  flex-shrink: 0;
}

.setup-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.setup-deal-options {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding-left: 26px;
}

.setup-deal-label {
  font-size: 12px;
  color: var(--text-secondary, #B8B2A8);
  white-space: nowrap;
}

/* ── Counters ── */

.setup-counter-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
}

.setup-counter-row input {
  flex: 1;
}

.setup-counter-remove {
  background: none;
  border: none;
  color: var(--text-muted, #A09890);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  transition: color 0.15s;
}

.setup-counter-remove:hover {
  color: #f0465a;
}

.setup-add-counter {
  font-size: 12px;
  background: none;
  border: 1px dashed var(--border, #3A3428);
  color: var(--text-secondary, #B8B2A8);
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: color 0.15s, border-color 0.15s;
  margin-top: 4px;
}

.setup-add-counter:hover {
  color: #E8913A;
  border-color: #E8913A;
}

/* ── Start button ── */

.setup-btn-start {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 10px;
  background: #E8913A;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s, transform 0.1s;
}

.setup-btn-start:hover {
  background: var(--accent-hover, #EDA355);
}

.setup-btn-start:active {
  transform: scale(0.98);
}

/* Export / clear buttons */
.feedback-export {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.feedback-export .btn {
  flex: 1;
  font-size: 11px;
  padding: 6px 0;
  text-align: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: color 0.12s, border-color 0.12s;
}

.feedback-export .btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Contextual micro-hints ────────────────────────────────── */

.playtest-micro-hint {
  position: fixed;
  z-index: 610;
  background: rgba(30, 27, 22, 0.92);
  border: 1px solid rgba(232, 145, 58, 0.4);
  border-radius: 8px;
  padding: 8px 14px;
  max-width: 280px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #E8E4DE;
  line-height: 1.4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease;
  animation: microHintFadeIn 0.25s ease;
}

@keyframes microHintFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Playtest toast notifications ──────────────────────────── */

.playtest-toast {
  position: fixed;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 620;
  background: rgba(30, 27, 22, 0.95);
  border: 1px solid rgba(232, 145, 58, 0.3);
  border-radius: 10px;
  padding: 10px 20px;
  max-width: 480px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #E8E4DE;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(232, 145, 58, 0.1);
  opacity: 1;
  transition: opacity 0.3s ease;
  animation: toastSlideIn 0.3s ease;
  pointer-events: none;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
