/* Zimpet creation — dark stage, neon glow, glassy control panel */

.zc {
    --zc-accent: #F2B51D;              /* Dobba Gold — selection / energy */
    --zc-accent-rgb: 242, 181, 29;
    --zc-glow: 64, 255, 180;           /* neon fern glow */
    --zc-canopy: #2bff9a;
    --zc-deep: #034032;
    width: 100%;
    min-height: 100%;
    padding: 20px 16px 40px;
    border-radius: 18px;
    /* Neon fern — punchier tropical greens + aqua for strong contrast on jungle bg */
    background:
        radial-gradient(980px 480px at 6% -12%, rgba(80, 255, 190, .55) 0%, transparent 52%),
        radial-gradient(820px 520px at 100% 0%, rgba(30, 240, 255, .42) 0%, transparent 50%),
        radial-gradient(720px 560px at 48% 115%, rgba(70, 255, 150, .28) 0%, transparent 46%),
        linear-gradient(155deg, #04965c 0%, #0cbc78 24%, #0aa0a8 52%, #067866 78%, #045748 100%);
    color: #f4fff8;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .2),
        0 0 0 2px rgba(60, 255, 200, .28),
        0 18px 40px rgba(0, 40, 30, .35);
}

.zc__shell {
    max-width: 100%;
    margin: 0 auto;
}

.zc__head {
    text-align: center;
    margin-bottom: 18px;
}

.zc__kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--zc-accent);
    opacity: .95;
    text-shadow: 0 0 18px rgba(var(--zc-accent-rgb), .35);
}

.zc__title {
    margin: 6px 0 4px;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff8e7;
    background: linear-gradient(90deg, #fffaf0, #F2B51D 55%, #ffd66a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.zc__sub {
    margin: 0;
    color: #c6e6d2;
    font-size: 0.95rem;
}

.zc__error {
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(229, 72, 77, .12);
    border: 1px solid rgba(229, 72, 77, .4);
    color: #ffb4b7;
    text-align: center;
    font-size: 0.9rem;
}

.zc__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 820px) {
    /* Desktop/laptop: roomy create panel; mobile stays stacked + full-bleed narrow. */
    body.app-body--onboarding .app-shell {
        max-width: 1100px;
        width: 100%;
    }

    .zc__shell {
        max-width: 1100px;
    }

    .zc__layout {
        grid-template-columns: minmax(340px, 0.95fr) minmax(420px, 1.15fr);
        gap: 28px;
        align-items: start;
    }

    .zc-stage {
        position: sticky;
        top: 16px;
        min-height: 420px;
        padding: 36px 28px 28px;
    }

    .zc-stage__art {
        width: 300px;
        height: 300px;
    }

    .zc-stage__glow {
        width: 400px;
        height: 400px;
    }

    .zc__title {
        font-size: 2.15rem;
    }
}

/* ---- Preview stage ------------------------------------------------------- */
.zc-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px 20px;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 70% 55% at 50% 42%, rgba(90, 255, 210, .28) 0%, transparent 70%),
        linear-gradient(180deg, rgba(230, 255, 250, .22), rgba(4, 48, 44, .55));
    border: 1.5px solid rgba(120, 255, 220, .45);
    overflow: hidden;
    min-height: 320px;
    box-shadow:
        0 18px 40px rgba(0, 30, 25, .32),
        inset 0 1px 0 rgba(255, 255, 255, .18);
}

.zc-stage__glow {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--zc-glow), .55) 0%, rgba(var(--zc-glow), 0) 70%);
    filter: blur(6px);
    transition: background .3s ease;
    pointer-events: none;
}

.zc-stage__art {
    position: relative;
    z-index: 1;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    /* Transparent plate so PNG alpha shows the stage glow behind */
    background: transparent;
}

.zc-stage__art img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(18, 61, 43, .28));
    animation: zc-float 4s ease-in-out infinite;
}

@keyframes zc-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.zc-stage__plate {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    text-align: center;
}

.zc-stage__name {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: lowercase;
    color: #fff8e7;
}

.zc-stage__meta {
    display: block;
    margin-top: 2px;
    font-size: 0.85rem;
    color: #d4f0c8;
    text-transform: capitalize;
}

