.kt-kiosk {
    --kt-kiosk-bg: #0f0b14;
    --kt-kiosk-ink: #fff7e8;
    --kt-kiosk-muted: rgba(255, 247, 232, .68);
    --kt-kiosk-gold: #d7b76a;
    --kt-kiosk-teal: #62b8ad;
    --kt-kiosk-rose: #a55e78;
    position: relative;
    isolation: isolate;
    width: 100vw;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: clamp(18px, 3vw, 44px);
    background:
        radial-gradient(circle at 50% 46%, rgba(215, 183, 106, .13), transparent 28%),
        radial-gradient(circle at 18% 22%, rgba(98, 184, 173, .15), transparent 32%),
        radial-gradient(circle at 82% 76%, rgba(165, 94, 120, .16), transparent 30%),
        linear-gradient(145deg, #08060c 0%, var(--kt-kiosk-bg) 48%, #1d1020 100%);
    color: var(--kt-kiosk-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.kt-kiosk,
.kt-kiosk * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.kt-kiosk::before,
.kt-kiosk::after {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: -3;
    pointer-events: none;
}

.kt-kiosk::before {
    background:
        conic-gradient(from 120deg at 50% 50%, rgba(215, 183, 106, .08), rgba(98, 184, 173, .12), rgba(165, 94, 120, .1), rgba(215, 183, 106, .08));
    filter: blur(64px);
    animation: ktKioskFog 24s ease-in-out infinite alternate;
}

.kt-kiosk::after {
    background-image:
        radial-gradient(circle, rgba(255, 247, 232, .62) 0 1px, transparent 1.8px),
        radial-gradient(circle, rgba(215, 183, 106, .42) 0 1px, transparent 1.7px);
    background-position: 0 0, 36px 54px;
    background-size: 118px 118px, 172px 172px;
    opacity: .36;
    animation: ktKioskStars 34s linear infinite;
}

.kt-kiosk__veil {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
        radial-gradient(ellipse at center, transparent 0 36%, rgba(0, 0, 0, .46) 100%);
    background-size: 100% 6px, 8px 100%, 100% 100%;
    mix-blend-mode: screen;
    opacity: .55;
}

.kt-kiosk__field {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.kt-kiosk__field span {
    position: absolute;
    width: clamp(180px, 28vw, 380px);
    aspect-ratio: 1;
    border: 1px solid rgba(215, 183, 106, .12);
    border-radius: 50%;
    box-shadow: inset 0 0 46px rgba(215, 183, 106, .05), 0 0 50px rgba(98, 184, 173, .04);
    opacity: .62;
    animation: ktKioskOrbit 18s linear infinite;
}

.kt-kiosk__field span:nth-child(1) { left: 9%; top: 14%; }
.kt-kiosk__field span:nth-child(2) { right: 10%; top: 11%; animation-duration: 22s; animation-direction: reverse; }
.kt-kiosk__field span:nth-child(3) { left: 18%; bottom: 10%; width: clamp(120px, 18vw, 260px); animation-duration: 28s; }
.kt-kiosk__field span:nth-child(4) { right: 19%; bottom: 12%; width: clamp(130px, 20vw, 290px); animation-direction: reverse; }
.kt-kiosk__field span:nth-child(5) { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(66vw, 720px); opacity: .28; animation: none; }
.kt-kiosk__field span:nth-child(6) { left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(45deg); width: min(44vw, 520px); border-radius: 18px; opacity: .2; animation: none; }

.kt-kiosk__inner {
    width: min(1180px, 100%);
    display: grid;
    gap: clamp(26px, 5vh, 54px);
    align-items: center;
}

.kt-kiosk__header {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.kt-kiosk__sigil {
    width: clamp(74px, 9vw, 112px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(215, 183, 106, .38);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 183, 106, .16), rgba(98, 184, 173, .06) 48%, transparent 72%);
    box-shadow: 0 0 38px rgba(215, 183, 106, .2), inset 0 0 26px rgba(255, 255, 255, .04);
}

.kt-kiosk__sigil span {
    width: 54%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 247, 232, .58);
    transform: rotate(45deg);
}

.kt-kiosk__eyebrow {
    margin: 0;
    color: var(--kt-kiosk-gold);
    font-size: clamp(2rem, 6.5vw, 5.8rem);
    font-family: Georgia, "Times New Roman", serif;
    line-height: .92;
    letter-spacing: .16em;
    text-shadow: 0 0 26px rgba(215, 183, 106, .18);
}

.kt-kiosk__header h1 {
    margin: 0;
    color: var(--kt-kiosk-muted);
    font-size: clamp(1.05rem, 2vw, 1.7rem);
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.kt-kiosk__phrase {
    min-height: 1.5em;
    margin: 4px 0 0;
    color: rgba(255, 247, 232, .76);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    font-style: italic;
    transition: opacity .35s ease, transform .35s ease;
}

.kt-kiosk__phrase.is-changing {
    opacity: 0;
    transform: translateY(6px);
}

.kt-kiosk__choices {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2.4vw, 28px);
}

.kt-kiosk__choices::before {
    content: "";
    position: absolute;
    inset: -42px 7%;
    z-index: -1;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(215, 183, 106, .18), rgba(98, 184, 173, .08) 42%, transparent 72%);
    filter: blur(24px);
    animation: ktKioskBreathe 4.8s ease-in-out infinite;
}

.kt-kiosk-card {
    position: relative;
    min-height: clamp(210px, 29vh, 330px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: clamp(22px, 3vw, 34px);
    overflow: hidden;
    border: 1px solid rgba(215, 183, 106, .32);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 247, 232, .08), rgba(255, 247, 232, .025)),
        rgba(13, 9, 18, .68);
    color: var(--kt-kiosk-ink) !important;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 18px 54px rgba(0, 0, 0, .38), inset 0 0 32px rgba(255, 255, 255, .035);
    backdrop-filter: blur(14px);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

.kt-kiosk-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 247, 232, .09);
    border-radius: 5px;
    pointer-events: none;
}

