/* ═══════════════════════════════════════
   WOBAZI — Aura layer (app/aura.js)
   Uses the site tokens from style.css (--bg, --gold, --text, --m*). Everything is scoped to .aura-*.
═══════════════════════════════════════ */
.aura-layer {
  position: fixed; inset: 0; z-index: 3500;
  display: flex; flex-direction: column;
  background: var(--bg, #07070f);
  color: var(--text, #f0f0ff);
  font-family: 'Outfit', 'Noto Sans SC', 'Noto Sans Thai', system-ui, sans-serif;
}
.aura-layer[hidden] { display: none; }
html.aura-open, html.aura-open body { overflow: hidden; }

.aura-head {
  /* The app's own header (style.css .results-header): logo left, frosted dark bar. */
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(18,16,30,0.97) 0%, rgba(12,11,22,0.95) 100%);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border, rgba(240,240,255,0.08));
}
.aura-head-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.aura-logo { height: 26px; }
/* Aura's own colour is blue (config/suite.js: every app its own colour). */
.aura-title {
  margin: 0; font-size: 16px; font-weight: 700; letter-spacing: 0; padding-left: 12px; border-left: 1px solid var(--border, rgba(240,240,255,0.12));
  background: linear-gradient(90deg, #7dd3fc, #6FA8FF, #818cf8, #7dd3fc); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.aura-x {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--m7, rgba(240,240,255,0.7)); cursor: pointer;
}
@media (hover: hover) { .aura-x:hover { background: var(--w08, rgba(240,240,255,0.08)); color: var(--text, #f0f0ff); } }

.aura-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.aura-card { max-width: 480px; margin: 0 auto; }
.aura-center { text-align: center; padding-top: 6vh; }
.aura-h2 { font-size: 24px; font-weight: 700; margin: 8px 0 10px; line-height: 1.25; }
.aura-lead { color: var(--m75, rgba(240,240,255,0.75)); font-size: 15px; line-height: 1.5; margin: 0 0 14px; }
.aura-promise {
  font-size: 17px; line-height: 1.45; margin: 0 0 14px; padding: 14px 16px;
  border: 1px solid rgba(240,192,64,0.35); border-radius: var(--radius-md, 16px);
  background: var(--gold-dim, rgba(240,192,64,0.15)); color: var(--text, #f0f0ff);
}
.aura-fine { color: var(--m5, rgba(240,240,255,0.5)); font-size: 13px; line-height: 1.45; margin: 12px 0 0; }
.aura-tip {
  font-size: 16px; line-height: 1.5; margin: 0 0 16px; padding: 14px 16px;
  border-radius: var(--radius-md, 16px); background: rgb(var(--tint) / 0.06); border-left: 3px solid var(--gold, #f0c040);
}

.aura-check { display: flex; gap: 12px; align-items: center; min-height: 48px; margin: 16px 0 8px; font-size: 16px; cursor: pointer; }
.aura-check input { width: 22px; height: 22px; accent-color: var(--gold, #f0c040); flex: none; }

.aura-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.aura-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--m25, rgba(240,240,255,0.25)); background: transparent;
  color: var(--text, #f0f0ff); font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
}
@media (hover: hover) { .aura-btn:hover { border-color: var(--m5, rgba(240,240,255,0.5)); } }
.aura-btn:focus-visible, .aura-x:focus-visible { outline: 2px solid var(--gold, #f0c040); outline-offset: 2px; }
.aura-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.aura-primary { background: linear-gradient(120deg, #38bdf8, #4f46e5); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35); }
@media (hover: hover) { .aura-primary:hover { filter: brightness(1.06); border-color: transparent; } }
.aura-icon { padding: 0; width: 48px; flex: none; }
.aura-card > .aura-btn { width: 100%; margin-top: 8px; }

.aura-tips { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.aura-tips li { position: relative; padding-left: 22px; font-size: 14px; color: var(--m75, rgba(240,240,255,0.75)); }
.aura-tips li::before { content: ''; position: absolute; left: 4px; top: 0.5em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold, #f0c040); }

/* Orb */
.aura-orb { width: 96px; height: 96px; margin: 8px auto 6px; position: relative; }
.aura-orb span, .aura-orb::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #E5484D, #F28A30, #F2C94C, #3FBF6E, #3FA7F2, #5B5BD6, #A77BF2, #E5484D);
  filter: blur(14px); opacity: 0.75;
}
.aura-orb::before { filter: none; inset: 30px; opacity: 1; background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0.2) 70%); }
.aura-orb.is-spin span { animation: aura-spin 2.4s linear infinite; }
@keyframes aura-spin { to { transform: rotate(360deg); } }
.aura-meter { height: 6px; border-radius: 6px; background: rgb(var(--tint) / 0.1); overflow: hidden; max-width: 280px; margin: 0 auto; }
.aura-meter span { display: block; height: 100%; background: var(--gold, #f0c040); transition: width 0.2s; }

/* Camera */
.aura-cam { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.aura-stage { position: relative; flex: 1; min-height: 52vh; border-radius: var(--radius-lg, 24px); overflow: hidden; background: #000; }
.aura-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aura-cam.is-front video { transform: scaleX(-1); }   /* preview only: the captured frame is never mirrored */
.aura-guide { position: absolute; inset: 6% 10%; width: 80%; height: 88%; pointer-events: none; }
.aura-guide circle, .aura-guide path { fill: none; stroke: rgba(240,192,64,0.85); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 8 7; }
.aura-guide .frame { fill: none; stroke: rgba(255,255,255,0.35); stroke-width: 2; }
.aura-tips-over { position: absolute; left: 12px; right: 12px; top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(7,7,15,0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.aura-tips-over li { font-size: 13px; color: #fff; }
.aura-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; font-weight: 600; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,0.6); pointer-events: none; }
.aura-count:empty { display: none; }
.aura-cam-bar { display: flex; gap: 8px; align-items: center; }
.aura-cam-bar .aura-btn { flex: 1; padding: 0 12px; font-size: 14px; }
.aura-cam-bar .aura-icon { flex: none; }
.aura-cam-bar.is-counting [data-aura="timer"], .aura-cam-bar.is-counting [data-aura="now"] { opacity: 0.4; pointer-events: none; }

/* Result */
.aura-preview { border-radius: var(--radius-lg, 24px); overflow: hidden; background: #000; margin: 4px 0 16px; }
.aura-preview canvas { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; }
.aura-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aura-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) 84px 36px 72px; gap: 8px; align-items: center; min-height: 40px; font-size: 15px; padding: 4px 0; }
.aura-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.aura-name { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.aura-name-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aura-mean { font-size: 12px; line-height: 1.35; color: var(--m5, rgba(240,240,255,0.55)); white-space: normal; }
.aura-tile-mean { font-size: 12px; line-height: 1.35; color: var(--m6, rgba(240,240,255,0.6)); margin-top: 2px; }
.aura-bar { position: relative; height: 6px; border-radius: 6px; background: rgb(var(--tint) / 0.1); }
.aura-bar::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--m3, rgba(240,240,255,0.3)); }
.aura-bar span { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.aura-bar .pos { left: 50%; background: var(--gold, #f0c040); }
.aura-bar .neg { right: 50%; background: #8b8fd6; }
.aura-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--m75, rgba(240,240,255,0.75)); }
.aura-lab { font-size: 13px; color: var(--m5, rgba(240,240,255,0.5)); }
.aura-meta { margin: 14px 0 0; font-size: 14px; color: var(--m7, rgba(240,240,255,0.7)); }
.aura-meta b { color: var(--text, #f0f0ff); font-weight: 600; }

/* Debug (developer view, ?aura_debug=1) */
.aura-debug { margin: 16px 0 0; font-size: 12px; border: 1px dashed var(--m3, rgba(240,240,255,0.3)); border-radius: 12px; padding: 8px 10px; }
.aura-debug summary { cursor: pointer; color: var(--gold, #f0c040); font-weight: 600; }
.aura-debug table { width: 100%; border-collapse: collapse; margin-top: 6px; font-family: ui-monospace, Menlo, monospace; }
.aura-debug th, .aura-debug td { text-align: left; padding: 3px 4px; border-top: 1px solid rgb(var(--tint) / 0.08); vertical-align: top; word-break: break-word; }
.aura-debug th { color: var(--m6, rgba(240,240,255,0.6)); font-weight: 400; width: 40%; }

/* Reading (stage 3) */
.aura-result { position: relative; }
.aura-result::before {
  content: ''; position: absolute; left: 50%; top: -40px; width: 360px; height: 260px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--a1), transparent), radial-gradient(closest-side at 70% 60%, var(--a2), transparent);
  opacity: 0.28; filter: blur(30px); pointer-events: none; z-index: -1;
}
.aura-eyebrow { margin: 4px 0 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold, #f0c040); }
.aura-reading-title { font-size: 28px; margin-top: 4px; }
.aura-h3 { font-size: 15px; font-weight: 600; margin: 22px 0 8px; color: var(--m75, rgba(240,240,255,0.75)); }
.aura-sws { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aura-sw { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 14px; background: rgb(var(--tint) / 0.05); min-width: 0; }
.aura-sw > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.aura-sw-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); }
.aura-sw-k { font-size: 11px; color: var(--m5, rgba(240,240,255,0.5)); }
.aura-sw-v { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aura-reading { display: grid; gap: 12px; }
.aura-para h3 { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--m6, rgba(240,240,255,0.6)); }
.aura-para p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--m75, rgba(240,240,255,0.75)); }
.aura-para.is-core p { font-size: 17px; color: var(--text, #f0f0ff); }
.aura-action { padding: 14px 16px; border-radius: var(--radius-md, 16px); border: 1px solid rgba(240,192,64,0.35); background: var(--gold-dim, rgba(240,192,64,0.15)); }
.aura-action-k { display: block; font-size: 12px; font-weight: 600; color: var(--gold, #f0c040); margin-bottom: 4px; }
.aura-action p { margin: 0; font-size: 15px; line-height: 1.5; }
.aura-row.is-final { grid-template-columns: 14px minmax(0, 1fr) 110px 32px; }
.aura-bar.is-final::after { display: none; }
.aura-bar.is-final span { left: 0; background: var(--c); box-shadow: 0 0 8px var(--c); }
.aura-tag { margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; vertical-align: 1px; }
.aura-tag.is-open { background: rgba(240,192,64,0.18); color: var(--gold, #f0c040); }
.aura-tag.is-guarded { background: rgba(139,143,214,0.2); color: #b9bcf0; }
@media (max-width: 380px) {
  .aura-sws { grid-template-columns: 1fr; }
  .aura-row.is-final { grid-template-columns: 14px minmax(0, 1fr) 80px 30px; }
}

/* Card (stage 4) */
.aura-cardbox { margin: 6px 0 18px; }
.aura-cardframe {
  width: 100%; max-width: 520px; aspect-ratio: 1080 / 1560; margin: 0 auto; border-radius: 22px; overflow: hidden;
  background: #0c0b18; display: grid; place-items: center; box-shadow: 0 18px 50px rgba(0,0,0,0.5), 0 0 0 1px rgb(var(--tint) / 0.08);
}
.aura-card-canvas { display: block; width: 100%; height: 100%; }
.aura-card-actions { display: grid; gap: 10px; margin-top: 14px; }
.aura-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aura-toggle { justify-content: flex-start; gap: 12px; }
.aura-switch { position: relative; width: 38px; height: 22px; border-radius: 22px; background: rgb(var(--tint) / 0.18); flex: none; transition: background 0.2s; }
.aura-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.aura-toggle[aria-pressed="true"] .aura-switch { background: var(--gold, #f0c040); }
.aura-toggle[aria-pressed="true"] .aura-switch::after { transform: translateX(16px); }
.aura-card-actions .aura-fine { text-align: center; margin: 2px 0 0; }
.aura-link { background: none; border: 0; color: var(--gold, #f0c040); font: inherit; font-size: 15px; min-height: 44px; cursor: pointer; }
.aura-link:focus-visible { outline: 2px solid var(--gold, #f0c040); outline-offset: 2px; border-radius: 8px; }

/* History */
.aura-shift { padding: 12px 14px; border-radius: var(--radius-md, 16px); background: rgb(var(--tint) / 0.05); margin: 0 0 16px; }
.aura-shift p { margin: 0 0 4px; font-size: 14px; color: var(--m75, rgba(240,240,255,0.75)); }
.aura-shift p:last-child { margin-bottom: 0; }
.aura-shift b { color: var(--text, #f0f0ff); }
.aura-hlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aura-hrow { padding: 12px 14px; border-radius: var(--radius-md, 16px); border: 1px solid var(--w08, rgba(240,240,255,0.08)); }
.aura-hhead { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.aura-hwhen { color: var(--text, #f0f0ff); font-weight: 500; }
.aura-hpillar { color: var(--gold, #f0c040); }
.aura-hdots { margin-left: auto; display: flex; gap: 4px; }
.aura-hdot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.aura-hbody { display: flex; gap: 14px; align-items: flex-end; margin-top: 10px; }
.aura-minis { display: flex; gap: 4px; align-items: flex-end; height: 44px; flex: none; }
.aura-mini { width: 8px; height: max(3px, var(--h)); border-radius: 3px; background: var(--c); opacity: 0.9; }
.aura-hmeta { display: grid; gap: 4px; font-size: 13px; color: var(--m7, rgba(240,240,255,0.7)); min-width: 0; }
.aura-hmeta .aura-tag { margin-left: 0; }
.aura-hint { color: var(--m5, rgba(240,240,255,0.5)); }
@media (prefers-reduced-motion: reduce) {
  .aura-switch, .aura-switch::after { transition: none; }
}

/* How we calculate your aura (closed until opened) */
.aura-how { margin: 18px 0 0; border: 1px solid var(--w08, rgba(240,240,255,0.08)); border-radius: var(--radius-md, 16px); background: rgb(var(--tint) / 0.03); }
.aura-how summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; font-size: 15px; font-weight: 600; color: var(--gold, #f0c040); }
.aura-how summary::-webkit-details-marker { display: none; }
.aura-how summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s; margin-top: -4px; }
.aura-how[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.aura-how summary:focus-visible { outline: 2px solid var(--gold, #f0c040); outline-offset: 2px; border-radius: 12px; }
.aura-how-body { padding: 0 16px 16px; }
.aura-how h4 { margin: 18px 0 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--m6, rgba(240,240,255,0.6)); }
.aura-how-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.aura-how-table th, .aura-how-table td { padding: 7px 4px; border-top: 1px solid rgb(var(--tint) / 0.07); text-align: right; }
.aura-how-table thead th { border-top: 0; font-size: 12px; font-weight: 500; color: var(--m5, rgba(240,240,255,0.5)); }
.aura-how-table th[scope="row"], .aura-how-table thead th:first-child { text-align: left; font-weight: 500; }
.aura-how-table th[scope="row"] .aura-dot { display: inline-block; vertical-align: -1px; margin-right: 8px; width: 10px; height: 10px; }
.aura-how-el { display: block; font-size: 11px; color: var(--m5, rgba(240,240,255,0.5)); margin-left: 18px; }
.aura-how-els, .aura-how-ms, .aura-how-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.aura-how-els li { display: grid; grid-template-columns: 56px 1fr 44px; gap: 10px; align-items: center; }
.aura-how-elbar { height: 6px; border-radius: 6px; background: rgb(var(--tint) / 0.1); overflow: hidden; }
.aura-how-elbar span { display: block; height: 100%; background: var(--c); }
.aura-how-elv { text-align: right; color: var(--m6, rgba(240,240,255,0.6)); font-variant-numeric: tabular-nums; }
.aura-how-ms li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid rgb(var(--tint) / 0.07); }
.aura-how-m { font-weight: 500; }
.aura-how-to { text-align: right; color: var(--m7, rgba(240,240,255,0.7)); white-space: nowrap; }
.aura-how-v { grid-column: 1 / -1; color: var(--m6, rgba(240,240,255,0.6)); font-size: 13px; }
.aura-how-list li { color: var(--m75, rgba(240,240,255,0.75)); }
.aura-how-sent { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,0.35); font: 12px/1.5 ui-monospace, Menlo, monospace; color: var(--m75, rgba(240,240,255,0.75)); white-space: pre-wrap; word-break: break-word; }
.aura-how .aura-preview { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .aura-how summary::after { transition: none; } }

@media (max-width: 380px) {
  .aura-row { grid-template-columns: 14px minmax(0, 1fr) 60px 32px 64px; gap: 6px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .aura-orb.is-spin span { animation: none; }
  .aura-meter span { transition: none; }
}

/* ── Visual reading (2026-11-18) ── */
.aura-core { margin: 0 0 14px; font-size: 18px; line-height: 1.55; color: var(--text, #f0f0ff); }
.aura-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.aura-tile, .aura-glowtile, .aura-inttile { position: relative; overflow: hidden; padding: 14px 16px 16px; border-radius: var(--radius-md, 16px); background: rgb(var(--tint) / 0.045); border: 1px solid rgb(var(--tint) / 0.08); }
.aura-tile { background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), rgb(var(--tint) / 0.04); border-color: color-mix(in srgb, var(--c) 30%, transparent); }
.aura-tile.is-guarded { background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 12%, transparent), transparent 70%), rgb(var(--tint) / 0.03); border-style: dashed; }
.aura-tile-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.aura-tile-top > div { display: flex; flex-direction: column; min-width: 0; }
.aura-tile-k { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--m6, rgba(240,240,255,0.6)); }
.aura-tile-name { font-size: 20px; font-weight: 600; color: var(--c); line-height: 1.2; }
.aura-tile p, .aura-glowtile p, .aura-inttile p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--m75, rgba(240,240,255,0.78)); }
.aura-ring { flex: none; overflow: visible; }
.aura-ring-v { fill: #fff; font: 600 22px Outfit, system-ui, sans-serif; }
.aura-tile.is-guarded .aura-ring { opacity: 0.85; }

.aura-glowtile { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; border-color: color-mix(in srgb, var(--g) 35%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--g) 20%, transparent), transparent 60%), rgb(var(--tint) / 0.04); }
.aura-glow-orb { width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff 0, var(--g) 30%, color-mix(in srgb, var(--g) 30%, transparent) 62%, transparent 72%);
  box-shadow: 0 0 40px color-mix(in srgb, var(--g) 60%, transparent); animation: auraPulse 3.6s ease-in-out infinite; }
@keyframes auraPulse { 0%, 100% { transform: scale(1); opacity: 0.95; } 50% { transform: scale(1.08); opacity: 1; } }
.aura-pillars { display: flex; gap: 10px; margin: 6px 0 8px; flex-wrap: wrap; }
.aura-pill-big { display: flex; flex-direction: column; padding: 6px 12px; border-radius: 12px; background: rgba(7,7,15,0.45); border: 1px solid rgb(var(--tint) / 0.1); }
.aura-pill-big b { font: 600 24px/1.15 'Noto Serif SC', 'Noto Sans SC', serif; color: #fff; letter-spacing: 0.06em; }
.aura-pill-big small { font-size: 11px; color: var(--m5, rgba(240,240,255,0.5)); }

.aura-int-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.aura-energy { display: flex; align-items: baseline; gap: 6px; }
.aura-energy b { font-size: 34px; line-height: 1; font-weight: 600; background: linear-gradient(90deg, var(--a1, #f0c040), var(--a2, #5B5BD6)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aura-energy small { font-size: 12px; color: var(--m6, rgba(240,240,255,0.6)); }
.aura-meter3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.aura-m3 { display: flex; flex-direction: column; gap: 6px; }
.aura-m3 i { display: block; height: 10px; border-radius: 10px; background: rgb(var(--tint) / 0.1); }
.aura-m3.is-on i { background: linear-gradient(90deg, var(--a2, #5B5BD6), var(--a1, #f0c040)); }
.aura-m3.is-at i { box-shadow: 0 0 14px var(--a1, #f0c040); }
.aura-m3 b { font-size: 12px; font-weight: 500; color: var(--m5, rgba(240,240,255,0.5)); text-align: center; }
.aura-m3.is-at b { color: var(--text, #f0f0ff); font-weight: 600; }
.aura-action-k { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.aura-until { color: var(--m6, rgba(240,240,255,0.6)); font-weight: 500; }

.aura-chakras { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; }
.aura-radar { width: 100%; max-width: 440px; height: auto; margin: 0 auto; display: block; }
.aura-radar-grid { fill: none; stroke: rgb(var(--tint) / 0.12); stroke-width: 1; }
.aura-radar-l { fill: rgb(var(--tint) / 0.72); font: 500 15px Outfit, 'Noto Sans SC', 'Noto Sans Thai', system-ui, sans-serif; }
.aura-radar-n { fill: #fff; font-weight: 600; }
@media (max-width: 479px) { .aura-duo { grid-template-columns: 1fr; } .aura-glowtile { grid-template-columns: 60px minmax(0, 1fr); } .aura-glow-orb { width: 60px; height: 60px; } }
@media (prefers-reduced-motion: reduce) { .aura-glow-orb { animation: none; } }

/* ── Aura Pass offer ── */
.aura-pass { position: relative; overflow: hidden; margin-top: 16px; padding: 18px; border-radius: var(--radius-md, 16px); text-align: left;
  background: linear-gradient(135deg, rgba(167,123,242,0.22), rgba(78,79,216,0.14) 50%, rgba(240,192,64,0.14)); border: 1px solid rgba(167,123,242,0.4); }
.aura-pass-k { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #07070f; background: linear-gradient(90deg, #a77bf2, #f0c040); padding: 3px 9px; border-radius: 99px; }
.aura-pass h3 { margin: 10px 0 4px; font-size: 22px; }
.aura-pass-price { font-size: 30px; font-weight: 600; margin: 2px 0 8px; }
.aura-pass-price small { font-size: 14px; font-weight: 500; color: var(--m6, rgba(240,240,255,0.6)); }
.aura-pass ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--m75, rgba(240,240,255,0.78)); }
.aura-pass li { position: relative; padding-left: 22px; }
.aura-pass li::before { content: '✦'; position: absolute; left: 0; color: #f0c040; }
.aura-pass .aura-btn { width: 100%; }
.aura-pass-or { margin: 10px 0 0; font-size: 13px; color: var(--m6, rgba(240,240,255,0.6)); text-align: center; }
.aura-pass-or a { color: var(--gold, #f0c040); }
.aura-privacy a { color: var(--gold, #f0c040); }
.aura-free { display: inline-block; margin: 0 0 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #07070f; background: linear-gradient(90deg, #a77bf2, #f0c040); }

/* In-app card: as wide as the screen on phones */
@media (max-width: 599px) { .aura-cardframe { width: calc(100% + 24px); margin: 0 -12px; border-radius: 18px; } }

/* History rows open the full reading; picture thumbnails */
.aura-hrow { padding: 0; }
.aura-hopen { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: inherit; }
.aura-hopen:focus-visible { outline: 2px solid var(--gold, #f0c040); outline-offset: 2px; }
.aura-hmain { flex: 1 1 auto; min-width: 0; display: block; }
.aura-hthumb { flex: none; width: 72px; height: 104px; object-fit: cover; border-radius: 12px; background: #0c0b18; box-shadow: 0 0 0 1px rgb(var(--tint) / 0.08); }
.aura-hgo { flex: none; font-size: 26px; color: var(--m5, rgba(240,240,255,0.5)); }
.aura-hpic { margin: 0 0 16px; }
.aura-hpic img { display: block; width: 100%; max-width: 520px; margin: 0 auto; border-radius: 22px; box-shadow: 0 18px 50px rgba(0,0,0,0.5), 0 0 0 1px rgb(var(--tint) / 0.08); }
@media (max-width: 599px) { .aura-hpic { margin: 0 -12px 16px; } .aura-hpic img { border-radius: 18px; } }

/* Today tab prompt (aura.js todayCta, inside #res-daily). Outside the #aura layer, so no layer tokens. */
.aura-today { position: relative; display: flex; gap: 16px; align-items: center; margin-top: 14px; padding: 18px; overflow: hidden;
  border-radius: 18px; text-decoration: none; color: var(--text, #f0f0ff);
  background: radial-gradient(120% 140% at 0% 50%, rgba(167,123,242,0.28), transparent 60%), linear-gradient(135deg, rgba(78,79,216,0.18), rgba(240,192,64,0.12));
  border: 1px solid rgba(167,123,242,0.35); transition: border-color 0.2s, transform 0.2s; }
@media (hover: hover) { .aura-today:hover { border-color: rgba(240,192,64,0.6); transform: translateY(-1px); } }
.aura-today:focus-visible { outline: 2px solid var(--gold, #f0c040); outline-offset: 3px; }
.aura-today-orb { flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(from 0deg, #E5484D, #F28A30, #F2C94C, #3FBF6E, #3FA7F2, #5B5BD6, #A77BF2, #E5484D);
  filter: blur(1px); box-shadow: 0 0 30px rgba(167,123,242,0.6); animation: auraTodaySpin 8s linear infinite; }
@keyframes auraTodaySpin { to { transform: rotate(360deg); } }
.aura-today-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.aura-today-k { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--m6, rgba(240,240,255,0.6)); }
.aura-today-k b { color: var(--gold, #f0c040); }
.aura-today-h { font-size: 18px; font-weight: 600; line-height: 1.3; }
.aura-today-p { font-size: 14px; line-height: 1.5; color: var(--m7, rgba(240,240,255,0.72)); }
.aura-today-btn { align-self: flex-start; margin-top: 6px; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #07070f; background: var(--gold, #f0c040); }
@media (prefers-reduced-motion: reduce) { .aura-today-orb { animation: none; } .aura-today { transition: none; } @media (hover: hover) { .aura-today:hover { transform: none; } } }
@media (max-width: 420px) { .aura-today-orb { width: 48px; height: 48px; } }

/* Site look (2026-11-18): the app's section headings and card surfaces (style.css .section-head h3, --bg-card). */
.aura-layer .aura-h3 { font-size: 18px; font-weight: 700; color: var(--text, #f0f0ff); letter-spacing: 0; text-transform: none; margin: 22px 0 12px; }
.aura-eyebrow { font-size: 12px; letter-spacing: 0.5px; text-transform: none; color: var(--muted, rgba(240,240,255,0.55)); }
.aura-reading-title { font-size: 28px; font-weight: 700; }
.aura-sw, .aura-tile, .aura-glowtile, .aura-inttile, .aura-hrow, .aura-how, .aura-shift { background-color: var(--bg-card, #0f0f1c); border: 1px solid var(--border, rgba(240,240,255,0.08)); }
.aura-tile, .aura-glowtile, .aura-inttile, .aura-hrow, .aura-how { border-radius: var(--radius-lg, 24px); }
.aura-tile { border-color: color-mix(in srgb, var(--c) 30%, var(--border, transparent)); }
.aura-glowtile { border-color: color-mix(in srgb, var(--g) 35%, var(--border, transparent)); }
.aura-btn { font-family: inherit; }

/* Camera (2026-11-18): tips above the preview, never over it; the preview keeps the stream's shape. */
.aura-cam-tips { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.aura-cam-tips span { font-size: 12px; padding: 4px 10px; border-radius: 999px; color: var(--m75, rgba(240,240,255,0.78)); background: var(--bg-card, #0f0f1c); border: 1px solid var(--border, rgba(240,240,255,0.1)); }
.aura-stage.has-ratio { flex: none; min-height: 0; aspect-ratio: var(--ar); width: min(100%, calc((100dvh - 200px) * var(--ar))); margin: 0 auto; }
/* The camera step uses the whole screen: less padding, tips on one scrolling line, one-line buttons. */
.aura-body:has(.aura-cam) { padding: 8px 8px calc(10px + env(safe-area-inset-bottom, 0px)); }
.aura-cam { gap: 8px; max-width: none; }
.aura-cam-tips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 4px; }
.aura-cam-tips::-webkit-scrollbar { display: none; }
.aura-cam-tips span { flex: none; white-space: nowrap; font-size: 11px; padding: 3px 9px; }
.aura-cam-bar .aura-btn { white-space: nowrap; min-height: 46px; font-size: 13px; padding: 0 10px; }
@media (min-width: 600px) { .aura-cam-tips { justify-content: center; flex-wrap: wrap; } }

/* Open / Blocked (2026-11-20): tags on the chakra rows, the key under the chart, What to do now */
.aura-state { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; }
.aura-state.is-open { color: #0d0716; background: #3fbf6e; }
.aura-state.is-blocked { color: #ffb4b6; border: 1px dashed #e5484d; }
.aura-key { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 2px; font-size: 12.5px; color: var(--m7, rgba(240,240,255,0.7)); }
.aura-key-i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.aura-key-i.is-open { border: 2px solid #3fbf6e; }
.aura-key-i.is-blocked { border: 2px dashed #e5484d; margin-left: 10px; }
.aura-key-note { text-align: center; margin: 0 0 12px; }
.aura-todo { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.aura-todo-i { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--c) 10%, var(--w03)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.aura-todo-i.is-blocked { border-style: dashed; }
.aura-todo-k { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--m7, rgba(240,240,255,0.7)); }
.aura-todo-k b { color: var(--c); }
.aura-todo-i p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text, #f0f0ff); }

/* 2026-11-21: the fortune line (also printed on the card) */
.aura-fortune { margin: 12px 0 14px; padding: 12px 14px; border-radius: 14px; font-size: 15.5px; font-style: italic; line-height: 1.45; color: #eef2ff;
  background: color-mix(in srgb, var(--a1, #6FA8FF) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--a1, #6FA8FF) 50%, transparent); }
.aura-fortune-k { display: block; margin-bottom: 4px; font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--a1, #6FA8FF); }

/* 2026-11-21: chakra rows breathe (a two-line meaning no longer touches the next chakra's name); the card opens the page */
.aura-rows { gap: 14px; }
.aura-row, .aura-row.is-final { align-items: start; padding: 2px 0; }
.aura-row .aura-dot, .aura-row .aura-bar, .aura-row .aura-val { margin-top: 6px; }
.aura-name { gap: 3px; }
.aura-mean { line-height: 1.4; }
.aura-cardbox.is-first { margin-top: 0; }

/* Aura type (2026-11-25): "Green–Indigo · The Pioneer", from the chart, under the card. */
.aura-type { display: flex; flex-direction: column; gap: 4px; margin: 16px 0 4px; padding: 14px 16px; border-radius: var(--radius-md, 16px);
  border: 1px solid var(--border, rgba(255,255,255,.1)); background: linear-gradient(120deg, color-mix(in srgb, var(--a1) 18%, transparent), color-mix(in srgb, var(--a2) 18%, transparent)); }
.aura-type b { font-size: 20px; font-weight: 700; line-height: 1.25; }
.aura-type small { font-size: 12px; color: var(--m5, rgba(255,255,255,.6)); }
/* Guest: keep your aura (sign in) — the pass card's look. */
.aura-keep h3 { margin: 0 0 6px; }
.aura-keep p { margin: 0 0 12px; }
/* Go further: Oracle · outfit colours · compatibility · Master Alice. */
.aura-next { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.aura-next .aura-h3 { margin-bottom: 4px; }
.aura-next-a { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid var(--border, rgba(255,255,255,.1)); background: var(--bg-card, rgba(255,255,255,.04));
  color: inherit; font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; }
.aura-next-a:hover { border-color: var(--gold, #f0c040); }
.aura-next-a:focus-visible { outline: 2px solid var(--gold, #f0c040); outline-offset: 2px; }
/* Pillar badges in words (2026-11-25): "Yang Metal Monkey" to read, the characters as artwork above. */
.aura-pill-big.is-words b { font-family: inherit; font-weight: 600; font-size: 18px; line-height: 1.2; letter-spacing: 0; }
.aura-pill-han { font: 400 13px/1.2 'Noto Serif SC', 'Noto Sans SC', serif; font-style: normal; color: var(--m5, rgba(240,240,255,0.5)); letter-spacing: 0.08em; }

/* ═══ Page mode (2026-11-25): on /aura/start and /face/start the app is a section of the page, under the
   site's header and above its footer and phone bar, like every other app; no full-screen layer, no ✕.
   Wide screens use the width: steps in two columns, the result's card left and the reading right. ═══ */
.aura-layer.aura-page { position: static; inset: auto; z-index: auto; display: block; background: none; min-height: 0; }
.aura-layer.aura-page[hidden] { display: none; }
.aura-page .aura-head { display: none; }
.aura-page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.aura-page-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  background: linear-gradient(90deg, #7dd3fc, #6FA8FF, #818cf8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.face-page .aura-page-title { background: linear-gradient(90deg, #fdba74, #fb923c, #f472b6); -webkit-background-clip: text; background-clip: text; }
.aura-page-hist { min-height: 40px; padding: 0; font-size: 14.5px; }
.aura-page-hist[hidden] { display: none; }
.aura-page .aura-body { overflow: visible; padding: 0; flex: none; }
.aura-page .aura-card { max-width: none; }
.aura-page .aura-center { padding-top: 24px; padding-bottom: 24px; }
/* The steps sit on the page's glass card surface, like the other apps' cards. */
.aura-page .aura-step, .aura-page .aura-center, .aura-page .aura-cam {
  background: var(--bg-card, #13132a); border: 1px solid var(--card-line, rgba(255,255,255,0.09));
  border-radius: var(--radius-lg, 24px); padding: 20px 18px;
}
.aura-page .aura-center > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.aura-page .aura-cam { max-width: none; height: auto; }
.aura-page .aura-stage { min-height: 0; height: min(68dvh, 640px); flex: none; }
/* An explicit width: with width:auto and margin:0 auto in the column flexbox the stage shrank to its
   content (the video is absolutely positioned), so it collapsed to 0×0 once the stream started (2026-11-25). */
.aura-page .aura-stage.has-ratio { height: auto; aspect-ratio: var(--ar); width: min(100%, calc(min(70dvh, 680px) * var(--ar))); max-width: 100%; margin: 0 auto; }
.aura-page .aura-cam-bar { max-width: 560px; margin: 0 auto; width: 100%; }
@media (min-width: 900px) {
  .aura-page .aura-step { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 48px; padding: 32px 40px; align-items: start; }
  .aura-page .aura-step > .aura-orb, .aura-page .aura-step > .face-orb { grid-column: 1; grid-row: 1 / span 12; align-self: center; width: 200px; height: 200px; margin: 0 auto; }
  .aura-page .aura-step > .aura-orb::before { inset: 62px; }
  .aura-page .aura-step > :not(.aura-orb):not(.face-orb) { grid-column: 2; }
  .aura-page .aura-actions { flex-direction: row; flex-wrap: wrap; }
  .aura-page .aura-actions .aura-btn { flex: 0 1 auto; min-width: 200px; }
  .aura-page .aura-step .aura-tips { grid-template-columns: 1fr 1fr; }
  .aura-page .aura-h2 { font-size: 28px; }
  .aura-page .aura-split.has-media { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
  .aura-page .aura-split.has-media > .aura-split-media { position: sticky; top: 12px; }
  .aura-page .aura-split.has-media .aura-cardframe, .aura-page .aura-split.has-media .aura-hpic img { max-width: none; }
  .aura-page .aura-split:not(.has-media) > .aura-split-main { max-width: 760px; }
  /* (The radar beside the chakra rows was tried and squeezed the rows; they keep the full column.) */
  .aura-page .aura-split.has-media .aura-radar { max-width: 340px; margin: 0 auto; }
  .aura-page .aura-hlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Between 900 and 1079px the reading column would be too narrow beside the card: one column there. */
@media (min-width: 900px) and (max-width: 1079px) {
  .aura-page .aura-split.has-media { display: block; }
  .aura-page .aura-split.has-media > .aura-split-media { position: static; }
}

/* One Share button everywhere (2026-11-25): Face Reading's filled orange (app/face.css), the other buttons outlined. */
.aura-btn[data-aura="share"], .aura-btn[data-aura="hshare"], .aura-btn[data-face="share"], .aura-btn[data-face="hshare"] { background: linear-gradient(120deg, #fb923c, #ea580c); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35); }
.aura-btn[data-aura="share"]:disabled, .aura-btn[data-face="share"]:disabled { opacity: 0.55; }
