@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700&family=Nunito+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --zp-bg: #04130d;
    --zp-deep: #06170e;
    --zp-station: #0e2d1d;
    --zp-gold: #f7c51e;
    --zp-gold-soft: #f3cd66;
    --zp-gold-mid: #f1b645;
    --zp-cream: #f4e4b5;
    --zp-correct: #87a768;
    --zp-correct-bg: #394d26;
    --zp-btn-text: #504419;
    --zp-shadow: 0 4px 5.9px rgba(0, 0, 0, 0.25);
    --zp-radius: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.pet-page {
    min-height: 100dvh;
    background: var(--zp-bg);
    color: var(--zp-cream);
    font-family: 'Nunito Sans', sans-serif;
    overflow-x: hidden;
}

.pet {
    position: relative;
    width: 100%;
    max-width: 402px;
    margin: 0 auto;
    min-height: 100dvh;
    padding: 30px 25px 32px;
}

.pet__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.pet__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.pet__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Header */
.pet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pet-header__logo {
    display: block;
    width: 141px;
    height: 43px;
}

.pet-header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.pet-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pet-header__gift {
    display: inline-block;
    width: 28px;
    height: 26px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.pet-header__gift img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 8px 0 10px;
    background: var(--zp-deep);
    border: 0.4px solid var(--zp-gold);
    border-radius: 26px;
    color: var(--zp-cream);
    font-size: 15px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
}

.lang-btn__arrows {
    width: 8px;
    height: 8px;
}

.lang-btn__globe {
    width: 18px;
    height: 18px;
    object-fit: cover;
}

/* Top cards */
.pet-top {
    display: grid;
    grid-template-columns: 1.62fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.zoo-card {
    position: relative;
    height: 128px;
    border-radius: var(--zp-radius);
    border: 0.4px solid var(--zp-gold);
    box-shadow: var(--zp-shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.zoo-card__media,
.zoo-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zoo-card__fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #021610 8%, rgba(2, 22, 16, 0) 98%);
}

.zoo-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.zoo-card__title {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--zp-gold-soft);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.zoo-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 21px;
    padding: 0 10px;
    background: #031610;
    border: 0.4px solid var(--zp-gold);
    border-radius: 5px;
    color: var(--zp-gold-soft);
    font-size: 8px;
    font-weight: 500;
}

.zoo-card__link-chevron {
    width: 6px;
    height: 6px;
    border-right: 1px solid var(--zp-gold-soft);
    border-bottom: 1px solid var(--zp-gold-soft);
    transform: rotate(-45deg);
}

.station-card {
    position: relative;
    height: 128px;
    background: var(--zp-station);
    border: 0.4px solid var(--zp-gold);
    border-radius: var(--zp-radius);
    box-shadow: var(--zp-shadow);
    overflow: hidden;
    padding: 4px 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    overflow: visible;
}

.station-card__art {
    width: 78px;
    height: 70px;
}

.station-card__art img {
    width: 145px;
    height: 145px;
    object-fit: contain;
    position: relative;
    top:-50px;
    right: 40px;
}

.station-card__title {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--zp-gold-soft);
    text-align: center;
    line-height: 100%;
}

.station-card__subtitle {
    font-size: 8px;
    font-weight: 300;
    color: var(--zp-cream);
    text-align: center;
    margin-top: 4px;
}

.station-card__progress-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
    padding: 0 4px;
}

.station-card__track {
    flex: 1;
    height: 7px;
    background: #494c2d;
    border-radius: 26px;
    overflow: hidden;
}

.station-card__fill {
    height: 100%;
    width: 60%;
    background: var(--zp-gold-mid);
    border-radius: 26px;
}

.station-card__pct {
    font-size: 8px;
    font-weight: 300;
    color: var(--zp-gold-soft);
}

/* Stage */
.pet-stage {
    position: relative;
    height: 397px;
    border: 0.5px solid var(--zp-gold);
    border-radius: var(--zp-radius);
    box-shadow: var(--zp-shadow);
    overflow: hidden;
    background: #000;
}

.pet-stage__media {
    position: absolute;
    inset: 0;
}

.pet-stage__media img,
.pet-stage__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    background: #0a1a12;
}

.pet-stage__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.52) 5%, rgba(0, 0, 0, 0) 53%);
    pointer-events: none;
}

.pet-stage__title-block {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    padding: 0 70px;
}

.pet-stage__name {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 0.92;
    letter-spacing: -1px;
    color: var(--zp-gold-soft);
    text-shadow: 0 2px 2.4px rgba(0, 0, 0, 0.25);
    text-transform: capitalize;
}

.pet-stage__species {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--zp-cream);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.pet-stage__score {
    position: absolute;
    top: 21px;
    right: 10px;
    z-index: 3;
    min-width: 58px;
    height: 21px;
    padding: 0 10px;
    border-radius: 10.5px;
    background: #09341d;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    font-size: 12px;
    font-weight: 600;
    color: var(--zp-cream);
}

.pet-stage__score span {
    color: var(--zp-gold-soft);
}

