:root {
  --night: #0e1136;
  --night-2: #151a4a;
  --night-3: #1d2260;
  --ink: #f2f3ff;
  --muted: #a9acd6;
  --indigo: #3b2fc9;
  --indigo-2: #5a4ff0;
  --gold: #d9a441;
  --gold-2: #f0c873;
  --line: rgba(217, 164, 65, 0.22);
  --card-line: rgba(255, 255, 255, 0.08);
  --danger: #ff8a8a;
  --ok: #7be0b0;
  --radius: 20px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
body {
  min-height: 100dvh;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(90, 79, 240, 0.28), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(217, 164, 65, 0.08), transparent 60%),
    var(--night);
  background-attachment: fixed;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: 0.01em; }
h1 { font-size: 1.75rem; line-height: 1.2; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.75rem; }
a { color: var(--gold-2); }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.gold { color: var(--gold-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Shell */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: rgba(14, 17, 54, 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--card-line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand span { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.brand b { color: #a39bff; font-weight: 600; }
.top-right { display: flex; align-items: center; gap: 10px; }
.coins {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; text-decoration: none; color: var(--ink);
  background: rgba(217, 164, 65, 0.14); border: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums;
}
.coin { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1c9, var(--gold) 55%, #9c6d1c); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); display: inline-block; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--night-3); display: grid; place-items: center; font-weight: 700; color: var(--gold-2); text-decoration: none; }
.layout { flex: 1; display: block; width: 100%; max-width: 1080px; margin: 0 auto; }
main { padding: 18px 16px calc(var(--tab-h) + var(--safe-b) + 120px); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: var(--safe-b); background: rgba(10, 12, 40, 0.94); backdrop-filter: blur(14px); border-top: 1px solid var(--card-line);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tab-h); color: var(--muted); text-decoration: none; font-size: 0.7rem; }
.tab svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-current='page'] { color: var(--gold-2); }
.tab[aria-current='page'] svg { filter: drop-shadow(0 0 6px rgba(240, 200, 115, 0.55)); }
.disclaimer { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--card-line); color: var(--muted); font-size: 0.78rem; }

.side { display: contents; }
.side .brand { display: none; }
.col { display: block; }

/* Components */
.card { background: linear-gradient(180deg, rgba(29, 34, 96, 0.72), rgba(21, 26, 74, 0.72)); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 18px; }
.card + .card, .stack > * + * { margin-top: 14px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 2px 10px; }
.section-title h2 { font-size: 1.1rem; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 0; text-decoration: none; font-weight: 700;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1d05; box-shadow: 0 8px 24px rgba(217, 164, 65, 0.25);
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.indigo { background: linear-gradient(180deg, var(--indigo-2), var(--indigo)); color: #fff; box-shadow: 0 8px 24px rgba(59, 47, 201, 0.35); }
.btn.danger { background: transparent; border: 1px solid rgba(255, 138, 138, 0.5); color: var(--danger); box-shadow: none; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn.block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: rgba(255,255,255,.08); }
.chip.ready { background: rgba(123, 224, 176, 0.14); color: var(--ok); }
.chip.preparing, .chip.queued { background: rgba(217, 164, 65, 0.16); color: var(--gold-2); }
.chip.failed { background: rgba(255, 138, 138, 0.15); color: var(--danger); }
.field { display: block; width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--card-line); background: rgba(8, 10, 34, 0.7); color: var(--ink); font: inherit; }
.field:focus { outline: 2px solid var(--indigo-2); outline-offset: 1px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }

/* Banner de bono */
.bonus {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; text-decoration: none; color: #2a1d05; border: 0; width: 100%; text-align: left;
  background: linear-gradient(100deg, #f6e3b3, #e3b552); box-shadow: 0 10px 28px rgba(217, 164, 65, 0.22);
}
.bonus .gift { font-size: 1.8rem; line-height: 1; }
.bonus strong { display: block; }
.bonus small { opacity: 0.8; }

/* Today */
.hello { margin: 4px 2px 16px; }
.hello p { color: var(--muted); margin: 4px 0 0; }
.today-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.moon { display: flex; gap: 16px; align-items: center; }
.moon-disc { width: 72px; height: 72px; flex: none; border-radius: 50%; background: #0a0c2e; box-shadow: 0 0 0 1px var(--line), 0 0 28px rgba(240, 200, 115, 0.25); position: relative; overflow: hidden; }
.moon-disc svg { width: 100%; height: 100%; display: block; }
.streak { display: flex; gap: 8px; margin-top: 10px; }
.streak i { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.streak i.on { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.draw { display: grid; gap: 18px; justify-items: center; text-align: center; }
.draw-card { perspective: 1200px; width: min(44vw, 210px); aspect-ratio: 941 / 1672; cursor: pointer; border: 0; background: none; padding: 0; }
.draw-card .inner { position: relative; width: 100%; height: 100%; transition: transform 0.9s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.draw-card.flipped .inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(217, 164, 65, 0.55); }
.face.front { transform: rotateY(180deg); background: var(--night-2); }
.face img { width: 100%; height: 100%; object-fit: cover; }
.face.reversed img, .face.reversed .fallback { transform: rotate(180deg); }
.back {
  background:
    radial-gradient(circle at 50% 50%, rgba(240, 200, 115, 0.35) 0 2px, transparent 3px),
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(217, 164, 65, 0.16) 0 6deg, transparent 6deg 12deg),
    linear-gradient(160deg, #3b2fc9, #171559);
  display: grid; place-items: center;
}
.back::before { content: ''; position: absolute; inset: 10px; border-radius: 9px; border: 1px solid rgba(240, 200, 115, 0.6); }
.back svg { width: 44%; fill: var(--gold-2); filter: drop-shadow(0 0 10px rgba(240, 200, 115, 0.6)); }
.fallback { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; background: linear-gradient(170deg, #20256b, #0e1136); font-family: var(--serif); color: var(--gold-2); text-align: center; border: 2px solid rgba(217, 164, 65, 0.5); border-radius: 14px; }
.fallback .num { font-size: 2.2rem; }
.fallback .nm { font-size: 0.95rem; color: var(--ink); }
.shimmer-card .inner { animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.elara-note { display: flex; gap: 12px; text-align: left; align-items: flex-start; }
.elara-avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.elara-note blockquote { margin: 0; font-family: var(--serif); font-size: 1.05rem; line-height: 1.55; }
.name-line { font-family: var(--serif); font-size: 1.35rem; margin-top: 4px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--card-line); background: var(--night-2); display: block; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 17, 54, 0.92) 0%, rgba(14, 17, 54, 0) 62%); }
.tile span { position: absolute; z-index: 1; left: 12px; right: 10px; bottom: 10px; font-weight: 700; font-size: 0.92rem; line-height: 1.2; }

/* Readings */
.reading-item { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.thumb { width: 64px; aspect-ratio: 941 / 1672; flex: none; border-radius: 9px; overflow: hidden; background: var(--night-3); border: 1px solid var(--line); }
.thumb img, .thumb .fallback { width: 100%; height: 100%; object-fit: cover; }
.thumb .fallback { padding: 4px; font-size: 0.55rem; gap: 2px; border-width: 1px; border-radius: 9px; }
.thumb .fallback .num { font-size: 1rem; }
.thumb .fallback .nm { display: none; }
.reading-item .meta { flex: 1; min-width: 0; }
.reading-item h3 { margin-bottom: 4px; }
.shuffling { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font-style: italic; font-size: 0.9rem; }
.shuffling::before { content: ''; width: 14px; height: 14px; border-radius: 3px; background: linear-gradient(160deg, var(--gold-2), var(--gold)); animation: shuffle 1.4s ease-in-out infinite; }
@keyframes shuffle { 0%, 100% { transform: rotate(-12deg) translateX(-3px); } 50% { transform: rotate(12deg) translateX(3px); } }
.viewer-head { text-align: center; padding: 8px 0 4px; }
.viewer-head p { color: var(--muted); }
.spread { display: grid; gap: 22px; margin: 22px 0; grid-template-columns: 1fr; }
.spread-card { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.spread-card.seen { opacity: 1; transform: none; }
.spread-card .mini { perspective: 900px; aspect-ratio: 941 / 1672; }
.spread-card .mini .inner { position: relative; width: 100%; height: 100%; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1) 0.25s; transform-style: preserve-3d; }
.spread-card.seen .mini .inner { transform: rotateY(180deg); }
.spread-card .pos { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.spread-card h3 { margin: 2px 0 6px; }
.spread-card p { color: #dcdeff; }
.prose h2 { margin: 24px 0 8px; }
.prose p { color: #dcdeff; font-size: 1.02rem; }
.signoff { font-family: var(--serif); font-style: italic; color: var(--gold-2); margin-top: 18px; }
.back-link { display: inline-flex; gap: 6px; color: var(--muted); text-decoration: none; margin-bottom: 10px; font-size: 0.9rem; }

/* Chat */
.chat { display: flex; flex-direction: column; min-height: calc(100dvh - 330px); }
.chat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bubbles { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px; }
.bubble { max-width: 84%; padding: 12px 15px; border-radius: 18px; white-space: pre-wrap; }
.bubble.elara { align-self: flex-start; background: var(--night-3); border-bottom-left-radius: 6px; }
.bubble.user { align-self: flex-end; background: linear-gradient(180deg, var(--indigo-2), var(--indigo)); border-bottom-right-radius: 6px; }
.chat-form { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 8px); display: flex; gap: 8px; padding: 8px 0; background: linear-gradient(0deg, var(--night) 70%, transparent); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips button { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(217, 164, 65, 0.08); color: var(--gold-2); font-size: 0.85rem; }
.notice { padding: 10px 14px; border-radius: 14px; background: rgba(217, 164, 65, 0.1); border: 1px solid var(--line); color: var(--gold-2); font-size: 0.88rem; }

/* Shop */
.balance-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.balance-card .big { font-family: var(--serif); font-size: 2rem; display: flex; align-items: center; gap: 10px; }
.coin.lg { width: 34px; height: 34px; }
.products { display: grid; grid-template-columns: 1fr; gap: 12px; }
.product { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.product .thumb { width: 76px; }
.product .price { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.product .price b { font-size: 1.1rem; }
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pack { position: relative; text-align: center; padding: 22px 12px 16px; }
.pack .n { font-family: var(--serif); font-size: 1.7rem; margin: 8px 0 2px; }
.pack .ribbon { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 2px 12px; border-radius: 999px; background: var(--indigo-2); font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
.costs li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--card-line); }
.costs { list-style: none; margin: 0; padding: 0; }

/* Profile */
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head .avatar { width: 56px; height: 56px; font-size: 1.4rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--card-line); }
.list li:last-child { border: 0; }
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(5, 6, 24, 0.7); display: grid; place-items: center; padding: 20px; }
.modal { max-width: 420px; width: 100%; background: var(--night-2); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.modal .row { margin-top: 16px; justify-content: flex-end; }

/* Login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 18px; }
.login-card { width: 100%; max-width: 420px; text-align: center; }
.login-card .elara-avatar { width: 92px; height: 92px; margin: 0 auto 14px; }
.login-card h1 { margin-bottom: 8px; }
.login-card form { margin-top: 18px; display: grid; gap: 12px; text-align: left; }
.err { color: var(--danger); font-size: 0.9rem; min-height: 1.2em; }
#toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 18px); transform: translate(-50%, 20px); opacity: 0; transition: 0.3s; z-index: 60; background: #fff; color: #1a1840; padding: 10px 16px; border-radius: 12px; font-weight: 600; pointer-events: none; max-width: 90vw; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.loading { display: grid; place-items: center; min-height: 40vh; color: var(--muted); }

/* Tablet */
@media (min-width: 640px) {
  main { padding: 24px 24px calc(var(--tab-h) + var(--safe-b) + 120px); }
  .today-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .today-grid .span-2 { grid-column: 1 / -1; }
  .products { grid-template-columns: 1fr 1fr; }
  .packs { grid-template-columns: repeat(4, 1fr); }
  .spread { grid-template-columns: 1fr 1fr; }
  .spread-card { grid-template-columns: 1fr; }
  .spread-card .mini { width: 150px; }
  h1 { font-size: 2.1rem; }
}

/* Desktop: la barra inferior pasa a un riel lateral */
@media (min-width: 1000px) {
  .shell { flex-direction: row; }
  .side { width: 232px; flex: none; position: sticky; top: 0; height: 100dvh; padding: 22px 14px; border-right: 1px solid var(--card-line); background: rgba(10, 12, 40, 0.55); display: flex; flex-direction: column; gap: 4px; }
  .side .brand { padding: 0 10px 20px; }
  .tabbar { position: static; display: flex; flex-direction: column; background: none; border: 0; backdrop-filter: none; padding: 0; }
  .tab { flex-direction: row; justify-content: flex-start; gap: 14px; height: 48px; padding: 0 14px; border-radius: 12px; font-size: 0.98rem; }
  .tab[aria-current='page'] { background: rgba(217, 164, 65, 0.12); }
  .col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .topbar .brand { display: none; }
  .topbar { justify-content: flex-end; background: transparent; border: 0; backdrop-filter: none; }
  main { padding: 8px 40px 80px; }
  .layout { max-width: 1040px; }
  .today-grid { grid-template-columns: 1.1fr 0.9fr; }
  .spread { grid-template-columns: repeat(3, 1fr); }
  .spread-card .mini { width: 100%; max-width: 190px; }
  .products { grid-template-columns: 1fr 1fr; }
  .chat { min-height: calc(100dvh - 260px); }
  .chat-form { bottom: 12px; }
  #toast { bottom: 24px; }
}
@media (hover: none) { .btn:active { transform: translateY(1px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition-duration: 0.01ms !important; } .spread-card { opacity: 1; transform: none; } }

@media print {
  body { background: #fff; color: #111; }
  .topbar, .tabbar, .side, .btn, .back-link, #toast { display: none !important; }
  main { padding: 0; }
  .card { border: 1px solid #ccc; background: #fff; }
  .spread-card { opacity: 1; transform: none; }
  .spread-card .mini .inner { transform: rotateY(180deg); }
  .spread-card p, .prose p { color: #222; }
}

/* Personalización y entrega */
.pz { align-items: start; }
.pz-card { max-width: 480px; text-align: left; }
.pz-card h1, .pz-card > .eyebrow, .pz-card > p { text-align: center; }
.pz-card .elara-avatar { display: block; margin: 0 auto 10px; }
.pz-label { display: block; margin: 16px 2px 6px; font-weight: 600; font-size: 0.92rem; }
.pz-chips { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; }
.pz-chips button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--card-line); background: rgba(8, 10, 34, 0.7); color: var(--ink); font: inherit; cursor: pointer; }
.pz-chips button.on { border-color: var(--gold); background: rgba(217, 164, 65, 0.16); color: var(--gold-2); }
.pz-area { padding: 12px 16px; min-height: 120px; resize: vertical; line-height: 1.5; }
.pz-count { text-align: right; margin: 4px 2px 0; }
.pz .btn.block { margin-top: 18px; }
.todo-item { display: block; border-color: var(--gold); text-decoration: none; color: inherit; }
.todo-item .btn { margin-top: 10px; }
.card-heading { font-family: var(--serif); font-style: italic; color: var(--gold-2); margin: 0 0 6px; }

/* Avisos, sheets, monedas, ruleta, Quick Readings */
.tab .ico { position: relative; display: inline-flex; }
.dot { position: absolute; top: -2px; right: -5px; width: 10px; height: 10px; border-radius: 50%; background: #ff6b8b; box-shadow: 0 0 0 2px var(--night), 0 0 10px rgba(255, 107, 139, 0.7); }
.chip.new { background: rgba(255, 107, 139, 0.18); color: #ff9db3; }
.q-line { font-style: italic; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sheet-bg { align-items: end; }
.sheet { max-height: 90dvh; overflow-y: auto; padding-bottom: calc(22px + var(--safe-b)); }
@media (min-width: 640px) { .sheet-bg { align-items: center; } }
.bubble.live:empty::after, .bubble.live { min-height: 1.2em; }
.typing { display: inline-flex; gap: 5px; align-items: center; height: 1.2em; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.pack-list { display: grid; gap: 10px; }
.pack-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(217, 164, 65, 0.08); color: var(--ink); text-align: left; }
.pack-row b { font-family: var(--serif); font-size: 1.3rem; }
.pack-row .price-tag { margin-left: auto; }
.price-tag { padding: 6px 14px; border-radius: 10px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1d05; font-weight: 800; }
button.pack { color: inherit; width: 100%; cursor: pointer; font: inherit; }
button.pack .price-tag { display: inline-block; margin-top: 6px; }
.gift-big { font-size: 2.6rem; line-height: 1; margin-bottom: 8px; }
.bonus-pop { text-align: center; }
.bonus-amt { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 2.2rem; color: var(--gold-2); margin-bottom: 16px; }
.free-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .free-grid { grid-template-columns: 1fr 1fr; } }
.free-card { text-align: center; }
.free-card .btn { margin-top: 10px; }
.wheel-wrap { position: relative; width: 150px; height: 150px; margin: 0 auto 10px; }
.wheel-pin { position: absolute; top: -6px; left: 50%; width: 0; height: 0; transform: translateX(-50%); z-index: 2; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 16px solid var(--gold-2); filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.wheel { position: relative; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 24px rgba(217, 164, 65, 0.3);
  background: conic-gradient(#3b2fc9 0 60deg, #20256b 60deg 120deg, #3b2fc9 120deg 180deg, #20256b 180deg 240deg, #7a5a14 240deg 300deg, #20256b 300deg 360deg); }
.quick-banner { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.quick-banner .thumb { width: 52px; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(217, 164, 65, 0.08); color: var(--gold-2); font-size: 0.88rem; text-align: left; }
.topic:active { background: rgba(217, 164, 65, 0.2); }
.wheel span { position: absolute; inset: 0; transform: rotate(calc(var(--i) * 60deg + 30deg)); text-align: center; padding-top: 14px; font-size: 0.85rem; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.pack-row .coin { flex: none; }
.pack-row .chip { white-space: nowrap; }
.pack-row .price-tag { flex: none; }
.packs .pack:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) { .packs .pack:last-child:nth-child(odd) { grid-column: auto; } }
.sheet .row .btn { white-space: nowrap; padding: 0 16px; }
.sheet .row { flex-wrap: wrap; }

/* Personalización: lo que ya sabemos, resumido y editable. */
.pz-known { margin: 14px 0 4px; padding: 12px 14px; border: 1px solid var(--card-line); border-radius: 14px; background: rgba(217, 164, 65, 0.07); }
.pz-known div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 0.92rem; }
.pz-known span { color: #a9a7c9; flex: none; }
.pz-known strong { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.pz-edit { display: block; margin: 8px 0 0 auto; padding: 6px 0; background: none; border: 0; color: var(--gold-2); font: inherit; font-size: 0.88rem; text-decoration: underline; cursor: pointer; }
