
.sq-app { position: relative; z-index: 1; --sq-glow: rgba(212, 106, 90, 0.16); }
.sq-stage { position: relative; }
.sq-stage::before {
  content: ""; position: absolute; inset: -16px; border-radius: 18px;
  background: radial-gradient(circle at 50% 0%, var(--sq-glow), transparent 68%);
  pointer-events: none; transition: background 0.35s ease; z-index: -1;
}
.sq-saved-bar {
  display: none; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px; padding: 10px 14px; border-radius: 12px;
  background: rgba(212, 106, 90, 0.12); border: 1px solid rgba(212, 106, 90, 0.38);
  font-size: 13px; color: var(--text);
}
.sq-saved-bar.is-visible { display: flex; }
.sq-saved-actions { display: flex; align-items: center; gap: 8px; }
.sq-saved-btn {
  padding: 6px 12px; border-radius: 999px; border: none; background: var(--gold);
  color: #0c0e14; font-size: 12px; font-weight: 700; cursor: pointer;
}
.sq-saved-close {
  background: transparent; border: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 6px;
}
.sq-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 16px;
}
.sq-mode-group {
  display: inline-flex; background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px; gap: 4px;
}
.sq-mode-btn {
  padding: 7px 14px; border-radius: 999px; border: none; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.sq-mode-btn.is-active { background: var(--gold); color: #0c0e14; }
.sq-progress-cluster { display: flex; align-items: center; gap: 10px; }
.sq-rose-mini { width: 34px; height: 34px; display: block; }
.sq-counter { font-size: 14px; font-weight: 700; color: #e4a79d; font-variant-numeric: tabular-nums; }
.sq-progress-track {
  height: 4px; background: rgba(244, 237, 225, 0.08); border-radius: 99px; overflow: hidden; margin-bottom: 22px;
}
.sq-progress-fill {
  height: 100%; width: 4%; background: linear-gradient(90deg, #d46a5a, #d8b268); transition: width 0.25s ease;
}
.sq-insight-toast {
  display: none; margin: 0 auto 14px; max-width: 560px; text-align: center;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #f3c1b8;
  background: rgba(212, 106, 90, 0.14); border: 1px solid rgba(212, 106, 90, 0.4);
}
.sq-insight-toast.is-visible { display: block; }
.sq-step-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); text-align: center; margin-bottom: 12px;
}
.sq-statement {
  font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.24;
  color: var(--text); text-align: center; min-height: 92px; max-width: 680px;
  margin: 0 auto 24px; transition: opacity 0.14s ease;
}
.sq-statement.is-fading { opacity: 0.25; }
.sq-ring-wrap { max-width: 620px; margin: 0 auto 24px; }
.sq-rings-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: start; }
.sq-choice-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sq-ring {
  border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: var(--text); background: var(--bg);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.sq-ring[data-sq-val="1"] { width: 58px; height: 58px; border: 2px solid rgba(100, 184, 136, 0.65); }
.sq-ring[data-sq-val="2"] { width: 50px; height: 50px; border: 2px solid rgba(100, 184, 136, 0.42); margin-top: 4px; }
.sq-ring[data-sq-val="3"] { width: 44px; height: 44px; border: 2px solid rgba(244, 237, 225, 0.26); margin-top: 7px; color: var(--muted); }
.sq-ring[data-sq-val="4"] { width: 50px; height: 50px; border: 2px solid rgba(212, 106, 90, 0.62); margin-top: 4px; }
.sq-ring[data-sq-val="5"] { width: 58px; height: 58px; border: 2px solid rgba(212, 106, 90, 0.9); }
.sq-ring:hover { transform: scale(1.09); box-shadow: 0 0 18px rgba(212, 106, 90, 0.28); }
.sq-ring.is-picked {
  background: var(--gold); border-color: var(--gold); color: #0c0e14;
  transform: scale(1.12); box-shadow: 0 0 0 4px rgba(216, 178, 104, 0.28);
}
.sq-choice-txt { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.25; }
.sq-controls {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.sq-hint { font-size: 13px; color: var(--muted); }
.sq-hint-mob { display: none; }

.sq-result { display: none; scroll-margin-top: 86px; }
.sq-result.is-visible { display: block; }
.sq-codex-top {
  display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; margin-bottom: 24px;
}
.sq-tarot-frame {
  border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(212, 106, 90, 0.72);
  background: #0c0e14; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 32px rgba(212, 106, 90, 0.16);
}
.sq-tarot-frame img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; display: block; }
.sq-tarot-cap {
  padding: 10px 12px; display: flex; justify-content: space-between; align-items: center;
  background: #0c0e14; border-top: 1px solid rgba(212, 106, 90, 0.32);
  font-family: var(--font-display); font-size: 17px; color: var(--gold);
}
.sq-arch-kicker {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: rgba(212, 106, 90, 0.16); border: 1px solid rgba(212, 106, 90, 0.45);
  color: #f3c1b8; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px;
}
.sq-arch-title {
  font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1.08;
  color: var(--text); margin: 0 0 6px;
}
.sq-arch-sub { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--gold); margin-bottom: 12px; }
.sq-res-desc { font-size: 15px; color: var(--text); margin: 0 0 14px; }
.sq-trigger-panel {
  background: rgba(212, 106, 90, 0.09); border-left: 3px solid #d46a5a;
  border-radius: 0 10px 10px 0; padding: 12px 14px; margin-bottom: 14px;
}
.sq-trigger-k { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #f3c1b8; margin-bottom: 4px; }
.sq-trigger-v { font-size: 14px; color: var(--muted); margin: 0; }
.sq-callout-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.sq-mini-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.sq-mini-k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 4px; }
.sq-mini-v { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); }
.sq-mini-s { font-size: 12px; color: var(--muted); margin-top: 4px; }
.sq-tally-box {
  font-size: 13px; color: var(--gold); background: rgba(12, 14, 20, 0.65);
  border: 1px solid var(--gold-line); border-radius: 10px; padding: 10px 14px;
}
.sq-delta-box {
  display: none; margin-top: 10px; font-size: 13px; color: #9ed9b6;
  background: rgba(100, 184, 136, 0.1); border: 1px solid rgba(100, 184, 136, 0.35);
  border-radius: 10px; padding: 9px 13px;
}
.sq-delta-box.is-visible { display: block; }

