/* STEPS screen. Everything is scoped under .app-screen--steps. */
.app-screen--steps {
    display: flex;
    flex-direction: column;
    background: #0b1526;
    color: #ffffff;
    font-family: var(--font-family);
}

.app-screen--steps .steps-header {
    flex: 0 0 auto;
    background: #006D4F;
    color: #ffffff;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 12px;
    border-bottom: 2px solid #ffffff;
}

.app-screen--steps .steps-header__top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.app-screen--steps .steps-back {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin-left: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #ffffff;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.app-screen--steps .steps-title {
    margin: 0;
    font-family: var(--font-family);
    font-size: 20px;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.app-screen--steps .steps-title:focus { outline: none; }

.app-screen--steps .steps-chips {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.app-screen--steps .steps-chips::-webkit-scrollbar { display: none; }

.app-screen--steps .steps-chip {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 14px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 999px;
    cursor: pointer;
}

.app-screen--steps .steps-chip[aria-pressed="true"] {
    background: #ffffff;
    color: #006D4F;
}

.app-screen--steps .steps-back:focus-visible,
.app-screen--steps .steps-chip:focus-visible,
.app-screen--steps .steps-card__story:focus-visible {
    outline: var(--focus-outline, 3px solid #f9e243);
    outline-offset: 2px;
}

.app-screen--steps .steps-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px calc(env(safe-area-inset-bottom, 0px) + 16px);
}

.app-screen--steps .steps-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    min-height: 84px;
    padding: 10px;
    margin-bottom: 10px;
    background: #122a46;
    border: 2px solid #33496e;
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.app-screen--steps .steps-card:last-child { margin-bottom: 0; }
.app-screen--steps .steps-card:active { background: #18365a; }

.app-screen--steps .steps-card__num {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b2f4f;
    border: 2px solid #33496e;
    border-radius: 12px;
    color: #f9e243;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.app-screen--steps .steps-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.app-screen--steps .steps-card__name {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
}

/* the name link covers the whole card, so a tap anywhere opens it (the story button sits above) */
.app-screen--steps .steps-card__name::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
}
.app-screen--steps .steps-card__name:focus-visible { outline: none; }
.app-screen--steps .steps-card__name:focus-visible::after {
    outline: var(--focus-outline, 3px solid #f9e243);
    outline-offset: 2px;
}

.app-screen--steps .steps-card__meta,
.app-screen--steps .steps-card__hood {
    font-size: 13px;
    line-height: 1.25;
    color: #d3dcee;
}

.app-screen--steps .steps-card__story {
    /* 44px touch target, pulled back so it does not inflate the card */
    min-height: 44px;
    position: relative;   /* above the stretched name link */
    z-index: 1;
    margin: -12px 0;
    padding: 0;
    background: transparent;
    border: 0;
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f9e243;
    text-align: left;
    cursor: pointer;
}

.app-screen--steps .steps-card__chev {
    flex: 0 0 auto;
    display: inline-flex;
    color: #d3dcee;
}

.app-screen--steps .steps-card__next {
    position: absolute;
    top: 6px;
    right: 8px;
    padding: 2px 7px;
    background: #f9e243;
    color: #0b1526;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    pointer-events: none;
}

.app-screen--steps .steps-card.is-next {
    border-left: 6px solid #f9e243;
    padding-left: 6px;
}

.app-screen--steps .steps-card.is-done { opacity: 0.6; }

.app-screen--steps .steps-empty {
    margin: 40px 16px;
    text-align: center;
    font-size: 15px;
    color: #d3dcee;
}

@media (prefers-reduced-motion: no-preference) {
    .app-screen--steps .steps-card { transition: background 0.12s ease; }
}

/* narrow phones: all three chips fit without scrolling */
@media (max-width: 400px) {
    .app-screen--steps .steps-chips { gap: 6px; }
    .app-screen--steps .steps-chip { font-size: 12px; padding: 0 10px; letter-spacing: 0.02em; }
}
