@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --night-violet: #1a0b2e;
    --night-violet-light: #2d144d;
    --amber-orange: #ff8c00;
    --light-gold: #f1d592;
    --text-light: #e0e0e0;
    --border-gold: rgba(241, 213, 146, 0.4);
    --card-bg: rgba(10, 10, 12, 0.78);
    --ki-blue: #78d8ff;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text-light);
    font-family: 'Lora', serif;
    background: radial-gradient(circle at top, var(--night-violet-light) 0%, #0f061a 58%, #07030d 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 18% 12%, rgba(255, 140, 0, 0.18), transparent 24%), radial-gradient(circle at 88% 82%, rgba(241, 213, 146, 0.12), transparent 28%);
}

body:has(#home-view.view-active) {
    color: #F4E8C8;
    background: #365229;
}

body:has(#home-view.view-active)::before {
    background: radial-gradient(circle at 18% 14%, rgba(201, 164, 92, 0.16), transparent 26%), radial-gradient(circle at 82% 78%, rgba(47, 75, 35, 0.34), transparent 32%);
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    width: min(100%, 980px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px 18px 96px;
    display: grid;
    align-items: center;
}

.view {
    display: none;
}

.view-active {
    display: block;
    animation: rise 320ms ease both;
}

.profile-card,
.content-card {
    position: relative;
    border: 1px solid var(--border-gold);
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(255, 140, 0, 0.08), var(--card-bg));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    padding: 28px;
    overflow: hidden;
}

.hero-card {
    text-align: center;
}

#home-view .hero-card {
    border-color: rgba(201, 164, 92, 0.62);
    background: linear-gradient(155deg, rgba(244, 232, 200, 0.09), rgba(47, 75, 35, 0.58));
    box-shadow: 0 28px 90px rgba(37, 59, 29, 0.44);
}

#home-view .eyebrow {
    color: #C9A45C;
    letter-spacing: 0.24em;
}

#home-view h1 {
    color: #F4E8C8;
    font-family: 'Lora', serif;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: none;
    text-shadow: 0 8px 30px rgba(37, 59, 29, 0.48);
}

#home-view #home-title {
    font-size: clamp(1.95rem, 8vw, 3.15rem);
}

#home-view .intro {
    color: #F4E8C8;
}

.profile-image-frame {
    width: 148px;
    height: 148px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--light-gold);
    box-shadow: 0 0 38px rgba(255, 140, 0, 0.25);
    background: #12061f;
}

#home-view .profile-image-frame {
    border-color: #C9A45C;
    box-shadow: 0 0 0 7px rgba(201, 164, 92, 0.14), 0 22px 48px rgba(37, 59, 29, 0.38);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.eyebrow {
    margin: 18px 0 8px;
    color: var(--amber-orange);
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--light-gold);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.1rem, 11vw, 4.5rem);
    line-height: 1.02;
}

h2 {
    font-size: clamp(1.65rem, 7vw, 3.2rem);
    line-height: 1.1;
}

h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.intro,
.content-card > p {
    max-width: 620px;
    margin: 18px auto 0;
    line-height: 1.75;
}

.choice-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin: 30px 0 22px;
    align-items: stretch;
}

.choice-card {
    width: 100%;
    min-width: 0;
    min-height: 250px;
    border: 1px solid var(--border-gold);
    border-radius: 24px;
    padding: 22px 18px 24px;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.shop-card {
    width: 100%;
    min-width: 0;
    min-height: 132px;
    border: 1px solid rgba(201, 164, 92, 0.56);
    border-radius: 24px;
    padding: 14px 20px;
    color: #365229;
    background: #F2EBCF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.shop-card:hover,
.shop-card:focus-visible {
    transform: translateY(-3px);
    border-color: #C9A45C;
    background: #F7F0D8;
}

#home-view .choice-card {
    border-color: rgba(201, 164, 92, 0.56);
    color: #365229;
    background: #F2EBCF;
}

#home-view .choice-card span {
    color: #365229;
}

#home-view .choice-card small {
    color: #365229;
}

#home-view .choice-card:hover,
#home-view .choice-card:focus-visible {
    border-color: #C9A45C;
    background: #F7F0D8;
}

.choice-card:hover,
.choice-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--amber-orange);
    background: rgba(255, 140, 0, 0.1);
}

