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

:root {
    --zp-bg: #04130d;
    --zp-deep: #06170e;
    --zp-card: #051615;
    --zp-station: #0e2d1d;
    --zp-gold: #f7c51e;
    --zp-gold-soft: #f3cd66;
    --zp-cream: #f4e4b5;
    --zp-unlocked: #5cb556;
    --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.progress-page {
    min-height: 100dvh;
    background: var(--zp-bg);
    color: var(--zp-cream);
    font-family: 'Nunito Sans', sans-serif;
    overflow-x: hidden;
}

.progress {
    position: relative;
    width: 100%;
    max-width: 402px;
    margin: 0 auto;
    min-height: 100dvh;
    padding: 30px 20px 36px;
    overflow-x: hidden;
}

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

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

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

/* Header — same pattern as home */
.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

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

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

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

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

.progress-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;
}

/* XP card */
.xp-card {
    position: relative;
    border: 0.5px solid var(--zp-gold);
    border-radius: var(--zp-radius);
    background: rgba(6, 23, 14, 0.8);
    box-shadow: var(--zp-shadow);
    padding: 12px 16px 12px 14px;
    overflow: hidden;
    min-height: 125px;
}

.xp-card__main {
    display: grid;
    grid-template-columns: 47px 1fr;
    gap: 10px;
    align-items: start;
    max-width: calc(100% - 100px);
}

.xp-level {
    position: relative;
    width: 47px;
    height: 50px;
    display: grid;
    place-items: center;
}

.xp-level__star {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.xp-level__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.92;
    color: var(--zp-gold-soft);
    font-family: 'Baloo 2', sans-serif;
    font-weight: 500;
    text-transform: capitalize;
}

.xp-level__label {
    font-size: 11px;
    letter-spacing: -0.33px;
}

.xp-level__num {
    font-size: 30px;
    letter-spacing: -0.9px;
    margin-top: -2px;
}

.xp-meta {
    padding-top: 4px;
}

.xp-meta__row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.xp-meta__label {
    font-size: 9px;
    color: var(--zp-cream);
    letter-spacing: -0.18px;
}

.xp-info {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0.8px solid var(--zp-cream);
    color: var(--zp-cream);
    font-size: 7px;
    font-weight: 600;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    opacity: 0.9;
}

.xp-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.xp-bar__fill {
    height: 100%;
    width: 80%;
    background: var(--zp-gold);
    border-radius: 26px;
}

.xp-bar__vals {
    font-size: 10px;
    white-space: nowrap;
    font-weight: 300;
    color: var(--zp-gold-soft);
}

.xp-bar__vals strong {
    font-weight: 500;
    color: var(--zp-gold);
}

.xp-bar__vals span {
    color: #787d4f;
}

.xp-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    max-width: calc(100% - 100px);
}

.xp-actions__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 6px 12px 6px 14px;
    background: var(--zp-deep);
    border: 0.2px solid var(--zp-gold);
    border-radius: 8px;
    box-shadow: var(--zp-shadow);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.xp-action {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.xp-action img {
    width: 18px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.xp-action__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.xp-action__xp {
    font-size: 10px;
    font-weight: 500;
    color: var(--zp-gold-soft);
    letter-spacing: -0.2px;
}

.xp-action__label {
    font-size: 7px;
    font-weight: 300;
    color: var(--zp-cream);
    letter-spacing: -0.14px;
}

.xp-actions__chevron {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--zp-gold);
    border-bottom: 1.5px solid var(--zp-gold);
    transform: rotate(-45deg);
    flex-shrink: 0;
    margin-right: 2px;
}

.xp-card__mascot {
    position: absolute;
    right: -10px;
    top: 11px;
    width: 120px;
    height: 118px;
    pointer-events: none;
    z-index: 2;
}

.xp-card__mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

/* Station card */
.station-panel {
    position: relative;
    border: 0.5px solid var(--zp-gold);
    border-radius: var(--zp-radius);
    background: var(--zp-card);
    box-shadow: var(--zp-shadow);
    overflow: hidden;
    padding: 12px 10px 16px;
}

.station-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 0 4px;
}

