*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:root {
  --bg: #faf6f0;
  --surface: #fffdf9;
  --surface-hover: #fff8f3;
  --surface-active: #f5efe6;
  --border: #ded9d1;
  --border-light: #cfc6bc;
  --primary: #c9633f;
  --primary-hover: #b55636;
  --primary-light: #d68a6d;
  --primary-bg: rgba(201, 99, 63, 0.08);
  --text: #24211e;
  --text-secondary: #766f66;
  --text-muted: #aaa29a;
  --success: #4caf50;
  --danger: #e74c3c;
  --warning: #f0a040;
  --info: #5b8cce;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(52, 39, 26, 0.06);
  --shadow: 0 2px 8px rgba(52, 39, 26, 0.1);
  --shadow-lg: 0 4px 18px rgba(52, 39, 26, 0.12);
  --transition: 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

p { margin: 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo svg {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.credits { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 13px; padding: 6px 12px; background: #fffdfb; border-radius: var(--radius-sm); border: 1px solid var(--border);
}

.credits strong {
  color: var(--primary);
  font-weight: 600;
}

.credits svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary { background: var(--primary); color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--surface-hover);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-active);
  border-color: var(--border-light);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.hero {
  padding: 64px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, #f5efe4 100%);
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 16px;
  
  
}

.hero p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  padding-bottom: 0;
}

.tab-btn {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition);
  cursor: pointer;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--text);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

