/* =============================================================
   KFC33 — SCORE PAGE
   Page-specific styling for the city-selection landing.
   Loaded together with (and after) core.css. Everything here is
   unique to this page; anything reusable lives in core.css.
   ============================================================= */

/* Content top-aligns under the header via core.css's .content (flex
   column, justify-content: flex-start), keeping the header→content gap
   consistent with every other page instead of vertically centering the
   landing content (which floated it low on tall viewports). */

/* -------------------------------------------------------------
   City selection grid
   ------------------------------------------------------------- */
/* Title spacing intentionally uses the global .general-ttl rule from
   core.css so the score title sits the SAME distance above its content
   as every other page (uniform site-wide). */

.city-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: var(--gap);
    width: 100%;
    max-width: 440px;
    margin: 0 auto clamp(1.5rem, 5vw, 2.5rem);
}

.city-list li.has-thumb {
    aspect-ratio: 16 / 11;
    border-color: var(--c-line-strong);
}

/* City card link — label anchored bottom-left over the thumbnail */
.city-list .city-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding: clamp(0.95rem, 4vw, 1.2rem);
    cursor: pointer;
}

/* Full-card tap target. On thumbnail cards the <li> height comes from
   aspect-ratio, which some mobile browsers don't treat as a definite height
   for the link's height:100% — so the anchor collapsed to just the label and
   only that strip was tappable. Anchoring the link as an inset:0 overlay makes
   it fill the whole card on every browser (visual layout unchanged). */
.city-list li.has-thumb .city-wrap {
    position: absolute;
    inset: 0;
}

.city-list .cw-text {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 6vw, 1.9rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: #fff;
    text-align: left;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
    transition: transform var(--t-med) var(--ease);
}

/* Chevron affordance — signals the card is selectable */
.city-list .city-wrap::after {
    content: "";
    position: absolute;
    right: clamp(0.95rem, 4vw, 1.2rem);
    bottom: clamp(1.05rem, 4vw, 1.35rem);
    width: 0.7rem;
    height: 0.7rem;
    border-top: 2px solid rgba(255, 255, 255, 0.9);
    border-right: 2px solid rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
    opacity: 0.55;
    transition: opacity var(--t-med) var(--ease), right var(--t-med) var(--ease);
}

.city-list li:hover .city-wrap::after,
.city-list li:focus-within .city-wrap::after {
    opacity: 1;
    right: clamp(0.65rem, 3vw, 0.9rem);
}

.city-list li:hover .cw-text,
.city-list li:focus-within .cw-text {
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
   Support notice (home / landing variant)
   ------------------------------------------------------------- */
.home-notice {
    max-width: 440px;
    margin: 0 auto;
    padding: clamp(0.9rem, 3.5vw, 1.15rem) clamp(1rem, 4vw, 1.3rem);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: var(--c-panel);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.home-notice p {
    font-size: clamp(0.9rem, 2.6vw, 1rem);
    line-height: 1.55;
    color: var(--c-ink-soft);
}

.home-notice a {
    color: var(--c-ink);
    font-weight: 600;
    /* Keep "Customer Support" together on one line (no mid-phrase break). */
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--c-line-strong);
    transition: text-decoration-color var(--t-fast) var(--ease);
}

.home-notice a:hover {
    text-decoration-color: var(--c-ink);
}

/* -------------------------------------------------------------
   Entrance — gentle staggered rise on load
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .content > .city-list,
    .content > .home-notice {
        animation: score-rise 0.6s var(--ease) both;
    }

    .content > .city-list {
        animation-delay: 0s;
    }

    .content > .home-notice {
        animation-delay: 0.08s;
    }
}

@keyframes score-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
