/*
 * Xukys — sign up & sign in experience
 * Self contained on purpose: the theme CSS is compiled through Vite, this file
 * is plain CSS so the auth screens can evolve without a front-end build.
 *
 * Flat palette, no gradients: solid panels and the hotel's yellow/gray buttons.
 */

.xk {
    --xk-panel: rgba(17, 20, 28, 0.82);
    --xk-panel-solid: #171a23;
    --xk-input: rgba(9, 11, 16, 0.75);
    --xk-line: rgba(255, 255, 255, 0.1);
    --xk-line-strong: rgba(255, 255, 255, 0.18);
    --xk-text: #f4f6fb;
    --xk-muted: #98a1b4;
    --xk-yellow: #eab308;
    --xk-yellow-light: #fde047;
    --xk-gray: #374151;
    --xk-gray-light: #4b5563;
    --xk-fb: #1877f2;
    --xk-fb-light: #4a9bff;
    --xk-ok: #4ade80;
    --xk-bad: #f87171;

    color: var(--xk-text);
    font-family: Nunito, ui-sans-serif, system-ui, sans-serif;
}

.xk *,
.xk *::before,
.xk *::after {
    box-sizing: border-box;
}

/* ----------------------------------------------------------------- grid
 * Own column helpers: the theme's Tailwind build is frozen, these keep the
 * auth screens laying out without a front-end rebuild.
 */

.xk-col {
    grid-column: span 12 / span 12;
}

@media (min-width: 768px) {
    .xk-col--half,
    .xk-col--third {
        grid-column: span 6 / span 6;
    }
}

@media (min-width: 1024px) {
    .xk-col--third {
        grid-column: span 4 / span 4;
    }
}

/* ---------------------------------------------------------------- card */

.xk-card {
    position: relative;
    height: 100%;
    background: var(--xk-panel);
    border: 1px solid var(--xk-line);
    border-radius: 14px;
    padding: 26px;
}

/* ---------------------------------------------------------------- typography */

.xk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--xk-yellow);
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
    padding: 5px 11px;
    border-radius: 6px;
}

.xk-title {
    margin: 14px 0 6px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
}

.xk-title span {
    color: var(--xk-yellow);
}

.xk-sub {
    margin: 0 0 20px;
    color: var(--xk-muted);
    font-size: 14.5px;
    line-height: 1.5;
}

.xk-section-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 4px;
}

/* ---------------------------------------------------------------- buttons */

.xk-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 18px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, background-color 0.2s ease;
}

.xk-btn:hover {
    transform: scale(1.02);
}

.xk-btn--fb {
    background: var(--xk-fb);
    border-color: var(--xk-fb-light);
    color: #fff;
}

.xk-btn--fb svg {
    width: 17px;
    height: 17px;
    fill: #fff;
    flex: none;
}

.xk-btn--primary {
    background: var(--xk-yellow);
    border-color: var(--xk-yellow-light);
    color: #fff;
}

.xk-btn--ghost {
    background: var(--xk-gray);
    border-color: var(--xk-gray-light);
    color: var(--xk-text);
}

.xk-btn--danger {
    background: #dc2626;
    border-color: #f87171;
    color: #fff;
}

.xk-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.xk-btn--lg {
    padding: 13px 22px;
    font-size: 16px;
}

/* ---------------------------------------------------------------- divider */

.xk-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
    color: var(--xk-muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.xk-divider::before,
.xk-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--xk-line-strong);
}

/* ---------------------------------------------------------------- fields */

.xk-fields {
    display: grid;
    gap: 12px;
}

.xk-field {
    position: relative;
}

.xk-field__input {
    width: 100%;
    padding: 14px 44px;
    background: var(--xk-input);
    border: 1px solid var(--xk-line-strong);
    border-radius: 8px;
    color: var(--xk-text);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.16s ease;
}

.xk-field__input::placeholder {
    color: transparent;
}

.xk-field__input:focus {
    border-color: var(--xk-yellow);
}

.xk-field__label {
    position: absolute;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--xk-muted);
    font-size: 15px;
    pointer-events: none;
    transition: top 0.16s ease, left 0.16s ease, font-size 0.16s ease;
}

.xk-field__input:focus + .xk-field__label,
.xk-field__input:not(:placeholder-shown) + .xk-field__label {
    top: 0;
    left: 40px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--xk-yellow);
    background: var(--xk-panel-solid);
    padding: 2px 6px;
    border-radius: 4px;
}

