/* Oracle of Destiny, new look (Jason, 5 Oct 2026): COSMETIC ONLY. Loaded after style.css; nothing here changes how the
   reading works (the voice, sounds, cards, steps and text are untouched). The site's cosmic glass look: a deep mesh
   background, frosted glass panels, gold accents, and the reading shown as an open book. */
:root {
  --or-ink: #f3ead2; --or-muted: #b9bfd6; --or-gold: #e3c56a; --or-gold-deep: #c8a84b;
  --or-glass: rgba(18, 22, 44, .62); --or-line: rgba(255, 236, 190, .16);
  --or-serif: "Fraunces", Georgia, serif; --or-fell: "IM Fell English SC", Georgia, serif;
}
body {
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--or-ink);
  background:
    radial-gradient(900px 600px at 15% -5%, rgba(122, 63, 209, .35), transparent 60%),
    radial-gradient(800px 600px at 90% 10%, rgba(227, 197, 106, .14), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(36, 78, 160, .28), transparent 60%),
    #0a0e22;
  background-attachment: fixed;
  padding: 0 16px 40px;
}
body::before { opacity: .22; mix-blend-mode: screen; }

/* heading */
#main-heading { margin: 26px 0 6px; font: 800 clamp(26px, 3.4vw, 40px)/1.15 var(--or-serif); color: var(--or-ink); text-shadow: 0 2px 18px rgba(0, 0, 0, .55); letter-spacing: .01em; }
#main-heading::before { content: "Paths of Virtue"; display: block; margin-bottom: 8px; color: var(--or-gold); font: 700 12px/1 "Source Sans 3", sans-serif; letter-spacing: .24em; text-transform: uppercase; }

/* the fortune teller and her words */
#gypsy-container { margin-top: 18px; padding: 14px; border-radius: 24px; background: var(--or-glass); border: 1px solid var(--or-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); max-width: 640px; }
.gypsy-image { width: min(320px, 100%); border-radius: 18px; box-shadow: 0 0 0 1px rgba(227, 197, 106, .35), 0 18px 40px rgba(0, 0, 0, .55), 0 0 60px rgba(122, 63, 209, .25); }
#intro-text { margin: 14px auto 4px; padding: 0 10px; font: italic 400 19px/1.55 Georgia, serif; color: var(--or-ink); text-shadow: none; }

/* choosing and drawing */
#reading-container { max-width: 760px; margin: 22px auto 0; padding: 22px 22px 26px; border-radius: 24px; background: var(--or-glass); border: 1px solid var(--or-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#reading-container h2 { margin: 0 0 6px; font: 800 26px/1.2 var(--or-serif); color: var(--or-ink); }
#reading-container > p { margin: 0 0 12px; color: var(--or-muted); }
#reading-theme { appearance: none; -webkit-appearance: none; min-width: min(320px, 100%); padding: 12px 42px 12px 16px; border-radius: 12px; border: 1px solid rgba(227, 197, 106, .45);
  background: rgba(8, 12, 28, .75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e3c56a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--or-ink); font: 600 16px/1.2 "Source Sans 3", sans-serif; cursor: pointer; }
#reading-theme:focus { outline: 2px solid var(--or-gold); outline-offset: 2px; }
#reading-theme option { background: #12162c; color: var(--or-ink); }
/* option B (Jason): dark glass, a gold edge and gold old-style lettering */
#drawButton { margin: 20px auto 30px; padding: 13px 28px; border: 1px solid rgba(227, 197, 106, .55); border-radius: 12px; background: rgba(10, 14, 32, .6); color: var(--or-gold); font: 400 19px/1 var(--or-fell); letter-spacing: .04em; text-shadow: none; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 236, 190, .08); transition: border-color .2s ease, background .2s ease, color .2s ease; }
#drawButton:hover { border-color: var(--or-gold); background: rgba(227, 197, 106, .1); color: #f3dd95; transform: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .35), 0 0 18px rgba(227, 197, 106, .18); }

