/* Reset and base styles */
/* ---- Themes: palette + art, switched by <html data-theme="..."> ---- */
:root {
    --accent: #e8c872;
    --accent-hi: #fff2b8;
    --btn-top: #ffe38a;
    --btn-mid: #e0a83a;
    --btn-bot: #b9791e;
    --panel-rgb: 12, 14, 30;
    --bg-url: url('../assets/art/themes/waite/bg.jpg');
    --cloth-url: url('../assets/art/themes/waite/cloth.jpg');
    --banner-url: url('../assets/art/site/banner-goddess.jpg');
}

:root[data-theme="dragons"] {
    --accent: #f0a64a; --accent-hi: #ffd9a0;
    --btn-top: #ffc46e; --btn-mid: #e0853a; --btn-bot: #a8481a;
    --panel-rgb: 24, 9, 7;
    --bg-url: url('../assets/art/themes/dragons/bg.jpg');
    --cloth-url: url('../assets/art/themes/dragons/cloth.jpg');
}

:root[data-theme="fairy"] {
    --accent: #f6b7e0; --accent-hi: #ffe3f5;
    --btn-top: #ffd0ef; --btn-mid: #e898c8; --btn-bot: #b0649a;
    --panel-rgb: 38, 20, 62;
    --bg-url: url('../assets/art/themes/fairy/bg.jpg');
    --cloth-url: url('../assets/art/themes/fairy/cloth.jpg');
}

:root[data-theme="herbal"] {
    --accent: #cfe38e; --accent-hi: #eef8c8;
    --btn-top: #dcee9a; --btn-mid: #9cc060; --btn-bot: #5f8a34;
    --panel-rgb: 18, 30, 16;
    --bg-url: url('../assets/art/themes/herbal/bg.jpg');
    --cloth-url: url('../assets/art/themes/herbal/cloth.jpg');
}

:root[data-theme="lunar"] {
    --accent: #cfe0ff; --accent-hi: #f0f6ff;
    --btn-top: #e3eeff; --btn-mid: #9db8e8; --btn-bot: #5f7cb8;
    --panel-rgb: 8, 14, 34;
    --bg-url: url('../assets/art/themes/lunar/bg.jpg');
    --cloth-url: url('../assets/art/themes/lunar/cloth.jpg');
}

:root[data-theme="medieval"] {
    --accent: #e8b84a; --accent-hi: #ffe39a;
    --btn-top: #ffd070; --btn-mid: #d09628; --btn-bot: #8e5a14;
    --panel-rgb: 40, 14, 12;
    --bg-url: url('../assets/art/themes/medieval/bg.jpg');
    --cloth-url: url('../assets/art/themes/medieval/cloth.jpg');
}

:root[data-theme="eye"] {
    --accent: #f6d36a; --accent-hi: #fff0b0;
    --btn-top: #ffe27e; --btn-mid: #dcae2e; --btn-bot: #a07414;
    --panel-rgb: 10, 8, 4;
    --bg-url: url('../assets/art/themes/eye/bg.jpg');
    --cloth-url: url('../assets/art/themes/eye/cloth.jpg');
}

:root[data-theme="flowers"] {
    --accent: #ffb3c8; --accent-hi: #ffe0ea;
    --btn-top: #ffc7d8; --btn-mid: #e87898; --btn-bot: #b04868;
    --panel-rgb: 52, 18, 32;
    --bg-url: url('../assets/art/themes/flowers/bg.jpg');
    --cloth-url: url('../assets/art/themes/flowers/cloth.jpg');
}

:root[data-theme="poison"] {
    --accent: #cf8be0; --accent-hi: #f0d0fa;
    --btn-top: #e0a8ee; --btn-mid: #a860c0; --btn-bot: #6e3a88;
    --panel-rgb: 14, 10, 22;
    --bg-url: url('../assets/art/themes/poison/bg.jpg');
    --cloth-url: url('../assets/art/themes/poison/cloth.jpg');
}

:root[data-theme="vampires"] {
    --accent: #ee5a6e; --accent-hi: #ffb0ba;
    --btn-top: #ff8090; --btn-mid: #c8283e; --btn-bot: #820f22;
    --panel-rgb: 22, 6, 10;
    --bg-url: url('../assets/art/themes/vampires/bg.jpg');
    --cloth-url: url('../assets/art/themes/vampires/cloth.jpg');
}

:root[data-theme="roman"] {
    --accent: #e6bf62; --accent-hi: #fff0c2;
    --btn-top: #f4d27e; --btn-mid: #c99434; --btn-bot: #7e4f1a;
    --panel-rgb: 26, 12, 28;
    --bg-url: url('../assets/art/themes/roman/bg.jpg');
    --cloth-url: url('../assets/art/themes/roman/cloth.jpg');
}

:root[data-theme="thoth"] {
    --accent: #e7b84f; --accent-hi: #fbe6a6;
    --btn-top: #f5d27a; --btn-mid: #c9952f; --btn-bot: #7c5418;
    --panel-rgb: 8, 16, 34;
    --bg-url: url('../assets/art/themes/thoth/bg.jpg');
    --cloth-url: url('../assets/art/themes/thoth/cloth.jpg');
}

:root[data-theme="christianity"] {
    --accent: #e8c15a; --accent-hi: #fff0c4;
    --btn-top: #f0d27e; --btn-mid: #c49a3a; --btn-bot: #8c1e2e;
    --panel-rgb: 14, 10, 34;
    --bg-url: url('../assets/art/themes/christianity/bg.jpg');
    --cloth-url: url('../assets/art/themes/christianity/cloth.jpg');
}

:root[data-theme="islam"] {
    --accent: #e2bd5c; --accent-hi: #fff1c6;
    --btn-top: #f2d684; --btn-mid: #2fa3a3; --btn-bot: #14566a;
    --panel-rgb: 6, 26, 30;
    --bg-url: url('../assets/art/themes/islam/bg.jpg');
    --cloth-url: url('../assets/art/themes/islam/cloth.jpg');
}

:root[data-theme="judaism"] {
    --accent: #dcb85a; --accent-hi: #fbeec6;
    --btn-top: #ecd283; --btn-mid: #b8902e; --btn-bot: #8a2a34;
    --panel-rgb: 10, 16, 40;
    --bg-url: url('../assets/art/themes/judaism/bg.jpg');
    --cloth-url: url('../assets/art/themes/judaism/cloth.jpg');
}

:root[data-theme="hinduism"] {
    --accent: #f0a92a; --accent-hi: #ffe0a6;
    --btn-top: #ffc65e; --btn-mid: #e07a1e; --btn-bot: #9c2a12;
    --panel-rgb: 30, 10, 4;
    --bg-url: url('../assets/art/themes/hinduism/bg.jpg');
    --cloth-url: url('../assets/art/themes/hinduism/cloth.jpg');
}

:root[data-theme="buddhism"] {
    --accent: #e2b14a; --accent-hi: #fbe6b4;
    --btn-top: #f0cc74; --btn-mid: #c0862e; --btn-bot: #6e1c26;
    --panel-rgb: 24, 8, 10;
    --bg-url: url('../assets/art/themes/buddhism/bg.jpg');
    --cloth-url: url('../assets/art/themes/buddhism/cloth.jpg');
}

:root[data-theme="sikhism"] {
    --accent: #f09a2a; --accent-hi: #ffdca0;
    --btn-top: #ffbd5c; --btn-mid: #e08420; --btn-bot: #1c3a7a;
    --panel-rgb: 8, 14, 34;
    --bg-url: url('../assets/art/themes/sikhism/bg.jpg');
    --cloth-url: url('../assets/art/themes/sikhism/cloth.jpg');
}

:root[data-theme="taoism"] {
    --accent: #cfb46a; --accent-hi: #f2e6bc;
    --btn-top: #e0c884; --btn-mid: #5a8a5a; --btn-bot: #8a2e1e;
    --panel-rgb: 8, 20, 14;
    --bg-url: url('../assets/art/themes/taoism/bg.jpg');
    --cloth-url: url('../assets/art/themes/taoism/cloth.jpg');
}

:root[data-theme="shinto"] {
    --accent: #d9b25a; --accent-hi: #fbe8b8;
    --btn-top: #f08a6a; --btn-mid: #d2422c; --btn-bot: #8a1e14;
    --panel-rgb: 12, 14, 30;
    --bg-url: url('../assets/art/themes/shinto/bg.jpg');
    --cloth-url: url('../assets/art/themes/shinto/cloth.jpg');
}

:root[data-theme="crowley"] {
    --accent: #e3bd5c; --accent-hi: #fff0c4;
    --btn-top: #f0d27e; --btn-mid: #b98a2e; --btn-bot: #6e3f8f;
    --panel-rgb: 18, 9, 30;
    --bg-url: url('../assets/art/themes/crowley/bg.jpg');
    --cloth-url: url('../assets/art/themes/crowley/cloth.jpg');
}

:root[data-theme="astrology"] {
    --accent: #f1d27a; --accent-hi: #fff0b8;
    --btn-top: #ffe28c; --btn-mid: #d8b04a; --btn-bot: #9a7420;
    --panel-rgb: 8, 10, 30;
    --bg-url: url('../assets/art/themes/astrology/bg.jpg');
    --cloth-url: url('../assets/art/themes/astrology/cloth.jpg');
}

/* Cross-fade the pinned background when the theme changes. */
html.theme-switching body::before { animation: themeFade 0.6s ease; }
@keyframes themeFade { 0% { opacity: 0.2; } 100% { opacity: 1; } }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #000;
    color-scheme: dark;
    overscroll-behavior: none;
    min-height: 100%;
}

body {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
    background: transparent;
    color: #ece6d6;
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    position: relative;
}

/* Pinned to the screen (works on phones, where background-attachment: fixed does not). */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(var(--panel-rgb), 0.35), rgba(var(--panel-rgb), 0.7)),
        var(--bg-url) center / cover no-repeat,
        #000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(var(--panel-rgb), 0.72);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.6), inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent), inset 0 0 0 7px rgba(var(--panel-rgb), 0.72), inset 0 0 0 8px color-mix(in srgb, var(--accent) 14%, transparent);
    backdrop-filter: blur(8px);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

header {
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: -10px -10px 36px;
    padding: 294px 20px 26px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.82) 100%);
}

/* The banner: a serene goddess holding the all-seeing eye (Spark art), above the title.
   Positioned near the top so her face and crown stay in view; the bottom fades into the black header. */
header::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 280px;
    background:
        linear-gradient(180deg, transparent 62%, #000 100%),
        var(--banner-url) center 8% / cover no-repeat,
        #000;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}

header > * { position: relative; }

header p {
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #e8dcae;
}

h1 {
    font-size: 2.6rem;
    font-weight: normal;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 10px;
    text-shadow: 0 2px 18px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 2px #000;
}

h2 {
    color: var(--accent);
    margin: 30px 0 20px 0;
    font-size: 1.8rem;
    font-weight: normal;
    letter-spacing: 0.08em;
    text-align: center;
}

h2::before,
h2::after {
    content: '\2726';
    margin: 0 0.6em;
    font-size: 0.6em;
    color: #c8962c;
    vertical-align: middle;
}

p.intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #a9a9a9;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input[type="text"], select {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(var(--panel-rgb), 0.78);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 30%, transparent);
}

button {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--btn-top) 0%, var(--btn-mid) 55%, var(--btn-bot) 100%);
    color: #2a1a06;
    font-family: inherit;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.5);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px color-mix(in srgb, var(--accent) 40%, transparent);
}

#cards-container {
    margin: 24px 0 10px;
}

.cloth {
    background:
        radial-gradient(circle at 50% 45%, rgba(120, 42, 48, 0.25), rgba(18, 10, 14, 0.1) 46%, transparent 72%),
        linear-gradient(rgba(var(--panel-rgb), 0.35), rgba(var(--panel-rgb), 0.55)),
        var(--cloth-url) center / cover no-repeat,
        linear-gradient(160deg, #3a1a20 0%, #241016 55%, #160c10 100%);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    border-radius: 18px;
    padding: 22px 12px 36px;
    overflow: visible;
}

.spread-title {
    text-align: center;
    color: var(--accent);
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.spread-hint {
    text-align: center;
    color: #c8c0b0;
    margin-bottom: 18px;
}

.board {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 18px;
    margin: 0 auto;
}

.place {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--card-w, 168px);
}

.place-name {
    margin-top: 8px;
    color: var(--accent);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-align: center;
}

.place-card {
    min-height: 2.4em;
    margin-top: 2px;
    color: #e6e6e6;
    font-size: 0.86rem;
    text-align: center;
}

.flip-card {
    position: relative;
    width: var(--card-w, 168px);
    height: calc(var(--card-w, 168px) * 520 / 300);
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.flip-card:hover {
    transform: translateY(-6px);
}

.flip-card.is-locked {
    filter: brightness(0.62);
    cursor: not-allowed;
}

.flip-card.is-locked:hover {
    transform: none;
}

.flip-card.is-next {
    box-shadow: 0 0 0 2px var(--accent), 0 0 16px color-mix(in srgb, var(--accent) 55%, transparent);
    cursor: pointer;
}

.flip-card.is-nudged {
    animation: nudge 0.35s ease;
}

@keyframes nudge {
    50% { transform: translateY(-8px); }
}

.flip-inner,
.flip-face {
    position: absolute;
    inset: 0;
    border-radius: 8px;
}

.flip-inner {
    transition: transform 0.55s ease;
}

.flip-face {
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

.flip-face.front {
    opacity: 0;
    background: #f4efe4;
}

.flip-card.is-up .flip-face.back {
    opacity: 0;
}

.flip-card.is-up .flip-face.front {
    opacity: 1;
}

.flip-face svg,
.flip-face img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cloth { container-type: inline-size; }

.spread-single { --card-w: min(210px, 62cqw); }
.spread-row { --card-w: min(180px, calc((100cqw - 56px) / 3)); gap: clamp(8px, 3cqw, 18px); }
.spread-cross { --card-w: min(128px, calc((100cqw - 56px) / 3)); }
.spread-arc { --card-w: min(112px, calc((100cqw - 40px) / 7)); align-items: flex-start; gap: 6px; padding: 8px 4px 42px; }

.spread-arc .place:nth-child(1) { transform: translateY(36px) rotate(-12deg); }
.spread-arc .place:nth-child(2) { transform: translateY(16px) rotate(-6deg); }
.spread-arc .place:nth-child(3) { transform: translateY(4px) rotate(-2deg); }
.spread-arc .place:nth-child(4) { transform: none; }
.spread-arc .place:nth-child(5) { transform: translateY(4px) rotate(2deg); }
.spread-arc .place:nth-child(6) { transform: translateY(16px) rotate(6deg); }
.spread-arc .place:nth-child(7) { transform: translateY(36px) rotate(12deg); }

.spread-cross {
    display: grid;
    justify-content: center;
    align-items: center;
    gap: 14px 12px;
    margin: 0 auto;
    grid-template-columns: var(--card-w) var(--card-w) var(--card-w);
    grid-template-areas:
        ". above ."
        "left center right"
        ". below .";
}

/* Celtic Cross: a cross, and the staff beside it (below it on a phone) */
.spread-celtic {
    --card-w: min(128px, calc((100cqw - 90px) / 6));
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 28px;
}
.celtic-cross {
    display: grid;
    grid-template-columns: repeat(3, var(--card-w));
    grid-template-areas:
        ". crown ."
        "past stack ahead"
        ". root .";
    gap: 14px 12px;
    justify-items: center;
    align-items: center;
}
.celtic-staff { display: flex; flex-direction: column-reverse; gap: 14px; }

@container (max-width: 560px) {
    .spread-arc { flex-wrap: wrap; justify-content: center; gap: 18px 8px; --card-w: calc((100cqw - 56px) / 4); padding-bottom: 20px; }
    .spread-arc .place { transform: none !important; }
    .spread-celtic { flex-direction: column; gap: 22px; --card-w: min(112px, calc((100cqw - 56px) / 3)); }
    .celtic-staff { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 14px 10px; --card-w: min(92px, calc((100cqw - 70px) / 4)); }
}

/* Grid spreads (Pentagram, Tree of Life, Thoth...): the rows come from js/spreads.js; cards keep the star/tree/wheel shape. */
.spread-grid {
    --gap: 10px;
    --card-w: min(116px, calc((100cqw - 24px - (var(--cols) - 1) * var(--gap)) / var(--cols)));
    display: grid;
    grid-template-columns: repeat(var(--cols), var(--card-w));
    justify-content: center;
    justify-items: center;
    align-items: center;
    gap: 8px var(--gap);
    margin: 0 auto;
}
.spread-grid .place-name { font-size: 0.8rem; line-height: 1.2; }
.spread-grid .place-card { font-size: 0.78rem; }
/* on a phone: tighter gaps keep the shape (Pentagram, Zodiac...); the widest (Thoth) goes four to a row in reading order */
@container (max-width: 560px) {
    .spread-grid { --gap: 6px; }
    .spread-grid.grid-wide { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 8px; --card-w: calc((100cqw - 48px) / 4); }
}

.slot-above { grid-area: above; }
.slot-left { grid-area: left; }
.slot-center { grid-area: center; }
.slot-right { grid-area: right; }
.slot-below { grid-area: below; }
.slot-crown { grid-area: crown; }
.slot-past { grid-area: past; }
.slot-ahead { grid-area: ahead; }
.slot-root { grid-area: root; }
.slot-s7 { grid-area: s7; }
.slot-s8 { grid-area: s8; }
.slot-s9 { grid-area: s9; }
.slot-s10 { grid-area: s10; }

.cross-stack {
    grid-area: stack;
    position: relative;
    width: var(--card-w);
    height: calc(var(--card-w) * 520 / 300);
}

.cross-stack .place {
    position: absolute;
    inset: 0;
    width: var(--card-w);
    pointer-events: none;
}

.cross-stack .flip-card {
    pointer-events: auto;
}

.cross-stack .slot-cross {
    transform: rotate(90deg);
    z-index: 2;
}

.cross-stack.await-cover .slot-center {
    z-index: 3;
}

.cross-stack.await-cover .slot-cross {
    transform: translate(26px, 36px) rotate(8deg);
    z-index: 1;
}

.cross-stack .place-name,
.cross-stack .place-card {
    display: none;
}

#reading-result[hidden] {
    display: none;
}

.card {
    width: 230px;
    height: auto;
    background: linear-gradient(145deg, #2a2118, #16110c);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 12px 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px color-mix(in srgb, var(--accent) 30%, transparent);
}

.card-title {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: bold;
}

.card-image {
    width: 100%;
    height: auto;
    background: #f4efe4;
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}

.card-image img,
.card-image svg {
    width: 100%;
    height: auto;
    display: block;
}

.style-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.style-choice {
    width: 92px;
    margin: 0;
    padding: 6px 6px 8px;
    background: rgba(var(--panel-rgb), 0.85);
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
}

.style-choice svg,
.style-choice img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    object-position: top;
    display: block;
    margin-bottom: 4px;
    background: #111;
}

.style-choice.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent);
}

.card-meaning {
    font-size: 0.9rem;
    color: #c0c0c0;
    line-height: 1.4;
}

.card-popup[hidden] {
    display: none !important;
}

.card-popup {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 18px;
}

.card-popup-scrim {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 16, 0.72);
}

.card-popup-panel {
    position: relative;
    width: min(680px, 100%);
    max-height: min(86vh, 780px);
    overflow: auto;
    background: linear-gradient(rgba(var(--panel-rgb), 0.94), rgba(var(--panel-rgb), 0.97)), var(--bg-url) center / cover;
    border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    border-radius: 14px;
    padding: 22px 22px 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.card-popup-body {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    align-items: start;
}

.card-popup-face {
    background: #f4efe4;
    border-radius: 8px;
    overflow: hidden;
}

.card-popup-face img,
.card-popup-face svg {
    width: 100%;
    height: auto;
    display: block;
}

.card-popup-kicker {
    color: #c8b88a;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    margin: 0 36px 6px 0;
}

.card-popup-panel h3 {
    color: var(--accent);
    font-size: 1.7rem;
    margin: 0 36px 8px 0;
    text-align: left;
}

.card-popup-label {
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 12px 0 2px;
}

.card-popup-seat,
.card-popup-meaning,
.card-popup-board {
    color: #e8e2d6;
    font-size: 1rem;
    line-height: 1.45;
}

.card-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    padding: 6px 10px;
    background: transparent;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    font-size: 0.85rem;
}

.card-popup-close:hover {
    transform: none;
    box-shadow: none;
}

.card-popup-next {
    margin-top: 16px;
}

