/* =========================================================
   AXION — Cyber-Ancient Design System
   ธีมดำสนิท + นีออนเขียวไซเบอร์ ใช้ร่วมกันทุกหน้า
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --bg: #000000;
  --surface: rgba(8, 16, 12, 0.85);
  --surface-2: rgba(0, 0, 0, 0.65);
  --surface-solid: #050a08;

  --accent: #00ff9d;
  --brand: #10b981;
  --brand-hi: #34d399;
  --deep: #022c22;

  --line: rgba(0, 255, 157, 0.25);
  --line-strong: rgba(0, 255, 157, 0.5);
  --line-soft: rgba(255, 255, 255, 0.12);

  --ink: #e8f6ef;
  --ink-muted: #7f958b;
  --up: #00ff9d;
  --down: #ff5f6d;

  --font-display: 'Syne', 'Noto Sans Thai', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Noto Sans Thai', sans-serif;
  --font-mono: 'Share Tech Mono', 'IBM Plex Mono', monospace;

  --glow: 0 0 20px rgba(0, 255, 157, 0.35);
  --glow-strong: 0 0 34px rgba(0, 255, 157, 0.55);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
  --radius: 14px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ตารางไซเบอร์จางๆ เป็นพื้นหลังทั้งเว็บ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* แสงเรืองมุมจอ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 255, 157, 0.08), transparent 45%),
    radial-gradient(circle at 88% 100%, rgba(16, 185, 129, 0.07), transparent 45%);
}

/* พื้นหลังอนุภาคลอย (canvas ที่สคริปต์สร้างขึ้น) */
#ambientCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.topbar, .page, .ticker-wrap, .modal-overlay, .toast, .login-wrap, .hero { position: relative; z-index: 1; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.02em; margin: 0; }

a { color: var(--accent); text-decoration: none; }

button { font-family: var(--font-body); cursor: pointer; }

.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

::selection { background: var(--accent); color: #001b12; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(0, 255, 157, 0.28); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 255, 157, 0.5); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- ปุ่ม ---------- */
.btn-gold {
  background: var(--brand);
  color: #00110b;
  border: none;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-gold:hover { background: var(--brand-hi); transform: translateY(-1px); box-shadow: var(--glow-strong); }
.btn-gold:active { transform: translateY(0); }
.btn-gold:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: var(--surface-2);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--line-strong); color: var(--accent); background: rgba(0, 255, 157, 0.08); }

/* ---------- แถบวิ่งด้านบน (ticker) ---------- */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  background: rgba(2, 44, 34, 0.35);
  border-bottom: 1px solid var(--line);
}
.ticker-wrap.empty { display: none; }
.ticker-track {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  padding: 0 18px;
  border-right: 1px solid var(--line);
}
.ticker-item .t-percent.up { color: var(--up); }
.ticker-item .t-percent.down { color: var(--down); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- แถบบนสุด ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 34px;
  border-bottom: 1px solid rgba(0, 255, 157, 0.14);
  background: linear-gradient(180deg, rgba(2, 44, 34, 0.5), transparent);
  backdrop-filter: blur(10px);
}

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

/* ตราสัญลักษณ์สามเหลี่ยม/ดวงตา */
.brand .emblem {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
}
.brand .emblem svg { width: 20px; height: 20px; }

.brand .mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: #fff;
}
.brand .sub {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* แคปซูลเมนู */
.nav-links a {
  color: var(--ink-muted);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active {
  color: var(--accent);
  background: rgba(0, 255, 157, 0.1);
  border-color: var(--line);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* กล่องผู้ใช้ + นาฬิกานับถอยหลัง */
.session-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.session-info::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.session-user { font-size: 13px; font-weight: 600; color: var(--ink); }
.session-countdown { font-family: var(--font-mono); font-size: 15px; color: var(--accent); }
.session-countdown.session-countdown-warn { color: var(--down); animation: pulse-dot 1s ease-in-out infinite; }

@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) {
  .session-info::before, .session-countdown.session-countdown-warn { animation: none; }
  .ticker-track { animation: none; }
}

/* ---------- โครงหน้า ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 46px 34px 90px; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 255, 157, 0.14);
}
.page-head h1 {
  font-size: 34px;
  color: #fff;
  text-shadow: 0 0 26px rgba(0, 255, 157, 0.35);
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 12px;
}

/* ---------- ช่องกรอก ---------- */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 9px;
}
.field input, .field select {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  padding: 14px 16px;
  font-size: 17px;
  font-family: var(--font-body);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder { color: rgba(127, 149, 139, 0.7); }
.field input:focus, .field select:focus {
  border-color: var(--accent);
  background: rgba(0, 255, 157, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.14), var(--glow);
}
.field input:disabled, .cost-row .cost-value:disabled, .cost-row .cost-condition:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.field-hint { font-size: 12px; color: var(--ink-muted); margin-top: 7px; }

/* ---------- การ์ดคำนวณ ---------- */
.calc-set { margin-bottom: 40px; }
.calc-set-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 0 22px rgba(0, 255, 157, 0.3);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 520px;
  margin: 0 auto;
}

.ledger-form, .calc-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
/* เส้นนีออนเรืองด้านบนการ์ด */
.ledger-form::before, .calc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.8;
}
.ledger-form h2, .calc-card h2 {
  font-size: 21px;
  color: var(--accent);
  margin-bottom: 22px;
  text-align: center;
}

.calc-card .calc-btn { width: 100%; }
.calc-result { margin-top: 22px; margin-bottom: 0; }

.result-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--line);
  color: var(--accent);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 26px;
  border-radius: 12px;
  min-height: 1.4em;
  text-shadow: 0 0 18px rgba(0, 255, 157, 0.45);
}
.result-box.invalid { color: var(--ink-muted); border-color: rgba(255, 95, 109, 0.55); text-shadow: none; }
.cost-result-display { font-size: 30px; }

.calc-steps { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); margin-bottom: 8px; }
.calc-steps.invalid { color: var(--down); }

.calc-add-row {
  width: 100%;
  margin: 4px 0 18px;
  padding: 12px 16px;
  background: transparent;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--accent);
  font-size: 14px;
}
.calc-add-row:hover { background: rgba(0, 255, 157, 0.08); }

/* ---------- แถวคำนวนต้นทุน ---------- */
.cost-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0, 255, 157, 0.18);
}
.cost-row .cost-value {
  flex: 0 0 120px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  padding: 11px 13px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 16px;
  outline: none;
}
.cost-row .cost-condition {
  flex: 1 1 auto;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
}
.cost-row .cost-value:focus, .cost-row .cost-condition:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.14); }
.cost-row .cost-row-result { flex: 0 0 90px; text-align: right; color: var(--accent); font-size: 15px; }
.cost-row .cost-row-del {
  flex: none;
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 15px;
  padding: 6px 8px;
}
.cost-row .cost-row-del:hover { color: var(--down); }

/* ---------- โฟลเดอร์ ---------- */
.folder-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.folder-tab {
  position: relative;
  min-width: 156px;
  padding: 16px 22px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.folder-tab:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.folder-tab.active { border-color: var(--accent); box-shadow: var(--glow); }
.folder-tab .fname { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.folder-tab.active .fname { color: var(--accent); }
.folder-tab .fcount { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); margin-top: 4px; }
.folder-tab .fdelete {
  position: absolute;
  top: 6px;
  right: 9px;
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}
.folder-tab:hover .fdelete { opacity: 1; }
.folder-tab .fdelete:hover { color: var(--down); }

.folder-tab.add-new {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: var(--line-strong);
  color: var(--accent);
  font-size: 15px;
}
.folder-tab.add-new:hover { background: rgba(0, 255, 157, 0.08); }

/* ---------- การ์ดสินค้า ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }

.item-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.item-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--glow); }
.item-card.is-new::after {
  content: 'NEW';
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #00110b;
  background: var(--accent);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}

.item-card .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #040a07;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.item-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-card .thumb .placeholder { color: var(--ink-muted); font-size: 13px; }

.item-card .body { padding: 16px 18px 18px; }
.item-card .name-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.item-card .name {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-card .tag-badge {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}

.gauge .percent-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.gauge .percent-big { font-family: var(--font-mono); font-size: 34px; line-height: 1; }
.gauge .percent-big.up { color: var(--up); text-shadow: 0 0 18px rgba(0, 255, 157, 0.4); }
.gauge .percent-big.down { color: var(--down); text-shadow: 0 0 18px rgba(255, 95, 109, 0.35); }
.gauge .delta { font-family: var(--font-mono); font-size: 13px; }
.gauge .delta.up { color: var(--up); }
.gauge .delta.down { color: var(--down); }
.gauge .arrow { font-size: 11px; margin-right: 2px; }

.percent-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.percent-bar-fill { height: 100%; transition: width 0.5s ease; }
.percent-bar-fill.up { background: linear-gradient(90deg, rgba(0, 255, 157, 0.35), var(--accent)); box-shadow: 0 0 14px rgba(0, 255, 157, 0.5); }
.percent-bar-fill.down { background: linear-gradient(90deg, rgba(255, 95, 109, 0.35), var(--down)); }

.gauge .updated { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); margin-top: 9px; text-align: right; }

.item-card .card-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--line-soft);
  color: var(--ink-muted);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}
.item-card:hover .card-delete { opacity: 1; }
.item-card .card-delete:hover { color: var(--down); }

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 64px 20px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 16px;
}

/* ---------- หน้าต่างป๊อปอัป ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  width: 100%;
  max-width: 460px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow), var(--glow);
  padding: 32px 28px;
}
.modal h2 { font-size: 22px; color: var(--accent); margin-bottom: 22px; }
.modal .field { margin-bottom: 18px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; }

.file-drop {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.file-drop:hover { border-color: var(--accent); color: var(--accent); background: rgba(0, 255, 157, 0.06); }
.file-drop img { max-height: 120px; margin-top: 12px; border-radius: 8px; }

/* ---------- ตาราง ---------- */
.ledger-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.ledger { width: 100%; min-width: 480px; border-collapse: collapse; font-family: var(--font-mono); font-size: 14px; }
table.ledger thead th {
  text-align: left;
  padding: 14px 16px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
table.ledger tbody td { padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: var(--ink); }
table.ledger tbody tr:last-child td { border-bottom: none; }
table.ledger tbody tr:hover { background: rgba(0, 255, 157, 0.05); }
table.ledger .row-del { background: none; border: none; color: var(--ink-muted); font-size: 13px; }
table.ledger .row-del:hover { color: var(--down); }
.history-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); padding: 14px 16px 0; }
.history-grid { margin-bottom: 34px; }

/* ---------- แถบแจ้งเตือน ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  background: var(--surface-solid);
  border: 1px solid var(--accent);
  color: var(--ink);
  padding: 15px 22px;
  border-radius: 14px;
  font-size: 15px;
  box-shadow: var(--shadow), var(--glow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s, opacity 0.25s;
  z-index: 100;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: var(--down); box-shadow: var(--shadow), 0 0 24px rgba(255, 95, 109, 0.4); }

/* =========================================================
   หน้าเข้าสู่ระบบ — Hero รูปปั้นไซเบอร์ + สปอตไลต์เผยภาพ
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
}

.hero-stage { position: absolute; inset: 0; z-index: 1; }
.hero-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-base { opacity: 0.9; }
.hero-mask {
  z-index: 2;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.hero-halo {
  position: absolute;
  z-index: 3;
  border: 2px solid rgba(0, 255, 157, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 60px rgba(0, 255, 157, 0.25), inset 0 0 60px rgba(0, 255, 157, 0.15);
  transition: opacity 0.4s;
}
#heroParticles { position: absolute; inset: 0; z-index: 4; pointer-events: none; }

/* ไล่เฉดให้อ่านตัวอักษรฝั่งซ้ายได้ */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.7) 42%, transparent 72%);
}

.hero-header, .hero-body, .hero-footer { position: relative; z-index: 20; }

.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 34px;
}

.nav-capsule {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.nav-capsule a {
  position: relative;
  color: var(--ink-muted);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
}
.nav-capsule a:hover { color: var(--ink); }
.nav-capsule a.active { color: var(--accent); background: rgba(0, 255, 157, 0.1); }

.hero-actions { display: flex; align-items: center; gap: 10px; }

.glass-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  padding: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.glass-btn:hover { border-color: var(--line-strong); color: var(--accent); }
.glass-btn svg { width: 18px; height: 18px; }
.glass-btn.is-off { color: var(--ink-muted); }

.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: center;
  gap: 46px;
  padding: 20px 34px 40px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.hero-copy { max-width: 560px; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.badge-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 108px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 22px 0 10px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 60px rgba(0, 255, 157, 0.25);
}
.hero-sub {
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 300;
  color: #cfe3da;
  letter-spacing: 0.02em;
  margin: 0 0 30px;
}

/* กล่องเข้าสู่ระบบแบบกระจก */
.login-panel {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: var(--shadow), 0 0 40px rgba(0, 255, 157, 0.1);
}
.login-panel h2 { font-size: 22px; color: #fff; margin-bottom: 6px; }
.login-panel .panel-sub { font-size: 13px; color: var(--ink-muted); margin-bottom: 24px; letter-spacing: 0.05em; }
.login-panel .btn-gold { width: 100%; margin-top: 6px; padding: 15px; font-size: 16px; }

.error-msg {
  display: none;
  background: rgba(255, 95, 109, 0.12);
  border: 1px solid rgba(255, 95, 109, 0.5);
  color: #ffb3ba;
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 18px;
}
.error-msg.show { display: block; }

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 34px 26px;
  font-size: 12px;
  color: var(--ink-muted);
}
.hero-socials { display: flex; gap: 10px; }
.hero-socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  color: var(--ink-muted);
  transition: color 0.2s, border-color 0.2s;
}
.hero-socials a:hover { color: var(--accent); border-color: var(--line-strong); }
.hero-socials svg { width: 15px; height: 15px; }

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  position: relative;
}
.scroll-mouse::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
}

/* เมนูมือถือ */
.mobile-menu-toggle { display: none; }
.mobile-menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  padding: 90px 22px 22px;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(18px);
}
.mobile-menu-drawer.show { display: block; }
.mobile-menu-drawer .menu-grid { display: grid; gap: 12px; }
.mobile-menu-drawer a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-size: 17px;
}
.mobile-menu-drawer a:hover { color: var(--accent); background: rgba(0, 255, 157, 0.07); }

/* ---------- สิทธิ์การใช้งาน ---------- */
[hidden] { display: none !important; }
body:not(.is-admin) #addFolderBtn,
body:not(.is-admin) .folder-tab.add-new,
body:not(.is-admin) .fdelete,
body:not(.is-admin) .card-delete { display: none !important; }

/* =========================================================
   จอแท็บเล็ตและโทรศัพท์
   ========================================================= */
@media (max-width: 1024px) {
  .hero-body { grid-template-columns: 1fr; gap: 28px; align-content: center; }
  .hero-copy { max-width: 100%; }
  .login-panel { max-width: 460px; }
  .hero-scrim { background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0.9) 100%); }
}

@media (max-width: 960px) {
  .topbar { padding: 16px 20px; flex-wrap: wrap; }
  .page { padding: 34px 22px 70px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
}

@media (max-width: 768px) {
  .nav-capsule, .hero-explore { display: none; }
  .mobile-menu-toggle { display: grid; }
  .hero-stage img { object-position: 75% center; opacity: 0.85; }
  .hero-header { padding: 16px 18px; }
  .hero-body { padding: 12px 18px 30px; }
  .hero-footer { padding: 0 18px 20px; }
}

@media (max-width: 640px) {
  html, body { font-size: 16px; }

  .topbar { padding: 14px 16px; justify-content: center; }
  .brand { width: 100%; justify-content: center; }
  .nav-links { width: 100%; justify-content: center; gap: 8px; row-gap: 8px; }
  .nav-links a { padding: 8px 13px; font-size: 13px; }
  .session-info { padding: 7px 12px; }
  .session-user { font-size: 12px; }
  .session-countdown { font-size: 14px; }

  .page { padding: 26px 16px calc(60px + env(safe-area-inset-bottom)); }
  .page-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-head h1 { font-size: 26px; }

  /* ตัวอักษรในช่องกรอกต้อง ≥16px ไม่งั้น iOS จะซูมหน้าจอเอง */
  .field input, .field select, input, select, textarea { font-size: 16px; }
  .btn-gold, .btn-ghost, .calc-btn, .calc-add-row, .glass-btn { min-height: 44px; }
  .calc-btn, .btn-gold.calc-btn { width: 100%; }

  .calc-grid { max-width: 100%; }
  .ledger-form, .calc-card { padding: 22px 18px; }
  .result-box { font-size: 22px; }
  .cost-result-display { font-size: 26px; }

  .cost-row { flex-wrap: wrap; }
  .cost-row .cost-value { flex: 1 1 110px; }
  .cost-row .cost-condition { flex: 1 1 100%; }
  .cost-row .cost-row-result { flex: 1 1 auto; text-align: left; }

  .card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .folder-tab { min-width: 132px; padding: 13px 16px; }

  .modal { padding: 26px 20px; max-height: 88vh; overflow-y: auto; }

  .toast { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); text-align: center; }

  .hero-title { letter-spacing: 0.01em; }
  .hero-footer { flex-wrap: wrap; gap: 12px; justify-content: center; }
}

@media (max-width: 400px) {
  .card-grid { grid-template-columns: 1fr; }
  .brand .mark { font-size: 21px; }
  .page { padding-left: 12px; padding-right: 12px; }
}

/* ปุ่มปิดเมนูมือถือ */
.mobile-menu-drawer .drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
}
.mobile-menu-drawer .drawer-close svg { pointer-events: none; }

@media (max-width: 768px) {
  .brand .mark { white-space: nowrap; font-size: 20px; }
  .hero-header .brand .sub { display: none; }
  .hero-header { gap: 10px; }
}

/* ---------- แท็บโฟลเดอร์: รูปพื้นหลัง + การ์ดเปอร์เซ็นต์สูงสุด ---------- */
.folder-tab { background-size: cover; background-position: center; overflow: hidden; }
.folder-tab.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.86));
}
.folder-tab.has-bg .fname { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }
.folder-tab > * { position: relative; z-index: 1; }

.folder-tab .ftop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 255, 157, 0.2);
}
.folder-tab .ftop-name {
  font-size: 12px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.folder-tab .ftop-pct {
  flex: none;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.45);
}

.folder-tab .fbg {
  position: absolute;
  top: 6px;
  right: 30px;
  z-index: 2;
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}
.folder-tab:hover .fbg { opacity: 1; }
.folder-tab .fbg:hover { color: var(--accent); }
.folder-tab .fdelete { z-index: 2; }

/* ---------- แถบวิ่งด้านบน: เปอร์เซ็นต์รายโฟลเดอร์ ---------- */
.ticker-item { display: inline-flex; align-items: baseline; gap: 10px; }
.ticker-item .t-folder { color: var(--ink); font-family: var(--font-body); font-size: 13px; }
.ticker-item .t-card { color: var(--ink-muted); font-size: 12px; }
.ticker-item .t-percent { font-size: 13px; }

/* ---------- สุ่มเลขหรรษา ---------- */
.lucky-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
}

.lucky-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 22px 22px;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.lucky-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.lucky-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.lucky-card.rolling { border-color: var(--accent); box-shadow: var(--glow); }
.lucky-card.landed { box-shadow: var(--glow-strong); }

.lucky-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.lucky-row {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 11px;
}
.lucky-type { font-size: 12px; color: var(--ink-muted); }

.lucky-name {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  min-height: 1.6em;
}

.lucky-number {
  font-family: var(--font-mono);
  font-size: 58px;
  line-height: 1.15;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-shadow: 0 0 26px rgba(0, 255, 157, 0.5);
  margin: 6px 0 4px;
}
.lucky-card.rolling .lucky-number { opacity: 0.75; filter: blur(0.6px); }

.lucky-vibe { font-size: 13px; color: var(--ink-muted); min-height: 1.5em; margin-bottom: 18px; }
.lucky-roll { width: 100%; }
.lucky-roll:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 640px) {
  .lucky-grid { grid-template-columns: 1fr; gap: 16px; }
  .lucky-number { font-size: 48px; }
  .lucky-roll { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .lucky-card, .lucky-card:hover { transition: none; transform: none; }
}

/* ---------- กระบอกเซียมซี ---------- */
.lucky-quota { text-align: right; }
.quota-left {
  display: block;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
}
.quota-note { font-size: 12px; color: var(--ink-muted); }

.shaker-wrap { text-align: center; margin: 10px auto 40px; max-width: 520px; }

.shaker {
  position: relative;
  width: 96px;
  height: 130px;
  margin: 0 auto 22px;
  transform-origin: 50% 100%;
}
.shaker .cup {
  position: absolute;
  bottom: 0;
  left: 12px;
  width: 72px;
  height: 88px;
  border: 1px solid var(--line-strong);
  border-radius: 8px 8px 16px 16px;
  background: linear-gradient(180deg, rgba(0, 255, 157, 0.12), rgba(0, 0, 0, 0.8));
  box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 255, 157, 0.2);
}
.shaker .stick {
  position: absolute;
  bottom: 60px;
  width: 6px;
  height: 66px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(0, 255, 157, 0.25));
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
  transform-origin: 50% 100%;
}
.shaker .s1 { left: 24px; transform: rotate(-12deg); }
.shaker .s2 { left: 36px; transform: rotate(-4deg); height: 74px; }
.shaker .s3 { left: 48px; transform: rotate(5deg); height: 70px; }
.shaker .s4 { left: 60px; transform: rotate(13deg); }

.shaker.shaking { animation: shake-cup 0.34s ease-in-out infinite; }
.shaker.shaking .s2 { animation: stick-up 0.5s ease-in-out infinite; }
.shaker.shaking .s3 { animation: stick-up 0.62s ease-in-out infinite 0.1s; }

@keyframes shake-cup {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-6px); }
}
@keyframes stick-up {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

.shake-btn { min-width: 240px; font-size: 16px; padding: 15px 30px; }
.shake-btn:disabled { opacity: 0.55; }

.shaker-status { margin-top: 14px; font-size: 14px; color: var(--ink-muted); min-height: 1.6em; }
.shaker-status.waiting { color: var(--accent); }

@media (max-width: 640px) {
  .lucky-quota { text-align: left; }
  .shake-btn { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .shaker.shaking, .shaker.shaking .stick { animation: none; }
}

/* ---------- ใบเซียมซี: คำทำนายดวง ---------- */
.fortune-card {
  position: relative;
  max-width: 660px;
  margin: 0 auto 42px;
  padding: 30px 28px 24px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.fortune-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.75;
}

.fortune-slip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.fortune-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.fortune-level { font-family: var(--font-display); font-size: 21px; color: var(--accent); }
.fortune-stars { font-size: 19px; letter-spacing: 0.12em; color: var(--accent); }

.fortune-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 auto 22px;
  max-width: 540px;
}

.fortune-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  text-align: left;
  margin-bottom: 20px;
}
.fortune-sec {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 13px 15px;
}
.fortune-sec .sec-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.fortune-sec .sec-text { font-size: 14px; line-height: 1.65; color: var(--ink); }

.fortune-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fortune-chip {
  font-size: 13px;
  color: var(--ink-muted);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}
.fortune-chip b { color: var(--ink); font-weight: 500; margin-left: 5px; }

.fortune-advice {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink-muted);
  min-height: 1em;
}

/* ระดับดวง — ยิ่งดี ยิ่งเรืองแสง (ไม่มีระดับไม่ดี) */
.fortune-card.tone-fair { border-color: rgba(255, 255, 255, 0.18); color: #cfe3da; }
.fortune-card.tone-fair .fortune-level,
.fortune-card.tone-fair .fortune-stars { color: #cfe3da; }
.fortune-card.tone-good { border-color: var(--line); color: var(--accent); box-shadow: var(--glow); }
.fortune-card.tone-excellent {
  border-color: var(--accent);
  box-shadow: var(--glow-strong);
  color: var(--accent);
}
.fortune-card.tone-excellent .fortune-level,
.fortune-card.tone-excellent .fortune-stars { text-shadow: 0 0 18px rgba(0, 255, 157, 0.6); }

.fortune-card.revealed { animation: fortune-pop 0.9s ease; }
@keyframes fortune-pop {
  0% { transform: scale(0.97); opacity: 0.45; }
  55% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); }
}

@media (max-width: 640px) {
  .fortune-card { padding: 24px 18px 20px; }
  .fortune-text { font-size: 15px; }
  .fortune-sections { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fortune-card.revealed { animation: none; }
}

/* =========================================================
   ปรับกรอบทุกชิ้นให้เป็นระบบเดียวกัน (frame system)
   - กล่องใหญ่ (การ์ด/แผง/หน้าต่าง) : มุม 20px เส้นขอบ --line
   - กล่องย่อยข้างใน (ช่องกรอก/ผลลัพธ์/ชิป) : มุม 12px เส้นขอบ --line-soft
   - ปุ่มทุกชนิด : มุมแคปซูล
   ========================================================= */
:root {
  --r-card: 20px;
  --r-inner: 12px;
  --r-chip: 999px;
}

/* --- กล่องใหญ่ --- */
.ledger-form,
.calc-card,
.lucky-card,
.fortune-card,
.modal,
.item-card,
.folder-tab,
.empty-state,
.ledger-table-wrap,
.login-panel,
.toast {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
}

/* --- กล่องย่อยข้างใน --- */
.field input,
.field select,
.result-box,
.file-drop,
.calc-add-row,
.fortune-sec,
.cost-row .cost-value,
.cost-row .cost-condition,
.brand .emblem {
  border-radius: var(--r-inner);
  border: 1px solid var(--line-soft);
}

/* --- ชิปและป้ายกำกับ --- */
.fortune-chip,
.lucky-row,
.tag-badge,
.eyebrow,
.badge-pill,
.status-badge,
.session-info,
.nav-links a,
.nav-capsule,
.percent-bar-track {
  border-radius: var(--r-chip);
}

/* --- ปุ่ม --- */
.btn-gold,
.btn-ghost,
.calc-btn,
.shake-btn,
.lucky-roll {
  border-radius: var(--r-chip);
}
.glass-btn { border-radius: 50%; }

/* --- สถานะพิเศษยังคงเน้นด้วยสีขอบเหมือนเดิม --- */
.folder-tab.active { border-color: var(--accent); }
.folder-tab.add-new { border-style: dashed; border-color: var(--line-strong); }
.item-card:hover { border-color: var(--line-strong); }
.empty-state { border-style: dashed; }
.calc-add-row { border-style: dashed; border-color: var(--line-strong); }
.file-drop { border-style: dashed; border-color: var(--line); }
.field input:focus,
.field select:focus,
.cost-row .cost-value:focus,
.cost-row .cost-condition:focus { border-color: var(--accent); }
.result-box.invalid { border-color: rgba(255, 95, 109, 0.6); }
.toast.error { border-color: var(--down); }
.fortune-card.tone-fair { border-color: rgba(255, 255, 255, 0.18); }
.fortune-card.tone-good { border-color: var(--line); }
.fortune-card.tone-excellent { border-color: var(--accent); }

/* เส้นนีออนบางบนหัวกล่องใหญ่ ให้ทุกใบมีเหมือนกัน */
.ledger-form::before,
.calc-card::before,
.lucky-card::before,
.fortune-card::before,
.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.7;
}
.modal { position: relative; overflow: hidden; color: var(--accent); }
.modal h2, .modal .field, .modal .actions { color: var(--ink); }
.item-card, .folder-tab { position: relative; }

@media (max-width: 640px) {
  :root { --r-card: 16px; --r-inner: 10px; }
}
/* =========================================================
   OLYMPUS FORTUNE - RANDOM PAGE ONLY
   ทุก selector หลักผูกกับ .fortune-page
   เพื่อไม่ให้กระทบหน้าอื่น
========================================================= */


/* =========================================================
   ROOM BUTTON
========================================================= */

.fortune-page .fortune-rooms {
  grid-template-columns:
    repeat(10, minmax(90px, 1fr));
}


.fortune-page .room-btn {
  position: relative;
  overflow: hidden;
}


.fortune-page .room-btn::before {
  content: "";
  position: absolute;

  width: 100px;
  height: 100px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(0,255,157,.12),
      transparent 70%
    );

  top: -50px;
  right: -50px;

  opacity: 0;

  transition: .3s;
}


.fortune-page .room-btn:hover::before,
.fortune-page .room-btn.active::before {
  opacity: 1;
}


.fortune-page .room-btn.active {
  transform: translateY(-2px);
}


/* =========================================================
   ROOM PANEL
========================================================= */

.fortune-page .room-panel {
  position: relative;

  overflow: hidden;
}


.fortune-page .room-panel::after {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(0,255,157,.07),
      transparent 42%
    );
}


/* =========================================================
   RESULT
========================================================= */

.fortune-page .fortune-card {
  box-shadow:
    0 20px 70px
    rgba(0,0,0,.35);
}


.fortune-page .fortune-card.revealed {
  animation:
    fortunePageReveal .8s ease;
}


@keyframes fortunePageReveal {

  0% {
    opacity: 0;
    transform:
      translateY(20px)
      scale(.96);
  }

  55% {
    opacity: 1;
    transform:
      translateY(-5px)
      scale(1.015);
  }

  100% {
    transform:
      translateY(0)
      scale(1);
  }

}


/* =========================================================
   NUMBER
========================================================= */

.fortune-page .number-box strong {
  text-shadow:
    0 0 18px
    rgba(255,215,106,.35);
}


/* =========================================================
   WHEEL
========================================================= */

.fortune-page .wheel-area {
  position: relative;
}


.fortune-page .fortune-wheel {
  box-shadow:
    0 0 35px
    rgba(0,255,157,.12),
    0 0 70px
    rgba(255,215,106,.05);
}


.fortune-page .wheel-center {
  box-shadow:
    0 0 20px
    rgba(255,215,106,.18);
}


/* =========================================================
   BALL JAR
========================================================= */

.fortune-page .ball-jar {
  display: flex;

  justify-content: center;

  padding: 25px;
}


.fortune-page .jar-glass {
  position: relative;

  width: 360px;
  height: 260px;

  border:
    2px solid
    rgba(180,255,235,.22);

  border-radius:
    35px 35px 80px 80px;

  background:
    linear-gradient(
      180deg,
      rgba(180,255,235,.04),
      rgba(0,0,0,.20)
    );

  box-shadow:
    inset 0 0 35px
    rgba(255,255,255,.03),
    0 20px 45px
    rgba(0,0,0,.3);
}


.fortune-page .magic-ball {
  position: absolute;

  width: 58px;
  height: 58px;

  border: 0;

  border-radius: 50%;

  color: white;

  font-weight: 900;

  background:
    radial-gradient(
      circle at 30% 25%,
      #ffffff,
      #36e8b1 18%,
      #008e67 55%,
      #003f2d
    );

  box-shadow:
    0 8px 20px
    rgba(0,0,0,.35);

  transition: .25s;
}


.fortune-page .magic-ball:hover {
  transform:
    translateY(-6px)
    scale(1.06);
}


.fortune-page .magic-ball.selected {
  transform:
    scale(1.15)
    translateY(-10px);

  box-shadow:
    0 0 25px
    rgba(0,255,157,.65);
}


.fortune-page .ball-1 {
  left: 60px;
  top: 55px;
}


.fortune-page .ball-2 {
  left: 145px;
  top: 35px;
}


