/* Oracle — public site styles. Tokens follow design-system/oracle/MASTER.md */

@font-face { font-family:'Cinzel'; font-weight:500; font-style:normal; font-display:swap; src:url('/fonts/cinzel-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family:'Cinzel'; font-weight:600; font-style:normal; font-display:swap; src:url('/fonts/cinzel-latin-600-normal.woff2') format('woff2'); }
/* EB Garamond (titles, card names): replaces Cormorant Garamond, whose circumflex accents (û ô ê â î) are misplaced */
@font-face { font-family:'EB Garamond'; font-weight:400 800; font-style:normal; font-display:swap; src:url('/fonts/eb-garamond-latin-normal.woff2') format('woff2'); }
@font-face { font-family:'EB Garamond'; font-weight:500; font-style:italic; font-display:swap; src:url('/fonts/eb-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family:'Crimson Pro'; font-weight:400; font-style:normal; font-display:swap; src:url('/fonts/crimson-pro-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family:'Crimson Pro'; font-weight:600; font-style:normal; font-display:swap; src:url('/fonts/crimson-pro-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family:'Crimson Pro'; font-weight:400; font-style:italic; font-display:swap; src:url('/fonts/crimson-pro-latin-400-italic.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg:#0B1026; --surface:#141B3A; --surface-2:#1C2550;
  --text:#F3EEDF; --text-muted:#B9B4CC;
  --gold:#E2B84F; --gold-soft:#F2D58A; --gold-deep:#B8902E; --on-gold:#1A1405;
  --gold-line:rgba(226,184,79,.45); --gold-faint:rgba(226,184,79,.14);
  --border:#3A4478; --border-strong:#7A84BA;
  --danger:#FF8A8A; --success:#7FE0B5;
  --dur-fast:150ms; --dur-base:300ms;
  --ease-out:cubic-bezier(.2,.7,.2,1); --ease-flip:cubic-bezier(.65,0,.35,1);
  --card-ratio: 63 / 88;     /* playing-card format of the deck (63 × 88 mm), images at the same ratio: nothing is cut */
  --card-crop: 50% 50%;
  --violet:#6b2f9c; --violet-mid:#4c1f78; --violet-deep:#2d1150; --violet-glow:rgba(107,47,156,.22);
  --font-brand:'Cinzel', Georgia, serif;
  --font-display:'EB Garamond', Georgia, serif;
  --font-body:'Crimson Pro', Georgia, 'Times New Roman', serif;
}

* { box-sizing:border-box; }
html, body { margin:0; min-height:100%; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -8%, #262463 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 50% 32%, rgba(226,184,79,.07) 0%, transparent 70%),
    radial-gradient(ellipse 45% 40% at 8% 80%, var(--violet-glow) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 95% 20%, rgba(107,47,156,.16) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 110%, #1c1648 0%, transparent 70%);
  background-attachment: fixed;
  color: var(--text); font-family: var(--font-body); font-size:18px; line-height:1.6;
}
img { max-width:100%; }
a { color:var(--gold); }
a:hover { color:var(--gold-soft); }
:focus-visible { outline:3px solid var(--gold-soft); outline-offset:2px; border-radius:6px; }
[hidden] { display:none !important; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip { position:absolute; left:-9999px; }
.skip:focus { left:16px; top:8px; background:var(--gold); color:var(--on-gold); padding:8px 14px; border-radius:10px; z-index:10; }

.wrap { max-width:960px; margin:0 auto; padding:0 16px; }
@media (min-width:768px) { .wrap { padding:0 32px; } }

/* ---------- Starry sky (decorative) ---------- */
.sky { position:fixed; inset:0; z-index:-1; pointer-events:none; overflow:hidden; }
.sky .dot { position:absolute; border-radius:50%; background:var(--text); animation: twinkle var(--t,6s) ease-in-out infinite; animation-delay:var(--d,0s); }
.sky .dot.g { background:var(--gold-soft); box-shadow:0 0 6px rgba(242,213,138,.6); }
.sky svg { position:absolute; fill:var(--gold-soft); filter:drop-shadow(0 0 4px rgba(242,213,138,.55));
           animation: twinkle var(--t,9s) ease-in-out infinite; animation-delay:var(--d,0s); }
@keyframes twinkle { 0%,100% { opacity:var(--o,.7); } 50% { opacity:calc(var(--o,.7) * .25); } }

/* ---------- Header ---------- */
header.site { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0;
              border-bottom:1px solid transparent;
              border-image: linear-gradient(90deg, transparent, var(--gold-line), transparent) 1; }
.brand { font-family:var(--font-brand); font-weight:600; font-size:16px; letter-spacing:.08em; text-decoration:none; white-space:nowrap;
         display:inline-flex; align-items:center; gap:10px; min-height:44px;
         background:linear-gradient(180deg, #F7DE9C 0%, #E2B84F 55%, #C9982F 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.brand svg { width:14px; height:14px; fill:var(--gold); flex:none; }
@media (min-width:480px) { .brand { font-size:20px; letter-spacing:.12em; } }
@media (min-width:768px) { .brand { font-size:23px; letter-spacing:.14em; } .brand svg { width:16px; height:16px; } }
.right { display:flex; align-items:center; gap:2px; }
.lang { display:inline-flex; }
.lang button, .help, .account { min-width:44px; min-height:44px; background:transparent; border:0; color:var(--text-muted);
       font:600 16px var(--font-body); cursor:pointer; padding:0 10px; border-radius:8px; text-decoration:none;
       display:inline-flex; align-items:center; justify-content:center; gap:6px; transition: color var(--dur-fast); }
.lang button:hover, .help:hover, .account:hover { color:var(--text); }
.lang button[aria-checked="true"] { color:var(--gold); }
.help[aria-current="page"], .account[aria-current="page"] { color:var(--gold); }
.sep { width:1px; height:20px; background:var(--gold-line); margin:0 6px; }
.help svg, .account svg { width:20px; height:20px; flex:none; }
.account-name { max-width:9ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* Small phones: icons only for Help and the account (their names stay readable by screen readers) */
@media (max-width:479px) {
  header.site { gap:6px; }
  .brand { gap:7px; }
  .lang button { min-width:40px; padding:0 6px; }
  .help, .account { padding:0 8px; }
  .help span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .account-name { display:none; }
  .sep { margin:0 3px; }
}
@media (max-width:359px) { .brand { font-size:14px; letter-spacing:.05em; } .lang button { min-width:36px; padding:0 4px; } }

/* ---------- Cards ---------- */
.card { aspect-ratio:var(--card-ratio); perspective:1400px; }
.card .inner { position:relative; width:100%; height:100%; transform-style:preserve-3d; }
.card .face, .card .back { position:absolute; inset:0; backface-visibility:hidden; -webkit-backface-visibility:hidden;
               border-radius:10px; overflow:hidden; box-shadow:0 10px 28px rgba(0,0,0,.5), 0 0 0 1px rgba(226,184,79,.18); }
.card .face { transform:rotateY(180deg); box-shadow:none; }
.card.face-up .back { box-shadow:none; }
.card img { width:100%; height:100%; object-fit:cover; object-position:var(--card-crop); display:block; }

/* ---------- Ambient band ---------- */
.band-wrap { position:relative; margin-top:8px; }
.band-wrap::before { content:""; position:absolute; inset:10% 5%; z-index:-1;
                     background: radial-gradient(ellipse at center, rgba(226,184,79,.10), transparent 70%); }
.band { overflow:hidden; padding:18px 0 22px; min-height:160px;
        mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
@media (min-width:768px) { .band { min-height:186px; } }
.track { display:flex; gap:20px; width:max-content; animation: drift 90s linear infinite; }
@keyframes drift { from { transform:translateX(0); } to { transform:translateX(-50%); } }
.band .card { width:60px; }
@media (min-width:768px) { .band .card { width:76px; } }
/* Each card has its own random cycle and offset (set in JS) so flips never line up.
   Negative angle = the right edge comes forward and sweeps left, like turning a page. */
.band .card .inner { animation: softflip var(--cycle,26s) infinite; animation-delay:var(--offset,0s); }
@keyframes softflip {
  0%, 36%   { transform:rotateY(0);       animation-timing-function: var(--ease-flip); }
  50%, 86%  { transform:rotateY(-180deg); animation-timing-function: var(--ease-flip); }
  100%      { transform:rotateY(-360deg); }
}
.pause { position:absolute; right:0; bottom:-8px; width:44px; height:44px; border-radius:50%; border:0; background:transparent;
         color:var(--gold); cursor:pointer; opacity:.55; transition: opacity var(--dur-fast);
         display:inline-flex; align-items:center; justify-content:center; }
.pause:hover, .pause:focus-visible { opacity:1; }
.pause svg { width:16px; height:16px; fill:currentColor; }
.pause .i-play { display:none; }
.paused .pause .i-play { display:block; }
.paused .pause .i-pause { display:none; }
.paused .track, .paused .band .card .inner, .paused .sky * { animation-play-state:paused; }

/* ---------- Main / ask step ---------- */
main { padding:36px 0 64px; }
main:has(#step-choose:not([hidden])) { padding-top:18px; }
@media (min-width:768px) { main:has(#step-choose:not([hidden])) { padding-top:28px; } }
h1 { font-family:var(--font-display); font-weight:500; font-size:30px; line-height:1.25; text-align:center; margin:0; }
@media (min-width:768px) { h1 { font-size:38px; } }
.ornament { display:flex; align-items:center; justify-content:center; gap:12px; margin:12px auto 18px; color:var(--gold); }
.ornament::before, .ornament::after { content:""; height:1px; width:72px; }
.ornament::before { background:linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after  { background:linear-gradient(270deg, transparent, var(--gold)); }
.ornament svg { width:14px; height:14px; fill:currentColor; }

.q { max-width:620px; margin:0 auto; }
.field { position:relative; }
.field::after { content:""; position:absolute; left:0; right:0; bottom:0; height:1px;
                background:linear-gradient(90deg, transparent, var(--gold-line) 20%, var(--gold-line) 80%, transparent); }
.field:focus-within::after { height:2px; background:linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold-soft) 50%, var(--gold) 85%, transparent); }
textarea { display:block; width:100%; min-height:60px; background:transparent; color:var(--text);
           border:0; padding:10px 4px; font:22px/1.45 var(--font-display); text-align:center; resize:none; field-sizing:content; }
textarea::placeholder { color:var(--text-muted); font-style:italic; }
textarea:focus { outline:none; }
.hint { color:var(--text-muted); font-size:16px; text-align:center; margin:10px 0 0; min-height:1.6em; }

.modes { display:flex; justify-content:center; gap:10px; margin:28px 0 0; border:0; padding:0; min-width:0; }
@media (min-width:480px) { .modes { gap:16px; } }
.modes legend { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.mode input { position:absolute; opacity:0; width:1px; height:1px; }
.mode label { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
              width:74px; height:104px; border-radius:14px; cursor:pointer; color:var(--text-muted);
              border:1px solid var(--gold-faint); background:rgba(20,27,58,.9);
              transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast); }
.mode label:hover { color:var(--gold-soft); border-color:var(--gold-line); }
.mode input:checked + label { color:var(--gold); border-color:var(--gold); background:rgba(226,184,79,.07); box-shadow:0 0 22px rgba(226,184,79,.18); }
.mode input:focus-visible + label { outline:3px solid var(--gold-soft); outline-offset:3px; }
@media (min-width:480px) { .mode label { width:92px; height:112px; } }
.mini { display:grid; gap:3px; grid-template-columns:repeat(3,8px); justify-content:center; }
.mini.m5 i:nth-child(1), .mini.m5 i:nth-child(3), .mini.m5 i:nth-child(7), .mini.m5 i:nth-child(9) { visibility:hidden; }
.mini.m5 i:nth-child(5) { background:var(--text); }
.mini i { width:8px; height:15px; border-radius:2px; background:currentColor; opacity:.9; }
.mini.m1 { grid-template-columns:8px; }
.mini.m9 i:nth-child(5) { background:var(--text); }
.mode b { font-family:var(--font-display); font-weight:600; font-size:24px; line-height:1; font-variant-numeric:lining-nums; }

/* ---------- Choosing step ---------- */
.step-choose { text-align:center; }
/* The title only receives focus by script (to guide screen readers); it is not a control, so no ring. */
.step-choose h1:focus, .step-choose h1:focus-visible { outline:none; }
.echo { font-family:var(--font-display); font-style:italic; font-size:20px; color:var(--text-muted);
        max-width:48ch; margin:0 auto 8px; overflow-wrap:anywhere; }
.step-choose .ornament { margin:8px auto 10px; }
@media (max-width:767px) {
  .step-choose .ornament { display:none; }
  .step-choose .counter { margin-top:4px; }
  .pick-wrap { margin-top:6px; }
  .spread:not(.done) { margin-top:14px; }
}
.counter { font-family:var(--font-display); font-weight:600; font-size:20px; color:var(--gold);
           font-variant-numeric:lining-nums; letter-spacing:.08em; margin:-6px 0 0; }
.soon { color:var(--text-muted); max-width:52ch; margin:24px auto 0; }

/* The whole deck spread face down "on the table": every card visible at once, slightly tilted,
   overlapping, floating gently at its own pace (--r tilt, --y offset, --ft/--fd float set in JS). */
.pick-wrap { position:relative; margin:14px 0 0; }

/* Mystic violet tablecloth seen from above: velvet gradient + fine grain + gold stitched border */
.nappe { position:relative; isolation:isolate; border-radius:24px; padding:16px 8px 30px; margin-left:-10px; margin-right:-10px;
  background:
    radial-gradient(ellipse 65% 55% at 50% 42%, rgba(255,255,255,.08), transparent 70%),
    radial-gradient(ellipse at 50% 40%, var(--violet) 0%, var(--violet-mid) 45%, var(--violet-deep) 82%, #200b3a 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 0 80px rgba(12,2,28,.7), inset 0 0 0 1px rgba(226,184,79,.35); }
.nappe::before { content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; pointer-events:none; opacity:.4; mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.nappe::after { content:""; position:absolute; inset:8px; border-radius:18px; pointer-events:none; border:1px dashed rgba(226,184,79,.45); }
@media (min-width:768px) { .nappe { margin-left:0; margin-right:0; padding:18px 14px 22px; border-radius:30px; } .nappe::after { inset:11px; border-radius:22px; } }
.nappe .pause { bottom:6px; right:10px; }
.pick-table { display:flex; flex-direction:column; align-items:center; padding:10px 4px 6px; }
.pick-row { display:flex; justify-content:center; }
/* Each row covers about half of the one above (cards 63 x 88), like a real spread on a table */
.pick-row + .pick-row { margin-top:calc(var(--row-overlap, -31px)); }
.pick { --w:44px; flex:none; width:var(--w); margin:0 -3px; padding:0; border:0; background:none; cursor:pointer; border-radius:8px;
        position:relative; transform:translateY(var(--y,0)) rotate(var(--r,0));
        transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
@media (min-width:480px) { .pick { --w:52px; margin:0 -4px; } .pick-table { --row-overlap:-36px; } }
@media (min-width:768px) { .pick { --w:60px; margin:0 -6px; } .pick-table { --row-overlap:-42px; } }
@media (min-width:1024px) { .pick { --w:62px; margin:0 -7px; } .pick-table { --row-overlap:-43px; } }
.pick .card { animation: float var(--ft,7s) ease-in-out infinite; animation-delay:var(--fd,0s); }
.pick .back { border-radius:6px; }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-4px); } }
.pick:hover, .pick:focus-visible { z-index:5; transform:translateY(calc(var(--y,0) - 12px)) rotate(0deg) scale(1.12); }
.pick:hover .back, .pick:focus-visible .back { box-shadow:0 14px 30px rgba(0,0,0,.6), 0 0 0 2px var(--gold), 0 0 24px rgba(226,184,79,.4); }
.pick:focus-visible { outline-offset:3px; }
.pick.taken { opacity:0; pointer-events:none; transform:translateY(calc(var(--y,0) - 24px)) rotate(var(--r,0)) scale(.9); }
.paused .pick .card { animation-play-state:paused; }

/* Mode 9, first phase: every card face up */
.pick-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(60px, 1fr)); gap:14px 8px; margin-top:16px; }
.pick-grid.nappe { padding:20px 14px 24px; }
.pick-face .pick-name { color:#E4DEF0; }
@media (min-width:768px) { .pick-grid { grid-template-columns:repeat(auto-fill, minmax(86px, 1fr)); } }
.pick-face { display:flex; flex-direction:column; align-items:center; gap:8px; padding:6px; border:0; background:none;
             color:var(--text-muted); font:15px/1.25 var(--font-body); cursor:pointer; border-radius:12px;
             transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast), opacity var(--dur-base); }
.pick-face .card { width:100%; }
.pick-face:hover, .pick-face:focus-visible { color:var(--gold-soft); transform:translateY(-6px); }
.pick-face:hover .back img, .pick-face:focus-visible .back img { filter:drop-shadow(0 0 8px rgba(242,213,138,.7)); }
.pick-face.chosen { color:var(--gold); transform:translateY(-8px) scale(1.06); pointer-events:none; }
.pick-face.chosen .back img { filter:drop-shadow(0 0 12px rgba(242,213,138,.95)); }
.pick-grid:has(.chosen) .pick-face:not(.chosen) { opacity:.35; }

/* Spread slots: small while choosing, larger once complete */
.spread { --slot:44px; display:grid; justify-content:center; gap:10px; margin:22px auto 0; }
.spread[data-mode="5"]:not(.done), .spread[data-mode="9"]:not(.done) { --slot:34px; gap:6px; }
.spread[data-mode="1"] { grid-template-columns:var(--slot); }
.spread[data-mode="3"], .spread[data-mode="5"], .spread[data-mode="9"] { grid-template-columns:repeat(3, var(--slot)); }
/* The cross: 2 above, 4 left, 1 centre, 3 right, 5 below (positions are in that order in the page) */
.spread[data-mode="5"] { grid-template-areas: ". p2 ." "p4 p1 p3" ". p5 ."; }
.spread[data-mode="5"] .pos:nth-child(1) { grid-area:p1; }
.spread[data-mode="5"] .pos:nth-child(2) { grid-area:p2; }
.spread[data-mode="5"] .pos:nth-child(3) { grid-area:p3; }
.spread[data-mode="5"] .pos:nth-child(4) { grid-area:p4; }
.spread[data-mode="5"] .pos:nth-child(5) { grid-area:p5; }
@media (min-width:768px) {
  .spread { --slot:50px; }
  .spread[data-mode="5"]:not(.done), .spread[data-mode="9"]:not(.done) { --slot:32px; }
}
.spread.done { --slot:min(40vw, 190px); gap:18px; margin-top:28px; animation: settle 600ms var(--ease-out); }
.spread.done[data-mode="3"] { --slot:min(27vw, 160px); }
.spread.done[data-mode="5"], .spread.done[data-mode="9"] { --slot:min(24vw, 110px); gap:12px; }
@keyframes settle { from { opacity:.4; transform:scale(.96); } to { opacity:1; transform:none; } }
.pos { display:flex; flex-direction:column; align-items:center; gap:8px; min-width:0; }
.pos-tag { display:none; font-family:var(--font-display); font-weight:600; font-size:18px; line-height:1.2;
           color:var(--gold); font-variant-numeric:lining-nums; text-align:center; }
.spread.done .pos-tag { display:block; }
.spread[data-mode="1"] .pos-tag { display:none; }
.spread.done[data-mode="9"] .pos-tag { font-size:15px; color:var(--text-muted); }
.slot { position:relative; width:100%; aspect-ratio:var(--card-ratio); border-radius:10px; border:1px dashed var(--gold-line);
        display:grid; place-items:center; background:rgba(11,16,38,.6); }
.slot.center { border-style:solid; border-color:var(--gold); box-shadow:0 0 18px rgba(226,184,79,.2); }
.slot-mark { font-family:var(--font-display); font-weight:600; font-size:18px; color:var(--text-muted); font-variant-numeric:lining-nums; }
.slot.center .slot-mark { color:var(--gold); }
.slot.filled { border-color:transparent; background:none; box-shadow:none; }
.slot.filled .slot-mark { display:none; }
.slot .card { position:absolute; inset:0; animation: land 350ms var(--ease-out); }
@keyframes land { from { transform:scale(1.06); } to { transform:none; } }
/* Reveal: each chosen card flips right -> left (negative angle), like turning a page */
.slot .card .inner { transition: transform 1100ms var(--ease-flip); }
.slot .card.revealed .inner { transform:rotateY(-180deg); }
/* After the flip the card is drawn flat: no 3D layer left that the browser could fail to paint */
.slot .card.settled .inner { transform:none; transition:none; transform-style:flat; }
.slot .card.settled .face { transform:none; opacity:1; overflow:visible; }
/* Tilt under the pointer (the card is flat by then: nothing can vanish) */
.slot .card.shiny .inner { transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition:transform 220ms var(--ease-out); }
.slot .card.settled .back { visibility:hidden; }
.slot .card.revealed .face img, .slot .card.face-up .back img { filter:drop-shadow(0 0 7px rgba(226,184,79,.28)); }
.slot.center .card.face-up .back img { filter:drop-shadow(0 0 9px rgba(226,184,79,.6)); }
.spread.done[data-mode="9"] .pos:nth-child(5) .pos-tag { color:var(--gold); }
.slot-zoom { position:absolute; inset:0; z-index:1; border:0; padding:0; background:none; border-radius:10px; cursor:zoom-in; }
.slot .card { transition: transform var(--dur-base) var(--ease-out); }
.slot:has(.slot-zoom:hover) .card, .slot:has(.slot-zoom:focus-visible) .card { transform:translateY(-4px) scale(1.02); }

/* Zoom on a card: enlarged card + its explanation; closes with ×, a click beside it, or Escape */
.zoom { padding:0; border:1px solid var(--gold-line); border-radius:18px; background:var(--surface); color:var(--text);
        width:min(860px, calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto;
        box-shadow:0 30px 80px rgba(0,0,0,.6), 0 0 40px rgba(226,184,79,.15); }
.zoom::backdrop { background:rgba(5,8,22,.78); backdrop-filter:blur(3px); }
.zoom[open] { animation: zoom-in 320ms var(--ease-out); }
.zoom[open]::backdrop { animation: fade-in 320ms linear; }
@keyframes zoom-in { from { opacity:0; transform:scale(.94); } to { opacity:1; transform:none; } }
@keyframes fade-in { from { opacity:0; } to { opacity:1; } }
.zoom-inner { position:relative; display:grid; gap:22px; padding:24px 20px 26px; }
@media (min-width:700px) { .zoom-inner { grid-template-columns:auto 1fr; align-items:center; gap:32px; padding:32px; } }
.zoom-card { justify-self:center; width:min(60vw, 300px, calc((100dvh - 160px) * 0.68)); aspect-ratio:var(--card-ratio); border-radius:14px; overflow:hidden;
             box-shadow:0 14px 40px rgba(0,0,0,.55), 0 0 0 1px var(--gold-line), 0 0 34px rgba(226,184,79,.25); }
.zoom-card img { width:100%; height:100%; object-fit:cover; object-position:var(--card-crop); display:block; }
.zoom-text { text-align:left; }
.zoom-name { font-family:var(--font-display); font-weight:600; font-size:32px; line-height:1.15; margin:6px 0 12px; }
.zoom-body { margin:0; font-size:19px; line-height:1.65; }
.zoom-close { position:absolute; top:8px; right:8px; z-index:1; width:44px; height:44px; border:0; border-radius:50%;
              background:transparent; color:var(--text-muted); cursor:pointer; display:grid; place-items:center;
              transition: color var(--dur-fast), background var(--dur-fast); }
.zoom-close:hover { color:var(--gold); background:rgba(226,184,79,.1); }
.zoom-close svg { width:22px; height:22px; }

/* "How to read this spread?" link under the result title, and the guide pop-up */
.how { display:inline-flex; align-items:center; gap:8px; min-height:44px; margin:2px auto 0; padding:0 14px;
       border:0; border-radius:22px; background:transparent; color:var(--gold); cursor:pointer;
       font:600 16px var(--font-body); transition: background var(--dur-fast), color var(--dur-fast); }
.how:hover { background:rgba(226,184,79,.1); color:var(--gold-soft); }
.how svg { width:20px; height:20px; }
.guide { width:min(640px, calc(100vw - 32px)); }
.guide-inner { position:relative; padding:26px 22px 24px; text-align:left; }
@media (min-width:700px) { .guide-inner { padding:32px 36px 28px; } }
.guide-title { font-family:var(--font-display); font-weight:600; font-size:32px; line-height:1.15; margin:2px 48px 10px 0; }
.guide-intro { margin:0 0 18px; }
.guide .mini-spread { margin:4px 0 22px; }
.guide-sub { font:600 13px/1.4 var(--font-body); letter-spacing:.14em; text-transform:uppercase; color:var(--gold); margin:0 0 10px; }
.guide-list { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.guide-list li { display:flex; gap:14px; align-items:flex-start; }
.g-num { flex:none; width:30px; height:30px; border-radius:50%; border:1px solid var(--gold-line); display:grid; place-items:center;
         font:600 15px/1 var(--font-display); color:var(--gold); font-variant-numeric:lining-nums; }
.g-num.c { background:var(--gold); color:var(--on-gold); border-color:var(--gold); }
.g-text { display:flex; flex-direction:column; line-height:1.4; }
.g-text strong { font-family:var(--font-display); font-weight:600; font-size:20px; }
.g-hint { color:var(--text-muted); font-size:17px; }
.guide-full { margin:22px 0 0; font-size:16px; }

/* Associations of the guide found among the drawn cards */
.assoc { max-width:760px; margin:30px auto 0; padding:18px 20px 16px; text-align:left; border-radius:16px;
         background:rgba(76,31,120,.35); border:1px solid rgba(226,184,79,.28); }
.assoc h2 { font-family:var(--font-display); font-weight:600; font-size:24px; margin:0 0 4px; }
.assoc-intro { margin:0 0 12px; color:var(--text-muted); font-size:16px; }
.assoc ul { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.assoc li { display:flex; flex-direction:column; gap:2px; padding-left:14px; border-left:2px solid var(--gold-line); }
.assoc-pair { font-family:var(--font-display); font-weight:600; font-size:19px; color:var(--gold-soft); }
.assoc-text { color:var(--text); }

/* Footer: credits + link to the publisher */
.site-foot { text-align:center; color:var(--text-muted); font-size:14px; line-height:1.5; padding:18px 0 30px;
             border-top:1px solid transparent; border-image:linear-gradient(90deg, transparent, var(--gold-line), transparent) 1; }
.site-foot p { margin:2px auto; max-width:60ch; }
.shop-link { display:inline-flex; align-items:center; min-height:44px; font-weight:600; color:var(--gold); }
.foot-links { display:flex; flex-wrap:wrap; justify-content:center; gap:0 4px; margin:6px 0 0; padding:0; list-style:none; }
.foot-links a { display:inline-flex; align-items:center; min-height:44px; padding:0 8px; color:var(--text-muted); font-size:14px; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color:var(--gold); }

/* Explanations */
.explain { display:grid; gap:16px; margin:34px auto 0; text-align:left; }
.explain[data-mode="1"] { max-width:62ch; }
@media (min-width:768px) {
  .explain[data-mode="3"] { grid-template-columns:repeat(3, 1fr); }
  .explain[data-mode="9"] { grid-template-columns:repeat(2, 1fr); }
  .exp-question { grid-column:1 / -1; }
}
.exp { background:rgba(20,27,58,.78); border:1px solid var(--gold-faint); border-radius:16px; padding:18px 20px 20px;
       scroll-margin-top:20px; animation: rise 500ms var(--ease-out) both; animation-delay:calc(var(--i, 0) * 90ms);
       transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.exp:focus { outline:none; }
.exp:target, .exp:focus-visible { border-color:var(--gold); box-shadow:0 0 26px rgba(226,184,79,.2); }
.exp-question { border-color:var(--gold-line); }
.exp-tag { margin:0; font:600 13px/1.4 var(--font-body); letter-spacing:.14em; text-transform:uppercase; color:var(--gold); }
.exp-hint { margin:2px 0 0; font-style:italic; font-size:16px; line-height:1.4; color:var(--text-muted); }
.exp-kw, .zoom-kw { margin:-2px 0 10px; font-size:15px; line-height:1.45; letter-spacing:.02em; color:var(--gold-soft); }
.zoom-more { margin:16px 0 0; display:grid; gap:4px 0; }
.zoom-more dt { font:600 13px/1.4 var(--font-body); letter-spacing:.14em; text-transform:uppercase; color:var(--gold); margin-top:8px; }
.zoom-more dd { margin:0; padding-left:12px; border-left:2px solid var(--gold-line); }
.zoom-more dt.more-shadow + dd { border-left-color:var(--border-strong); }
.exp-name { font-family:var(--font-display); font-weight:600; font-size:26px; line-height:1.2; margin:4px 0 8px; text-align:left; }
.exp-text { margin:0; }
@keyframes rise { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
.closing { color:var(--text-muted); font-style:italic; max-width:52ch; margin:30px auto 0; }

.flying { pointer-events:none; }
.flying .back { box-shadow:0 20px 40px rgba(0,0,0,.6), 0 0 0 2px var(--gold), 0 0 30px rgba(226,184,79,.35); }

/* ---------- Help page (/explication) ---------- */
.help-page { max-width:720px; margin:0 auto; }
.help-intro { font-family:var(--font-display); font-size:22px; line-height:1.5; text-align:center; color:var(--text); max-width:46ch; margin:0 auto; }
.help-block { margin-top:44px; }
.help-block h2 { font-family:var(--font-display); font-weight:600; font-size:28px; margin:0 0 14px; }
.help-block h2::before { content:"✦"; color:var(--gold); font-size:16px; margin-right:10px; vertical-align:3px; }
.help-page ul, .help-page ol { padding-left:1.3em; margin:0; }
.help-page li { margin:0 0 10px; }
.help-page li::marker { color:var(--gold); }
.steps { counter-reset:step; list-style:none; padding-left:0 !important; }
.steps li { counter-increment:step; position:relative; padding-left:46px; margin-bottom:16px; }
.steps li::before { content:counter(step); position:absolute; left:0; top:1px; width:30px; height:30px; border-radius:50%;
                    border:1px solid var(--gold-line); color:var(--gold); display:grid; place-items:center;
                    font:600 16px/1 var(--font-display); font-variant-numeric:lining-nums; }
.steps strong { color:var(--gold-soft); font-weight:600; }
kbd { font:600 14px var(--font-body); padding:1px 7px; border:1px solid var(--border-strong); border-radius:6px; background:var(--surface-2); }

/* Accordion — adapted from 21st.dev "FAQ Accordion Reveal" (bordered cards, multi-open, tint when open,
   staggered rise-in), built on native <details>/<summary> for free keyboard and screen-reader support. */
.accordion { display:flex; flex-direction:column; gap:12px; }
.acc { border:1px solid var(--gold-faint); border-radius:14px; background:rgba(20,27,58,.72);
       transition: background var(--dur-base), border-color var(--dur-base);
       animation: rise 450ms var(--ease-out) both; }
.acc:nth-child(2) { animation-delay:100ms; }
.acc:nth-child(3) { animation-delay:200ms; }
.acc[open] { background:rgba(28,37,80,.82); border-color:var(--gold-line); }
.acc summary { list-style:none; display:flex; align-items:center; justify-content:space-between; gap:16px;
               min-height:56px; padding:12px 18px; cursor:pointer; border-radius:14px;
               font-family:var(--font-display); font-weight:600; font-size:21px; line-height:1.3; }
.acc summary::-webkit-details-marker { display:none; }
.acc summary:hover { color:var(--gold-soft); }
.chev { width:22px; height:22px; flex:none; color:var(--gold); transition: transform var(--dur-base) var(--ease-out); }
.acc[open] .chev { transform:rotate(180deg); }
.acc-body { padding:0 18px 18px; }
.acc-body p { margin:0 0 10px; }
.acc::details-content { block-size:0; overflow:hidden; transition: block-size var(--dur-base) var(--ease-out), content-visibility var(--dur-base) allow-discrete; }
.acc[open]::details-content { block-size:auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

.acc summary small { font-family:var(--font-body); font-weight:400; font-size:16px; color:var(--text-muted); margin-left:4px; }

/* Small spread diagrams */
.mini-spread { display:grid; gap:6px; justify-content:center; align-items:center; margin:6px 0 16px; }
.mini-spread .cell { width:24px; height:46px; border-radius:5px; border:1px solid var(--gold-line); display:grid; place-items:center;
                     font:600 15px var(--font-display); color:var(--gold); font-variant-numeric:lining-nums; background:rgba(11,16,38,.6); }
.mini-spread small { font:600 12px/1.2 var(--font-body); letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); text-align:center; }
.mini-spread.s1 { grid-template-columns:24px; }
.mini-spread.s3 { grid-template-columns:repeat(3, auto); gap:6px 18px; }
.mini-spread.s3 .pos { display:flex; flex-direction:column; align-items:center; gap:6px; }
.mini-spread.s5 { grid-template-columns:repeat(3, 24px); grid-template-areas: ". p2 ." "p4 p1 p3" ". p5 ."; }
.mini-spread.s5 .p1 { grid-area:p1; } .mini-spread.s5 .p2 { grid-area:p2; } .mini-spread.s5 .p3 { grid-area:p3; }
.mini-spread.s5 .p4 { grid-area:p4; } .mini-spread.s5 .p5 { grid-area:p5; }
.mini-spread.s9 { grid-template-columns:repeat(3, 24px); }
.mini-spread .c { background:var(--gold); color:var(--on-gold); border-color:var(--gold); }

.help-note { margin:44px auto 0; padding:14px 18px; border-left:2px solid var(--gold-line); color:var(--text-muted); font-size:16px; }
.help-note p { margin:0 0 8px; }
.help-note p:last-child { margin:0; }
.help-back { text-align:center; margin:28px 0 0; font-family:var(--font-display); font-size:22px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior:smooth; } }

@media (prefers-reduced-motion: reduce) {
  .track, .band .card .inner, .sky *, .spread.done, .slot .card, .pick .card, .exp, .acc,
  .zoom[open], .zoom[open]::backdrop { animation:none !important; }
  .acc::details-content, .chev { transition:none; }
  .pick, .pick-face { transition:none; }
  /* No 3D flip: the face simply fades in */
  .slot .card .inner, .slot .card.revealed .inner { transition:none; transform:none; }
  .slot .card .face { transform:none; opacity:0; transition: opacity 200ms linear; }
  .slot .card.revealed .face { opacity:1; }
}

/* ---------- Legal pages ---------- */
.legal-list { display:grid; grid-template-columns:1fr; gap:2px 18px; margin:0; }
.legal-list > div { display:contents; }
.legal-list dt { color:var(--text-muted); font-size:15px; margin-top:10px; }
.legal-list dd { margin:0; }
@media (min-width:600px) { .legal-list { grid-template-columns:max-content 1fr; } .legal-list dt, .legal-list dd { margin-top:8px; } }
.multiline { white-space:pre-line; }
.todo { color:var(--text-muted); font-style:italic; }
.legal-date { margin:40px 0 0; color:var(--text-muted); font-size:15px; text-align:center; }

/* ---------- Account (/compte) ---------- */
.saved-notice { margin:4px auto 0; max-width:46ch; text-align:center; color:var(--text-muted); font-size:15px; }
.account-page { max-width:640px; margin:0 auto; padding-bottom:20px; }
.account-page h1 { font-family:var(--font-display); font-weight:600; font-size:38px; text-align:center; margin:28px 0 0; }
.account-page h1:focus { outline:none; }
.acc-status { text-align:center; color:var(--success); min-height:0; margin:0; }
.acc-status:empty { display:none; }
.acc-intro { text-align:center; color:var(--text-muted); max-width:46ch; margin:0 auto 22px; }
.acc-tabs { display:flex; justify-content:center; gap:6px; margin:0 0 14px; }
.acc-tabs button { min-height:44px; padding:0 16px; background:transparent; border:0; border-bottom:2px solid transparent;
                   color:var(--text-muted); font:600 17px var(--font-body); cursor:pointer; }
.acc-tabs button[aria-selected="true"] { color:var(--gold); border-bottom-color:var(--gold); }
.acc-tabs button:hover { color:var(--text); }
.acc-card { background:rgba(20,27,58,.72); border:1px solid var(--border); border-radius:16px; padding:20px 18px; }
@media (min-width:600px) { .acc-card { padding:26px 28px; } }
.acc-field { margin:0 0 16px; }
.acc-field > label { display:block; font-weight:600; margin:0 0 6px; }
.acc-field input[type=text], .acc-field input[type=email], .acc-field input[type=password] {
  width:100%; min-height:48px; padding:10px 14px; border-radius:10px; border:1px solid var(--border-strong);
  background:var(--surface-2); color:var(--text); font:400 18px var(--font-body); }
.acc-field input:focus-visible { outline:3px solid var(--gold-soft); outline-offset:1px; }
.acc-field input[aria-invalid="true"] { border-color:var(--danger); }
.pw-wrap { position:relative; }
.pw-wrap input { padding-right:54px !important; }
.pw-toggle { position:absolute; right:2px; top:50%; transform:translateY(-50%); width:44px; height:44px; border:0; background:transparent;
             color:var(--text-muted); cursor:pointer; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; }
.pw-toggle svg { width:22px; height:22px; }
.pw-toggle[aria-pressed="true"] { color:var(--gold); }
.acc-hint { margin:6px 0 0; color:var(--text-muted); font-size:15px; }
.acc-err { margin:6px 0 0; color:var(--danger); font-size:16px; }
.acc-err:empty, .acc-msg:empty { display:none; }
.acc-err::before, .acc-msg:not(.ok)::before { content:"⚠ "; }
.acc-msg { margin:0 0 14px; color:var(--danger); }
.acc-msg.ok { color:var(--success); }
.acc-msg.ok::before { content:"✓ "; }
.acc-check { display:grid; grid-template-columns:24px 1fr; gap:4px 10px; align-items:start; }
.acc-check input { width:22px; height:22px; margin:3px 0 0; accent-color:var(--gold); }
.acc-check label { font-weight:400; margin:0; }
.acc-check .acc-err { grid-column:2; }
.acc-small { margin:16px 0 0; color:var(--text-muted); font-size:15px; }
.btn-gold, .btn-outline, .btn-danger { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 22px;
  border-radius:10px; font:600 17px var(--font-body); cursor:pointer; text-decoration:none; transition:background var(--dur-fast), color var(--dur-fast); }
.btn-gold { background:var(--gold); color:var(--on-gold); border:0; }
.btn-gold:hover { background:var(--gold-soft); color:var(--on-gold); }
.btn-outline { background:transparent; color:var(--text); border:1px solid var(--border-strong); }
.btn-outline:hover { border-color:var(--gold); color:var(--gold); }
.btn-danger { background:transparent; color:var(--danger); border:1px solid var(--danger); }
.btn-danger:hover { background:rgba(255,138,138,.12); color:var(--danger); }
.btn-gold:disabled, .btn-danger:disabled { opacity:.6; cursor:wait; }
.btn-link { background:none; border:0; min-height:44px; padding:0 8px; font:600 16px var(--font-body); cursor:pointer; color:var(--text-muted); text-decoration:underline; }
.btn-link.danger { color:var(--danger); }
.acc-hello { font-family:var(--font-display); font-size:28px; text-align:center; margin:10px 0 0; }
.acc-since { text-align:center; color:var(--text-muted); font-size:15px; margin:0 0 10px; }
.acc-alert { border:1px solid var(--gold-line); background:var(--gold-faint); border-radius:12px; padding:12px 16px; margin:14px 0 0; }
.acc-block { margin-top:40px; }
.acc-block h2 { font-family:var(--font-display); font-weight:600; font-size:28px; margin:0 0 12px; }
.acc-block h2::before { content:"✦"; color:var(--gold); font-size:16px; margin-right:10px; vertical-align:3px; }
.acc-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin:16px 0 0; }
.acc-empty { color:var(--text-muted); }
.acc-readings { list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.acc-reading { background:rgba(20,27,58,.72); border:1px solid var(--border); border-radius:14px; padding:12px 14px 14px; }
.acc-reading-head { display:flex; align-items:center; gap:4px 12px; flex-wrap:wrap; }
.acc-date { color:var(--text-muted); font-size:15px; }
.acc-mode { color:var(--gold); font-weight:600; font-size:15px; }
.acc-del { margin-left:auto; width:44px; height:44px; border:0; background:transparent; color:var(--text-muted); cursor:pointer;
           border-radius:8px; display:inline-flex; align-items:center; justify-content:center; }
.acc-del:hover { color:var(--danger); }
.acc-del svg { width:20px; height:20px; }
.acc-q { margin:2px 0 10px; font-family:var(--font-display); font-style:italic; font-size:20px; overflow-wrap:anywhere; }
.acc-q.none { font-style:normal; font-family:var(--font-body); font-size:15px; color:var(--text-muted); }
/* Saved spreads keep the layout of the reading: line (3), Cross (5), 3 × 3 Grid (9) */
.acc-cards { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, 76px); gap:12px 10px;
             align-items:start; justify-content:center; }
.acc-cards.m1 { grid-template-columns:76px; }
.acc-cards.m5 { grid-template-areas:". a ." "l c r" ". b ."; }
.acc-cards.m5 .p1 { grid-area:c; } .acc-cards.m5 .p2 { grid-area:a; } .acc-cards.m5 .p3 { grid-area:r; }
.acc-cards.m5 .p4 { grid-area:l; } .acc-cards.m5 .p5 { grid-area:b; }
.acc-cards.m9 .p5 img { box-shadow:0 0 0 2px var(--gold), 0 4px 12px rgba(0,0,0,.4); }
.acc-card-mini { width:76px; display:grid; justify-items:center; gap:2px; text-align:center; position:relative; }
.acc-card-mini img { width:60px; aspect-ratio:var(--card-ratio); object-fit:cover; object-position:var(--card-crop); border-radius:6px;
                     box-shadow:0 4px 12px rgba(0,0,0,.4); background:var(--surface-2); }
.acc-card-pos { position:absolute; top:-6px; left:-2px; min-width:20px; height:20px; border-radius:10px; background:var(--bg);
                border:1px solid var(--gold-line); color:var(--gold); font-size:12px; line-height:18px; }
.acc-card-name { font-size:13px; line-height:1.25; color:var(--text-muted); overflow-wrap:anywhere; }
@media (max-width:479px) { .acc-reading { padding:12px 10px 14px; } .acc-card-name { font-size:12px; } }
.acc-logout { text-align:center; margin:44px 0 0; }

/* ---------- Premium ---------- */
.mode.locked label { opacity:.72; position:relative; }
.mode.locked label::after { content:""; position:absolute; top:6px; right:6px; width:16px; height:16px;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E2B84F' stroke-width='2' stroke-linecap='round'><rect x='5' y='11' width='14' height='10' rx='2'/><path d='M8 11V7a4 4 0 0 1 8 0v4'/></svg>") center/contain no-repeat; }
.upsell { margin:8px auto 0; max-width:46ch; text-align:center; color:var(--text-muted); font-size:16px; }
.daily-done { text-align:center; max-width:46ch; margin:32px auto 8px; }
.daily-done h1 { font-family:var(--font-display); font-weight:600; font-size:32px; margin:0; }
.closing a { color:var(--gold); }
.premium-page { max-width:720px; }
.prem-compare { display:grid; gap:14px; margin:8px 0 22px; }
@media (min-width:600px) { .prem-compare { grid-template-columns:1fr 1.3fr; } }
.prem-col { background:rgba(20,27,58,.72); border:1px solid var(--border); border-radius:16px; padding:18px 20px; }
.prem-col.gold { border-color:var(--gold-line); }
.prem-col h2 { font-family:var(--font-display); font-weight:600; font-size:26px; margin:0 0 8px; }
.prem-col.gold h2 { color:var(--gold); }
.prem-col ul { margin:0; padding-left:1.2em; }
.prem-col li { margin:0 0 6px; }
.prem-col li::marker { color:var(--gold); }
.prem-form { display:grid; gap:12px; }
.prem-form .acc-field { margin:0; }
.prem-plans { border:0; padding:0; margin:0; display:grid; gap:10px; }
@media (min-width:480px) { .prem-plans { grid-template-columns:1fr 1fr; } }
.prem-plan { position:relative; display:block; cursor:pointer; }
.prem-plan input { position:absolute; opacity:0; }
.prem-plan > span { display:grid; gap:2px; min-height:72px; align-content:center; padding:10px 16px; border:1px solid var(--border-strong); border-radius:12px; }
.prem-plan input:checked + span { border-color:var(--gold); box-shadow:0 0 0 1px var(--gold); }
.prem-plan input:focus-visible + span { outline:3px solid var(--gold-soft); outline-offset:2px; }
.prem-note { text-align:center; margin:0; }
.acc-sub { margin:0; font-family:var(--font-display); font-weight:600; font-size:22px; }
.acc-note { display:grid; gap:4px; margin-top:12px; }
.acc-note label { color:var(--text-muted); font-size:14px; }
.acc-note textarea { width:100%; min-height:60px; padding:8px 12px; border-radius:10px; border:1px solid var(--border-strong); background:var(--surface-2);
                     color:var(--text); font:400 17px var(--font-body); resize:vertical; }
.acc-note .btn-link { justify-self:start; padding:0; }
.acc-note-msg { color:var(--success); font-size:14px; }
.acc-reading-head a.acc-del + .acc-del { margin-left:0; }

/* ---------- One reading on a page (/tirage), ready to print or save as PDF ---------- */
.sheet-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; padding:18px 0; }
.sheet-actions p { margin:0; }
.sheet { max-width:760px; margin:0 auto; padding-bottom:40px; }
.sheet-head { text-align:center; margin-bottom:20px; }
.sheet-brand { font-family:var(--font-brand); letter-spacing:.12em; color:var(--gold); margin:0; font-size:14px; }
.sheet-head h1 { font-family:var(--font-display); font-weight:600; font-size:36px; margin:4px 0 0; }
.sheet-date { color:var(--text-muted); margin:0; font-size:15px; }
.sheet-q { font-family:var(--font-display); font-style:italic; font-size:20px; margin:8px 0 0; overflow-wrap:anywhere; }
.sheet-cards { margin-bottom:26px; }
.sheet-card { break-inside:avoid; margin:0 0 18px; padding-bottom:14px; border-bottom:1px solid var(--gold-line); }
.sheet-card h2 { font-family:var(--font-display); font-weight:600; font-size:24px; margin:0; }
.sheet-card p { margin:2px 0; }
.sheet-note { break-inside:avoid; }
.sheet-note h2 { font-family:var(--font-display); font-weight:600; font-size:22px; margin:0 0 4px; }
@media print {
  @page { margin:14mm; }
  :root { --text:#1f1a14; --text-muted:#6b6457; --gold:#8a6a1e; --gold-soft:#8a6a1e; color-scheme:light; }
  body, body.reading-sheet { background:#fff !important; background-image:none !important; color:#1f1a14; font-size:11pt; }
  .sky, .sheet-actions { display:none !important; }
  .wrap { max-width:none; padding:0; }
  .sheet-date, .acc-card-name, .exp-hint, .exp-kw, .zoom-more dt { color:#6b6457 !important; }
  .sheet-brand, .exp-tag { color:#8a6a1e !important; }
  .acc-card-mini img { box-shadow:0 0 0 .3mm #c9b98f; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .acc-card-pos { background:#fff; color:#8a6a1e; }
  .sheet-card { border-bottom-color:#d9c48a; }
  .acc-card-mini img { background:#14183f; box-shadow:none; }
  .shine { display:none; }
}

/* ---------- Gold shine: the card's picture is the stencil, so only the gold lights up ---------- */
.shine { position:absolute; inset:0; pointer-events:none; z-index:1;
  -webkit-mask:var(--shine-mask) center / 100% 100% no-repeat; mask:var(--shine-mask) center / 100% 100% no-repeat;
  background-image:
    linear-gradient(115deg, transparent 42%, rgba(255,251,235,.0) 44%, rgba(255,252,240,.95) 50%, rgba(255,251,235,0) 56%, transparent 58%),
    linear-gradient(115deg, transparent 30%, rgba(255,214,130,.55) 42%, rgba(255,240,190,.5) 50%, rgba(255,190,150,.5) 58%, transparent 70%);
  background-size:320% 320%; background-repeat:no-repeat; background-position:140% 50%;
  animation:sheen 9s ease-in-out infinite; animation-delay:var(--sd,0s); }
@keyframes sheen { 0% { background-position:140% 50%; } 34%, 100% { background-position:-40% 50%; } }
.tilting .shine { animation:none; background-position:var(--sx,50%) var(--sy,50%); }
.paused .shine { animation-play-state:paused; }
.zoom-card { position:relative; transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition:transform 220ms var(--ease-out); }
.free-note { margin:14px auto 0; text-align:center; color:var(--gold-soft); font-family:var(--font-display); font-size:19px; }
@media (prefers-reduced-motion: reduce) { .shine { display:none; } .zoom-card { transform:none; } }