@media (max-width: 640px) {
    .card-popup-body {
        grid-template-columns: 1fr;
    }

    .card-popup-face {
        max-width: 180px;
    }
}

#reading-result {
    margin: 30px 0;
    padding: 20px;
    background: rgba(var(--panel-rgb), 0.78);
    border-radius: 10px;
    min-height: 100px;
    text-align: center;
    font-size: 1.1rem;
    border-left: 4px solid var(--accent);
}

.question {
    margin-bottom: 20px;
}

.question label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a9a9a9;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card {
        width: 160px;
    }
}
/* The Library */
.browse-row { text-align: center; margin-top: 18px; }

.ghost-btn {
    background: transparent;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
    box-shadow: none;
}

.ghost-btn:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

body.modal-open { overflow: hidden; }

.library[hidden],
.library-zoom[hidden] { display: none !important; }

.library {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 14px;
}

.library-panel {
    position: relative;
    width: min(1180px, 100%);
    max-height: 94vh;
    overflow-y: auto;
    padding: 22px 26px 34px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    background:
        linear-gradient(rgba(var(--panel-rgb), 0.9), rgba(var(--panel-rgb), 0.96)),
        var(--bg-url) center / cover;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}

.library-title { margin-top: 4px; }
.library-sub { margin-bottom: 18px; }

.shelf { margin-bottom: 30px; }

.shelf-label {
    color: var(--accent);
    font-weight: normal;
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 8px 6px;
}

.shelf-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    overflow-x: auto;
    padding: 10px 8px 0;
    min-height: 210px;
    scrollbar-width: thin;
    scrollbar-color: #8a5a22 transparent;
}

.shelf-board {
    height: 16px;
    border-radius: 3px;
    background: linear-gradient(180deg, #8a5a22 0%, #5c3a14 55%, #2e1b09 100%);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 220, 160, 0.35);
}

.shelf-card {
    flex: 0 0 auto;
    width: 112px;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: #ece6d6;
    text-transform: none;
    letter-spacing: 0;
    font-weight: normal;
    transition: transform 0.2s ease;
}

.shelf-card:hover,
.shelf-card:focus-visible {
    transform: translateY(-10px);
    box-shadow: none;
}

.shelf-card-face {
    display: block;
    aspect-ratio: 300 / 520;
    border-radius: 5px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.65);
}

.shelf-card-face svg,
.shelf-card-face img { width: 100%; height: 100%; display: block; object-fit: cover; }

.shelf-card-name {
    display: block;
    margin-top: 6px;
    font-size: 0.7rem;
    line-height: 1.2;
    color: #e8dcae;
}

.library-zoom {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 14px;
}

.library-zoom-scrim {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 10, 0.8);
}

.library-zoom-panel {
    position: relative;
    width: min(860px, 100%);
    max-height: 92vh;
    overflow: auto;
    padding: 26px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
    background: linear-gradient(rgba(var(--panel-rgb), 0.95), rgba(var(--panel-rgb), 0.98)), var(--bg-url) center / cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.library-zoom-body {
    display: grid;
    grid-template-columns: minmax(200px, 330px) 1fr;
    gap: 28px;
    align-items: start;
}

.library-zoom-face {
    aspect-ratio: 300 / 520;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.7), 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}

.library-zoom-face svg,
.library-zoom-face img { width: 100%; height: 100%; display: block; object-fit: cover; }

.library-zoom-copy h3 {
    color: var(--accent);
    font-size: 2rem;
    font-weight: normal;
    margin: 0 0 12px;
    text-align: left;
}

.library-zoom-copy p:not(.card-popup-kicker):not(.card-popup-label) {
    font-size: 1.1rem;
    line-height: 1.5;
}

.library-zoom-nav { margin-top: 22px; display: flex; gap: 10px; }

@media (max-width: 640px) {
    .library-zoom-body { grid-template-columns: 1fr; }
    .library-zoom-face { max-width: 230px; }
    .shelf-card { width: 92px; }
}

/* Library: drag friendliness */
.shelf-row { cursor: grab; scroll-behavior: auto; user-select: none; -webkit-user-select: none; overscroll-behavior-x: contain; }
.shelf-row.is-dragging { cursor: grabbing; }
.shelf-row.is-dragging .shelf-card { pointer-events: none; transform: none; }
.shelf-card { cursor: inherit; -webkit-user-drag: none; }
.shelf-card-face img, .shelf-card-face svg { pointer-events: none; -webkit-user-drag: none; }
.shelf-row::-webkit-scrollbar { height: 8px; }
.shelf-row::-webkit-scrollbar-thumb { background: #8a5a22; border-radius: 4px; }
.library-zoom-face { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: transform 0.2s ease; }
.library-zoom-face:active { cursor: grabbing; transition: none; }
.library-zoom-face img, .library-zoom-face svg { pointer-events: none; -webkit-user-drag: none; }
.library-zoom-hint { margin-top: 14px; font-size: 0.8rem; color: #b8aa80; }

/* Turn-order guidance */
.place { position: relative; }

.seat-no {
    position: absolute;
    top: -8px;
    left: -8px;
    z-index: 6;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #d8cfae;
    background: #2a2236;
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    pointer-events: none;
}

.place.is-next-place .seat-no {
    color: #2a1a06;
    background: linear-gradient(180deg, var(--btn-top), var(--btn-bot));
    border-color: var(--accent-hi);
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 80%, transparent);
}

.place.is-done-place .seat-no {
    color: #2a1a06;
    background: #8fbf7a;
    border-color: #cfe9c0;
}

.next-tag {
    display: none;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 7;
    padding: 3px 12px;
    border-radius: 12px;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2a1a06;
    background: linear-gradient(180deg, var(--btn-top), var(--btn-bot));
    box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 80%, transparent);
    pointer-events: none;
    animation: tagBob 1.4s ease-in-out infinite;
}

.next-tag::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    margin-left: -6px;
    border: 6px solid transparent;
    border-bottom: 0;
    border-top-color: var(--btn-bot);
}

.place.is-next-place .next-tag { display: block; }

.cross-stack .place.is-next-place .next-tag { display: none; }
.cross-stack .place.is-next-place .seat-no { box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 80%, transparent); }

.place.is-next-place .place-name {
    color: var(--accent-hi);
    font-weight: bold;
    text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 90%, transparent);
}

.flip-card.is-next {
    animation: nextPulse 1.5s ease-in-out infinite;
}

.flip-card.is-next:hover { animation-play-state: paused; }

.flip-card.is-locked { filter: brightness(0.5) saturate(0.7); }

.flip-card:focus-visible {
    outline: 3px solid var(--accent-hi);
    outline-offset: 4px;
}

@keyframes nextPulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--accent), 0 0 14px color-mix(in srgb, var(--accent) 50%, transparent); }
    50% { box-shadow: 0 0 0 3px var(--accent-hi), 0 0 34px color-mix(in srgb, var(--accent) 95%, transparent); }
}

@keyframes tagBob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
    .flip-card.is-next, .next-tag { animation: none; }
}

/* Readings */
.card-popup-ask { color: #f1e6c0; font-size: 1rem; line-height: 1.45; }
#reading-result { text-align: left; }
#reading-result h3 { color: var(--accent); font-weight: normal; letter-spacing: 0.06em; margin: 22px 0 8px; font-size: 1.25rem; }
#reading-result p { line-height: 1.6; margin-bottom: 10px; }
.reading-meta { color: #b8aa80; font-size: 0.9rem; }
.reading-story { padding-left: 1.3em; }
.reading-story li { margin-bottom: 12px; line-height: 1.55; }
.reading-note { margin-top: 18px; font-size: 0.85rem; color: #a9a08a; }

/* Real card flip */
.flip-card { perspective: 1000px; }

.flip-inner {
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.3, 0.1, 0.2, 1);
}

.flip-face {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-face.front { opacity: 1; transform: rotateY(180deg); }
.flip-card.is-up .flip-face.back { opacity: 1; }
.flip-card.is-up .flip-inner { transform: rotateY(180deg); }

.flip-card.is-flipping {
    z-index: 5;
    animation: flipLift 0.8s ease-in-out;
}

@keyframes flipLift {
    0%   { transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 color-mix(in srgb, var(--accent) 0%, transparent)); }
    40%  { transform: translateY(-22px) scale(1.12); filter: drop-shadow(0 14px 18px color-mix(in srgb, var(--accent) 55%, transparent)); }
    100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 color-mix(in srgb, var(--accent) 0%, transparent)); }
}

/* Reading window arrives with a gentle rise */
.card-popup:not([hidden]) .card-popup-panel { animation: panelIn 0.4s ease-out; }
.card-popup:not([hidden]) .card-popup-scrim { animation: scrimIn 0.3s ease-out; }
.card-popup:not([hidden]) .card-popup-face { animation: faceIn 0.55s ease-out; }