/* the three cards */
#tarot-cards { gap: clamp(12px, 3vw, 34px); margin-top: 18px; padding-top: 14px; }   /* room for a card that lifts when pointed at */
.tarot-card-container { perspective: 900px; }
.tarot-card { border-radius: 12px; box-shadow: 0 0 0 1px rgba(227, 197, 106, .3), 0 16px 34px rgba(0, 0, 0, .6); }
.tarot-card:hover { box-shadow: 0 0 0 1px rgba(227, 197, 106, .6), 0 20px 40px rgba(0, 0, 0, .6), 0 0 30px rgba(227, 197, 106, .25); }

/* the reading: an open book, with a faint star chart on its pages (constellations, a zodiac ring, a moon) */
#tarot-reading:empty { display: none; }
#tarot-reading { max-width: 760px; margin: 26px auto 22px; padding: 0; background: none; box-shadow: none; color: var(--or-gold); font: italic 400 18px/1.6 Georgia, serif; text-align: center; }
#tarot-reading.is-book { position: relative; max-width: 900px; margin: 30px auto 26px; padding: 40px 54px 44px; border-radius: 10px 10px 14px 14px;
  background:
    linear-gradient(90deg, transparent calc(50% - 22px), rgba(90, 60, 23, .2) calc(50% - 6px), rgba(60, 38, 12, .38) 50%, rgba(90, 60, 23, .2) calc(50% + 6px), transparent calc(50% + 22px)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%232f5aa8' stroke-opacity='.24' stroke-width='1'%3E%3Ccircle cx='210' cy='210' r='150'/%3E%3Ccircle cx='210' cy='210' r='118'/%3E%3Cpath d='M210 60v300M60 210h300M104 104l212 212M316 104L104 316'/%3E%3Cpath d='M40 60l38 22 30-14 26 30M330 340l26-18 28 10 20-26M300 40l20 30 34 6M60 360l24-30 36 8'/%3E%3C/g%3E%3Cg fill='%233a64b8' fill-opacity='.3'%3E%3Ccircle cx='40' cy='60' r='2.4'/%3E%3Ccircle cx='78' cy='82' r='1.8'/%3E%3Ccircle cx='108' cy='68' r='2.2'/%3E%3Ccircle cx='134' cy='98' r='1.6'/%3E%3Ccircle cx='330' cy='340' r='2'/%3E%3Ccircle cx='356' cy='322' r='2.4'/%3E%3Ccircle cx='384' cy='332' r='1.6'/%3E%3Ccircle cx='404' cy='306' r='2'/%3E%3Ccircle cx='300' cy='40' r='1.8'/%3E%3Ccircle cx='320' cy='70' r='2.2'/%3E%3Ccircle cx='354' cy='76' r='1.6'/%3E%3Ccircle cx='60' cy='360' r='2'/%3E%3Ccircle cx='84' cy='330' r='1.6'/%3E%3Ccircle cx='120' cy='338' r='2.2'/%3E%3Ccircle cx='210' cy='60' r='5'/%3E%3Ccircle cx='360' cy='210' r='5'/%3E%3Ccircle cx='210' cy='360' r='5'/%3E%3Ccircle cx='60' cy='210' r='5'/%3E%3C/g%3E%3Cg fill='none' stroke='%23b0802a' stroke-opacity='.3'%3E%3Ccircle cx='210' cy='210' r='14'/%3E%3Cpath d='M203 199a14 14 0 1 0 0 22a10 10 0 1 1 0-22'/%3E%3C/g%3E%3C/svg%3E") center 20px / 420px 420px repeat,
    radial-gradient(70% 60% at 0% 0%, rgba(150, 110, 200, .16), transparent 70%), radial-gradient(70% 60% at 100% 100%, rgba(60, 140, 150, .14), transparent 70%), radial-gradient(120% 90% at 50% 40%, #f7ecd0, #ecd8b0 70%, #e0c697);
  color: #2b1d0e; font: 400 18px/1.7 Georgia, "Times New Roman", serif; font-style: normal; text-align: left;
  box-shadow: 0 0 0 1px rgba(90, 60, 23, .35), 0 26px 60px rgba(0, 0, 0, .55), inset 0 0 40px rgba(120, 80, 30, .18);
  column-count: 2; column-gap: 88px; }
#tarot-reading.is-book p { margin: 0 0 1em; text-align: left !important; }
#tarot-reading.is-book p:first-of-type::first-letter { float: left; margin: 6px 8px 0 0; color: #6b1d12; font: 700 54px/.8 var(--or-fell); }
@media (max-width: 760px) {
  #tarot-reading.is-book { column-count: 1; padding: 30px 24px 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%232f5aa8' stroke-opacity='.24' stroke-width='1'%3E%3Ccircle cx='210' cy='210' r='150'/%3E%3Ccircle cx='210' cy='210' r='118'/%3E%3Cpath d='M210 60v300M60 210h300M104 104l212 212M316 104L104 316'/%3E%3Cpath d='M40 60l38 22 30-14 26 30M330 340l26-18 28 10 20-26M300 40l20 30 34 6M60 360l24-30 36 8'/%3E%3C/g%3E%3Cg fill='%233a64b8' fill-opacity='.3'%3E%3Ccircle cx='40' cy='60' r='2.4'/%3E%3Ccircle cx='78' cy='82' r='1.8'/%3E%3Ccircle cx='108' cy='68' r='2.2'/%3E%3Ccircle cx='134' cy='98' r='1.6'/%3E%3Ccircle cx='330' cy='340' r='2'/%3E%3Ccircle cx='356' cy='322' r='2.4'/%3E%3Ccircle cx='384' cy='332' r='1.6'/%3E%3Ccircle cx='404' cy='306' r='2'/%3E%3Ccircle cx='300' cy='40' r='1.8'/%3E%3Ccircle cx='320' cy='70' r='2.2'/%3E%3Ccircle cx='354' cy='76' r='1.6'/%3E%3Ccircle cx='60' cy='360' r='2'/%3E%3Ccircle cx='84' cy='330' r='1.6'/%3E%3Ccircle cx='120' cy='338' r='2.2'/%3E%3Ccircle cx='210' cy='60' r='5'/%3E%3Ccircle cx='360' cy='210' r='5'/%3E%3Ccircle cx='210' cy='360' r='5'/%3E%3Ccircle cx='60' cy='210' r='5'/%3E%3C/g%3E%3Cg fill='none' stroke='%23b0802a' stroke-opacity='.3'%3E%3Ccircle cx='210' cy='210' r='14'/%3E%3Cpath d='M203 199a14 14 0 1 0 0 22a10 10 0 1 1 0-22'/%3E%3C/g%3E%3C/svg%3E") center 10px / 360px 360px repeat, radial-gradient(70% 60% at 0% 0%, rgba(150, 110, 200, .16), transparent 70%), radial-gradient(70% 60% at 100% 100%, rgba(60, 140, 150, .14), transparent 70%), radial-gradient(120% 90% at 50% 40%, #f7ecd0, #ecd8b0 70%, #e0c697); }
}

/* sharing: quiet glass buttons with a gold edge (no pills, Jason), in the page's own colours */
#shareContainer { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 10px !important; }
#shareContainer[style*="none"] { display: none !important; }
#shareContainer button { padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(227, 197, 106, .4); background: rgba(10, 14, 32, .55); color: var(--or-ink);
  font: 600 14px/1 "Source Sans 3", sans-serif; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease; }
