:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --secondary: #0ea5e9;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  padding: 20px 12px;
}

.app-container {
  max-width: 860px;
  margin: 0 auto;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.title-group h1 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.title-group .subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.status-badge {
  font-size: 12px;
  background: #ecfdf5;
  color: #059669;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* Workflow steps */
.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 10px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: all 0.3s;
}

.step-item.active {
  opacity: 1;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.step-item.active .step-num {
  background: var(--primary);
}

.step-text {
  font-size: 13px;
  font-weight: 600;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 12px;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.badge {
  background: #ede9fe;
  color: var(--primary);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.card-header h2 {
  font-size: 17px;
  font-weight: 700;
}

.desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Template Grid */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.tpl-card {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fafafa;
}

.tpl-card:hover {
  border-color: #cbd5e1;
}

.tpl-card.selected {
  border-color: var(--primary);
  background: #f5f3ff;
}

.tpl-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1e1b4b;
}

.tpl-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Inputs */
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .input-row {
    grid-template-columns: 1fr;
  }
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.input-group input:focus {
  border-color: var(--primary);
}

/* Prompt Box */
.prompt-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
  background: #fff;
  resize: vertical;
  line-height: 1.5;
}

.tip {
  font-size: 12px;
  color: #8b5cf6;
  margin-top: 8px;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fdfdfd;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background: #f5f3ff;
}

.icon-upload {
  color: var(--primary);
  margin-bottom: 10px;
}

.drop-content p {
  font-size: 14px;
  color: #475569;
}

.file-name {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

.file-hidden {
  display: none;
}

.quick-test-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 14px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 13px;
}

.font-settings-panel {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-top: 18px;
}

.form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  outline: none;
  cursor: pointer;
  color: #1e293b;
  font-weight: 500;
}

.form-select:focus {
  border-color: var(--primary);
}

/* Params Panel */
.params-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 20px 0;
  padding: 14px;
  background: #f8fafc;
  border-radius: 10px;
}


.param-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.param-item input[type="range"] {
  cursor: pointer;
}

.toggle-item input {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background: #0284c7;
}

.btn-outline {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 16px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-block {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
}

/* Result Layout */
.result-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 680px) {
  .result-layout {
    grid-template-columns: 1fr;
  }
}