/* Stage glow tint per selected color */
.zc-stage[data-color="red"]    { --zc-glow: 229, 72, 77; }
.zc-stage[data-color="blue"]   { --zc-glow: 27, 110, 245; }
.zc-stage[data-color="yellow"] { --zc-glow: 245, 197, 24; }
.zc-stage[data-color="green"]  { --zc-glow: 48, 164, 108; }
.zc-stage[data-color="pink"]   { --zc-glow: 233, 61, 130; }
.zc-stage[data-color="orange"] { --zc-glow: 247, 107, 21; }
.zc-stage[data-color="purple"] { --zc-glow: 142, 78, 198; }
.zc-stage[data-color="brown"]  { --zc-glow: 139, 90, 43; }

/* ---- Controls ------------------------------------------------------------ */
.zc-controls {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(2, 36, 34, .48);
    border: 1.5px solid rgba(120, 255, 220, .28);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

.zc-step__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 1.02rem;
    font-weight: 800;
    color: #fff8e7;
}

.zc-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--zc-accent);
    color: #123D2B;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 0 0 3px rgba(var(--zc-accent-rgb), .22);
}

.zc-status {
    margin: 0;
    padding: 16px 0;
    color: #c6e6d2;
    font-size: 0.9rem;
}

/* Species grid */
.zc-species {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zc-species__roster,
.zc-species__locked-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (min-width: 480px) {
    .zc-species__roster,
    .zc-species__locked-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.zc-species__myth {
    margin-top: 4px;
    padding: 14px 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(180, 220, 255, 0.28);
    background:
        radial-gradient(ellipse 80% 70% at 50% 0%, rgba(160, 120, 255, 0.18), transparent 62%),
        linear-gradient(180deg, rgba(8, 28, 40, 0.55), rgba(6, 22, 34, 0.35));
    box-shadow:
        inset 0 1px 0 rgba(210, 230, 255, 0.12),
        0 0 28px rgba(120, 160, 255, 0.12);
}

.zc-species__divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.zc-species__divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(190, 220, 255, 0.65),
        rgba(170, 130, 255, 0.55),
        rgba(190, 220, 255, 0.65),
        transparent
    );
}

.zc-species__divider-label {
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d7e8ff;
    text-shadow: 0 0 12px rgba(160, 200, 255, 0.45);
    white-space: nowrap;
}

.zc-species__myth-lede {
    margin: 0 0 12px;
    text-align: center;
    font-size: 0.78rem;
    color: #b9cee8;
    font-style: italic;
}

.zc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px 8px;
    border: 2px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    cursor: pointer;
    color: #fff8e7;
    font: inherit;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.zc-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--zc-accent-rgb), .65);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}
.zc-card:focus-visible { outline: 3px solid var(--zc-accent); outline-offset: 2px; }

.zc-card.is-selected {
    border-color: var(--zc-accent);
    background: rgba(242, 181, 29, .18);
    box-shadow:
        0 0 0 3px rgba(var(--zc-accent-rgb), .45),
        0 10px 28px rgba(242, 181, 29, .28);
}

.zc-card__art {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: transparent;
    overflow: hidden;
}

.zc-card__art img { width: 100%; height: 100%; object-fit: contain; }

.zc-card__name {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: capitalize;
}