.choice-card span {
    display: block;
    color: var(--light-gold);
    font-family: 'Cinzel', serif;
    font-size: clamp(1.05rem, 4.8vw, 1.32rem);
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.shop-card span {
    display: block;
    color: #365229;
    font-family: 'Cinzel', serif;
    font-size: clamp(0.82rem, 3.2vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.1;
    text-transform: uppercase;
}

.choice-motif {
    display: block;
    width: min(100%, 170px);
    height: 150px;
    margin: 16px auto 0;
    object-fit: contain;
}

.shop-motif {
    display: block;
    width: min(100%, 132px);
    height: 64px;
    margin: 6px auto 3px;
    object-fit: contain;
}

.shop-card small {
    color: #365229;
    font-size: 0.72rem;
    line-height: 1.25;
    opacity: 0.82;
}

.choice-card small {
    display: block;
    margin-top: 8px;
    opacity: 0.8;
}

.choice-card-ki:hover,
.choice-card-ki:focus-visible,
.ki-theme {
    border-color: rgba(120, 216, 255, 0.55);
}

.quick-contact,
.contact-list,
.action-row {
    display: grid;
    gap: 12px;
}

.quick-contact a,
.contact-list a,
.primary-action,
.secondary-action,
.back-button {
    border: 1px solid var(--border-gold);
    border-radius: 999px;
    padding: 13px 16px;
    color: var(--light-gold);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    text-align: center;
}

#home-view .quick-contact a {
    border-color: rgba(201, 164, 92, 0.5);
    color: #F4E8C8;
    background: rgba(47, 75, 35, 0.68);
}

#home-view .quick-contact a:hover,
#home-view .quick-contact a:focus-visible {
    border-color: #C9A45C;
    background: rgba(57, 89, 43, 0.78);
}