.station-panel__intro {
    flex: 1;
    min-width: 0;
}

.station-panel__title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.station-panel__desc {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 300;
    color: var(--zp-cream);
    letter-spacing: -0.2px;
    line-height: 1.35;
    max-width: 160px;
}

.station-missions {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 156px;
    min-height: 56px;
    padding-right: 10px;
    background: #09341d;
    border-radius: 8px;
    box-shadow: var(--zp-shadow);
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.station-missions__medal {
    width: 42px;
    height: 42px;
    object-fit: cover;
    object-position: center 100%;
    flex-shrink: 0;
    border-radius: 6px;
}

.station-missions__text {
    font-size: 9px;
    font-weight: 300;
    line-height: 1.27;
    letter-spacing: -0.18px;
    color: rgba(244, 228, 181, 0.8);
}

.station-missions__chevron {
    width: 7px;
    height: 7px;
    border-right: 1.4px solid var(--zp-gold-soft);
    border-bottom: 1.4px solid var(--zp-gold-soft);
    transform: rotate(-45deg);
    margin-left: auto;
    flex-shrink: 0;
}

.station-map {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 360px;
    background: #04130d;
}

.station-map__bg {
    position: absolute;
    inset: 0;
}

.station-map__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    filter: blur(0.5px);
}

.station-map__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(4, 19, 13, 0.28);
}

.station-map__cabin {
    position: absolute;
    left: -8%;
    top: -6%;
    width: 108%;
    max-width: none;
    pointer-events: none;
    z-index: 1;
}

.station-map__cabin img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.station-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 88px 78px 78px;
    gap: 8px 8px;
    padding: 100px 12px 14px;
    align-items: end;
}

.unlock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    min-height: 68px;
    position: relative;
    z-index: 1;
}

.unlock-item--active {
    justify-content: flex-end;
}

.unlock-item__lock {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
}

.unlock-item__lock img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.unlock-item__badge {
    position: relative;
    width: 101px;
    max-width: 100%;
    min-height: 36px;
    padding: 6px 8px 5px;
    background: var(--zp-station);
    border: 0.2px solid var(--zp-gold);
    border-radius: 5px;
}

.unlock-item--active .unlock-item__badge {
    background: radial-gradient(circle at 50% 0%, #2a6726 0%, #164014 100%);
    border: 0.6px solid var(--zp-gold);
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
    width: 110px;
    min-height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.unlock-item__name {
    font-size: 8px;
    font-weight: 500;
    color: var(--zp-cream);
    line-height: 1.15;
}

.unlock-item--active .unlock-item__name {
    font-family: 'Baloo 2', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--zp-gold-soft);
}

.unlock-item__meta {
    margin-top: 2px;
    font-size: 8px;
    font-weight: 300;
    letter-spacing: -0.16px;
    color: rgba(244, 228, 181, 0.8);
}

.unlock-item--active .unlock-item__meta {
    color: var(--zp-unlocked);
}

.unlock-item--locked .unlock-item__badge {
    background: rgba(0, 0, 0, 0.41);
    backdrop-filter: blur(2px);
    border: none;
    border-radius: 5px;
    width: auto;
    min-width: 64px;
    max-width: 95px;
    padding: 6px 8px;
}

/* dashed connector lines */
.station-grid__line {
    position: absolute;
    border-top: 1px dashed rgba(247, 197, 30, 0.5);
    pointer-events: none;
    z-index: 0;
}

.station-grid__line--r1 {
    left: 28%;
    right: 28%;
    top: 132px;
}

.station-grid__line--r2 {
    left: 28%;
    right: 28%;
    top: 214px;
}

.station-grid__line--r3 {
    left: 28%;
    right: 28%;
    top: 296px;
}

.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;
}

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

.zp-btn--gold {
    position: relative;
    align-self: center;
    width: 231px;
    height: 41px;
    margin-top: 8px;
    background: linear-gradient(150deg, #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: 19px;
    height: 14px;
    object-fit: contain;
}

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