.zc-badge {
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.zc-badge--std { background: rgba(48, 164, 108, .25); color: #7ff0b6; }
.zc-badge--ltd {
    background: rgba(242, 181, 29, .22);
    color: #ffe08a;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.58rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    white-space: normal;
}

.zc-badge--myth {
    background: linear-gradient(90deg, rgba(140, 110, 255, 0.35), rgba(80, 180, 255, 0.28));
    color: #e8f0ff;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.58rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    white-space: normal;
    border: 1px solid rgba(200, 220, 255, 0.28);
}

.zc-card--locked { cursor: not-allowed; filter: grayscale(100%); opacity: .55; }
.zc-card--locked:hover {
    transform: none;
    border-color: rgba(255, 255, 255, .14);
    box-shadow: none;
}
.zc-card--locked .zc-card__art {
    background: transparent;
}

/* Locked species (found in gameplay) */
.zc-card--locked-glow {
    opacity: 0.72;
    border-color: rgba(180, 210, 255, 0.28);
    background:
        radial-gradient(circle at 50% 0%, rgba(160, 120, 255, 0.16), transparent 60%),
        rgba(10, 24, 36, 0.45);
    box-shadow: inset 0 0 0 1px rgba(190, 220, 255, 0.08);
}

.zc-card--locked-glow:hover {
    transform: none;
    border-color: rgba(190, 220, 255, 0.42);
    box-shadow:
        0 0 0 1px rgba(160, 200, 255, 0.2),
        0 0 22px rgba(120, 150, 255, 0.18);
}

.zc-card--locked-glow .zc-card__name {
    color: #dce8ff;
}

/* Colors */
.zc-colors { display: flex; flex-wrap: wrap; gap: 10px; }

.zc-swatch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1.5px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(8, 24, 18, .55);
    cursor: pointer;
    color: #eaf0ff;
    font: inherit;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.zc-swatch:hover { transform: translateY(-1px); border-color: var(--zc-accent); }
.zc-swatch:focus-visible { outline: 3px solid var(--zc-accent); outline-offset: 2px; }
.zc-swatch.is-selected {
    border-color: var(--zc-accent);
    box-shadow: 0 0 0 3px rgba(var(--zc-accent-rgb), .4);
}

.zc-swatch__dot {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: #ccc;
}

.zc-swatch__label { font-size: 0.82rem; font-weight: 700; }

.zc-swatch--red .zc-swatch__dot { background: #e5484d; }
.zc-swatch--blue .zc-swatch__dot { background: #1b6ef5; }
.zc-swatch--yellow .zc-swatch__dot { background: #f5c518; }
.zc-swatch--green .zc-swatch__dot { background: #30a46c; }
.zc-swatch--pink .zc-swatch__dot { background: #e93d82; }
.zc-swatch--orange .zc-swatch__dot { background: #f76b15; }
.zc-swatch--purple .zc-swatch__dot { background: #8e4ec6; }
.zc-swatch--brown .zc-swatch__dot { background: #8b5a2b; }

.zc-swatch--locked { cursor: not-allowed; filter: grayscale(80%); opacity: .5; }
.zc-swatch--locked:hover { transform: none; border-color: rgba(255, 255, 255, .12); }
.zc-swatch__lock { font-size: 0.72rem; }

/* Name */
.zc-name {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, .18);
    background: rgba(255, 250, 240, .08);
    color: #fff;
    font: inherit;
    font-size: 1rem;
}

.zc-name::placeholder { color: #9bb8a8; }
.zc-name:focus {
    outline: none;
    border-color: var(--zc-accent);
    box-shadow: 0 0 0 3px rgba(var(--zc-accent-rgb), .28);
}

.zc-name__status { margin: 6px 2px 0; font-size: 0.82rem; min-height: 1em; color: #c6e6d2; }
.zc-name__status--ok { color: #9dffc2; }
.zc-name__status--bad { color: #ffb4b7; }
.zc-name__status--checking { color: #c6e6d2; opacity: .8; }

/* Actions */
.zc-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.zc-btn {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: none;
    font: inherit;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .15s ease, opacity .15s ease;
}

.zc-btn--primary {
    background: linear-gradient(90deg, #F2B51D, #E9651A);
    color: #123D2B;
    box-shadow: 0 12px 28px rgba(233, 101, 26, .35);
}

.zc-btn--primary:hover:not(:disabled) { transform: translateY(-2px); }
.zc-btn--primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.zc-btn--ghost {
    background: transparent;
    color: #9fb0d6;
    border: 1px solid rgba(255, 255, 255, .14);
}

.zc-btn--ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }

.zc__slots {
    margin: 8px 0 0;
    font-size: 0.88rem;
    color: #d4f0c8;
    font-weight: 700;
}

a.zc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.zc__layout {
    position: relative;
}

.zc__layout--locked .zc-stage,
.zc__layout--locked .zc-controls {
    filter: grayscale(1);
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
}

.zc-slots-full {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
    background: rgba(11, 16, 28, 0.72);
    border-radius: 18px;
}

.zc-slots-full:not([hidden]) {
    display: flex;
}

.zc-slots-full__msg {
    margin: 0;
    max-width: 28rem;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    color: #ffd873;
}