.xk-field__icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--xk-muted);
    fill: none;
    stroke-width: 1.7;
    pointer-events: none;
}

.xk-field__action {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--xk-muted);
    cursor: pointer;
}

.xk-field__action:hover {
    color: var(--xk-text);
    background: rgba(255, 255, 255, 0.07);
}

.xk-field__action svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
}

.xk-field__status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 800;
    opacity: 0;
}

.xk-field__status[data-state="ok"] {
    color: var(--xk-ok);
    opacity: 1;
}

.xk-field__status[data-state="bad"] {
    color: var(--xk-bad);
    opacity: 1;
}

.xk-field__status[data-state="loading"] {
    color: var(--xk-muted);
    opacity: 1;
}

.xk-hint {
    margin: 10px 0 0;
    color: var(--xk-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.xk-hint a {
    color: var(--xk-yellow);
    text-decoration: none;
    font-weight: 700;
}

.xk-hint a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------- errors */

.xk-errors {
    margin: 0 0 16px;
    padding: 10px 14px;
    background: rgba(153, 27, 27, 0.7);
    border: 1px solid #ef4444;
    border-radius: 8px;
    font-size: 13.5px;
}

.xk-errors ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

/* ---------------------------------------------------------------- avatar stage */

.xk-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 210px;
    padding-top: 26px;
    margin-bottom: 10px;
}

/* Spotlight: a blurred pool of warm light, no gradient involved. */
.xk-stage::before {
    content: "";
    position: absolute;
    top: 52%;
    left: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    background: rgba(255, 214, 120, 0.18);
    filter: blur(40px);
    animation: xk-pulse 5s ease-in-out infinite;
}

@keyframes xk-pulse {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.12); }
}

.xk-stage__floor {
    position: absolute;
    bottom: 4px;
    width: 110px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    filter: blur(7px);
}

.xk-stage img {
    position: relative;
    z-index: 1;
    image-rendering: pixelated;
    transform-origin: bottom center;
    animation: xk-float 4s ease-in-out infinite;
}

/* The smoke sits over the avatar while the look is swapped underneath. */
.xk-puff {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    image-rendering: pixelated;
}

@keyframes xk-float {
    0%, 100% { transform: scale(1.25) translateY(0); }
    50% { transform: scale(1.25) translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
    .xk-stage::before,
    .xk-stage img {
        animation: none;
    }

    .xk-stage img {
        transform: scale(1.25);
    }
}

/* ---------------------------------------------------------------- look picker */

.xk-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.xk-toggle {
    display: inline-flex;
    padding: 3px;
    background: var(--xk-input);
    border: 1px solid var(--xk-line-strong);
    border-radius: 8px;
}

.xk-toggle button {
    padding: 7px 16px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 6px;
    color: var(--xk-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.xk-toggle button[aria-pressed="true"] {
    background: var(--xk-yellow);
    border-color: var(--xk-yellow-light);
    color: #fff;
}

.xk-shuffle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    background: var(--xk-gray);
    border: 2px solid var(--xk-gray-light);
    border-radius: 8px;
    color: var(--xk-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.xk-shuffle:hover {
    transform: scale(1.02);
}

.xk-shuffle svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ---------------------------------------------------------------- rewards */

.xk-rewards {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.xk-reward {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--xk-line);
    border-radius: 10px;
}

.xk-reward__icon {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-size: 15px;
}

.xk-reward__amount {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
}

.xk-reward__label {
    color: var(--xk-muted);
    font-size: 12.5px;
}

.xk-reward__badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--xk-ok);
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.32);
    padding: 3px 9px;
    border-radius: 6px;
}

/* Compact currency row, used where space is tight */

.xk-rewards-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 11px 13px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--xk-line);
    border-radius: 10px;
}

.xk-rewards-inline div {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 800;
}

.xk-rewards-inline span {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-size: 12px;
}

/* ---------------------------------------------------------------- perks */

.xk-perks {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.xk-perks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--xk-muted);
    font-size: 13.5px;
    line-height: 1.45;
}

.xk-perks svg {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    stroke: var(--xk-yellow);
    fill: none;
    stroke-width: 2.2;
}

/* ---------------------------------------------------------------- steps */

.xk-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.xk-step {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--xk-muted);
    font-size: 12px;
    font-weight: 800;
}

.xk-step__dot {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--xk-line-strong);
    font-size: 11px;
}

.xk-step--done .xk-step__dot {
    background: var(--xk-ok);
    border-color: var(--xk-ok);
    color: #08260f;
}

.xk-step--done {
    color: var(--xk-ok);
}