#shareContainer button:hover { border-color: var(--or-gold); color: var(--or-gold); background: rgba(227, 197, 106, .08); }

/* the shop teaser is off for now (Jason, 5 Oct 2026); when it returns it goes on the game page */
#promo-teaser { display: none !important; }

/* the site's own footer has the copyright; only the reminder stays, quietly */
#site-footer { background: none; border: 0; padding: 20px 0 0; }
#site-footer p { color: var(--or-muted); font: italic 400 14px/1.5 Georgia, serif; text-transform: none; }

/* the wagon at the door */
#entry-overlay { background: radial-gradient(900px 600px at 50% 30%, rgba(122, 63, 209, .35), transparent 60%), rgba(6, 8, 20, .97); font-size: 18px; }
.overlay-content { padding: 18px 18px 22px; border-radius: 24px; background: var(--or-glass); border: 1px solid var(--or-line); box-shadow: 0 30px 70px rgba(0, 0, 0, .55); max-width: 480px; }
.wagon-image { border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
#entry-overlay p { font: italic 400 18px/1.55 Georgia, serif; color: var(--or-ink); }
#entry-overlay button { padding: 12px 26px; border: 1px solid rgba(227, 197, 106, .55); border-radius: 12px; background: rgba(10, 14, 32, .6); color: var(--or-gold); font: 400 18px/1 var(--or-fell); letter-spacing: .04em; text-shadow: none; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 236, 190, .08); transition: border-color .2s ease, background .2s ease, color .2s ease; }

.shop-button:hover, #entry-overlay button:hover { border-color: var(--or-gold); background: rgba(227, 197, 106, .1); color: #f3dd95; transform: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .35), 0 0 18px rgba(227, 197, 106, .18); }

/* twinkling gold and blue stars in the book's margins, away from the words (Jason, 5 Oct 2026) */
#tarot-reading.is-book::before, #tarot-reading.is-book::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
#tarot-reading.is-book::before {
  background:
    radial-gradient(circle at 4% 6%, rgba(240, 196, 70, .95) 0 2.2px, transparent 5.2px),
    radial-gradient(circle at 96% 4%, rgba(240, 196, 70, .9) 0 2.0px, transparent 4.8px),
    radial-gradient(circle at 2.6% 48%, rgba(240, 196, 70, .85) 0 1.8px, transparent 4.6px),
    radial-gradient(circle at 97.4% 62%, rgba(240, 196, 70, .9) 0 2.2px, transparent 5.2px),
    radial-gradient(circle at 48% 2.2%, rgba(240, 196, 70, .8) 0 1.7px, transparent 4.4px),
    radial-gradient(circle at 52.6% 97.6%, rgba(240, 196, 70, .85) 0 2.0px, transparent 4.8px),
    radial-gradient(circle at 20% 97.5%, rgba(240, 196, 70, .8) 0 1.7px, transparent 4.4px),
    radial-gradient(circle at 80% 2.4%, rgba(240, 196, 70, .85) 0 1.8px, transparent 4.6px);
  animation: or-twinkle 3.6s ease-in-out infinite alternate;
}
#tarot-reading.is-book::after {
  background:
    radial-gradient(circle at 3% 22%, rgba(70, 120, 220, .9) 0 2.1px, transparent 5.0px),
    radial-gradient(circle at 97% 30%, rgba(70, 120, 220, .85) 0 1.8px, transparent 4.6px),
    radial-gradient(circle at 2.2% 80%, rgba(70, 120, 220, .9) 0 2.0px, transparent 4.8px),
    radial-gradient(circle at 96.8% 88%, rgba(70, 120, 220, .85) 0 2.2px, transparent 5.2px),
    radial-gradient(circle at 30% 2.6%, rgba(70, 120, 220, .8) 0 1.7px, transparent 4.4px),
    radial-gradient(circle at 66% 97.2%, rgba(70, 120, 220, .85) 0 1.8px, transparent 4.6px),
    radial-gradient(circle at 47.2% 40%, rgba(70, 120, 220, .6) 0 1.5px, transparent 4.2px),
    radial-gradient(circle at 52.8% 70%, rgba(240, 196, 70, .6) 0 1.5px, transparent 4.2px);
  animation: or-twinkle 4.8s ease-in-out 1.2s infinite alternate-reverse;
}
@keyframes or-twinkle { 0% { opacity: .25; } 45% { opacity: 1; } 70% { opacity: .55; } 100% { opacity: .95; } }
@media (max-width: 760px) { #tarot-reading.is-book::after { background-size: 0 0; } }
@media (prefers-reduced-motion: reduce) { #tarot-reading.is-book::before, #tarot-reading.is-book::after { animation: none; } }