.pet-action {
    position: absolute;
    z-index: 3;
    width: 62px;
    height: 69px;
    border: 0.5px solid var(--zp-gold);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(1px);
    color: var(--zp-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    font-family: inherit;
    padding: 6px 4px 8px;
}

.pet-action img {
    width: 34px;
    height: 32px;
    object-fit: contain;
}

.pet-action span {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

.pet-action--left {
    left: 10px;
    border-radius: 5px 27px 5px 5px;
}

.pet-action--right {
    right: 10px;
    border-radius: 27px 5px 5px 5px;
}

.pet-action--feed { top: 98px; }
.pet-action--play { top: 178px; }
.pet-action--groom { top: 98px; }
.pet-action--home { top: 178px; }

.pet-action.is-done {
    opacity: 0.55;
}

.pet-action.is-done::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 8px;
    color: var(--zp-correct);
    font-size: 11px;
    font-weight: 700;
}

.pet-learn {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 3;
    width: 138px;
    height: 46px;
    border: 0.2px solid var(--zp-gold);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(1.5px);
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 38px;
    text-align: left;
}

.pet-learn__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid #fff;
}

.pet-learn__title {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 500;
    font-size: 11px;
    color: var(--zp-gold-soft);
    line-height: 1.1;
}

.pet-learn__title strong {
    font-size: 12px;
}

.pet-learn__sub {
    font-size: 9px;
    color: var(--zp-cream);
    margin-top: 2px;
}

/* Quiz */
.pet-quiz {
    background: var(--zp-deep);
    border: 0.5px solid var(--zp-gold);
    border-radius: var(--zp-radius);
    box-shadow: var(--zp-shadow);
    padding: 16px 14px 16px;
}

.pet-quiz__title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
}

.pet-quiz__qmark {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 0.8px solid #c3a853;
    color: #c3a853;
    font-size: 8px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.pet-quiz__text {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 0.92;
    color: var(--zp-gold-soft);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    text-transform: capitalize;
}

.pet-quiz__answers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.pet-answer {
    position: relative;
    min-height: 31px;
    border: 0.2px solid var(--zp-gold);
    border-radius: 5px;
    background: var(--zp-station);
    color: var(--zp-cream);
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    padding: 0 8px;
}

.pet-answer--correct,
.pet-answer.is-correct {
    background: var(--zp-correct-bg);
    border-color: var(--zp-correct);
    border-width: 0.5px;
}

.pet-answer.is-wrong {
    opacity: 0.55;
}

.pet-answer__check {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--zp-correct);
    display: none;
    place-items: center;
}

.pet-answer.is-correct .pet-answer__check {
    display: grid;
}

.pet-answer__check img {
    width: 7px;
    height: 5px;
}

/* Progress */
.pet-progress {
    position: relative;
    background: var(--zp-deep);
    border: 0.5px solid var(--zp-gold);
    border-radius: var(--zp-radius);
    box-shadow: var(--zp-shadow);
    padding: 18px 16px 16px;
    min-height: 134px;
    overflow: visible;
}

.pet-progress__title {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--zp-gold-soft);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    margin-bottom: 12px;
}

.pet-progress__bar {
    width: 108px;
    height: 7px;
    background: #494c2d;
    border-radius: 26px;
    overflow: hidden;
    margin-bottom: 16px;
}

.pet-progress__fill {
    height: 100%;
    width: 75%;
    background: var(--zp-gold-mid);
    border-radius: 26px;
}

.pet-progress__stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 10px;
    color: var(--zp-cream);
    max-width: 170px;
}

.pet-progress__stats strong {
    color: var(--zp-gold-mid);
    font-weight: 700;
}

.pet-progress__award {
    position: absolute;
    right: 30px;
    top: -24px;
    width: 139px;
    height: 139px;
    pointer-events: none;
}

.pet-progress__award img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pet-progress__xp {
    position: absolute;
    right: 74px;
    bottom: 14px;
    min-width: 58px;
    height: 20px;
    padding: 0 10px;
    border-radius: 10.5px;
    background: #09341d;
    box-shadow: var(--zp-shadow);
    color: var(--zp-gold-soft);
    font-size: 11px;
    font-weight: 500;
    display: grid;
    place-items: center;
}

/* CTA */
.zp-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.zp-btn:active {
    transform: scale(0.98);
}

.zp-btn--gold {
    width: 100%;
    height: 44px;
    background: linear-gradient(158deg, #f7c51e 14%, #ffd445 87%);
    color: var(--zp-btn-text);
    border: 1px solid #967509;
    border-radius: 6px;
    box-shadow: 0 4px 0 #bd9611, var(--zp-shadow);
    font-size: 12px;
    font-weight: 700;
}

.zp-btn--gold img {
    width: 17px;
    height: 12px;
}

.zp-btn--gold:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* Animals strip */
.pet-animals {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 63px;
    padding: 12px 12px 12px 14px;
    background: var(--zp-station);
    border: 0.5px solid var(--zp-gold);
    border-radius: 5px;
    box-shadow: var(--zp-shadow);
}

.pet-animals__list {
    display: flex;
    gap: 5px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
}

.pet-animals__item {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    border: 1px solid var(--zp-gold);
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    opacity: 0.85;
}

.pet-animals__item.is-active {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(247, 197, 30, 0.45);
}

.pet-animals__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pet-animals__view {
    flex-shrink: 0;
    height: 36px;
    min-width: 138px;
    padding: 0 14px;
    background: var(--zp-station);
    border: 0.5px solid var(--zp-gold);
    border-radius: 5px;
    box-shadow: var(--zp-shadow);
    color: var(--zp-gold-soft);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pet-animals__view-chevron {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--zp-gold-soft);
    border-bottom: 1.5px solid var(--zp-gold-soft);
    transform: rotate(-45deg);
}

@media (min-width: 480px) {
    .pet {
        margin-top: 24px;
        margin-bottom: 24px;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
        overflow: hidden;
    }
}