.primary-action {
    border: none;
    color: #11051d;
    font-weight: 700;
    background: linear-gradient(135deg, var(--amber-orange), #d4af37);
}

.secondary-action:hover,
.quick-contact a:hover,
.contact-list a:hover,
.back-button:hover {
    border-color: var(--amber-orange);
}

.back-button {
    margin-bottom: 24px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 28px 0;
}

.section-grid > div {
    border: 1px solid rgba(241, 213, 146, 0.22);
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.section-grid p {
    margin: 0;
    line-height: 1.65;
}

.video-placeholder {
    display: grid;
    min-height: 150px;
    place-items: center;
    border: 1px dashed var(--border-gold);
    border-radius: 18px;
    color: var(--light-gold);
    background: rgba(0, 0, 0, 0.22);
}

.ki-theme .eyebrow,
.ki-theme h3 {
    color: var(--ki-blue);
}

.numerology-theme {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    border-color: var(--border-gold);
    background: radial-gradient(circle at 50% 0%, var(--night-violet-light) 0%, rgba(15, 6, 26, 0.96) 64%, #07030d 100%);
    box-shadow: 0 0 70px rgba(0, 0, 0, 0.58), 0 0 32px rgba(255, 140, 0, 0.09);
    text-align: center;
}

.numerology-theme::before {
    content: "ᚠ";
    position: absolute;
    top: 18px;
    right: 24px;
    color: rgba(255, 140, 0, 0.18);
    font-size: 5rem;
    line-height: 1;
    pointer-events: none;
}

.numerology-theme .back-button {
    display: inline-block;
    margin: 0 0 22px;
    border-color: var(--border-gold);
    color: var(--light-gold);
    background: rgba(255, 255, 255, 0.03);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.08em;
}

.numerology-theme .eyebrow {
    color: var(--amber-orange);
}

.numerology-theme h2 {
    color: var(--light-gold);
    text-shadow: 0 0 24px rgba(255, 140, 0, 0.22);
}

.numerology-theme > p {
    color: var(--text-light);
}

.phantasia-book {
    display: block;
    width: min(100%, 340px);
    margin: 0 auto 18px;
    object-fit: contain;
    filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.58));
}

.pn-panel {
    max-width: 560px;
    margin: 16px auto 0;
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    text-align: left;
    overflow: hidden;
}

.pn-panel summary {
    padding: 16px 18px;
    color: var(--light-gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.pn-panel a,
.pn-panel-entry {
    display: block;
    padding: 0 18px 18px;
    color: var(--text-light);
}

.pn-panel a {
    text-decoration: underline;
    text-decoration-color: var(--amber-orange);
    text-underline-offset: 4px;
}

.pn-panel-entry {
    opacity: 0.72;
}

@media (max-width: 480px) {
    body:not(:has(#home-view.view-active)) .app-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .numerology-theme {
        width: 330px;
        max-width: 330px;
        padding: 26px 22px;
    }

    .numerology-theme h2 {
        font-size: 2rem;
        letter-spacing: 0.08em;
    }

    .numerology-theme > p,
    .pn-panel {
        width: 100%;
        max-width: 100%;
    }

    .phantasia-book {
        width: min(100%, 260px);
    }
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 10;
    width: min(calc(100% - 24px), 620px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(241, 213, 146, 0.28);
    border-radius: 999px;
    background: rgba(10, 10, 12, 0.88);
    backdrop-filter: blur(14px);
    transform: translateX(-50%);
}

.bottom-nav button {
    border: 0;
    border-radius: 999px;
    padding: 10px 6px;
    color: var(--text-light);
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
}

.bottom-nav button[aria-current="page"] {
    color: #11051d;
    background: var(--light-gold);
    font-weight: 700;
}

body:has(#home-view.view-active) .bottom-nav {
    border-color: rgba(201, 164, 92, 0.44);
    background: rgba(47, 75, 35, 0.9);
}

body:has(#home-view.view-active) .bottom-nav button {
    color: #F4E8C8;
}

body:has(#home-view.view-active) .bottom-nav button[aria-current="page"] {
    color: #365229;
    background: #C9A45C;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 720px) {
    .app-shell {
        padding: 42px 28px 112px;
    }

    .profile-card,
    .content-card {
        padding: 44px;
    }

    .choice-grid,
    .section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-card {
        grid-column: 1 / -1;
    }

    .quick-contact {
        grid-template-columns: repeat(4, 1fr);
    }

    .action-row {
        grid-template-columns: repeat(2, minmax(0, 220px));
    }
}

@media (min-width: 900px) {
    .app-shell {
        width: min(100%, 500px);
        padding: 34px 18px 58px;
    }

    .view-active {
        position: relative;
        padding: 54px 16px 18px;
        border: 7px solid #F2EBCF;
        border-radius: 58px;
        background: #F2EBCF;
        box-shadow: 0 34px 110px rgba(22, 37, 16, 0.52), inset 0 0 0 1px rgba(201, 164, 92, 0.56);
    }

    .view-active::before {
        content: "";
        position: absolute;
        top: 24px;
        left: 50%;
        width: 92px;
        height: 9px;
        border-radius: 999px;
        background: rgba(54, 82, 41, 0.42);
        transform: translateX(-50%);
    }

    .view-active::after {
        content: "";
        position: absolute;
        top: 22px;
        right: 132px;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: rgba(54, 82, 41, 0.46);
        box-shadow: 124px 0 0 rgba(54, 82, 41, 0.26), -166px 1px 0 -2px rgba(54, 82, 41, 0.28);
    }

    .view-active > .profile-card,
    .view-active > .content-card {
        min-height: 676px;
        border-radius: 40px;
        padding: 34px 28px;
    }

    #home-view .hero-card {
        border: 1px solid #C9A45C;
        background: #365229;
        box-shadow: inset 0 0 0 1px rgba(244, 232, 200, 0.08);
    }

    #home-view .choice-card {
        min-height: 220px;
        height: 220px;
        padding: 22px 14px 20px;
    }

    #home-view .shop-card {
        min-height: 128px;
        height: 128px;
        padding: 13px 20px;
    }

    #home-view .choice-grid {
        gap: 12px;
    }

    #home-view .choice-card span {
        font-size: 1.04rem;
        letter-spacing: 0.035em;
    }

    #home-view .choice-motif {
        width: 100%;
        max-width: 150px;
        height: 145px;
    }

    #home-view .shop-motif {
        max-width: 126px;
        height: 54px;
    }

    #home-view .hero-card::before,
    #home-view .hero-card::after {
        content: "";
        position: absolute;
        left: -22px;
        width: 4px;
        border-radius: 999px;
        background: #F2EBCF;
        box-shadow: inset 0 0 0 1px rgba(201, 164, 92, 0.35);
    }

    #home-view .hero-card::before {
        top: 135px;
        height: 54px;
    }

    #home-view .hero-card::after {
        top: 210px;
        height: 82px;
    }
}
