.tastro {
    --ta-night: #0b0715;
    --ta-plum: #1b1029;
    --ta-plum-soft: #281735;
    --ta-ink: #f7f0e6;
    --ta-muted: #cbbfd1;
    --ta-gold: #d5ad61;
    --ta-gold-light: #f0d796;
    --ta-line: rgba(213, 173, 97, .27);
    --ta-panel: rgba(18, 11, 27, .92);
    position: relative;
    width: min(1120px, calc(100% - 24px));
    margin: 22px auto 56px;
    color: var(--ta-ink);
    font-family: Arial, Helvetica, sans-serif;
    isolation: isolate;
}

.tastro *,
.tastro *::before,
.tastro *::after { box-sizing: border-box; }

.tastro h2,
.tastro h3,
.tastro p { margin-top: 0; }

.tastro h2,
.tastro h3,
.tastro strong { color: var(--ta-ink); }

.tastro__hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--ta-line);
    border-radius: 30px 30px 12px 12px;
    background: #100919;
    box-shadow: 0 34px 85px rgba(3, 1, 8, .44), inset 0 0 70px rgba(213, 173, 97, .06);
}

.tastro__hero::after {
    content: '';
    position: absolute;
    inset: 12px;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(239, 211, 148, .22);
    border-radius: 21px 21px 7px 7px;
}

.tastro__hero-img,
.tastro__hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tastro__hero-img {
    object-fit: cover;
    object-position: center;
}

.tastro__hero-shade {
    z-index: 1;
    background: linear-gradient(90deg, rgba(9, 5, 16, .96) 0%, rgba(11, 6, 19, .85) 34%, rgba(11, 6, 19, .28) 65%, rgba(11, 6, 19, .16) 100%), linear-gradient(0deg, rgba(8, 4, 13, .62), transparent 45%);
}

.tastro__hero-copy {
    position: relative;
    z-index: 3;
    width: min(570px, 56%);
    padding: clamp(48px, 7vw, 90px);
}

.tastro__eyebrow {
    margin-bottom: 14px;
    color: var(--ta-gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.tastro__hero h2 {
    margin-bottom: 19px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(38px, 5.4vw, 69px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: .98;
    text-wrap: balance;
}

.tastro__hero-copy > p:last-child {
    margin-bottom: 0;
    color: #eee4ec;
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.65;
}

.tastro__orbit {
    position: absolute;
    right: clamp(30px, 5vw, 70px);
    bottom: 34px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ta-gold-light);
    font-family: Georgia, serif;
    font-size: 19px;
    opacity: .78;
}

.tastro__orbit i {
    display: block;
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, var(--ta-gold), transparent, var(--ta-gold));
}

.tastro__consultation,
.tastro__result {
    position: relative;
    border: 1px solid var(--ta-line);
    border-top: 0;
    background: radial-gradient(circle at 50% 0, rgba(99, 55, 118, .18), transparent 36%), linear-gradient(155deg, rgba(28, 16, 41, .98), rgba(9, 6, 15, .99));
    box-shadow: 0 28px 70px rgba(4, 2, 8, .33);
}

.tastro__consultation {
    padding: clamp(32px, 5vw, 64px) clamp(18px, 5vw, 68px) clamp(44px, 6vw, 72px);
    border-radius: 0 0 30px 30px;
}

.tastro__consultation::before,
.tastro__result::before {
    content: '';
    position: absolute;
    inset: 12px;
    pointer-events: none;
    border: 1px solid rgba(213, 173, 97, .1);
    border-radius: 8px 8px 20px 20px;
}

.tastro__focus {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: 0;
}

.tastro__focus legend,
.tastro__question > label {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    color: var(--ta-gold-light);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(20px, 2.4vw, 27px);
    line-height: 1.25;
}

.tastro__focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.tastro__focus-option {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 112px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(213, 173, 97, .2);
    border-radius: 16px;
    background: rgba(255, 255, 255, .035);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.tastro__focus-option:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 215, 150, .55);
    background: rgba(213, 173, 97, .075);
}

.tastro__focus-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.tastro__focus-option:has(input:checked) {
    border-color: var(--ta-gold);
    background: linear-gradient(145deg, rgba(213, 173, 97, .18), rgba(107, 57, 121, .11));
    box-shadow: inset 0 0 0 1px rgba(240, 215, 150, .22), 0 12px 32px rgba(4, 2, 8, .28);
}