.kt-kiosk-card::after {
    content: "";
    position: absolute;
    inset: -60% -30%;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 247, 232, .14), transparent 58%);
    transform: translateX(-44%) rotate(8deg);
    opacity: .35;
    transition: transform .75s ease, opacity .24s ease;
    pointer-events: none;
}

.kt-kiosk-card:hover,
.kt-kiosk-card:focus-visible,
.kt-kiosk-card.is-pressing {
    transform: translateY(-5px) scale(1.018);
    border-color: rgba(215, 183, 106, .72);
    box-shadow: 0 26px 72px rgba(0, 0, 0, .48), 0 0 36px rgba(215, 183, 106, .16), inset 0 0 42px rgba(255, 255, 255, .045);
    outline: none;
}

.kt-kiosk-card:hover::after,
.kt-kiosk-card:focus-visible::after,
.kt-kiosk-card.is-pressing::after {
    transform: translateX(38%) rotate(8deg);
    opacity: .62;
}

.kt-kiosk-card--oracle { box-shadow: 0 18px 54px rgba(0, 0, 0, .38), 0 0 34px rgba(215, 183, 106, .07); }
.kt-kiosk-card--directory { border-color: rgba(98, 184, 173, .34); }
.kt-kiosk-card--quiz { border-color: rgba(165, 94, 120, .38); }

.kt-kiosk-card__icon {
    width: clamp(62px, 8vw, 96px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 247, 232, .18);
    border-radius: 50%;
    color: var(--kt-kiosk-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.05rem, 2vw, 1.8rem);
    letter-spacing: .1em;
    background: radial-gradient(circle, rgba(215, 183, 106, .14), rgba(255, 255, 255, .02) 64%);
}

.kt-kiosk-card__title {
    display: block;
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1;
}

.kt-kiosk-card__subtitle {
    display: block;
    max-width: 21ch;
    color: var(--kt-kiosk-muted);
    font-size: clamp(.98rem, 1.35vw, 1.15rem);
    line-height: 1.45;
}