.fortune-page .ball-3 {
  right: 55px;
  top: 60px;
}


.fortune-page .ball-4 {
  left: 80px;
  bottom: 45px;
}


.fortune-page .ball-5 {
  left: 165px;
  bottom: 30px;
}


.fortune-page .ball-6 {
  right: 70px;
  bottom: 45px;
}


.fortune-page .ball-shake {
  animation:
    jarShake .12s infinite;
}


@keyframes jarShake {

  0% {
    transform: rotate(-1deg);
  }

  50% {
    transform: rotate(1deg);
  }

  100% {
    transform: rotate(-1deg);
  }

}


/* =========================================================
   TAROT
========================================================= */

.fortune-page .tarot-grid {
  grid-template-columns:
    repeat(5, minmax(90px, 120px));
}


.fortune-page .tarot-card {
  position: relative;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      #173b2d,
      #07110d
    );

  box-shadow:
    inset 0 0 30px
    rgba(0,0,0,.5),
    0 8px 20px
    rgba(0,0,0,.2);
}


.fortune-page .tarot-card::before {
  content: "";

  position: absolute;

  inset: 7px;

  border:
    1px solid
    rgba(255,215,106,.28);

  border-radius: 7px;

  pointer-events: none;
}


.fortune-page .tarot-back {
  display: block;

  font-size: 34px;

  color:
    rgba(255,215,106,.65);
}


.fortune-page .tarot-index {
  display: block;

  margin-top: 8px;

  color: var(--gold);

  font-family: monospace;

  font-size: 11px;
}


.fortune-page .tarot-card.selected {
  transform:
    translateY(-12px)
    rotate(-2deg);

  border-color:
    var(--green);

  box-shadow:
    0 0 35px
    rgba(0,255,157,.2);
}


.fortune-page .tarot-card.has-custom-image {
  background-position: center;
  background-size: cover;
}


.fortune-page .tarot-card.has-custom-image::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.1),
      rgba(0,0,0,.55)
    );
}


/* =========================================================
   TREE
========================================================= */

.fortune-page .lucky-tree {
  position: relative;

  filter:
    drop-shadow(
      0 15px 20px
      rgba(0,0,0,.3)
    );
}


.fortune-page .lucky-tree.shaking {
  animation:
    cuteTreeShake .12s infinite;
}


@keyframes cuteTreeShake {

  0% {
    transform:
      rotate(-5deg)
      translateX(-3px);
  }

  50% {
    transform:
      rotate(5deg)
      translateX(3px);
  }

  100% {
    transform:
      rotate(-5deg)
      translateX(-3px);
  }

}


.fortune-page .fallen-number {
  min-width: 42px;

  text-align: center;

  font-size: 20px;

  box-shadow:
    0 7px 18px
    rgba(255,215,106,.15);
}


/* =========================================================
   GOD
========================================================= */

.fortune-page .god-grid {
  grid-template-columns:
    repeat(5, minmax(140px, 1fr));
}


.fortune-page .god-card {
  position: relative;

  overflow: hidden;

  min-height: 210px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  background:
    linear-gradient(
      150deg,
      rgba(30,20,8,.6),
      rgba(7,13,11,.9)
    );
}


.fortune-page .god-image {
  width: 105px;
  height: 105px;

  display: grid;
  place-items: center;

  margin-bottom: 12px;

  border-radius: 50%;

  overflow: hidden;

  background:
    radial-gradient(
      circle,
      rgba(255,215,106,.14),
      rgba(255,215,106,.02)
    );

  border:
    1px solid
    rgba(255,215,106,.2);
}


.fortune-page .god-image span {
  font-size: 65px;
}


.fortune-page .god-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}


.fortune-page .god-card.selected {
  border-color:
    var(--gold);

  box-shadow:
    0 0 35px
    rgba(255,215,106,.14);

  transform:
    translateY(-7px);
}


/* =========================================================
   FIRECRACKER
========================================================= */

.fortune-page .firecracker {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(140px, 220px));

  gap: 20px;

  align-items: center;
}


.fortune-page .cracker-box {
  position: relative;

  min-height: 180px;

  border:
    2px solid
    rgba(255,215,106,.18);

  border-radius: 18px;

  color: white;

  background:
    linear-gradient(
      145deg,
      #a62525,
      #4c0e0e
    );

  box-shadow:
    0 15px 35px
    rgba(0,0,0,.3);

  transition: .2s;

  overflow: hidden;
}


.fortune-page .cracker-box span {
  display: block;

  font-size: 55px;

  margin-bottom: 15px;
}


.fortune-page .cracker-box:hover {
  transform:
    translateY(-7px);

  border-color:
    var(--gold);
}


.fortune-page .cracker-box.exploding {
  animation:
    crackerShake .1s infinite;
}


@keyframes crackerShake {

  0% {
    transform:
      rotate(-4deg);
  }

  50% {
    transform:
      rotate(4deg);
  }

  100% {
    transform:
      rotate(-4deg);
  }

}


.fortune-page .cracker-box.exploding::after {
  content: "💥";

  position: absolute;

  inset: 0;

  display: grid;

  place-items: center;

  font-size: 80px;

  animation:
    explosion .45s infinite;
}


@keyframes explosion {

  0% {
    transform:
      scale(.6);
    opacity: .4;
  }

  100% {
    transform:
      scale(1.4);
    opacity: 1;
  }

}


.fortune-page .cracker-box.burst {
  animation:
    burstDone .5s ease;
}


@keyframes burstDone {

  0% {
    transform:
      scale(1);
  }

  50% {
    transform:
      scale(1.1);
  }

  100% {
    transform:
      scale(1);
  }

}


/* =========================================================
   RELEASE
========================================================= */

.fortune-page .release-card {
  position: relative;

  overflow: hidden;

  min-height: 220px;
}


.fortune-page .release-animation {
  font-size: 65px;

  transition: .2s;
}


.fortune-page .release-moving
.release-animation {
  animation:
    releaseMove 1.8s ease;
}


@keyframes releaseMove {

  0% {
    transform:
      translateX(0)
      scale(1);
  }

  45% {
    transform:
      translateX(90px)
      scale(1.12);
  }

  100% {
    transform:
      translateX(230px)
      scale(.8);
    opacity: .3;
  }

}


.fortune-page .release-success {
  border-color:
    var(--gold);

  box-shadow:
    0 0 35px
    rgba(255,215,106,.14);
}


/* =========================================================
   INCENSE
========================================================= */

.fortune-page .incense-area {
  min-height: 400px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 20px;
}


.fortune-page .incense-button {
  position: relative;

  width: 180px;
  height: 230px;

  border: 0;

  background:
    transparent;

  cursor: pointer;
}


.fortune-page .incense-stick {
  position: absolute;

  left: 50%;

  bottom: 25px;

  transform:
    translateX(-50%);

  font-size: 100px;

  transition: .3s;
}


.fortune-page .incense-fire {
  position: absolute;

  left: 50%;

  top: 20px;

  transform:
    translateX(-50%);

  font-size: 50px;

  opacity: 0;
}


.fortune-page .incense-smoke {
  position: absolute;

  left: 50%;

  top: 0;

  transform:
    translateX(-50%);

  font-size: 42px;

  opacity: 0;
}


.fortune-page .incense-button.burning
.incense-fire {
  opacity: 1;

  animation:
    fireFlicker .15s infinite;
}


@keyframes fireFlicker {

  0% {
    transform:
      translateX(-50%)
      scale(.9);
  }

  50% {
    transform:
      translateX(-50%)
      scale(1.1);
  }

  100% {
    transform:
      translateX(-50%)
      scale(.95);
  }

}


.fortune-page .incense-button.burning
.incense-smoke {
  opacity: .55;

  animation:
    smokeUp 2s infinite;
}


@keyframes smokeUp {

  0% {
    transform:
      translateX(-50%)
      translateY(20px)
      scale(.7);

    opacity: .15;
  }

  100% {
    transform:
      translateX(-50%)
      translateY(-80px)
      scale(1.3);

    opacity: 0;
  }

}


.fortune-page .incense-progress {
  width:
    min(500px, 90%);

  height: 9px;

  border-radius: 20px;

  overflow: hidden;

  background:
    rgba(255,255,255,.06);
}


.fortune-page .incense-progress-bar {
  width: 0;

  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #ff6b2c,
      #ffd76a,
      #00ff9d
    );

  transition:
    width .08s linear;
}


.fortune-page .incense-digits {
  display: flex;

  gap: 15px;
}


.fortune-page .incense-digits span {
  width: 60px;
  height: 70px;

  display: grid;

  place-items: center;

  border-radius: 12px;

  color: var(--gold);

  font-family: monospace;

  font-size: 34px;

  font-weight: 900;

  background:
    rgba(255,215,106,.04);

  border:
    1px solid
    rgba(255,215,106,.18);

  transition: .3s;
}


.fortune-page .incense-digits span:not(:empty) {
  text-shadow:
    0 0 20px
    rgba(255,215,106,.5);
}


/* =========================================================
   ADMIN
========================================================= */

.fortune-page .admin-image-box {
  margin-top: 25px;

  padding: 16px;

  border:
    1px solid
    rgba(255,215,106,.14);

  border-radius: 12px;

  background:
    rgba(255,215,106,.025);
}


.fortune-page .admin-image-title {
  color: var(--gold);

  font-weight: 800;

  margin-bottom: 12px;
}


.fortune-page .admin-image-box input[type="file"] {
  width: 100%;

  color: #9bb1a8;

  font-size: 11px;
}


.fortune-page .god-admin-list {
  display: grid;

  gap: 10px;
}


.fortune-page .god-admin-row {
  display: grid;

  grid-template-columns:
    180px 1fr;

  gap: 10px;

  align-items: center;

  padding: 9px;

  border-radius: 8px;

  background:
    rgba(0,0,0,.18);
}


.fortune-page .god-admin-row span {
  color: #c8ded6;

  font-size: 12px;
}


/* =========================================================
   COOLDOWN
========================================================= */

.fortune-page .room-counter.cooldown {
  color:
    #ffcf6a;

  border-color:
    rgba(255,190,60,.35);

  background:
    rgba(255,190,60,.05);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

  .fortune-page .fortune-rooms {
    grid-template-columns:
      repeat(5, 1fr);
  }

  .fortune-page .god-grid {
    grid-template-columns:
      repeat(3, 1fr);
  }

}