.tastro__focus-option:has(input:checked) .tastro__focus-mark {
    border-color: var(--ta-gold-light);
    background: var(--ta-gold);
    color: #1a1020;
    box-shadow: 0 0 22px rgba(213, 173, 97, .22);
}

.tastro__focus-option:has(input:focus-visible) {
    outline: 2px dashed #ad94c0;
    outline-offset: 3px;
}

.tastro__focus-mark {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-right: 13px;
    place-items: center;
    border: 1px solid var(--ta-line);
    border-radius: 50%;
    color: var(--ta-gold-light);
    font-family: Georgia, serif;
    font-size: 20px;
}

.tastro__focus-copy strong,
.tastro__focus-copy small { display: block; }

.tastro__focus-copy strong {
    margin-bottom: 5px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 600;
}

.tastro__focus-copy small {
    color: var(--ta-muted);
    font-size: 13px;
    line-height: 1.45;
}

.tastro__focus.is-required .tastro__focus-grid {
    animation: tastro-attention .42s ease;
}

@keyframes tastro-attention {
    0%, 100% { transform: translateX(0); }
    33% { transform: translateX(-5px); }
    66% { transform: translateX(5px); }
}

.tastro__question {
    position: relative;
    z-index: 1;
    margin: 34px 0 48px;
}

.tastro__question textarea {
    display: block;
    width: 100%;
    min-height: 88px;
    resize: vertical;
    padding: 16px 18px;
    border: 1px solid rgba(213, 173, 97, .28);
    border-radius: 14px;
    outline: 0;
    background: rgba(5, 3, 10, .48);
    color: var(--ta-ink);
    font: 16px/1.55 Arial, Helvetica, sans-serif;
    box-shadow: inset 0 5px 18px rgba(0, 0, 0, .22);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.tastro__question textarea::placeholder { color: #9f92a7; }

.tastro__question textarea:focus {
    border-color: var(--ta-gold);
    box-shadow: 0 0 0 3px rgba(213, 173, 97, .13), inset 0 5px 18px rgba(0, 0, 0, .22);
}

.tastro__question > p {
    margin: 9px 2px 0;
    color: #ad9fb4;
    font-size: 12px;
    line-height: 1.45;
}

.tastro__question > p span { color: var(--ta-gold); }

.tastro__deck-head {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto 31px;
    text-align: center;
}

.tastro__deck-head h2,
.tastro__result-head h2 {
    margin-bottom: 10px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(31px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.08;
}

.tastro__deck-head > p:last-child {
    margin-bottom: 0;
    color: var(--ta-muted);
    font-size: 15px;
    line-height: 1.6;
}

.tastro__cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: center;
    max-width: 930px;
    margin: 0 auto;
    padding: 12px 2px 15px;
    perspective: 1100px;
}

.tastro__card-choice {
    appearance: none;
    position: relative;
    display: block;
    min-width: 0;
    margin: 0 -4px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
    transform-origin: 50% 110%;
    transition: transform .28s cubic-bezier(.2, .75, .3, 1), opacity .25s ease, filter .25s ease;
}

.tastro__card-choice:nth-child(1) { transform: translateY(24px) rotate(-8deg); }
.tastro__card-choice:nth-child(2) { transform: translateY(12px) rotate(-5deg); }
.tastro__card-choice:nth-child(3) { transform: translateY(4px) rotate(-2deg); }
.tastro__card-choice:nth-child(4) { transform: translateY(0); }
.tastro__card-choice:nth-child(5) { transform: translateY(4px) rotate(2deg); }
.tastro__card-choice:nth-child(6) { transform: translateY(12px) rotate(5deg); }
.tastro__card-choice:nth-child(7) { transform: translateY(24px) rotate(8deg); }

.tastro__card-choice:not(:disabled):hover,
.tastro__card-choice:not(:disabled):focus-visible {
    z-index: 4;
    transform: translateY(-15px) rotate(0) scale(1.055);
}

.tastro__card-choice:focus-visible .tastro__card-choice-inner {
    outline: 3px solid #f4d88e;
    outline-offset: 4px;
}

.tastro__card-choice-inner {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(240, 215, 150, .57);
    border-radius: 9px;
    background: #130b20;
    box-shadow: 0 16px 28px rgba(0, 0, 0, .44), inset 0 0 0 3px rgba(9, 4, 16, .5);
}

.tastro__card-choice-inner::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(240, 215, 150, .38);
    border-radius: 5px;
    pointer-events: none;
}

.tastro__card-choice img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tastro__card-star {
    position: absolute;
    left: 50%;
    top: 50%;
    color: #f3d994;
    font-size: clamp(18px, 2.3vw, 29px);
    text-shadow: 0 0 20px rgba(240, 215, 150, .7);
    transform: translate(-50%, -50%);
}

.tastro__card-choice.is-opening {
    z-index: 8;
    transform: translateY(-26px) rotateY(180deg) scale(1.08);
}

.tastro__card-choice.is-dimmed {
    opacity: .25;
    filter: saturate(.45) blur(.3px);
}

.tastro__selection-status {
    min-height: 23px;
    margin: 35px 0 0;
    color: var(--ta-gold-light);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.tastro__result {
    padding: clamp(40px, 6vw, 72px) clamp(18px, 5vw, 68px) clamp(42px, 6vw, 70px);
    border-top: 1px solid var(--ta-line);
    border-radius: 28px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .35s ease, transform .35s ease;
}

.tastro__result.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tastro__result-head {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto 38px;
    text-align: center;
}

.tastro__asked {
    margin-top: 21px;
    padding: 13px 17px;
    border: 1px solid rgba(213, 173, 97, .17);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
}

.tastro__asked span,
.tastro__focus-reading > span {
    display: block;
    margin-bottom: 5px;
    color: var(--ta-gold-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.tastro__asked p {
    margin: 0;
    color: #eee5ee;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.45;
}

.tastro__result-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(250px, 335px) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 65px);
    align-items: start;
}

.tastro__drawn-card { margin: 0; }

.tastro__drawn-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(240, 215, 150, .62);
    border-radius: 17px;
    background: #100918;
    box-shadow: 0 30px 58px rgba(0, 0, 0, .48), 0 0 55px rgba(158, 100, 175, .13);
}

.tastro__drawn-frame::before {
    content: '';
    position: absolute;
    inset: 8px;
    z-index: 2;
    border: 1px solid rgba(240, 215, 150, .31);
    border-radius: 10px;
    pointer-events: none;
}

.tastro__drawn-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.tastro__drawn-frame figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 42px 20px 18px;
    background: linear-gradient(0deg, rgba(7, 4, 11, .98), rgba(7, 4, 11, .82) 58%, transparent);
    text-align: center;
}