.xk-step--active .xk-step__dot {
    background: var(--xk-yellow);
    border-color: var(--xk-yellow-light);
    color: #fff;
}

.xk-step--active {
    color: var(--xk-yellow);
}

.xk-steps__line {
    flex: 1;
    height: 2px;
    background: var(--xk-line-strong);
}

/* ---------------------------------------------------------------- fb profile chip */

.xk-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    background: rgba(24, 119, 242, 0.12);
    border: 1px solid rgba(24, 119, 242, 0.4);
    border-radius: 10px;
    margin-bottom: 18px;
}

.xk-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.xk-profile__name {
    font-weight: 800;
    font-size: 15px;
}

.xk-profile__meta {
    color: var(--xk-muted);
    font-size: 12.5px;
}

/* ------------------------------------------------------- known player panel */

.xk-known {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 14px 10px 11px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--xk-line);
    border-left: 3px solid var(--xk-yellow);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.xk-known.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.xk-known__avatar {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 214, 120, 0.12);
    border: 1px solid rgba(255, 214, 120, 0.3);
}

.xk-known__avatar img {
    position: absolute;
    top: 4px;
    width: auto;
    height: 92px;
    max-width: none;
    image-rendering: pixelated;
}

.xk-known__hello {
    color: var(--xk-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.xk-known__name {
    color: var(--xk-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    word-break: break-word;
}

/* ------------------------------------------------------- connected accounts */

.xk-connection {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--xk-line);
    border-left: 3px solid var(--xk-fb);
    border-radius: 10px;
}

@media (max-width: 640px) {
    .xk-connection {
        flex-direction: column;
        align-items: flex-start;
    }
}

.xk-connection__brand {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--xk-fb);
}

.xk-connection__brand svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.xk-connection__body {
    flex: 1;
    min-width: 0;
}

.xk-connection__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    color: var(--xk-text);
}

.xk-connection__badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--xk-ok);
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    padding: 3px 9px;
    border-radius: 6px;
}

.xk-connection__text {
    margin: 4px 0 0;
    color: var(--xk-muted);
    font-size: 13px;
    line-height: 1.45;
}

.xk-connection__action {
    flex: none;
}

.xk-connection__action .xk-btn {
    width: auto;
    padding: 10px 18px;
    font-size: 14px;
}

.xk-connection__action .xk-btn svg {
    width: 15px;
    height: 15px;
}

.xk-connection.is-linked {
    border-left-color: var(--xk-ok);
}

.xk-confirm {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* An author display rule beats the UA [hidden] rule, so restate it. */
.xk-confirm[hidden],
.xk [hidden] {
    display: none;
}

@media (max-width: 640px) {
    .xk-confirm {
        flex-direction: column;
        align-items: flex-start;
    }
}

.xk-confirm__text {
    color: var(--xk-muted);
    font-size: 12.5px;
    max-width: 220px;
    line-height: 1.4;
}

.xk-confirm__actions {
    display: flex;
    gap: 8px;
}

.xk-confirm__actions .xk-btn {
    width: auto;
    padding: 9px 14px;
    font-size: 13px;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- welcome screen */

.xk-welcome {
    text-align: center;
    padding: 34px 26px;
}

.xk-welcome .xk-title {
    font-size: 34px;
}

.xk-confetti {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 60;
}

.xk-welcome__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 4px;
}

@media (max-width: 640px) {
    .xk-welcome__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.xk-prize {
    padding: 18px 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--xk-line);
    border-radius: 12px;
}

.xk-prize__icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background-size: 20px;
}

.xk-prize__amount {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.xk-prize__label {
    margin-top: 5px;
    color: var(--xk-muted);
    font-size: 13px;
    font-weight: 700;
}

.xk-welcome__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.xk-welcome__actions .xk-btn {
    width: auto;
    min-width: 210px;
}

.xk-next {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
    text-align: left;
}

@media (max-width: 768px) {
    .xk-next {
        grid-template-columns: minmax(0, 1fr);
    }
}

.xk-next__item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--xk-line);
    border-radius: 10px;
    color: var(--xk-muted);
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.16s ease;
}

.xk-next__item:hover {
    border-color: rgba(234, 179, 8, 0.45);
    color: var(--xk-text);
}

.xk-next__item strong {
    color: var(--xk-text);
    display: block;
    font-size: 14px;
}

/* Name of the dance the avatar is currently doing */
.xk-dance {
    margin: 10px 0 0;
    color: var(--xk-muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