@keyframes panelIn { from { opacity: 0; transform: translateY(26px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes faceIn { from { transform: rotateY(90deg); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .flip-inner { transition: none; }
    .flip-card.is-flipping,
    .card-popup:not([hidden]) .card-popup-panel,
    .card-popup:not([hidden]) .card-popup-scrim,
    .card-popup:not([hidden]) .card-popup-face { animation: none; }
}

/* Intro: the picture is always shown whole (never cropped) in the space above the title strip, with a blurred,
   darkened copy of the same picture filling the rest of any screen shape. Titles are HTML, never painted into the picture. */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #07040d;
    overflow: hidden;
    isolation: isolate;
    transition: opacity 0.45s ease;
}
.intro-overlay[hidden] { display: none !important; }
.intro-overlay.is-leaving { opacity: 0; }

/* room for the "Turn next" tag above the first row */
.board { padding-top: 34px; }

/* ---------- Accounts ---------- */
.account-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: flex-end; margin: -6px -6px 10px; font-size: 0.85rem; }
.account-bar .who { margin-right: auto; color: var(--accent); letter-spacing: 0.06em; }
.account-bar a, .account-bar button { color: var(--accent); background: none; border: none; box-shadow: none; padding: 4px 2px; margin: 0; font-size: 0.85rem; font-weight: normal; letter-spacing: 0.04em; text-transform: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.account-bar button.strong { border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 18px; padding: 5px 14px; text-decoration: none; background: rgba(var(--panel-rgb), 0.6); }
.account-bar button:hover, .account-bar a:hover { color: var(--accent-hi); transform: none; box-shadow: none; }

.acct-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 14px; }
.acct-modal[hidden] { display: none !important; }
.acct-panel { position: relative; width: min(520px, 100%); max-height: 92vh; overflow: auto; padding: 26px 24px 20px; border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    background: linear-gradient(rgba(var(--panel-rgb), 0.95), rgba(var(--panel-rgb), 0.98)), var(--bg-url) center / cover; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7); }
.acct-panel h2 { margin: 4px 0 6px; font-size: 1.6rem; }
.acct-panel h2::before, .acct-panel h2::after { content: none; }
.acct-lead { text-align: center; color: #d8d0bc; margin-bottom: 16px; }
.acct-form { max-width: none; gap: 12px; }
.acct-field { display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 0.85rem; color: var(--accent); flex: 1; }
.acct-field input { padding: 11px 12px; font-size: 1rem; }
.acct-row { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-row .acct-field { min-width: 150px; }
.acct-check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.85rem; color: #ddd4bd; text-align: left; }
.acct-check[hidden] { display: none; }
.acct-check input { margin-top: 3px; }
.acct-error { color: #ff9a9a; background: rgba(120, 20, 20, 0.35); border-radius: 8px; padding: 8px 10px; font-size: 0.9rem; text-align: left; }
.acct-error[hidden] { display: none; }
.acct-submit { width: 100%; }
.acct-small { text-align: center; font-size: 0.85rem; color: #bfb6a0; margin-top: 12px; }
.acct-small a { color: var(--accent); }
.acct-small .danger { color: #ff9a9a; }
.acct-choices { display: grid; gap: 12px; margin: 10px 0 8px; }
.acct-choice { display: flex; flex-direction: column; gap: 4px; text-align: left; text-decoration: none; padding: 14px 16px; border-radius: 12px; margin: 0; color: #ece6d6;
    background: rgba(var(--panel-rgb), 0.7); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: none; text-transform: none; letter-spacing: 0; font-weight: normal; cursor: pointer; }
.acct-choice strong { color: var(--accent); font-size: 1.1rem; font-weight: normal; letter-spacing: 0.04em; }
.acct-choice span { font-size: 0.9rem; color: #cfc6b0; }
.acct-choice:hover { border-color: var(--accent); transform: none; box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.secure-note { margin-top: 16px; padding: 10px 12px; border-radius: 10px; font-size: 0.78rem; line-height: 1.45; color: #cfc6b0; text-align: left;
    background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.secure-note strong { color: var(--accent); font-weight: normal; }
.footer-secure { margin-top: 8px; font-size: 0.8rem; }
.footer-secure a { color: var(--accent); }
.place-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; list-style: none; margin: 2px 0 0; padding: 4px; max-height: 220px; overflow: auto;
    background: rgb(var(--panel-rgb)); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
.place-list li { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; color: #ece6d6; }
.place-list li span { color: #9d947e; font-size: 0.75rem; margin-left: 6px; }
.place-list li:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.acct-readings details { border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; text-align: left; }
.acct-readings summary { cursor: pointer; } .acct-readings summary span { display: block; font-size: 0.8rem; color: #b8aa80; }
.acct-readings h4 { color: var(--accent); margin: 10px 0 2px; font-weight: normal; } .acct-readings p { font-size: 0.9rem; line-height: 1.5; }
.acct-cards { color: #d8d0bc; margin-top: 8px; }

/* ---------- Astrology ---------- */
.astro-form { max-width: 560px; margin: 0 auto; }
.astro-result { margin-top: 24px; }
.astro-top { display: grid; grid-template-columns: minmax(260px, 560px) 1fr; gap: 26px; align-items: start; }
.wheel { width: 100%; height: auto; display: block; max-width: 620px; margin: 0 auto; }
.w-bg { fill: rgba(var(--panel-rgb), 0.55); stroke: color-mix(in srgb, var(--accent) 70%, transparent); stroke-width: 1.5; }
.w-sign { stroke: none; } .w-fire { fill: rgba(230, 90, 60, 0.2); } .w-earth { fill: rgba(110, 170, 90, 0.18); } .w-air { fill: rgba(240, 210, 110, 0.16); } .w-water { fill: rgba(80, 140, 230, 0.2); }
.w-ring, .w-line { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1; }
.w-line { stroke-width: 0.8; }
.w-glyph { fill: var(--accent); font-size: 26px; font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols2', 'DejaVu Sans', serif; }
.w-planet { fill: #fff; font-size: 24px; font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols2', 'DejaVu Sans', serif; }
.w-deg { fill: #d8d0bc; font-size: 11px; } .w-house { fill: color-mix(in srgb, var(--accent) 70%, #fff); font-size: 12px; }
.w-tick { stroke: var(--accent); stroke-width: 1.4; }
.w-axis { stroke: var(--accent-hi); stroke-width: 1.6; } .w-axislabel { fill: var(--accent-hi); font-size: 12px; letter-spacing: 0.05em; }
.w-asp { stroke-width: 1; opacity: 0.8; } .w-asp-trine, .w-asp-sextile { stroke: #7fd0a0; } .w-asp-square, .w-asp-opposition { stroke: #ff8a7a; } .w-asp-conjunction { stroke: var(--accent); }
.astro-summary h2 { text-align: left; margin-top: 0; } .astro-summary h2::before, .astro-summary h2::after { content: none; }
.astro-date { color: #bfb6a0; margin-bottom: 10px; }
.big3 { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; padding: 0; }
.big3 li { padding: 10px; border-radius: 10px; text-align: center; background: rgba(var(--panel-rgb), 0.7); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.big3 span { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #bfb6a0; } .big3 strong { color: var(--accent); font-weight: normal; font-size: 0.95rem; }
.planet-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.planet-table td { padding: 4px 6px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 15%, transparent); }
.planet-table .pg { color: var(--accent); font-size: 1.1rem; width: 1.6em; text-align: center; } .planet-table .dg { color: #e0b070; font-size: 0.78rem; }
.astro-note { font-size: 0.8rem; color: #a9a08a; margin-top: 8px; }
.astro-sec { margin-top: 26px; } .astro-sec h3 { color: var(--accent); font-weight: normal; letter-spacing: 0.06em; margin-bottom: 8px; font-size: 1.25rem; }
.astro-sec p { line-height: 1.6; margin-bottom: 10px; }
.astro-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.astro-card { padding: 10px 12px; border-radius: 10px; background: rgba(var(--panel-rgb), 0.7); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.astro-card span { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #bfb6a0; } .astro-card strong { display: block; color: var(--accent); font-weight: normal; font-size: 1.05rem; } .astro-card em { font-size: 0.78rem; color: #cfc6b0; }
.astro-sky { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.9rem; } .astro-sky span { white-space: nowrap; }
.ghost-link { color: var(--accent); }
@media (max-width: 760px) { .astro-top { grid-template-columns: 1fr; } .big3 { grid-template-columns: 1fr; } }

.planet-table td:nth-child(3) { white-space: nowrap; }
.w-glyph { font-size: 23px; }

.acct-del { margin: 12px 0 2px; padding: 8px 14px; font-size: 0.85rem; background: transparent; color: #ff9a9a; border: 1px solid rgba(255, 154, 154, 0.5); box-shadow: none; text-transform: none; letter-spacing: 0; font-weight: normal; }
.acct-del:hover { background: rgba(255, 154, 154, 0.12); transform: none; box-shadow: none; }

/* =====================================================================
   Navigation, account pill, typography and phone layout
   ===================================================================== */

/* ---- account pill (top right) ---- */
.account-bar { display: flex; justify-content: flex-end; margin: -6px -4px 10px; position: relative; z-index: 20; }
.acct-pill { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 9px 18px; min-height: 40px; border-radius: 22px; font-size: 0.9rem; font-weight: normal; letter-spacing: 0.05em;
    text-transform: none; text-decoration: none; color: var(--accent); background: rgba(var(--panel-rgb), 0.75);
    border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: none; cursor: pointer; }
.acct-pill:hover { background: color-mix(in srgb, var(--accent) 16%, rgba(var(--panel-rgb), 0.85)); transform: none; box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 30%, transparent); }
.acct-menu { position: relative; }
.acct-dropdown { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; padding: 6px; border-radius: 12px; background: rgb(var(--panel-rgb));
    border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6); }
.acct-dropdown[hidden] { display: none; }
.acct-dropdown button { display: block; width: 100%; text-align: left; margin: 0; padding: 12px 14px; font-size: 0.95rem; font-weight: normal; letter-spacing: 0.02em; text-transform: none;
    color: #ece6d6; background: none; border: none; border-radius: 8px; box-shadow: none; }
.acct-dropdown button:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); transform: none; box-shadow: none; }

/* ---- keep-this-reading offer (shown only after a first reading) ---- */
.save-offer { margin: 22px 0; padding: 20px 22px; border-radius: 14px; text-align: center;
    background: linear-gradient(rgba(var(--panel-rgb), 0.85), rgba(var(--panel-rgb), 0.92)); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.save-offer h3 { color: var(--accent); font-weight: normal; letter-spacing: 0.05em; margin-bottom: 8px; font-size: 1.25rem; }
.save-offer p { max-width: 560px; margin: 0 auto 14px; line-height: 1.55; color: #ddd4bd; }
.save-offer-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.save-offer-btns button { margin: 0; }

/* ---- art navigation ---- */
.site-nav { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; margin: 0 0 30px; }   /* nine tiles since Games was added */
.nav-tile { position: relative; display: block; aspect-ratio: 1 / 1.1; margin: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer;
    background: #000 var(--img) center / cover no-repeat; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    color: var(--accent); text-transform: none; letter-spacing: 0; font-weight: normal; transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }
.nav-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.88) 100%); }
.nav-tile .nav-icon { display: none; }
.nav-tile .nav-label { position: absolute; left: 6px; right: 6px; bottom: 26px; text-align: center; font-size: 1rem; letter-spacing: 0.07em; text-transform: uppercase;
    text-shadow: 0 2px 8px #000, 0 0 2px #000; color: var(--accent); }
.nav-tile .nav-label .short { display: none; }
.nav-tile .nav-sub { position: absolute; left: 6px; right: 6px; bottom: 8px; text-align: center; font-size: 0.78rem; color: #d8d0bc; text-shadow: 0 1px 6px #000; }
.nav-tile:hover, .nav-tile:focus-visible { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 38%, transparent); }
.nav-tile.active { border-color: var(--accent-hi); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 65%, transparent), 0 0 26px color-mix(in srgb, var(--accent) 40%, transparent); }
@media (max-width: 1040px) { .site-nav { grid-template-columns: repeat(5, 1fr); } .nav-tile { aspect-ratio: 1.5 / 1; } }

/* ---- type and form polish ---- */
html { font-size: 16px; }
.intro, p.intro { line-height: 1.6; }
.question label b, .question-label b { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: 8px; border-radius: 50%; font-size: 0.85em; font-weight: normal;
    color: #1a1208; background: linear-gradient(180deg, var(--btn-top), var(--btn-bot)); }
.question-label { display: block; margin-bottom: -10px; color: var(--accent); text-align: left; }
#question-form { gap: 16px; }
.question label { font-size: 1rem; letter-spacing: 0.03em; }
select, input[type="text"], input[type="date"], input[type="time"], input[type="email"], input[type="password"] { font-family: inherit; }
.style-choice { width: 104px; padding: 8px 8px 10px; font-size: 0.8rem; }
.style-choice svg, .style-choice img { height: 96px; }
.style-picker { gap: 10px; }
#reading-result { font-size: 1.05rem; }

/* ---- phones ---- */
@media (max-width: 720px) {
    html { font-size: 17px; }
    body { padding: 10px 10px calc(96px + env(safe-area-inset-bottom, 0px)); }
    .container { padding: 16px 14px 22px; border-radius: 16px; }
    header { padding: 160px 14px 18px; margin: -6px -6px 22px; }
    header::before { height: 146px; }
    h1 { font-size: clamp(1.55rem, 7vw, 2.1rem); letter-spacing: 0.03em; }
    h2 { font-size: 1.45rem; margin: 20px 0 14px; }
    header p { font-size: 0.78rem; letter-spacing: 0.16em; }
    p.intro { font-size: 1rem; margin-bottom: 20px; }

    /* controls: comfortable to tap, no iOS zoom */
    button, .acct-pill { min-height: 48px; }
    select, input[type="text"], input[type="date"], input[type="time"], input[type="email"], input[type="password"] { font-size: 16px; padding: 14px; min-height: 50px; }
    button[type="submit"], #new-reading { width: 100%; padding: 15px 20px; }
    .style-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .style-choice { width: 100%; min-width: 0; }
    .style-choice svg, .style-choice img { height: 104px; }

    /* bottom icon bar */
    .site-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0; gap: 0; grid-template-columns: repeat(9, 1fr);
        padding: 7px 4px calc(7px + env(safe-area-inset-bottom, 0px)); background: rgba(0, 0, 0, 0.93); backdrop-filter: blur(12px);
        border-top: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
    .nav-tile { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 3px 0 2px; min-height: 0; background: none; border: none; box-shadow: none; border-radius: 10px; }
    .nav-tile::before { display: none; }
    .nav-tile .nav-icon { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--img) center / cover no-repeat; border: 1.5px solid color-mix(in srgb, var(--accent) 65%, transparent); }
    .nav-tile .nav-label { position: static; text-transform: none; font-size: 0.72rem; letter-spacing: 0.03em; }
    .nav-tile .nav-label .long { display: none; } .nav-tile .nav-label .short { display: inline; }
    .nav-tile .nav-sub { display: none; }
    .nav-tile[data-id="intro"] { display: none; }
    .nav-tile:hover, .nav-tile:focus-visible { transform: none; box-shadow: none; }
    .nav-tile.active .nav-icon { border-color: var(--accent-hi); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent); }
    .nav-tile.active .nav-label { color: var(--accent-hi); }

    /* reading board */
    .cloth { padding: 16px 8px 26px; border-radius: 14px; }
    .spread-hint { font-size: 0.95rem; padding: 0 4px; }
    .place-name { font-size: 0.85rem; } .place-card { font-size: 0.82rem; }
    .board { padding-top: 30px; }
    .next-tag { font-size: 0.7rem; padding: 3px 9px; top: -28px; }
    #reading-result { padding: 16px; font-size: 1rem; }
    #reading-result h3 { font-size: 1.15rem; }

    /* sheets */
    .card-popup { align-items: end; padding: 0; }
    .card-popup-panel { width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
    .card-popup-body { grid-template-columns: 96px 1fr; gap: 14px; }
    .card-popup-panel h3 { font-size: 1.35rem; }
    .card-popup-next { width: 100%; }
    .acct-modal { align-items: end; padding: 0; }
    .acct-panel { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
    .library { padding: 0; } .library-panel { max-height: 100vh; border-radius: 0; padding: 16px 12px 30px; }
    .shelf-row { min-height: 190px; } .shelf-card { width: 96px; }
    .library-zoom-panel { padding: 18px 14px; } .library-zoom-copy h3 { font-size: 1.5rem; }
    .dropdown, .acct-dropdown { min-width: 190px; }
    footer { font-size: 0.82rem; }
}

/* override the earlier text-link account bar styles */
.account-bar .acct-pill { color: var(--accent); background: rgba(var(--panel-rgb), 0.75); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 22px; padding: 9px 18px; text-decoration: none; font-size: 0.9rem; }
.account-bar .acct-pill:hover { color: var(--accent-hi); }
.account-bar .acct-dropdown button { padding: 12px 14px; text-decoration: none; color: #ece6d6; font-size: 0.95rem; }

/* deck thumbnails: keep the card's own proportions so nothing spills outside it */
.style-choice svg, .style-choice img { width: auto; max-width: 100%; aspect-ratio: 300 / 520; margin: 0 auto 6px; object-fit: contain; display: block; background: transparent; }
@media (max-width: 720px) { .style-choice svg, .style-choice img { height: 112px; } }

/* =====================================================================
   Astrology pictures: lit medallions, pieces, aspect diagrams
   ===================================================================== */
.medal { position: relative; flex: none; isolation: isolate; width: var(--size, 96px); height: var(--size, 96px); border-radius: 50%; --glow: #ffd36a; --power: 0.7; }
.medal img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    filter: brightness(calc(0.55 + var(--power) * 0.55)) saturate(calc(0.55 + var(--power) * 0.6));
    box-shadow: 0 0 calc(var(--power) * 22px) color-mix(in srgb, var(--glow) calc(var(--power) * 75%), transparent), 0 0 0 1.5px color-mix(in srgb, var(--glow) calc(25% + var(--power) * 60%), transparent); }
.medal::before { content: ''; position: absolute; inset: calc(var(--size) * -0.28 * var(--power)); border-radius: 50%; z-index: -1; pointer-events: none;
    background: radial-gradient(circle, color-mix(in srgb, var(--glow) calc(var(--power) * 72%), transparent) 34%, transparent 72%);
    animation: haloPulse calc(5.2s - var(--power) * 2.6s) ease-in-out infinite; }
.sign-medal { --glow: #ffd36a; }
.sign-medal::before { animation: none; opacity: 0.55; }

@keyframes haloPulse { 0%, 100% { transform: scale(0.93); opacity: 0.72; } 50% { transform: scale(1.07); opacity: 1; } }

/* each planet behaves its own way */
.fx-sun::after { content: ''; position: absolute; inset: calc(var(--size) * -0.34); border-radius: 50%; z-index: -1; pointer-events: none;
    background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--glow) calc(var(--power) * 60%), transparent) 0 5deg, transparent 5deg 15deg);
    -webkit-mask-image: radial-gradient(circle, transparent 42%, #000 46%, transparent 72%); mask-image: radial-gradient(circle, transparent 42%, #000 46%, transparent 72%);
    animation: raysSpin 34s linear infinite; }
@keyframes raysSpin { to { transform: rotate(360deg); } }
.fx-moon::before { animation-duration: 8s; }
.moon-phase { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; pointer-events: none; }
.moon-shade { fill: rgba(2, 4, 18, 0.82); }
.fx-mercury::before { animation: shimmer 1.5s ease-in-out infinite; }
.fx-mercury img { animation: quicksilver 4s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { opacity: 0.55; transform: scale(0.97); } 30% { opacity: 1; transform: scale(1.05); } 60% { opacity: 0.7; } }
@keyframes quicksilver { 0%, 100% { filter: brightness(calc(0.55 + var(--power) * 0.55)) saturate(calc(0.55 + var(--power) * 0.6)) hue-rotate(0deg); } 50% { filter: brightness(calc(0.62 + var(--power) * 0.55)) saturate(calc(0.55 + var(--power) * 0.6)) hue-rotate(14deg); } }
.fx-venus::before { animation-duration: 6.5s; }
.fx-mars::before { animation: ember 2s steps(1, end) infinite; }
@keyframes ember { 0% { opacity: 0.8; transform: scale(1); } 13% { opacity: 1; transform: scale(1.08); } 31% { opacity: 0.6; transform: scale(0.96); } 47% { opacity: 1; transform: scale(1.05); } 68% { opacity: 0.7; transform: scale(0.98); } 82% { opacity: 0.95; transform: scale(1.06); } }
.fx-jupiter::before { inset: calc(var(--size) * -0.42 * var(--power)); animation-duration: 8.5s; }
.fx-saturn::before { animation-duration: 11s; }
.fx-saturn::after { content: ''; position: absolute; inset: -9%; border-radius: 50%; z-index: -1; pointer-events: none;
    border: 2px dashed color-mix(in srgb, var(--glow) calc(30% + var(--power) * 55%), transparent); animation: raysSpin 46s linear infinite; }
.fx-uranus::before { animation: haloPulse 3.4s ease-in-out infinite; }
.fx-uranus::after { content: ''; position: absolute; inset: -10%; border-radius: 50%; z-index: -1; pointer-events: none;
    border: 2px dotted color-mix(in srgb, var(--glow) calc(var(--power) * 90%), transparent); animation: sparks 1.6s steps(2, end) infinite; }
@keyframes sparks { 0% { transform: rotate(0deg) scale(1); opacity: 0.9; } 50% { transform: rotate(40deg) scale(1.04); opacity: 0.4; } 100% { transform: rotate(-30deg) scale(0.98); opacity: 1; } }
.fx-neptune::before { animation: haloPulse 6.5s ease-in-out infinite, hueDrift 14s linear infinite; }
@keyframes hueDrift { 0%, 100% { filter: hue-rotate(-22deg); } 50% { filter: hue-rotate(22deg); } }
.fx-pluto::before { animation: plutoBreath 7.5s ease-in-out infinite; }
@keyframes plutoBreath { 0%, 100% { transform: scale(1.1); opacity: 0.45; } 50% { transform: scale(0.9); opacity: 1; } }
.fx-node::before { animation: nodeDrift 6s ease-in-out infinite; }
@keyframes nodeDrift { 0%, 100% { transform: translateY(5%) scale(0.95); opacity: 0.7; } 50% { transform: translateY(-5%) scale(1.06); opacity: 1; } }

/* condition changes the light */
.medal.strong img { box-shadow: 0 0 calc(var(--power) * 30px) var(--glow), 0 0 0 2px color-mix(in srgb, var(--glow) 85%, transparent); }
.medal.strong::before { animation-duration: 3.2s; }
.medal.strained img { filter: brightness(0.62) saturate(0.45); }
.medal.strained::before { animation: flicker 2.6s steps(1, end) infinite; }
@keyframes flicker { 0% { opacity: 0.45; } 7% { opacity: 0.12; } 9% { opacity: 0.5; } 31% { opacity: 0.28; } 58% { opacity: 0.55; } 63% { opacity: 0.18; } 100% { opacity: 0.4; } }
.medal.retro img { animation: retroGlow 7s ease-in-out infinite reverse; }
.medal.retro::before { animation-direction: reverse; animation-duration: 9s; }
@keyframes retroGlow { 0%, 100% { filter: brightness(calc(0.55 + var(--power) * 0.55)) saturate(0.7); } 50% { filter: brightness(calc(0.4 + var(--power) * 0.45)) saturate(0.5) hue-rotate(-14deg); } }

/* pieces: the reading, one illustrated card at a time */
.piece { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 22px 24px; margin: 0 0 18px; border-radius: 16px; text-align: left;
    background: linear-gradient(rgba(var(--panel-rgb), 0.78), rgba(var(--panel-rgb), 0.9)); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); }
.piece.hero { grid-template-columns: auto 1fr; }
.piece.aspect { grid-template-columns: 240px 1fr; }
.piece-art { display: flex; align-items: center; gap: 12px; padding: 18px; min-width: 128px; }
.piece-art .sign-medal { align-self: flex-end; margin-left: -4px; }
.piece-body h4 { color: var(--accent); font-weight: normal; font-size: 1.35rem; letter-spacing: 0.03em; margin: 2px 0 6px; }
.piece-body p { margin-bottom: 8px; line-height: 1.6; }
.kicker { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #bfb6a0; }
.light-tag { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: #e6dcc2; }
.light-tag i { width: 11px; height: 11px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); flex: none; }
.piece-ring { padding-right: 4px; }
.mini-ring { width: 84px; height: 84px; display: block; }
.mr-line { fill: none; stroke: color-mix(in srgb, var(--accent) 50%, transparent); stroke-width: 1; }
.mr-dot { filter: drop-shadow(0 0 4px #fff); }

.aspect-art { padding: 0; min-width: 0; justify-content: center; }
.aspect-pic { width: 240px; height: 240px; display: block; overflow: visible; }
.aspect-pic foreignObject { overflow: visible; }
.ap-ring { fill: none; stroke: color-mix(in srgb, var(--accent) 35%, transparent); stroke-width: 1; }
.ap-spoke { stroke: color-mix(in srgb, var(--accent) 30%, transparent); stroke-dasharray: 2 4; }
.ap-exact { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.ap-arc { fill: none; stroke-width: 2; stroke-dasharray: 200; stroke-dashoffset: 200; }
.ap-chord { stroke-width: 2.5; stroke-dasharray: 220; stroke-dashoffset: 220; opacity: 0.9; }
.ap-label { font-size: 20px; font-family: inherit; }
.piece.in .ap-arc, .piece.in .ap-chord { animation: drawLine 1.4s ease forwards 0.3s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

.light-legend { margin-top: 10px; }
.sky-row { display: flex; flex-wrap: wrap; gap: 20px 22px; justify-content: center; margin: 6px 0 16px; padding: 20px 0 14px; }
.sky-item { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 92px; font-size: 0.82rem; text-align: center; color: #d8d0bc; }

.balance-pic { max-width: 520px; margin: 0 auto 14px; }
.balance-pic hr { border: none; border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); margin: 12px 0; }
.bar { display: grid; grid-template-columns: 84px 1fr 28px; gap: 10px; align-items: center; margin: 7px 0; font-size: 0.9rem; }
.bar > div { height: 12px; background: rgba(255, 255, 255, 0.08); border-radius: 7px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 7px; box-shadow: 0 0 10px rgba(255, 255, 255, 0.15); }
.bar b { font-weight: normal; color: #bfb6a0; text-align: right; }

.astro-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
figure.astro-card { margin: 0; padding: 0; overflow: hidden; text-align: center; }
figure.astro-card img { display: block; width: 100%; aspect-ratio: 300 / 520; object-fit: cover; }
figure.astro-card figcaption { padding: 10px 8px 12px; }
figure.astro-card figcaption span { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #bfb6a0; }
figure.astro-card figcaption strong { display: block; color: var(--accent); font-weight: normal; font-size: 1.05rem; }
figure.astro-card figcaption em { font-size: 0.8rem; color: #cfc6b0; }

@media (max-width: 720px) {
    .piece, .piece.hero, .piece.aspect { grid-template-columns: 1fr; gap: 8px; padding: 18px 16px; text-align: center; }
    .piece-art { justify-content: center; min-width: 0; padding: 22px 10px 8px; }
    .piece-ring { display: none; }
    .light-tag { justify-content: center; }
    .aspect-pic { width: min(240px, 80vw); height: min(240px, 80vw); }
    .sky-item { width: 76px; }
    .big3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .medal::before, .medal::after, .medal img, .reveal, .piece.in .ap-arc, .piece.in .ap-chord { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .ap-arc, .ap-chord { stroke-dashoffset: 0; }
}

/* =====================================================================
   Phone declutter: one calm surface, a slim header, a board that matches the page art
   ===================================================================== */
@media (max-width: 720px) {
    body { padding: 8px 8px calc(78px + env(safe-area-inset-bottom, 0px)); }
    /* drop the frame-in-a-frame: the page art shows through one soft panel */
    .container { padding: 10px 12px 18px; background: rgba(var(--panel-rgb), 0.55); border: none; backdrop-filter: blur(3px);
        box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
    .account-bar { margin: 0 0 8px; }
    .account-bar .acct-pill { padding: 6px 14px; font-size: 0.82rem; min-height: 38px; }
    /* slim banner: picture strip, title, no subtitle */
    header { padding: 118px 12px 12px; margin: 0 0 14px; border: none; background: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.55)); }
    header::before { height: 110px; }
    header p { display: none; }
    h1 { font-size: 1.3rem; line-height: 1.25; }
    h2 { font-size: 1.25rem; margin: 6px 0 10px; }
    h2::before, h2::after { display: none; }
    p.intro { font-size: 0.92rem; margin-bottom: 14px; line-height: 1.5; }
    #spread-blurb { display: none; }
    #question-form { gap: 12px; }
    .question label, .question-label { font-size: 0.95rem; }
    .style-choice { padding: 6px 5px 8px; font-size: 0.72rem; }
    .style-choice svg, .style-choice img { height: 84px; }

    /* slimmer bottom bar */
    .site-nav { padding: 5px 2px calc(5px + env(safe-area-inset-bottom, 0px)); }
    .nav-tile .nav-icon { width: 36px; height: 36px; }
    .nav-tile .nav-label { font-size: 0.66rem; }
    .nav-tile { gap: 2px; }

    /* the board uses the same art as the page, only darker, so nothing clashes with it */
    .cloth { padding: 12px 6px 20px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
        background: linear-gradient(rgba(var(--panel-rgb), 0.62), rgba(var(--panel-rgb), 0.8)), var(--bg-url) center / cover no-repeat, rgb(var(--panel-rgb)); box-shadow: none; }
    .spread-title { font-size: 1.15rem; }
    .spread-hint { font-size: 0.85rem; margin-bottom: 10px; }
    #cards-container { margin: 8px 0; }
    #reading-result { background: rgba(var(--panel-rgb), 0.82); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: none; }
    .card-popup-panel, .acct-panel, .library-panel { background: rgb(var(--panel-rgb)); }
}

/* ---- Themed layout buttons ---- */
:root { --back-url: url('../assets/art/backs/waite.jpg'); }
:root[data-theme="waite"] { --back-url: url('../assets/art/backs/waite.jpg'); }
:root[data-theme="waitebw"] { --back-url: url('../assets/art/backs/waitebw.jpg'); --bg-url: url('../assets/art/themes/waitebw/bg.jpg'); --cloth-url: url('../assets/art/themes/waitebw/cloth.jpg'); }
:root[data-theme="dragons"] { --back-url: url('../assets/art/backs/dragons.jpg'); }
:root[data-theme="fairy"] { --back-url: url('../assets/art/backs/fairy.jpg'); }
:root[data-theme="herbal"] { --back-url: url('../assets/art/backs/herbal.jpg'); }
:root[data-theme="lunar"] { --back-url: url('../assets/art/backs/lunar.jpg'); }
:root[data-theme="medieval"] { --back-url: url('../assets/art/backs/medieval.jpg'); }
:root[data-theme="eye"] { --back-url: url('../assets/art/backs/eye.jpg'); }
:root[data-theme="flowers"] { --back-url: url('../assets/art/backs/flowers.jpg'); }
:root[data-theme="poison"] { --back-url: url('../assets/art/backs/poison.jpg'); }
:root[data-theme="vampires"] { --back-url: url('../assets/art/backs/vampires.jpg'); }
:root[data-theme="astrology"] { --back-url: url('../assets/art/backs/astrology.jpg'); }
.spread-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 6px; }
.spread-choice { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 9px; margin: 0; text-align: center; cursor: pointer; overflow: hidden;
    color: #ece6d6; font-family: inherit; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    background: linear-gradient(rgba(var(--panel-rgb), 0.55), rgba(var(--panel-rgb), 0.9)), var(--bg-url) center / cover no-repeat, rgb(var(--panel-rgb));
    box-shadow: none; transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; }
.spread-choice:hover { transform: translateY(-3px); border-color: var(--accent); }
.spread-choice.selected { border-color: var(--accent-hi); box-shadow: 0 0 0 1px var(--accent), 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent); }
.spread-choice b { font-weight: normal; font-size: 0.88rem; letter-spacing: 0.04em; color: var(--accent); line-height: 1.25; }
.spread-choice small { font-size: 0.72rem; color: #c8c0b0; }
.spread-choice .premium-tag { color: var(--accent); letter-spacing: 0.06em; }
.spread-choice.locked { opacity: 0.5; filter: grayscale(0.7); }
.spread-choice.locked:hover { transform: none; opacity: 0.7; }
.spread-choice .lock-tag { color: #c8c0b0; white-space: nowrap; }
/* levels: XP bar above the spread picker, and the +XP / level-up toasts */
.xp-bar { margin: 4px 0 10px; padding: 10px 14px; border-radius: 12px; background: rgba(var(--panel-rgb), 0.6);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.xp-bar[hidden] { display: none; }
.xp-bar .xp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.xp-bar .xp-row b { color: var(--accent); font-weight: normal; letter-spacing: 0.06em; }
.xp-bar .xp-row span, .xp-bar p { font-size: 0.8rem; color: #c8c0b0; }
.xp-bar p { margin: 6px 0 0; }
.xp-track { height: 6px; margin-top: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.xp-track i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-hi, var(--accent))); }
.xp-owner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; padding-top: 8px;
    border-top: 1px dashed color-mix(in srgb, var(--accent) 30%, transparent); font-size: 0.8rem; color: #c8c0b0; }
.xp-owner label { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; }
.xp-owner output { color: var(--accent); min-width: 1.6em; }
.xp-owner input[type=range] { flex: 1; accent-color: var(--accent); }
.link-btn { background: none; border: none; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
.xp-toast { position: fixed; left: 50%; top: 18px; z-index: 300; transform: translate(-50%, -20px); opacity: 0; transition: all 0.4s ease;
    padding: 10px 18px; border-radius: 12px; background: rgba(var(--panel-rgb), 0.95); color: #ece6d6; text-align: center;
    border: 1px solid var(--accent); box-shadow: 0 6px 26px rgba(0, 0, 0, 0.6), 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
    max-width: min(92vw, 420px); font-size: 0.95rem; }
.xp-toast.in { opacity: 1; transform: translate(-50%, 0); }
.xp-toast.big { top: 64px; font-size: 1.05rem; padding: 14px 22px; }
.xp-toast strong { color: var(--accent); font-size: 1.2rem; font-weight: normal; letter-spacing: 0.05em; }
.spread-choice.selected b { color: var(--accent-hi); }
.spread-choice .mini { position: relative; display: block; width: 100%; aspect-ratio: 100 / 60; }
.spread-choice .mini i { position: absolute; aspect-ratio: 3 / 5; transform: translate(-50%, -50%) rotate(var(--r, 0deg));
    background: var(--back-url) center / cover no-repeat; border-radius: 2px; border: 1px solid color-mix(in srgb, var(--accent) 80%, transparent);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); opacity: 0.88; }
.spread-choice.selected .mini i { opacity: 1; box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent); }
@media (max-width: 720px) { .spread-picker { grid-template-columns: repeat(2, 1fr); gap: 8px; } .spread-choice { padding: 8px 6px; } .spread-choice b { font-size: 0.8rem; } }
@media (max-width: 720px) {
    .spread-picker { display: flex; overflow-x: auto; gap: 8px; margin: 6px -12px 0; padding: 4px 12px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .spread-picker::-webkit-scrollbar { display: none; }
    .spread-choice { flex: 0 0 128px; scroll-snap-align: start; justify-content: flex-start; }
}

/* nav buttons follow the theme: tinted by the theme's own panel colour and accent */
.nav-tile::before { background: linear-gradient(180deg, rgba(var(--panel-rgb), 0) 38%, rgba(var(--panel-rgb), 0.92) 100%); }
.nav-tile { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background-color: rgb(var(--panel-rgb)); }
.nav-tile .nav-label { color: var(--accent-hi); }
@media (max-width: 720px) {
    .site-nav { background: rgba(var(--panel-rgb), 0.95); }
    .nav-tile::before { display: none; }
    .nav-tile .nav-label { color: #d8d0bc; }
    .nav-tile.active .nav-label { color: var(--accent-hi); }
}

.pdf-row { text-align: center; margin: 18px 0 4px; }
.pdf-btn { margin: 12px 0 0; padding: 11px 22px; font-family: inherit; font-size: 0.95rem; letter-spacing: 0.03em; cursor: pointer; color: var(--accent-hi); border-radius: 24px;
    background: rgba(var(--panel-rgb), 0.8); border: 1px solid var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 25%, transparent); }
.pdf-btn:hover { background: color-mix(in srgb, var(--accent) 22%, rgb(var(--panel-rgb))); }
.pdf-btn:disabled { opacity: 0.6; cursor: wait; }

/* ---- storefront ---- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 22px 0 10px; }
.deck-item { display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 16px; border-radius: 16px; text-align: center;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    background: linear-gradient(rgba(var(--panel-rgb), 0.72), rgba(var(--panel-rgb), 0.93)), var(--deck-bg) center / cover no-repeat, rgb(var(--panel-rgb)); }
.deck-item h3 { margin: 4px 0 0; color: var(--accent); font-size: 1.3rem; font-weight: normal; letter-spacing: 0.04em; }
.deck-item p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: #d9d2c0; }
.deck-meta { font-size: 0.8rem !important; letter-spacing: 0.06em; color: #b9b2a2 !important; }
.deck-meta b { color: var(--accent-hi); font-weight: normal; }
.deck-fan { position: relative; height: 175px; margin: 4px 0 6px; }
.deck-fan img { position: absolute; top: 16px; left: 50%; width: 92px; height: auto; border-radius: 6px; border: 1px solid var(--accent); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6); }
.deck-fan img:nth-child(1) { transform: translateX(-118%) rotate(-9deg); }
.deck-fan img:nth-child(3) { transform: translateX(18%) rotate(9deg); }
.deck-fan img.mid { transform: translateX(-50%); top: 0; z-index: 2; width: 100px; }
.deck-all summary { cursor: pointer; font-size: 0.85rem; color: var(--accent); padding: 6px 0; }
.deck-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 6px 0; }
.deck-strip img { width: 100%; height: auto; border-radius: 3px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.deck-form { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.deck-form input[type=email] { font-family: inherit; font-size: 16px; padding: 11px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: rgba(0, 0, 0, 0.45); color: #ece6d6; }
.deck-consent { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 0.8rem; color: #c8c0b0; }
.deck-form button { margin: 0; padding: 11px 14px; min-height: 44px; }
.deck-msg { min-height: 1em; font-size: 0.82rem !important; }
.deck-msg.err { color: #ff9a9a !important; }
.deck-msg.ok { color: var(--accent-hi) !important; font-size: 0.95rem !important; padding: 12px 0; }
.store-note { text-align: center; margin-top: 18px; }
.nav-shop { display: block; width: fit-content; margin: -14px auto 22px; padding: 7px 18px; border-radius: 20px; font-size: 0.85rem; letter-spacing: 0.05em; text-decoration: none;
    color: var(--accent-hi); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: rgba(var(--panel-rgb), 0.7); }
.nav-shop:hover { border-color: var(--accent-hi); }
@media (max-width: 720px) { .nav-shop { margin: 0 auto 14px; } .store-grid { grid-template-columns: 1fr; } }

/* library: a small label before each group of cards on a shelf */
.shelf-sep { flex: 0 0 auto; align-self: center; writing-mode: vertical-rl; transform: rotate(180deg); padding: 6px 4px; margin: 0 4px;
    font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); opacity: 0.85; border-left: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }

/* ---- deck first: the spread and question steps unlock once a deck is chosen ---- */
#question-form.deck-locked .step-spread, #question-form.deck-locked .step-ask { opacity: 0.38; pointer-events: none; filter: saturate(0.6); transition: opacity 0.3s; }
#question-form.deck-locked .step-ask { cursor: not-allowed; }
.step-spread, .step-ask { transition: opacity 0.4s, filter 0.4s; }
.step-deck.nudge { animation: deckNudge 0.9s ease; }
@keyframes deckNudge { 0%, 100% { box-shadow: none; } 30%, 70% { box-shadow: 0 0 0 2px var(--accent), 0 0 28px color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 14px; } }

/* the music player's styles are in css/musicbar.css */

:root[data-theme="roman"] { --back-url: url('../assets/art/backs/roman.jpg'); }

/* ---- plans, paywall and checkout ---- */
.plan-status { margin: 4px 0 18px; padding: 14px 18px; border-radius: 14px; text-align: center; background: rgba(var(--panel-rgb), 0.8); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.plan-status p { margin: 4px 0; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 14px 0 30px; }
.plan-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 18px; border-radius: 16px; text-align: center;
    background: linear-gradient(rgba(var(--panel-rgb), 0.7), rgba(var(--panel-rgb), 0.92)), var(--bg-url) center / cover, rgb(var(--panel-rgb));
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); scroll-margin-top: 90px; }
.plan-card.best { border-color: var(--accent-hi); box-shadow: 0 0 0 1px var(--accent), 0 0 28px color-mix(in srgb, var(--accent) 35%, transparent); }
.plan-card.current::after { content: 'Your plan'; position: absolute; top: 10px; right: 12px; font-size: 0.72rem; color: var(--accent-hi); letter-spacing: 0.08em; text-transform: uppercase; }
.plan-card.focus { animation: deckNudge 1.4s ease 2; }
.plan-card h3 { margin: 0; color: var(--accent); font-weight: normal; font-size: 1.4rem; letter-spacing: 0.04em; }
.plan-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); margin: 0; padding: 2px 14px; border-radius: 12px; font-size: 0.75rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: #1a1208; background: linear-gradient(180deg, var(--btn-top), var(--btn-bot)); }
.plan-price { margin: 0; font-size: 1.9rem; color: var(--accent-hi); } .plan-price span { font-size: 0.9rem; color: #c8c0b0; }
.plan-card ul { list-style: none; margin: 4px 0 10px; padding: 0; text-align: left; } .plan-card li { padding: 4px 0 4px 22px; position: relative; color: #ddd5c3; font-size: 0.95rem; }
.plan-card li::before { content: '\2726'; position: absolute; left: 0; color: var(--accent); }
.pay-slot { margin-top: auto; min-height: 50px; } .pay-err { color: #ff9a9a; font-size: 0.85rem; margin: 6px 0 0; }
.pay-test { width: 100%; }
.pay-toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 90; padding: 12px 22px; border-radius: 24px; color: #1a1208;
    background: linear-gradient(180deg, var(--btn-top), var(--btn-bot)); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5); }
.plan-fine { text-align: center; }
.paywall-options { display: grid; gap: 10px; margin: 14px 0; }
.paywall-opt { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; border-radius: 12px; text-decoration: none; color: #ece6d6;
    background: rgba(var(--panel-rgb), 0.85); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.paywall-opt.best { border-color: var(--accent-hi); }
.paywall-opt strong { color: var(--accent-hi); font-weight: normal; font-size: 1.05rem; } .paywall-opt span { color: var(--accent); } .paywall-opt em { grid-column: 1 / -1; font-style: normal; font-size: 0.85rem; color: #c8c0b0; }
.paywall-opt:hover { border-color: var(--accent-hi); }
.chart-lock { text-align: center; }
@media (max-width: 720px) { .plan-grid, .plan-grid.three { grid-template-columns: 1fr; } }


/* ---- server-rendered reading page (/reading) and card meaning pages (/cards/) ---- */
.rd-q { text-align: center; font-size: 1.25rem; font-style: italic; color: var(--accent-hi); }
.rd-card { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; margin: 18px 0; padding: 16px; border-radius: 14px;
    background: rgba(var(--panel-rgb), 0.75); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.rd-card img { width: 150px; height: auto; border-radius: 6px; border: 1px solid var(--accent); }
.rd-card h2 { margin: 2px 0 6px; text-align: left; font-size: 1.4rem; } .rd-card h2::before, .rd-card h2::after { content: none; }
.rd-pos { margin: 0; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.rd-kw { color: #c8c0b0; font-style: italic; margin: 0 0 8px; }
.rd-sum, .rd-more { margin-top: 24px; } .rd-sum h2 { font-size: 1.3rem; }
.rd-cta { display: inline-block; padding: 12px 22px; border-radius: 26px; text-decoration: none; color: #1a1208; background: linear-gradient(180deg, var(--btn-top), var(--btn-bot)); }
.rd-more { text-align: center; }
.rd-form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: end; margin: 16px 0; }
.rd-form label { display: flex; flex-direction: column; gap: 4px; text-align: left; min-width: 260px; }
.rd-form input, .rd-form select { font-family: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.4); color: #ece6d6; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.cm-hero { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
.cm-hero img { width: 260px; height: auto; border-radius: 8px; border: 1px solid var(--accent); }
.cm-decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 12px 0 22px; }
.cm-decks figure { margin: 0; text-align: center; font-size: 0.8rem; color: #c8c0b0; } .cm-decks img { width: 100%; height: auto; border-radius: 5px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.cm-list { columns: 3 200px; padding-left: 18px; } .cm-list li { margin: 3px 0; }
.cm-nav { display: flex; justify-content: space-between; gap: 10px; margin: 26px 0 6px; }
@media (max-width: 720px) { .rd-card { grid-template-columns: 90px 1fr; gap: 12px; } .rd-card img { width: 90px; } .cm-hero { grid-template-columns: 1fr; } .cm-hero img { width: 200px; margin: 0 auto; } }

:root[data-theme="thoth"] { --back-url: url('../assets/art/backs/thoth.jpg'); }
:root[data-theme="crowley"] { --back-url: url('../assets/art/backs/crowley.jpg'); }
:root[data-theme="christianity"] { --back-url: url('../assets/art/backs/christianity.jpg'); }
:root[data-theme="islam"] { --back-url: url('../assets/art/backs/islam.jpg'); }
:root[data-theme="judaism"] { --back-url: url('../assets/art/backs/judaism.jpg'); }
:root[data-theme="hinduism"] { --back-url: url('../assets/art/backs/hinduism.jpg'); }
:root[data-theme="buddhism"] { --back-url: url('../assets/art/backs/buddhism.jpg'); }
:root[data-theme="sikhism"] { --back-url: url('../assets/art/backs/sikhism.jpg'); }
:root[data-theme="taoism"] { --back-url: url('../assets/art/backs/taoism.jpg'); }
:root[data-theme="shinto"] { --back-url: url('../assets/art/backs/shinto.jpg'); }

/* ---- phones and tall screens: portrait backgrounds (the wide ones get blown up and cropped to a blurry slice) ---- */
@media (max-width: 720px), (max-aspect-ratio: 4/5) {
    :root { --bg-url: url('../assets/art/themes/waite/bg_m.jpg'); }
    :root[data-theme="waite"] { --bg-url: url('../assets/art/themes/waite/bg_m.jpg'); }
    :root[data-theme="waitebw"] { --bg-url: url('../assets/art/themes/waitebw/bg_m.jpg'); }
    :root[data-theme="dragons"] { --bg-url: url('../assets/art/themes/dragons/bg_m.jpg'); }
    :root[data-theme="fairy"] { --bg-url: url('../assets/art/themes/fairy/bg_m.jpg'); }
    :root[data-theme="herbal"] { --bg-url: url('../assets/art/themes/herbal/bg_m.jpg'); }
    :root[data-theme="lunar"] { --bg-url: url('../assets/art/themes/lunar/bg_m.jpg'); }
    :root[data-theme="medieval"] { --bg-url: url('../assets/art/themes/medieval/bg_m.jpg'); }
    :root[data-theme="eye"] { --bg-url: url('../assets/art/themes/eye/bg_m.jpg'); }
    :root[data-theme="flowers"] { --bg-url: url('../assets/art/themes/flowers/bg_m.jpg'); }
    :root[data-theme="poison"] { --bg-url: url('../assets/art/themes/poison/bg_m.jpg'); }
    :root[data-theme="vampires"] { --bg-url: url('../assets/art/themes/vampires/bg_m.jpg'); }
    :root[data-theme="astrology"] { --bg-url: url('../assets/art/themes/astrology/bg_m.jpg'); }
    :root[data-theme="roman"] { --bg-url: url('../assets/art/themes/roman/bg_m.jpg'); }
    :root[data-theme="thoth"] { --bg-url: url('../assets/art/themes/thoth/bg_m.jpg'); }
    :root[data-theme="crowley"] { --bg-url: url('../assets/art/themes/crowley/bg_m.jpg'); }
    :root[data-theme="christianity"] { --bg-url: url('../assets/art/themes/christianity/bg_m.jpg'); }
    :root[data-theme="islam"] { --bg-url: url('../assets/art/themes/islam/bg_m.jpg'); }
    :root[data-theme="judaism"] { --bg-url: url('../assets/art/themes/judaism/bg_m.jpg'); }
    :root[data-theme="hinduism"] { --bg-url: url('../assets/art/themes/hinduism/bg_m.jpg'); }
    :root[data-theme="buddhism"] { --bg-url: url('../assets/art/themes/buddhism/bg_m.jpg'); }
    :root[data-theme="sikhism"] { --bg-url: url('../assets/art/themes/sikhism/bg_m.jpg'); }
    :root[data-theme="taoism"] { --bg-url: url('../assets/art/themes/taoism/bg_m.jpg'); }
    :root[data-theme="shinto"] { --bg-url: url('../assets/art/themes/shinto/bg_m.jpg'); }
}

/* ---- Sign in with Google + password reset ---- */
.acct-google { margin: 6px 0 4px; }
.acct-google-btn { display: flex; justify-content: center; min-height: 44px; }
.acct-google .acct-small { margin-top: 8px; font-size: 0.78rem; }
.acct-or { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; color: #bfb6a0; font-size: 0.85rem; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: rgba(226, 181, 88, 0.3); }
.acct-connect { margin-top: 16px; }
.reset-card { max-width: 440px; margin: 30px auto; padding: 26px; background: rgba(var(--panel-rgb, 20, 12, 30), 0.88); border: 1px solid rgba(226, 181, 88, 0.35); border-radius: 16px; }
.reset-card h2 { margin-top: 0; }

/* ================= Your Sky, Your Cards (your-sky.html) ================= */
.sky-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin: 0 0 18px; padding: 10px 12px;
    border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: rgba(var(--panel-rgb), 0.55); }
.sky-head[hidden], #sky-reading[hidden], .sky-form-wrap[hidden] { display: none; }
.sky-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sky-chips span { padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; color: #e8dcae; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.sky-form-wrap { margin: 0 0 22px; }
.sky-when h2 { margin: 6px 0 2px; text-align: left; font-size: 1.35rem; }
.sky-when h2::before, .sky-when h2::after { display: none; }
.sky-sub { color: #c8c0b0; font-size: 0.82rem; margin: 0 0 10px; }
.sky-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.sky-controls .ghost-btn { padding: 6px 12px; font-size: 0.82rem; }
.sky-controls .ghost-btn:disabled, #sky-dt:disabled { opacity: 0.4; cursor: not-allowed; }
#sky-dt, .sky-deck select { background: rgba(0, 0, 0, 0.4); color: #ece6d6; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 0.82rem; color-scheme: dark; }
.sky-deck { font-size: 0.8rem; color: #c8c0b0; display: inline-flex; gap: 6px; align-items: center; margin-left: auto; }
.sky-flip { padding: 7px 16px; border-radius: 999px; border: none; cursor: pointer; font: inherit; font-size: 0.85rem; color: #1a1206;
    background: linear-gradient(180deg, var(--accent-hi, #f3d98e), var(--accent)); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent); }
.sky-muted { color: #9d947e; font-size: 0.8rem; }
.sky-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 16px 0 26px; }
@media (max-width: 1000px) { .sky-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .sky-cards { grid-template-columns: 1fr; } .sky-slot { max-width: 300px; margin: 0 auto; } }
.sky-slot { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.sky-role { margin: 0; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.sky-card { position: relative; width: 100%; aspect-ratio: 300 / 520; padding: 0; border: none; background: none; cursor: pointer; perspective: 1000px; }
.sky-inner { position: absolute; inset: 0; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.sky-card.up .sky-inner { transform: rotateY(180deg); }
.sky-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 10px; overflow: hidden;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 8px 22px rgba(0, 0, 0, 0.55); }
.sky-face svg, .sky-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sky-front { transform: rotateY(180deg); background: #000; }
.sky-card.rev .sky-front img, .sky-card.rev .sky-front svg { transform: rotate(180deg); }
.sky-rev { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.75); color: #e8dcae; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
    opacity: 0; transition: opacity 0.3s 0.4s; }
.sky-card.up .sky-rev { opacity: 1; }
.sky-slot.locked .sky-card { cursor: default; filter: grayscale(0.5) brightness(0.7); }
.sky-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 1.6rem; }
.sky-lock b { font-size: 0.85rem; font-weight: normal; color: #e8dcae; letter-spacing: 0.08em; }
.sky-name { margin: 2px 0 0; color: var(--accent); font-size: 1rem; }
.sky-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; border-radius: 999px; font-size: 0.74rem; color: #e6e0d0;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: rgba(0, 0, 0, 0.35); white-space: nowrap; }
.sky-chip i { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 0.7rem;
    color: #1a1206; background: radial-gradient(circle at 35% 30%, #fff8, transparent 45%), var(--c); }
.sky-why { margin: 2px 0 0; font-size: 0.82rem; line-height: 1.45; color: #e6e6e6; text-align: left; }
.sky-kw { margin: 0; font-size: 0.78rem; font-style: italic; color: #a89f8a; text-align: left; }
.sky-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .sky-grid { grid-template-columns: 1fr; } }
.sky-col { display: grid; gap: 16px; }
.sky-panel { padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); background: rgba(var(--panel-rgb), 0.6); }
.sky-panel h3 { margin: 0 0 10px; color: var(--accent); font-weight: normal; font-size: 1.05rem; }
.sky-why-list { margin: 0; padding-left: 20px; font-size: 0.85rem; line-height: 1.5; }
.sky-why-list b { color: var(--accent); font-weight: normal; }
.sky-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.sky-table th { text-align: left; font-weight: normal; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9d947e; padding: 0 6px 6px; }
.sky-table td { padding: 5px 6px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.sky-wheel { display: block; width: 100%; max-width: 420px; margin: 0 auto; }
.sky-wheel .w-ring { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 1.2; }
.sky-wheel .w-core { fill: rgba(0, 0, 0, 0.35); stroke: color-mix(in srgb, var(--accent) 25%, transparent); }
.sky-wheel .w-tick { stroke: color-mix(in srgb, var(--accent) 45%, transparent); }
.sky-wheel .w-sign { fill: #e8dcae; font-size: 13px; }
.sky-wheel .w-angle { stroke: rgba(232, 220, 174, 0.35); stroke-dasharray: 2 3; }
.sky-wheel .w-lab { fill: #c8c0b0; font-size: 9px; letter-spacing: 0.08em; }
.sky-wheel .w-beam { stroke: var(--accent); stroke-width: 2; }
.sky-wheel .w-beam.coming { stroke-dasharray: 5 4; opacity: 0.85; }
.sky-wheel g text { font-size: 11px; fill: #1a1206; }
.sky-wheel .w-natal circle { opacity: 0.8; stroke: rgba(0, 0, 0, 0.5); }
.sky-wheel .w-now circle { stroke: #fff; stroke-width: 1; }
.sky-wheel .w-earth { fill: #3f7ec9; stroke: #9fd0ff; stroke-width: 1.5; }
.sky-wheel .w-you { fill: #c8c0b0; font-size: 9px; letter-spacing: 0.15em; }
.sky-legend { font-size: 0.76rem; color: #9d947e; text-align: center; margin: 8px 0 0; }
.sky-legend span { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--accent); vertical-align: middle; margin: 0 2px 0 8px; }
.sky-legend .lg-coming { border-top-style: dashed; }
.sky-note { margin: 18px 0 0; font-size: 0.8rem; color: #9d947e; text-align: center; }
@media (prefers-reduced-motion: reduce) { .sky-inner { transition: none; } }

/* Your Sky in 3D: the banner above the cards (js/sky3d.js) */
.sky3d { position: relative; height: clamp(280px, 40vw, 460px); margin: 12px 0 18px; border-radius: 14px; overflow: hidden; background: #000;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 10px 30px rgba(0, 0, 0, 0.6); }
.sky3d[hidden] { display: none; }
.sky3d canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.sky3d:fullscreen { height: 100vh; border-radius: 0; }
@media (max-width: 1000px) {
    .sky3d { position: sticky; top: 0; z-index: 30; height: 38vh; min-height: 230px; margin-left: -4px; margin-right: -4px; }
    .sky-slot { scroll-margin-top: calc(38vh + 12px); }
}
.s3-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.s3-label { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 10.5px; line-height: 1.2; color: #e8dcae; text-shadow: 0 1px 3px #000, 0 0 6px #000;
    margin: 10px 0 0 10px; will-change: transform; }
.s3-label b { font-weight: normal; color: #f3e6bd; }
.s3-label .rx { color: #ff7a6a; font-style: normal; }
.s3-label.sign { font-size: 15px; margin: -9px 0 0 -6px; color: #e8c872; }
.s3-label.ghost { font-size: 9px; color: #b9ad8e; margin: 6px 0 0 6px; }
.s3-label.earth b { color: #9fd0ff; }
@media (max-width: 560px) { .s3-label.body br, .s3-label.body br ~ * { display: none; } .s3-label { font-size: 9.5px; } }
.s3-top { position: absolute; left: 10px; right: 10px; top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; pointer-events: none; }
.s3-date { font-size: 0.8rem; color: #e8dcae; text-shadow: 0 1px 4px #000; }
.s3-step { font-size: 0.66rem; letter-spacing: 0.14em; color: var(--accent); margin-left: auto; }
.s3-btns { display: flex; gap: 6px; pointer-events: auto; }
.s3-btns button { font: inherit; font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; cursor: pointer; color: #ece6d6; background: rgba(0, 0, 0, 0.55);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.s3-cap { position: absolute; left: 10px; bottom: 26px; max-width: min(460px, calc(100% - 20px)); padding: 8px 12px; border-radius: 10px; background: rgba(10, 6, 20, 0.78);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); backdrop-filter: blur(4px); }
.s3-cap[hidden] { display: none; }
.s3-cap small { display: block; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.s3-cap b { display: block; font-weight: normal; font-size: 0.98rem; color: #f3ead2; margin: 2px 0; }
.s3-cap span { display: block; font-size: 0.76rem; color: #c8c0b0; }
.s3-draw { position: absolute; right: 14px; bottom: 28px; padding: 9px 18px; border: none; border-radius: 999px; cursor: pointer; font: inherit; color: #1a1206;
    background: linear-gradient(180deg, var(--accent-hi, #f3d98e), var(--accent)); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent); }
.s3-draw[hidden] { display: none; }
@media (max-width: 560px) { .s3-btns button[data-s3="full"] { display: none; } .s3-cap { bottom: 20px; } .s3-cap b { font-size: 0.86rem; } }

/* Your Sky: more sky spreads */
.sky-more { margin: 6px 0 26px; }
.sky-more h2 { text-align: left; font-size: 1.3rem; margin: 6px 0 2px; }
.sky-more h2::before, .sky-more h2::after { display: none; }
.sky-level { font-size: 0.82rem; color: #e8dcae; margin: 2px 0 10px; }
.sky-spread-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.sky-sp { text-align: left; padding: 10px 12px; border-radius: 12px; cursor: pointer; font: inherit; color: #ece6d6; background: rgba(var(--panel-rgb), 0.6);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); transition: transform 0.15s, border-color 0.15s; }
.sky-sp:hover { transform: translateY(-2px); border-color: var(--accent); }
.sky-sp b { display: block; font-weight: normal; color: var(--accent); font-size: 0.95rem; }
.sky-sp small { display: block; font-size: 0.72rem; color: #c8c0b0; margin-top: 2px; }
.sky-sp em { display: block; font-size: 0.74rem; color: #a89f8a; margin-top: 4px; font-style: normal; line-height: 1.35; }
.sky-sp.locked { opacity: 0.55; filter: grayscale(0.6); }
.sky-sp.on { border-color: var(--accent-hi, var(--accent)); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 40%, transparent); }
.sky-sp .tag { color: var(--accent); letter-spacing: 0.05em; }
.sky-spread-out { margin-top: 16px; }
.sky-spread-out h3 { color: var(--accent); font-weight: normal; margin: 0 0 2px; font-size: 1.15rem; }
.sky-sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 12px; }
.sky-sp-grid .sky-slot { align-items: stretch; }
.sky-sp-grid .sky-card { max-width: 170px; margin: 0 auto; }
.sky-sp-grid .sky-role { letter-spacing: 0.08em; font-size: 0.68rem; text-align: center; min-height: 2.2em; }
.sky-sp-grid .sky-name { text-align: center; }
.sky-loading { padding: 18px; text-align: center; color: #c8c0b0; }

/* ---- phones: the picture tiles ride along the bottom (owner, 2026-11-30; from 26 to 30 November they were at the top),
   and the music banner (css/musicbar.css) floats just above them ---- */
@media (max-width: 720px) {
    .sky3d { top: var(--navh, 0px); }
    .sky-slot { scroll-margin-top: calc(var(--navh, 0px) + 38vh + 12px); }
}

/* ---- phones: keep the 3D banner clear (small buttons, no date line, short caption) ---- */
@media (max-width: 560px) {
    .s3-date { display: none; }
    .s3-top { top: 6px; left: 6px; right: 6px; gap: 4px; }
    .s3-btns button { font-size: 0.62rem; padding: 2px 8px; }
    .s3-step { font-size: 0.58rem; order: 2; }
    .s3-cap { left: 6px; right: 6px; bottom: 6px; max-width: none; padding: 5px 9px; }
    .s3-cap small { font-size: 0.56rem; }
    .s3-cap b { font-size: 0.8rem; }
    .s3-cap span { display: none; }
    .s3-draw { bottom: 54px; right: 8px; padding: 7px 14px; font-size: 0.85rem; }
}

/* "Shop the decks" sits in the Library panel */
.library-panel .library-shop { margin: 4px auto 18px; }
/* Your Sky: the time controls sit below the five cards */
.sky-controls-wrap { margin: -10px 0 22px; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); background: rgba(var(--panel-rgb), 0.5); }
.sky-controls-wrap .sky-controls { margin-bottom: 0; }
/* the time controls now sit at the very bottom of the reading, after the wheel and tables */
.sky-grid + .sky-controls-wrap { margin: 22px 0 6px; }

/* Your Sky tour: the reader moves the narration on with this button (no timed advance) */
.s3-next { display: block; margin: 8px 0 0 auto; padding: 6px 16px; border: none; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.82rem;
    color: #1a1206; background: linear-gradient(180deg, var(--accent-hi, #f3d98e), var(--accent)); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 45%, transparent); }
.s3-next[hidden] { display: none; }
.s3-next.draw { font-size: 0.92rem; padding: 8px 20px; }
.s3-cap { pointer-events: auto; }
@media (max-width: 560px) { .s3-next { margin-top: 5px; padding: 5px 14px; font-size: 0.78rem; } }

/* Your Sky: a card's name and reading stay hidden until it is turned over (no spoilers during the tour) */
.sky-slot:has(.sky-card:not(.up)) :is(.sky-name, .sky-chip, .sky-why, .sky-kw) { visibility: hidden; }
.sky-slot.locked :is(.sky-name, .sky-why) { visibility: visible; }
.sky-slot :is(.sky-name, .sky-chip, .sky-why, .sky-kw) { transition: opacity 0.4s; }

/* ================= Intro: animated all-seeing eye and card flashes (no video, no music) ================= */
/* The landing intro (js/intro.js, js/intro_show.js): the canvas show, with its few buttons over it */
.ix-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ix-splash, .ix-title { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); width: min(94vw, 720px); text-align: center; animation: ixRise 1s ease-out; }
.ix-splash[hidden], .ix-title[hidden] { display: none; }
.ix-splash { top: 56%; }
.ix-title { top: 31%; }
.intro-overlay.is-plain .ix-title { top: 38%; }
.ix-splash h1, .ix-title h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 6.4vmin, 3.4rem); line-height: 1.15; letter-spacing: 0.1em; text-transform: uppercase; color: #f3d27a; text-shadow: 0 0 24px rgba(232, 200, 114, 0.55), 0 2px 6px #000, 0 0 3px #000; }
.ix-note, .ix-tag { margin: 12px 0 0; color: #f3e6c4; font-style: italic; font-size: clamp(0.95rem, 2.8vmin, 1.25rem); text-shadow: 0 1px 6px #000, 0 0 3px #000; }
.ix-tag { margin: 0 0 18px; }
.ix-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.intro-overlay .ix-gold { width: auto; margin: 0; padding: 13px 36px; border: 1px solid #fff0b8; border-radius: 999px; cursor: pointer; font: inherit; font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; color: #1a1206;
    background: linear-gradient(180deg, #fbe9ac, #d6a846); box-shadow: 0 0 26px rgba(232, 193, 90, 0.55), 0 6px 18px rgba(0, 0, 0, 0.5); }
.intro-overlay .ix-plain { width: auto; margin: 0; padding: 10px 18px; border: 1px solid rgba(232, 193, 90, 0.7); border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: normal; letter-spacing: 0.06em; text-transform: none; color: #f6e6b4; background: rgba(14, 6, 22, 0.72); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); }
.intro-overlay .ix-gold:hover, .intro-overlay .ix-gold:focus-visible { filter: brightness(1.08); }
.intro-overlay .ix-plain:hover, .intro-overlay .ix-plain:focus-visible { background: rgba(50, 22, 60, 0.9); color: #fff6d8; }
.intro-overlay .ix-skip, .intro-overlay .ix-sound { position: absolute; z-index: 3; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.intro-overlay .ix-skip { right: calc(16px + env(safe-area-inset-right, 0px)); }
.intro-overlay .ix-sound { left: calc(16px + env(safe-area-inset-left, 0px)); }
.intro-overlay .ix-sound[hidden], .intro-overlay .ix-again[hidden] { display: none; }
.intro-overlay.is-plain .ix-canvas { display: none; }
.ix-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(232, 193, 90, 0.16); }
.ix-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #8d1434, #e8c15a); }
.ix-story { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
@keyframes ixRise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* ================= language picker ================= */
.lang-pick { position: absolute; left: 10px; top: 10px; z-index: 5; display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 8px; border-radius: 999px;
    background: rgba(0, 0, 0, 0.55); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); font-size: 0.8rem; }
.lang-pick select { background: transparent; color: #ece6d6; border: none; font: inherit; font-size: 0.8rem; cursor: pointer; color-scheme: dark; }
.lang-pick select option { background: #160b28; }
details.rules-en { margin: 14px 0; padding: 8px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
details.rules-en summary { cursor: pointer; color: var(--accent); }

/* ================= Aurora: the fortune teller's chat bubble (bottom right) and reading box ================= */
.aurora { position: fixed; right: 16px; bottom: 16px; z-index: 90; }
.au-fab { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; cursor: pointer; font: inherit; color: #f3e6bd;
    background: rgba(18, 10, 30, 0.92); border: 1px solid #e8c872; box-shadow: 0 0 22px rgba(232, 200, 114, 0.45), 0 8px 22px rgba(0, 0, 0, 0.55); }
.au-fab img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1.5px solid #e8c872; }
.au-fab-name { letter-spacing: 0.08em; }
.aurora.open .au-fab { display: none; }
.au-panel { width: min(370px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
    background: rgba(16, 9, 28, 0.97); border: 1px solid #e8c872; box-shadow: 0 0 30px rgba(232, 200, 114, 0.35), 0 18px 40px rgba(0, 0, 0, 0.7); }
.au-panel[hidden] { display: none; }
.au-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(180deg, rgba(232, 200, 114, 0.16), transparent); border-bottom: 1px solid rgba(232, 200, 114, 0.3); }
.au-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1.5px solid #e8c872; }
.au-head b { display: block; color: #e8c872; font-weight: normal; letter-spacing: 0.08em; font-size: 1.05rem; }
.au-head small { color: #c8c0b0; font-size: 0.75rem; }
.au-x { margin-left: auto; background: none; border: none; color: #e8dcae; font-size: 1.1rem; cursor: pointer; }
.au-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.au-msg { max-width: 86%; padding: 8px 11px; border-radius: 12px; font-size: 0.88rem; line-height: 1.45; }
.au-msg p { margin: 0 0 6px; } .au-msg p:last-child { margin: 0; }
.au-a { align-self: flex-start; background: rgba(232, 200, 114, 0.1); border: 1px solid rgba(232, 200, 114, 0.28); color: #ece6d6; }
.au-u { align-self: flex-end; background: rgba(110, 70, 160, 0.45); color: #fff; }
.au-wait { font-style: italic; color: #c8c0b0; }
.au-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.au-chips button { font: inherit; font-size: 0.74rem; padding: 4px 10px; border-radius: 999px; cursor: pointer; color: #e8dcae; background: transparent; border: 1px solid rgba(232, 200, 114, 0.4); }
.au-chips button[hidden] { display: none; }
.au-form { display: flex; gap: 6px; padding: 8px 12px; border-top: 1px solid rgba(232, 200, 114, 0.25); }
.au-form input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(232, 200, 114, 0.35); background: rgba(0, 0, 0, 0.4); color: #ece6d6; font: inherit; font-size: 0.9rem; }
.au-form button { padding: 8px 14px; border: none; border-radius: 10px; cursor: pointer; font: inherit; color: #1a1206; background: linear-gradient(180deg, #f6e2a4, #d9b25c); }
.au-note { margin: 0; padding: 0 12px 8px; font-size: 0.68rem; color: #8a8270; }
.au-reading { margin: 4px 0 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    background: linear-gradient(180deg, rgba(232, 200, 114, 0.08), rgba(var(--panel-rgb), 0.55)); }
.au-rhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.au-rhead img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--accent); }
.au-rhead h3 { margin: 0; color: var(--accent); font-weight: normal; }
.au-rbody p { margin: 0 0 10px; line-height: 1.6; }
.au-reading .au-note { padding: 0; margin-top: 4px; }
.sky-aurora { margin: -8px 0 18px; }
@media (max-width: 720px) {
    .aurora { right: 10px; bottom: calc(var(--navfoot, 72px) + var(--mubar, 0px) + 10px); }
    .au-fab { padding: 3px; } .au-fab-name { display: none; } .au-fab img { width: 50px; height: 50px; }
    .aurora.open { left: 8px; right: 8px; bottom: 8px; }
    .au-panel { width: 100%; height: min(78vh, 620px); }
    .lang-pick { left: 8px; top: 8px; }
}
.au-panel .au-head { padding: 10px 12px; margin: 0; border: none; border-bottom: 1px solid rgba(232, 200, 114, 0.3); border-radius: 0; text-align: left; overflow: visible; }
.au-form { margin: 0; }

/* ================= deck-themed cursors (a gold pointer with each deck's emblem) ================= */
html[data-theme='waite'] body, html[data-theme='waitebw'] body, html:not([data-theme]) body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23e8c872'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23e8c872'%20stroke='%23e8c872'%3E%3Cpath%20d='M25%203%20L26.4%207.6%20L31%209%20L26.4%2010.4%20L25%2015%20L23.6%2010.4%20L19%209%20L23.6%207.6Z'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='waite'] a, html[data-theme='waite'] button, html[data-theme='waite'] select, html[data-theme='waite'] summary, html[data-theme='waite'] label, html[data-theme='waite'] [role=button], html[data-theme='waite'] .nav-tile, html[data-theme='waite'] .spread-choice, html[data-theme='waite'] .style-choice, html[data-theme='waite'] .sky-card, html:not([data-theme]) a, html:not([data-theme]) button, html:not([data-theme]) select, html:not([data-theme]) summary, html:not([data-theme]) label, html:not([data-theme]) [role=button], html:not([data-theme]) .nav-tile, html:not([data-theme]) .spread-choice, html:not([data-theme]) .style-choice, html:not([data-theme]) .sky-card, html[data-theme='waitebw'] a, html[data-theme='waitebw'] button, html[data-theme='waitebw'] select, html[data-theme='waitebw'] summary, html[data-theme='waitebw'] label, html[data-theme='waitebw'] [role=button], html[data-theme='waitebw'] .nav-tile, html[data-theme='waitebw'] .spread-choice, html[data-theme='waitebw'] .style-choice, html[data-theme='waitebw'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23e8c872'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23e8c872'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23e8c872'%20stroke='%23e8c872'%3E%3Cpath%20d='M25%203%20L26.4%207.6%20L31%209%20L26.4%2010.4%20L25%2015%20L23.6%2010.4%20L19%209%20L23.6%207.6Z'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='eye'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23e8c872'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23e8c872'%20stroke='%23e8c872'%3E%3Cpath%20d='M18%209%20Q25%202%2032%209%20Q25%2016%2018%209Z'%20fill='none'%20stroke-width='1.6'/%3E%3Ccircle%20cx='25'%20cy='9'%20r='2.2'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='eye'] a, html[data-theme='eye'] button, html[data-theme='eye'] select, html[data-theme='eye'] summary, html[data-theme='eye'] label, html[data-theme='eye'] [role=button], html[data-theme='eye'] .nav-tile, html[data-theme='eye'] .spread-choice, html[data-theme='eye'] .style-choice, html[data-theme='eye'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23e8c872'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23e8c872'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23e8c872'%20stroke='%23e8c872'%3E%3Cpath%20d='M18%209%20Q25%202%2032%209%20Q25%2016%2018%209Z'%20fill='none'%20stroke-width='1.6'/%3E%3Ccircle%20cx='25'%20cy='9'%20r='2.2'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='thoth'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%235fc0e8'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%235fc0e8'%20stroke='%235fc0e8'%3E%3Cpath%20d='M18%209%20Q25%203%2032%209%20Q25%2015%2018%209Z'%20fill='none'%20stroke-width='1.6'/%3E%3Ccircle%20cx='25'%20cy='9'%20r='2'/%3E%3Cpath%20d='M25%2011%20L23%2016'%20fill='none'%20stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='thoth'] a, html[data-theme='thoth'] button, html[data-theme='thoth'] select, html[data-theme='thoth'] summary, html[data-theme='thoth'] label, html[data-theme='thoth'] [role=button], html[data-theme='thoth'] .nav-tile, html[data-theme='thoth'] .spread-choice, html[data-theme='thoth'] .style-choice, html[data-theme='thoth'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%235fc0e8'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%235fc0e8'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%235fc0e8'%20stroke='%235fc0e8'%3E%3Cpath%20d='M18%209%20Q25%203%2032%209%20Q25%2015%2018%209Z'%20fill='none'%20stroke-width='1.6'/%3E%3Ccircle%20cx='25'%20cy='9'%20r='2'/%3E%3Cpath%20d='M25%2011%20L23%2016'%20fill='none'%20stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='crowley'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23e8c872'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23e8c872'%20stroke='%23e8c872'%3E%3Cpath%20d='M25%202%20L31%2012%20L19%2012Z%20M25%2016%20L19%206%20L31%206Z'%20fill='none'%20stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='crowley'] a, html[data-theme='crowley'] button, html[data-theme='crowley'] select, html[data-theme='crowley'] summary, html[data-theme='crowley'] label, html[data-theme='crowley'] [role=button], html[data-theme='crowley'] .nav-tile, html[data-theme='crowley'] .spread-choice, html[data-theme='crowley'] .style-choice, html[data-theme='crowley'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23e8c872'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23e8c872'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23e8c872'%20stroke='%23e8c872'%3E%3Cpath%20d='M25%202%20L31%2012%20L19%2012Z%20M25%2016%20L19%206%20L31%206Z'%20fill='none'%20stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='christianity'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%230a0c20'%20stroke='%23e8c15a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='none'%20stroke='%23e8c15a'%20stroke-width='1.3'%3E%3Ccircle%20cx='25'%20cy='6'%20r='3'/%3E%3Ccircle%20cx='25'%20cy='12'%20r='3'/%3E%3Ccircle%20cx='22'%20cy='9'%20r='3'/%3E%3Ccircle%20cx='28'%20cy='9'%20r='3'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='christianity'] a, html[data-theme='christianity'] button, html[data-theme='christianity'] select, html[data-theme='christianity'] summary, html[data-theme='christianity'] label, html[data-theme='christianity'] [role=button], html[data-theme='christianity'] .nav-tile, html[data-theme='christianity'] .spread-choice, html[data-theme='christianity'] .style-choice, html[data-theme='christianity'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23e8c15a'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%230a0c20'%20stroke='%23e8c15a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='none'%20stroke='%23e8c15a'%20stroke-width='1.3'%3E%3Ccircle%20cx='25'%20cy='6'%20r='3'/%3E%3Ccircle%20cx='25'%20cy='12'%20r='3'/%3E%3Ccircle%20cx='22'%20cy='9'%20r='3'/%3E%3Ccircle%20cx='28'%20cy='9'%20r='3'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='islam'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%2306181c'%20stroke='%23e2bd5c'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='none'%20stroke='%23e2bd5c'%20stroke-width='1.3'%3E%3Cpath%20d='M21%205h8v8h-8Z'/%3E%3Cpath%20d='M25%203.3L30.7%209L25%2014.7L19.3%209Z'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='islam'] a, html[data-theme='islam'] button, html[data-theme='islam'] select, html[data-theme='islam'] summary, html[data-theme='islam'] label, html[data-theme='islam'] [role=button], html[data-theme='islam'] .nav-tile, html[data-theme='islam'] .spread-choice, html[data-theme='islam'] .style-choice, html[data-theme='islam'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23e2bd5c'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%2306181c'%20stroke='%23e2bd5c'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='none'%20stroke='%23e2bd5c'%20stroke-width='1.3'%3E%3Cpath%20d='M21%205h8v8h-8Z'/%3E%3Cpath%20d='M25%203.3L30.7%209L25%2014.7L19.3%209Z'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='judaism'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23080e22'%20stroke='%23dcb85a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Ccircle%20cx='25'%20cy='10.5'%20r='4.6'%20fill='%23dcb85a'/%3E%3Cpath%20d='M22.6%206.6L23.4%203.6L25%205.4L26.6%203.6L27.4%206.6'%20fill='none'%20stroke='%23dcb85a'%20stroke-width='1.2'%20stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='judaism'] a, html[data-theme='judaism'] button, html[data-theme='judaism'] select, html[data-theme='judaism'] summary, html[data-theme='judaism'] label, html[data-theme='judaism'] [role=button], html[data-theme='judaism'] .nav-tile, html[data-theme='judaism'] .spread-choice, html[data-theme='judaism'] .style-choice, html[data-theme='judaism'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23dcb85a'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23080e22'%20stroke='%23dcb85a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Ccircle%20cx='25'%20cy='10.5'%20r='4.6'%20fill='%23dcb85a'/%3E%3Cpath%20d='M22.6%206.6L23.4%203.6L25%205.4L26.6%203.6L27.4%206.6'%20fill='none'%20stroke='%23dcb85a'%20stroke-width='1.2'%20stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='hinduism'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%231c0a04'%20stroke='%23f0a92a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cpath%20d='M25%203C28%206%2028%2011%2025%2014C22%2011%2022%206%2025%203ZM25%2014C21%2013%2018.5%2010%2018.5%207C21.5%207.5%2024%2010%2025%2014ZM25%2014C29%2013%2031.5%2010%2031.5%207C28.5%207.5%2026%2010%2025%2014Z'%20fill='none'%20stroke='%23f0a92a'%20stroke-width='1.2'%20stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='hinduism'] a, html[data-theme='hinduism'] button, html[data-theme='hinduism'] select, html[data-theme='hinduism'] summary, html[data-theme='hinduism'] label, html[data-theme='hinduism'] [role=button], html[data-theme='hinduism'] .nav-tile, html[data-theme='hinduism'] .spread-choice, html[data-theme='hinduism'] .style-choice, html[data-theme='hinduism'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23f0a92a'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%231c0a04'%20stroke='%23f0a92a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cpath%20d='M25%203C28%206%2028%2011%2025%2014C22%2011%2022%206%2025%203ZM25%2014C21%2013%2018.5%2010%2018.5%207C21.5%207.5%2024%2010%2025%2014ZM25%2014C29%2013%2031.5%2010%2031.5%207C28.5%207.5%2026%2010%2025%2014Z'%20fill='none'%20stroke='%23f0a92a'%20stroke-width='1.2'%20stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='buddhism'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23160708'%20stroke='%23e2b14a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='none'%20stroke='%23e2b14a'%20stroke-width='1.2'%3E%3Ccircle%20cx='25'%20cy='9'%20r='5.5'/%3E%3Ccircle%20cx='25'%20cy='9'%20r='1.4'/%3E%3Cpath%20d='M25%203.5V14.5M19.5%209H30.5M21.1%205.1L28.9%2012.9M28.9%205.1L21.1%2012.9'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='buddhism'] a, html[data-theme='buddhism'] button, html[data-theme='buddhism'] select, html[data-theme='buddhism'] summary, html[data-theme='buddhism'] label, html[data-theme='buddhism'] [role=button], html[data-theme='buddhism'] .nav-tile, html[data-theme='buddhism'] .spread-choice, html[data-theme='buddhism'] .style-choice, html[data-theme='buddhism'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23e2b14a'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23160708'%20stroke='%23e2b14a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='none'%20stroke='%23e2b14a'%20stroke-width='1.2'%3E%3Ccircle%20cx='25'%20cy='9'%20r='5.5'/%3E%3Ccircle%20cx='25'%20cy='9'%20r='1.4'/%3E%3Cpath%20d='M25%203.5V14.5M19.5%209H30.5M21.1%205.1L28.9%2012.9M28.9%205.1L21.1%2012.9'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='sikhism'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23060c1e'%20stroke='%23f09a2a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='none'%20stroke='%23f09a2a'%20stroke-width='1.1'%3E%3Ccircle%20cx='28.40'%20cy='9.00'%20r='2.1'/%3E%3Ccircle%20cx='26.70'%20cy='11.94'%20r='2.1'/%3E%3Ccircle%20cx='23.30'%20cy='11.94'%20r='2.1'/%3E%3Ccircle%20cx='21.60'%20cy='9.00'%20r='2.1'/%3E%3Ccircle%20cx='23.30'%20cy='6.06'%20r='2.1'/%3E%3Ccircle%20cx='26.70'%20cy='6.06'%20r='2.1'/%3E%3C/g%3E%3Ccircle%20cx='25'%20cy='9'%20r='1.6'%20fill='%23f09a2a'/%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='sikhism'] a, html[data-theme='sikhism'] button, html[data-theme='sikhism'] select, html[data-theme='sikhism'] summary, html[data-theme='sikhism'] label, html[data-theme='sikhism'] [role=button], html[data-theme='sikhism'] .nav-tile, html[data-theme='sikhism'] .spread-choice, html[data-theme='sikhism'] .style-choice, html[data-theme='sikhism'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23f09a2a'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23060c1e'%20stroke='%23f09a2a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='none'%20stroke='%23f09a2a'%20stroke-width='1.1'%3E%3Ccircle%20cx='28.40'%20cy='9.00'%20r='2.1'/%3E%3Ccircle%20cx='26.70'%20cy='11.94'%20r='2.1'/%3E%3Ccircle%20cx='23.30'%20cy='11.94'%20r='2.1'/%3E%3Ccircle%20cx='21.60'%20cy='9.00'%20r='2.1'/%3E%3Ccircle%20cx='23.30'%20cy='6.06'%20r='2.1'/%3E%3Ccircle%20cx='26.70'%20cy='6.06'%20r='2.1'/%3E%3C/g%3E%3Ccircle%20cx='25'%20cy='9'%20r='1.6'%20fill='%23f09a2a'/%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='taoism'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%2308140e'%20stroke='%23cfb46a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Ccircle%20cx='25'%20cy='9'%20r='5.5'%20fill='none'%20stroke='%23cfb46a'%20stroke-width='1.2'/%3E%3Cpath%20d='M25%203.5A5.5%205.5%200%200%201%2025%2014.5A2.75%202.75%200%200%201%2025%209A2.75%202.75%200%200%200%2025%203.5Z'%20fill='%23cfb46a'/%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='taoism'] a, html[data-theme='taoism'] button, html[data-theme='taoism'] select, html[data-theme='taoism'] summary, html[data-theme='taoism'] label, html[data-theme='taoism'] [role=button], html[data-theme='taoism'] .nav-tile, html[data-theme='taoism'] .spread-choice, html[data-theme='taoism'] .style-choice, html[data-theme='taoism'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23cfb46a'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%2308140e'%20stroke='%23cfb46a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Ccircle%20cx='25'%20cy='9'%20r='5.5'%20fill='none'%20stroke='%23cfb46a'%20stroke-width='1.2'/%3E%3Cpath%20d='M25%203.5A5.5%205.5%200%200%201%2025%2014.5A2.75%202.75%200%200%201%2025%209A2.75%202.75%200%200%200%2025%203.5Z'%20fill='%23cfb46a'/%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='shinto'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%230a0e1c'%20stroke='%23e0604a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Ccircle%20cx='25.00'%20cy='5.80'%20r='2.3'%20fill='%23e0604a'/%3E%3Ccircle%20cx='28.04'%20cy='8.01'%20r='2.3'%20fill='%23e0604a'/%3E%3Ccircle%20cx='26.88'%20cy='11.59'%20r='2.3'%20fill='%23e0604a'/%3E%3Ccircle%20cx='23.12'%20cy='11.59'%20r='2.3'%20fill='%23e0604a'/%3E%3Ccircle%20cx='21.96'%20cy='8.01'%20r='2.3'%20fill='%23e0604a'/%3E%3Ccircle%20cx='25'%20cy='9'%20r='1.3'%20fill='%23ffffff'/%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='shinto'] a, html[data-theme='shinto'] button, html[data-theme='shinto'] select, html[data-theme='shinto'] summary, html[data-theme='shinto'] label, html[data-theme='shinto'] [role=button], html[data-theme='shinto'] .nav-tile, html[data-theme='shinto'] .spread-choice, html[data-theme='shinto'] .style-choice, html[data-theme='shinto'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23e0604a'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%230a0e1c'%20stroke='%23e0604a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Ccircle%20cx='25.00'%20cy='5.80'%20r='2.3'%20fill='%23e0604a'/%3E%3Ccircle%20cx='28.04'%20cy='8.01'%20r='2.3'%20fill='%23e0604a'/%3E%3Ccircle%20cx='26.88'%20cy='11.59'%20r='2.3'%20fill='%23e0604a'/%3E%3Ccircle%20cx='23.12'%20cy='11.59'%20r='2.3'%20fill='%23e0604a'/%3E%3Ccircle%20cx='21.96'%20cy='8.01'%20r='2.3'%20fill='%23e0604a'/%3E%3Ccircle%20cx='25'%20cy='9'%20r='1.3'%20fill='%23ffffff'/%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='dragons'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23e0603a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23e0603a'%20stroke='%23e0603a'%3E%3Cpath%20d='M25%202%20C30%207%2031%2011%2028%2015%20C29%2011%2026%2010%2025%208%20C24%2011%2021%2012%2022%2015%20C18%2011%2021%206%2025%202Z'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='dragons'] a, html[data-theme='dragons'] button, html[data-theme='dragons'] select, html[data-theme='dragons'] summary, html[data-theme='dragons'] label, html[data-theme='dragons'] [role=button], html[data-theme='dragons'] .nav-tile, html[data-theme='dragons'] .spread-choice, html[data-theme='dragons'] .style-choice, html[data-theme='dragons'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23e0603a'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23e0603a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23e0603a'%20stroke='%23e0603a'%3E%3Cpath%20d='M25%202%20C30%207%2031%2011%2028%2015%20C29%2011%2026%2010%2025%208%20C24%2011%2021%2012%2022%2015%20C18%2011%2021%206%2025%202Z'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='fairy'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23f2a7d8'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23f2a7d8'%20stroke='%23f2a7d8'%3E%3Cpath%20d='M25%203%20L26.2%207.8%20L31%209%20L26.2%2010.2%20L25%2015%20L23.8%2010.2%20L19%209%20L23.8%207.8Z'/%3E%3Ccircle%20cx='30'%20cy='3'%20r='1.2'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='fairy'] a, html[data-theme='fairy'] button, html[data-theme='fairy'] select, html[data-theme='fairy'] summary, html[data-theme='fairy'] label, html[data-theme='fairy'] [role=button], html[data-theme='fairy'] .nav-tile, html[data-theme='fairy'] .spread-choice, html[data-theme='fairy'] .style-choice, html[data-theme='fairy'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23f2a7d8'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23f2a7d8'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23f2a7d8'%20stroke='%23f2a7d8'%3E%3Cpath%20d='M25%203%20L26.2%207.8%20L31%209%20L26.2%2010.2%20L25%2015%20L23.8%2010.2%20L19%209%20L23.8%207.8Z'/%3E%3Ccircle%20cx='30'%20cy='3'%20r='1.2'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='herbal'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%238fcf6a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%238fcf6a'%20stroke='%238fcf6a'%3E%3Cpath%20d='M19%2015%20C19%207%2025%203%2031%203%20C31%2010%2026%2015%2019%2015Z'/%3E%3Cpath%20d='M19%2015%20L28%206'%20fill='none'%20stroke='%231b2a12'%20stroke-width='1'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='herbal'] a, html[data-theme='herbal'] button, html[data-theme='herbal'] select, html[data-theme='herbal'] summary, html[data-theme='herbal'] label, html[data-theme='herbal'] [role=button], html[data-theme='herbal'] .nav-tile, html[data-theme='herbal'] .spread-choice, html[data-theme='herbal'] .style-choice, html[data-theme='herbal'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%238fcf6a'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%238fcf6a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%238fcf6a'%20stroke='%238fcf6a'%3E%3Cpath%20d='M19%2015%20C19%207%2025%203%2031%203%20C31%2010%2026%2015%2019%2015Z'/%3E%3Cpath%20d='M19%2015%20L28%206'%20fill='none'%20stroke='%231b2a12'%20stroke-width='1'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='lunar'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23c8d4f0'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23c8d4f0'%20stroke='%23c8d4f0'%3E%3Cpath%20d='M27%202%20A7%207%200%201%200%2031%2013%20A5.5%205.5%200%201%201%2027%202Z'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='lunar'] a, html[data-theme='lunar'] button, html[data-theme='lunar'] select, html[data-theme='lunar'] summary, html[data-theme='lunar'] label, html[data-theme='lunar'] [role=button], html[data-theme='lunar'] .nav-tile, html[data-theme='lunar'] .spread-choice, html[data-theme='lunar'] .style-choice, html[data-theme='lunar'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23c8d4f0'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23c8d4f0'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23c8d4f0'%20stroke='%23c8d4f0'%3E%3Cpath%20d='M27%202%20A7%207%200%201%200%2031%2013%20A5.5%205.5%200%201%201%2027%202Z'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='medieval'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23d4a24a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23d4a24a'%20stroke='%23d4a24a'%3E%3Cpath%20d='M25%201%20L26.3%204%20L26.3%2011%20L28.5%2011%20L28.5%2012.6%20L26.3%2012.6%20L26.3%2015.5%20L23.7%2015.5%20L23.7%2012.6%20L21.5%2012.6%20L21.5%2011%20L23.7%2011%20L23.7%204Z'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='medieval'] a, html[data-theme='medieval'] button, html[data-theme='medieval'] select, html[data-theme='medieval'] summary, html[data-theme='medieval'] label, html[data-theme='medieval'] [role=button], html[data-theme='medieval'] .nav-tile, html[data-theme='medieval'] .spread-choice, html[data-theme='medieval'] .style-choice, html[data-theme='medieval'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23d4a24a'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23d4a24a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23d4a24a'%20stroke='%23d4a24a'%3E%3Cpath%20d='M25%201%20L26.3%204%20L26.3%2011%20L28.5%2011%20L28.5%2012.6%20L26.3%2012.6%20L26.3%2015.5%20L23.7%2015.5%20L23.7%2012.6%20L21.5%2012.6%20L21.5%2011%20L23.7%2011%20L23.7%204Z'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='vampires'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23c0303a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23c0303a'%20stroke='%23c0303a'%3E%3Cpath%20d='M25%202%20C28%207%2030%2010%2030%2012%20A5%205%200%200%201%2020%2012%20C20%2010%2022%207%2025%202Z'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='vampires'] a, html[data-theme='vampires'] button, html[data-theme='vampires'] select, html[data-theme='vampires'] summary, html[data-theme='vampires'] label, html[data-theme='vampires'] [role=button], html[data-theme='vampires'] .nav-tile, html[data-theme='vampires'] .spread-choice, html[data-theme='vampires'] .style-choice, html[data-theme='vampires'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23c0303a'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23c0303a'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23c0303a'%20stroke='%23c0303a'%3E%3Cpath%20d='M25%202%20C28%207%2030%2010%2030%2012%20A5%205%200%200%201%2020%2012%20C20%2010%2022%207%2025%202Z'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='poison'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%237fd650'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%237fd650'%20stroke='%237fd650'%3E%3Cpath%20d='M25%202%20C28%207%2030%2010%2030%2012%20A5%205%200%200%201%2020%2012%20C20%2010%2022%207%2025%202Z'/%3E%3Ccircle%20cx='23.5'%20cy='11'%20r='1'%20fill='%230d1a08'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='poison'] a, html[data-theme='poison'] button, html[data-theme='poison'] select, html[data-theme='poison'] summary, html[data-theme='poison'] label, html[data-theme='poison'] [role=button], html[data-theme='poison'] .nav-tile, html[data-theme='poison'] .spread-choice, html[data-theme='poison'] .style-choice, html[data-theme='poison'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%237fd650'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%237fd650'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%237fd650'%20stroke='%237fd650'%3E%3Cpath%20d='M25%202%20C28%207%2030%2010%2030%2012%20A5%205%200%200%201%2020%2012%20C20%2010%2022%207%2025%202Z'/%3E%3Ccircle%20cx='23.5'%20cy='11'%20r='1'%20fill='%230d1a08'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='flowers'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23f08fb0'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23f08fb0'%20stroke='%23f08fb0'%3E%3Ccircle%20cx='25'%20cy='4.5'%20r='2.6'/%3E%3Ccircle%20cx='29.3'%20cy='7.6'%20r='2.6'/%3E%3Ccircle%20cx='27.6'%20cy='12.6'%20r='2.6'/%3E%3Ccircle%20cx='22.4'%20cy='12.6'%20r='2.6'/%3E%3Ccircle%20cx='20.7'%20cy='7.6'%20r='2.6'/%3E%3Ccircle%20cx='25'%20cy='9'%20r='1.6'%20fill='%23f6e2a4'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='flowers'] a, html[data-theme='flowers'] button, html[data-theme='flowers'] select, html[data-theme='flowers'] summary, html[data-theme='flowers'] label, html[data-theme='flowers'] [role=button], html[data-theme='flowers'] .nav-tile, html[data-theme='flowers'] .spread-choice, html[data-theme='flowers'] .style-choice, html[data-theme='flowers'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23f08fb0'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23f08fb0'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23f08fb0'%20stroke='%23f08fb0'%3E%3Ccircle%20cx='25'%20cy='4.5'%20r='2.6'/%3E%3Ccircle%20cx='29.3'%20cy='7.6'%20r='2.6'/%3E%3Ccircle%20cx='27.6'%20cy='12.6'%20r='2.6'/%3E%3Ccircle%20cx='22.4'%20cy='12.6'%20r='2.6'/%3E%3Ccircle%20cx='20.7'%20cy='7.6'%20r='2.6'/%3E%3Ccircle%20cx='25'%20cy='9'%20r='1.6'%20fill='%23f6e2a4'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='roman'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23d8b25c'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23d8b25c'%20stroke='%23d8b25c'%3E%3Cpath%20d='M19%2014%20C19%208%2022%204%2025%203%20M31%2014%20C31%208%2028%204%2025%203'%20fill='none'%20stroke-width='1.6'/%3E%3Ccircle%20cx='20.5'%20cy='9'%20r='1.3'/%3E%3Ccircle%20cx='29.5'%20cy='9'%20r='1.3'/%3E%3Ccircle%20cx='22.5'%20cy='5.5'%20r='1.3'/%3E%3Ccircle%20cx='27.5'%20cy='5.5'%20r='1.3'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='roman'] a, html[data-theme='roman'] button, html[data-theme='roman'] select, html[data-theme='roman'] summary, html[data-theme='roman'] label, html[data-theme='roman'] [role=button], html[data-theme='roman'] .nav-tile, html[data-theme='roman'] .spread-choice, html[data-theme='roman'] .style-choice, html[data-theme='roman'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%23d8b25c'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%23d8b25c'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%23d8b25c'%20stroke='%23d8b25c'%3E%3Cpath%20d='M19%2014%20C19%208%2022%204%2025%203%20M31%2014%20C31%208%2028%204%2025%203'%20fill='none'%20stroke-width='1.6'/%3E%3Ccircle%20cx='20.5'%20cy='9'%20r='1.3'/%3E%3Ccircle%20cx='29.5'%20cy='9'%20r='1.3'/%3E%3Ccircle%20cx='22.5'%20cy='5.5'%20r='1.3'/%3E%3Ccircle%20cx='27.5'%20cy='5.5'%20r='1.3'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
html[data-theme='astrology'] body { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%237fb0ff'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%237fb0ff'%20stroke='%237fb0ff'%3E%3Cpath%20d='M25%201%20L26.2%207%20L31%203.5%20L27.5%208.3%20L33%209%20L27.5%209.7%20L31%2014.5%20L26.2%2011%20L25%2017%20L23.8%2011%20L19%2014.5%20L22.5%209.7%20L17%209%20L22.5%208.3%20L19%203.5%20L23.8%207Z'/%3E%3C/g%3E%3C/svg%3E") 3 2, auto; }
html[data-theme='astrology'] a, html[data-theme='astrology'] button, html[data-theme='astrology'] select, html[data-theme='astrology'] summary, html[data-theme='astrology'] label, html[data-theme='astrology'] [role=button], html[data-theme='astrology'] .nav-tile, html[data-theme='astrology'] .spread-choice, html[data-theme='astrology'] .style-choice, html[data-theme='astrology'] .sky-card { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='34'%20viewBox='0%200%2034%2034'%3E%3Ccircle%20cx='25'%20cy='9'%20r='8.5'%20fill='%237fb0ff'%20opacity='0.28'/%3E%3Cpath%20d='M3%202%20L3%2023%20L8.5%2017.5%20L12.5%2027%20L16.5%2025.3%20L12.6%2016%20L20%2016%20Z'%20fill='%23140b22'%20stroke='%237fb0ff'%20stroke-width='1.6'%20stroke-linejoin='round'/%3E%3Cg%20fill='%237fb0ff'%20stroke='%237fb0ff'%3E%3Cpath%20d='M25%201%20L26.2%207%20L31%203.5%20L27.5%208.3%20L33%209%20L27.5%209.7%20L31%2014.5%20L26.2%2011%20L25%2017%20L23.8%2011%20L19%2014.5%20L22.5%209.7%20L17%209%20L22.5%208.3%20L19%203.5%20L23.8%207Z'/%3E%3C/g%3E%3C/svg%3E") 3 2, pointer; }
input[type=text], input[type=email], input[type=password], input:not([type]), textarea { cursor: text; }

/* the big "Create a free profile" button (signed out), with Sign in beside it */
.account-bar .acct-create { padding: 10px 22px; border: none; border-radius: 999px; font: inherit; font-size: 1rem; letter-spacing: 0.04em; color: #1a1206;
    background: linear-gradient(180deg, #f6e2a4, #d9b25c); box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 55%, transparent); margin-right: 8px; }
.account-bar .acct-create:hover { filter: brightness(1.08); }
.account-bar .acct-signin { background: transparent; }
@media (max-width: 720px) { .account-bar .acct-create { padding: 9px 16px; font-size: 0.92rem; } }

/* bell switch next to the language menu */
.bell-pick { position: absolute; left: 132px; top: 10px; z-index: 5; width: 32px; height: 28px; border-radius: 999px; font-size: 0.85rem; line-height: 1;
    background: rgba(0, 0, 0, 0.55); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: #fff; }
@media (max-width: 720px) { .bell-pick { left: 122px; top: 8px; } }

/* the Moon now and the next two cycles of phases, just below the banner */
.moon-strip { display: flex; align-items: center; gap: 14px; margin: -8px 0 16px; padding: 10px 14px; border-radius: 14px; overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); background: rgba(var(--panel-rgb), 0.6); }
.moon-now { display: flex; align-items: center; gap: 10px; flex: none; padding-right: 14px; border-right: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.moon-now small { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.moon-now b { display: block; font-weight: normal; color: #f3e6bd; }
.moon-now span { font-size: 0.78rem; color: #c8c0b0; }
.moon-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.moon-q { flex: none; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 4px 10px 4px 6px;
    border-radius: 10px; background: rgba(0, 0, 0, 0.25); }
.moon-q svg { grid-row: span 2; }
.moon-q b { font-weight: normal; font-size: 0.78rem; color: #e8dcae; white-space: nowrap; }
.moon-q span { font-size: 0.72rem; color: #a89f8a; white-space: nowrap; }
@media (max-width: 720px) { .moon-strip { flex-direction: column; align-items: stretch; gap: 8px; margin: 0 0 12px; } .moon-now { border-right: none; padding-right: 0; } }

/* ================= profile: My progress ================= */
.pg-level { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; }
.pg-badge { flex: none; width: 74px; height: 74px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 2px solid var(--accent); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent); background: rgba(0, 0, 0, 0.35); }
.pg-badge small { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c8c0b0; }
.pg-badge b { font-size: 1.8rem; font-weight: normal; color: var(--accent); line-height: 1; }
.pg-xp { flex: 1; min-width: 0; }
.pg-xprow { display: flex; justify-content: space-between; font-size: 0.78rem; color: #c8c0b0; }
.pg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 10px; }
.pg-stat { padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.pg-stat b { display: block; font-weight: normal; font-size: 1.15rem; color: #f3e6bd; }
.pg-stat span { display: block; font-size: 0.74rem; color: var(--accent); }
.pg-stat small { display: block; font-size: 0.68rem; color: #9d947e; }
.pg-how { margin: 4px 0 12px; }
.pg-h { color: var(--accent); font-weight: normal; margin: 10px 0 8px; }
.pg-path { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.pg-path li { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 6px 0 10px; }
.pg-path li::before { content: ''; position: absolute; left: -21px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: #1b1530; border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.pg-path li.done::before { background: var(--accent); }
.pg-path li.here::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.pg-lv b { display: block; font-weight: normal; color: #f3e6bd; font-size: 0.9rem; }
.pg-lv small { display: block; font-size: 0.7rem; color: #9d947e; }
.pg-lv em { display: inline-block; margin-top: 3px; font-style: normal; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: #1a1206; background: var(--accent); border-radius: 999px; padding: 1px 7px; }
.pg-sp { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-chip { display: inline-flex; flex-direction: column; padding: 4px 10px; border-radius: 10px; font-size: 0.8rem; color: #a89f8a; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.08); }
.pg-chip i { font-style: normal; font-size: 0.66rem; color: #8a8270; }
.pg-chip.open { color: #f3e6bd; border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.pg-chip.prem { border-style: dashed; }
.pg-go { margin: 14px 0 4px; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .pg-stats { grid-template-columns: repeat(2, 1fr); } .pg-path li { grid-template-columns: 1fr; gap: 4px; } }

/* Your Chart: the birthday bar shared with Your Sky */
#astro-form-section[hidden] { display: none; }
.astro-bar-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* theme menu: top right of the page banner (the language menu and bell are top left) */
.theme-pick { position: absolute; right: 10px; top: 10px; z-index: 5; display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px 3px 9px; border-radius: 999px;
    background: rgba(0, 0, 0, 0.55); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); font-size: 0.8rem; color: var(--accent); }
.theme-pick select { background: transparent; color: #ece6d6; border: none; font: inherit; font-size: 0.8rem; color-scheme: dark; max-width: 9.5em; }
.theme-pick select option { background: #160b28; }
@media (max-width: 720px) { .theme-pick { right: 8px; top: 8px; } .theme-pick select { max-width: 7.5em; } }

/* the $1 model: buy box, how it works, unlock lists, locked decks */
.buy-box { margin: 6px 0 22px; } .buy-box[hidden] { display: none; }
.buy-box .plan-card { max-width: 420px; margin: 0 auto; }
.how-list { margin: 0 0 18px; padding-left: 20px; line-height: 1.6; }
.unlock-h { color: var(--accent); font-weight: normal; margin: 14px 0 8px; }
.unlock-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.unlock-item { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: #ece6d6; background: rgba(var(--panel-rgb), 0.6);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.unlock-item:hover { border-color: var(--accent); }
.unlock-item b { display: block; font-weight: normal; color: var(--accent); }
.unlock-item small { font-size: 0.74rem; color: #c8c0b0; }
.style-choice.locked { opacity: 0.55; filter: grayscale(0.6); }
.style-choice .lock-tag { display: block; font-size: 0.66rem; color: #c8c0b0; letter-spacing: 0; text-transform: none; }
a.pg-chip { text-decoration: none; }
a.pg-chip:hover { border-color: var(--accent); color: #f3e6bd; }
.pg-chip.deck { border-style: dotted; }

/* ================= formatting fixes (deep check, 2026-11-26) ================= */
/* banner corner menus: language + bell share one row (top left), theme top right; compact, fixed pixel sizes */
.hdr-tools { position: absolute; left: 10px; top: 10px; z-index: 5; display: flex; align-items: center; gap: 6px; max-width: calc(50% - 16px); }
.hdr-tools .lang-pick, .hdr-tools .bell-pick { position: static; left: auto; top: auto; }
.lang-pick, .theme-pick { font-size: 12px; line-height: 1.2; padding: 3px 6px 3px 8px; max-width: 100%; min-width: 0; }
.lang-pick select, .theme-pick select { font-size: 12px; max-width: 9em; min-width: 0; text-overflow: ellipsis; }
.bell-pick { flex: none; width: 28px; height: 26px; padding: 0; font-size: 13px; }
.theme-pick { max-width: calc(50% - 16px); }
@media (max-width: 720px) {
    .hdr-tools { left: 6px; top: 6px; gap: 4px; }
    .theme-pick { right: 6px; top: 6px; }
    .lang-pick, .theme-pick { font-size: 11px; padding: 2px 4px 2px 6px; }
    .lang-pick select, .theme-pick select { font-size: 11px; max-width: 6.6em; }
    .bell-pick { width: 24px; height: 22px; font-size: 11px; }
}

/* 2. deck names fit their tiles without a word ever being split (js/script.js shrinks a name too long for its tile) */
.style-choice span, .style-choice small { display: block; max-width: 100%; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.style-choice span { letter-spacing: 0.02em; line-height: 1.2; }

/* 3. pop-up close buttons are a plain ✕ (long words like "Schließen" no longer collide with titles); the text stays for screen readers */
.acct-modal .card-popup-close, #paywall .card-popup-close, .library-panel > .card-popup-close {
    font-size: 0 !important; width: 34px; height: 34px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
.acct-modal .card-popup-close::after, #paywall .card-popup-close::after, .library-panel > .card-popup-close::after { content: '✕'; font-size: 16px; line-height: 1; }
.acct-modal h2, #paywall h2 { padding-right: 36px; }

/* 4. the Create a free profile button is a button, not a link */
.account-bar .acct-create { text-decoration: none; }

/* 5. the account menu opens above the sticky navigation bar */
.account-bar { position: relative; z-index: 70; }
.acct-dropdown { z-index: 71; }

/* 6. sky spread tiles: normal sentence case, not the site's capitalised button style */
.sky-sp, .sky-sp em, .sky-sp small { text-transform: none; letter-spacing: normal; }
.sky-sp b { text-transform: none; letter-spacing: 0.02em; }

/* 7. phones: room at the bottom so the music button and Aurora don't cover the last lines */
@media (max-width: 720px) { body { padding-bottom: calc(var(--navfoot, 72px) + var(--mubar, 0px) + 74px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 720px) { .lang-pick select { max-width: 8.5em; } .theme-pick select { max-width: 8em; } }

/* spread guide (how to do each spread, what each place means) */
.spread-guide-btn { display: inline-block; margin: 8px auto 0; font-size: 0.9rem; }
.step-spread .spread-guide-btn { display: block; }
.guide-row { text-align: center; margin: -4px 0 10px; }
.guide-panel { max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; text-align: left; }
.guide-panel h3 { margin: 16px 0 6px; font-size: 1rem; }
.guide-steps, .guide-places { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; line-height: 1.45; }
.guide-places li b { display: block; }
.guide-places li span { opacity: 0.85; }

/* reversed cards lie upside down on the cloth and in the card window */
.place.is-rev .flip-face.front > *, .card-popup-face.is-rev > * { transform: rotate(180deg); }

/* deck pick after a reading */
.deck-pick { margin: 18px 0 6px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 12px; }
.deck-pick h3 { margin: 0 0 6px; }
.deck-pick-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.deck-pick-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-transform: none; letter-spacing: normal; }
.deck-pick-list small { opacity: 0.75; font-size: 0.75rem; }
.deck-pick-msg:empty { display: none; }

/* the planet that turned a reversed card */
.card-popup-why { margin: 6px 0 0; font-style: italic; opacity: 0.85; font-size: 0.92rem; }
.card-popup-why[hidden] { display: none; }

/* Your week in the sky */
.sky-week { margin: 26px 0 10px; display: grid; gap: 16px; }
.sky-week > h2 { margin: 0; }
.sky-week h4 { margin: 12px 0 6px; color: #e8dcae; font-weight: normal; font-size: 0.95rem; }
.week-wheel .week-tick { stroke: color-mix(in srgb, var(--accent) 18%, transparent); }
.week-wheel .week-track { fill: none; stroke: rgba(232, 220, 174, 0.08); stroke-width: 1; }
.week-wheel .week-path { fill: none; stroke: var(--c); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.week-wheel .week-start { fill: none; stroke: var(--c); stroke-width: 1.4; }
.sky-week-tags .tag, .sky-sign .tag, .sky-week-list .tag { font-size: 0.68rem; padding: 1px 7px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.sky-week-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.86rem; }
.sky-week-list small, .sky-day small { color: #9d947e; }
.sky-week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) { .sky-week-days { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
.sky-day { padding: 8px 10px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); font-size: 0.82rem; }
.sky-day h4 { margin: 0 0 4px; }
.sky-day ul { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 4px; }
.sky-week-signs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 8px; }
.sky-sign { padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); font-size: 0.84rem; }
.sky-sign.mine { border-color: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent) inset; }
.sky-sign h4 { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sky-sign-glyph { font-size: 1.2rem; color: var(--accent); }
.sky-sign-tone { margin: 4px 0 6px; font-style: italic; }
.sky-sign[data-tone="up"] .sky-sign-tone { color: #9fd49a; }
.sky-sign[data-tone="down"] .sky-sign-tone { color: #e3a07f; }
.sky-sign ul { margin: 0 0 6px; padding-left: 16px; display: grid; gap: 3px; }
.sky-sign p { margin: 2px 0; }
#sky-week-table td:last-child { font-size: 0.78rem; }

/* reversed cards: with reversals or upright only */
.step-rev .rev-label { margin: 0 0 8px; }
.rev-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.rev-mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: rgba(var(--panel-rgb), 0.45); text-align: left; }
.rev-mode:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent) inset; }
.rev-mode input { margin-top: 3px; accent-color: var(--accent); }
.rev-mode span { display: grid; gap: 3px; }
.rev-mode .rev-name { font-weight: bold; color: var(--accent); font-size: 0.95rem; }
.rev-mode small { opacity: 0.8; font-size: 0.8rem; line-height: 1.35; }

/* numerology */
.num-math { font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.reading-num span + span { margin-left: 0.25em; }
.astro-lifepath { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; margin: 14px 0; }
.astro-lifepath .astro-card { margin: 0; }
.astro-lifepath h4 { margin: 0 0 4px; color: var(--accent); font-size: 1.1rem; }
.astro-lifepath p { margin: 3px 0; }
.sky-num-row { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: start; margin-bottom: 10px; font-size: 0.88rem; }
.sky-num-row p { margin: 1px 0; }
.sky-num-big { font-size: 2rem; line-height: 1; color: var(--accent); text-align: center; font-variant-numeric: tabular-nums; }

/* Your Sky: five cards or the Tree of Life */
.sky-mode { display: flex; gap: 8px; justify-content: center; margin: 6px 0 14px; flex-wrap: wrap; }
.sky-mode-btn { display: grid; gap: 2px; min-width: 150px; padding: 8px 16px; border-radius: 12px; cursor: pointer; text-transform: none; letter-spacing: normal;
    background: rgba(var(--panel-rgb), 0.5); color: #e8dcae; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.sky-mode-btn small { font-size: 0.72rem; opacity: 0.8; }
.sky-mode-btn.on { border-color: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent) inset; color: var(--accent); }
.sky-tree-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 170px)); justify-content: center; column-gap: 26px; row-gap: 4px; }
.sky-tree-grid .sky-slot { text-align: center; }
.sky-tree-grid details summary { cursor: pointer; font-size: 0.78rem; color: var(--accent); }
@media (max-width: 640px) { .sky-tree-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; } .sky-tree-grid .sky-role { font-size: 0.62rem; } }
.sky-cards[hidden], .sky-tree[hidden] { display: none !important; }
.sky-tree-grid .sky-card { width: 100%; max-width: 118px; margin: 0 auto; display: block; }

/* the Donate button at the top of every page (account bar, far left) and the donation page */
.account-bar .acct-donate { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; min-height: 40px; border-radius: 999px; text-decoration: none; font-size: 0.95rem; letter-spacing: 0.05em;
    color: #fff4e6; background: linear-gradient(180deg, #c2364f, #7d1730); border: 1px solid #f0b0bd88; box-shadow: 0 0 18px #c2364f66; }
.account-bar .acct-donate:hover { color: #fff; filter: brightness(1.12); box-shadow: 0 0 26px #e0506a88; }
@media (max-width: 720px) { .account-bar .acct-donate { padding: 8px 14px; font-size: 0.88rem; min-height: 38px; } }
.donate-hero { text-align: center; max-width: 760px; margin: 0 auto 26px; }
.donate-hero p { font-size: 1.08rem; line-height: 1.65; }
.donate-slot { margin: 22px auto 8px; padding: 22px; max-width: 520px; text-align: center; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    background: rgba(var(--panel-rgb), 0.82); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 22%, transparent); }
.donate-slot .soon { color: var(--accent); font-style: italic; margin: 0; }
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0 28px; }
.donate-grid .dcard { padding: 18px 20px; border-radius: 14px; background: rgba(var(--panel-rgb), 0.78); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.donate-grid .dcard h3 { margin: 0 0 8px; color: var(--accent-hi); font-size: 1.1rem; }
.donate-grid .dcard p, .donate-grid .dcard li { line-height: 1.55; margin: 4px 0; }
.donate-grid .dcard ul { margin: 0; padding-left: 18px; }
.donate-thanks { text-align: center; font-size: 1.05rem; color: var(--accent-hi); margin: 10px 0 30px; }
.donate-form { display: inline; margin: 0; }
.donate-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 9px 20px; min-height: 40px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.95rem; letter-spacing: 0.05em;
    color: #fff4e6; background: linear-gradient(180deg, #c2364f, #7d1730); border: 1px solid #f0b0bd88; box-shadow: 0 0 18px #c2364f66; text-transform: none; }
.donate-btn:hover { filter: brightness(1.12); box-shadow: 0 0 26px #e0506a88; transform: none; }
.donate-btn.big { padding: 13px 30px; font-size: 1.08rem; }
.account-bar .donate-top { margin-right: auto; display: inline-flex; align-items: center; gap: 10px; }
.account-bar .donate-top .donate-btn { color: #fff4e6; text-decoration: none; }
.account-bar .donate-top a.donate-why { font-size: 0.8rem; }
@media (max-width: 720px) { .account-bar .donate-top .donate-btn { padding: 8px 14px; font-size: 0.88rem; min-height: 38px; } .account-bar .donate-top a.donate-why { display: none; } }
.donate-support { margin: 30px auto 10px; max-width: 620px; padding: 20px 22px; text-align: center; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
    background: rgba(var(--panel-rgb), 0.8); }
.donate-support h3 { margin: 0 0 6px; color: var(--accent-hi); }
.donate-support p { margin: 0 0 14px; line-height: 1.55; }
.donate-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.donate-why { color: var(--accent); }
.donate-thanks-banner { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px);
    padding: 12px 18px; border-radius: 14px; background: rgba(20, 10, 30, 0.95); color: #f7e6b0; border: 1px solid #e8c872; box-shadow: 0 10px 40px #000a, 0 0 24px #e8c87255; font-size: 1.02rem; }
.donate-thanks-banner button { margin: 0; padding: 2px 10px; min-height: 0; background: none; border: 1px solid #e8c87288; border-radius: 8px; color: #f7e6b0; font-size: 1.1rem; cursor: pointer; }
.site-disclaimer { margin: 14px auto 0; max-width: 820px; font-size: 0.74rem; line-height: 1.5; opacity: 0.72; }
.site-disclaimer strong { color: var(--accent); font-weight: normal; letter-spacing: 0.04em; }
.account-bar .donate-top button.donate-btn { padding: 9px 20px; min-height: 40px; border-radius: 999px; font-size: 0.95rem; letter-spacing: 0.05em; text-decoration: none;
    color: #fff4e6; background: linear-gradient(180deg, #c2364f, #7d1730); border: 1px solid #f0b0bd88; box-shadow: 0 0 18px #c2364f66; }
.account-bar .donate-top button.donate-btn:hover { color: #fff; filter: brightness(1.12); box-shadow: 0 0 26px #e0506a88; }
@media (max-width: 720px) { .account-bar .donate-top button.donate-btn { padding: 8px 14px; font-size: 0.88rem; min-height: 38px; } }
/* The Library page: the cards, then the shelf of sacred texts */
.lib-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 10px 0 30px; }
.lib-cards .paywall-opt { text-decoration: none; }
.lib-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 14px 0 10px; }
.lib-tools input { flex: 1 1 280px; max-width: 520px; }
.lib-shelves { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.lib-chip { margin: 0; padding: 6px 14px; min-height: 0; border-radius: 18px; font-size: 0.85rem; text-transform: none; letter-spacing: 0.02em; color: var(--accent);
    background: rgba(var(--panel-rgb), 0.7); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: none; cursor: pointer; }
.lib-chip.on { color: #1a1206; background: linear-gradient(180deg, #f6e2a4, #d9b25c); border-color: transparent; }
.lib-shelf h3 { margin: 22px 0 8px; color: var(--accent-hi); } .lib-shelf h3 small { font-size: 0.8rem; opacity: 0.7; }
.lib-books { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lib-book { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-radius: 12px; background: rgba(var(--panel-rgb), 0.78);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.lib-meta { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; } .lib-meta b { color: var(--accent-hi); font-weight: normal; font-size: 1.02rem; }
.lib-meta span { font-size: 0.85rem; opacity: 0.85; } .lib-meta em { font-size: 0.83rem; opacity: 0.75; }
.lib-acts { display: flex; gap: 8px; } .lib-acts .ghost-btn { text-decoration: none; padding: 6px 14px; }
.lib-none { opacity: 0.8; font-style: italic; } .lib-rights { margin-top: 26px; }

.lib-levels { margin-bottom: 8px; }
.lib-lv { display: inline-block; vertical-align: 2px; margin-right: 6px; padding: 1px 8px; border-radius: 10px; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; font-style: normal; }
.lib-lv.lv1, .lib-chip.lv1.on { background: #2f7a52; color: #e8fff0; } .lib-lv.lv2, .lib-chip.lv2.on { background: #7a5a1e; color: #fff4dc; } .lib-lv.lv3, .lib-chip.lv3.on { background: #6e2340; color: #ffe6ee; }
.lib-path { font-size: 0.95rem; }

/* nav tiles: label and subtitle stacked from the bottom, so a two-line subtitle pushes the label up instead of running into it */
.site-nav .nav-tile { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; padding: 0 6px 8px; }
.site-nav .nav-tile .nav-label, .site-nav .nav-tile .nav-sub { position: relative; top: auto; bottom: auto; left: auto; right: auto; z-index: 1; }
.site-nav .nav-tile .nav-label { line-height: 1.1; }
.site-nav .nav-tile .nav-sub { line-height: 1.2; }
@media (max-width: 720px) {   /* the phone icon bar keeps its icon-on-top layout */
    .site-nav .nav-tile { justify-content: flex-start; gap: 3px; padding: 3px 0 2px; }
    .site-nav .nav-tile .nav-label { line-height: 1.15; }
}

.lib-toggle { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; }
.lib-toggle:hover, .lib-toggle:focus-visible { background: rgba(var(--panel-rgb), 0.6); outline: none; }
.lib-chev { display: inline-block; transition: transform 0.2s ease; color: var(--accent); }
.lib-shelf.open .lib-chev { transform: rotate(90deg); }
.lib-openall { display: flex; gap: 8px; margin: 4px 0 6px; } .lib-openall .ghost-btn { padding: 5px 14px; }
.lib-cards button.paywall-opt { font: inherit; text-align: left; cursor: pointer; width: 100%; }

/* levels (2026-11-29): greyed locks, the level-up moment, the deck picker, the XP bar in the account menu */
.spread-choice.locked, .style-choice.locked { opacity: 0.45; filter: grayscale(0.85); }
.spread-choice.locked:hover, .style-choice.locked:hover { opacity: 0.7; }
.pg-chip.locked { opacity: 0.55; }
.lvl-up { text-align: center; position: relative; padding: 10px 0 4px; }
.lvl-kicker { margin: 6px 0 0; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; color: var(--accent); }
.lvl-num { margin: 0 0 10px; font-size: 3rem; color: var(--accent-hi); text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 70%, transparent); animation: lvlPop 0.9s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes lvlPop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lvl-burst { position: absolute; left: 50%; top: 70px; width: 0; height: 0; pointer-events: none; }
.lvl-burst span { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; border: 2px solid var(--accent-hi); opacity: 0; animation: lvlRing 1.6s ease-out infinite; }
.lvl-burst span:nth-child(2) { animation-delay: 0.4s; } .lvl-burst span:nth-child(3) { animation-delay: 0.8s; }
@keyframes lvlRing { from { transform: scale(0.2); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lvl-num, .lvl-burst span { animation: none; } }
.lvl-open { list-style: none; padding: 0; margin: 0 0 12px; } .lvl-open li { color: var(--accent-hi); margin: 2px 0; }
.deck-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 12px 0; }
.deck-pick-card { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 8px; border-radius: 12px; cursor: pointer; text-transform: none; letter-spacing: 0;
    background: rgba(var(--panel-rgb), 0.8); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: none; color: var(--accent-hi); font: inherit; }
.deck-pick-card img { width: 100%; aspect-ratio: 0.58; object-fit: cover; border-radius: 8px; }
.deck-pick-card small { font-size: 0.75rem; color: #d8d0bc; } .deck-pick-card:disabled { opacity: 0.5; cursor: default; }
.deck-pick-card:not(:disabled):hover { border-color: var(--accent-hi); transform: translateY(-3px); }
.gold-btn { color: #1a1206 !important; background: linear-gradient(180deg, #f6e2a4, #d9b25c) !important; border-color: transparent !important; }
.menu-xp { padding: 10px 14px 8px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); min-width: 200px; }
.menu-xp-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: #ece6d6; margin-bottom: 5px; } .menu-xp-row b { color: var(--accent-hi); font-weight: normal; }
.account-bar .menu-xp button { padding: 8px 0 2px; font-size: 0.85rem; color: var(--accent); }
/* Your Sky's Tree of Life, turned one card at a time */
.tree-guide { text-align: center; margin: 6px auto 14px; max-width: 640px; padding: 10px 14px; border-radius: 12px; background: rgba(var(--panel-rgb), 0.78);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.tree-guide b { color: var(--accent-hi); font-weight: normal; }
.tree-guide.nudge { animation: treeNudge 0.5s ease; }
@keyframes treeNudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.sky-tree .sky-card.next { box-shadow: 0 0 0 2px var(--accent-hi), 0 0 26px var(--accent); animation: treePulse 1.6s ease-in-out infinite; border-radius: 10px; }
@keyframes treePulse { 50% { box-shadow: 0 0 0 2px var(--accent-hi), 0 0 40px var(--accent-hi); } }
.sky-tree .sky-slot.waiting .sky-name, .sky-tree .sky-slot.waiting details { visibility: hidden; }
.sky-tree .sky-slot.waiting .sky-card:not(.next) { opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .sky-tree .sky-card.next, .tree-guide.nudge { animation: none; } }
@media (max-width: 720px) { .site-nav .nav-tile .nav-label { font-size: 0.62rem; letter-spacing: 0; white-space: nowrap; max-width: 100%; } }
@media (max-width: 360px) { .site-nav .nav-tile .nav-label { font-size: 0.56rem; } }
.lib-books[hidden] { display: none; }

/* ---------- scrollbars and sliders follow the chosen theme on every page (owner, 2026-11-29): the browser's own grey and
   white bars clashed with the decks' colours. The thumb takes the theme's accent, the track the theme's panel colour. */
html, body, * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 62%, #000) rgba(var(--panel-rgb), 0.85); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(var(--panel-rgb), 0.85); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--btn-top), var(--btn-bot)); border-radius: 6px; border: 2px solid rgba(var(--panel-rgb), 0.95); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hi); }
::-webkit-scrollbar-corner { background: transparent; }
input[type="range"], input[type="checkbox"], input[type="radio"], progress { accent-color: var(--accent); }

/* ---------- phones: less on the screen at once (owner, 2026-11-29). Nine tiles stay on one row; the live-sky banner keeps
   only the planets' names (no degrees, no buttons over the title); the Moon strip shows today's Moon alone. */
@media (max-width: 700px) {
    .site-nav { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; }
    .site-nav .nav-tile .nav-icon { width: 32px; height: 32px; }
    .site-nav .nav-tile .nav-label { font-size: 0.6rem; letter-spacing: 0; white-space: nowrap; }
    .sky-banner .rs-top { display: none; }
    .sky-banner .s3-label { font-size: 0; line-height: 0; }
    .sky-banner .s3-label b { font-size: 10px; line-height: 1.1; font-weight: normal; }
    .sky-banner .s3-label:not(.body) { display: none; }
    .moon-strip { padding: 8px 12px; }
    .moon-strip .moon-list { display: none; }
    .moon-now { gap: 10px; }
}

/* The Library's card finder (js/library_cards.js) and the picture index of card meanings (/cards/) */
.lib-jump { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 18px; }
.lib-jump a { display: inline-block; padding: 9px 20px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 22px; color: var(--accent); text-decoration: none; }
.lib-jump a:hover, .lib-jump a:focus-visible { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-hi); }
#lc-search, #texts-search { padding: 11px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: rgba(8, 6, 16, 0.65); color: #ece6d6; font: inherit; font-size: 1rem; }
#card-meanings, #sacred-texts { scroll-margin-top: 90px; }
.lc-chosen { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; margin: 0 0 6px; }
.lc-chosen h3 { margin: 0; color: var(--accent-hi); font-weight: normal; font-size: 1.35rem; letter-spacing: 0.06em; }
#lc-back { margin: 0; }
.lc-card.plate img { aspect-ratio: 530 / 878; }
.lc-grid { margin: 6px 0 22px; }
.lc-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 12px; }
.lc-head { color: var(--accent); font-weight: normal; letter-spacing: 0.1em; text-transform: uppercase; font-size: 1rem; margin: 24px 0 12px; }
.lc-card { display: flex; flex-direction: column; gap: 7px; align-items: stretch; justify-content: flex-start; width: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0;
    background: none; border: 0; border-radius: 8px; box-shadow: none; color: #ece6d6; font: inherit; font-weight: normal; text-transform: none; letter-spacing: 0; text-align: center; text-decoration: none; cursor: pointer; }
.lc-card img { display: block; width: 100%; height: auto; aspect-ratio: 300 / 520; object-fit: cover; border-radius: 7px; background: #111;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); transition: transform 0.18s ease; }
.lc-grid.plates .lc-card img { aspect-ratio: 530 / 878; }
.lc-card:hover, .lc-card:focus-visible { box-shadow: none; background: none; }
.lc-card:hover img, .lc-card:focus-visible img { transform: translateY(-5px); box-shadow: 0 12px 22px rgba(0, 0, 0, 0.65), 0 0 0 2px var(--accent-hi); }
.lc-name { font-size: 0.9rem; line-height: 1.25; color: #efe4bd; overflow-wrap: anywhere; }
.library-panel[hidden] { display: none !important; }
.lib-more { display: inline-block; padding: 9px 18px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 22px; color: var(--accent); text-decoration: none; }
@media (max-width: 640px) { .lc-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; } .lc-name { font-size: 0.78rem; } }
/* a faith deck's own meanings, above the standard ones (js/deck_browser.js) */
.lc-faithnote { text-align: center; font-style: italic; }
.lib-faith { margin: 0 0 18px; padding: 4px 16px 10px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.library-zoom-copy .lib-faith-name { margin-bottom: 4px; color: var(--accent-hi); letter-spacing: 0.04em; }
.library-zoom-copy .lib-faith [hidden] { display: none; }
.library-zoom-copy p.lib-f-deep:not(.card-popup-label):not(.card-popup-kicker) { margin-top: -4px; opacity: 0.88; }
.library-zoom-copy .lib-faith p.lib-faith-note:not(.card-popup-label) { margin-top: 10px; font-size: 0.82rem; font-style: italic; opacity: 0.75; }
.library-zoom-copy .lib-standard { margin: 0 0 4px; color: var(--accent); font-size: 0.95rem; opacity: 0.85; }
.library-zoom-copy.has-faith p:not(.card-popup-kicker):not(.card-popup-label):not(.lib-faith-note) { font-size: 1rem; }
/* the cards Aurora draws in her chat: laid out as a spread on its own cloth; a tap opens one large with its meaning */
.au-msg.au-draw { align-self: stretch; max-width: 100%; }
.au-msg.au-draw b { color: #f1d489; font-weight: 600; }
.au-spread { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 8px; margin: 0 0 10px; padding: 10px 6px 4px; border-radius: 12px;
    background: radial-gradient(circle at 50% 35%, rgba(122, 82, 168, 0.5), rgba(20, 10, 34, 0.65) 75%); border: 1px solid rgba(232, 200, 114, 0.35); box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.45); }
.au-panel .au-spread .au-card { flex: 0 1 calc(33.33% - 6px); max-width: 104px; min-width: 0; min-height: 0; width: auto; display: flex; flex-direction: column; align-items: center; gap: 5px; margin: 0; padding: 0;
    background: none; border: none; box-shadow: none; cursor: zoom-in; color: #f3e6bd; font: inherit; font-weight: normal; text-transform: none; letter-spacing: normal; }
.au-panel .au-spread.au-n1 .au-card { flex-basis: 60%; max-width: 148px; }
.au-card em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #e8c872; }
.au-card img { display: block; width: 100%; height: auto; aspect-ratio: 264 / 456; object-fit: cover; border-radius: 8px; border: 1.5px solid #e8c872; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65), 0 0 12px rgba(232, 200, 114, 0.25);
    animation: auDeal 0.55s ease-out calc(var(--k) * 0.16s) backwards; transition: transform 0.18s, box-shadow 0.18s; }
.au-card:hover img, .au-card:focus-visible img { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.7), 0 0 18px rgba(232, 200, 114, 0.55); }
.au-card small { font-size: 0.74rem; line-height: 1.2; text-align: center; }
.au-msg .au-spread .au-tap { flex: 0 0 100%; margin: 2px 0 0; text-align: center; font-size: 0.68rem; font-style: italic; color: #bdb3d4; }
@keyframes auDeal { from { opacity: 0; transform: translateY(18px) rotateY(85deg) scale(0.9); } }
.au-zoom { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(5, 2, 12, 0.88); }
.au-zoom-panel { position: relative; width: min(440px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 16px 16px 14px; text-align: center; border-radius: 16px;
    color: #ece6d6; background: rgba(16, 9, 28, 0.99); border: 1px solid #e8c872; box-shadow: 0 0 34px rgba(232, 200, 114, 0.35); }
.au-zoom-face { display: block; margin: 0 auto 10px; width: auto; max-width: 78%; max-height: 52vh; border-radius: 12px; border: 2px solid #e8c872; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7); }
.au-zoom-panel em { font-style: normal; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #e8c872; }
.au-zoom-panel h3 { margin: 2px 0 8px; font-weight: normal; font-size: 1.35rem; color: #f1d489; }
.au-zoom-text { text-align: left; font-size: 0.92rem; line-height: 1.5; }
.au-zoom-text h4 { margin: 12px 0 2px; font-weight: normal; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #e8c872; }
.au-zoom-text p { margin: 0 0 4px; } .au-zoom-text a { color: #f1d489; } .au-zoom-note { font-size: 0.74rem; color: #9d94b0; }
.au-zoom .au-zoom-x { position: sticky; top: 0; float: right; z-index: 1; min-height: 0; width: 36px; height: 36px; margin: -6px -6px 0 0; padding: 0; border-radius: 50%; cursor: pointer; font-size: 1rem; color: #f3e6bd; background: rgba(0, 0, 0, 0.7); border: 1px solid #e8c872; box-shadow: none; }
.au-zoom-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 0.8rem; color: #bdb3d4; }
.au-zoom .au-zoom-nav button { min-height: 0; width: auto; margin: 0; padding: 8px 14px; cursor: pointer; font: inherit; text-transform: none; letter-spacing: normal; color: #f3e6bd; background: transparent; border: 1px solid rgba(232, 200, 114, 0.5); border-radius: 999px; box-shadow: none; }
/* the chat's own buttons stay small on phones, and the suggestions sit in one row that slides, leaving room for the talk */
.au-panel .au-chips button, .au-panel .au-form button, .au-panel .au-x { min-height: 0; width: auto; text-transform: none; letter-spacing: normal; box-shadow: none; }
.au-panel .au-chips button { flex: none; padding: 6px 11px; font-size: 0.76rem; font-weight: normal; }
.au-panel .au-x { padding: 6px 10px; border: none; background: none; }
@media (max-width: 720px) { .au-panel .au-form { flex-direction: row; align-items: center; } .au-panel .au-chips { flex-wrap: nowrap; overflow-x: auto; flex: none; } .au-panel .au-form button { padding: 10px 16px; margin: 0; } .au-panel .au-form input { min-height: 0; margin: 0; padding: 10px; } }