.tastro__drawn-frame figcaption > span,
.tastro__drawn-frame figcaption > strong,
.tastro__drawn-frame figcaption > small { display: block; }

.tastro__drawn-frame figcaption > span {
    margin-bottom: 3px;
    color: var(--ta-gold-light);
    font: 12px/1 Georgia, serif;
    letter-spacing: .16em;
}

.tastro__drawn-frame figcaption > strong {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 400;
    line-height: 1.1;
}

.tastro__drawn-frame figcaption > small {
    margin-top: 7px;
    color: #dccddc;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tastro__drawn-frame figcaption b {
    color: var(--ta-gold-light);
    font: 20px Georgia, serif;
}

.tastro__drawn-card > p {
    margin: 15px 0 0;
    color: var(--ta-gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
}

.tastro__reading { min-width: 0; }

.tastro__duality {
    display: grid;
    gap: 12px;
}

.tastro__duality article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(213, 173, 97, .18);
    border-radius: 15px;
    background: rgba(255, 255, 255, .025);
}

.tastro__reading-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(213, 173, 97, .28);
    border-radius: 50%;
    color: var(--ta-gold-light);
    font-family: Georgia, serif;
    font-size: 18px;
}

.tastro__reading-icon--astro { font-size: 23px; }

.tastro__reading h3,
.tastro__insight h3,
.tastro__focus-reading h3,
.tastro__movement h3 {
    margin-bottom: 7px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
}

.tastro__reading p {
    margin-bottom: 0;
    color: #d9cedb;
    font-size: 15px;
    line-height: 1.65;
}

.tastro__insights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.tastro__insight {
    padding: 18px 19px;
    border: 1px solid rgba(213, 173, 97, .17);
    border-radius: 15px;
}

.tastro__insight--light { background: linear-gradient(140deg, rgba(178, 130, 54, .14), rgba(255, 255, 255, .02)); }
.tastro__insight--challenge { background: linear-gradient(140deg, rgba(91, 59, 118, .18), rgba(255, 255, 255, .02)); }
.tastro__insight h3 span { color: var(--ta-gold-light); }

