/* Lemonade Empire: public stand directory + profiles */

.stands-directory-page,
.stand-profile-page {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 22px 0 46px;
}

.stands-kicker {
    display: block;
    color: #6f7e53;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
}

.stands-directory-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, #f6d85d52 0 100px, transparent 102px),
        linear-gradient(135deg, #f8f5df, #eef3df);
    border: 1px solid #dfe2c7;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.stands-directory-hero h1,
.stand-profile-shopfront h1,
.stand-section-heading h2 {
    margin: 6px 0 8px;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--green);
}

.stands-directory-hero h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.04; }
.stands-directory-hero p { max-width: 680px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.stands-shuffle-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 10px 17px;
    flex: 0 0 auto;
    background: var(--green);
    color: #fffbe8;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 25px #23483325;
}

.stands-shuffle-icon { display: inline-block; font-size: 20px; line-height: 1; }
.stands-shuffle-button.is-shuffling .stands-shuffle-icon { animation: stand-shuffle-spin .55s cubic-bezier(.2,.8,.3,1); }

.stands-directory-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 11px 14px;
    background: #fff9dc;
    border: 1px dashed #dbc36a;
    border-radius: 11px;
    color: #75652b;
    font-size: 10px;
}
.stands-directory-note p { margin: 0; }

.stands-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stand-directory-card {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    padding: 15px 16px 17px;
    color: var(--ink);
    background: #fbf9ea;
    border: 1px solid #dfddc2;
    border-radius: 17px;
    box-shadow: 0 7px 24px #233e2d10;
    text-decoration: none;
    transform-origin: 50% 60%;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.stand-directory-card:hover {
    transform: translateY(-3px);
    border-color: #b5c397;
    box-shadow: 0 13px 34px #233e2d20;
}

.stand-directory-card[hidden] { display: none; }
.stand-directory-card.is-demo { background: #f5f2e7; }
.stand-directory-card.is-demo-tapped { animation: stand-demo-tap .3s ease; }

.stand-directory-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stand-card-status { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.stand-card-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px currentColor; opacity: .55; }
.stand-card-status.is-open { color: #3f7d4b; }
.stand-card-status.is-closed { color: #97624b; }
.stand-card-demo { padding: 3px 7px; color: #7c7050; background: #e8e2ce; border-radius: 99px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.stand-card-arrow { color: #75835c; font-size: 18px; }

.stand-card-awning,
.stand-profile-awning {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 13px;
    margin: 13px -16px 14px;
    overflow: hidden;
}
.stand-card-awning span:nth-child(odd), .stand-profile-awning span:nth-child(odd) { background: #e5c83d; }
.stand-card-awning span:nth-child(even), .stand-profile-awning span:nth-child(even) { background: #f8f1c6; }

.stand-directory-card h2 { margin: 0 0 13px; font-family: Georgia, serif; color: var(--green); font-size: 21px; line-height: 1.15; }
.stand-card-mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.stand-card-mini-stats span { padding: 8px 9px; background: #efefdf; border-radius: 9px; min-width: 0; }
.stand-card-mini-stats small, .stand-card-mini-stats strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stand-card-mini-stats small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.stand-card-mini-stats strong { margin-top: 3px; font-size: 12px; }
.stand-card-visit { display: block; margin-top: 13px; color: #58704f; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }

.stands-card-grid.is-shuffling .stand-directory-card:not([hidden]) {
    animation: stand-card-out .27s ease both;
    animation-delay: calc(var(--shuffle-index, 0) * 18ms);
}
.stands-card-grid.is-shuffled-in .stand-directory-card:not([hidden]) { animation: stand-card-in .46s cubic-bezier(.18,.85,.25,1.25) both; }
.stands-card-grid.is-shuffled-in .stand-directory-card:nth-child(2n) { animation-delay: 35ms; }
.stands-card-grid.is-shuffled-in .stand-directory-card:nth-child(3n) { animation-delay: 70ms; }

/* Public stand profile */
.stand-profile-loading,
.stand-profile-error {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px;
    text-align: center;
    background: #f8f6e7;
    border: 1px solid var(--line);
    border-radius: 20px;
}
.stand-profile-loading[hidden], .stand-profile-error[hidden] { display: none; }
.stand-loading-lemon { font-size: 42px; animation: stand-lemon-bob 1.2s ease-in-out infinite; }
.stand-profile-error > span { font-size: 42px; }
.stand-profile-error h1 { margin: 5px 0; font-family: Georgia, serif; color: var(--green); }
.stand-profile-error p { margin: 0; color: var(--muted); }
.stand-profile-error a { margin-top: 10px; padding: 10px 14px; background: var(--green); color: #fffbea; border-radius: 10px; text-decoration: none; font-weight: 800; }

.stand-profile-shopfront {
    overflow: hidden;
    background: linear-gradient(180deg, #fffdf1, #f4f2df);
    border: 1px solid #dedbc0;
    border-radius: 22px 22px 14px 14px;
    box-shadow: var(--shadow);
}
.stand-profile-awning { grid-template-columns: repeat(6, 1fr); height: 22px; margin: 0; }
.stand-profile-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 27px 26px; }
.stand-profile-shopfront h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.03; }
.stand-profile-last-seen { margin: 0; color: var(--muted); font-size: 11px; }

.stand-open-sign {
    min-width: 150px;
    padding: 13px 16px;
    text-align: center;
    background: #faf7e8;
    border: 2px solid currentColor;
    border-radius: 10px;
    transform: rotate(1.2deg);
    box-shadow: 0 8px 18px #0000000d;
}
.stand-open-sign.is-open { color: #3d7849; }
.stand-open-sign.is-closed { color: #8c5d48; }
.stand-open-sign strong, .stand-open-sign small { display: block; }
.stand-open-sign strong { font-family: Georgia, serif; font-size: 21px; text-transform: uppercase; letter-spacing: .12em; }
.stand-open-sign small { margin-top: 4px; font-size: 8px; letter-spacing: .02em; }
.stand-open-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; vertical-align: 2px; background: currentColor; border-radius: 50%; }
.stand-open-sign.is-open .stand-open-dot { animation: stand-open-pulse 1.7s ease infinite; }

.stand-live-counter-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    margin: 14px 0 0;
    overflow: hidden;
    background: #d7d6bd;
    border: 1px solid #d7d6bd;
    border-radius: 13px;
}
.stand-live-counter-strip article { min-width: 0; padding: 13px 12px; background: #f7f5e7; }
.stand-live-counter-strip span, .stand-live-counter-strip strong { display: block; }
.stand-live-counter-strip span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.stand-live-counter-strip strong { margin-top: 4px; overflow: hidden; color: var(--green); font-family: Georgia, serif; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }

.stand-profile-live-line { display: flex; align-items: center; gap: 7px; margin: 8px 3px 20px; color: var(--muted); font-size: 9px; }
.stand-profile-live-pulse { width: 7px; height: 7px; background: #5f8e57; border-radius: 50%; box-shadow: 0 0 0 0 #5f8e574d; animation: stand-live-pulse 2s infinite; }
.stand-profile-revision { margin-left: auto; }

.stand-upgrade-board,
.stand-stat-ledger {
    padding: 20px;
    background: #f8f6e8;
    border: 1px solid #dedcc5;
    border-radius: 17px;
}
.stand-stat-ledger { margin-top: 14px; background: #f3efe3; }
.stand-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.stand-section-heading h2 { margin-bottom: 0; font-size: 25px; }
.stand-section-heading p { max-width: 360px; margin: 0; color: var(--muted); font-size: 9px; text-align: right; }

.stand-upgrade-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stand-upgrade-chip { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 11px; background: #fffdf0; border: 1px solid #dfdcc2; border-radius: 11px; }
.stand-upgrade-icon { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 auto; background: #eeebce; border-radius: 9px; font-size: 16px; }
.stand-upgrade-chip small, .stand-upgrade-chip strong { display: block; }
.stand-upgrade-chip small { color: var(--muted); font-size: 8px; }
.stand-upgrade-chip strong { margin-top: 2px; color: var(--green); font-size: 11px; }

.stand-stat-sections { display: grid; gap: 12px; }
.stand-ledger-section { overflow: hidden; background: #fffdf2; border: 1px solid #ddd8bd; border-radius: 13px; }
.stand-ledger-section > header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #e9ead6; border-bottom: 1px solid #d9dac1; }
.stand-ledger-section > header h3 { margin: 0; color: #506747; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.stand-ledger-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stand-ledger-row { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; min-width: 0; padding: 10px 12px; border-bottom: 1px dotted #ddd8c6; }
.stand-ledger-row:nth-child(odd) { border-right: 1px dotted #ddd8c6; }
.stand-ledger-label { color: #686d5f; font-size: 9px; }
.stand-ledger-value { min-width: 0; color: #2f513b; font-family: Georgia, serif; font-size: 13px; text-align: right; overflow-wrap: anywhere; }

@keyframes stand-shuffle-spin { from { transform: rotate(0) scale(1); } 50% { transform: rotate(210deg) scale(1.2); } to { transform: rotate(360deg) scale(1); } }
@keyframes stand-card-out { to { opacity: 0; transform: translateY(10px) rotate(calc((var(--shuffle-index, 0) - 2) * 1.8deg)) scale(.94); } }
@keyframes stand-card-in { from { opacity: 0; transform: translateY(-13px) scale(.93); } to { opacity: 1; transform: none; } }
@keyframes stand-demo-tap { 50% { transform: rotate(-1deg) scale(.985); } }
@keyframes stand-lemon-bob { 50% { transform: translateY(-8px) rotate(5deg); } }
@keyframes stand-open-pulse { 50% { opacity: .45; } }
@keyframes stand-live-pulse { 70% { box-shadow: 0 0 0 7px #5f8e5700; } 100% { box-shadow: 0 0 0 0 #5f8e5700; } }

@media (max-width: 900px) {
    .stands-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .stand-live-counter-strip { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .stand-upgrade-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 640px) {
    .stands-directory-page, .stand-profile-page { padding-top: 12px; }
    .stands-directory-hero, .stand-profile-heading-row, .stand-section-heading { align-items: stretch; flex-direction: column; }
    .stands-shuffle-button { width: 100%; justify-content: center; }
    .stands-card-grid { grid-template-columns: 1fr; }
    .stand-open-sign { width: 100%; transform: none; }
    .stand-live-counter-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .stand-upgrade-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .stand-section-heading p { text-align: left; }
    .stand-ledger-grid { grid-template-columns: 1fr; }
    .stand-ledger-row:nth-child(odd) { border-right: 0; }
}

html.reduce-motion .stands-shuffle-button.is-shuffling .stands-shuffle-icon,
html.reduce-motion .stands-card-grid.is-shuffling .stand-directory-card,
html.reduce-motion .stands-card-grid.is-shuffled-in .stand-directory-card,
html.reduce-motion .stand-loading-lemon,
html.reduce-motion .stand-open-sign.is-open .stand-open-dot,
html.reduce-motion .stand-profile-live-pulse { animation: none !important; }


/* =========================================================
   Public achievement showcase
   ========================================================= */

.stand-achievement-showcase {
    margin-top: 24px;
    padding: 24px;
    background: #f8f5e8;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 26px #3343290b;
}

.stand-achievement-groups {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.stand-achievement-group {
    padding: 15px;
    background: #fffdf4;
    border: 1px solid #e3dfc9;
    border-radius: 13px;
}

.stand-achievement-group > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.stand-achievement-group h3 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px;
}

.stand-achievement-group > header span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.stand-achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.stand-achievement-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #ded8bb;
    border-radius: 10px;
    background: #fff9dd;
}

.stand-achievement-badge.is-locked {
    filter: grayscale(1);
    opacity: .38;
    background: #efefe9;
}

.stand-achievement-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f0df9c;
    font-size: 18px;
}

.stand-achievement-badge.is-locked .stand-achievement-icon {
    background: #deded8;
}

.stand-achievement-copy {
    min-width: 0;
}

.stand-achievement-copy strong,
.stand-achievement-copy small {
    display: block;
}

.stand-achievement-copy strong {
    overflow: hidden;
    font-size: 10px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stand-achievement-copy small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
}

@media (max-width: 760px) {
    .stand-achievement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .stand-achievement-showcase {
        padding: 16px;
    }

    .stand-achievement-grid {
        grid-template-columns: 1fr;
    }
}


/* Prestige identity marker beside public stand names */
.stand-profile-name-line {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 4px;
}

.stand-profile-name-line h1 {
    margin-top: 0;
    margin-bottom: 0;
}

.stand-card-name-line {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 8px;
}

.stand-card-name-line h2 {
    min-width: 0;
    margin: 0;
}

@media (max-width: 520px) {
    .stand-profile-name-line {
        align-items: flex-start;
    }
}
