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

:root {
    --zp-bg: #04130d;
    --zp-deep: #06170e;
    --zp-card: #05160e;
    --zp-station: #0e2d1d;
    --zp-gold: #f7c51e;
    --zp-gold-soft: #f3cd66;
    --zp-gold-mid: #f1b645;
    --zp-cream: #f4e4b5;
    --zp-done: #87a768;
    --zp-btn-text: #504419;
    --zp-progress-track: rgba(146, 146, 146, 0.39);
    --zp-shadow: 0 4px 5.9px rgba(0, 0, 0, 0.25);
    --zp-radius: 10px;
    --zp-page-pad: 25px;
}

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

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

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

.home {
    position: relative;
    width: 100%;
    max-width: 402px;
    margin: 0 auto;
    min-height: 100dvh;
    padding: 30px var(--zp-page-pad) 36px;
    overflow: hidden;
}

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

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

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

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

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

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

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

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

.home-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;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
}

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

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

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

.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 {
    position: absolute;
    inset: 0;
}

.zoo-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    opacity: 0.85;
}

.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;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    z-index: 1;
}

.zoo-card__title {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 0.924;
    letter-spacing: -0.42px;
    text-transform: capitalize;
    color: var(--zp-gold-soft);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.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;
    box-shadow: var(--zp-shadow);
    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);
    margin-top: 1px;
}

.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;
    overflow: visible;
    color: inherit;
}

.station-card__art {
    width: 78px;
    height: 70px;
    margin-top: 4px;
    flex-shrink: 0;
}

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

.station-card__title {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 0.924;
    letter-spacing: -0.4px;
    text-transform: capitalize;
    color: var(--zp-gold-soft);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.station-card__subtitle {
    font-size: 8px;
    font-weight: 300;
    letter-spacing: -0.16px;
    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);
    white-space: nowrap;
}

/* Sections */
.home-section__title {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 0.924;
    letter-spacing: -0.6px;
    text-transform: capitalize;
    color: var(--zp-gold-soft);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    text-align: center;
    margin-bottom: 14px;
}

/* Animals */
.animal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.animal-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 109px;
    background: var(--zp-card);
    border: 0.5px solid var(--zp-gold);
    border-radius: var(--zp-radius);
    box-shadow: var(--zp-shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.animal-card__media {
    position: relative;
    overflow: hidden;
}

.animal-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.9;
}

.animal-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 22, 14, 0) 40%, #05160e 95%);
}

.animal-card__info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 14px 8px 10px 4px;
    margin-left: -8px;
}

.animal-card__name {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 0.924;
    letter-spacing: -0.48px;
    text-transform: capitalize;
    color: var(--zp-gold-soft);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.animal-card__species {
    font-size: 8px;
    color: var(--zp-cream);
    letter-spacing: -0.16px;
    margin-top: 4px;
}

.animal-card__track {
    margin-top: 10px;
    width: 54px;
    height: 7px;
    background: var(--zp-progress-track);
    border-radius: 21px;
    overflow: hidden;
}

.animal-card__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--zp-gold-soft), var(--zp-gold-mid));
    border-radius: 21px;
}

.animal-card__score {
    margin-top: 6px;
    font-size: 8px;
    font-weight: 300;
    color: var(--zp-gold-soft);
    letter-spacing: -0.16px;
}

.animal-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    min-height: 19px;
}

.animal-card__done {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    color: var(--zp-done);
}

.animal-card__done-icon {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--zp-done);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.animal-card__done-icon img {
    width: 9px;
    height: 7px;
}

.animal-card__go {
    width: 14px;
    height: 14px;
    display: grid;
    place-items: center;
    margin-left: auto;
}

.animal-card__go img {
    width: 4px;
    height: 8px;
}

.animal-card--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zp-gold-soft);
    font-size: 12px;
    opacity: 0.6;
}

/* Media gallery */
.media-mosaic {
    display: grid;
    grid-template-columns: 1.95fr 1fr 1fr;
    grid-template-rows: 84px 84px;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.media-tile {
    position: relative;
    border: 0.5px solid var(--zp-gold);
    border-radius: var(--zp-radius);
    box-shadow: var(--zp-shadow);
    overflow: hidden;
}

.media-tile--lg {
    grid-row: span 2;
}

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

.media-tile__play {
    position: absolute;
    left: 7px;
    bottom: 7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    display: grid;
    place-items: center;
}

.media-tile__play::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #fff;
    margin-left: 2px;
}

.media-tile__time {
    position: absolute;
    right: 7px;
    bottom: 7px;
    height: 16px;
    min-width: 36px;
    padding: 0 6px;
    border-radius: 18px;
    background: rgba(20, 20, 20, 0.67);
    backdrop-filter: blur(1px);
    color: #fff;
    font-size: 8px;
    letter-spacing: 0.16px;
    display: grid;
    place-items: center;
}

.media-tile--add {
    background: var(--zp-deep);
    opacity: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border-style: solid;
}

.media-tile--add-inner {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    border: 0.5px dashed var(--zp-gold);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.media-tile__plus {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 1px solid var(--zp-gold);
    display: grid;
    place-items: center;
    color: var(--zp-gold);
    font-size: 14px;
    line-height: 1;
}

.media-tile__add-text {
    font-size: 8px;
    line-height: 1.2;
    letter-spacing: -0.16px;
    color: var(--zp-gold-soft);
    text-align: center;
    max-width: 70px;
}

/* Actions */
.home-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.zp-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 41px;
    border-radius: 5px;
    box-shadow: var(--zp-shadow);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, filter 0.15s ease;
}

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

.zp-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.zp-btn--ghost {
    background: var(--zp-deep);
    border: 0.5px solid var(--zp-gold);
    color: var(--zp-gold-soft);
}

.zp-btn--ghost-soft {
    background: var(--zp-station);
    border: 0.5px solid var(--zp-gold);
    color: var(--zp-gold-soft);
}

.zp-btn--gold {
    position: relative;
    background: linear-gradient(143deg, #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);
}

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

.zp-btn--login {
    width: 100%;
    height: 44px;
    margin-top: 4px;
}

.zp-btn--login img {
    width: 11px;
    height: 14px;
}

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