.sq-viz-grid {
  display: grid; grid-template-columns: 310px 1fr; gap: 24px; align-items: center;
  background: rgba(12, 14, 20, 0.58); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; margin-bottom: 22px;
}
.sq-wheel-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sq-lens-toggle {
  display: inline-flex; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px; gap: 4px;
}
.sq-lens-btn {
  border: none; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.sq-lens-btn.is-active { background: var(--gold); color: #0c0e14; }
.sq-wheel-svg { width: 100%; max-width: 290px; height: auto; }
.sq-tug-head { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #f3c1b8; margin-bottom: 12px; }
.sq-bars { display: flex; flex-direction: column; gap: 12px; }
.sq-tug-row { display: flex; flex-direction: column; gap: 5px; }
.sq-tug-labels { display: flex; justify-content: space-between; font-size: 13px; font-variant-numeric: tabular-nums; }
.sq-tug-l { font-weight: 700; color: #f3c1b8; }
.sq-tug-r { color: var(--gold); font-weight: 600; }
.sq-tug-track {
  display: flex; height: 10px; border-radius: 99px; overflow: hidden;
  background: rgba(216, 178, 104, 0.25); position: relative;
}
.sq-tug-fill-s { height: 100%; transition: width 0.35s ease; }
.sq-tug-fill-v { height: 100%; background: rgba(216, 178, 104, 0.34); flex: 1; }

.sq-deep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.sq-deep-box {
  background: rgba(12, 14, 20, 0.58); border: 1px solid var(--border); border-radius: 14px; padding: 18px;
}
.sq-deep-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.sq-habit-list { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.sq-habit-list li { margin-bottom: 8px; }
.sq-antidote-note { font-size: 14px; color: var(--muted); margin: 0 0 14px; }

.sq-poster-box {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center;
  background: rgba(12, 14, 20, 0.62); border: 1px solid var(--gold-line); border-radius: 14px;
  padding: 18px;
}
.sq-poster-thumb {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--gold); background: #0c0e14;
}
.sq-share-head { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.sq-poster-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sq-copy-msg { font-size: 13px; color: var(--gold); font-weight: 600; margin-top: 8px; min-height: 18px; }

@media (max-width: 780px) {
  .sq-codex-top, .sq-viz-grid, .sq-deep-grid, .sq-poster-box { grid-template-columns: 1fr; }
  .sq-tarot-frame, .sq-poster-thumb { max-width: 220px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .sq-hint-desk { display: none; }
  .sq-hint-mob { display: inline; }
  .sq-statement { font-size: 22px; min-height: 76px; margin-bottom: 16px; }
  .sq-ring[data-sq-val="1"], .sq-ring[data-sq-val="5"] { width: 48px; height: 48px; }
  .sq-ring[data-sq-val="2"], .sq-ring[data-sq-val="4"] { width: 42px; height: 42px; margin-top: 3px; }
  .sq-ring[data-sq-val="3"] { width: 38px; height: 38px; margin-top: 5px; }
  .sq-callout-pair { grid-template-columns: 1fr; }
}