.feature-list {
  display: flex;
  flex-direction: column;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 0 0 45%;
  max-width: 45%;
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-image .icon { width: 64px; height: 64px; color: #b8a89a;
}

.feature-image .label { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 12px; color: #b8a89a; text-transform: uppercase; letter-spacing: 1px; font-weight: 500;
}

.feature-image.character { background: linear-gradient(135deg, #f5f0eb 0%, #ebe2d8 100%); }
.feature-image.scene { background: linear-gradient(135deg, #ebf5ef 0%, #d8ebe1 100%); }
.feature-image.animation { background: linear-gradient(135deg, #f5f3eb 0%, #ebe5d8 100%); }
.feature-image.audio { background: linear-gradient(135deg, #ebf0f5 0%, #d8e0eb 100%); }

.feature-content {
  flex: 1;
  min-width: 0;
}

.feature-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-bg);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.2;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-row.reverse .feature-content {
  text-align: left;
}

@media (max-width: 768px) {
  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 24px;
    padding: 32px 0;
  }

  .feature-image {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16/10;
  }

  .feature-title {
    font-size: 22px;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-item {
  flex: 1;
  min-width: 100px;
}

.radio-item input {
  display: none;
}

.radio-item label {
  display: block;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
  color: var(--text);
}

.radio-item label:hover {
  border-color: var(--border-light);
}

.radio-item input:checked + label {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}

.radio-item .radio-desc {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
}

.radio-item input:checked ~ .radio-desc {
  color: var(--primary);
}

.workspace {
  display: flex;
  height: calc(100vh - 60px);
}

.sidebar {
  width: 280px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sidebar-header svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
}

.sidebar-tab {
  flex: 1;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
}

.sidebar-tab:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.sidebar-tab.active {
  color: var(--primary);
}

.sidebar-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  position: relative;
}

.sidebar-panel {
  display: none;
  animation: fadeIn 0.2s ease;
}

.sidebar-panel.active {
  display: block;
}

.sidebar-resize-handle {
  position: absolute;
  top: 0;
  right: -3px;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  z-index: 10;
  transition: background var(--transition);
}

.sidebar-resize-handle:hover,
.sidebar-resize-handle.active {
  background: var(--primary);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.asset-thumb {
  aspect-ratio: 1;
  background: var(--surface-hover);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  padding: 4px;
  cursor: grab;
  transition: all var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.asset-thumb:hover { border-color: var(--primary); color: var(--primary-hover); transform: scale(1.02);
}

.asset-thumb::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.asset-thumb:hover::after {
  transform: scaleX(1);
}

.asset-thumb.asset-character { background: linear-gradient(135deg, #f5f0eb 0%, #ebe2d8 100%); }
.asset-thumb.asset-scene { background: linear-gradient(135deg, #ebf5ef 0%, #d8ebe1 100%); }
.asset-thumb.asset-animation { background: linear-gradient(135deg, #f5f3eb 0%, #ebe5d8 100%); }
.asset-thumb.asset-audio { background: linear-gradient(135deg, #ebf0f5 0%, #d8e0eb 100%); }

.workspace-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.workspace-project {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.workspace-project strong {
  color: var(--text);
}

.workspace-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-canvas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.canvas-placeholder {
  text-align: center;
  color: var(--text-secondary);
}

.canvas-placeholder .icon {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  margin: 0 auto 16px;
}

.canvas-placeholder h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.canvas-placeholder p {
  font-size: 14px;
  margin-bottom: 20px;
}

.floating-tip {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  animation: slideUp 0.3s ease;
}

.floating-tip svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.stepper {
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto 48px;
  position: relative;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.step.active .step-circle { background: var(--primary); border-color: var(--primary); color: #fff;
}

.step.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.step.completed .step-circle svg {
  width: 18px;
  height: 18px;
}

.step-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.step.completed .step-label {
  color: var(--success);
}

.generate-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.step-header {
  margin-bottom: 32px;
}

.step-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.step-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}

.step-actions .btn-group {
  display: flex;
  gap: 12px;
}

.progress-container {
  text-align: center;
  padding: 48px 0;
}

.progress-container .spinner { width: 48px; height: 48px; border: 3px solid #ebe6de; border-top-color: var(--primary); border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 1s linear infinite;
}

.progress-bar { width: 100%; height: 8px; background: #ebe6de; border-radius: 4px;
  overflow: hidden;
  margin: 32px 0 16px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

.progress-eta {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 14px;
}

.success-container {
  text-align: center;
  padding: 32px 0;
}

.success-check {
  width: 72px;
  height: 72px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: scaleIn 0.4s ease;
}

.success-check svg {
  width: 36px;
  height: 36px;
  color: #fff;
}

.success-container h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.preview-area {
  width: 100%;
  max-width: 480px;
  height: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.preview-area .preview-icon {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
}

.save-confirmation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 14px;
  margin-bottom: 24px;
}

.save-confirmation svg {
  width: 16px;
  height: 16px;
}

.footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track { background: #f0ede8;
}

::-webkit-scrollbar-thumb { background: #cfc6bc; border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover { background: #b8a89a;
}

::-webkit-input-placeholder {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 48px 0 32px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .workspace {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stepper {
    flex-wrap: wrap;
    gap: 12px;
  }

  .stepper::before {
    display: none;
  }

  .step {
    flex-direction: row;
    gap: 8px;
  }

  .tabs {
    overflow-x: auto;
    gap: 24px;
  }

  .generate-container {
    padding: 32px 16px;
  }

  .step-actions {
    flex-direction: column-reverse;
  }

  .step-actions .btn-group {
    width: 100%;
  }

  .step-actions .btn-group .btn {
    flex: 1;
  }
}

/* Asset sheet previews on the catalogue page */
.sprite-symbols { display: none; }
.feature-image.props { background: linear-gradient(145deg, #111827 0%, #1b2032 100%); }
.feature-image.props::before,
.feature-image.animation::before { content: ""; position: absolute; z-index: 0; inset: 0; opacity: .32; pointer-events: none; background-image: linear-gradient(45deg, rgba(255,255,255,.06) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,.06) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255,255,255,.06) 75%), linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.06) 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; }
.sheet-preview { width: 78%; max-width: 330px; padding: 25px 20px 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: #0c1120; box-shadow: 0 20px 28px rgba(14,16,27,.28); position: relative; z-index: 1; }
.sheet-label, .frame-tag { position: absolute; top: 11px; left: 0; padding: 5px 10px; background: #17191d; border-radius: 0 5px 5px 0; color: #f5ecd9; font-size: 8px; line-height: 1; font-weight: 800; letter-spacing: .8px; }
.icon-sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding-top: 9px; }
.icon-sheet-grid svg { width: 100%; aspect-ratio: 1; padding: 6px; border: 1px solid rgba(255,255,255,.11); background: #1c2335; image-rendering: pixelated; }
.weapon-sheet .icon-sheet-grid svg:nth-child(3n+1) { background: #292340; }
.weapon-sheet .icon-sheet-grid svg:nth-child(3n+2) { background: #25424a; }
.skill-sheet .icon-sheet-grid svg:nth-child(4n+1) { background: #3c1831; }
.skill-sheet .icon-sheet-grid svg:nth-child(4n+2) { background: #17385d; }
.skill-sheet .icon-sheet-grid svg:nth-child(4n+3) { background: #4d2819; }
.loot-sheet .icon-sheet-grid svg:nth-child(3n+1) { background: #3b212a; }
.loot-sheet .icon-sheet-grid svg:nth-child(3n+2) { background: #18384a; }
.loot-sheet .icon-sheet-grid svg:nth-child(3n) { background: #44331d; }

.feature-image.animation { background: linear-gradient(145deg, #101727 0%, #263144 100%); }
.action-preview, .campfire-preview { position: relative; z-index: 1; width: 78%; max-width: 340px; height: 68%; min-height: 190px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: #0c1120; box-shadow: 0 20px 28px rgba(14,16,27,.26); }
.action-preview { background: linear-gradient(180deg, #131d35 0%, #101729 68%, #272334 69%, #111421 100%); }
.action-frames { display: grid; grid-template-columns: repeat(4, 1fr); height: 100%; align-items: center; padding: 24px 15px 22px; }
.pixel-person { display: grid; place-items: center; width: 45px; height: 62px; margin: auto; border: 4px solid #312622; border-radius: 20px 20px 11px 11px; background: linear-gradient(90deg, #a66d49 0 33%, #d59a60 34% 66%, #784837 67%); color: #f4d06a; font-size: 25px; line-height: 1; text-shadow: 2px 2px #402825; image-rendering: pixelated; transform-origin: 50% 90%; }
.pose-one { transform: translateY(2px) rotate(-8deg); }.pose-two { transform: translateY(-4px) rotate(8deg); }.pose-three { transform: translateY(3px) rotate(-14deg); background: linear-gradient(90deg, #774d39 0 33%, #c47543 34% 66%, #3d2d2d 67%); }.pose-four { transform: translateY(-1px) rotate(11deg); }
.frame-dots { position: absolute; display: flex; gap: 6px; bottom: 10px; left: 50%; transform: translateX(-50%); }.frame-dots i { width: 5px; height: 5px; border-radius: 50%; background: #8b91a3; }.frame-dots i:nth-child(2) { background: #f4bc5b; }
.campfire-preview { background: radial-gradient(circle at 37% 62%, rgba(233,122,64,.28), transparent 31%), linear-gradient(180deg, #10192d, #111525 69%, #05080f 70%); }
.stars { position: absolute; top: 30px; right: 24px; color: #cfd9ee; font-size: 16px; letter-spacing: 4px; }.smoke { position: absolute; top: 38px; left: 33%; color: #ddd2c7; font-size: 44px; transform: rotate(-34deg); opacity: .85; animation: sceneSmoke 2.6s ease-in-out infinite; }
.campfire { position: absolute; z-index: 2; bottom: 38px; left: 30%; width: 70px; height: 76px; animation: sceneFire .9s ease-in-out infinite alternate; transform-origin: 50% 100%; }.campfire svg { width: 100%; height: 100%; filter: drop-shadow(0 0 15px rgba(255,116,49,.7)); }
.logs { position: absolute; z-index: 1; bottom: 33px; left: 24%; width: 120px; height: 22px; border-radius: 50%; background: repeating-linear-gradient(145deg, #4b3024 0 12px, #8d5134 13px 22px); transform: rotate(-6deg); }.campfire-ground { position: absolute; bottom: 22px; left: 10%; width: 70%; height: 22px; border-radius: 50%; background: rgba(247,126,67,.18); filter: blur(6px); }
@keyframes sceneFire { from { transform: scale(.92) rotate(-2deg); } to { transform: scale(1.06) rotate(2deg); } }
@keyframes sceneSmoke { from { transform: translateY(6px) rotate(-34deg); opacity: .56; } to { transform: translateY(-12px) translateX(8px) rotate(-22deg); opacity: .92; } }
@media (max-width: 768px) { .sheet-preview { width: 72%; } .action-preview, .campfire-preview { width: 72%; min-height: 160px; } .pixel-person { width: 34px; height: 49px; font-size: 19px; border-width: 3px; } }