.kt-kiosk__pos {
    position: absolute;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 3;
    min-width: 52px;
    min-height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 247, 232, .12);
    border-radius: 999px;
    background: rgba(8, 6, 12, .42);
    color: rgba(255, 247, 232, .38) !important;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.kt-kiosk__pos:hover,
.kt-kiosk__pos:focus-visible {
    color: rgba(255, 247, 232, .78) !important;
    border-color: rgba(215, 183, 106, .42);
    background: rgba(8, 6, 12, .72);
    outline: none;
}

.kt-kiosk--gate {
    cursor: default;
}

.kt-kiosk-gate {
    width: min(520px, 100%);
    display: grid;
    gap: 16px;
    justify-items: center;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid rgba(215, 183, 106, .34);
    border-radius: 8px;
    background: rgba(13, 9, 18, .72);
    box-shadow: 0 18px 54px rgba(0, 0, 0, .38), inset 0 0 32px rgba(255, 255, 255, .035);
    text-align: center;
    backdrop-filter: blur(14px);
}

.kt-kiosk-gate h1 {
    margin: 0;
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.3rem, 5vw, 4.4rem);
    font-weight: 500;
    line-height: 1;
}

.kt-kiosk-gate p {
    max-width: 32rem;
    margin: 0;
    color: var(--kt-kiosk-muted);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.5;
}

.kt-kiosk-gate__error {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(165, 94, 120, .58);
    border-radius: 8px;
    background: rgba(165, 94, 120, .14);
    color: #fff7e8 !important;
}

.kt-kiosk-gate__form {
    width: 100%;
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.kt-kiosk-gate__form input,
.kt-kiosk-gate__form button {
    width: 100%;
    min-height: 52px;
    border-radius: 8px;
    font: inherit;
}

.kt-kiosk-gate__form input {
    border: 1px solid rgba(255, 247, 232, .22);
    background: rgba(255, 247, 232, .08);
    color: #fffaf0;
    padding: 0 16px;
    text-align: center;
    letter-spacing: .08em;
    outline: none;
}

.kt-kiosk-gate__form input:focus {
    border-color: rgba(215, 183, 106, .72);
    box-shadow: 0 0 0 3px rgba(215, 183, 106, .16);
}

.kt-kiosk-gate__form button {
    border: 1px solid rgba(215, 183, 106, .62);
    background: rgba(215, 183, 106, .18);
    color: #fffaf0;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}

.kt-kiosk-gate__form button:hover,
.kt-kiosk-gate__form button:focus-visible {
    background: rgba(215, 183, 106, .28);
    outline: none;
}

body:has(.kt-kiosk) {
    overflow: hidden;
}

body:has(.kt-kiosk) .wp-site-blocks {
    min-height: 100vh;
}

body:has(.kt-kiosk) .entry-content,
body:has(.kt-kiosk) .wp-block-post-content {
    margin: 0;
}

@keyframes ktKioskFog {
    0% { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1); }
    100% { transform: translate3d(2%, 1%, 0) rotate(12deg) scale(1.06); }
}

@keyframes ktKioskStars {
    0% { background-position: 0 0, 36px 54px; }
    100% { background-position: 118px 118px, 208px 226px; }
}

@keyframes ktKioskOrbit {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.04); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes ktKioskBreathe {
    0%, 100% { opacity: .58; transform: scale(.96); }
    50% { opacity: .9; transform: scale(1.04); }
}

@media (max-width: 840px) {
    .kt-kiosk {
        height: auto;
        min-height: 100svh;
        padding: 22px 14px 64px;
    }

    .kt-kiosk__inner {
        gap: 22px;
    }

    .kt-kiosk__choices {
        grid-template-columns: 1fr;
        width: min(520px, 100%);
        margin: 0 auto;
    }

    .kt-kiosk-card {
        min-height: 164px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .kt-kiosk-card__subtitle {
        max-width: none;
    }
}

@media (max-height: 720px) and (min-width: 841px) {
    .kt-kiosk__inner {
        gap: 22px;
    }

    .kt-kiosk__sigil {
        width: 70px;
    }

    .kt-kiosk-card {
        min-height: 190px;
    }
}

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