.tastro__focus-reading {
    margin-top: 12px;
    padding: 21px 22px;
    border: 1px solid rgba(213, 173, 97, .3);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(213, 173, 97, .12), rgba(103, 54, 118, .13));
}

.tastro__movement {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    margin-top: 12px;
    padding: 20px 22px;
    border-radius: 15px;
    background: var(--ta-gold);
    color: #1a1020;
}

.tastro__movement > span {
    font-family: Georgia, serif;
    font-size: 34px;
}

.tastro__movement h3,
.tastro__movement p { color: #1a1020; }

.tastro__entertainment {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 34px auto 0;
    color: #a99cae;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.tastro__actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.tastro__button {
    appearance: none;
    min-height: 48px;
    padding: 12px 21px;
    border: 1px solid var(--ta-gold);
    border-radius: 999px;
    cursor: pointer;
    font: 700 14px/1.2 Arial, Helvetica, sans-serif;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.tastro__button:hover { transform: translateY(-2px); }
.tastro__button:focus-visible { outline: 3px solid #f4d88e; outline-offset: 3px; }

.tastro__button--primary {
    background: var(--ta-gold);
    color: #1a1020;
    box-shadow: 0 10px 26px rgba(213, 173, 97, .17);
}

.tastro__button--ghost { background: transparent; color: var(--ta-gold-light); }
.tastro__button--ghost:hover { background: rgba(213, 173, 97, .09); }

.tastro__share-status {
    position: relative;
    z-index: 1;
    min-height: 20px;
    margin: 12px 0 0;
    color: var(--ta-gold-light);
    font-size: 13px;
    text-align: center;
}

.tastro__error {
    padding: 16px;
    border: 1px solid #a75d68;
    border-radius: 12px;
    background: #3a1720;
    color: #fff;
    text-align: center;
}

.tastro__live {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.tastro [hidden] { display: none !important; }

@media (max-width: 820px) {
    .tastro__hero { min-height: 490px; }
    .tastro__hero-copy { width: min(630px, 72%); padding: 54px 42px; }
    .tastro__focus-grid { grid-template-columns: 1fr; }
    .tastro__focus-option { min-height: 92px; }
    .tastro__result-layout { grid-template-columns: minmax(210px, 280px) minmax(0, 1fr); gap: 28px; }
    .tastro__insights { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .tastro { width: min(100% - 12px, 1120px); margin-top: 12px; }
    .tastro__hero { min-height: 520px; border-radius: 22px 22px 9px 9px; }
    .tastro__hero-img { object-position: 62% center; }
    .tastro__hero-shade { background: linear-gradient(0deg, rgba(9, 5, 15, .98) 0%, rgba(9, 5, 15, .81) 53%, rgba(9, 5, 15, .18) 100%); }
    .tastro__hero-copy { align-self: end; width: 100%; padding: 190px 25px 42px; text-align: center; }
    .tastro__hero h2 { font-size: clamp(38px, 11.3vw, 52px); }
    .tastro__orbit { right: 50%; bottom: 20px; transform: translateX(50%); opacity: .52; }
    .tastro__consultation { padding: 34px 16px 48px; border-radius: 0 0 22px 22px; }
    .tastro__question { margin: 29px 0 42px; }
    .tastro__cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 8px; padding-inline: 0; }
    .tastro__card-choice,
    .tastro__card-choice:nth-child(n) { flex: 0 0 calc((100% - 24px) / 4); margin: 0; transform: none; }
    .tastro__card-choice:not(:disabled):hover,
    .tastro__card-choice:not(:disabled):focus-visible { transform: translateY(-7px) scale(1.03); }
    .tastro__card-choice.is-opening { transform: translateY(-11px) rotateY(180deg) scale(1.04); }
    .tastro__card-choice-inner { border-radius: 7px; }
    .tastro__selection-status { margin-top: 19px; }
    .tastro__result { padding: 38px 16px 43px; border-radius: 22px; }
    .tastro__result-layout { grid-template-columns: 1fr; }
    .tastro__drawn-card { width: min(78vw, 310px); margin-inline: auto; }
    .tastro__duality article { grid-template-columns: 42px minmax(0, 1fr); padding: 16px; }
    .tastro__reading-icon { width: 39px; height: 39px; }
    .tastro__actions { flex-direction: column; align-items: stretch; }
    .tastro__button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .tastro *,
    .tastro *::before,
    .tastro *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