.checkerboard-bg {
  width: 256px;
  height: 256px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-image: linear-gradient(45deg, #eee 25%, transparent 25%), 
                    linear-gradient(-45deg, #eee 25%, transparent 25%), 
                    linear-gradient(45deg, transparent 75%, #eee 75%), 
                    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.checkerboard-bg img {
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
}

.gif-preview-box {
  text-align: center;
}

.gif-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.compliance-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}

.compliance-card h3 {
  font-size: 14px;
  margin-bottom: 8px;
}

.stats-list {
  list-style: none;
  font-size: 13px;
  color: #475569;
  line-height: 1.8;
}

.text-success {
  color: #059669;
  font-weight: 700;
}

.mobile-tip {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* 16 Frames Gallery */
.frames-breakdown h3 {
  font-size: 14px;
  margin-bottom: 12px;
}

.frames-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

@media (max-width: 500px) {
  .frames-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.frame-thumb {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  background: #fff;
  text-align: center;
}

.frame-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.frame-idx {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 40px;
}

/* ========================================================
   新增：双模式切换 Tabs
======================================================== */
.mode-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.mode-tab:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.mode-tab.active {
  border-color: #6366f1;
  background: #eef2ff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.tab-icon {
  font-size: 24px;
}

.tab-info {
  display: flex;
  flex-direction: column;
}

.tab-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.mode-tab.active .tab-title {
  color: #4338ca;
}

.tab-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* ========================================================
   设定 1：角色设定网格 (参考图 + 文本描述)
======================================================== */
.char-setup-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .char-setup-grid {
    grid-template-columns: 1fr;
  }
}

.input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.badge-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #fdf2f8;
  color: #db2777;
  font-weight: 500;
}

.badge-tag.tag-gray {
  background: #f1f5f9;
  color: #64748b;
}

.ref-drop-zone {
  position: relative;
  height: 140px;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}

.ref-drop-zone:hover {
  border-color: #818cf8;
  background: #f5f3ff;
}

.ref-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #64748b;
  padding: 10px;
}

.ref-placeholder p {
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  color: #475569;
}

.ref-placeholder .subtext {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

.ref-preview-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.ref-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-ref {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-remove-ref:hover {
  background: #ef4444;
}

.char-desc-box .form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.char-desc-box .form-textarea:focus {
  border-color: #6366f1;
}

.field-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
}

/* 动态字幕输入包装 */
.caption-input-box {
  margin-top: 14px;
}

.caption-input-wrap {
  display: flex;
  gap: 8px;
}

.caption-input-wrap .form-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.caption-input-wrap .form-input:focus {
  border-color: #6366f1;
}

/* 折叠面板 */
.card-header-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.card-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-arrow {
  font-size: 12px;
  color: #64748b;
  transition: transform 0.2s;
}

.toggle-arrow.open {
  transform: rotate(180deg);
}

.adv-content {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

/* 超大 Hero 按钮 */
.action-bar-hero {
  margin-top: 20px;
}

.btn-hero {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
  transition: all 0.25s ease;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -5px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-hero-icon {
  font-size: 24px;
}

.btn-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-hero-text strong {
  font-size: 17px;
  letter-spacing: 0.5px;
}

.btn-hero-text small {
  font-size: 11px;
  opacity: 0.9;
  margin-top: 2px;
}

/* ========================================================
   tqdm 风格全流程进度条
======================================================== */
.waiting-card {
  border: 2px solid #34d399;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.tqdm-container {
  background: #0f172a;
  border-radius: 10px;
  padding: 14px 16px;
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin-top: 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tqdm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
}

.tqdm-stage {
  color: #38bdf8;
  font-weight: 600;
}

.tqdm-percent {
  color: #4ade80;
  font-weight: bold;
}

.tqdm-bar-track {
  width: 100%;
  height: 12px;
  background: #1e293b;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.tqdm-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: 6px;
  transition: width 0.4s ease;
  position: relative;
}

.tqdm-bar-fill::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  animation: barShine 1.5s infinite;
}

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

.tqdm-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 8px;
}

.tqdm-tip {
  color: #fbbf24;
}

/* ========================================================
   贪吃蛇小游戏 (Retro Snake Game)
======================================================== */
.snake-game-container {
  margin-top: 20px;
  background: #1e293b;
  border-radius: 12px;
  padding: 16px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.snake-header {
  width: 100%;
  max-width: 320px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
}

.snake-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.snake-scores {
  color: #38bdf8;
  font-size: 12px;
  display: flex;
  gap: 10px;
}

.snake-scores strong {
  color: #4ade80;
}

.canvas-wrapper {
  position: relative;
  width: 320px;
  height: 220px;
  background: #090d16;
  border-radius: 8px;
  border: 2px solid #334155;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
  overflow: hidden;
}

#snakeCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.snake-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.snake-hint {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

/* 手机触屏虚拟十字方向键 */
.virtual-dpad {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  user-select: none;
  -webkit-user-select: none;
}

.dpad-middle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

.dpad-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #334155;
  color: #ffffff;
  border: 1px solid #475569;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.1s;
}

.dpad-btn:active {
  background: #6366f1;
  transform: scale(0.92);
}

.dpad-center {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 10px;
}


/* ========================================================
   新增：手绘草图 (SketchUP) 模式与分段控制
======================================================== */
.input-source-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.source-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.source-tab:hover {
  border-color: #94a3b8;
}

.source-tab.active {
  background: #eef2ff;
  border-color: #6366f1;
  color: #4338ca;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.12);
}

.source-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #fdf2f8;
  color: #ec4899;
}

.badge-tag-green {
  background: #ecfdf5;
  color: #059669;
}

/* 草图画板样式 */
.sketch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sketch-status {
  font-size: 11px;
  color: #059669;
}

.sketch-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 200px;
  margin: 0 auto;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  touch-action: none;
  overflow: hidden;
}

#sketchCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.sketch-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 320px;
  margin: 8px auto 0;
  gap: 6px;
}

.tool-group {
  display: flex;
  gap: 4px;
}

.tool-btn {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.tool-btn.active {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
}

.tool-btn-sm {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.15s;
}

.tool-btn-sm:hover {
  background: #f1f5f9;
}

.color-palette {
  display: flex;
  gap: 5px;
  align-items: center;
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s;
}

.color-dot:hover {
  transform: scale(1.2);
}

.color-dot.active {
  border-color: #6366f1;
  transform: scale(1.25);
  box-shadow: 0 0 4px rgba(99, 102, 241, 0.4);
}

/* ========================================================
   等待卡片：紧凑棋盘格 + 彩蛋式折叠游戏
======================================================== */
.waiting-preview-container {
  margin-top: 14px;
}

.waiting-checkerboard {
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  min-height: 140px;
}

.waiting-checkerboard:hover {
  border-color: #34d399;
}

.loading-state-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}

.loading-icon-anim {
  font-size: 32px;
  animation: pulseRotate 2s infinite ease-in-out;
}

@keyframes pulseRotate {
  0% { transform: scale(0.9) rotate(-10deg); }
  50% { transform: scale(1.15) rotate(10deg); }
  100% { transform: scale(0.9) rotate(-10deg); }
}

.loading-title {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.egg-hint-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #059669;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px dashed #34d399;
  margin-top: 4px;
  animation: bounceHint 2s infinite;
}

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

.btn-close-egg {
  background: transparent;
  border: 1px solid #475569;
  color: #94a3b8;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-close-egg:hover {
  color: #ffffff;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
}

