/**
 * 6Q嘉年华 · 视觉令牌
 */
:root {
  --q-primary: #1890ff;
  --q-success: #52c41a;
  --mp-green-1: #8fd4a0;
  --mp-green-2: #6bc47e;
  --mp-green-3: #5cb86e;
  --mp-green-4: #4aa85c;
  --q-warm: #f5a623;
  --q-warm-light: #fff7e6;
  --q-text: rgba(0, 0, 0, 0.85);
  --q-text-secondary: rgba(0, 0, 0, 0.65);
  --q-text-muted: rgba(0, 0, 0, 0.45);
  --q-bg: #f0f7f2;
  --q-surface: #fff;
  --q-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --q-radius: 16px;
  --q-radius-sm: 12px;
  --q-shadow: 0 4px 20px rgba(92, 184, 110, 0.15);
  --q-max-width: 430px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--q-font);
  color: var(--q-text);
  background: var(--q-bg);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

.q-app {
  max-width: var(--q-max-width);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--q-bg);
  position: relative;
  overflow-x: hidden;
}

body.ios-preview .q-app {
  max-width: none;
  min-height: 0;
}

.q-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.q-btn:active { transform: scale(0.96); }

.q-btn--primary {
  background: linear-gradient(135deg, var(--mp-green-2), var(--mp-green-3));
  color: #fff;
  box-shadow: 0 4px 12px rgba(92, 184, 110, 0.35);
}

.q-btn--secondary {
  background: var(--q-surface);
  color: var(--mp-green-3);
  border: 2px solid var(--mp-green-2);
}

.q-btn--warm {
  background: linear-gradient(135deg, #ffc53d, var(--q-warm));
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
}

.q-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.q-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.q-modal {
  background: var(--q-surface);
  border-radius: 24px;
  padding: 28px 24px 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  transform: scale(0.9) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.q-modal-overlay.is-open .q-modal {
  transform: scale(1) translateY(0);
}

.q-modal h2 {
  margin: 12px 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.q-modal p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--q-text-secondary);
  line-height: 1.5;
}

.q-modal-scores {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.q-modal-score-box {
  flex: 1;
  background: #f6faf7;
  border-radius: var(--q-radius-sm);
  padding: 10px;
}

.q-modal-score-box span {
  display: block;
  font-size: 11px;
  color: var(--q-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.q-modal-score-box strong {
  display: block;
  font-size: 24px;
  color: var(--mp-green-3);
  margin-top: 4px;
}

.q-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.q-modal-actions .q-btn { width: 100%; }