@media (max-width: 760px) {

  .fortune-page .fortune-rooms {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .fortune-page .tarot-grid {
    grid-template-columns:
      repeat(5, 1fr);
  }

  .fortune-page .god-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .fortune-page .firecracker {
    grid-template-columns:
      1fr;
  }

  .fortune-page .cracker-box {
    min-height: 140px;
  }

  .fortune-page .jar-glass {
    width: 310px;
  }

  .fortune-page .god-admin-row {
    grid-template-columns:
      1fr;
  }

}


@media (max-width: 450px) {

  .fortune-page .fortune-rooms {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .fortune-page .room-btn {
    min-height: 90px;
  }

  .fortune-page .room-icon {
    font-size: 20px;
  }

  .fortune-page .room-btn strong {
    font-size: 10px;
  }

  .fortune-page .tarot-grid {
    gap: 5px;
  }

  .fortune-page .tarot-card {
    font-size: 16px;
  }

  .fortune-page .god-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .fortune-page .god-image {
    width: 75px;
    height: 75px;
  }

  .fortune-page .god-image span {
    font-size: 45px;
  }

  .fortune-page .jar-glass {
    width: 280px;
    height: 240px;
  }

}
/* =========================================================
   RANDOM PAGE FINAL OVERRIDES
   เฉพาะ .fortune-page เท่านั้น
========================================================= */
.fortune-page .room-panel { display: none; }
.fortune-page .room-panel.active { display: block; }
.fortune-page .room-btn:disabled,
.fortune-page .action-btn:disabled,
.fortune-page .btn-gold:disabled,
.fortune-page .incense-button:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.2); }
.fortune-page .ball-count-choice { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.fortune-page .count-choice { border:1px solid var(--line); background:rgba(255,255,255,.04); color:var(--ink); padding:8px 14px; border-radius:999px; cursor:pointer; }
.fortune-page .count-choice.active { border-color:var(--gold); color:var(--gold); box-shadow:0 0 18px rgba(255,215,106,.12); }
.fortune-page .magic-ball.selected { transform:translateY(-10px) scale(1.08); box-shadow:0 0 25px rgba(255,215,106,.35); border-color:var(--gold); }
.fortune-page .tarot-card { min-height:170px; display:flex; align-items:center; justify-content:center; flex-direction:column; }
.fortune-page .tarot-back { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; width:100%; height:100%; }
.fortune-page .tarot-back-mark { font-size:38px; }
.fortune-page .tarot-back-number { font:800 13px monospace; color:var(--gold); letter-spacing:2px; }
.fortune-page .tarot-card.revealed { animation: tarotReveal .8s ease; }
@keyframes tarotReveal { 0%{transform:rotateY(0) translateY(-10px)} 50%{transform:rotateY(90deg) scale(1.05)} 100%{transform:rotateY(0) translateY(0)} }
.fortune-page .tarot-card.has-custom-image { background-repeat:no-repeat; background-position:center; background-size:cover; }
.fortune-page .tarot-card.has-custom-image .tarot-back { opacity:.9; }
.fortune-page .god-image-wrap { width:105px; height:105px; display:grid; place-items:center; margin-bottom:12px; border-radius:50%; overflow:hidden; background:radial-gradient(circle,rgba(255,215,106,.14),rgba(255,215,106,.02)); border:1px solid rgba(255,215,106,.2); position:relative; }
.fortune-page .god-image-wrap img { width:100%; height:100%; object-fit:cover; display:block; }
.fortune-page .god-image-wrap img:not([src]), .fortune-page .god-image-wrap img[src=""] { display:none; }
.fortune-page .god-fallback { position:absolute; font-size:60px; z-index:0; }
.fortune-page .god-image-wrap img[src] + .god-fallback { opacity:0; }
.fortune-page .god-card { cursor:pointer; }
.fortune-page .cracker-stage { min-height:110px; display:grid; place-items:center; font-size:65px; margin-top:20px; }
.fortune-page .cracker-stage.explode { animation: crackerBurst .35s infinite alternate; }
@keyframes crackerBurst { from{transform:scale(.8) rotate(-4deg); filter:brightness(1)} to{transform:scale(1.2) rotate(4deg); filter:brightness(1.6)} }
.fortune-page .cracker-box.selected { border-color:var(--gold); transform:translateY(-5px); }
.fortune-page .release-animation-stage { min-height:90px; display:grid; place-items:center; font-size:62px; margin:15px 0; }
.fortune-page .release-animation-stage.walk { animation: releaseWalk .55s infinite alternate; }
@keyframes releaseWalk { from{transform:translateX(-18px)} to{transform:translateX(18px)} }
.fortune-page .release-card.disabled { opacity:.5; pointer-events:none; }
.fortune-page .admin-upload-list { display:grid; gap:8px; margin-top:12px; }
.fortune-page .admin-upload-row { display:grid; grid-template-columns:70px minmax(150px,1fr) auto; gap:8px; align-items:center; padding:8px; border:1px solid var(--line-soft); border-radius:12px; }
.fortune-page .admin-upload-row input { min-width:0; }
.fortune-page .fortune-card { scroll-margin-top:90px; }
@media (max-width:900px) { .fortune-page .fortune-rooms { grid-template-columns:repeat(2,minmax(120px,1fr)); } .fortune-page .god-grid { grid-template-columns:repeat(2,minmax(140px,1fr)); } .fortune-page .tarot-grid { grid-template-columns:repeat(5,minmax(58px,1fr)); } }
@media (max-width:640px) { .fortune-page .fortune-rooms { grid-template-columns:repeat(2,minmax(0,1fr)); } .fortune-page .god-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .fortune-page .tarot-grid { grid-template-columns:repeat(5,minmax(48px,1fr)); } .fortune-page .tarot-card { min-height:130px; } .fortune-page .admin-upload-row { grid-template-columns:1fr; } }

/* =========================================================
   MAHA CHOK VISUAL OVERHAUL — random page only
   Chinese fortune / premium Siamsi-inspired visual system
========================================================= */
.fortune-page {
  --mah-red:#7a1018;
  --mah-red-deep:#3d070b;
  --mah-gold:#d9a441;
  --mah-gold-bright:#ffe19a;
  --mah-ink:#28170f;
  --mah-paper:#fff8e8;
  --mah-paper-2:#f7e8c2;
  --mah-green:#1e5a45;
  background:
    radial-gradient(circle at 50% -10%, rgba(255,216,115,.22), transparent 34%),
    radial-gradient(circle at 10% 40%, rgba(185,35,36,.12), transparent 25%),
    linear-gradient(180deg,#2b070b 0%,#5b0d13 16%,#8c171d 45%,#f2dfb2 100%);
  color:var(--mah-ink);
  min-height:100vh;
}
.fortune-page::before,
.fortune-page::after { content:""; position:fixed; inset:0; pointer-events:none; z-index:0; }
.fortune-page::before { opacity:.16; background-image:radial-gradient(#fff 1px,transparent 1px); background-size:23px 23px; mask-image:linear-gradient(#000,transparent 70%); }
.fortune-page::after { box-shadow:inset 0 0 120px rgba(0,0,0,.45); }
.fortune-page .topbar,.fortune-page .page { position:relative; z-index:1; }
.fortune-page-main { max-width:1280px; margin:0 auto; padding:28px 20px 70px; }

.fortune-page .page-head {
  position:relative; overflow:hidden; padding:34px 34px 30px; border:1px solid rgba(255,220,143,.45); border-radius:30px;
  background:linear-gradient(145deg,rgba(61,7,11,.97),rgba(128,16,24,.94));
  box-shadow:0 28px 70px rgba(30,0,0,.35), inset 0 1px rgba(255,255,255,.12);
  color:#fff6df;
}
.fortune-page .page-head::before { content:"福"; position:absolute; right:28px; top:-22px; font-size:170px; line-height:1; color:rgba(255,208,91,.08); transform:rotate(8deg); }
.fortune-page .eyebrow,.fortune-page .room-kicker { color:var(--mah-gold-bright); letter-spacing:.16em; font-weight:800; }
.fortune-page .page-head h1 { margin:7px 0 8px; font-size:clamp(30px,5vw,54px); line-height:1; text-shadow:0 4px 20px rgba(0,0,0,.35); }
.fortune-page .page-description { color:#f6dfb2; max-width:650px; }
.fortune-page .lucky-quota { position:relative; z-index:2; min-width:190px; padding:15px 18px; border-radius:18px; background:rgba(255,247,218,.09); border:1px solid rgba(255,225,154,.24); backdrop-filter:blur(12px); }
.fortune-page .quota-left { color:#ffe4a0; font-size:26px; font-weight:900; display:block; }
.fortune-page .quota-note { color:#ead9b9; font-size:12px; line-height:1.55; }

.fortune-page .daily-profile { margin:18px 0; padding:18px 20px; border-radius:24px; background:linear-gradient(135deg,#fff8e9,#f4dfb1); border:1px solid #d7b66b; box-shadow:0 14px 36px rgba(75,22,8,.18); display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:16px; }
.fortune-page .profile-icon { width:62px; height:62px; display:grid; place-items:center; border-radius:50%; font-size:31px; background:radial-gradient(circle at 35% 30%,#fff3bd,#d99a31 55%,#7a1018 100%); box-shadow:0 0 0 4px rgba(122,16,24,.08),0 8px 20px rgba(122,16,24,.2); }
.fortune-page .profile-title { font-weight:900; font-size:18px; color:#5b1015; }
.fortune-page .profile-description { color:#765b39; font-size:13px; line-height:1.6; }
.fortune-page .profile-score { text-align:right; padding-left:18px; border-left:1px solid #d9bd7e; }
.fortune-page .profile-score span { display:block; color:#8b6a42; font-size:11px; }
.fortune-page .profile-score strong { color:#771018; font-size:16px; }

.fortune-page .fortune-rooms { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin:18px 0; }
.fortune-page .room-btn { position:relative; overflow:hidden; min-height:126px; text-align:left; padding:15px; border:1px solid rgba(255,215,130,.28); border-radius:20px; color:#fce9bf; background:linear-gradient(145deg,#5d0d13,#3e070b); box-shadow:0 10px 24px rgba(46,4,7,.24),inset 0 1px rgba(255,255,255,.07); transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease; }
.fortune-page .room-btn::before { content:""; position:absolute; width:90px; height:90px; border-radius:50%; right:-35px; top:-35px; background:radial-gradient(circle,rgba(255,215,112,.25),transparent 68%); }
.fortune-page .room-btn:hover:not(:disabled) { transform:translateY(-4px); border-color:#e9bd5b; box-shadow:0 18px 35px rgba(34,2,5,.38),0 0 0 1px rgba(255,220,143,.12) inset; }
.fortune-page .room-btn.active { background:linear-gradient(145deg,#a21d24,#650c12); border-color:#f3c765; box-shadow:0 16px 38px rgba(45,3,7,.4),0 0 30px rgba(242,191,75,.16); }
.fortune-page .room-btn.active::after { content:""; position:absolute; left:15px; right:15px; bottom:8px; height:2px; background:linear-gradient(90deg,transparent,#ffd873,transparent); }
.fortune-page .room-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; margin-bottom:11px; background:rgba(255,235,181,.1); border:1px solid rgba(255,220,143,.2); font-size:23px; }
.fortune-page .room-number { display:block; color:#d8ad65; font-size:9px; letter-spacing:.16em; font-weight:900; }
.fortune-page .room-btn strong { display:block; margin:4px 0; font-size:15px; color:#fff4d7; }
.fortune-page .room-btn small { color:#d7c3a3; font-size:11px; }

.fortune-page .room-stage { position:relative; overflow:hidden; border-radius:30px; padding:8px; background:linear-gradient(135deg,#f6e3b5,#c89b45,#f8e8c1); box-shadow:0 28px 70px rgba(48,5,7,.3); }
.fortune-page .room-stage::before { content:""; position:absolute; inset:8px; border:1px solid rgba(122,16,24,.16); border-radius:23px; pointer-events:none; }
.fortune-page .room-panel { position:relative; min-height:500px; padding:30px; border-radius:23px; background:radial-gradient(circle at 50% 0%,#fffdf4,#fff4d8 58%,#f2dfb7); display:none; animation:mahPanelIn .5s ease both; }
.fortune-page .room-panel.active { display:block; }
@keyframes mahPanelIn { from{opacity:0;transform:translateY(12px) scale(.985)} to{opacity:1;transform:none} }
.fortune-page .room-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding-bottom:20px; border-bottom:1px dashed #d4b675; }
.fortune-page .room-header h2 { margin:5px 0; color:#5d0c12; font-size:clamp(24px,4vw,38px); }
.fortune-page .room-header p { margin:0; color:#866a45; }
.fortune-page .room-counter { flex:0 0 auto; padding:9px 13px; border-radius:999px; color:#fff4d6; background:#6e1017; border:1px solid #c99943; font-size:12px; font-weight:900; box-shadow:0 5px 12px rgba(82,8,13,.15); }

.fortune-page .btn-gold { border:1px solid #b98227; color:#4a1b06; font-weight:900; border-radius:999px; padding:13px 25px; background:linear-gradient(180deg,#ffe6a1,#d49a32); box-shadow:0 9px 20px rgba(104,45,4,.18),inset 0 1px rgba(255,255,255,.7); transition:.2s ease; }
.fortune-page .btn-gold:hover:not(:disabled) { transform:translateY(-2px); box-shadow:0 13px 26px rgba(104,45,4,.25),0 0 22px rgba(229,177,62,.25); }
.fortune-page .btn-gold:active:not(:disabled) { transform:translateY(1px); }
.fortune-page .btn-gold:disabled { opacity:.45; cursor:not-allowed; filter:grayscale(.3); }
.fortune-page .action-btn { min-width:190px; }

/* Siamsi shaker */
.fortune-page .shaker-wrap,.fortune-page .wheel-area,.fortune-page .tree-area,.fortune-page .firecracker,.fortune-page .dream-box { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:370px; }
.fortune-page .shaker { position:relative; width:220px; height:250px; filter:drop-shadow(0 20px 20px rgba(74,22,7,.18)); }
.fortune-page .shaker .cup { position:absolute; width:150px; height:150px; left:35px; bottom:20px; border-radius:25px 25px 70px 70px; background:linear-gradient(90deg,#6e0c12,#bb2426 48%,#610910); border:4px solid #e2b24f; box-shadow:inset 0 0 0 5px rgba(255,232,160,.12); }
.fortune-page .shaker .stick { position:absolute; bottom:115px; width:10px; height:170px; border-radius:10px; background:linear-gradient(90deg,#e9c36d,#fff0b4,#b77b20); transform-origin:bottom; z-index:2; }
.fortune-page .shaker .s1{left:78px;transform:rotate(-17deg)} .fortune-page .shaker .s2{left:104px;transform:rotate(4deg)} .fortune-page .shaker .s3{left:130px;transform:rotate(15deg)} .fortune-page .shaker .s4{left:92px;transform:rotate(-5deg)}
.fortune-page .shaker.shaking { animation:mahShake .12s infinite alternate; }
@keyframes mahShake { 0%{transform:rotate(-3deg) translateX(-3px)}100%{transform:rotate(3deg) translateX(3px)} }
.fortune-page .shaker-status { margin-top:14px; color:#7b5a35; font-size:13px; }

/* Wheel */
.fortune-page .wheel-area { position:relative; }
.fortune-page .fortune-wheel { position:relative; width:min(320px,70vw); aspect-ratio:1; border-radius:50%; border:12px solid #8c171d; background:conic-gradient(#f6ce75 0 12.5%,#8f171e 12.5% 25%,#f6ce75 25% 37.5%,#8f171e 37.5% 50%,#f6ce75 50% 62.5%,#8f171e 62.5% 75%,#f6ce75 75% 87.5%,#8f171e 87.5%); box-shadow:0 18px 35px rgba(76,18,8,.25),0 0 0 4px #e4b85e; transition:transform 4s cubic-bezier(.15,.82,.18,1); }
.fortune-page .fortune-wheel::before { content:"大吉  •  吉  •  福  •  財  •  運  •  福  •  吉  •  大吉"; position:absolute; inset:27px; border-radius:50%; display:grid; place-items:center; text-align:center; padding:30px; font-weight:900; font-size:20px; color:#6a0b12; background:radial-gradient(circle,#fff2bd,#e5af45); transform:rotate(-22deg); }
.fortune-page .wheel-center { position:absolute; z-index:2; inset:38%; border-radius:50%; display:grid; place-items:center; background:linear-gradient(#fff2bd,#c88725); border:5px solid #751017; font-size:30px; box-shadow:0 5px 12px rgba(0,0,0,.2); }
.fortune-page .wheel-pointer { z-index:4; margin-bottom:-17px; color:#8b141b; font-size:35px; filter:drop-shadow(0 4px 3px rgba(0,0,0,.18)); }

/* Dream */
.fortune-page .dream-box { align-items:stretch; max-width:780px; margin:0 auto; min-height:300px; }
.fortune-page .dream-box label { color:#681017; font-weight:900; margin-bottom:8px; }
.fortune-page #dreamInput { min-height:190px; resize:vertical; border:1px solid #d7b56f; border-radius:20px; padding:18px; color:#3e2817; background:rgba(255,252,242,.85); box-shadow:inset 0 2px 8px rgba(83,45,8,.05); outline:none; transition:.2s; }
.fortune-page #dreamInput:focus { border-color:#a91d25; box-shadow:0 0 0 4px rgba(169,29,37,.1); }
.fortune-page .input-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; color:#8a6a42; font-size:12px; }

/* Balls */
.fortune-page .ball-jar { width:min(430px,92vw); margin:24px auto 10px; padding:30px; border-radius:50% 50% 34px 34px; background:linear-gradient(120deg,rgba(255,255,255,.85),rgba(213,232,240,.4)); border:4px solid rgba(150,174,184,.65); box-shadow:inset 0 0 30px rgba(255,255,255,.8),0 18px 35px rgba(69,40,15,.13); }
.fortune-page .jar-glass { min-height:260px; display:grid; grid-template-columns:repeat(3,1fr); align-items:center; justify-items:center; gap:15px; }
.fortune-page .magic-ball { width:68px; height:68px; border-radius:50%; border:4px solid #e3b85d; color:#fff2bf; font-weight:900; font-size:20px; background:radial-gradient(circle at 30% 25%,#fff5cb 0 7%,#dbb04c 8% 22%,#9b141b 50%,#50070b 100%); box-shadow:0 9px 16px rgba(81,19,5,.2),inset -6px -8px 12px rgba(0,0,0,.2); transition:.25s; }
.fortune-page .magic-ball:hover { transform:translateY(-7px) rotate(8deg); }
.fortune-page .magic-ball.selected { transform:translateY(-10px) scale(1.1); box-shadow:0 0 0 5px rgba(220,171,62,.25),0 0 35px rgba(218,160,42,.5); }
.fortune-page .ball-selection,.fortune-page .tarot-selected { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:12px; margin:14px 0; color:#775c3c; }
.fortune-page .ball-selection strong,.fortune-page .tarot-selected strong { color:#761017; font-size:20px; }
.fortune-page .ball-count-choice { display:flex; gap:8px; }
.fortune-page .count-choice { border:1px solid #d1ad68; background:#fff7df; color:#6d4a25; padding:8px 12px; border-radius:999px; font-weight:800; }
.fortune-page .count-choice.active { color:#fff0c5; background:#761017; border-color:#a87428; }

/* Tarot */
.fortune-page .tarot-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:15px; max-width:900px; margin:28px auto 15px; }
.fortune-page .tarot-card { position:relative; aspect-ratio:2/3; min-height:145px; border:2px solid #c79742; border-radius:14px; padding:0; background:transparent; perspective:900px; box-shadow:0 10px 20px rgba(61,24,6,.13); transition:.22s; }
.fortune-page .tarot-card::before { content:""; position:absolute; inset:7px; border-radius:8px; border:1px solid rgba(255,218,124,.5); pointer-events:none; z-index:2; }
.fortune-page .tarot-back { position:absolute; inset:0; display:grid; place-items:center; overflow:hidden; border-radius:12px; background:repeating-linear-gradient(45deg,#650b12 0 7px,#7e1017 7px 14px); color:#f6ce75; box-shadow:inset 0 0 0 5px rgba(255,214,123,.08); transition:transform .5s; }
.fortune-page .tarot-back::before { content:"✦  福  ✦"; position:absolute; font-size:12px; letter-spacing:5px; opacity:.75; transform:rotate(-35deg); }
.fortune-page .tarot-back-mark { font-size:30px; z-index:1; }
.fortune-page .tarot-back-number { position:absolute; bottom:12px; font-weight:900; font-size:14px; z-index:1; }
.fortune-page .tarot-card:hover:not(.selected) { transform:translateY(-7px) rotateY(-4deg); }
.fortune-page .tarot-card.selected { transform:translateY(-8px); box-shadow:0 0 0 4px rgba(215,161,54,.2),0 17px 28px rgba(71,14,8,.2); }
.fortune-page .tarot-card.revealed .tarot-back { transform:rotateY(180deg); }

/* Tree */
.fortune-page .tree-area { min-height:390px; }
.fortune-page .lucky-tree { position:relative; width:250px; height:250px; display:grid; place-items:center; font-size:145px; filter:drop-shadow(0 18px 18px rgba(42,40,8,.2)); }
.fortune-page .tree-trunk { position:absolute; bottom:-12px; font-size:90px; }
.fortune-page .tree-crown { position:absolute; top:0; z-index:1; }
.fortune-page .lucky-tree.shaking { animation:treeShake .1s infinite alternate; }
@keyframes treeShake { from{transform:rotate(-4deg)}to{transform:rotate(4deg)} }
.fortune-page .fallen-numbers { min-height:70px; display:flex; gap:12px; justify-content:center; align-items:flex-end; margin-bottom:10px; }
.fortune-page .fallen-number { width:48px; height:58px; display:grid; place-items:center; border:2px solid #c58b2e; border-radius:8px; color:#751018; background:#fff2bd; font-weight:1000; font-size:25px; box-shadow:0 8px 14px rgba(80,38,7,.16); animation:numberDrop .65s cubic-bezier(.2,.8,.2,1) both; }
@keyframes numberDrop { from{opacity:0;transform:translateY(-130px) rotate(-20deg)} to{opacity:1;transform:none} }

/* Gods */
.fortune-page .god-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin:28px auto; max-width:1050px; }
.fortune-page .god-card { border:1px solid #d0a454; border-radius:20px; padding:10px; background:linear-gradient(180deg,#fff9e8,#f1d9a5); color:#5c1116; box-shadow:0 12px 24px rgba(66,22,6,.12); transition:.25s; }
.fortune-page .god-card:hover { transform:translateY(-6px); }
.fortune-page .god-card.selected { border-color:#8a121a; box-shadow:0 0 0 4px rgba(138,18,26,.12),0 18px 30px rgba(75,15,8,.18); transform:translateY(-7px); }
.fortune-page .god-image-wrap { position:relative; aspect-ratio:1/1.15; overflow:hidden; border-radius:14px; display:grid; place-items:center; background:radial-gradient(circle,#fff1bd,#c98d32); margin-bottom:8px; }
.fortune-page .god-image-wrap img { width:100%; height:100%; object-fit:cover; position:relative; z-index:2; }
.fortune-page .god-fallback { position:absolute; font-size:65px; }
.fortune-page .god-card strong,.fortune-page .god-card small { display:block; }
.fortune-page .god-card small { color:#967248; margin-top:3px; }
.fortune-page .god-result-status { text-align:center; color:#805d35; padding:10px; }

/* Firecracker */
.fortune-page .firecracker { min-height:380px; flex-direction:row; flex-wrap:wrap; gap:20px; position:relative; }
.fortune-page .cracker-box { width:170px; min-height:180px; border:2px solid #b87d23; border-radius:18px; background:linear-gradient(145deg,#a81a22,#60090e); color:#ffe4a2; box-shadow:0 14px 25px rgba(69,7,8,.2); transition:.25s; }
.fortune-page .cracker-box span { display:block; font-size:60px; margin-bottom:10px; }
.fortune-page .cracker-box strong { font-size:16px; }
.fortune-page .cracker-box:hover { transform:translateY(-8px) rotate(-1deg); box-shadow:0 20px 32px rgba(69,7,8,.3); }
.fortune-page .cracker-box.selected { animation:crackerShake .5s ease; }
@keyframes crackerShake { 0%,100%{transform:rotate(0)}25%{transform:rotate(-7deg)}75%{transform:rotate(7deg)} }
.fortune-page #firecrackerStage { position:absolute; bottom:30px; left:50%; transform:translateX(-50%); font-size:44px; pointer-events:none; }
.fortune-page #firecrackerStage.explode { animation:burst .9s ease both; }
@keyframes burst { 0%{transform:translateX(-50%) scale(.4);opacity:.3}45%{transform:translateX(-50%) scale(1.8);opacity:1;filter:drop-shadow(0 0 20px #f0b83c)}100%{transform:translateX(-50%) scale(1);opacity:1} }

/* Release */
.fortune-page .release-area { display:flex; justify-content:center; align-items:center; gap:20px; flex-wrap:wrap; min-height:360px; }
.fortune-page .release-card { width:230px; padding:28px 20px; border:2px solid #c99a45; border-radius:24px; background:linear-gradient(145deg,#fff9e8,#ead09a); color:#661018; box-shadow:0 14px 25px rgba(69,30,7,.12); transition:.25s; }
.fortune-page .release-card:hover:not(.disabled) { transform:translateY(-8px); }
.fortune-page .release-card.disabled { opacity:.5; }
.fortune-page .release-card .release-icon { font-size:78px; display:block; margin-bottom:10px; }
.fortune-page .release-animation { min-width:280px; text-align:center; font-size:62px; min-height:90px; }
.fortune-page .release-animation.walk { animation:walkAway 1.9s ease-in-out both; }
@keyframes walkAway { 0%{transform:translateX(-80px);opacity:.3}50%{transform:translateX(0);opacity:1}100%{transform:translateX(80px);opacity:1} }

/* Incense */
.fortune-page .incense-area { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:390px; }
.fortune-page .incense-stick { position:relative; width:12px; height:220px; border-radius:8px; background:linear-gradient(90deg,#7c1a17,#d29a48,#741311); box-shadow:0 10px 18px rgba(66,20,5,.18); }
.fortune-page .incense-stick::before { content:""; position:absolute; top:-26px; left:50%; width:34px; height:34px; transform:translateX(-50%); border-radius:50%; background:radial-gradient(circle,#fff 0 8%,#ff9d22 18%,#b31e16 42%,transparent 70%); opacity:0; }
.fortune-page .incense-stick.burning::before { opacity:1; animation:flame .35s infinite alternate; }
@keyframes flame { from{transform:translateX(-50%) scale(.8)}to{transform:translateX(-50%) scale(1.1) rotate(3deg)} }
.fortune-page #incenseSmoke.active { animation:smokeRise 2.8s infinite ease-in-out; }
@keyframes smokeRise { 0%{opacity:0;transform:translateY(15px) scale(.8)}35%{opacity:.7}100%{opacity:0;transform:translateY(-70px) scale(1.4)} }
.fortune-page .incense-digits { display:flex; gap:12px; margin:20px 0; }
.fortune-page .incense-digits span { width:60px; height:72px; display:grid; place-items:center; border-radius:12px; border:2px solid #c5943c; background:#fff1ba; color:#741017; font-size:32px; font-weight:1000; box-shadow:0 10px 18px rgba(76,31,5,.12); animation:digitReveal .5s ease both; }
@keyframes digitReveal { from{opacity:0;transform:translateY(20px) scale(.8)}to{opacity:1;transform:none} }

/* Result card */
.fortune-page #fortuneCard { position:relative; overflow:hidden; margin-top:25px; border:1px solid #d0a04a; border-radius:26px; background:linear-gradient(145deg,#fffaf0,#f3dfae); box-shadow:0 18px 40px rgba(63,20,4,.2); transform:translateY(18px); opacity:0; max-height:0; transition:opacity .45s ease,transform .45s ease,max-height .6s ease,padding .4s ease,margin .4s ease; }
.fortune-page #fortuneCard.revealed { opacity:1; transform:none; max-height:1200px; }
.fortune-page #fortuneCard::before { content:"福"; position:absolute; right:20px; top:-20px; font-size:160px; color:rgba(128,16,23,.055); }
.fortune-page .fortune-result-inner { position:relative; z-index:1; padding:28px; }
.fortune-page #fortuneSlip { display:inline-block; padding:7px 13px; border-radius:999px; background:#741017; color:#ffe5a0; font-weight:900; }
.fortune-page #fortuneText { color:#5c2b10; font-size:18px; font-weight:800; line-height:1.7; }
.fortune-page .result-number { border-radius:18px; background:linear-gradient(145deg,#741017,#4b080d); color:#ffe4a0; padding:18px; text-align:center; box-shadow:inset 0 1px rgba(255,255,255,.12); }
.fortune-page .result-number strong { display:block; font-size:40px; letter-spacing:.12em; }
.fortune-page .fortune-sec { padding:12px 0; border-bottom:1px dashed #d7bd87; }
.fortune-page .sec-label { color:#7b1319; font-weight:900; margin-right:8px; }
.fortune-page .sec-text { color:#725637; }

.fortune-page .toast { border:1px solid #e1b354!important; background:#4a090e!important; color:#ffe9b1!important; box-shadow:0 12px 28px rgba(0,0,0,.3)!important; }
.fortune-page .admin-image-box { margin-top:25px; border:1px dashed #bd913f; border-radius:18px; background:#fff8e8; }

@media (max-width:1000px){ .fortune-page .fortune-rooms{grid-template-columns:repeat(3,1fr)} .fortune-page .god-grid{grid-template-columns:repeat(3,1fr)} }
@media (max-width:700px){
  .fortune-page-main{padding:14px 10px 45px}.fortune-page .page-head{padding:24px 20px}.fortune-page .daily-profile{grid-template-columns:auto 1fr}.fortune-page .profile-score{grid-column:1/-1;border-left:0;border-top:1px solid #d9bd7e;padding:12px 0 0;text-align:left}.fortune-page .fortune-rooms{grid-template-columns:repeat(2,1fr);gap:8px}.fortune-page .room-btn{min-height:115px;padding:12px}.fortune-page .room-panel{padding:20px 14px}.fortune-page .room-header{flex-direction:column}.fortune-page .tarot-grid{grid-template-columns:repeat(5,1fr);gap:7px}.fortune-page .tarot-card{min-height:95px}.fortune-page .god-grid{grid-template-columns:repeat(2,1fr)}.fortune-page .firecracker{flex-direction:column}.fortune-page .cracker-box{width:90%;min-height:125px}.fortune-page .jar-glass{min-height:220px}.fortune-page .magic-ball{width:58px;height:58px}.fortune-page .input-footer{align-items:flex-start;flex-direction:column}.fortune-page .action-btn{width:100%}
}
@media (max-width:420px){ .fortune-page .fortune-rooms{grid-template-columns:1fr 1fr}.fortune-page .tarot-grid{grid-template-columns:repeat(5,1fr)}.fortune-page .tarot-card{min-height:82px}.fortune-page .tarot-back-mark{font-size:21px}.fortune-page .tarot-back-number{font-size:10px;bottom:7px}.fortune-page .room-icon{width:36px;height:36px;font-size:19px}.fortune-page .room-btn strong{font-size:13px} }

/* animation polish */
.fortune-page .mah-spark-layer{position:absolute;z-index:20;pointer-events:none;width:1px;height:1px;}
.fortune-page .mah-spark{position:absolute;display:block;color:#d69c2d;font-style:normal;font-weight:900;font-size:16px;animation:mahSpark 1s cubic-bezier(.2,.8,.2,1) var(--delay) both;}
@keyframes mahSpark{0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}18%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) rotate(180deg) scale(1.15)}}
.fortune-page .mah-pulse{animation:mahPulse .55s ease both;}
@keyframes mahPulse{0%{filter:brightness(1)}45%{filter:brightness(1.35) drop-shadow(0 0 22px rgba(224,170,61,.55))}100%{filter:brightness(1)}}
.fortune-page .dream-reading{animation:dreamRead 1.7s ease both;}
@keyframes dreamRead{0%{box-shadow:0 0 0 0 rgba(112,16,23,.05)}45%{box-shadow:0 0 0 7px rgba(112,16,23,.1),0 0 45px rgba(210,164,65,.35)}100%{box-shadow:0 0 0 0 rgba(112,16,23,0)}}
.fortune-page .jar-shaking{animation:jarShake .11s infinite alternate;}
@keyframes jarShake{from{transform:rotate(-2deg) translateX(-3px)}to{transform:rotate(2deg) translateX(3px)}}
.fortune-page .incense-button{position:relative;border:0;background:transparent;cursor:pointer;transition:.2s;}
.fortune-page .incense-button:hover:not(:disabled){transform:translateY(-5px);}
.fortune-page .incense-button .incense-stick{display:block;font-size:120px;line-height:1;}
.fortune-page .incense-button .incense-fire{display:block;position:absolute;top:4px;left:50%;transform:translateX(-50%);font-size:30px;opacity:0;}
.fortune-page .incense-button.burning .incense-fire{opacity:1;animation:flame .3s infinite alternate;}
.fortune-page .incense-button .incense-smoke{display:block;position:absolute;top:-25px;left:50%;transform:translateX(-50%);font-size:38px;opacity:0;}
.fortune-page .incense-button.burning .incense-smoke{opacity:.5;animation:smokeRise 2s infinite ease-in-out;}
.fortune-page .incense-progress{width:min(420px,90%);height:9px;margin-top:16px;border-radius:99px;background:#ead7ae;overflow:hidden;box-shadow:inset 0 2px 5px rgba(60,25,5,.1);}
.fortune-page .incense-progress-bar{height:100%;width:0;background:linear-gradient(90deg,#8a1118,#d5a13b,#f6d889);transition:width .7s ease;}
.fortune-page .incense-status{margin-top:10px;color:#7d5b37;font-size:13px;}
.fortune-page .release-animation-stage{min-height:95px;display:grid;place-items:center;font-size:64px;}
.fortune-page .release-grid{display:grid;grid-template-columns:repeat(2,minmax(0,260px));justify-content:center;gap:18px;}
.fortune-page .release-card .release-animation{min-height:0;display:block;font-size:56px;}
@media(max-width:700px){.fortune-page .release-grid{grid-template-columns:1fr}.fortune-page .release-card{width:100%}}


/* =========================================================
   MAHA CHOK — FIX PACK
   - ball = star tokens
   - tarot real custom front image / flip
   - premium release ceremony animation
   - high contrast fortune result
   - admin image uploader visibility
========================================================= */

.fortune-page .magic-ball {
  display:grid;
  place-items:center;
  color:#fff8d9;
  background:
    radial-gradient(circle at 32% 24%, #fffdf0 0 7%, transparent 8%),
    radial-gradient(circle at 50% 50%, #ffe8a1 0 12%, #d89b2d 35%, #8d161e 70%, #43070b 100%);
  border:2px solid rgba(255,225,154,.92);
  box-shadow:
    0 0 0 3px rgba(255,255,255,.08) inset,
    0 10px 24px rgba(80,0,0,.32),
    0 0 22px rgba(255,210,90,.18);
}
.fortune-page .ball-star {
  display:block;
  font-size:28px;
  line-height:1;
  color:#fff5b5;
  text-shadow:0 0 10px rgba(255,240,150,.9), 0 2px 4px rgba(80,0,0,.5);
  transform:rotate(-8deg);
}
.fortune-page .magic-ball:nth-child(odd) .ball-star { transform:rotate(9deg) scale(.92); }
.fortune-page .magic-ball.selected .ball-star {
  animation: mahStarPulse .7s ease-in-out infinite alternate;
}
@keyframes mahStarPulse {
  from { transform:scale(.92) rotate(-8deg); filter:brightness(1); }
  to { transform:scale(1.24) rotate(8deg); filter:brightness(1.45); }
}

/* Tarot: back first, uploaded image on the front */
.fortune-page .tarot-card {
  perspective:1100px;
  background:transparent !important;
  border:1px solid rgba(217,164,65,.45);
  padding:0;
  min-height:185px;
}
.fortune-page .tarot-card-inner {
  position:absolute;
  inset:0;
  transform-style:preserve-3d;
  transition:transform .9s cubic-bezier(.2,.78,.22,1);
}
.fortune-page .tarot-back,
.fortune-page .tarot-front {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  backface-visibility:hidden;
  border-radius:inherit;
  overflow:hidden;
}
.fortune-page .tarot-back {
  background:
    radial-gradient(circle at center, rgba(255,221,129,.13), transparent 38%),
    linear-gradient(145deg,#8b151e,#4b070c 70%,#260308);
  color:#ffe9a9;
  border:1px solid rgba(255,225,154,.32);
  box-shadow:inset 0 0 30px rgba(0,0,0,.35);
}
.fortune-page .tarot-back::before {
  content:"";
  position:absolute;
  inset:9px;
  border:1px solid rgba(255,225,154,.55);
  border-radius:10px;
  box-shadow:inset 0 0 0 4px rgba(255,225,154,.06);
}
.fortune-page .tarot-back-ornament { font-size:16px; opacity:.8; margin-bottom:3px; }
.fortune-page .tarot-back-seal {
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  border:2px solid #f3c85e;
  border-radius:50%;
  font-size:28px;
  font-weight:900;
  color:#fff3c1;
  box-shadow:0 0 20px rgba(255,215,106,.18);
}
.fortune-page .tarot-back-title { margin-top:9px; font-family:var(--font-display); font-size:15px; letter-spacing:.18em; }
.fortune-page .tarot-back-number { margin-top:6px; font-size:11px; opacity:.75; }
.fortune-page .tarot-front {
  transform:rotateY(180deg);
  background:#fff5db;
  color:#5b0b10;
}
.fortune-page .tarot-front img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.fortune-page .tarot-front-placeholder {
  font-size:44px;
  color:#c9922e;
  margin-bottom:8px;
}
.fortune-page .tarot-card.chosen {
  transform:translateY(-9px);
  box-shadow:0 14px 32px rgba(75,0,0,.22),0 0 0 2px rgba(255,215,106,.16);
}
.fortune-page .tarot-card.reveal-ready {
  animation:tarotChosenGlow .8s ease-in-out infinite alternate;
}
@keyframes tarotChosenGlow {
  from { filter:brightness(1); }
  to { filter:brightness(1.18); }
}
.fortune-page .tarot-card.revealed .tarot-card-inner {
  transform:rotateY(180deg);
}
.fortune-page .tarot-card.revealed {
  animation:tarotRevealPremium .9s cubic-bezier(.18,.8,.2,1);
}
@keyframes tarotRevealPremium {
  0% { transform:translateY(-8px) scale(1); }
  45% { transform:translateY(-16px) scale(1.06); }
  100% { transform:translateY(-3px) scale(1); }
}

/* Release ceremony */
.fortune-page .release-animation-stage {
  position:relative;
  min-height:390px;
  margin:18px 0 24px;
  display:block;
  overflow:hidden;
  border:1px solid rgba(120,55,18,.18);
  border-radius:30px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,226,147,.55), transparent 22%),
    linear-gradient(180deg,#fff7df 0%,#f4ddb0 55%,#d7b16b 100%);
  box-shadow:inset 0 0 70px rgba(255,255,255,.32),0 20px 55px rgba(76,29,8,.13);
}
.fortune-page .release-scene { position:absolute; inset:0; overflow:hidden; }
.fortune-page .release-sky-glow {
  position:absolute; width:260px; height:260px; left:50%; top:24px; transform:translateX(-50%);
  border-radius:50%; background:radial-gradient(circle,rgba(255,233,164,.8),rgba(255,233,164,0) 70%);
  animation:releaseGlow 2.8s ease-in-out infinite;
}
@keyframes releaseGlow { 50%{transform:translateX(-50%) scale(1.14);opacity:.65;} }
.fortune-page .release-water {
  position:absolute; left:-5%; right:-5%; bottom:0; height:42%;
  background:linear-gradient(180deg,rgba(66,137,145,.1),rgba(45,103,119,.34));
  border-top:1px solid rgba(74,127,128,.2);
}
.fortune-page .release-water::before,
.fortune-page .release-water::after {
  content:""; position:absolute; left:-10%; width:120%; height:42px;
  border-top:2px solid rgba(255,255,255,.38); border-radius:50%;
  animation:waterWave 3s linear infinite;
}
.fortune-page .release-water::before{top:20px;}
.fortune-page .release-water::after{top:76px;animation-delay:-1.2s;opacity:.55;}
@keyframes waterWave { from{transform:translateX(-3%)} to{transform:translateX(3%)} }

.fortune-page .release-person {
  position:absolute; left:30%; bottom:27%; width:90px; height:150px;
  z-index:4; text-align:center; transform:translateX(0);
  transition:transform .8s cubic-bezier(.2,.8,.2,1),filter .5s;
}
.fortune-page .person-head { font-size:50px; position:absolute; left:18px; top:0; }
.fortune-page .person-body {
  position:absolute; left:30px; top:55px; width:32px; height:68px;
  border-radius:18px 18px 9px 9px;
  background:linear-gradient(90deg,#7b1018,#c02c2c,#6d0b12);
  box-shadow:0 9px 18px rgba(80,0,0,.22);
}
.fortune-page .person-body::after,
.fortune-page .person-body::before {
  content:""; position:absolute; top:11px; width:55px; height:12px; border-radius:20px; background:#e7b65b;
}
.fortune-page .person-body::before{right:18px;transform:rotate(28deg);}
.fortune-page .person-body::after{left:18px;transform:rotate(-28deg);}
.fortune-page .person-halo {
  position:absolute; left:5px; top:-18px; width:80px; height:80px; border-radius:50%;
  border:1px solid rgba(255,220,110,.35); box-shadow:0 0 24px rgba(255,214,100,.18);
}
.fortune-page .release-person.release-let-go { transform:translateX(62px) translateY(10px); }
.fortune-page .release-animal {
  position:absolute; left:48%; bottom:27%; z-index:5; opacity:0; transform:scale(.55);
  font-size:60px; pointer-events:none;
}
.fortune-page .release-animal.show {
  opacity:1;
  animation:animalGo 1.35s cubic-bezier(.25,.7,.2,1) forwards;
}
.fortune-page .release-animal.returning { animation:animalReturn 1s cubic-bezier(.18,.8,.22,1) forwards; }
@keyframes animalGo {
  0%{transform:translate(0,0) scale(.55) rotate(0);}
  35%{transform:translate(80px,-18px) scale(.95) rotate(4deg);}
  100%{transform:translate(190px,32px) scale(.7) rotate(0);}
}
@keyframes animalReturn {
  0%{transform:translate(190px,32px) scale(.7);}
  55%{transform:translate(95px,-8px) scale(1);}
  100%{transform:translate(0,0) scale(.82);}
}
.fortune-page .release-number-return {
  position:absolute; left:50%; top:40%; transform:translate(-50%,-50%) scale(.3);
  opacity:0; z-index:8; white-space:nowrap;
  font-family:var(--font-display); font-weight:900; font-size:42px; letter-spacing:.2em;
  color:#7a1018; text-shadow:0 2px 0 #fff3c9,0 0 20px rgba(255,204,73,.55);
}
.fortune-page .release-number-return.show {
  opacity:1; animation:numberReturnPremium .9s cubic-bezier(.16,.84,.2,1) forwards;
}
@keyframes numberReturnPremium {
  0%{transform:translate(-50%,-50%) scale(.25) rotate(-8deg);filter:blur(6px);}
  60%{transform:translate(-50%,-50%) scale(1.22) rotate(2deg);filter:blur(0);}
  100%{transform:translate(-50%,-50%) scale(1) rotate(0);}
}
.fortune-page .release-ripple {
  position:absolute; left:50%; bottom:17%; width:10px; height:10px; border:2px solid rgba(255,255,255,.7);
  border-radius:50%; transform:translateX(-50%); opacity:0;
}
.fortune-page .release-ripple.active { animation:releaseRipple 1.2s ease-out 2; }
@keyframes releaseRipple {
  0%{width:10px;height:10px;opacity:.8;}
  100%{width:340px;height:120px;opacity:0;}
}
.fortune-page .release-status-text {
  position:absolute; left:20px; right:20px; bottom:16px; z-index:12; text-align:center;
  font-size:14px; color:#5f3418; font-weight:700;
}
.fortune-page .release-grid {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; max-width:820px; margin:0 auto;
}
.fortune-page .release-card {
  position:relative; display:flex; align-items:center; gap:16px; min-height:120px; padding:18px 20px;
  text-align:left; overflow:hidden; cursor:pointer;
  background:linear-gradient(145deg,#fff8e7,#f1d8a6);
  border:1px solid rgba(141,68,21,.25); border-radius:22px; color:#4e180e;
  box-shadow:0 12px 28px rgba(81,31,5,.12); transition:transform .28s,box-shadow .28s,border-color .28s;
}
.fortune-page .release-card:hover { transform:translateY(-7px); border-color:#c99637; box-shadow:0 20px 38px rgba(81,31,5,.18),0 0 28px rgba(255,205,96,.2); }
.fortune-page .release-card-glow { position:absolute; width:120px;height:120px;right:-30px;top:-45px;border-radius:50%;background:rgba(255,207,93,.25);filter:blur(5px); }
.fortune-page .release-icon-wrap {
  width:72px;height:72px;flex:0 0 72px;display:grid;place-items:center;border-radius:20px;
  background:linear-gradient(145deg,#fff3c5,#dca54a); box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),0 9px 18px rgba(97,40,5,.16);
}
.fortune-page .release-icon { font-size:42px; filter:drop-shadow(0 5px 5px rgba(70,20,0,.2)); }
.fortune-page .release-card-copy { position:relative; z-index:2; display:flex; flex-direction:column; gap:5px; }
.fortune-page .release-card-copy strong { font-family:var(--font-display); font-size:19px; }
.fortune-page .release-card-copy small { color:#7a5835; line-height:1.5; }
.fortune-page .release-card-arrow { margin-left:auto; font-size:24px; color:#a06a20; }

@media (max-width:640px) {
  .fortune-page .release-animation-stage { min-height:330px; }
  .fortune-page .release-grid { grid-template-columns:1fr; }
  .fortune-page .release-person { left:19%; }
  .fortune-page .release-number-return { font-size:31px; }
}

/* High contrast result — no more text blending into the background */
.fortune-page .fortune-card {
  color:#32150e;
  background:
    radial-gradient(circle at 50% 0%,rgba(255,225,145,.42),transparent 35%),
    linear-gradient(145deg,#fffaf0 0%,#f7e3b4 100%);
  border:2px solid rgba(122,16,24,.28);
  box-shadow:0 24px 60px rgba(70,20,4,.18),inset 0 0 35px rgba(255,255,255,.45);
}
.fortune-page .fortune-card .fortune-slip { color:#7a4b2a; }
.fortune-page .fortune-card .fortune-level,
.fortune-page .fortune-card .fortune-stars { color:#7a1018; text-shadow:none; }
.fortune-page .fortune-card .fortune-text {
  color:#2f160f;
  font-weight:700;
  background:rgba(255,255,255,.56);
  border:1px solid rgba(122,16,24,.12);
  border-radius:16px;
  padding:16px 18px;
}
.fortune-page .fortune-sec {
  background:#fffdf7;
  border:1px solid rgba(122,16,24,.16);
  box-shadow:0 8px 18px rgba(70,20,4,.07);
}
.fortune-page .fortune-sec .sec-label { color:#8a1c22; font-weight:800; }
.fortune-page .fortune-sec .sec-text { color:#3b2118; font-weight:600; }
.fortune-page .fortune-chip {
  background:#fffdf7;
  color:#6a4228;
  border-color:rgba(122,16,24,.16);
}
.fortune-page .fortune-chip b { color:#7a1018; }
.fortune-page .fortune-advice {
  color:#4a2b1c;
  border-top-color:rgba(122,16,24,.2);
  font-weight:600;
}
.fortune-page .lucky-result {
  background:linear-gradient(145deg,#7a1018,#4a070c);
  border:1px solid rgba(255,225,154,.45);
  box-shadow:0 16px 32px rgba(70,0,0,.18);
  border-radius:20px;
  padding:20px;
}
.fortune-page .lucky-result-title { color:#ffe6a2; font-weight:800; }
.fortune-page .number-box {
  background:#fff8e7;
  border:2px solid #d4a54a;
  box-shadow:0 8px 18px rgba(50,10,0,.12);
}
.fortune-page .number-box span { color:#6c4528; }
.fortune-page .number-box strong { color:#7a1018; text-shadow:none; }

/* Admin image manager */
.fortune-page .admin-image-box {
  margin-top:18px;
  padding:18px;
  background:linear-gradient(145deg,rgba(255,248,229,.95),rgba(241,215,166,.95));
  border:1px solid rgba(122,16,24,.18);
  border-radius:20px;
  color:#3b2118;
  box-shadow:0 12px 28px rgba(70,20,4,.08);
}
.fortune-page .admin-image-title { color:#7a1018; font-weight:900; }
.fortune-page .admin-upload-help { margin:5px 0 10px; color:#745339; font-size:13px; }
.fortune-page .admin-upload-row {
  background:rgba(255,255,255,.6);
  border-color:rgba(122,16,24,.12);
  padding:10px;
}
.fortune-page .admin-asset-name { color:#5e281a; font-weight:800; }
.fortune-page .admin-upload-row input {
  color:#4c2a1d;
  max-width:100%;
}
.fortune-page .admin-upload-row .btn-ghost {
  background:#7a1018;
  color:#fff7df;
  border-color:#7a1018;
}
.fortune-page .admin-readonly { opacity:.86; }
.fortune-page .admin-readonly input,
.fortune-page .admin-readonly button { cursor:not-allowed; }

/* Make uploaded god image visibly premium */
.fortune-page .god-image-wrap {
  width:116px;height:116px;
  background:#fff3cf;
  border:2px solid #d4a54a;
  box-shadow:0 0 0 5px rgba(255,224,147,.18),0 14px 28px rgba(80,20,0,.16);
}
.fortune-page .god-image-wrap img { object-fit:cover; }

/* Small polish */
.fortune-page .room-btn:disabled,
.fortune-page .release-card.disabled { cursor:wait; }

/* =========================================================
   MAHA CHOK V3 — RELEASE CEREMONY
   ========================================================= */
.fortune-page .release-animation-stage{
  min-height:480px;
  border:1px solid rgba(151,103,37,.22);
  border-radius:32px;
  background:
    radial-gradient(circle at 50% 17%,rgba(255,244,191,.95) 0 8%,rgba(255,224,133,.35) 19%,transparent 38%),
    linear-gradient(180deg,#fff9e9 0%,#f5e2b8 42%,#c6a36b 100%);
  box-shadow:inset 0 0 90px rgba(255,255,255,.55),0 24px 60px rgba(71,34,8,.15);
}
.fortune-page .release-animation-stage::before{
  content:"";position:absolute;left:0;right:0;top:0;height:46%;
  background:linear-gradient(180deg,rgba(255,255,255,.42),transparent);
  pointer-events:none;z-index:1;
}
.fortune-page .release-scene{z-index:2}
.fortune-page .release-sky-glow{width:330px;height:330px;top:-80px;background:radial-gradient(circle,rgba(255,229,143,.82),rgba(255,229,143,0) 68%);}
.fortune-page .release-water{height:48%;bottom:-4%;background:linear-gradient(180deg,rgba(72,146,157,.14),rgba(27,95,111,.42));border-top:1px solid rgba(255,255,255,.42);}
.fortune-page .release-water::before,.fortune-page .release-water::after{height:70px;border-top:2px solid rgba(255,255,255,.32);filter:blur(.2px)}
.fortune-page .release-water::before{top:15px;animation:mahWater1 3.4s ease-in-out infinite}
.fortune-page .release-water::after{top:82px;animation:mahWater2 4.1s ease-in-out infinite}
@keyframes mahWater1{0%,100%{transform:translateX(-4%)}50%{transform:translateX(4%)}}
@keyframes mahWater2{0%,100%{transform:translateX(4%)}50%{transform:translateX(-4%)}}
.fortune-page .release-person{left:26%;bottom:28%;width:110px;height:190px;z-index:7;filter:drop-shadow(0 16px 12px rgba(39,24,12,.2));}
.fortune-page .person-head{font-size:52px;top:0;left:29px;filter:drop-shadow(0 5px 4px rgba(0,0,0,.18));}
.fortune-page .person-body{left:38px;top:58px;width:34px;height:80px;background:linear-gradient(90deg,#54131b,#9f2630,#531018);border-radius:18px 18px 8px 8px;}
.fortune-page .person-body::before,.fortune-page .person-body::after{width:62px;height:13px;background:linear-gradient(90deg,#f0c56b,#b77a28);}
.fortune-page .person-halo{left:14px;top:-18px;width:82px;height:82px;border-color:rgba(255,220,110,.55);box-shadow:0 0 35px rgba(255,213,87,.32);}
.fortune-page .release-person.release-let-go{transform:translate(72px,10px) scale(.98);}
.fortune-page .release-animal{left:48%;bottom:31%;z-index:8;opacity:0;transform:scale(.5);font-size:initial;width:92px;height:58px;filter:drop-shadow(0 12px 8px rgba(16,52,60,.24));}
.fortune-page .release-animal.show{opacity:1}
.fortune-page .release-turtle .animal-shell{position:absolute;left:17px;top:13px;width:60px;height:39px;border-radius:50% 48% 42% 45%;background:radial-gradient(circle at 35% 30%,#9dcb78 0 8%,transparent 9%),repeating-radial-gradient(circle at 50% 45%,#466e46 0 4px,#789c57 5px 9px,#365b3d 10px 12px);border:3px solid #294d35;box-shadow:inset 0 0 12px rgba(255,255,255,.18)}
.fortune-page .release-turtle .animal-head{position:absolute;right:3px;top:20px;width:24px;height:22px;border-radius:50%;background:linear-gradient(145deg,#88b96d,#416f4b);border:2px solid #294d35;}
.fortune-page .release-turtle .animal-head::after{content:"";position:absolute;right:4px;top:7px;width:4px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 0 1px #17351f}
.fortune-page .animal-leg{position:absolute;width:19px;height:10px;border-radius:50%;background:#517f50;border:2px solid #294d35;}
.fortune-page .animal-leg.l1{left:15px;top:43px}.fortune-page .animal-leg.l2{left:37px;top:47px}.fortune-page .animal-leg.l3{left:56px;top:42px}.fortune-page .animal-leg.l4{left:68px;top:33px}
.fortune-page .release-fish .fish-body{position:absolute;left:18px;top:16px;width:60px;height:36px;border-radius:58% 45% 48% 58%;background:linear-gradient(145deg,#ffcf6b,#e26d38 58%,#9c352d);border:2px solid #8b3d25;box-shadow:inset 8px 5px 14px rgba(255,255,255,.22)}
.fortune-page .release-fish .fish-tail{position:absolute;left:2px;top:17px;width:0;height:0;border-top:18px solid transparent;border-bottom:18px solid transparent;border-right:28px solid #c65435;filter:drop-shadow(0 2px 1px rgba(0,0,0,.16));}
.fortune-page .release-fish .fish-fin{position:absolute;left:44px;top:5px;width:20px;height:15px;background:#f0a64f;clip-path:polygon(0 100%,50% 0,100% 100%);}
.fortune-page .release-fish .fish-eye{position:absolute;right:12px;top:25px;width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:inset 2px 2px 0 #1c1710}
.fortune-page .release-turtle.show{animation:mahTurtleGo 2.25s cubic-bezier(.2,.72,.2,1) forwards}
.fortune-page .release-fish.show{animation:mahFishGo 2.25s cubic-bezier(.2,.72,.2,1) forwards}
.fortune-page .release-turtle.returning{animation:mahTurtleReturn 1.45s cubic-bezier(.16,.84,.2,1) forwards}
.fortune-page .release-fish.returning{animation:mahFishReturn 1.45s cubic-bezier(.16,.84,.2,1) forwards}
@keyframes mahTurtleGo{0%{transform:translate(0,0) scale(.55)}20%{transform:translate(28px,-18px) scale(.82)}60%{transform:translate(150px,16px) scale(.72) rotate(4deg)}100%{transform:translate(220px,30px) scale(.58) rotate(2deg)}}
@keyframes mahFishGo{0%{transform:translate(0,0) scale(.55)}22%{transform:translate(34px,-22px) scale(.85)}55%{transform:translate(150px,12px) scale(.72) rotate(-4deg)}100%{transform:translate(230px,-4px) scale(.6) rotate(3deg)}}
@keyframes mahTurtleReturn{0%{transform:translate(220px,30px) scale(.58)}55%{transform:translate(108px,-4px) scale(.92)}100%{transform:translate(0,0) scale(.82)}}
@keyframes mahFishReturn{0%{transform:translate(230px,-4px) scale(.6)}55%{transform:translate(108px,8px) scale(.92)}100%{transform:translate(0,0) scale(.82)}}
.fortune-page .release-number-return{top:44%;z-index:14;padding:12px 26px;border-radius:999px;background:rgba(255,250,230,.88);border:2px solid rgba(183,132,47,.55);box-shadow:0 0 0 8px rgba(255,220,128,.12),0 15px 40px rgba(81,36,7,.18);font-size:26px;letter-spacing:.15em;}
.fortune-page .release-number-return b{font-size:48px;color:#8a1118;letter-spacing:.12em}
.fortune-page .release-reveal .release-number-return{animation:numberReturnPremium 1s cubic-bezier(.16,.84,.2,1) forwards,mahNumberGlow 1.1s ease-in-out infinite alternate}
@keyframes mahNumberGlow{from{box-shadow:0 0 0 8px rgba(255,220,128,.12),0 15px 40px rgba(81,36,7,.18)}to{box-shadow:0 0 0 16px rgba(255,220,128,.03),0 0 40px rgba(255,204,84,.5)}}
.fortune-page .release-ripple{bottom:19%;border-color:rgba(255,255,255,.75);}
.fortune-page .release-status-text{bottom:16px;padding:10px 18px;border-radius:999px;background:rgba(255,249,226,.82);backdrop-filter:blur(8px);color:#4c2a15;border:1px solid rgba(133,82,27,.16);box-shadow:0 8px 20px rgba(56,28,7,.1);}

/* =========================================================
   MAHA CHOK V3 — REALISTIC INCENSE CEREMONY
   ========================================================= */
.fortune-page .incense-area{min-height:520px;position:relative;}
.fortune-page .incense-altar{position:relative;width:min(560px,94%);height:410px;margin:0 auto;display:flex;align-items:center;justify-content:center;}
.fortune-page .incense-backdrop-glow{position:absolute;width:300px;height:300px;top:12px;border-radius:50%;background:radial-gradient(circle,rgba(255,202,74,.28),transparent 68%);filter:blur(4px);}
.fortune-page .incense-button{position:absolute;z-index:8;left:50%;top:24px;width:190px;height:285px;transform:translateX(-50%);padding:0;border:0;background:transparent;cursor:pointer;}
.fortune-page .incense-holder{position:absolute;left:50%;bottom:42px;width:120px;height:250px;transform:translateX(-50%);display:block;}
.fortune-page .incense-stick{position:absolute;bottom:0;left:50%;width:10px;height:235px;border-radius:7px 7px 3px 3px;background:linear-gradient(90deg,#8a1715 0%,#d38a4b 42%,#8f2018 75%,#5c100f 100%);box-shadow:inset 1px 0 rgba(255,255,255,.25),4px 7px 12px rgba(54,18,5,.16);transform:translateX(-50%) rotate(-2deg);display:block;}
.fortune-page .incense-stick.second{height:224px;left:42%;transform:translateX(-50%) rotate(1.5deg)}
.fortune-page .incense-stick.third{height:230px;left:58%;transform:translateX(-50%) rotate(4deg)}
.fortune-page .incense-stick::after{content:"";position:absolute;left:50%;bottom:-2px;width:16px;height:10px;transform:translateX(-50%);background:#43221a;border-radius:50%;box-shadow:0 0 5px rgba(0,0,0,.35)}
.fortune-page .incense-ember{position:absolute;left:50%;top:-5px;width:14px;height:14px;transform:translateX(-50%);border-radius:50%;background:#ff9b2f;opacity:0;box-shadow:0 0 7px #ff6a00,0 0 18px rgba(255,91,0,.75);}
.fortune-page .incense-button.burning .incense-stick{animation:incenseSway 1.7s ease-in-out infinite alternate}
.fortune-page .incense-button.burning .incense-ember{opacity:1;animation:incenseEmber .42s ease-in-out infinite alternate}
@keyframes incenseSway{from{transform:translateX(-50%) rotate(-2deg)}to{transform:translateX(-49%) rotate(-1deg)}}
@keyframes incenseEmber{from{filter:brightness(.8);transform:translateX(-50%) scale(.82)}to{filter:brightness(1.45);transform:translateX(-50%) scale(1.14)}}
.fortune-page .incense-flame{position:absolute;z-index:12;left:50%;top:16px;width:24px;height:46px;transform:translateX(-50%) rotate(2deg);opacity:0;filter:drop-shadow(0 0 8px rgba(255,128,15,.6));}
.fortune-page .incense-flame::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 70%,#fff7c2 0 16%,#ffc63e 30%,#f16c1b 58%,transparent 69%);border-radius:55% 45% 55% 45%;clip-path:polygon(50% 0,70% 28%,100% 52%,70% 100%,30% 100%,0 55%,34% 28%);animation:realFlame .28s infinite alternate;}
.fortune-page .incense-button.burning .incense-flame{opacity:1}
@keyframes realFlame{from{transform:scale(.88) translateY(2px) rotate(-3deg)}to{transform:scale(1.08) translateY(-2px) rotate(4deg)}}
.fortune-page .incense-smoke{position:absolute;z-index:10;left:50%;top:-12px;width:170px;height:230px;transform:translateX(-50%);pointer-events:none;opacity:0;}
.fortune-page .incense-smoke i{position:absolute;bottom:0;left:50%;width:38px;height:100px;border-radius:50%;border:3px solid rgba(114,101,87,.18);border-left-color:transparent;border-bottom-color:transparent;filter:blur(2px);transform-origin:bottom center;opacity:0;}
.fortune-page .incense-smoke i:nth-child(1){animation:smokeReal 4s 0s infinite}.fortune-page .incense-smoke i:nth-child(2){animation:smokeReal 4s .8s infinite}.fortune-page .incense-smoke i:nth-child(3){animation:smokeReal 4s 1.6s infinite}.fortune-page .incense-smoke i:nth-child(4){animation:smokeReal 4s 2.4s infinite}
.fortune-page .incense-smoke.active{opacity:1}
@keyframes smokeReal{0%{opacity:0;transform:translate(-50%,18px) scale(.55) rotate(-5deg)}18%{opacity:.45}70%{opacity:.16}100%{opacity:0;transform:translate(calc(-50% + 32px),-165px) scale(1.55) rotate(12deg)}}
.fortune-page .incense-censer{position:absolute;z-index:7;bottom:20px;left:50%;width:230px;height:100px;transform:translateX(-50%);}
.fortune-page .censer-rim{position:absolute;left:50%;top:0;width:210px;height:32px;transform:translateX(-50%);border-radius:50%;background:linear-gradient(180deg,#e7c879,#8c5520 48%,#4d2916);box-shadow:0 5px 12px rgba(44,18,5,.28)}
.fortune-page .censer-body{position:absolute;left:50%;top:14px;width:184px;height:68px;transform:translateX(-50%);border-radius:15px 15px 42px 42px;background:linear-gradient(90deg,#542918,#b4772d 26%,#e0bb65 50%,#9a6226 75%,#4a2414);border:2px solid #5e3217;box-shadow:inset 0 8px 14px rgba(255,240,177,.22),0 12px 20px rgba(42,19,5,.22)}
.fortune-page .censer-body::after{content:"福";position:absolute;inset:0;display:grid;place-items:center;color:#6e1818;font-size:30px;font-weight:900;opacity:.75}
.fortune-page .censer-foot{position:absolute;left:50%;bottom:0;width:90px;height:25px;transform:translateX(-50%);border-radius:0 0 30px 30px;background:linear-gradient(90deg,#5a2c15,#c38a38,#5a2c15)}
.fortune-page .incense-ash-bed{position:absolute;z-index:9;left:50%;bottom:37px;width:158px;height:20px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(ellipse,#5b3a28,#9a7047 58%,transparent 70%);}
.fortune-page .incense-ash-bed span{position:absolute;width:5px;height:5px;border-radius:50%;background:#6c4b35;top:7px}.fortune-page .incense-ash-bed span:nth-child(1){left:25px}.fortune-page .incense-ash-bed span:nth-child(2){left:56px;top:5px}.fortune-page .incense-ash-bed span:nth-child(3){left:88px;top:9px}.fortune-page .incense-ash-bed span:nth-child(4){left:112px;top:4px}.fortune-page .incense-ash-bed span:nth-child(5){left:136px;top:8px}
.fortune-page .incense-progress{width:min(430px,88%);height:10px;margin-top:10px;background:#e7d1a0;border:1px solid rgba(114,67,19,.14)}
.fortune-page .incense-progress-bar{background:linear-gradient(90deg,#7d1117,#b63a20,#d4a33e);box-shadow:0 0 10px rgba(196,107,23,.35)}
.fortune-page .incense-digits span{background:linear-gradient(145deg,#fffaf0,#f1d08a);border:2px solid #ad772a;color:#7a1018;box-shadow:0 10px 22px rgba(80,35,5,.14),inset 0 0 18px rgba(255,255,255,.55);}
.fortune-page .incense-digits span.revealed{animation:incenseDigitIn .7s cubic-bezier(.16,.84,.2,1) both}
@keyframes incenseDigitIn{0%{opacity:0;transform:translateY(15px) scale(.7);filter:blur(6px)}60%{transform:translateY(-4px) scale(1.12);filter:blur(0)}100%{opacity:1;transform:none}}
.fortune-page .falling-ash{position:absolute;z-index:15;left:50%;top:160px;width:5px;height:5px;border-radius:50%;background:#59402f;animation:ashFall .9s ease-in forwards}
@keyframes ashFall{0%{opacity:.9;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(calc(-50% + 12px),150px) scale(.55)}}
.fortune-page .incense-altar.burn-step-1 .incense-stick{filter:brightness(.98)}
.fortune-page .incense-altar.burn-step-2 .incense-stick{filter:brightness(.9)}
.fortune-page .incense-altar.burn-step-3 .incense-stick{filter:brightness(.76)}
.fortune-page .incense-altar.incense-complete .incense-stick{filter:brightness(.62)}

/* Admin image uploader — always visible; server remains the authority for Admin permission */
.fortune-page .premium-upload-row{grid-template-columns:64px 70px minmax(180px,1fr) auto;gap:10px;padding:10px 12px;background:rgba(255,250,236,.82);border:1px solid rgba(145,94,28,.18);border-radius:15px;}
.fortune-page .admin-upload-preview{width:58px;height:58px;border-radius:12px;overflow:hidden;background:linear-gradient(145deg,#fff3c9,#dfb65d);display:grid;place-items:center;border:1px solid rgba(130,75,17,.18);}
.fortune-page .admin-upload-preview img{width:100%;height:100%;object-fit:cover;display:block;}
.fortune-page .premium-upload-row input{font-size:12px;min-width:0;}
.fortune-page .admin-upload-btn{white-space:nowrap;}
@media(max-width:700px){.fortune-page .premium-upload-row{grid-template-columns:58px 1fr}.fortune-page .premium-upload-row input,.fortune-page .premium-upload-row button{grid-column:1/-1}.fortune-page .release-animation-stage{min-height:390px}.fortune-page .release-person{left:17%}.fortune-page .release-number-return b{font-size:36px}.fortune-page .incense-altar{height:390px}}

/* =========================================================
   MAHA CHOK V4 — RELEASE / INCENSE FINAL POLISH
   ========================================================= */
.fortune-page .release-animation-stage{overflow:hidden;min-height:560px;background:linear-gradient(180deg,#120f22 0%,#20234a 34%,#24566b 62%,#a9854d 100%);border:1px solid rgba(255,214,117,.35);box-shadow:inset 0 0 120px rgba(255,214,117,.08),0 28px 70px rgba(45,20,5,.22)}
.fortune-page .release-animation-stage::after{content:"";position:absolute;inset:auto 0 0;height:30%;background:linear-gradient(180deg,transparent,rgba(9,39,51,.28));pointer-events:none;z-index:2}
.fortune-page .release-scene{inset:0;overflow:hidden}
.fortune-page .release-moon{position:absolute;z-index:2;right:13%;top:8%;width:92px;height:92px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fffdf0,#ffe7a1 60%,#d39a3f);box-shadow:0 0 55px rgba(255,225,145,.42)}
.fortune-page .release-moon::after{content:"";position:absolute;right:-11px;top:-4px;width:90px;height:90px;border-radius:50%;background:#171631}
.fortune-page .release-lantern{position:absolute;z-index:5;font-size:42px;filter:drop-shadow(0 8px 15px rgba(255,124,31,.3));animation:lanternFloat 3.2s ease-in-out infinite}
.fortune-page .lantern-left{left:8%;top:10%}.fortune-page .lantern-right{right:6%;top:26%;animation-delay:.8s}
@keyframes lanternFloat{50%{transform:translateY(-8px) rotate(1deg);filter:drop-shadow(0 0 22px rgba(255,169,56,.55))}}
.fortune-page .release-cloud{position:absolute;z-index:3;width:180px;height:34px;border-radius:50%;border-top:2px solid rgba(255,235,190,.25);filter:blur(.2px);opacity:.7}
.fortune-page .cloud-a{left:12%;top:22%;animation:cloudDrift 8s ease-in-out infinite}.fortune-page .cloud-b{right:20%;top:38%;animation:cloudDrift 10s ease-in-out infinite reverse}
@keyframes cloudDrift{50%{transform:translateX(38px)}}
.fortune-page .release-lotus{position:absolute;z-index:6;color:#ffe5a0;font-size:28px;text-shadow:0 0 20px rgba(255,203,90,.9);animation:lotusGlow 2s ease-in-out infinite}
.fortune-page .lotus-a{left:23%;bottom:27%}.fortune-page .lotus-b{right:18%;bottom:22%;animation-delay:.7s}
@keyframes lotusGlow{50%{transform:scale(1.25);opacity:.55}}
.fortune-page .release-water{z-index:4;height:48%;bottom:0;background:linear-gradient(180deg,rgba(49,139,156,.18),rgba(8,58,76,.88));border-top:1px solid rgba(255,255,255,.3);overflow:hidden}
.fortune-page .release-water::before,.fortune-page .release-water::after{content:"";position:absolute;left:-10%;width:120%;height:90px;border-top:2px solid rgba(198,242,237,.22);border-radius:50%;filter:blur(.2px)}
.fortune-page .release-water::before{top:20px;animation:waterRoll 4.2s ease-in-out infinite}.fortune-page .release-water::after{top:88px;animation:waterRoll 5.2s ease-in-out infinite reverse}
@keyframes waterRoll{50%{transform:translateX(5%) scaleY(1.2)}}
.fortune-page .water-reflection{position:absolute;left:45%;top:0;width:100px;height:100%;background:linear-gradient(180deg,rgba(255,226,143,.35),transparent 65%);filter:blur(14px);animation:reflection 2.4s ease-in-out infinite}
@keyframes reflection{50%{opacity:.45;transform:scaleX(1.6)}}
.fortune-page .release-path{position:absolute;z-index:5;left:28%;bottom:17%;width:44%;height:120px;border-top:2px solid rgba(255,230,159,.28);border-radius:50%;transform:rotate(-7deg);filter:blur(.2px)}
.fortune-page .release-person{z-index:9;left:24%;bottom:25%;width:100px;height:190px;filter:drop-shadow(0 15px 12px rgba(0,0,0,.35));transition:transform 1s cubic-bezier(.2,.8,.2,1)}
.fortune-page .person-head{position:absolute;left:37px;top:16px;width:34px;height:34px;border-radius:50%;background:linear-gradient(145deg,#f1c49a,#9d593d);z-index:3}
.fortune-page .person-hair{position:absolute;left:31px;top:10px;width:46px;height:24px;border-radius:50% 50% 30% 30%;background:#171018;z-index:4}
.fortune-page .person-body{position:absolute;left:25px;top:52px;width:58px;height:108px;border-radius:28px 28px 8px 8px;background:linear-gradient(90deg,#57141c,#bb2630 48%,#531017);border:1px solid rgba(255,224,157,.25)}
.fortune-page .person-arm{position:absolute;z-index:5;width:18px;height:82px;border-radius:18px;background:linear-gradient(180deg,#a96646,#5e2b24);top:63px;transform-origin:top center}.fortune-page .arm-back{left:17px;transform:rotate(18deg)}.fortune-page .arm-front{left:69px;transform:rotate(-52deg)}
.fortune-page .person-halo{position:absolute;left:8px;top:-7px;width:88px;height:88px;border-radius:50%;border:1px solid rgba(255,218,112,.5);box-shadow:0 0 35px rgba(255,203,82,.22)}
.fortune-page .release-person.release-let-go{transform:translate(80px,6px)}
.fortune-page .release-animal{z-index:11;left:47%;bottom:29%;transition:none}
.fortune-page .release-turtle .animal-shell{background:radial-gradient(circle at 35% 25%,#d6ed9a 0 5%,transparent 6%),repeating-radial-gradient(circle at 50% 45%,#203f36 0 4px,#6c9558 5px 9px,#294b38 10px 13px);box-shadow:inset 0 0 18px rgba(255,255,220,.22),0 0 22px rgba(128,214,133,.18)}
.fortune-page .release-fish .fish-body{background:linear-gradient(145deg,#ffd98a 0%,#f28b43 45%,#b53a3e 100%);box-shadow:inset 10px 6px 18px rgba(255,255,255,.25),0 0 25px rgba(255,164,74,.16)}
.fortune-page .release-fish .fish-scale{position:absolute;width:10px;height:7px;border:1px solid rgba(255,238,169,.55);border-radius:50%;z-index:3}.fortune-page .release-fish .s1{left:35px;top:23px}.fortune-page .release-fish .s2{left:47px;top:30px}.fortune-page .release-fish .s3{left:26px;top:31px}
.fortune-page .animal-aura{position:absolute;inset:-18px;border-radius:50%;background:radial-gradient(circle,rgba(255,214,103,.24),transparent 68%);animation:animalAura 1.2s ease-in-out infinite alternate;pointer-events:none}
@keyframes animalAura{to{transform:scale(1.3);opacity:.25}}
.fortune-page .release-number-return{z-index:18;top:43%;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:220px;padding:18px 30px 14px;border-radius:24px;background:linear-gradient(145deg,#fff7d9,#e9c36b);border:2px solid #f5dc91;box-shadow:0 0 0 8px rgba(255,214,104,.08),0 18px 50px rgba(0,0,0,.3),inset 0 0 30px rgba(255,255,255,.55);opacity:0;transform:translateY(18px) scale(.75)}
.fortune-page .release-number-return b{font-family:Georgia,serif;font-size:50px;line-height:1;color:#7e0e16;letter-spacing:.14em;text-shadow:0 2px 0 #f8e4a2}.fortune-page .release-number-return small{font-size:12px;letter-spacing:.28em;color:#6c441b}.fortune-page .number-seal{position:absolute;left:12px;top:12px;color:#8b141b;font-weight:900;font-size:22px;opacity:.8}
.fortune-page .release-reveal .release-number-return{animation:numberReturnV4 1.15s cubic-bezier(.16,.84,.2,1) forwards,mahNumberGlow 1.2s ease-in-out infinite alternate}
@keyframes numberReturnV4{0%{opacity:0;transform:translateY(20px) scale(.65) rotate(-3deg);filter:blur(8px)}65%{opacity:1;transform:translateY(-5px) scale(1.08) rotate(1deg);filter:blur(0)}100%{opacity:1;transform:none}}
.fortune-page .release-particles{position:absolute;inset:0;z-index:16;pointer-events:none}.fortune-page .release-particles i{position:absolute;width:5px;height:5px;border-radius:50%;background:#ffe49a;box-shadow:0 0 12px #ffd15a;opacity:0}.fortune-page .release-reveal .release-particles i{animation:particleRise 1.7s ease-out forwards}.fortune-page .release-particles i:nth-child(1){left:42%;bottom:30%;animation-delay:.05s}.fortune-page .release-particles i:nth-child(2){left:48%;bottom:27%;animation-delay:.15s}.fortune-page .release-particles i:nth-child(3){left:55%;bottom:32%;animation-delay:.25s}.fortune-page .release-particles i:nth-child(4){left:60%;bottom:29%;animation-delay:.35s}.fortune-page .release-particles i:nth-child(5){left:51%;bottom:24%;animation-delay:.45s}.fortune-page .release-particles i:nth-child(6){left:44%;bottom:26%;animation-delay:.55s}
@keyframes particleRise{0%{opacity:0;transform:translate(0,30px) scale(.3)}25%{opacity:1}100%{opacity:0;transform:translate(var(--px,20px),-150px) scale(1.2)}}

/* Real incense: single long stick, ember burns downward */
.fortune-page .incense-area{min-height:600px}.fortune-page .incense-altar{height:455px;perspective:900px}
.fortune-page .incense-ritual-frame{position:absolute;z-index:3;top:22px;left:50%;transform:translateX(-50%);width:150px;height:92px;border:1px solid rgba(194,148,62,.4);border-radius:16px;background:linear-gradient(145deg,rgba(255,246,214,.75),rgba(217,174,83,.16));box-shadow:inset 0 0 25px rgba(255,255,255,.5),0 12px 25px rgba(80,38,6,.12);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#7f1118}.fortune-page .incense-ritual-frame span{font-size:36px;font-weight:900}.fortune-page .incense-ritual-frame small{font-size:10px;letter-spacing:.14em;color:#6d4a1f}
.fortune-page .incense-button{top:42px;width:120px;height:320px}.fortune-page .incense-holder{bottom:24px;width:60px;height:285px}.fortune-page .incense-stick,.fortune-page .incense-stick.second,.fortune-page .incense-stick.third{left:50%;width:8px;height:270px;transform:translateX(-50%);background:linear-gradient(90deg,#651313,#bd5d31 38%,#d99a55 50%,#8c2019 70%,#4e0e10);border-radius:6px;box-shadow:inset 1px 0 rgba(255,255,255,.25),4px 7px 12px rgba(54,18,5,.18);transition:height 1.1s ease,filter 1.1s ease}
.fortune-page .incense-stick.second,.fortune-page .incense-stick.third{display:none}
.fortune-page .incense-ember{top:-4px;width:15px;height:15px;background:#ff8b26;box-shadow:0 0 8px #ff5d00,0 0 22px rgba(255,91,0,.8)}
.fortune-page .incense-ash-line{position:absolute;left:50%;top:0;width:11px;height:18px;transform:translateX(-50%);border-radius:0 0 8px 8px;background:linear-gradient(#fff1c1,#55504a);opacity:.9}
.fortune-page .incense-button.burning .incense-stick{animation:incenseSwayV4 1.6s ease-in-out infinite alternate}
@keyframes incenseSwayV4{from{transform:translateX(-50%) rotate(-1.3deg)}to{transform:translateX(-50%) rotate(1.3deg)}}
.fortune-page .incense-glow-ring{position:absolute;z-index:4;left:50%;top:75px;width:130px;height:130px;transform:translateX(-50%);border:1px solid rgba(255,195,67,.25);border-radius:50%;box-shadow:0 0 35px rgba(255,177,54,.15);animation:incenseRing 2.2s ease-in-out infinite}.fortune-page .incense-button:not(.burning)+.incense-glow-ring{opacity:.45}
@keyframes incenseRing{50%{transform:translateX(-50%) scale(1.18);opacity:.25}}
.fortune-page .incense-number-shadow{position:absolute;z-index:2;left:50%;top:126px;transform:translateX(-50%);font-family:Georgia,serif;font-size:72px;font-weight:900;letter-spacing:.18em;color:rgba(255,218,135,.07);text-shadow:0 0 30px rgba(255,184,55,.18);pointer-events:none}
.fortune-page .incense-altar.burn-step-1 .incense-stick{height:205px;filter:brightness(.96)}.fortune-page .incense-altar.burn-step-2 .incense-stick{height:125px;filter:brightness(.82)}.fortune-page .incense-altar.burn-step-3 .incense-stick{height:48px;filter:brightness(.64)}.fortune-page .incense-altar.incense-complete .incense-stick{height:10px;filter:brightness(.5)}
.fortune-page .incense-altar.burn-step-1 .incense-ash-line{top:0}.fortune-page .incense-altar.burn-step-2 .incense-ash-line{top:0}.fortune-page .incense-altar.burn-step-3 .incense-ash-line{top:0}
.fortune-page .incense-digits{position:relative;z-index:20}.fortune-page .incense-digits span{min-width:58px;min-height:64px;font-family:Georgia,serif;font-size:34px;background:linear-gradient(145deg,#fffdf1,#e8c26e);color:#761019;border:2px solid #b98735;box-shadow:0 12px 28px rgba(70,29,5,.18),inset 0 0 16px rgba(255,255,255,.5)}

/* Admin uploader — clearer controls and visible status */
.fortune-page .admin-image-box{background:linear-gradient(145deg,#fffdf3,#f5e4bb);border:1px solid rgba(142,89,22,.28);box-shadow:0 15px 35px rgba(65,25,4,.08)}
.fortune-page .premium-upload-row{grid-template-columns:70px minmax(80px,1fr) minmax(180px,1fr) 112px;align-items:center}.fortune-page .premium-upload-row input[type=file]{width:100%;padding:8px;border:1px dashed rgba(132,81,19,.28);border-radius:10px;background:#fff}
.fortune-page .admin-upload-btn{background:linear-gradient(145deg,#8d151b,#5d0b11);color:#fff7df!important;border:1px solid #c99945!important;box-shadow:0 8px 16px rgba(79,17,9,.16)}
@media(max-width:700px){.fortune-page .release-animation-stage{min-height:500px}.fortune-page .release-moon{right:8%;width:70px;height:70px}.fortune-page .release-lantern{font-size:32px}.fortune-page .release-person{left:15%}.fortune-page .release-number-return{min-width:180px}.fortune-page .release-number-return b{font-size:38px}.fortune-page .premium-upload-row{grid-template-columns:58px 1fr}.fortune-page .premium-upload-row input,.fortune-page .premium-upload-row button{grid-column:1/-1}.fortune-page .incense-altar{height:410px}}
@keyframes mahTurtleGo{0%{transform:translate(0,0) scale(.45);opacity:0}12%{opacity:1}32%{transform:translate(60px,-34px) scale(.9) rotate(-3deg)}58%{transform:translate(150px,18px) scale(.72) rotate(4deg)}78%{transform:translate(238px,-8px) scale(.64) rotate(-2deg)}100%{transform:translate(300px,25px) scale(.55) rotate(3deg)}}
@keyframes mahFishGo{0%{transform:translate(0,0) scale(.45);opacity:0}12%{opacity:1}30%{transform:translate(65px,-22px) scale(.92) rotate(-6deg)}55%{transform:translate(145px,15px) scale(.75) rotate(5deg)}76%{transform:translate(250px,-18px) scale(.64) rotate(-3deg)}100%{transform:translate(310px,5px) scale(.56) rotate(4deg)}}
@keyframes mahTurtleReturn{0%{transform:translate(300px,25px) scale(.55)}38%{transform:translate(210px,-20px) scale(.78) rotate(-3deg)}68%{transform:translate(90px,4px) scale(.9) rotate(2deg)}100%{transform:translate(0,0) scale(.82)}}
@keyframes mahFishReturn{0%{transform:translate(310px,5px) scale(.56)}38%{transform:translate(220px,-22px) scale(.8) rotate(4deg)}68%{transform:translate(95px,10px) scale(.9) rotate(-2deg)}100%{transform:translate(0,0) scale(.82)}}


/* =========================================================
   MAHA CHOK V6 — USER-SCOPED DRAW STATE + RELEASE/INCENSE REWORK
   Page scoped only: random.html
   ========================================================= */
.fortune-page .release-animation-stage{min-height:600px;position:relative;overflow:hidden;border-radius:28px;background:linear-gradient(180deg,#10182e 0%,#1b2d55 38%,#35647b 63%,#b08b58 100%);box-shadow:inset 0 0 100px rgba(255,221,150,.08),0 24px 70px rgba(49,22,8,.2)}
.fortune-page .release-scene{position:absolute;inset:0;overflow:hidden}
.fortune-page .release-stars{position:absolute;inset:0;z-index:2}.fortune-page .release-stars i{position:absolute;width:3px;height:3px;border-radius:50%;background:#fff4c4;box-shadow:0 0 10px #ffe6a1;animation:starTwinkle 2.2s ease-in-out infinite}.fortune-page .release-stars i:nth-child(1){left:9%;top:16%}.fortune-page .release-stars i:nth-child(2){left:21%;top:9%;animation-delay:.4s}.fortune-page .release-stars i:nth-child(3){left:39%;top:19%;animation-delay:.9s}.fortune-page .release-stars i:nth-child(4){left:56%;top:10%;animation-delay:1.2s}.fortune-page .release-stars i:nth-child(5){left:72%;top:18%;animation-delay:.7s}.fortune-page .release-stars i:nth-child(6){left:84%;top:11%;animation-delay:1.5s}.fortune-page .release-stars i:nth-child(7){left:91%;top:31%;animation-delay:.2s}
@keyframes starTwinkle{0%,100%{opacity:.25;transform:scale(.65)}50%{opacity:1;transform:scale(1.35)}}
.fortune-page .release-moon{position:absolute;z-index:3;right:13%;top:8%;width:102px;height:102px;border-radius:50%;background:radial-gradient(circle at 35% 32%,#fffdf4 0 20%,#ffe9a8 62%,#d6a94f 100%);box-shadow:0 0 65px rgba(255,226,155,.42)}
.fortune-page .release-moon::after{content:"";position:absolute;width:104px;height:104px;right:-18px;top:-3px;border-radius:50%;background:#17203b}.fortune-page .release-moon span{position:absolute;inset:25px;border-radius:50%;background:rgba(194,150,74,.13);box-shadow:18px 14px 0 rgba(194,150,74,.08),-13px 9px 0 rgba(194,150,74,.06)}
.fortune-page .release-cloud{position:absolute;z-index:4;width:180px;height:34px;border-top:2px solid rgba(255,244,216,.25);border-radius:50%;opacity:.65}.fortune-page .cloud-a{left:8%;top:26%;animation:cloudDriftV6 10s ease-in-out infinite}.fortune-page .cloud-b{right:21%;top:35%;animation:cloudDriftV6 12s ease-in-out infinite reverse}@keyframes cloudDriftV6{50%{transform:translateX(45px)}}
.fortune-page .release-pagoda{position:absolute;z-index:4;left:6%;bottom:34%;width:94px;height:130px;opacity:.55;filter:drop-shadow(0 12px 12px rgba(0,0,0,.25))}.fortune-page .release-pagoda::before{content:"";position:absolute;left:22px;bottom:0;width:50px;height:112px;background:linear-gradient(90deg,#371b28,#8d2933 48%,#3c1b26);clip-path:polygon(20% 0,80% 0,80% 100%,20% 100%)}.fortune-page .release-pagoda span{position:absolute;left:0;width:94px;height:15px;border-radius:50%;background:#b37b42}.fortune-page .release-pagoda span:nth-child(1){top:15px}.fortune-page .release-pagoda span:nth-child(2){top:49px}.fortune-page .release-pagoda span:nth-child(3){top:82px}
.fortune-page .release-lantern{position:absolute;z-index:7;width:36px;height:52px;border-radius:48% 48% 44% 44%;background:linear-gradient(90deg,#9a171d,#ef4d32 48%,#8c131b);box-shadow:0 0 26px rgba(255,91,40,.4),inset 5px 0 rgba(255,227,156,.18);animation:lanternFloatV6 3.5s ease-in-out infinite}.fortune-page .release-lantern::before{content:"";position:absolute;left:50%;top:-20px;width:2px;height:22px;background:#d4aa64}.fortune-page .release-lantern::after{content:"福";position:absolute;inset:0;display:grid;place-items:center;color:#ffd98b;font-weight:900;font-size:16px}.fortune-page .release-lantern span{position:absolute;left:50%;bottom:-11px;width:9px;height:11px;background:#e3ad4f;transform:translateX(-50%)}.fortune-page .lantern-left{left:13%;top:8%}.fortune-page .lantern-right{right:7%;top:25%;animation-delay:.9s}@keyframes lanternFloatV6{50%{transform:translateY(-9px) rotate(2deg);filter:drop-shadow(0 0 18px rgba(255,164,65,.6))}}
.fortune-page .release-bridge{position:absolute;z-index:6;left:25%;bottom:36%;width:50%;height:90px;border-bottom:9px solid #6c432c;border-radius:0 0 50% 50%;box-shadow:0 16px 18px rgba(0,0,0,.16)}.fortune-page .release-bridge::before{content:"";position:absolute;left:0;right:0;bottom:5px;height:3px;background:#d3a064;box-shadow:0 -16px #8a5936,0 -32px #8a5936}
.fortune-page .release-water{position:absolute;z-index:5;left:0;right:0;bottom:0;height:46%;background:linear-gradient(180deg,rgba(70,157,170,.2),rgba(6,62,84,.92));border-top:1px solid rgba(232,255,247,.28)}.fortune-page .release-water .wave{position:absolute;left:-10%;width:120%;height:60px;border-top:2px solid rgba(208,247,241,.28);border-radius:50%;animation:waveFloatV6 4.6s ease-in-out infinite}.fortune-page .release-water .w1{top:20px}.fortune-page .release-water .w2{top:72px;animation-delay:.8s}.fortune-page .release-water .w3{top:128px;animation-delay:1.4s}.fortune-page .release-water .water-glow{position:absolute;left:52%;top:0;width:110px;height:100%;background:linear-gradient(180deg,rgba(255,226,154,.28),transparent 70%);filter:blur(15px);animation:waterGlowV6 2.8s ease-in-out infinite}.fortune-page .release-water .fish-shadow{position:absolute;left:66%;top:35%;width:90px;height:18px;border-radius:50%;background:rgba(0,25,35,.18);filter:blur(5px);animation:fishShadowV6 2.6s ease-in-out infinite}@keyframes waveFloatV6{50%{transform:translateX(4%) scaleY(1.15)}}@keyframes waterGlowV6{50%{opacity:.5;transform:scaleX(1.5)}}@keyframes fishShadowV6{50%{transform:translateX(-35px) scale(.8)}}
.fortune-page .release-reeds{position:absolute;z-index:7;right:5%;bottom:29%;width:100px;height:110px}.fortune-page .release-reeds i{position:absolute;bottom:0;width:6px;height:90px;background:linear-gradient(90deg,#284e39,#8ca54d);border-radius:100% 0;transform-origin:bottom;animation:reedSwayV6 2.8s ease-in-out infinite}.fortune-page .release-reeds i:nth-child(1){left:10px;height:70px}.fortune-page .release-reeds i:nth-child(2){left:28px;height:100px;animation-delay:.5s}.fortune-page .release-reeds i:nth-child(3){left:48px;height:78px;animation-delay:1s}.fortune-page .release-reeds i:nth-child(4){left:65px;height:108px;animation-delay:.2s}.fortune-page .release-reeds i:nth-child(5){left:82px;height:68px;animation-delay:.8s}@keyframes reedSwayV6{50%{transform:rotate(5deg)}}
.fortune-page .release-person{z-index:10;left:22%;bottom:23%;width:100px;height:190px;filter:drop-shadow(0 16px 12px rgba(0,0,0,.35));transition:transform 1.1s cubic-bezier(.2,.8,.2,1)}.fortune-page .release-person .person-head{left:35px;top:18px;width:32px;height:35px;background:radial-gradient(circle at 35% 35%,#d99270,#8c493d);border-radius:50%}.fortune-page .release-person .person-hair{left:30px;top:12px;width:42px;height:28px;border-radius:50% 50% 35% 35%;background:#241d24}.fortune-page .release-person .person-body{left:22px;top:50px;width:62px;height:112px;border-radius:26px 26px 9px 9px;background:linear-gradient(90deg,#3e2235,#a73540 48%,#421d2d)}.fortune-page .release-person .person-arm{top:64px;height:78px}.fortune-page .release-person .arm-front{left:70px;transform:rotate(-62deg)}.fortune-page .release-person .person-hand{position:absolute;left:91px;top:121px;width:14px;height:14px;border-radius:50%;background:#c47b62}.fortune-page .release-person.release-let-go{transform:translate(95px,5px)}
.fortune-page .release-animal{z-index:13;left:47%;bottom:28%;position:absolute;opacity:0;filter:drop-shadow(0 10px 8px rgba(0,0,0,.22))}.fortune-page .release-turtle{width:92px;height:52px}.fortune-page .release-turtle .animal-shell{position:absolute;left:16px;top:10px;width:58px;height:36px;border-radius:55% 55% 46% 46%;background:radial-gradient(circle at 35% 30%,#d7ef9a 0 4%,transparent 5%),repeating-radial-gradient(circle at 50% 45%,#35583f 0 5px,#78a55c 6px 11px,#2b4938 12px 16px);box-shadow:inset 0 0 12px rgba(255,255,220,.25),0 0 20px rgba(127,223,143,.25)}.fortune-page .release-turtle .animal-shell i{position:absolute;width:18px;height:13px;border:1px solid rgba(239,255,188,.4);border-radius:50%}.fortune-page .release-turtle .animal-shell i:nth-child(1){left:7px;top:8px}.fortune-page .release-turtle .animal-shell i:nth-child(2){left:21px;top:15px}.fortune-page .release-turtle .animal-shell i:nth-child(3){left:37px;top:7px}.fortune-page .release-turtle .animal-head{position:absolute;left:68px;top:20px;width:22px;height:19px;border-radius:60% 45% 45% 60%;background:linear-gradient(135deg,#9cc66d,#476a45)}.fortune-page .release-turtle .animal-eye{position:absolute;left:82px;top:24px;width:4px;height:4px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px #1b3327}.fortune-page .release-turtle .animal-leg{position:absolute;width:18px;height:9px;border-radius:50%;background:#5d8d50}.fortune-page .release-turtle .l1{left:18px;top:37px}.fortune-page .release-turtle .l2{left:43px;top:38px}.fortune-page .release-turtle .l3{left:23px;top:5px}.fortune-page .release-turtle .l4{left:47px;top:4px}
.fortune-page .release-fish{width:110px;height:60px}.fortune-page .release-fish .fish-body{position:absolute;left:18px;top:12px;width:70px;height:40px;border-radius:58% 48% 48% 58%;background:linear-gradient(145deg,#ffd889 0,#f08b47 46%,#ba3a44 100%);box-shadow:inset 9px 7px 15px rgba(255,255,255,.25),0 0 22px rgba(255,161,78,.22)}.fortune-page .release-fish .fish-tail{position:absolute;left:0;top:16px;width:34px;height:34px;background:#dc7044;clip-path:polygon(100% 50%,0 0,18% 50%,0 100%)}.fortune-page .release-fish .fish-fin{position:absolute;left:47px;top:2px;width:24px;height:20px;background:#ef9b51;clip-path:polygon(0 100%,45% 0,100% 100%)}.fortune-page .release-fish .fish-eye{position:absolute;left:72px;top:24px;width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px #7a2430}.fortune-page .release-fish .fish-scale{position:absolute;width:12px;height:9px;border:1px solid rgba(255,242,178,.6);border-radius:50%;z-index:3}.fortune-page .release-fish .s1{left:36px;top:24px}.fortune-page .release-fish .s2{left:49px;top:30px}.fortune-page .release-fish .s3{left:26px;top:32px}.fortune-page .release-fish .fish-bubble{position:absolute;border:2px solid rgba(226,252,255,.6);border-radius:50%;opacity:0}.fortune-page .release-fish .b1{left:81px;top:4px;width:8px;height:8px}.fortune-page .release-fish .b2{left:92px;top:-8px;width:5px;height:5px}
.fortune-page .release-animal .animal-aura{position:absolute;inset:-20px;border-radius:50%;background:radial-gradient(circle,rgba(255,222,121,.3),transparent 70%);animation:animalAuraV6 1.4s ease-in-out infinite alternate}.fortune-page .release-turtle .animal-bubble{position:absolute;left:73px;top:3px;width:7px;height:7px;border:2px solid rgba(229,255,255,.5);border-radius:50%;opacity:0}@keyframes animalAuraV6{to{transform:scale(1.3);opacity:.2}}
.fortune-page .release-journey .release-turtle{animation:mahTurtleGoV6 2.25s cubic-bezier(.35,.02,.4,.98) forwards}.fortune-page .release-journey .release-fish{animation:mahFishGoV6 2.25s cubic-bezier(.35,.02,.4,.98) forwards}.fortune-page .release-journey .release-turtle .animal-bubble,.fortune-page .release-journey .release-fish .fish-bubble{animation:bubblePopV6 1.4s ease-out infinite}.fortune-page .release-return-phase .release-turtle{animation:mahTurtleReturnV6 1.55s cubic-bezier(.25,.8,.25,1) forwards}.fortune-page .release-return-phase .release-fish{animation:mahFishReturnV6 1.55s cubic-bezier(.25,.8,.25,1) forwards}@keyframes mahTurtleGoV6{0%{opacity:0;transform:translate(0,0) scale(.35)}12%{opacity:1}38%{transform:translate(95px,-30px) scale(.9) rotate(-4deg)}65%{transform:translate(215px,8px) scale(.72) rotate(4deg)}100%{transform:translate(325px,-10px) scale(.6) rotate(-2deg)}}@keyframes mahFishGoV6{0%{opacity:0;transform:translate(0,0) scale(.35)}12%{opacity:1}35%{transform:translate(90px,20px) scale(.95) rotate(-7deg)}62%{transform:translate(210px,-8px) scale(.72) rotate(5deg)}100%{transform:translate(335px,8px) scale(.6) rotate(-3deg)}}@keyframes mahTurtleReturnV6{0%{opacity:1;transform:translate(325px,-10px) scale(.6)}40%{transform:translate(215px,15px) scale(.78) rotate(3deg)}72%{transform:translate(92px,-5px) scale(.9) rotate(-2deg)}100%{transform:translate(0,0) scale(.84)}}@keyframes mahFishReturnV6{0%{opacity:1;transform:translate(335px,8px) scale(.6)}40%{transform:translate(220px,-12px) scale(.8) rotate(-5deg)}72%{transform:translate(100px,10px) scale(.9) rotate(3deg)}100%{transform:translate(0,0) scale(.84)}}@keyframes bubblePopV6{0%{opacity:0;transform:translateY(4px) scale(.5)}35%{opacity:.8}100%{opacity:0;transform:translate(18px,-45px) scale(1.2)}}
.fortune-page .release-number-return{z-index:20}.fortune-page .release-reveal .release-number-return{animation:numberReturnV6 1.2s cubic-bezier(.16,.84,.2,1) forwards,numberGlowV6 1.3s ease-in-out infinite alternate}@keyframes numberReturnV6{0%{opacity:0;transform:translateY(22px) scale(.55) rotate(-4deg);filter:blur(8px)}55%{opacity:1;transform:translateY(-5px) scale(1.1) rotate(1deg);filter:blur(0)}100%{opacity:1;transform:none}}@keyframes numberGlowV6{to{box-shadow:0 0 0 10px rgba(255,214,104,.08),0 0 55px rgba(255,209,89,.5),0 18px 50px rgba(0,0,0,.3)}}
.fortune-page .release-card{transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease}.fortune-page .release-card:hover{transform:translateY(-8px) scale(1.015)}.fortune-page .release-mini-turtle,.fortune-page .release-mini-fish{position:relative;display:block;width:68px;height:48px}.fortune-page .release-mini-turtle i{position:absolute;left:12px;top:8px;width:42px;height:28px;border-radius:50%;background:radial-gradient(circle at 50% 45%,#7ea15c 0 4px,#456d4a 5px 10px,#6f9c58 11px 16px);box-shadow:inset 0 0 10px rgba(255,255,255,.25)}.fortune-page .release-mini-turtle b{position:absolute;right:4px;top:17px;width:17px;height:14px;border-radius:50%;background:#8eb86d}.fortune-page .release-mini-fish i{position:absolute;left:7px;top:10px;width:48px;height:30px;border-radius:58%;background:linear-gradient(145deg,#ffd98b,#f08a45 50%,#c63f47)}.fortune-page .release-mini-fish b{position:absolute;left:0;top:10px;width:22px;height:28px;background:#dd7046;clip-path:polygon(100% 50%,0 0,15% 50%,0 100%)}

/* Physical numbered incense-stick look, inspired by the supplied reference photo. */
.fortune-page .incense-area{min-height:650px}.fortune-page .incense-altar{height:500px;position:relative;overflow:hidden;border-radius:28px;background:radial-gradient(circle at 50% 36%,rgba(255,226,157,.14),transparent 34%),linear-gradient(180deg,#17151a 0,#29232a 58%,#4c3021 100%);box-shadow:inset 0 0 90px rgba(0,0,0,.35),0 24px 60px rgba(50,22,5,.22)}
.fortune-page .incense-ritual-frame{top:18px;width:176px;height:82px;background:rgba(250,241,213,.08);border-color:rgba(226,190,107,.4);color:#f5d78e}.fortune-page .incense-ritual-frame small{color:#e5c98e}
.fortune-page .incense-paper-shadow{position:absolute;z-index:4;left:calc(50% + 78px);bottom:84px;width:170px;height:34px;background:rgba(0,0,0,.35);filter:blur(10px);border-radius:50%}
.fortune-page .incense-number-stick{position:absolute;z-index:12;left:calc(50% + 36px);bottom:102px;width:82px;height:250px;padding-top:16px;background:linear-gradient(90deg,#d9ccb0,#fff6d8 40%,#e4d8b9 80%,#bfb293);border:1px solid rgba(75,57,36,.35);box-shadow:6px 12px 20px rgba(0,0,0,.3),inset 0 0 14px rgba(255,255,255,.55);transform:rotate(4deg);transform-origin:bottom center;transition:height 1.4s ease,transform 1.4s ease}.fortune-page .incense-number-stick::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(116,91,51,.06) 0 2px,transparent 2px 8px);mix-blend-mode:multiply;pointer-events:none}.fortune-page .incense-number-stick::after{content:"";position:absolute;left:10px;right:10px;top:8px;height:1px;background:rgba(112,78,39,.35)}
.fortune-page .incense-number-stick .paper-top,.fortune-page .incense-number-stick .paper-bottom{display:block;text-align:center;color:#6e5b3d;font-size:11px;font-weight:800;letter-spacing:.08em}.fortune-page .incense-number-stick .paper-digit{display:block;text-align:center;font-family:Georgia,serif;font-size:48px;line-height:.95;color:#171717;text-shadow:0 1px rgba(255,255,255,.5);opacity:.08;transform:translateY(8px);transition:.5s}.fortune-page .incense-number-stick .paper-digit.d1{margin-top:18px}.fortune-page .incense-number-stick .paper-digit.d2,.fortune-page .incense-number-stick .paper-digit.d3{margin-top:4px}.fortune-page .incense-number-stick.digit-1 .d1,.fortune-page .incense-number-stick.digit-2 .d1,.fortune-page .incense-number-stick.digit-2 .d2,.fortune-page .incense-number-stick.digit-3 .d1,.fortune-page .incense-number-stick.digit-3 .d2,.fortune-page .incense-number-stick.digit-3 .d3{opacity:1;transform:none}.fortune-page .incense-number-stick.show-digits{box-shadow:6px 12px 25px rgba(0,0,0,.32),inset 0 0 20px rgba(255,255,255,.6)}
.fortune-page .incense-button{z-index:11;left:calc(50% - 54px);top:auto;bottom:92px;width:110px;height:315px}.fortune-page .incense-holder{bottom:18px;height:280px}.fortune-page .incense-stick{width:9px;height:270px;background:linear-gradient(90deg,#7c1719,#b6322c 35%,#e2a45f 50%,#8b1e1c 72%,#4b1114);box-shadow:inset 1px 0 rgba(255,245,203,.25),4px 8px 14px rgba(0,0,0,.28)}.fortune-page .incense-button.burning .incense-stick{animation:incenseSwayV6 1.7s ease-in-out infinite alternate}@keyframes incenseSwayV6{from{transform:translateX(-50%) rotate(-1.1deg)}to{transform:translateX(-50%) rotate(1.1deg)}}
.fortune-page .incense-flame{top:8px}.fortune-page .incense-ash-bed{bottom:73px;background:radial-gradient(ellipse,#5b3d2c,#8d6844 58%,transparent 70%)}.fortune-page .incense-censer{bottom:18px;width:280px;height:130px}.fortune-page .censer-rim{width:250px;height:34px;background:linear-gradient(180deg,#e8cc83,#9c652c 48%,#482416)}.fortune-page .censer-body{width:220px;height:88px;border-radius:15px 15px 52px 52px;background:linear-gradient(90deg,#4c2618,#9d5d26 25%,#d7ac58 50%,#8e5422 75%,#482318)}.fortune-page .censer-body::after{font-size:38px}.fortune-page .censer-foot{width:110px;height:27px}
.fortune-page .incense-number-shadow{top:auto;bottom:180px;font-size:84px;color:rgba(255,218,135,.05)}
.fortune-page .incense-digits{margin-top:18px}.fortune-page .incense-digits span{background:#f7eed2;color:#191919;border-color:#a28a5b;border-radius:8px;box-shadow:0 10px 24px rgba(38,20,7,.18);font-family:Georgia,serif}.fortune-page .incense-status{color:#5d321d;font-weight:700}
@media(max-width:700px){.fortune-page .release-animation-stage{min-height:520px}.fortune-page .release-person{left:11%}.fortune-page .release-number-return{min-width:180px}.fortune-page .release-bridge{left:17%;width:66%}.fortune-page .incense-altar{height:450px}.fortune-page .incense-number-stick{left:calc(50% + 24px);height:215px;width:68px}.fortune-page .incense-number-stick .paper-digit{font-size:38px}.fortune-page .incense-button{left:calc(50% - 60px);bottom:76px}.fortune-page .incense-censer{bottom:10px}}

/* =========================================================
   V7 — SIMPLE CUTE RELEASE + SINGLE NUMBER INCENSE
   Page scoped only
========================================================= */
.fortune-page .release-animation-stage{
  min-height:340px;
  margin:18px 0 20px;
  border-radius:28px;
  overflow:hidden;
  background:linear-gradient(180deg,#fff8e8 0%,#f8e6bd 56%,#d9edf0 57%,#b8dfe3 100%);
  border:1px solid rgba(132,82,30,.16);
  box-shadow:0 16px 38px rgba(88,48,13,.10), inset 0 0 30px rgba(255,255,255,.35);
}
.fortune-page .release-scene{inset:0}
.fortune-page .release-stars i{opacity:.55;transform:scale(.65);animation:tinyTwinkle 2.8s ease-in-out infinite}
@keyframes tinyTwinkle{50%{opacity:1;transform:scale(1)}}
.fortune-page .release-moon{width:62px;height:62px;right:12%;top:28px;box-shadow:0 0 30px rgba(255,219,135,.45)}
.fortune-page .release-pagoda{transform:scale(.8);bottom:33%}
.fortune-page .release-lantern{transform:scale(.72);opacity:.78}
.fortune-page .release-bridge{bottom:34%;opacity:.55}
.fortune-page .release-water{height:45%;background:linear-gradient(180deg,rgba(110,181,188,.16),rgba(63,135,148,.32))}
.fortune-page .release-person{left:27%;bottom:31%;width:70px;height:120px;transform:scale(.82);transform-origin:bottom center}
.fortune-page .release-person.release-let-go{transform:translateX(32px) translateY(4px) scale(.82)}
.fortune-page .release-animal{left:47%;bottom:29%;transform:scale(.48);filter:drop-shadow(0 8px 8px rgba(44,83,80,.16))}
.fortune-page .release-animal.show{animation:gentleAnimalGo 1.7s cubic-bezier(.25,.7,.2,1) forwards}
.fortune-page .release-animal.returning{animation:gentleAnimalReturn 1.25s cubic-bezier(.18,.8,.22,1) forwards}
@keyframes gentleAnimalGo{0%{opacity:0;transform:translate(0,0) scale(.45)}18%{opacity:1}55%{transform:translate(80px,-12px) scale(.72)}100%{opacity:.92;transform:translate(155px,24px) scale(.58)}}
@keyframes gentleAnimalReturn{0%{opacity:.92;transform:translate(155px,24px) scale(.58)}55%{transform:translate(72px,-5px) scale(.72)}100%{opacity:1;transform:translate(0,0) scale(.64)}}
.fortune-page .release-number-return{top:42%;font-size:34px;color:#7a1018;text-shadow:0 2px 0 #fff8df,0 0 14px rgba(255,203,88,.35)}
.fortune-page .release-number-return .number-seal{font-size:20px;width:34px;height:34px;line-height:34px}
.fortune-page .release-status-text{bottom:13px;font-size:13px;color:#65472e;font-weight:700}
.fortune-page .release-grid{max-width:620px;gap:14px}
.fortune-page .release-card{min-height:92px;padding:14px 16px;border-radius:18px;background:linear-gradient(145deg,#fffdf5,#f5e2bb);box-shadow:0 10px 22px rgba(81,31,5,.08)}
.fortune-page .release-icon-wrap{width:58px;height:58px;flex-basis:58px;border-radius:17px}
.fortune-page .release-card-copy strong{font-size:17px}
.fortune-page .release-card-copy small{font-size:12px}
.fortune-page .release-card-arrow{font-size:19px}

/* Single incense number: one real-looking stick + one vertical paper number strip. */
.fortune-page .incense-simple{min-height:540px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
.fortune-page .incense-single-stage{position:relative;width:min(430px,92%);height:420px;margin:6px auto 4px;border-radius:26px;background:linear-gradient(180deg,#fbf5e8 0%,#f4e6c9 100%);border:1px solid rgba(111,70,35,.12);box-shadow:inset 0 0 35px rgba(255,255,255,.65),0 14px 30px rgba(75,39,10,.08);overflow:hidden}
.fortune-page .incense-soft-glow{position:absolute;width:180px;height:180px;left:50%;top:38px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle,rgba(255,203,103,.28),transparent 70%);animation:incenseSoftGlow 2.8s ease-in-out infinite}
@keyframes incenseSoftGlow{50%{transform:translateX(-50%) scale(1.08);opacity:.72}}
.fortune-page .incense-number-stick{position:absolute;z-index:8;left:50%;bottom:76px;width:78px;height:250px;transform:translateX(-6px) rotate(3deg);transform-origin:bottom center;padding-top:12px;border-radius:3px 3px 1px 1px;background:linear-gradient(90deg,#cbbd9e,#fff4cf 40%,#e4d8b7 78%,#b9aa8b);border:1px solid rgba(73,55,31,.28);box-shadow:5px 9px 18px rgba(55,28,8,.20),inset 0 0 12px rgba(255,255,255,.5);transition:height 1.15s ease,filter 1.15s ease,opacity .4s}
.fortune-page .incense-number-stick::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(103,76,39,.055) 0 2px,transparent 2px 7px);pointer-events:none}
.fortune-page .incense-number-stick::after{content:"";position:absolute;top:7px;left:8px;right:8px;border-top:1px solid rgba(105,74,39,.25)}
.fortune-page .incense-number-stick .paper-top,.fortune-page .incense-number-stick .paper-bottom{display:block;text-align:center;color:#7b5c36;font-size:10px;font-weight:900;letter-spacing:.08em}
.fortune-page .incense-number-stick .paper-digit{display:block;text-align:center;font-family:Georgia,'Times New Roman',serif;font-size:46px;line-height:.94;color:#191919;font-weight:800;opacity:.18;transform:translateY(6px);transition:opacity .45s ease,transform .45s ease}
.fortune-page .incense-number-stick .d1{margin-top:20px}.fortune-page .incense-number-stick .d2,.fortune-page .incense-number-stick .d3{margin-top:3px}
.fortune-page .incense-number-stick.reveal-1 .d1,.fortune-page .incense-number-stick.reveal-2 .d1,.fortune-page .incense-number-stick.reveal-2 .d2,.fortune-page .incense-number-stick.reveal-3 .d1,.fortune-page .incense-number-stick.reveal-3 .d2,.fortune-page .incense-number-stick.reveal-3 .d3{opacity:1;transform:none}
.fortune-page .incense-button{position:absolute;z-index:9;left:calc(50% - 8px);bottom:65px;top:auto;width:34px;height:300px;padding:0;border:0;background:none;transform:translateX(-50%);cursor:pointer}
.fortune-page .incense-stick-wrap{position:absolute;bottom:0;left:50%;width:16px;height:292px;transform:translateX(-50%)}
.fortune-page .incense-button .incense-stick{position:absolute;bottom:0;left:50%;width:8px;height:276px;transform:translateX(-50%);border-radius:6px;background:linear-gradient(90deg,#681517,#a62b24 34%,#d79c5a 51%,#8b1e1b 72%,#4b1012);box-shadow:inset 1px 0 rgba(255,246,207,.25),4px 6px 12px rgba(52,19,5,.2);transition:height 1.15s ease,filter 1.15s ease}
.fortune-page .incense-button.burning .incense-stick{animation:singleIncenseSway 1.55s ease-in-out infinite alternate}
@keyframes singleIncenseSway{from{transform:translateX(-50%) rotate(-1deg)}to{transform:translateX(-50%) rotate(1deg)}}
.fortune-page .incense-button .incense-ember{position:absolute;left:50%;top:-3px;width:10px;height:10px;transform:translateX(-50%);border-radius:50%;background:#ff7a32;box-shadow:0 0 10px #ff9d3b,0 0 20px rgba(255,110,35,.55);opacity:0}
.fortune-page .incense-button.burning .incense-ember{opacity:1;animation:emberPulse .42s ease-in-out infinite alternate}
@keyframes emberPulse{to{transform:translateX(-50%) scale(1.25);filter:brightness(1.3)}}
.fortune-page .incense-flame{position:absolute;z-index:12;left:50%;top:-4px;width:18px;height:30px;transform:translateX(-50%) rotate(45deg) scale(.65);border-radius:65% 35% 65% 35%;background:linear-gradient(135deg,#fff8b4 0 25%,#ffb13b 48%,#e54824 76%);opacity:0;filter:drop-shadow(0 0 7px rgba(255,125,35,.7));transition:opacity .25s}
.fortune-page .incense-flame.active{opacity:1;animation:tinyFlame .38s ease-in-out infinite alternate}
@keyframes tinyFlame{to{transform:translateX(-50%) rotate(45deg) scale(.8) translateY(-2px)}}
.fortune-page .incense-smoke{position:absolute;z-index:10;left:50%;top:20px;width:100px;height:140px;transform:translateX(-50%);opacity:0;pointer-events:none}
.fortune-page .incense-smoke i{position:absolute;width:22px;height:22px;border:2px solid rgba(120,115,105,.18);border-radius:50%;left:35px;bottom:5px;filter:blur(.3px);opacity:0}
.fortune-page .incense-smoke.active{opacity:1}.fortune-page .incense-smoke.active i:nth-child(1){animation:smokeCute 2.4s infinite}.fortune-page .incense-smoke.active i:nth-child(2){animation:smokeCute 2.8s .45s infinite}.fortune-page .incense-smoke.active i:nth-child(3){animation:smokeCute 3.2s .9s infinite}
@keyframes smokeCute{0%{opacity:0;transform:translate(0,18px) scale(.55)}25%{opacity:.42}100%{opacity:0;transform:translate(18px,-105px) scale(1.35)}}
.fortune-page .incense-censer{position:absolute;z-index:7;left:50%;bottom:18px;transform:translateX(-50%);width:180px;height:80px}.fortune-page .incense-censer .censer-rim{position:absolute;left:50%;top:0;transform:translateX(-50%);width:160px;height:32px;border-radius:50%;background:radial-gradient(ellipse at center,#8d6d49 0 38%,#b88b52 40% 52%,#68462d 54% 100%);box-shadow:0 5px 10px rgba(53,25,7,.18)}.fortune-page .incense-censer .censer-body{position:absolute;left:18px;top:16px;width:144px;height:52px;border-radius:0 0 60px 60px;background:linear-gradient(90deg,#8f2530,#c44d42 45%,#8c2029);box-shadow:inset 0 -7px 12px rgba(62,9,11,.22),0 7px 14px rgba(50,20,5,.14)}.fortune-page .incense-censer .censer-foot{position:absolute;left:45px;bottom:0;width:90px;height:15px;border-radius:50%;background:#6f3b2a}
.fortune-page .incense-number-shadow{position:absolute;z-index:13;left:50%;bottom:36px;transform:translateX(42px);font-size:12px;font-weight:900;color:#6c4c2d;opacity:.72}
.fortune-page .incense-progress{width:min(260px,78%);height:5px;margin-top:5px;border-radius:99px;background:#e8d8bb;overflow:hidden}.fortune-page .incense-progress-bar{height:100%;background:linear-gradient(90deg,#8a1d20,#d7a34a);transition:width .5s ease}
.fortune-page .incense-digits{display:none!important}.fortune-page .incense-status{margin-top:12px;color:#6d5135;font-weight:700;font-size:13px}
.fortune-page .incense-single-stage.burn-1 .incense-stick{height:205px}.fortune-page .incense-single-stage.burn-2 .incense-stick{height:130px}.fortune-page .incense-single-stage.burn-3 .incense-stick{height:58px}.fortune-page .incense-single-stage.incense-finished .incense-stick{height:10px;filter:brightness(.72)}
.fortune-page .incense-single-stage.burn-1 .incense-number-stick{height:205px}.fortune-page .incense-single-stage.burn-2 .incense-number-stick{height:165px}.fortune-page .incense-single-stage.burn-3 .incense-number-stick{height:125px}.fortune-page .incense-single-stage.incense-finished .incense-number-stick{height:105px}
@media(max-width:700px){.fortune-page .release-animation-stage{min-height:320px}.fortune-page .release-person{left:20%}.fortune-page .release-number-return{font-size:29px}.fortune-page .incense-single-stage{height:390px}.fortune-page .incense-number-stick{bottom:68px}.fortune-page .incense-button{bottom:58px}}

/* =========================================================
   V8 — Cute Release + Single Incense + Persistent Result UI
   Page scoped only
========================================================= */
.fortune-page .release-animation-stage.cute-release{
  min-height:430px;
  border-radius:28px;
  overflow:hidden;
  border:1px solid rgba(132,92,48,.18);
  background:linear-gradient(180deg,#fff8e9 0%,#f6e8ca 48%,#d8edf0 49%,#a7d7d5 100%);
  box-shadow:0 18px 45px rgba(77,53,28,.12), inset 0 1px rgba(255,255,255,.8);
}
.cute-release .release-scene{position:absolute;inset:0;overflow:hidden}
.cute-sky-glow{position:absolute;width:260px;height:260px;left:50%;top:12px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle,rgba(255,236,173,.8),rgba(255,236,173,0) 70%);animation:cuteGlow 4s ease-in-out infinite}
@keyframes cuteGlow{50%{transform:translateX(-50%) scale(1.08);opacity:.7}}
.cute-moon{position:absolute;right:14%;top:35px;width:72px;height:72px;border-radius:50%;background:#fff5c8;box-shadow:0 0 35px rgba(255,235,158,.7)}
.cute-moon:after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:rgba(221,192,124,.2);left:18px;top:18px;box-shadow:22px 17px 0 rgba(221,192,124,.15),10px 35px 0 rgba(221,192,124,.13)}
.cute-cloud{position:absolute;width:105px;height:28px;border-radius:40px;background:rgba(255,255,255,.72);filter:blur(.2px);opacity:.8;animation:cloudFloat 8s ease-in-out infinite}
.cute-cloud:before,.cute-cloud:after{content:"";position:absolute;border-radius:50%;background:inherit}.cute-cloud:before{width:42px;height:42px;left:16px;bottom:6px}.cute-cloud:after{width:54px;height:54px;right:10px;bottom:2px}.cute-cloud.cloud-a{left:9%;top:86px}.cute-cloud.cloud-b{right:23%;top:116px;transform:scale(.72);animation-delay:-3s}
@keyframes cloudFloat{50%{transform:translateX(18px)}}
.cute-hill{position:absolute;bottom:40%;border-radius:50% 50% 0 0/100% 100% 0 0}.cute-hill.hill-back{left:-10%;width:70%;height:105px;background:#c7dba9;transform:rotate(2deg)}.cute-hill.hill-front{right:-8%;width:65%;height:86px;background:#b7d29c;transform:rotate(-3deg)}
.cute-lantern{position:absolute;top:24px;width:38px;height:54px;border-radius:45% 45% 50% 50%;background:linear-gradient(90deg,#c9464e,#f08a70,#c9464e);border:2px solid rgba(135,50,46,.25);box-shadow:0 7px 18px rgba(132,48,39,.16),0 0 25px rgba(255,150,90,.2);z-index:5;animation:lanternFloat 2.8s ease-in-out infinite}.cute-lantern:before{content:"";position:absolute;left:10px;right:10px;top:-10px;height:8px;border-radius:50%;background:#9c7041}.cute-lantern:after{content:"";position:absolute;left:50%;bottom:-15px;width:2px;height:17px;background:#8d6846}.cute-lantern span{display:grid;place-items:center;height:100%;font-size:15px;color:#ffeab0;font-weight:900}.cute-lantern.lantern-left{left:9%}.cute-lantern.lantern-right{right:9%;animation-delay:-1.2s}
@keyframes lanternFloat{50%{transform:translateY(5px)}}
.cute-bridge{position:absolute;left:50%;bottom:40%;width:250px;height:62px;transform:translateX(-50%);border-bottom:12px solid #b87952;border-radius:50%;z-index:4}.cute-bridge:before{content:"";position:absolute;left:0;right:0;bottom:4px;height:18px;border-top:6px solid #d89a6b;border-radius:50%}.cute-bridge i{position:absolute;bottom:-5px;width:7px;height:35px;border-radius:5px;background:#a7664b}.cute-bridge i:nth-child(1){left:22px}.cute-bridge i:nth-child(2){left:70px}.cute-bridge i:nth-child(3){left:118px}.cute-bridge i:nth-child(4){left:166px}.cute-bridge i:nth-child(5){left:214px}
.cute-pond{position:absolute;left:50%;bottom:-10px;width:115%;height:48%;transform:translateX(-50%);background:linear-gradient(180deg,#a9dedd,#80c5c9);border-radius:50% 50% 0 0;box-shadow:inset 0 18px 25px rgba(255,255,255,.22);z-index:2}.pond-shine{position:absolute;left:30%;top:22%;width:40%;height:7px;border-radius:50%;background:rgba(255,255,255,.5);filter:blur(2px)}.pond-wave{position:absolute;left:10%;width:80%;height:24px;border-top:2px solid rgba(255,255,255,.45);border-radius:50%;animation:pondWave 3.4s ease-in-out infinite}.pond-wave.wave-a{top:45%}.pond-wave.wave-b{top:67%;animation-delay:-1.5s;opacity:.6}@keyframes pondWave{50%{transform:translateX(20px) scaleX(.92)}}
.lily{position:absolute;width:45px;height:18px;background:#73aa73;border-radius:50%;box-shadow:inset -10px 0 #a5cf83}.lily:after{content:"";position:absolute;right:0;top:0;border-left:12px solid #9fd08a;border-top:9px solid transparent;border-bottom:9px solid transparent}.lily-a{left:24%;top:54%}.lily-b{right:20%;top:72%;transform:scale(.7)}
.cute-person{position:absolute;left:34%;bottom:36%;width:70px;height:130px;z-index:7;transition:transform .8s cubic-bezier(.2,.8,.2,1)}.cute-person .person-head{position:absolute;left:24px;top:0;width:34px;height:34px;border-radius:50%;background:#f2b77f}.cute-person .person-hair{position:absolute;left:20px;top:-3px;width:40px;height:23px;border-radius:50% 50% 35% 35%;background:#4a3540}.cute-person .person-body{position:absolute;left:18px;top:33px;width:40px;height:65px;border-radius:18px 18px 10px 10px;background:linear-gradient(90deg,#d56c70,#f39a8c,#cf5f68);box-shadow:0 10px 18px rgba(93,50,40,.14)}.cute-person .arm-front{position:absolute;left:49px;top:43px;width:13px;height:48px;border-radius:12px;background:#efad7a;transform:rotate(32deg);transform-origin:top}.cute-person .person-hand{position:absolute;left:70px;top:78px;width:12px;height:12px;border-radius:50%;background:#efad7a}.cute-person.release-let-go{transform:translate(28px,12px)}
.release-animal{position:absolute;z-index:8;left:50%;bottom:25%;opacity:0;transform:translate(-50%,10px) scale(.7);pointer-events:none;filter:drop-shadow(0 12px 10px rgba(46,87,76,.15))}.release-animal svg{width:145px;height:auto;display:block}.release-animal.show{opacity:1;animation:cuteAnimalGo 1.55s cubic-bezier(.2,.78,.2,1) forwards}.release-animal.returning{animation:cuteAnimalReturn 1.25s cubic-bezier(.18,.8,.22,1) forwards}@keyframes cuteAnimalGo{0%{transform:translate(-50%,10px) scale(.55)}45%{transform:translate(calc(-50% + 90px),-12px) scale(1)}100%{transform:translate(calc(-50% + 190px),18px) scale(.82)}}@keyframes cuteAnimalReturn{0%{transform:translate(calc(-50% + 190px),18px) scale(.82)}60%{transform:translate(calc(-50% + 90px),-5px) scale(1)}100%{transform:translate(-50%,10px) scale(.86)}}
.release-turtle .animal-aura,.release-fish .animal-aura{position:absolute;inset:8px;border-radius:50%;box-shadow:0 0 35px rgba(255,232,142,.35);z-index:-1}.animal-bubble{position:absolute;width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.8);opacity:0}.release-animal.show .animal-bubble{animation:bubbleUp 1.5s ease-out infinite}.animal-bubble.b1{left:20%;bottom:30%}.animal-bubble.b2{left:30%;bottom:40%}.animal-bubble.b3{left:42%;bottom:34%}@keyframes bubbleUp{0%{transform:translateY(5px) scale(.5);opacity:0}30%{opacity:.9}100%{transform:translateY(-40px) scale(1);opacity:0}}
.release-number-return{position:absolute;z-index:12;left:50%;top:47%;transform:translate(-50%,-50%) scale(.4);opacity:0;padding:10px 18px 12px;border-radius:18px;background:rgba(255,252,235,.95);border:2px solid #d7ad61;box-shadow:0 16px 34px rgba(77,50,22,.18),0 0 0 7px rgba(255,255,255,.2);text-align:center}.release-number-return.show{opacity:1;animation:cuteNumberPop .8s cubic-bezier(.15,.85,.2,1) forwards}.release-number-return .number-seal{display:block;margin:auto;width:30px;height:30px;border-radius:50%;background:#c94d54;color:#fff4c9;line-height:30px;font-size:14px}.release-number-return b{display:block;color:#7a3c32;font-size:34px;letter-spacing:.18em;line-height:1.15}.release-number-return small{color:#967151;font-size:11px}@keyframes cuteNumberPop{0%{transform:translate(-50%,-50%) scale(.35);filter:blur(5px)}60%{transform:translate(-50%,-50%) scale(1.08);filter:blur(0)}100%{transform:translate(-50%,-50%) scale(1)}}
.release-heart-spark{position:absolute;left:50%;top:34%;color:#f4ad5e;font-size:28px;opacity:0}.release-play .release-heart-spark{animation:sparkFloat 2.2s ease-out infinite}@keyframes sparkFloat{0%{opacity:0;transform:translate(-50%,10px) scale(.5)}35%{opacity:1}100%{opacity:0;transform:translate(-50%,-45px) scale(1.1)}}
.cute-release .release-status-text{bottom:12px;color:#72513c;font-weight:800;font-size:14px}.release-grid{margin-top:8px}.cute-choice{min-height:112px!important;border-radius:24px!important;background:linear-gradient(145deg,#fffdf4,#f7e9c9)!important}.choice-art{position:relative;display:block;flex:0 0 76px;width:76px;height:76px;border-radius:22px;background:linear-gradient(145deg,#fff4cc,#e9c878);box-shadow:inset 0 1px rgba(255,255,255,.9),0 10px 20px rgba(90,55,24,.1)}.turtle-choice .mini-shell{position:absolute;width:48px;height:32px;left:14px;top:24px;border-radius:50%;background:linear-gradient(135deg,#91d28d,#4d9e67);border:3px solid #397c55}.turtle-choice .mini-shell:after{content:"";position:absolute;left:18px;top:3px;width:3px;height:24px;background:#c4e8ad;box-shadow:9px 3px 0 #c4e8ad}.turtle-choice .mini-head{position:absolute;width:17px;height:15px;border-radius:50%;background:#79bc78;left:56px;top:32px;border:2px solid #397c55}.turtle-choice i{position:absolute;width:14px;height:8px;border-radius:50%;background:#63aa6d}.turtle-choice i:nth-of-type(1){left:10px;top:22px;transform:rotate(-25deg)}.turtle-choice i:nth-of-type(2){left:10px;top:51px;transform:rotate(25deg)}.turtle-choice i:nth-of-type(3){left:45px;top:18px;transform:rotate(25deg)}.turtle-choice i:nth-of-type(4){left:45px;top:53px;transform:rotate(-25deg)}
.fish-choice .mini-fish-body{position:absolute;left:19px;top:26px;width:43px;height:28px;border-radius:60% 45% 48% 60%;background:linear-gradient(135deg,#ffc46f,#ee7775);border:3px solid #c85a64}.fish-choice .mini-tail{position:absolute;left:11px;top:25px;width:25px;height:31px;background:#ffd080;clip-path:polygon(100% 50%,0 0,20% 50%,0 100%);filter:drop-shadow(0 2px 0 #c85a64)}.fish-choice .mini-eye{position:absolute;left:49px;top:33px;width:7px;height:7px;border-radius:50%;background:#45414b;box-shadow:1px 1px 0 #fff}.release-card-arrow{font-size:30px!important;color:#a96d4e!important}

/* Single incense / paper tag like the reference image */
.fortune-page .incense-area.incense-real-style{min-height:440px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:18px 0 28px}.incense-real-style .incense-single-stage{position:relative;width:min(420px,90vw);height:360px;border-radius:28px;background:radial-gradient(circle at 50% 24%,rgba(255,226,161,.7),transparent 26%),linear-gradient(180deg,#3a3030 0%,#171519 65%,#101013 100%);box-shadow:0 24px 55px rgba(30,19,15,.2);overflow:hidden}.incense-halo{position:absolute;left:50%;top:12px;width:230px;height:230px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle,rgba(255,198,91,.22),transparent 68%)}.incense-real-style .incense-paper-stick{position:absolute;z-index:5;left:50%;top:38px;width:86px;height:235px;transform:translateX(-50%);background:linear-gradient(90deg,#b8794d,#f0c68e 46%,#c58b58);border:1px solid rgba(79,42,26,.55);box-shadow:inset 4px 0 10px rgba(91,44,25,.2),inset -4px 0 9px rgba(255,247,210,.25),0 10px 18px rgba(0,0,0,.35);display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:14px;overflow:hidden}.incense-paper-stick:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(91,48,24,.05) 0 1px,transparent 1px 7px);pointer-events:none}.incense-paper-stick:after{content:"";position:absolute;left:0;right:0;top:0;height:100%;background:linear-gradient(180deg,rgba(255,245,203,.3),transparent 30%,rgba(82,39,21,.08));pointer-events:none}.paper-char,.paper-digit{position:relative;z-index:2;display:block;text-align:center;font-family:serif}.paper-title{font-size:18px;color:#a52d2b;font-weight:900;margin-bottom:6px}.paper-digit{height:58px;line-height:58px;font-size:42px;color:#2d2522;font-weight:900;text-shadow:1px 1px 0 rgba(255,244,208,.35);opacity:.25;transform:translateY(-7px)}.incense-paper-stick.reveal-1 .d1,.incense-paper-stick.reveal-2 .d1,.incense-paper-stick.reveal-3 .d1,.incense-paper-stick.reveal-2 .d2,.incense-paper-stick.reveal-3 .d2,.incense-paper-stick.reveal-3 .d3{opacity:1;transform:none;animation:paperDigitIn .55s ease-out}.paper-seal{margin-top:5px;width:34px;height:34px;line-height:34px;border-radius:50%;background:#b73534;color:#fbe8b4;font-size:16px;font-weight:900}@keyframes paperDigitIn{0%{opacity:0;transform:translateY(-14px) scale(.75)}70%{transform:translateY(2px) scale(1.05)}100%{opacity:1;transform:none}}
.incense-real-stick{position:absolute;z-index:7;left:calc(50% + 45px);top:34px;width:7px;height:248px;background:linear-gradient(90deg,#3d1e15,#8a4d2b,#3a1c13);border-radius:6px;box-shadow:2px 0 3px rgba(0,0,0,.4)}.incense-ember{position:absolute;top:-8px;left:50%;width:17px;height:17px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle,#fff6d6 0 10%,#ffbd3f 28%,#e54d2f 48%,transparent 72%);opacity:0}.incense-ash-line{position:absolute;left:0;right:0;top:0;height:0;background:#d8d1bf}.incense-burning .incense-real-stick{animation:realStickBurn 3.8s linear forwards}.incense-burning .incense-ember{opacity:1;animation:emberPulse .35s infinite alternate}.incense-burning .incense-ash-line{animation:ashDown 3.8s linear forwards}@keyframes realStickBurn{to{height:25px}}@keyframes ashDown{to{top:220px}}@keyframes emberPulse{to{transform:translateX(-50%) scale(1.2);filter:brightness(1.3)}}
.incense-real-style .incense-button{position:absolute;z-index:9;left:calc(50% + 45px);top:5px;width:35px;height:285px;border:0;background:transparent;cursor:pointer}.incense-flame{position:absolute;left:50%;top:-4px;width:22px;height:30px;transform:translateX(-50%) rotate(45deg);border-radius:70% 30% 70% 30%;background:linear-gradient(135deg,#fff6bb,#ffb62e 45%,#e64b2e 70%);opacity:0;filter:drop-shadow(0 0 10px rgba(255,160,52,.7))}.incense-burning .incense-flame{opacity:1;animation:incenseFlame .28s ease-in-out infinite alternate}@keyframes incenseFlame{to{transform:translateX(-50%) rotate(38deg) scale(1.12)}}
.incense-smoke{position:absolute;z-index:8;left:calc(50% + 45px);top:5px;width:80px;height:120px;transform:translateX(-50%);pointer-events:none}.incense-smoke i{position:absolute;width:22px;height:22px;border-radius:50%;border:2px solid rgba(230,231,222,.35);filter:blur(1px);opacity:0}.incense-burning .incense-smoke i{animation:incenseSmokeRise 3s ease-out infinite}.incense-smoke i:nth-child(1){left:25px;top:0}.incense-smoke i:nth-child(2){left:43px;top:18px;animation-delay:.7s!important}.incense-smoke i:nth-child(3){left:12px;top:35px;animation-delay:1.3s!important}@keyframes incenseSmokeRise{0%{opacity:0;transform:translateY(10px) scale(.7)}20%{opacity:.5}100%{opacity:0;transform:translate(-18px,-85px) scale(1.7)}}
.incense-censer{position:absolute;z-index:6;left:50%;bottom:26px;width:220px;height:82px;transform:translateX(-50%)}.censer-rim{position:absolute;left:0;top:0;width:220px;height:38px;border-radius:50%;background:linear-gradient(180deg,#ead3a0,#b17b43);border:3px solid #7a4d2e;box-shadow:0 8px 12px rgba(0,0,0,.3)}.censer-ash{position:absolute;left:12px;top:7px;width:196px;height:25px;border-radius:50%;background:radial-gradient(circle,#8d8373,#4f4842 70%);z-index:2}.censer-body{position:absolute;left:18px;top:15px;width:184px;height:56px;border-radius:0 0 42px 42px;background:linear-gradient(90deg,#9f6a3e,#e4b56d 48%,#9a633b);border:3px solid #70452b;border-top:0;box-shadow:0 12px 16px rgba(0,0,0,.3)}.censer-foot{position:absolute;left:64px;bottom:0;width:92px;height:15px;border-radius:50%;background:#7b4a2d}.incense-progress{width:min(360px,84%);height:7px;border-radius:99px;background:#e7d8bc;overflow:hidden}.incense-progress-bar{height:100%;width:0;background:linear-gradient(90deg,#b73534,#d49a49,#f1cf7b);transition:width 1s linear}.incense-status{color:#7a6048;font-weight:700;text-align:center}

/* Result stays visually tied to the active room and remains readable */
.fortune-page .fortune-card{margin-top:22px;background:linear-gradient(145deg,#fffdf5,#f7e6c0)!important;color:#352019!important;border-color:rgba(166,111,46,.35)!important}.fortune-page .fortune-card .fortune-text,.fortune-page .fortune-card .fortune-sec,.fortune-page .fortune-card .fortune-chip{background:#fff!important;color:#3b2118!important}.fortune-page .fortune-card .fortune-sec .sec-text,.fortune-page .fortune-card .fortune-chip b{color:#3b2118!important}.fortune-page .fortune-card .fortune-level,.fortune-page .fortune-card .fortune-stars{color:#8d2226!important}.fortune-page .fortune-card.revealed{scroll-margin-top:90px}

@media(max-width:700px){.fortune-page .release-animation-stage.cute-release{min-height:370px}.cute-person{left:24%;transform:scale(.9)}.cute-person.release-let-go{transform:translate(20px,10px) scale(.9)}.cute-moon{right:8%;width:58px;height:58px}.cute-bridge{width:210px}.release-animal svg{width:120px}.incense-real-style .incense-single-stage{height:330px}.incense-real-style .incense-paper-stick{height:210px;width:76px}.incense-real-stick{height:222px;left:calc(50% + 39px)}.incense-real-style .incense-button{left:calc(50% + 39px);height:250px}.incense-censer{transform:translateX(-50%) scale(.9)}}


/* =========================================================
   RANDOM PAGE V9 — Cute release + realistic incense
   Page scoped: does not alter other pages.
========================================================= */

/* Keep the universal result visible when it has a saved result. */
.fortune-page .fortune-card.revealed{
  display:block;
  opacity:1;
  visibility:visible;
  transform:none;
  max-height:2400px;
  pointer-events:auto;
}

/* ---------------- RELEASE V2 ---------------- */
.fortune-page .release-cute-v2{
  border-radius:30px;
  padding:16px 16px 14px;
  background:linear-gradient(180deg,#fffdf6 0%,#f6fbef 48%,#e5f7f1 100%);
  border:1px solid rgba(87,145,121,.20);
  box-shadow:0 20px 55px rgba(69,105,91,.13);
  overflow:hidden;
}
.fortune-page .release-v2-scene{
  position:relative;
  height:420px;
  overflow:hidden;
  border-radius:24px;
  background:linear-gradient(180deg,#f9f1dc 0%,#dff4ee 54%,#9dd9d6 55%,#79c4c6 100%);
  isolation:isolate;
}
.fortune-page .release-v2-sky{
  position:absolute;inset:0 0 42%;
  background:radial-gradient(circle at 78% 22%,rgba(255,255,255,.9) 0 3px,transparent 4px),
             radial-gradient(circle at 18% 28%,rgba(255,255,255,.7) 0 2px,transparent 3px),
             linear-gradient(180deg,#d9dff5,#f6e8d0);
  z-index:-4;
}
.fortune-page .release-v2-moon{
  position:absolute;right:12%;top:35px;width:62px;height:62px;border-radius:50%;
  background:#fff8d4;box-shadow:0 0 35px rgba(255,245,182,.85);
}
.fortune-page .release-v2-moon i{
  position:absolute;inset:8px;border-radius:50%;
  background:radial-gradient(circle at 32% 28%,rgba(222,195,139,.28) 0 7%,transparent 8%),
             radial-gradient(circle at 68% 60%,rgba(222,195,139,.22) 0 10%,transparent 11%);
}
.fortune-page .release-v2-star{position:absolute;color:#fff8d1;font-size:18px;z-index:-1;animation:releaseStar 2.8s ease-in-out infinite;}
.fortune-page .release-v2-star.s1{left:16%;top:58px}.fortune-page .release-v2-star.s2{left:29%;top:120px;animation-delay:.7s}.fortune-page .release-v2-star.s3{right:27%;top:92px;animation-delay:1.2s}
@keyframes releaseStar{50%{opacity:.35;transform:scale(.7) rotate(20deg)}}

.fortune-page .release-v2-cloud{
  position:absolute;width:120px;height:34px;border-radius:30px;background:rgba(255,255,255,.72);
  filter:blur(.2px);z-index:-2;animation:cloudFloat 8s ease-in-out infinite;
}
.fortune-page .release-v2-cloud:before,.fortune-page .release-v2-cloud:after{
  content:"";position:absolute;border-radius:50%;background:inherit;
}
.fortune-page .release-v2-cloud:before{width:48px;height:48px;left:22px;top:-20px}.fortune-page .release-v2-cloud:after{width:62px;height:62px;right:16px;top:-30px}
.fortune-page .release-v2-cloud.c1{left:4%;top:72px}.fortune-page .release-v2-cloud.c2{right:4%;top:126px;transform:scale(.72);opacity:.6;animation-delay:2s}
@keyframes cloudFloat{50%{transform:translateX(14px)}}

.fortune-page .release-v2-hill{position:absolute;border-radius:50% 50% 0 0;z-index:-1}
.fortune-page .release-v2-hill.back{left:-10%;right:-10%;bottom:150px;height:105px;background:#a6cf9d}
.fortune-page .release-v2-hill.front{left:-15%;right:-15%;bottom:126px;height:88px;background:#80b88c}

.fortune-page .release-v2-lantern{
  position:absolute;top:102px;width:40px;height:57px;border-radius:17px 17px 20px 20px;
  background:linear-gradient(90deg,#d94c62,#f48c73,#d94c62);border:3px solid rgba(143,55,73,.25);
  box-shadow:0 7px 18px rgba(150,67,76,.22);z-index:3;animation:lanternSway 3s ease-in-out infinite;
}
.fortune-page .release-v2-lantern:before{content:"";position:absolute;left:50%;top:-24px;width:2px;height:24px;background:#815b55}
.fortune-page .release-v2-lantern:after{content:"";position:absolute;left:50%;bottom:-8px;transform:translateX(-50%);width:18px;height:9px;border-radius:0 0 12px 12px;background:#c78b42}
.fortune-page .release-v2-lantern b{display:grid;place-items:center;height:100%;color:#ffe7a6;font-size:18px;font-weight:900}
.fortune-page .release-v2-lantern.l1{left:10%}.fortune-page .release-v2-lantern.l2{right:10%;animation-delay:.8s}
@keyframes lanternSway{50%{transform:rotate(3deg) translateY(3px)}}

.fortune-page .release-v2-bridge{
  position:absolute;left:18%;right:18%;bottom:154px;height:65px;border-bottom:14px solid #9b6c51;border-radius:50%;z-index:2;
}
.fortune-page .release-v2-bridge:before{content:"";position:absolute;left:0;right:0;top:15px;height:10px;border-radius:20px;background:#c68c5f}
.fortune-page .release-v2-bridge span{position:relative;display:inline-block;width:18%;height:42px;margin:11px 1%;border-radius:0 0 12px 12px;background:#a87557}

.fortune-page .release-v2-pond{position:absolute;left:-10%;right:-10%;bottom:-30px;height:210px;border-radius:50% 50% 0 0;background:linear-gradient(180deg,#9bdbd6,#68b7bd);z-index:0;overflow:hidden}
.fortune-page .release-v2-pond:before{content:"";position:absolute;left:0;right:0;top:12px;height:100%;background:repeating-linear-gradient(180deg,rgba(255,255,255,.22) 0 2px,transparent 2px 34px);opacity:.6}
.fortune-page .release-v2-pond .ripple{position:absolute;width:110px;height:24px;border:2px solid rgba(255,255,255,.45);border-radius:50%;animation:waterRipple 3.4s ease-in-out infinite}
.fortune-page .release-v2-pond .r1{left:19%;top:78px}.fortune-page .release-v2-pond .r2{right:21%;top:128px;animation-delay:1s}.fortune-page .release-v2-pond .r3{left:44%;top:34px;animation-delay:1.7s}
@keyframes waterRipple{50%{transform:scaleX(1.45);opacity:.2}}

.fortune-page .release-v2-pond .lotus{position:absolute;width:40px;height:18px;border-radius:50%;background:#77ad72;box-shadow:0 3px 0 rgba(63,129,91,.18)}
.fortune-page .release-v2-pond .lotus:after{content:"";position:absolute;left:13px;top:-9px;width:18px;height:14px;border-radius:70% 20% 70% 20%;background:#f1a8b5}
.fortune-page .release-v2-pond .lotus.one{left:30%;top:72px}.fortune-page .release-v2-pond .lotus.two{right:31%;top:125px;transform:scale(.8)}

.fortune-page .release-v2-person{
  position:absolute;left:50%;bottom:104px;transform:translateX(-50%);width:130px;height:180px;z-index:7;
  filter:drop-shadow(0 12px 12px rgba(62,91,91,.16));transform-origin:50% 100%;
}
.fortune-page .release-v2-person svg{width:100%;height:100%;display:block}
.fortune-page .release-v2-person{transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.fortune-page .release-play .release-v2-person{transform:translateX(-50%) translateY(2px)}
.fortune-page .release-play .release-v2-person{animation:personBreathe 2.2s ease-in-out infinite}
.fortune-page .release-let-go .release-v2-person{}
@keyframes personBreathe{50%{transform:translateX(-50%) translateY(-3px)}}

.fortune-page .release-v2-animal{
  position:absolute;z-index:6;opacity:0;pointer-events:none;filter:drop-shadow(0 10px 10px rgba(41,93,91,.18));
}
.fortune-page .release-v2-animal svg{display:block;width:100%;height:100%}
.fortune-page .release-v2-animal.turtle-v2{width:122px;height:78px;left:22%;bottom:105px}
.fortune-page .release-v2-animal.fish-v2{width:142px;height:82px;left:19%;bottom:113px}
.fortune-page .release-v2-animal.show{opacity:1}
.fortune-page .release-v2-animal .bubble{position:absolute;width:8px;height:8px;border-radius:50%;border:1px solid rgba(255,255,255,.75);background:rgba(255,255,255,.3);animation:bubbleUp 2.2s ease-in infinite}
.fortune-page .release-v2-animal .b1{left:15%;bottom:25%}.fortune-page .release-v2-animal .b2{left:30%;bottom:35%;animation-delay:.8s}.fortune-page .release-v2-animal .b3{left:45%;bottom:28%;animation-delay:1.2s}
@keyframes bubbleUp{to{transform:translateY(-48px) scale(.55);opacity:0}}

.fortune-page .release-turtle-mode .turtle-v2{animation:turtleGo 2.8s cubic-bezier(.35,.05,.25,1) forwards}
.fortune-page .release-turtle-mode .turtle-v2.returning{animation:turtleBack 2.2s cubic-bezier(.3,.7,.25,1) forwards}
.fortune-page .release-fish-mode .fish-v2{animation:fishGo 2.8s cubic-bezier(.35,.05,.25,1) forwards}
.fortune-page .release-fish-mode .fish-v2.returning{animation:fishBack 2.2s cubic-bezier(.3,.7,.25,1) forwards}
@keyframes turtleGo{0%{opacity:0;transform:translate(0,0) scale(.82)}10%{opacity:1}100%{opacity:1;transform:translate(215px,-18px) scale(.98)}}
@keyframes turtleBack{0%{opacity:1;transform:translate(215px,-18px) scale(.98)}100%{opacity:1;transform:translate(12px,-2px) scale(1.03)}}
@keyframes fishGo{0%{opacity:0;transform:translate(0,0) scale(.72)}10%{opacity:1}100%{opacity:1;transform:translate(235px,-20px) scale(1.02)}}
@keyframes fishBack{0%{opacity:1;transform:translate(235px,-20px) scale(1.02)}100%{opacity:1;transform:translate(15px,-6px) scale(1.04)}}

.fortune-page .release-v2-result{
  position:absolute;left:50%;top:30%;transform:translate(-50%,-50%) scale(.7);opacity:0;z-index:12;
  min-width:150px;padding:16px 22px;border-radius:22px;text-align:center;
  background:linear-gradient(180deg,#fff9e8,#fff0bd);border:2px solid #e5b75f;
  box-shadow:0 16px 40px rgba(112,79,40,.2);
  transition:.45s cubic-bezier(.2,.9,.2,1);
}
.fortune-page .release-v2-result span{display:block;color:#a8323e;font-size:18px;font-weight:900}
.fortune-page .release-v2-result b{display:block;color:#8d202c;font-size:40px;letter-spacing:7px;line-height:1.1}
.fortune-page .release-v2-result small{color:#8a6948}
.fortune-page .release-v2-result.show{opacity:1;transform:translate(-50%,-50%) scale(1);animation:resultPop .7s ease both}
@keyframes resultPop{35%{transform:translate(-50%,-50%) scale(1.08)}}

.fortune-page .release-v2-status{text-align:center;padding:12px 4px 2px;color:#725b49;font-weight:700}
.fortune-page .release-grid{gap:12px}
.fortune-page .release-card.cute-choice{
  border-radius:18px;border:1px solid rgba(195,145,75,.3);background:linear-gradient(180deg,#fffdf6,#fff4d8);
  box-shadow:0 8px 20px rgba(110,82,44,.08);transition:.2s ease;
}
.fortune-page .release-card.cute-choice:hover{transform:translateY(-3px);box-shadow:0 12px 25px rgba(110,82,44,.14)}
.fortune-page .release-card.cute-choice.selected{border-color:#c99145;box-shadow:0 0 0 3px rgba(201,145,69,.13),0 12px 28px rgba(110,82,44,.12)}

/* ---------------- INCENSE V2 ---------------- */
.fortune-page .incense-v2{border-radius:30px;background:linear-gradient(180deg,#fffaf0,#f4e7c8);padding:18px;border:1px solid rgba(166,118,52,.22);box-shadow:0 20px 50px rgba(98,67,31,.1)}
.fortune-page .incense-v2-stage{
  position:relative;min-height:480px;border-radius:25px;overflow:hidden;display:flex;justify-content:center;align-items:flex-end;
  background:radial-gradient(circle at 50% 35%,rgba(255,246,210,.8),transparent 35%),linear-gradient(180deg,#f8e9cf,#e5c98f);
  isolation:isolate;
}
.fortune-page .incense-v2-stage:before{
  content:"";position:absolute;left:7%;right:7%;bottom:44px;height:15px;border-radius:50%;
  background:rgba(104,67,35,.13);filter:blur(8px);z-index:-1;
}
.fortune-page .incense-v2-glow{
  position:absolute;top:45px;left:50%;width:230px;height:230px;transform:translateX(-50%);
  border-radius:50%;background:radial-gradient(circle,rgba(255,201,76,.22),rgba(255,183,66,.08) 42%,transparent 70%);
  animation:incenseGlow 2.8s ease-in-out infinite;
}
@keyframes incenseGlow{50%{transform:translateX(-50%) scale(1.08);opacity:.7}}

.fortune-page .incense-v2-paper{
  position:absolute;left:50%;bottom:125px;transform:translateX(-53%) rotate(-2deg);width:116px;height:275px;z-index:6;
  border-radius:5px 5px 8px 8px;
  background:
    radial-gradient(circle at 20% 15%,rgba(124,77,39,.16) 0 1px,transparent 2px),
    radial-gradient(circle at 80% 36%,rgba(124,77,39,.12) 0 1px,transparent 2px),
    linear-gradient(90deg,rgba(110,67,31,.14),transparent 10%,rgba(255,247,215,.35) 50%,rgba(112,70,34,.12) 100%),
    linear-gradient(#ead39d,#f4dfac);
  border:1px solid rgba(105,66,31,.25);
  box-shadow:7px 12px 18px rgba(87,56,27,.18),inset 0 0 0 2px rgba(255,255,255,.15);
  overflow:hidden;
  transition:height 1.2s ease,transform .8s ease;
}
.fortune-page .incense-v2-paper:before{
  content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(118,78,43,.04) 0 2px,transparent 2px 8px);mix-blend-mode:multiply;pointer-events:none
}
.fortune-page .incense-v2-paper:after{
  content:"";position:absolute;left:-6px;right:-6px;top:-4px;height:10px;border-radius:50%;background:#5f3b28;filter:blur(1px);opacity:.8;
}
.fortune-page .incense-v2-paper .paper-top{position:absolute;top:12px;left:0;right:0;text-align:center}
.fortune-page .incense-v2-paper .paper-title{display:block;color:#9b2b2f;font-weight:900;font-size:19px;letter-spacing:2px}
.fortune-page .paper-red-seal{display:inline-grid;place-items:center;width:28px;height:28px;border:2px solid #a93232;color:#a93232;font-size:15px;font-weight:900;margin-bottom:6px}
.fortune-page .paper-digits{position:absolute;top:84px;left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:9px}
.fortune-page .paper-digit{font-family:Georgia,serif;color:#5a3127;font-size:51px;line-height:.92;min-height:48px;opacity:.08;transform:translateY(8px);transition:.65s ease;text-shadow:0 1px 0 rgba(255,255,255,.4)}
.fortune-page .paper-digit.reveal,.fortune-page .incense-v2-paper.reveal-1 .d1,.fortune-page .incense-v2-paper.reveal-2 .d1,.fortune-page .incense-v2-paper.reveal-2 .d2,.fortune-page .incense-v2-paper.reveal-3 .paper-digit{opacity:1;transform:none}
.fortune-page .paper-red-mark{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);color:#b33632;font-weight:900;font-size:25px;opacity:.78}
.fortune-page .paper-burn{position:absolute;left:0;right:0;top:0;height:0;background:linear-gradient(180deg,#4b2b24,#75412a 55%,rgba(112,64,37,.45));mix-blend-mode:multiply;opacity:.92;transition:height 1.2s ease}
.fortune-page .paper-ash{position:absolute;left:0;right:0;top:0;height:0;background:radial-gradient(circle at 15% 60%,#4d3b32 0 2px,transparent 3px),radial-gradient(circle at 70% 35%,#5b4638 0 1.5px,transparent 2.5px);opacity:.8;transition:height 1.2s ease}

.fortune-page .incense-v2-stick{position:absolute;left:50%;bottom:117px;transform:translateX(12px);width:7px;height:180px;background:linear-gradient(90deg,#6e351d,#b45a2d,#71361d);border-radius:5px;z-index:5;box-shadow:2px 3px 5px rgba(63,37,22,.25)}
.fortune-page .incense-v2-stick .incense-ember{position:absolute;top:-9px;left:-4px;width:15px;height:18px;border-radius:50% 50% 45% 45%;background:radial-gradient(circle at 50% 70%,#fff2a6 0 12%,#ff7c25 30%,#b72818 65%,transparent 70%);filter:drop-shadow(0 0 8px rgba(255,112,35,.8));animation:emberFlicker .25s ease-in-out infinite alternate}
@keyframes emberFlicker{to{transform:scale(.85) translateY(1px);filter:drop-shadow(0 0 12px rgba(255,125,35,.95))}}
.fortune-page .incense-v2-stick .incense-ash{position:absolute;top:-3px;left:0;width:7px;height:30px;background:#514038;border-radius:6px 6px 3px 3px;opacity:.85}

.fortune-page .incense-v2-button{position:absolute;left:50%;bottom:73px;transform:translateX(8px);z-index:9;width:92px;height:42px;border:0;background:transparent;opacity:0}
.fortune-page .incense-v2-censer{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);width:245px;height:90px;z-index:8}
.fortune-page .incense-v2-censer .censer-bowl{
  position:absolute;left:50%;bottom:8px;transform:translateX(-50%);width:210px;height:65px;border-radius:16px 16px 50% 50%;
  background:linear-gradient(180deg,#d2a65e,#9c6d35);border:2px solid #805728;box-shadow:inset 0 8px 12px rgba(255,231,160,.22),0 10px 20px rgba(87,57,25,.2)
}
.fortune-page .incense-v2-censer .censer-bowl:before{content:"";position:absolute;left:50%;top:-10px;transform:translateX(-50%);width:225px;height:32px;border-radius:50%;background:linear-gradient(#8d5d2e,#c28e4d);border:2px solid #74491f;box-shadow:inset 0 7px 8px rgba(35,20,11,.28)}
.fortune-page .incense-v2-censer .censer-ash-bed{position:absolute;left:50%;top:1px;transform:translateX(-50%);width:205px;height:25px;border-radius:50%;background:radial-gradient(circle,#4e382c 0 20%,#6a4a36 21% 55%,#8a633e 56% 100%);z-index:2}
.fortune-page .incense-v2-censer .censer-foot{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:105px;height:25px;border-radius:0 0 28px 28px;background:#8d602f}
.fortune-page .incense-v2-censer .censer-smoke-rim{position:absolute;left:50%;top:-15px;transform:translateX(-50%);width:210px;height:28px;border-radius:50%;background:rgba(255,255,255,.05);z-index:10}

.fortune-page .incense-v2-smoke{position:absolute;left:50%;top:30px;transform:translateX(15px);width:90px;height:180px;z-index:11;pointer-events:none;opacity:0}
.fortune-page .incense-v2-smoke.active{opacity:1}
.fortune-page .incense-v2-smoke i{position:absolute;bottom:0;left:50%;width:22px;height:55px;border-radius:50%;background:rgba(255,255,255,.35);filter:blur(7px);animation:smokeRise 3s ease-in-out infinite}
.fortune-page .incense-v2-smoke i:nth-child(2){left:35%;animation-delay:.8s}.fortune-page .incense-v2-smoke i:nth-child(3){left:62%;animation-delay:1.5s}
@keyframes smokeRise{0%{transform:translate(0,15px) scale(.6);opacity:0}25%{opacity:.5}100%{transform:translate(18px,-145px) scale(1.55);opacity:0}}

.fortune-page .incense-burning .incense-v2-paper{animation:paperWarm 1.2s ease-in-out infinite alternate}
@keyframes paperWarm{to{filter:saturate(.88) brightness(.94)}}
.fortune-page .incense-v2-stage.burn-1 .paper-burn{height:29%}.fortune-page .incense-v2-stage.burn-2 .paper-burn{height:58%}.fortune-page .incense-v2-stage.burn-3 .paper-burn{height:88%}
.fortune-page .incense-v2-stage.burn-1 .paper-ash{height:20%}.fortune-page .incense-v2-stage.burn-2 .paper-ash{height:48%}.fortune-page .incense-v2-stage.burn-3 .paper-ash{height:76%}
.fortune-page .incense-v2-stage.burn-1 .paper-digit.d1,.fortune-page .incense-v2-stage.burn-2 .paper-digit.d1,.fortune-page .incense-v2-stage.burn-2 .paper-digit.d2,.fortune-page .incense-v2-stage.burn-3 .paper-digit{opacity:1;transform:none}
.fortune-page .incense-v2-stage.burn-1 .paper-digit.d1{animation:numberReveal .7s ease both}
.fortune-page .incense-v2-stage.burn-2 .paper-digit.d2{animation:numberReveal .7s ease both}
.fortune-page .incense-v2-stage.burn-3 .paper-digit.d3{animation:numberReveal .7s ease both}
@keyframes numberReveal{from{opacity:0;transform:translateY(10px) scale(.85)}to{opacity:1;transform:none}}

@media (max-width:700px){
  .fortune-page .release-v2-scene{height:350px}
  .fortune-page .release-v2-person{bottom:87px;width:108px;height:165px}
  .fortune-page .release-v2-animal.turtle-v2{left:18%;bottom:87px}
  .fortune-page .release-v2-animal.fish-v2{left:14%;bottom:94px}
  .fortune-page .release-v2-bridge{bottom:135px}
  .fortune-page .release-v2-hill.back{bottom:132px}.fortune-page .release-v2-hill.front{bottom:112px}
  .fortune-page .incense-v2-stage{min-height:430px}
}

/* =========================================================
   V10 FIX — RELEASE / INCENSE INTERACTION
   ========================================================= */
.fortune-page .release-v2-scene{min-height:420px;cursor:default}
.fortune-page .release-v2-person{opacity:1;visibility:visible}
.fortune-page .release-v2-person svg{overflow:visible}
.fortune-page .release-v2-animal{visibility:hidden;will-change:transform,opacity}
.fortune-page .release-v2-animal.show{visibility:visible;opacity:1}
.fortune-page .release-v2-animal svg{overflow:visible;filter:drop-shadow(0 5px 5px rgba(49,95,86,.12))}
.fortune-page .release-v2-idle-note{
  position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:15;
  padding:8px 14px;border-radius:999px;background:rgba(255,252,242,.88);
  color:#7a604d;font-size:13px;font-weight:800;box-shadow:0 6px 18px rgba(82,72,55,.08);
  transition:opacity .25s ease;pointer-events:none;white-space:nowrap;
}
.fortune-page .release-v2-person:after{
  content:"";position:absolute;left:50%;bottom:-2px;width:92px;height:16px;transform:translateX(-50%);
  border-radius:50%;background:rgba(53,100,94,.14);filter:blur(6px);z-index:-1;
}
.fortune-page .release-card.cute-choice .choice-art{flex:0 0 72px;width:72px;height:72px;border-radius:20px;background:linear-gradient(180deg,#fff9e8,#e9f6ed);display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(174,142,90,.12)}
.fortune-page .release-card.cute-choice:hover .choice-art{transform:scale(1.04);transition:transform .2s ease}
.fortune-page .release-v2-result.show{animation:releaseResultPop .65s cubic-bezier(.2,.9,.2,1) both}
@keyframes releaseResultPop{0%{opacity:0;transform:translate(-50%,-50%) scale(.78)}65%{transform:translate(-50%,-50%) scale(1.08)}100%{opacity:1;transform:translate(-50%,-50%) scale(1)}}

/* Make the single incense genuinely visible and genuinely clickable. */
.fortune-page .incense-v2-stage > .incense-v2-stick{display:none}
.fortune-page .incense-v2-button{
  position:absolute!important;left:calc(50% + 68px)!important;bottom:80px!important;top:auto!important;
  transform:translateX(-50%)!important;width:42px!important;height:300px!important;
  padding:0!important;border:0!important;background:transparent!important;opacity:1!important;
  z-index:20!important;cursor:pointer!important;display:block!important;
}
.fortune-page .incense-visible-stick{
  position:absolute;left:50%;bottom:0;width:8px;height:276px;transform:translateX(-50%);
  border-radius:7px 7px 4px 4px;
  background:linear-gradient(90deg,#6b1517 0%,#a72d25 34%,#d59a59 51%,#8b1e1b 73%,#4a1012 100%);
  box-shadow:inset 1px 0 rgba(255,246,207,.28),3px 5px 12px rgba(51,20,11,.24);
  transition:height 1.1s ease,filter 1.1s ease;z-index:2;
}
.fortune-page .incense-v2-button.burning .incense-visible-stick{animation:singleIncenseSwayV10 1.45s ease-in-out infinite alternate}
@keyframes singleIncenseSwayV10{from{transform:translateX(-50%) rotate(-1.2deg)}to{transform:translateX(-50%) rotate(1.2deg)}}
.fortune-page .incense-ember{
  position:absolute;left:50%;top:15px;width:12px;height:14px;transform:translateX(-50%);
  border-radius:50%;background:radial-gradient(circle at 50% 70%,#fff7b5 0 12%,#ff8a2d 31%,#c52b18 64%,transparent 70%);
  filter:drop-shadow(0 0 9px rgba(255,105,30,.78));opacity:0;z-index:5;
}
.fortune-page .incense-v2-button.burning .incense-ember{opacity:1;animation:emberFlickerV10 .32s ease-in-out infinite alternate}
@keyframes emberFlickerV10{to{transform:translateX(-50%) scale(.8);filter:drop-shadow(0 0 14px rgba(255,130,35,.95))}}
.fortune-page .incense-v2-button .incense-flame{top:1px;left:50%;z-index:8;width:22px;height:34px;opacity:0}
.fortune-page .incense-v2-button .incense-flame.active{opacity:1;animation:incenseFlameV10 .28s ease-in-out infinite alternate}
@keyframes incenseFlameV10{to{transform:translateX(-50%) rotate(7deg) scale(1.1)}}
.fortune-page .incense-click-tip{
  position:absolute;left:50%;top:-31px;transform:translateX(-50%);white-space:nowrap;
  padding:5px 9px;border-radius:999px;background:rgba(124,77,39,.88);color:#fff8e7;
  font-size:11px;font-weight:800;box-shadow:0 4px 12px rgba(82,51,24,.18);transition:opacity .2s ease;
}
.fortune-page .incense-v2-button.burning .incense-click-tip{opacity:0}
.fortune-page .incense-v2-button:not(:disabled):hover .incense-visible-stick{filter:brightness(1.08);transform:translateX(-50%) scale(1.02)}
.fortune-page .incense-v2-button:focus-visible{outline:3px solid rgba(186,133,49,.35);outline-offset:5px;border-radius:16px}
.fortune-page .incense-v2-stage.burn-1 .incense-visible-stick{height:205px}
.fortune-page .incense-v2-stage.burn-2 .incense-visible-stick{height:130px}
.fortune-page .incense-v2-stage.burn-3 .incense-visible-stick{height:58px}
.fortune-page .incense-v2-stage.incense-finished .incense-visible-stick{height:18px;filter:brightness(.7)}
@media(max-width:700px){
  .fortune-page .release-v2-idle-note{font-size:12px;bottom:10px}
  .fortune-page .incense-v2-button{left:calc(50% + 58px)!important;height:270px!important;bottom:76px!important}
  .fortune-page .incense-v2-stage.burn-1 .incense-visible-stick{height:185px}
  .fortune-page .incense-v2-stage.burn-2 .incense-visible-stick{height:116px}
  .fortune-page .incense-v2-stage.burn-3 .incense-visible-stick{height:52px}
}


/* =========================================================
   V11 HARD FIX — RELEASE + INCENSE
   ไม่มี dependency กับ animation class เดิม
========================================================= */
.fortune-page .release-v11{position:relative;margin-top:14px;padding:12px;border-radius:28px;background:linear-gradient(180deg,#fffdf8,#eef9f2);border:1px solid #dbe8d9;box-shadow:0 18px 45px rgba(63,101,84,.10)}
.fortune-page .release-v11-scene{position:relative;height:430px;overflow:hidden;border-radius:22px;background:linear-gradient(180deg,#e9e7fa 0%,#fff0d8 46%,#9ed9d5 47%,#75c2c5 100%);isolation:isolate}
.fortune-page .v11-sky{position:absolute;inset:0 0 45%;z-index:0;background:linear-gradient(180deg,#d9def2,#fae9d3)}
.fortune-page .v11-moon{position:absolute;right:12%;top:34px;width:68px;height:68px;border-radius:50%;background:#fff9d7;box-shadow:0 0 34px rgba(255,237,166,.8);z-index:1}
.fortune-page .v11-moon span{position:absolute;width:13px;height:8px;left:19px;top:18px;border-radius:50%;background:rgba(214,190,138,.22);box-shadow:22px 20px 0 rgba(214,190,138,.18),8px 34px 0 rgba(214,190,138,.15)}
.fortune-page .v11-star{position:absolute;z-index:1;color:#fff7cf;font-style:normal;font-size:18px;animation:v11Twinkle 2.4s ease-in-out infinite}
.fortune-page .v11-star.a{left:16%;top:60px}.fortune-page .v11-star.b{left:31%;top:120px;animation-delay:.7s}.fortune-page .v11-star.c{right:30%;top:105px;animation-delay:1.2s}@keyframes v11Twinkle{50%{opacity:.35;transform:scale(.65) rotate(15deg)}}
.fortune-page .v11-cloud{position:absolute;z-index:1;width:110px;height:30px;border-radius:30px;background:rgba(255,255,255,.7);filter:blur(.2px);animation:v11Cloud 8s ease-in-out infinite}.fortune-page .v11-cloud:before,.fortune-page .v11-cloud:after{content:"";position:absolute;border-radius:50%;background:inherit}.fortune-page .v11-cloud:before{width:45px;height:45px;left:18px;top:-19px}.fortune-page .v11-cloud:after{width:55px;height:55px;right:13px;top:-28px}.fortune-page .v11-cloud.c1{left:4%;top:88px}.fortune-page .v11-cloud.c2{right:5%;top:142px;transform:scale(.7);opacity:.6;animation-delay:1s}@keyframes v11Cloud{50%{transform:translateX(12px)}}
.fortune-page .v11-hill{position:absolute;border-radius:50% 50% 0 0;z-index:2}.fortune-page .v11-hill.h1{left:-10%;right:-10%;bottom:152px;height:105px;background:#a5cf9d}.fortune-page .v11-hill.h2{left:-14%;right:-14%;bottom:126px;height:82px;background:#7eb78b}
.fortune-page .v11-lantern{position:absolute;z-index:5;top:118px;width:39px;height:56px;border-radius:15px;background:linear-gradient(90deg,#d94e61,#f49372,#d94e61);border:2px solid rgba(130,50,63,.22);box-shadow:0 7px 18px rgba(130,60,67,.2);animation:v11Lantern 3s ease-in-out infinite}.fortune-page .v11-lantern.left{left:9%}.fortune-page .v11-lantern.right{right:9%;animation-delay:.8s}.fortune-page .v11-lantern:before{content:"";position:absolute;left:50%;top:-27px;width:2px;height:27px;background:#77564f}.fortune-page .v11-lantern b{display:grid;place-items:center;height:100%;color:#ffe9a9}@keyframes v11Lantern{50%{transform:rotate(3deg) translateY(3px)}}
.fortune-page .v11-bridge{position:absolute;z-index:5;left:19%;right:19%;bottom:154px;height:60px;border-bottom:12px solid #9b6c51;border-radius:50%}.fortune-page .v11-bridge:before{content:"";position:absolute;left:0;right:0;top:15px;height:9px;border-radius:20px;background:#c88d5f}.fortune-page .v11-bridge span{display:inline-block;width:20%;height:38px;margin:10px 1%;border-radius:0 0 10px 10px;background:#a97556}
.fortune-page .v11-water{position:absolute;z-index:3;left:-8%;right:-8%;bottom:-28px;height:205px;border-radius:50% 50% 0 0;background:linear-gradient(180deg,#a7dedb,#72c3c7);overflow:hidden}.fortune-page .v11-water:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(180deg,rgba(255,255,255,.23) 0 2px,transparent 2px 34px);opacity:.7}.fortune-page .v11-water .wave{position:absolute;width:105px;height:22px;border:2px solid rgba(255,255,255,.48);border-radius:50%;animation:v11Wave 3s ease-in-out infinite}.fortune-page .v11-water .w1{left:18%;top:72px}.fortune-page .v11-water .w2{right:20%;top:120px;animation-delay:.8s}.fortune-page .v11-water .w3{left:45%;top:34px;animation-delay:1.5s}@keyframes v11Wave{50%{transform:scaleX(1.5);opacity:.2}}.fortune-page .v11-water .lily{position:absolute;width:42px;height:18px;border-radius:50%;background:#77ad72}.fortune-page .v11-water .lily:after{content:"";position:absolute;left:13px;top:-8px;width:18px;height:14px;border-radius:70% 20% 70% 20%;background:#f1a7b6}.fortune-page .v11-water .l1{left:29%;top:68px}.fortune-page .v11-water .l2{right:30%;top:125px;transform:scale(.8)}
.fortune-page .v11-person{position:absolute;z-index:12;left:31%;bottom:93px;width:125px;height:174px;transform:translateX(-50%);filter:drop-shadow(0 10px 10px rgba(45,82,79,.15));transition:transform .4s ease}.fortune-page .v11-person svg{width:100%;height:100%;display:block;overflow:visible}
.fortune-page .v11-animal{position:absolute;z-index:11;opacity:0;visibility:hidden;pointer-events:none;will-change:transform,opacity}.fortune-page .v11-animal.show{opacity:1!important;visibility:visible!important}.fortune-page .v11-animal svg{display:block;width:100%;height:100%;filter:drop-shadow(0 7px 6px rgba(45,86,82,.16))}.fortune-page .v11-turtle{left:35%;bottom:82px;width:118px;height:73px}.fortune-page .v11-fish{left:34%;bottom:90px;width:138px;height:77px}.fortune-page .v11-bubble{position:absolute;width:8px;height:8px;border:1px solid rgba(255,255,255,.8);border-radius:50%;background:rgba(255,255,255,.3);animation:v11Bubble 2s ease-in infinite}.fortune-page .v11-bubble.b1{left:14%;bottom:24%}.fortune-page .v11-bubble.b2{left:32%;bottom:34%;animation-delay:.6s}.fortune-page .v11-bubble.b3{left:48%;bottom:28%;animation-delay:1.1s}@keyframes v11Bubble{to{transform:translateY(-45px);opacity:0}}
.fortune-page .v11-return{position:absolute;z-index:20;left:64%;top:25%;min-width:150px;padding:13px 20px;text-align:center;border-radius:20px;background:linear-gradient(180deg,#fffdf1,#ffedb6);border:2px solid #e2b65b;box-shadow:0 15px 35px rgba(91,64,35,.18);opacity:0;transform:translate(-50%,-50%) scale(.75);transition:.4s}.fortune-page .v11-return.show{opacity:1;transform:translate(-50%,-50%) scale(1);animation:v11Pop .6s ease both}.fortune-page .v11-return span{display:block;color:#ae343d;font-weight:900}.fortune-page .v11-return strong{display:block;font-size:38px;letter-spacing:6px;color:#8e1e29}.fortune-page .v11-return small{color:#7f6848}@keyframes v11Pop{60%{transform:translate(-50%,-50%) scale(1.08)}}
.fortune-page .v11-hint{position:absolute;z-index:30;left:50%;bottom:14px;transform:translateX(-50%);padding:7px 13px;border-radius:999px;background:rgba(255,252,242,.92);color:#715b48;font-size:12px;font-weight:800;white-space:nowrap;transition:opacity .25s}.fortune-page .v11-status{text-align:center;padding:10px;color:#725b49;font-weight:800}

.fortune-page .incense-v11{margin-top:14px;padding:12px;border-radius:28px;background:linear-gradient(180deg,#fffaf0,#f4e7ca);border:1px solid #e2cfaa;box-shadow:0 18px 45px rgba(91,61,26,.10)}
.fortune-page .incense-v11-stage{position:relative;height:470px;overflow:hidden;border-radius:22px;background:radial-gradient(circle at 50% 30%,rgba(255,220,131,.28),transparent 28%),linear-gradient(180deg,#efe5d1,#d8c39c);isolation:isolate}
.fortune-page .inc-v11-halo{position:absolute;left:50%;top:42px;width:220px;height:220px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle,rgba(255,217,128,.3),transparent 70%);animation:v11Glow 3s ease-in-out infinite}@keyframes v11Glow{50%{transform:translateX(-50%) scale(1.08);opacity:.7}}
.fortune-page .inc-v11-paper{position:absolute;z-index:8;left:calc(50% - 42px);bottom:110px;width:92px;height:285px;border:1px solid rgba(89,56,31,.3);border-radius:4px 4px 8px 8px;background:linear-gradient(90deg,#b98b5b,#f0d09b 45%,#d4a873);box-shadow:7px 12px 18px rgba(59,35,15,.2);display:flex;flex-direction:column;align-items:center;padding-top:14px;transition:height 1.15s ease;overflow:hidden}.fortune-page .inc-v11-paper:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(84,50,26,.06) 0 2px,transparent 2px 7px);pointer-events:none}.fortune-page .inc-v11-chinese{font-size:17px;font-weight:900;color:#9d2b2e;z-index:2}.fortune-page .inc-v11-digit{z-index:2;height:61px;line-height:61px;font:900 48px/61px Georgia,serif;color:#2f2722;opacity:.08;transform:translateY(8px);transition:.5s}.fortune-page .inc-v11-digit.reveal{opacity:1;transform:none;animation:v11Digit .55s ease both}.fortune-page .inc-v11-seal{z-index:2;margin-top:5px;width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#b73434;color:#ffeab7;font-weight:900}.fortune-page .inc-v11-burn{position:absolute;left:0;right:0;top:0;height:0;background:linear-gradient(180deg,#4a2a22,#6c3e29);opacity:.86;transition:height 1.15s ease}.fortune-page .incense-v11-stage.burn-1 .inc-v11-burn{height:30%}.fortune-page .incense-v11-stage.burn-2 .inc-v11-burn{height:60%}.fortune-page .incense-v11-stage.burn-3 .inc-v11-burn{height:88%}@keyframes v11Digit{from{opacity:0;transform:translateY(12px) scale(.8)}to{opacity:1;transform:none}}
.fortune-page .inc-v11-button{position:absolute;z-index:25;left:calc(50% + 30px);bottom:92px;width:52px;height:320px;border:0;background:transparent;padding:0;cursor:pointer;display:block}.fortune-page .inc-v11-stick{position:absolute;left:50%;bottom:0;width:10px;height:292px;transform:translateX(-50%);border-radius:6px;background:linear-gradient(90deg,#5d1719,#a52b25 36%,#d59a5b 52%,#8a1f1c 75%,#491013);box-shadow:inset 1px 0 rgba(255,247,210,.3),4px 6px 12px rgba(45,20,10,.22);transition:height 1.15s ease}.fortune-page .inc-v11-button:hover .inc-v11-stick{filter:brightness(1.12)}.fortune-page .inc-v11-button.burning .inc-v11-stick{animation:v11Sway 1.4s ease-in-out infinite alternate}@keyframes v11Sway{to{transform:translateX(-50%) rotate(1.3deg)}}
.fortune-page .inc-v11-ember{position:absolute;left:50%;top:14px;width:13px;height:14px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle,#fff8b1 0 12%,#ff8a2b 34%,#c22a19 67%,transparent 70%);opacity:0;filter:drop-shadow(0 0 10px #ff8a2b)}.fortune-page .inc-v11-button.burning .inc-v11-ember{opacity:1;animation:v11Ember .3s infinite alternate}@keyframes v11Ember{to{transform:translateX(-50%) scale(1.2)}}
.fortune-page .inc-v11-flame{position:absolute;left:50%;top:-1px;width:24px;height:35px;transform:translateX(-50%) rotate(45deg);border-radius:70% 30% 70% 30%;background:linear-gradient(135deg,#fff7b0,#ffad2d 46%,#df4625 72%);opacity:0;filter:drop-shadow(0 0 10px rgba(255,120,40,.75))}.fortune-page .inc-v11-flame.active{opacity:1;animation:v11Flame .28s infinite alternate}@keyframes v11Flame{to{transform:translateX(-50%) rotate(38deg) scale(1.12)}}
.fortune-page .inc-v11-tip{position:absolute;left:50%;top:-35px;transform:translateX(-50%);white-space:nowrap;padding:6px 10px;border-radius:999px;background:#6e3d25;color:#fff5dc;font-size:11px;font-weight:900;box-shadow:0 5px 12px rgba(75,41,23,.18)}.fortune-page .inc-v11-button.burning .inc-v11-tip{opacity:0}
.fortune-page .inc-v11-censer{position:absolute;z-index:10;left:50%;bottom:25px;width:245px;height:88px;transform:translateX(-50%)}.fortune-page .inc-v11-censer .bowl{position:absolute;left:50%;bottom:7px;width:210px;height:63px;transform:translateX(-50%);border-radius:14px 14px 50% 50%;background:linear-gradient(180deg,#d5a75e,#96642f);border:2px solid #7a5227;box-shadow:inset 0 8px 12px rgba(255,233,164,.22),0 10px 20px rgba(77,47,21,.18)}.fortune-page .inc-v11-censer .bowl:before{content:"";position:absolute;left:50%;top:-10px;width:222px;height:30px;transform:translateX(-50%);border-radius:50%;background:#8a5b2f;border:2px solid #70471f}.fortune-page .inc-v11-censer .ash{position:absolute;z-index:2;left:50%;top:0;width:202px;height:25px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle,#4a362b,#6b4b36 55%,#89623d)}.fortune-page .inc-v11-censer .foot{position:absolute;left:50%;bottom:0;width:100px;height:18px;transform:translateX(-50%);border-radius:0 0 20px 20px;background:#86572e}
.fortune-page .inc-v11-smoke{position:absolute;z-index:18;left:calc(50% + 30px);top:35px;width:90px;height:170px;opacity:0;pointer-events:none}.fortune-page .inc-v11-smoke.active{opacity:1}.fortune-page .inc-v11-smoke i{position:absolute;left:35px;bottom:0;width:25px;height:50px;border-radius:50%;background:rgba(255,255,255,.35);filter:blur(7px)}.fortune-page .inc-v11-smoke.active i:nth-child(1){animation:v11Smoke 2.5s infinite}.fortune-page .inc-v11-smoke.active i:nth-child(2){animation:v11Smoke 2.9s .5s infinite}.fortune-page .inc-v11-smoke.active i:nth-child(3){animation:v11Smoke 3.2s 1s infinite}@keyframes v11Smoke{0%{opacity:0;transform:translateY(15px) scale(.6)}25%{opacity:.5}100%{opacity:0;transform:translate(18px,-140px) scale(1.5)}}
.fortune-page .incense-v11-stage.burn-1 .inc-v11-stick{height:214px}.fortune-page .incense-v11-stage.burn-2 .inc-v11-stick{height:138px}.fortune-page .incense-v11-stage.burn-3 .inc-v11-stick{height:62px}.fortune-page .incense-v11-stage.incense-finished .inc-v11-stick{height:16px;filter:brightness(.72)}
.fortune-page .inc-v11-progress{width:min(300px,80%);height:6px;margin:10px auto 0;border-radius:99px;background:#e3d4b7;overflow:hidden}.fortune-page .inc-v11-progress span{display:block;width:0;height:100%;background:linear-gradient(90deg,#8c1d20,#d7a24d);transition:width .5s}.fortune-page .inc-v11-status{text-align:center;padding:11px;color:#6d5137;font-weight:800}
@media(max-width:700px){.fortune-page .release-v11-scene{height:380px}.fortune-page .v11-person{left:27%;bottom:83px;transform:translateX(-50%) scale(.88)}.fortune-page .v11-turtle{left:28%;bottom:75px;transform:scale(.9)}.fortune-page .v11-fish{left:27%;bottom:82px;transform:scale(.9)}.fortune-page .v11-return{left:67%;top:26%}.fortune-page .incense-v11-stage{height:430px}.fortune-page .inc-v11-paper{left:calc(50% - 47px);height:255px}.fortune-page .inc-v11-button{left:calc(50% + 28px);height:285px}.fortune-page .inc-v11-stick{height:258px}.fortune-page .incense-v11-stage.burn-1 .inc-v11-stick{height:190px}.fortune-page .incense-v11-stage.burn-2 .inc-v11-stick{height:120px}.fortune-page .incense-v11-stage.burn-3 .inc-v11-stick{height:54px}}
/* ============================================================
   DASHBOARD 100% COMPLETE ANIMATION
   ============================================================ */


/*
 * ============================================================
 * CARD
 * ============================================================
 */

.item-card.is-complete {

  position: relative;

  overflow: visible;

  z-index: 5;

  transform-origin: center center;

  animation:
    completeCardFloat 1.8s ease-in-out infinite,
    completeCardGlow 2.2s ease-in-out infinite;

}


/*
 * ============================================================
 * MOVING GOLD BORDER
 * ============================================================
 */

.item-card.is-complete::before {

  content: "";

  position: absolute;

  inset: -3px;

  border-radius: inherit;

  pointer-events: none;

  background:
    linear-gradient(
      120deg,

      transparent 0%,

      rgba(
        255,
        193,
        7,
        0.25
      ) 15%,

      rgba(
        255,
        215,
        70,
        0.95
      ) 30%,

      rgba(
        255,
        255,
        255,
        1
      ) 50%,

      rgba(
        255,
        215,
        70,
        0.95
      ) 70%,

      rgba(
        255,
        193,
        7,
        0.25
      ) 85%,

      transparent 100%
    );

  background-size:
    300% 300%;

  animation:
    completeBorderMove
    2.4s
    linear
    infinite;

  z-index: -1;

}


/*
 * ============================================================
 * OUTER GOLD AURA
 * ============================================================
 */

.item-card.is-complete::after {

  content: "";

  position: absolute;

  inset: -20px;

  border-radius: inherit;

  pointer-events: none;

  background:
    radial-gradient(
      circle,

      rgba(
        255,
        193,
        7,
        0.35
      ) 0%,

      rgba(
        255,
        193,
        7,
        0.16
      ) 35%,

      transparent 70%
    );

  filter:
    blur(12px);

  animation:
    completeAura
    1.7s
    ease-in-out
    infinite;

  z-index: -2;

}


/*
 * ============================================================
 * 100% BADGE
 * ============================================================
 */

.complete-badge {

  position: absolute;

  top: -15px;

  right: -10px;

  min-width: 58px;

  height: 31px;

  padding:
    0 11px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius:
    999px;

  color:
    #ffffff;

  background:
    linear-gradient(
      135deg,

      #ffd54f,

      #ffb300,

      #ff6f00
    );

  border:
    2px solid
    rgba(
      255,
      255,
      255,
      0.95
    );

  font-size:
    12px;

  font-weight:
    900;

  letter-spacing:
    .3px;

  box-shadow:

    0 0 8px
    rgba(
      255,
      193,
      7,
      0.9
    ),

    0 0 20px
    rgba(
      255,
      193,
      7,
      0.75
    ),

    0 0 38px
    rgba(
      255,
      193,
      7,
      0.35
    );

  z-index:
    30;

  animation:
    completeBadge
    1.2s
    ease-in-out
    infinite;

}


/*
 * ============================================================
 * PARTICLE CONTAINER
 * ============================================================
 */

.complete-particles {

  position:
    absolute;

  inset:
    0;

  pointer-events:
    none;

  overflow:
    visible;

  z-index:
    20;

}


/*
 * ============================================================
 * PARTICLES
 * ============================================================
 */

.complete-particles span {

  position:
    absolute;

  width:
    5px;

  height:
    5px;

  border-radius:
    50%;

  background:
    #ffd54a;

  box-shadow:

    0 0 7px
    #ffd54a,

    0 0 15px
    rgba(
      255,
      213,
      74,
      0.8
    );

  animation:
    completeParticle
    2.4s
    ease-in-out
    infinite;

}


/*
 * Particle positions
 */

.complete-particles span:nth-child(1) {

  left:
    7%;

  top:
    18%;

  animation-delay:
    0s;

}


.complete-particles span:nth-child(2) {

  left:
    20%;

  top:
    4%;

  animation-delay:
    .25s;

}


.complete-particles span:nth-child(3) {

  left:
    43%;

  top:
    1%;

  animation-delay:
    .55s;

}


.complete-particles span:nth-child(4) {

  right:
    14%;

  top:
    13%;

  animation-delay:
    .2s;

}


.complete-particles span:nth-child(5) {

  right:
    4%;

  top:
    48%;

  animation-delay:
    .85s;

}


.complete-particles span:nth-child(6) {

  right:
    18%;

  bottom:
    5%;

  animation-delay:
    .4s;

}


.complete-particles span:nth-child(7) {

  left:
    14%;

  bottom:
    7%;

  animation-delay:
    1s;

}


.complete-particles span:nth-child(8) {

  left:
    3%;

  top:
    53%;

  animation-delay:
    .65s;

}


/*
 * ============================================================
 * CARD FLOAT
 * ============================================================
 */

@keyframes completeCardFloat {

  0%,
  100% {

    transform:
      translateY(0)
      scale(1);

  }


  50% {

    transform:
      translateY(-4px)
      scale(1.015);

  }

}


/*
 * ============================================================
 * CARD GLOW
 * ============================================================
 */

@keyframes completeCardGlow {

  0%,
  100% {

    box-shadow:

      0 0 8px
      rgba(
        255,
        193,
        7,
        0.35
      ),

      0 0 20px
      rgba(
        255,
        193,
        7,
        0.15
      );

  }


  50% {

    box-shadow:

      0 0 18px
      rgba(
        255,
        193,
        7,
        0.85
      ),

      0 0 38px
      rgba(
        255,
        193,
        7,
        0.45
      ),

      0 0 60px
      rgba(
        255,
        193,
        7,
        0.2
      );

  }

}


/*
 * ============================================================
 * BORDER LIGHT
 * ============================================================
 */

@keyframes completeBorderMove {

  0% {

    background-position:
      0% 50%;

  }


  50% {

    background-position:
      100% 50%;

  }


  100% {

    background-position:
      0% 50%;

  }

}


/*
 * ============================================================
 * OUTER AURA
 * ============================================================
 */

@keyframes completeAura {

  0%,
  100% {

    opacity:
      .35;

    transform:
      scale(.95);

  }


  50% {

    opacity:
      .85;

    transform:
      scale(1.08);

  }

}


/*
 * ============================================================
 * BADGE
 * ============================================================
 */

@keyframes completeBadge {

  0%,
  100% {

    transform:
      scale(1)
      rotate(0deg);

  }


  50% {

    transform:
      scale(1.08)
      rotate(-2deg);

  }

}


/*
 * ============================================================
 * PARTICLES
 * ============================================================
 */

@keyframes completeParticle {

  0% {

    opacity:
      0;

    transform:
      translate(
        0,
        10px
      )
      scale(.4);

  }


  20% {

    opacity:
      1;

  }


  55% {

    opacity:
      1;

  }


  100% {

    opacity:
      0;

    transform:
      translate(
        0,
        -38px
      )
      scale(1.2);

  }

}


/*
 * ============================================================
 * MOBILE
 * ============================================================
 */

@media (
  max-width: 600px
) {

  .item-card.is-complete {

    animation:
      completeCardFloat
      1.8s
      ease-in-out
      infinite,
      completeCardGlow
      2.2s
      ease-in-out
      infinite;

  }


  .complete-badge {

    top:
      -11px;

    right:
      -7px;

    min-width:
      52px;

    height:
      28px;

    font-size:
      11px;

  }

}


/*
 * ============================================================
 * ACCESSIBILITY
 * ============================================================
 */

@media (
  prefers-reduced-motion: reduce
) {

  .item-card.is-complete,
  .item-card.is-complete::before,
  .item-card.is-complete::after,
  .complete-badge,
  .complete-particles span {

    animation:
      none !important;

  }

}
/* =========================================================
   CARD 100% COMPLETE ANIMATION
   ค้างไว้จนกว่าเปอร์เซ็นต์จะลดลงต่ำกว่า 100%
========================================================= */

.item-card.is-complete {
  position: relative;
  overflow: visible;

  animation:
    completeCardFloat 1.8s ease-in-out infinite,
    completeCardGlow 2.2s ease-in-out infinite;

  transform-origin: center center;

  z-index: 5;
}


/* กรอบเรืองแสง */

.item-card.is-complete::before {
  content: "";

  position: absolute;

  inset: -3px;

  border-radius: inherit;

  pointer-events: none;

  background:
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(255, 215, 80, 0.8) 25%,
      rgba(255, 255, 255, 0.95) 50%,
      rgba(255, 215, 80, 0.8) 75%,
      transparent 100%
    );

  background-size: 250% 250%;

  animation:
    completeBorderMove 2.5s linear infinite;

  z-index: -1;
}


/* แสงด้านหลัง */

.item-card.is-complete::after {
  content: "";

  position: absolute;

  inset: -18px;

  border-radius: inherit;

  pointer-events: none;

  background:
    radial-gradient(
      circle,
      rgba(255, 215, 80, 0.32),
      transparent 65%
    );

  filter: blur(12px);

  animation:
    completeAura 1.7s ease-in-out infinite;

  z-index: -2;
}


/* =========================================================
   100% BADGE
========================================================= */

.complete-badge {
  position: absolute;

  top: -13px;
  right: -10px;

  min-width: 54px;
  height: 30px;

  padding: 0 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 900;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #ffb300,
      #ff6f00
    );

  border:
    2px solid rgba(255,255,255,0.9);

  box-shadow:
    0 0 10px rgba(255,193,7,0.9),
    0 0 25px rgba(255,193,7,0.65);

  z-index: 20;

  animation:
    completeBadge 1.2s ease-in-out infinite;
}


/* =========================================================
   PARTICLES
========================================================= */

.complete-particles {
  position: absolute;

  inset: 0;

  pointer-events: none;

  z-index: 15;
}

.complete-particles span {
  position: absolute;

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #ffd54a;

  box-shadow:
    0 0 8px #ffd54a,
    0 0 16px rgba(255,213,74,0.7);

  animation:
    completeParticle 2.4s ease-in-out infinite;
}

.complete-particles span:nth-child(1) {
  left: 8%;
  top: 20%;
  animation-delay: 0s;
}

.complete-particles span:nth-child(2) {
  left: 22%;
  top: 5%;
  animation-delay: .3s;
}

.complete-particles span:nth-child(3) {
  left: 48%;
  top: 2%;
  animation-delay: .7s;
}

.complete-particles span:nth-child(4) {
  right: 12%;
  top: 18%;
  animation-delay: .2s;
}

.complete-particles span:nth-child(5) {
  right: 5%;
  top: 48%;
  animation-delay: .9s;
}

.complete-particles span:nth-child(6) {
  right: 20%;
  bottom: 5%;
  animation-delay: .4s;
}

.complete-particles span:nth-child(7) {
  left: 15%;
  bottom: 8%;
  animation-delay: 1s;
}

.complete-particles span:nth-child(8) {
  left: 3%;
  top: 52%;
  animation-delay: .6s;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes completeCardFloat {

  0%,
  100% {
    transform:
      translateY(0)
      scale(1);
  }

  50% {
    transform:
      translateY(-4px)
      scale(1.015);
  }

}


@keyframes completeCardGlow {

  0%,
  100% {
    box-shadow:
      0 0 8px rgba(255,193,7,0.35),
      0 0 20px rgba(255,193,7,0.15);
  }

  50% {
    box-shadow:
      0 0 18px rgba(255,193,7,0.8),
      0 0 45px rgba(255,193,7,0.35);
  }

}


@keyframes completeBorderMove {

  0% {
    background-position:
      0% 50%;
  }

  50% {
    background-position:
      100% 50%;
  }

  100% {
    background-position:
      0% 50%;
  }

}


@keyframes completeAura {

  0%,
  100% {
    opacity: .35;
    transform: scale(.95);
  }

  50% {
    opacity: .8;
    transform: scale(1.08);
  }

}


@keyframes completeBadge {

  0%,
  100% {
    transform:
      scale(1)
      rotate(0deg);
  }

  50% {
    transform:
      scale(1.08)
      rotate(-2deg);
  }

}


@keyframes completeParticle {

  0% {
    opacity: 0;
    transform:
      translate(0, 8px)
      scale(.5);
  }

  25% {
    opacity: 1;
  }

  70% {
    opacity: .9;
  }

  100% {
    opacity: 0;
    transform:
      translate(
        var(--particle-x, 0px),
        -35px
      )
      scale(1.2);
  }

}


/* ลด motion สำหรับผู้ใช้ที่เปิด Reduce Motion */

@media (prefers-reduced-motion: reduce) {

  .item-card.is-complete,
  .item-card.is-complete::before,
  .item-card.is-complete::after,
  .complete-badge,
  .complete-particles span {
    animation: none !important;
  }

}
/* =========================================================
   DASHBOARD CARD LIVE ANIMATION
   ========================================================= */

.item-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* วงแหวนหมุนตลอดเวลา */
.item-card .card-energy-ring {
  position: absolute;
  width: 170px;
  height: 170px;
  right: -65px;
  top: -65px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: .45;
  animation: dashboardRingSpin 7s linear infinite;
}

.item-card .card-energy-ring::before,
.item-card .card-energy-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.item-card .card-energy-ring::before {
  border: 2px solid transparent;
  border-top-color: rgba(0,255,157,.9);
  border-right-color: rgba(0,255,157,.25);
  filter: drop-shadow(0 0 8px rgba(0,255,157,.7));
}

.item-card .card-energy-ring::after {
  inset: 12px;
  border: 1px dashed rgba(255,255,255,.22);
  animation: dashboardRingReverse 4s linear infinite;
}

@keyframes dashboardRingSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes dashboardRingReverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

/* ให้เนื้อหาการ์ดอยู่เหนือเอฟเฟกต์ */
.item-card > *:not(.card-energy-ring):not(.card-complete-glow) {
  position: relative;
  z-index: 2;
}


/* =========================================================
   100% COMPLETE
   ค้างอยู่จนกว่าเปอร์เซ็นต์จะลดลง
   ========================================================= */

.item-card.is-complete {
  animation:
    dashboardCompletePulse 2.2s ease-in-out infinite,
    completeCardGlow 2.2s ease-in-out infinite;
}

.item-card.is-complete .card-energy-ring {
  width: 240px;
  height: 240px;
  right: -95px;
  top: -95px;
  opacity: .85;
  animation-duration: 3.2s;
}

.item-card.is-complete .card-energy-ring::before {
  border-width: 3px;
  border-top-color: #00ff9d;
  border-right-color: #7dffcb;
  filter:
    drop-shadow(0 0 8px rgba(0,255,157,.9))
    drop-shadow(0 0 20px rgba(0,255,157,.55));
}

@keyframes dashboardCompletePulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.012);
  }
}


/* =========================================================
   100% BADGE
   ========================================================= */

.card-complete-glow {
  position: absolute;
  right: 50px;
  top: 14px;
  z-index: 5;
  pointer-events: none;
}

.card-complete-glow span {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 58px;
  height: 30px;
  padding: 0 10px;

  border-radius: 999px;

  color: #06120d;
  background: #00ff9d;

  font-weight: 900;
  font-size: 13px;

  box-shadow:
    0 0 8px rgba(0,255,157,.8),
    0 0 22px rgba(0,255,157,.55);

  animation: dashboardCompleteBadge 1.3s ease-in-out infinite;
}

@keyframes dashboardCompleteBadge {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 8px rgba(0,255,157,.75),
      0 0 22px rgba(0,255,157,.45);
  }

  50% {
    transform: scale(1.08);
    box-shadow:
      0 0 14px rgba(0,255,157,1),
      0 0 32px rgba(0,255,157,.7);
  }
}


/* 100% ตัวเลขเรืองแสงและค้างจนกว่าเปอร์เซ็นต์จะลดลง */
.item-card.is-complete .percent-big {
  color: #00ff9d !important;
  text-shadow:
    0 0 8px rgba(0,255,157,.95),
    0 0 22px rgba(0,255,157,.72),
    0 0 42px rgba(0,255,157,.45) !important;
  animation: dashboardCompletePercent 1.25s ease-in-out infinite;
}

@keyframes dashboardCompletePercent {
  0%, 100% {
    filter: brightness(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.55);
    transform: scale(1.045);
  }
}

/* =========================================================
   100% PROGRESS BAR
   ========================================================= */

.item-card.is-complete .percent-bar-fill {
  animation: dashboardCompleteBar 1.5s ease-in-out infinite;
}

@keyframes dashboardCompleteBar {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.65);
  }
}

/* Dashboard live animation: accessibility override */
@media (prefers-reduced-motion: reduce) {
  .item-card .card-energy-ring,
  .item-card .card-energy-ring::after,
  .item-card.is-complete .percent-big,
  .item-card.is-complete .percent-bar-fill,
  .card-complete-glow span {
    animation: none !important;
  }
}

/* =========================================================
   DASHBOARD CHARGING PROGRESS (< 100%)
   แถบเปอร์เซ็นต์ที่ยังไม่เต็มจะมีพลังงานไหลตลอดเวลา
   ========================================================= */
.item-card:not(.is-complete) .percent-bar-track {
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 8px rgba(255,255,255,.025),
    0 0 8px rgba(0,255,157,.08);
}

.item-card:not(.is-complete) .percent-bar-fill {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  animation: dashboardChargingGlow 1.8s ease-in-out infinite;
  will-change: filter, box-shadow;
}

/* แสงวิ่งจากซ้ายไปขวาซ้ำ ๆ เหมือนกำลังชาร์จ */
.item-card:not(.is-complete) .percent-bar-fill::after {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: -48%;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.06) 18%,
    rgba(255,255,255,.82) 50%,
    rgba(255,255,255,.10) 82%,
    transparent 100%
  );
  filter: blur(1.5px);
  transform: skewX(-18deg);
  animation: dashboardChargingSweep 1.35s linear infinite;
  will-change: transform;
}

/* จุดพลังงานตรงปลายเปอร์เซ็นต์ ให้รู้สึกว่ากำลังเติม */
.item-card:not(.is-complete) .percent-bar-fill::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translate(35%, -50%);
  background: rgba(255,255,255,.95);
  box-shadow:
    0 0 5px rgba(255,255,255,.95),
    0 0 12px currentColor,
    0 0 20px currentColor;
  opacity: .72;
  animation: dashboardChargingTip 1s ease-in-out infinite;
}

@keyframes dashboardChargingSweep {
  0% {
    transform: translateX(0) skewX(-18deg);
    opacity: .15;
  }
  18% {
    opacity: .95;
  }
  82% {
    opacity: .85;
  }
  100% {
    transform: translateX(355%) skewX(-18deg);
    opacity: .10;
  }
}

@keyframes dashboardChargingGlow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.22);
  }
}

@keyframes dashboardChargingTip {
  0%, 100% {
    opacity: .45;
    transform: translate(35%, -50%) scale(.72);
  }
  50% {
    opacity: 1;
    transform: translate(35%, -50%) scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .item-card:not(.is-complete) .percent-bar-fill,
  .item-card:not(.is-complete) .percent-bar-fill::before,
  .item-card:not(.is-complete) .percent-bar-fill::after {
    animation: none !important;
  }
}


/* =========================================================
   DASHBOARD ROOM DIRECTORY — organized grid + jump navigation
   Scoped to dashboard containers so other pages/components stay unchanged.
   ========================================================= */
.dashboard-page {
  max-width: 1380px;
  padding-top: 30px;
}

.dashboard-folder-panel,
.dashboard-games-panel {
  position: relative;
  border: 1px solid rgba(0,255,157,.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(5,18,13,.82), rgba(0,0,0,.58));
  box-shadow: 0 20px 60px rgba(0,0,0,.34);
}

.dashboard-folder-panel {
  padding: 24px;
}

.dashboard-section-head,
.dashboard-games-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-section-head {
  padding: 0 2px 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0,255,157,.12);
}

.dashboard-section-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
}

.dashboard-section-head h1,
.dashboard-games-head h2 {
  margin: 0;
  color: #f3fff9;
  line-height: 1.15;
}

.dashboard-section-head h1 {
  font-size: clamp(24px, 3vw, 34px);
}

.dashboard-games-head h2 {
  font-size: clamp(20px, 2.4vw, 28px);
}

.dashboard-section-head p {
  margin: 7px 0 0;
  max-width: 680px;
  color: var(--ink-muted);
  font-size: 13px;
}

.dashboard-section-hint {
  flex: none;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(0,255,157,.06);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

/* Fixed, predictable columns: no more irregular flex widths. */
.dashboard-folder-panel #folderRow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
  margin: 0;
  align-items: stretch;
}

.dashboard-folder-panel #folderRow > .folder-tab {
  width: 100%;
  min-width: 0;
  min-height: 128px;
  margin: 0;
  padding: 17px 15px 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border-radius: 18px;
  background-color: rgba(2,13,9,.9);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  isolation: isolate;
}

.dashboard-folder-panel #folderRow > .folder-tab.has-bg::before {
  background: linear-gradient(180deg, rgba(0,8,5,.40), rgba(0,8,5,.88) 76%, rgba(0,8,5,.96));
}

.dashboard-folder-panel #folderRow > .folder-tab:not(.add-new):hover {
  transform: translateY(-3px);
  border-color: rgba(0,255,157,.62);
  box-shadow: 0 14px 30px rgba(0,0,0,.35), 0 0 18px rgba(0,255,157,.14);
}

.dashboard-folder-panel #folderRow > .folder-tab:not(.add-new):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,255,157,.10), var(--glow);
}

.dashboard-folder-panel #folderRow > .folder-tab.active {
  border-color: #00ff9d;
  box-shadow: 0 0 0 1px rgba(0,255,157,.28), 0 0 25px rgba(0,255,157,.20);
}

.dashboard-folder-panel #folderRow > .folder-tab.active::after {
  content: "กำลังดู";
  position: absolute;
  top: 8px;
  left: 9px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 999px;
  color: #00180f;
  background: #00ff9d;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 0 12px rgba(0,255,157,.38);
}

.dashboard-folder-panel #folderRow .fname {
  max-width: calc(100% - 8px);
  color: #f4fff9;
  font-size: 15px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-folder-panel #folderRow .folder-tab.active .fname {
  color: #dffff1;
}

.dashboard-folder-panel #folderRow .fcount {
  margin-top: 6px;
  color: rgba(220,239,229,.58);
  font-size: 10px;
}

.dashboard-folder-panel #folderRow .ftop {
  min-width: 0;
  margin-top: auto;
  padding-top: 10px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  align-items: center;
}

.dashboard-folder-panel #folderRow .ftop-name {
  min-width: 0;
  font-size: 11px;
}

.dashboard-folder-panel #folderRow .ftop-pct {
  font-size: 13px;
  font-weight: 800;
}

.dashboard-folder-panel #folderRow > .folder-tab.add-new {
  min-height: 128px;
  border-style: dashed;
  background: rgba(0,255,157,.025);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.dashboard-games-panel {
  margin-top: 22px;
  padding: 24px;
  scroll-margin-top: 18px;
}

.dashboard-games-head {
  padding: 0 2px 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0,255,157,.12);
}

.dashboard-back-rooms {
  flex: none;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(0,255,157,.055);
  font-size: 12px;
}

.dashboard-back-rooms:hover,
.dashboard-back-rooms:focus-visible {
  border-color: var(--accent);
  background: rgba(0,255,157,.10);
  box-shadow: 0 0 18px rgba(0,255,157,.12);
}

.dashboard-games-panel.is-jump-target {
  animation: dashboardJumpTarget .85s ease-out;
}

@keyframes dashboardJumpTarget {
  0% { box-shadow: 0 20px 60px rgba(0,0,0,.34), 0 0 0 rgba(0,255,157,0); }
  35% { box-shadow: 0 20px 60px rgba(0,0,0,.34), 0 0 35px rgba(0,255,157,.24); }
  100% { box-shadow: 0 20px 60px rgba(0,0,0,.34), 0 0 0 rgba(0,255,157,0); }
}

.dashboard-games-panel #cardArea {
  scroll-margin-top: 18px;
  outline: none;
}

.dashboard-games-panel .card-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

@media (max-width: 1220px) {
  .dashboard-folder-panel #folderRow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .dashboard-page { padding-left: 20px; padding-right: 20px; }
  .dashboard-folder-panel #folderRow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .dashboard-page { padding-left: 14px; padding-right: 14px; }
  .dashboard-folder-panel,
  .dashboard-games-panel { padding: 16px; border-radius: 18px; }
  .dashboard-section-head,
  .dashboard-games-head { align-items: flex-start; }
  .dashboard-section-hint { display: none; }
  .dashboard-folder-panel #folderRow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dashboard-folder-panel #folderRow > .folder-tab,
  .dashboard-folder-panel #folderRow > .folder-tab.add-new { min-height: 116px; padding: 15px 12px 12px; }
  .dashboard-folder-panel #folderRow .fname { font-size: 13px; }
  .dashboard-games-head { gap: 10px; }
  .dashboard-back-rooms { padding: 7px 10px; font-size: 11px; }
  .dashboard-games-panel .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
}

@media (max-width: 440px) {
  .dashboard-folder-panel #folderRow { grid-template-columns: 1fr 1fr; }
  .dashboard-games-head { flex-direction: column; }
  .dashboard-back-rooms { width: 100%; }
  .dashboard-games-panel .card-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-games-panel.is-jump-target { animation: none !important; }
}
