.page-wrap {
    max-width:1000px;
    padding:45px 28px 20px;
    margin:auto;
    min-height:55vh
}
.page-heading {
    text-align:center;
    max-width:640px;
    margin:0 auto 35px
}
.page-heading h1 {
    font-family:Georgia,serif;
    font-size:46px;
    font-weight:500;
    letter-spacing:-1.5px;
    margin:14px 0
}
.page-heading p {
    color:var(--muted);
    font-size:14px;
    line-height:1.8
}
.page-card {
    padding:28px;
    max-width:800px;
    margin:20px auto;
    background:var(--card);
    border:1px solid var(--line);
    border-radius:20px
}
.prose {
    max-width:720px;
    margin:auto;
    line-height:1.85
}
.prose h2 {
    font-family:Georgia,serif;
    font-weight:500;
    font-size:27px;
    margin:30px 0 12px
}
.prose p,.prose li {
    font-size:14px;
    color:#687060;
    margin-bottom:14px
}
.prose a {
    text-decoration:underline
}
.leaderboard-row {
    display:grid;
    grid-template-columns:36px minmax(100px,1fr) 100px 80px;
    gap:14px;
    align-items:center;
    padding:16px 8px;
    border-bottom:1px solid var(--line)
}
.leaderboard-row:last-child {
    border:0
}
.rank {
    font-family:Georgia,serif;
    font-size:22px;
    color:#9a916c
}
.ranking-player {
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
    font-weight:600;
    font-size:13px
}
.ranking-player img {
    height:43px;
    width:40px;
    object-fit:contain
}
.ranking-player span {
    overflow:hidden;
    text-overflow:ellipsis
}
.ranking-score {
    font-size:18px;
    text-align:center;
    font-weight:650
}
.ranking-fruit {
    height:42px;
    justify-self:center
}
.ranking-head {
    font-size:9px;
    font-weight:600;
    letter-spacing:1px;
    color:var(--muted)
}
.ranking-head span:nth-last-child(-n+2) {
    text-align:center
}
.page-note {
    text-align:center;
    font-size:11px;
    color:var(--muted);
    margin:25px 0
}
.profile-heading {
    text-align:center;
    margin-bottom:30px
}
.profile-heading img {
    height:115px;
    margin:auto
}
.profile-heading h1 {
    font-family:Georgia,serif;
    font-size:40px;
    margin:15px 0 8px;
    font-weight:500
}
.history-list {
    display:grid;
    gap:8px;
    margin-top:20px
}
.history-item {
    display:flex;
    justify-content:space-between;
    gap:14px;
    padding:16px;
    background:var(--card);
    border:1px solid var(--line);
    border-radius:12px
}
.history-item small {
    display:block;
    color:var(--muted);
    margin-top:5px
}
.admin-table {
    width:100%;
    border-collapse:collapse;
    font-size:12px
}
.admin-table td,.admin-table th {
    padding:12px;
    text-align:left;
    border-bottom:1px solid var(--line)
}
.table-scroll {
    overflow:auto
}
.admin-actions {
    display:flex;
    gap:6px;
    flex-wrap:wrap
}
.admin-actions button {
    padding:7px 10px;
    border:1px solid var(--line);
    border-radius:7px
}
.admin-inspect pre {
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    font-size:11px
}
.error-banner {
    background:#f9e7dc;
    padding:15px;
    border-radius:12px;
    color:#8c3b29
}
.account-page {
    max-width:560px;
    margin:auto
}
.step-cards {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
    margin:25px 0
}
.step-cards>div {
    border:1px solid var(--line);
    border-radius:16px;
    padding:20px;
    background:var(--card)
}
.step-cards img {
    height:70px;
    margin:auto auto 15px
}
.step-cards h3 {
    font-size:16px;
    margin-bottom:10px
}
.step-cards p {
    font-size:12px;
    line-height:1.8
}
.subheading {
    font-family:Georgia,serif;
    font-weight:500;
    font-size:25px;
    margin:30px 0 18px
}
.inspection-board {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:7px;
    max-width:300px;
    background:#dce3ce;
    padding:10px;
    border-radius:15px;
    margin:20px 0
}
.inspection-board>div {
    aspect-ratio:1;
    background:#f6f4e8;
    border-radius:8px
}
.inspection-board img {
    width:100%;
    height:100%;
    object-fit:contain
}

.player-card-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    max-width:860px;
    margin:0 auto;
}
.player-card {
    position:relative;
    display:grid;
    grid-template-columns:78px minmax(0,1fr);
    gap:18px;
    align-items:center;
    min-height:150px;
    padding:22px;
    background:var(--card);
    border:1px solid var(--line);
    border-radius:18px;
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.player-card:hover {
    transform:translateY(-2px);
    border-color:#c9c4ad;
    box-shadow:0 12px 30px rgba(71,77,57,.08);
}
.player-card-avatar {
    display:grid;
    place-items:center;
    width:78px;
    height:78px;
    border-radius:18px;
    background:#f7f5ec;
}
.player-card-avatar img {
    width:58px;
    height:58px;
    object-fit:contain;
}
.player-card-copy h2 {
    margin:0 0 7px;
    font-family:Georgia,serif;
    font-size:23px;
    font-weight:500;
    overflow-wrap:anywhere;
}
.player-card-copy p {
    margin:0;
    color:var(--muted);
    font-size:12px;
}
.player-card-stats {
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:12px;
    color:var(--muted);
    font-size:11px;
}
.player-card-stats strong {
    color:var(--text);
    font-size:13px;
}
.player-card-link {
    grid-column:1 / -1;
    padding-top:14px;
    border-top:1px solid var(--line);
    color:#6f765e;
    font-size:11px;
    font-weight:650;
    letter-spacing:.02em;
}
@media (max-width:700px) {
    .player-card-grid {
        grid-template-columns:1fr;
    }
}

/* Achievement page card gallery */
#page-content:has(.achievement-groups) {
    max-width:1180px;
    padding:0;
    background:transparent;
    border:0;
}
.achievement-groups {
    display:grid;
    gap:28px;
}
.achievement-group {
    background:rgba(255,255,255,.72);
    border:1px solid var(--line);
    border-radius:22px;
    padding:22px;
    box-shadow:0 12px 34px rgba(78,71,49,.06);
}
.achievement-group-heading {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:18px;
    margin-bottom:18px;
    padding-bottom:12px;
    border-bottom:1px solid var(--line);
}
.achievement-group-heading h2 {
    margin:0;
    font-family:Georgia,serif;
    font-size:25px;
    font-weight:500;
}
.achievement-group-heading span {
    color:var(--muted);
    font-size:10px;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.achievement-card-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:15px;
}
.achievement-card {
    position:relative;
    display:flex;
    flex-direction:column;
    min-width:0;
    overflow:hidden;
    padding:17px;
    border:1px solid #dfdac8;
    border-radius:18px;
    background:linear-gradient(180deg,#fffefa 0%,#f7f3e8 100%);
    box-shadow:0 5px 16px rgba(77,70,49,.06);
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.achievement-card.unlocked:hover {
    transform:translateY(-3px);
    border-color:#c6b77f;
    box-shadow:0 12px 26px rgba(77,70,49,.12);
}
.achievement-card.unlocked::before {
    content:"";
    position:absolute;
    inset:0 0 auto;
    height:4px;
    background:linear-gradient(90deg,#dcae44,#f0d987,#8cab68);
}
.achievement-card.locked {
    background:linear-gradient(180deg,#f6f5ef,#ecebe4);
}
.achievement-badge-wrap {
    display:grid;
    place-items:center;
    min-height:126px;
    margin:-3px 0 7px;
}
.achievement-badge-image {
    width:122px;
    height:122px;
    object-fit:contain;
    filter:drop-shadow(0 7px 7px rgba(75,59,27,.15));
    transition:transform .18s ease,filter .18s ease,opacity .18s ease;
}
.achievement-card.unlocked:hover .achievement-badge-image {
    transform:scale(1.04) rotate(-1deg);
}
.achievement-card.locked .achievement-badge-image {
    filter:grayscale(1) saturate(.15) opacity(.44);
}
.achievement-card-body {
    display:flex;
    flex:1;
    flex-direction:column;
}
.achievement-card-title {
    display:flex;
    align-items:start;
    justify-content:space-between;
    gap:10px;
}
.achievement-card-title h3 {
    margin:0;
    font-size:15px;
    line-height:1.3;
}
.achievement-card-title>span {
    flex:0 0 auto;
    padding:4px 7px;
    border-radius:999px;
    background:#eee7d4;
    color:#70664e;
    font-size:9px;
    font-weight:700;
}
.achievement-card.unlocked .achievement-card-title>span {
    background:#e4efd8;
    color:#557044;
}
.achievement-card-body>p {
    min-height:34px;
    margin:7px 0 13px;
    color:var(--muted);
    font-size:11px;
    line-height:1.55;
}
.achievement-card progress {
    display:block;
    width:100%;
    height:7px;
    margin-top:auto;
    overflow:hidden;
    border:0;
    border-radius:999px;
    accent-color:#77955d;
}
.achievement-card-meta {
    display:flex;
    justify-content:space-between;
    gap:9px;
    margin-top:8px;
    color:var(--muted);
    font-size:9px;
}
.achievement-card.unlocked .achievement-card-meta span:first-child {
    color:#5f7b4d;
    font-weight:700;
}
@media (max-width:800px) {
    .achievement-card-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:520px) {
    .achievement-group {padding:16px;}
    .achievement-card-grid {grid-template-columns:1fr;}
    .achievement-group-heading {align-items:start;flex-direction:column;gap:5px;}
    .achievement-card {display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;}
    .achievement-badge-wrap {min-height:0;margin:0;align-self:start;}
    .achievement-badge-image {width:96px;height:96px;}
}

/* Achievement page card gallery */
#page-content:has(.achievement-groups) {
    max-width:1180px;
    padding:0;
    background:transparent;
    border:0;
}
.achievement-groups {display:grid;gap:28px;}
.achievement-group {background:rgba(255,255,255,.72);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 12px 34px rgba(78,71,49,.06);}
.achievement-group-heading {display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid var(--line);}
.achievement-group-heading h2 {margin:0;font-family:Georgia,serif;font-size:25px;font-weight:500;}
.achievement-group-heading span {color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;}
.achievement-card-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;}
.achievement-card {position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;padding:17px;border:1px solid #dfdac8;border-radius:18px;background:linear-gradient(180deg,#fffefa 0%,#f7f3e8 100%);box-shadow:0 5px 16px rgba(77,70,49,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
.achievement-card.unlocked:hover {transform:translateY(-3px);border-color:#c6b77f;box-shadow:0 12px 26px rgba(77,70,49,.12);}
.achievement-card.unlocked::before {content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#dcae44,#f0d987,#8cab68);}
.achievement-card.locked {background:linear-gradient(180deg,#f6f5ef,#ecebe4);}
.achievement-badge-wrap {display:grid;place-items:center;min-height:126px;margin:-3px 0 7px;}
.achievement-badge-image {width:122px;height:122px;object-fit:contain;filter:drop-shadow(0 7px 7px rgba(75,59,27,.15));transition:transform .18s ease,filter .18s ease,opacity .18s ease;}
.achievement-card.unlocked:hover .achievement-badge-image {transform:scale(1.04) rotate(-1deg);}
.achievement-card.locked .achievement-badge-image {filter:grayscale(1) saturate(.15) opacity(.44);}
.achievement-card-body {display:flex;flex:1;flex-direction:column;}
.achievement-card-title {display:flex;align-items:start;justify-content:space-between;gap:10px;}
.achievement-card-title h3 {margin:0;font-size:15px;line-height:1.3;}
.achievement-card-title>span {flex:0 0 auto;padding:4px 7px;border-radius:999px;background:#eee7d4;color:#70664e;font-size:9px;font-weight:700;}
.achievement-card.unlocked .achievement-card-title>span {background:#e4efd8;color:#557044;}
.achievement-card-body>p {min-height:34px;margin:7px 0 13px;color:var(--muted);font-size:11px;line-height:1.55;}
.achievement-card progress {display:block;width:100%;height:7px;margin-top:auto;overflow:hidden;border:0;border-radius:999px;accent-color:#77955d;}
.achievement-card-meta {display:flex;justify-content:space-between;gap:9px;margin-top:8px;color:var(--muted);font-size:9px;}
.achievement-card.unlocked .achievement-card-meta span:first-child {color:#5f7b4d;font-weight:700;}
@media (max-width:800px) {.achievement-card-grid {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:520px) {.achievement-group {padding:16px;}.achievement-card-grid {grid-template-columns:1fr;}.achievement-group-heading {align-items:start;flex-direction:column;gap:5px;}.achievement-card {display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;}.achievement-badge-wrap {min-height:0;margin:0;align-self:start;}.achievement-badge-image {width:96px;height:96px;}}

/* Site-wide statistics page */
.statistics-page{max-width:1180px}
.statistics-heading{max-width:760px;margin-inline:auto}
.statistics-hero-grid,.statistics-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:28px 0}
.site-stat-card{min-width:0;padding:20px;background:linear-gradient(180deg,#fffefa,#f6f3e7);border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 24px rgba(72,71,52,.06)}
.site-stat-card>span{display:block;color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}
.site-stat-card>strong{display:block;margin:7px 0 5px;font-family:Georgia,serif;font-size:30px;font-weight:500;line-height:1.05;color:var(--text);overflow-wrap:anywhere}
.site-stat-card>small{display:block;color:var(--muted);font-size:10px;line-height:1.45}
.statistics-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.statistics-panel{min-width:0;padding:22px;background:rgba(255,255,255,.78);border:1px solid var(--line);border-radius:22px;box-shadow:0 10px 28px rgba(72,71,52,.055)}
.statistics-panel-wide{grid-column:1/-1}
.statistics-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.statistics-panel-heading h2{margin:4px 0 0;font-family:Georgia,serif;font-size:23px;font-weight:500;line-height:1.2}
.statistics-panel-heading>span{color:var(--muted);font-size:10px;text-align:right}
.statistics-live-dot::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#7e9c63;box-shadow:0 0 0 4px rgba(126,156,99,.12);vertical-align:-1px}
.statistics-mini-grid{margin:0}
.statistics-mini-grid .site-stat-card{box-shadow:none;background:#faf8f0}
.statistics-list{display:grid;gap:0;margin:0}
.statistics-list>div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid var(--line)}
.statistics-list>div:first-child{padding-top:0}
.statistics-list>div:last-child{padding-bottom:0;border-bottom:0}
.statistics-list dt{color:var(--muted);font-size:11px}
.statistics-list dd{margin:0;font-size:14px;font-weight:750;text-align:right}
.statistics-fruit-record dd{display:flex;align-items:center;gap:7px}
.statistics-fruit-record img{width:28px;height:28px;object-fit:contain}
.direction-grid,.device-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.direction-card,.device-stat-card{padding:16px;background:#faf8f0;border:1px solid #e4dfcf;border-radius:15px}
.direction-card>div:first-child,.device-stat-card>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:center}
.direction-card strong,.device-stat-card strong{font-size:12px}.direction-card span,.device-stat-card span{color:var(--muted);font-size:10px}
.statistics-bar{height:8px;margin:12px 0 7px;overflow:hidden;border-radius:999px;background:#e5e2d8}
.statistics-bar i{display:block;height:100%;max-width:100%;border-radius:inherit;background:linear-gradient(90deg,#7f9a63,#c0b66e)}
.direction-card small,.device-stat-card small{color:var(--muted);font-size:9px}
.fruit-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.fruit-stat-card{display:flex;align-items:center;gap:11px;min-width:0;padding:13px;background:#faf8f0;border:1px solid #e4dfcf;border-radius:15px}
.fruit-stat-card img{flex:0 0 auto;width:38px;height:38px;object-fit:contain}
.fruit-stat-card strong,.fruit-stat-card span{display:block}.fruit-stat-card strong{font-size:14px}.fruit-stat-card span{margin-top:2px;color:var(--muted);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.statistics-footnote{max-width:780px;margin:24px auto 0;text-align:center;line-height:1.6}
@media(max-width:900px){.statistics-hero-grid,.statistics-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fruit-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.direction-grid,.device-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.statistics-layout{grid-template-columns:1fr}.statistics-panel-wide{grid-column:auto}.statistics-panel{padding:17px}.statistics-hero-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.statistics-mini-grid{grid-template-columns:1fr}.site-stat-card{padding:16px}.site-stat-card>strong{font-size:25px}.fruit-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics-panel-heading{flex-direction:column;gap:6px}.statistics-panel-heading>span{text-align:left}}
@media(max-width:430px){.statistics-hero-grid{grid-template-columns:1fr}.direction-grid,.device-stat-grid,.fruit-stat-grid{grid-template-columns:1fr}}

/* Leaderboard team ranking */
.team-ranking-row { grid-template-columns:36px minmax(150px,1fr) 100px 130px; }
.ranking-team-name { display:flex; align-items:center; gap:14px; min-width:0; }
.ranking-team-name img { width:40px; height:43px; object-fit:contain; }
.ranking-team-name strong { font-size:13px; overflow:hidden; text-overflow:ellipsis; }
.ranking-team-players,.ranking-total { text-align:center; font-size:16px; }
.leaderboard-tabs { flex-wrap:wrap; }

/* Account recovery */
.auth-page-wrap{max-width:760px}
.auth-page-card{max-width:560px}
.account-form{display:grid;gap:10px}
.account-form label{font-size:12px;font-weight:650;color:var(--ink);margin-top:5px}
.account-form input{width:100%;min-height:46px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);padding:10px 12px;font:inherit}
.account-form input:focus{outline:2px solid #87976855;outline-offset:2px;border-color:var(--green)}
.auth-message{text-align:center;padding:12px 6px}
.auth-message h2{font-family:Georgia,serif;font-size:28px;font-weight:500;margin-bottom:10px}
.auth-message p{color:var(--muted);line-height:1.7;margin:0 auto 22px;max-width:460px}
.auth-help{font-size:12px;text-align:right;margin:6px 0 0}
.auth-help a,.auth-page-link{text-decoration:underline;text-underline-offset:3px}
.auth-page-link{display:inline-block;margin-top:14px;font-size:13px}
.auth-form-actions{align-items:center}

/* =========================================================
   HOW TO PLAY
   ========================================================= */

.how-to-play-page {
    --how-card-radius: 26px;
    --how-small-radius: 18px;
}

.how-to-play-page img {
    display: block;
    max-width: 100%;
}


/* Hero
--------------------------------------------------------- */

.how-to-play-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    align-items: center;
    gap: 42px;
    overflow: hidden;
    padding-top: 34px;
    padding-bottom: 34px;
}

.how-to-play-hero-copy {
    position: relative;
    z-index: 2;
}

.how-to-play-hero-copy h2 {
    margin: 5px 0 8px;
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.how-to-play-lead {
    max-width: 680px;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.7;
}

.how-to-play-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.how-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid rgba(82, 105, 74, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: inherit;
    font-weight: 800;
    text-decoration: none;
}

.how-secondary-button:hover {
    background: #fff;
}

.how-to-play-hero-art {
    position: relative;
    min-height: 320px;
}

.how-hero-fruit {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
    filter: drop-shadow(0 18px 24px rgba(55, 67, 43, .18));
}

.how-hero-fruit img {
    width: 100%;
}

.how-hero-fruit--cherry {
    width: 110px;
    left: 4%;
    bottom: 22%;
    transform: rotate(-8deg);
}

.how-hero-fruit--strawberry {
    width: 138px;
    left: 23%;
    top: 8%;
    transform: rotate(7deg);
}

.how-hero-fruit--dragon {
    width: 160px;
    right: 0;
    bottom: 8%;
    transform: rotate(4deg);
}

.how-hero-fruit--golden {
    width: 185px;
    top: 15%;
    right: 22%;
    z-index: 2;
}


/* Shared sections
--------------------------------------------------------- */

.how-section {
    margin-top: 38px;
}

.how-section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.how-section-heading h2 {
    margin: 5px 0 8px;
}

.how-section-heading p {
    margin-bottom: 0;
    font-size: 1.04rem;
    line-height: 1.7;
}

.how-kicker {
    display: block;
    margin-bottom: 6px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .62;
}


/* Quick start
--------------------------------------------------------- */

.how-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.how-step-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(85, 101, 71, .11);
    border-radius: var(--how-card-radius);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(246,249,237,.88)
        );
    box-shadow: 0 16px 42px rgba(58, 72, 48, .075);
}

.how-step-card--gold {
    background:
        linear-gradient(
            145deg,
            rgba(255,252,232,.98),
            rgba(255,243,183,.58)
        );
}

.how-step-number {
    position: absolute;
    top: 18px;
    right: 21px;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .12em;
    opacity: .28;
}

.how-step-image {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    margin: 4px auto 18px;
}

.how-step-image img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,.12));
}

.how-step-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.how-step-card p {
    margin: 0;
    line-height: 1.65;
}


/* Fruit progression
--------------------------------------------------------- */

.how-fruit-section {
    padding: clamp(22px, 4vw, 38px);
    border-radius: var(--how-card-radius);
    background:
        linear-gradient(
            180deg,
            rgba(249,252,240,.94),
            rgba(241,247,225,.72)
        );
}

.how-fruit-chain {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.how-fruit-card {
    position: relative;
    min-width: 0;
    padding: 16px 10px 13px;
    border: 1px solid rgba(74, 94, 65, .1);
    border-radius: 18px;
    background: rgba(255,255,255,.86);
    text-align: center;
    box-shadow: 0 7px 18px rgba(69, 82, 55, .05);
}

.how-fruit-card--golden {
    background:
        linear-gradient(
            150deg,
            rgba(255,255,247,.98),
            rgba(255,242,181,.72)
        );
    border-color: rgba(207, 164, 56, .22);
}

.how-fruit-image {
    display: grid;
    place-items: center;
    height: 76px;
    margin-bottom: 9px;
}

.how-fruit-image img {
    max-width: 72px;
    max-height: 72px;
    filter: drop-shadow(0 7px 7px rgba(55, 62, 38, .11));
}

.how-fruit-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.how-fruit-info strong {
    overflow: hidden;
    font-size: .82rem;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.how-fruit-info span {
    margin-top: 3px;
    font-size: .76rem;
    font-weight: 800;
    opacity: .5;
}

.how-golden-callout {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    padding: 20px 24px;
    border: 1px solid rgba(207, 164, 56, .22);
    border-radius: 22px;
    background:
        linear-gradient(
            120deg,
            rgba(255,253,240,.98),
            rgba(255,241,174,.68)
        );
}

.how-golden-callout-art {
    display: grid;
    place-items: center;
}

.how-golden-callout-art img {
    width: 105px;
    filter: drop-shadow(0 12px 11px rgba(108, 82, 20, .14));
}

.how-golden-callout h3 {
    margin: 2px 0 7px;
}

.how-golden-callout p {
    margin: 0;
    line-height: 1.7;
}


/* Quick facts
--------------------------------------------------------- */

.how-rule-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.how-rule-strip article {
    min-width: 0;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(80, 98, 67, .1);
    text-align: center;
}

.how-rule-strip strong {
    display: block;
    margin-bottom: 3px;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    line-height: 1;
}

.how-rule-strip span {
    display: block;
    margin-bottom: 8px;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .62;
}

.how-rule-strip p {
    margin: 0;
    font-size: .86rem;
    line-height: 1.5;
}


/* Strategy
--------------------------------------------------------- */

.how-strategy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.how-strategy-card {
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(69, 91, 63, .1);
}

.how-strategy-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 15px;
    border-radius: 15px;
    background: rgba(164, 190, 98, .16);
    font-size: 1.35rem;
    font-weight: 900;
}

.how-strategy-card h3 {
    margin: 0 0 7px;
}

.how-strategy-card p {
    margin: 0;
    line-height: 1.66;
}


/* Combos
--------------------------------------------------------- */

.how-combo-section {
    display: grid;
    grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr);
    align-items: center;
    gap: 38px;
    padding: 30px;
    border-radius: var(--how-card-radius);
    background:
        linear-gradient(
            125deg,
            rgba(254,246,218,.82),
            rgba(245,250,232,.93)
        );
}

.how-combo-art {
    position: relative;
    height: 190px;
}

.how-combo-art img {
    position: absolute;
    width: 110px;
    filter: drop-shadow(0 13px 12px rgba(64, 70, 45, .15));
}

.how-combo-art img:nth-child(1) {
    left: 3%;
    top: 43px;
    transform: rotate(-9deg);
}

.how-combo-art img:nth-child(2) {
    left: 32%;
    top: 2px;
    width: 134px;
}

.how-combo-art img:nth-child(3) {
    right: 0;
    top: 54px;
    transform: rotate(8deg);
}

.how-combo-copy h2 {
    margin: 4px 0 8px;
}

.how-combo-copy p {
    line-height: 1.7;
}


/* Assists
--------------------------------------------------------- */

.how-assist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.how-assist-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
    padding: 21px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(70, 91, 63, .1);
}

.how-assist-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(241, 196, 68, .16);
    font-size: 1.45rem;
    font-weight: 900;
}

.how-assist-count {
    display: block;
    margin-bottom: 3px;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .11em;
    opacity: .52;
}

.how-assist-card h3 {
    margin: 0 0 6px;
}

.how-assist-card p {
    margin: 0;
    line-height: 1.6;
}

.how-info-banner {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    margin-top: 16px;
    padding: 17px 20px;
    border-radius: 20px;
    background: rgba(119, 167, 207, .1);
    border: 1px solid rgba(95, 138, 174, .12);
}

.how-info-symbol {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.8);
    font-size: 1.3rem;
}

.how-info-banner p {
    margin: 2px 0 0;
}


/* No moves
--------------------------------------------------------- */

.how-game-over-section {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
    gap: 36px;
    align-items: center;
    padding: 30px;
    border-radius: var(--how-card-radius);
    background:
        linear-gradient(
            130deg,
            rgba(239,247,221,.94),
            rgba(255,252,237,.95)
        );
}

.how-game-over-copy h2 {
    margin: 4px 0 10px;
}

.how-game-over-copy p {
    line-height: 1.7;
}

.how-mini-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    max-width: 285px;
    margin: 0 auto;
    padding: 9px;
    border-radius: 22px;
    background: rgba(73, 90, 59, .12);
}

.how-mini-board img {
    aspect-ratio: 1;
    width: 100%;
    padding: 6px;
    border-radius: 13px;
    background: rgba(255,255,255,.8);
}


/* Performance
--------------------------------------------------------- */

.how-performance-section {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding: 28px;
    border-radius: var(--how-card-radius);
    background: #18271e;
    color: #f5f7ef;
}

.how-performance-icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 22px;
    background: rgba(255, 220, 104, .14);
    font-size: 2rem;
}

.how-performance-section .how-kicker {
    color: #dfeeb0;
    opacity: .8;
}

.how-performance-section h2 {
    margin: 4px 0 10px;
    color: #fff;
}

.how-performance-section p {
    color: rgba(255,255,255,.8);
    line-height: 1.7;
}

.how-small-note {
    margin-bottom: 0;
    font-size: .9rem;
    opacity: .82;
}


/* Records
--------------------------------------------------------- */

.how-record-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.how-record-grid article {
    min-width: 0;
    padding: 21px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(73, 92, 64, .1);
}

.how-record-grid article > span {
    display: block;
    margin-bottom: 6px;
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .1em;
    opacity: .5;
}

.how-record-grid strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.how-record-grid p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.55;
}


/* Settings
--------------------------------------------------------- */

.how-settings-section {
    padding: 26px 28px;
    border: 1px solid rgba(76, 95, 68, .1);
    border-radius: var(--how-card-radius);
    background: rgba(255,255,255,.78);
}

.how-settings-section > div {
    max-width: 850px;
}

.how-settings-section h2 {
    margin: 4px 0 10px;
}

.how-settings-section p {
    line-height: 1.7;
}


/* Final CTA
--------------------------------------------------------- */

.how-final-cta {
    position: relative;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    overflow: hidden;
    margin-top: 40px;
    padding: 34px;
    border-radius: 30px;
    background:
        radial-gradient(
            circle at 12% 25%,
            rgba(255,225,100,.42),
            transparent 34%
        ),
        linear-gradient(
            130deg,
            #eff6d8,
            #fff9dc
        );
}

.how-final-fruit {
    display: grid;
    place-items: center;
}

.how-final-fruit img {
    width: 155px;
    filter: drop-shadow(0 15px 14px rgba(77, 70, 27, .18));
}

.how-final-cta h2 {
    margin: 5px 0 7px;
}

.how-final-cta p {
    max-width: 600px;
    margin-bottom: 20px;
    line-height: 1.7;
}


/* Responsive
--------------------------------------------------------- */

@media (max-width: 900px) {

    .how-to-play-hero {
        grid-template-columns: 1fr;
    }

    .how-to-play-hero-art {
        min-height: 245px;
        max-width: 500px;
        width: 100%;
        margin: -10px auto 0;
    }

    .how-step-grid,
    .how-strategy-grid,
    .how-assist-grid {
        grid-template-columns: 1fr;
    }

    .how-fruit-chain {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .how-rule-strip,
    .how-record-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .how-combo-section,
    .how-game-over-section {
        grid-template-columns: 1fr;
    }

    .how-combo-art {
        max-width: 390px;
        width: 100%;
        margin: 0 auto;
    }

}


@media (max-width: 600px) {

    .how-to-play-hero {
        gap: 14px;
    }

    .how-to-play-hero-art {
        min-height: 195px;
    }

    .how-hero-fruit--cherry {
        width: 72px;
    }

    .how-hero-fruit--strawberry {
        width: 90px;
    }

    .how-hero-fruit--dragon {
        width: 105px;
    }

    .how-hero-fruit--golden {
        width: 120px;
    }

    .how-to-play-hero-actions {
        align-items: stretch;
    }

    .how-to-play-hero-actions a {
        flex: 1 1 auto;
    }

    .how-fruit-section {
        padding: 18px 13px;
    }

    .how-fruit-chain {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .how-fruit-card {
        padding: 10px 4px 9px;
        border-radius: 13px;
    }

    .how-fruit-image {
        height: 56px;
    }

    .how-fruit-image img {
        max-width: 54px;
        max-height: 54px;
    }

    .how-fruit-info strong {
        font-size: .68rem;
    }

    .how-fruit-info span {
        font-size: .65rem;
    }

    .how-golden-callout {
        grid-template-columns: 75px minmax(0, 1fr);
        gap: 13px;
        padding: 16px;
    }

    .how-golden-callout-art img {
        width: 68px;
    }

    .how-rule-strip,
    .how-record-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .how-rule-strip article,
    .how-record-grid article {
        padding: 15px 12px;
    }

    .how-assist-card {
        grid-template-columns: 45px minmax(0, 1fr);
        padding: 16px;
    }

    .how-assist-icon {
        width: 43px;
        height: 43px;
        border-radius: 13px;
    }

    .how-combo-section,
    .how-game-over-section,
    .how-performance-section,
    .how-settings-section {
        padding: 20px 17px;
    }

    .how-combo-art {
        height: 150px;
    }

    .how-combo-art img {
        width: 86px;
    }

    .how-combo-art img:nth-child(2) {
        width: 105px;
    }

    .how-performance-section {
        grid-template-columns: 1fr;
    }

    .how-performance-icon {
        width: 54px;
        height: 54px;
    }

    .how-final-cta {
        grid-template-columns: 95px minmax(0, 1fr);
        gap: 16px;
        padding: 22px 17px;
    }

    .how-final-fruit img {
        width: 90px;
    }

}


@media (max-width: 390px) {

    .how-fruit-chain {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .how-rule-strip,
    .how-record-grid {
        grid-template-columns: 1fr;
    }

    .how-final-cta {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .how-final-fruit {
        display: none;
    }

}

/* =========================================================
   PRIVATE PLAYER STATISTICS
   ========================================================= */
.private-statistics-page{max-width:1180px}
.private-statistics-heading{position:relative}
.private-statistics-lock{display:inline-flex;align-items:center;gap:7px;margin-top:10px;padding:7px 11px;border:1px solid #d9dfcb;border-radius:999px;background:#f4f7ea;color:#66725b;font-size:10px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}
.private-statistics-lock::before{content:"🔒";font-size:11px}
.private-stat-card>strong{font-variant-numeric:tabular-nums}
.private-fruit-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.fruit-stat-card-golden{background:linear-gradient(180deg,#fffdf2,#f8efc7);border-color:#e6d89d}
.private-milestone-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.private-milestone-card{display:grid;grid-template-columns:54px minmax(0,1fr);gap:12px;align-items:center;padding:14px;border:1px solid #e4dfcf;border-radius:15px;background:#faf8f0}
.private-milestone-card img{width:50px;height:50px;object-fit:contain}
.private-milestone-card strong,.private-milestone-card span{display:block}
.private-milestone-card strong{margin-bottom:4px;font-size:12px}.private-milestone-card span{color:var(--muted);font-size:10px;line-height:1.5}
.private-history-list{display:grid;gap:10px}
.private-history-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;border:1px solid #e4dfcf;border-radius:16px;background:#faf8f0}
.private-history-row>img{width:48px;height:48px;object-fit:contain}
.private-history-main{min-width:0}.private-history-main strong,.private-history-main span{display:block}.private-history-main strong{font-size:14px}.private-history-main span{margin-top:4px;color:var(--muted);font-size:10px;line-height:1.45;white-space:normal}
.private-history-meta{display:grid;justify-items:end;gap:4px;text-align:right}.private-history-meta small{color:var(--muted);font-size:9px}
.private-history-pill{display:inline-flex;padding:4px 8px;border-radius:999px;background:#edf3e5;color:#5f7650;font-size:9px;font-weight:800}.private-history-pill.assisted{background:#e9f0f8;color:#55728b}
@media(max-width:900px){.private-fruit-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.private-milestone-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.private-history-row{grid-template-columns:42px minmax(0,1fr);padding:12px}.private-history-row>img{width:38px;height:38px}.private-history-meta{grid-column:2;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px;text-align:left}.private-fruit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.private-milestone-grid{grid-template-columns:1fr}}
@media(max-width:430px){.private-fruit-grid{grid-template-columns:1fr}}


/* Leaderboard period selector */
.leaderboard-periods {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px;
    max-width:320px;
    margin:0 auto 12px;
    padding:4px;
    border-radius:11px;
    background:#e9ebdd;
}
.leaderboard-periods button {
    min-width:0;
    min-height:38px;
    padding:8px 12px;
    border-radius:8px;
    font-size:11px;
    font-weight:700;
    white-space:nowrap;
}
.leaderboard-periods button[aria-selected=true] {
    background:var(--card);
    box-shadow:0 2px 5px #53633810;
}
@media (max-width:600px) {
    .leaderboard-periods {
        width:100%;
        max-width:none;
        margin-bottom:9px;
    }
    .leaderboard-periods button {
        min-height:36px;
        padding:7px 6px;
        font-size:9px;
    }
}

/* Public player profile achievements */
.profile-achievements-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:34px 0 14px}.profile-achievements-heading .subheading{margin:3px 0 0}.profile-achievements-heading .page-note{margin:0;text-align:right}@media(max-width:620px){.profile-achievements-heading{align-items:start;flex-direction:column;gap:6px}.profile-achievements-heading .page-note{text-align:left}}

/* =========================================================
   SHOP PREVIEW
   ========================================================= */
.shop-page{max-width:1180px;padding-bottom:60px}
.shop-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center;gap:32px;overflow:hidden;padding:38px 42px;margin-bottom:20px;border:1px solid var(--line);border-radius:30px;background:linear-gradient(135deg,#fffdf4 0%,#f3f7e6 55%,#eef4d8 100%);box-shadow:0 18px 48px rgba(77,88,58,.07)}
.shop-hero h1{font-family:Georgia,serif;font-size:clamp(42px,6vw,68px);font-weight:500;letter-spacing:-2px;line-height:1;margin:10px 0 14px}
.shop-hero p{max-width:650px;color:var(--muted);font-size:15px;line-height:1.8;margin:0}
.shop-hero-fruit{display:grid;place-items:center}
.shop-hero-fruit img{width:150px;filter:drop-shadow(0 18px 18px rgba(135,103,19,.18))}
.shop-status-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.5fr);gap:12px;margin:18px 0}
.shop-status-card{display:flex;align-items:center;gap:12px;min-width:0;padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.shop-status-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:#f2f4e7;font-size:18px}
.shop-status-card small{display:block;font-size:9px;font-weight:800;letter-spacing:.13em;color:var(--muted);margin-bottom:3px}
.shop-status-card strong{font-size:13px;line-height:1.4}
.shop-jump-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:22px 0 30px;padding:7px;border:1px solid var(--line);border-radius:18px;background:#edf0e4}
.shop-jump-nav a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border-radius:12px;font-size:12px;font-weight:800;text-decoration:none}
.shop-jump-nav a:hover{background:#fff}
.shop-section{margin-top:30px}
.shop-section-soft{padding:26px;border-radius:26px;background:#f6f1e5;border:1px solid rgba(150,130,90,.1)}
.shop-section-heading{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:18px}
.shop-section-heading>div{max-width:650px}
.shop-section-heading h2{font-family:Georgia,serif;font-size:32px;font-weight:500;margin:4px 0 0}
.shop-section-heading>p{max-width:390px;margin:0;color:var(--muted);font-size:12px;line-height:1.7;text-align:right}
.shop-kicker{display:block;font-size:9px;font-weight:900;letter-spacing:.16em;color:var(--muted)}
.shop-product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.shop-product-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:20px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 10px 25px rgba(67,75,53,.04)}
.shop-product-tag{position:absolute;top:12px;right:12px;padding:5px 8px;border-radius:999px;background:#eff2e7;color:#65705b;font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.shop-product-icon{display:grid;place-items:center;width:68px;height:68px;margin:3px auto 14px;border-radius:20px;background:linear-gradient(145deg,#fff5c9,#f5e0a0);font-size:35px;box-shadow:inset 0 0 0 1px rgba(192,153,64,.13)}
.shop-product-card h3{margin:0 0 8px;text-align:center;font-family:Georgia,serif;font-size:21px;font-weight:500}
.shop-product-card p{flex:1;margin:0 0 18px;color:var(--muted);font-size:11px;line-height:1.65;text-align:center}
.shop-product-footer{display:grid;gap:8px}
.shop-product-footer strong{text-align:center;font-size:17px}
.shop-buy-button{min-height:38px;padding:8px 13px;border:0;border-radius:999px;background:#687f36;color:#fff;font-size:11px;font-weight:800;cursor:pointer}
.shop-buy-button:disabled{cursor:not-allowed;opacity:.52}
.shop-buy-button-wide{width:100%;margin-top:15px}
.shop-bundle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.shop-bundle-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:24px;border:1px solid rgba(148,128,82,.16);border-radius:22px;background:rgba(255,255,255,.88)}
.shop-bundle-badge{position:absolute;top:16px;right:16px;padding:6px 10px;border-radius:999px;background:#d95c42;color:#fff;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.shop-bundle-fruit{width:90px;height:90px;object-fit:contain;margin:0 auto 12px;filter:drop-shadow(0 10px 8px rgba(66,70,48,.12))}
.shop-bundle-card h3{font-family:Georgia,serif;font-size:24px;font-weight:500;margin:0 0 5px;text-align:center}
.shop-bundle-card>p{text-align:center;color:var(--muted);font-size:11px;line-height:1.6;margin:0 0 16px}
.shop-bundle-card ul{list-style:none;padding:0;margin:0;display:grid;gap:7px;flex:1}
.shop-bundle-card li{position:relative;padding-left:20px;font-size:11px;color:#596252}
.shop-bundle-card li:before{content:'✓';position:absolute;left:0;color:#71883f;font-weight:900}
.shop-bundle-price{display:flex;align-items:baseline;justify-content:center;gap:9px;margin-top:18px}
.shop-bundle-price strong{font-size:21px}
.shop-bundle-price del{font-size:11px;color:var(--muted)}
.shop-cosmetic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.shop-cosmetic-card{display:flex;flex-direction:column;min-width:0;padding:16px;border:1px solid var(--line);border-radius:20px;background:#fff}
.shop-cosmetic-preview{overflow:hidden;height:122px;border-radius:14px;background:#eef2e5;margin-bottom:14px}
.shop-cosmetic-preview img{width:100%;height:100%;object-fit:cover}
.shop-fruit-skins,.shop-effect-preview,.shop-frame-preview{display:flex;align-items:center;justify-content:center;height:122px;margin-bottom:14px;border-radius:14px;background:linear-gradient(145deg,#f3f6e9,#fff8e8)}
.shop-fruit-skins img{width:52px;height:52px;object-fit:contain;margin:-4px}
.shop-effect-preview{gap:6px;font-size:20px;color:#d4a52e}
.shop-effect-preview img{width:70px;height:70px;object-fit:contain;filter:drop-shadow(0 0 12px rgba(231,177,48,.35))}
.shop-frame-ring{display:grid;place-items:center;width:92px;height:92px;border:7px double #d7a83a;border-radius:50%;background:#fff7de;box-shadow:0 0 0 5px #f3e2aa}
.shop-frame-ring img{width:64px;height:64px;object-fit:contain}
.shop-cosmetic-copy{flex:1}
.shop-cosmetic-copy>span{display:block;font-size:8px;font-weight:900;letter-spacing:.12em;color:var(--muted)}
.shop-cosmetic-copy h3{font-family:Georgia,serif;font-size:19px;font-weight:500;margin:4px 0 6px}
.shop-cosmetic-copy p{color:var(--muted);font-size:10px;line-height:1.55;margin:0 0 14px}
.shop-fair-play{display:grid;grid-template-columns:70px minmax(0,1fr);gap:20px;align-items:center;margin-top:34px;padding:25px 28px;border-radius:24px;background:#1f2c23;color:#f6f5eb}
.shop-fair-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:18px;background:rgba(255,255,255,.09);font-size:28px}
.shop-fair-play .shop-kicker{color:#d9e7b1}
.shop-fair-play h2{font-family:Georgia,serif;font-size:27px;font-weight:500;margin:4px 0 7px;color:#fff}
.shop-fair-play p{margin:0;color:rgba(255,255,255,.75);font-size:12px;line-height:1.7}
.shop-bottom-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.shop-bottom-grid article{display:grid;grid-template-columns:38px minmax(0,1fr);gap:11px;align-items:start;padding:17px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.shop-bottom-grid article>span{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#f2f4e8}
.shop-bottom-grid strong{font-size:12px}
.shop-bottom-grid p{margin:3px 0 0;color:var(--muted);font-size:10px;line-height:1.55}
@media(max-width:980px){.shop-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-cosmetic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-status-row{grid-template-columns:1fr 1fr}.shop-status-wide{grid-column:1/-1}}
@media(max-width:760px){.shop-hero{grid-template-columns:1fr 110px;padding:28px 24px}.shop-hero-fruit img{width:105px}.shop-status-row,.shop-bundle-grid,.shop-bottom-grid{grid-template-columns:1fr}.shop-status-wide{grid-column:auto}.shop-jump-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-section-heading{display:block}.shop-section-heading>p{text-align:left;margin-top:8px}.shop-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-section-soft{padding:18px}}
@media(max-width:480px){.shop-page{padding-left:14px;padding-right:14px}.shop-hero{grid-template-columns:1fr;padding:24px 20px}.shop-hero-fruit{display:none}.shop-hero h1{font-size:42px}.shop-product-grid,.shop-cosmetic-grid{grid-template-columns:1fr}.shop-jump-nav{grid-template-columns:1fr 1fr}.shop-fair-play{grid-template-columns:1fr;padding:22px}.shop-fair-icon{width:50px;height:50px}.shop-product-card{padding:18px}.shop-section-heading h2{font-size:27px}}

/* =========================================================
   PUBLIC PAGE CONSISTENCY
   ========================================================= */
.page-wrap{
    max-width:1180px;
}
.page-heading:not(.how-to-play-hero){
    max-width:none;
    margin:0 0 28px;
    padding:32px 36px;
    border:1px solid var(--line);
    border-radius:28px;
    background:linear-gradient(135deg,#fffdf4 0%,#f5f7eb 58%,#eef4dc 100%);
    box-shadow:0 16px 44px rgba(77,88,58,.055);
}
.page-heading:not(.how-to-play-hero) h1{
    margin:11px 0 12px;
}
.page-heading:not(.how-to-play-hero) p{
    max-width:720px;
    margin-left:auto;
    margin-right:auto;
}
.page-card{
    max-width:none;
}
.account-page,
.auth-page-card,
.login-page{
    max-width:560px;
}
@media(max-width:600px){
    .page-heading:not(.how-to-play-hero){
        padding:24px 20px;
        border-radius:22px;
        margin-bottom:22px;
    }
}

/* =========================================================
   BUG FIXES / STATUS LOG
   ========================================================= */
.bug-fixes-page{padding-bottom:60px}
.bug-fixes-heading{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:center;gap:26px;text-align:left!important}
.bug-fixes-heading p{margin-left:0!important;margin-right:0!important}
.bug-fixes-heading-icon{width:88px;height:88px;justify-self:end;color:#768b47;opacity:.88;filter:drop-shadow(0 10px 14px rgba(82,98,55,.12))}
.bug-status-banner{display:flex;align-items:flex-start;gap:13px;margin:0 0 30px;padding:18px 20px;border:1px solid #dbe4c6;border-radius:18px;background:#f2f7e7}
.bug-status-dot{flex:0 0 11px;width:11px;height:11px;margin-top:5px;border-radius:50%;background:#6f8e3c;box-shadow:0 0 0 5px rgba(111,142,60,.11)}
.bug-status-banner strong{display:block;font-size:13px;margin-bottom:3px}
.bug-status-banner p{margin:0;color:var(--muted);font-size:11px;line-height:1.65}
.bug-log-section{margin-top:34px}
.bug-log-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:16px}
.bug-log-heading h2{font-family:Georgia,serif;font-size:31px;font-weight:500;margin:4px 0 0}
.bug-log-count{padding:6px 10px;border-radius:999px;background:#eef0e5;color:#69705f;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.bug-known-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bug-known-card{position:relative;padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--card)}
.bug-known-card h3{font-family:Georgia,serif;font-size:21px;font-weight:500;line-height:1.25;margin:12px 0 9px}
.bug-known-card>p{margin:0;color:var(--muted);font-size:12px;line-height:1.72}
.bug-status-pill{display:inline-flex;align-items:center;min-height:24px;padding:4px 9px;border-radius:999px;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.bug-status-pill-open{background:#f6eac8;color:#8a6922}
.bug-status-pill-fixed{background:#e7f1d8;color:#547426}
.bug-workaround{display:grid;gap:3px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.bug-workaround strong{font-size:9px;text-transform:uppercase;letter-spacing:.09em;color:#6b735f}
.bug-workaround span{font-size:11px;line-height:1.6;color:var(--muted)}
.bug-resolution-log{position:relative;display:grid;gap:12px}
.bug-resolution-log:before{content:'';position:absolute;left:16px;top:20px;bottom:20px;width:1px;background:#dfe3d5}
.bug-resolution-item{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:14px}
.bug-resolution-marker{position:relative;z-index:1;display:flex;justify-content:center;padding-top:24px}
.bug-resolution-marker span{display:block;width:11px;height:11px;border:3px solid #f7f6ed;border-radius:50%;background:#7f9950;box-shadow:0 0 0 1px #b8c59a}
.bug-resolution-card{padding:21px 22px;border:1px solid var(--line);border-radius:20px;background:#fff}
.bug-resolution-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.bug-resolution-meta time{font-size:9px;font-weight:800;letter-spacing:.07em;color:var(--muted);text-transform:uppercase}
.bug-patch-number{margin-left:auto;font-size:8px;font-weight:800;letter-spacing:.08em;color:#9a9d91;text-transform:uppercase}
.bug-resolution-card h3{font-family:Georgia,serif;font-size:22px;font-weight:500;margin:0 0 13px}
.bug-resolution-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
.bug-resolution-details div{min-width:0;padding:14px;border-radius:14px;background:#f7f7f1}
.bug-resolution-details dt{margin:0 0 5px;font-size:8px;font-weight:900;letter-spacing:.1em;color:#737868;text-transform:uppercase}
.bug-resolution-details dd{margin:0;color:#61685a;font-size:11px;line-height:1.65}
.bug-report-section{display:grid;grid-template-columns:96px minmax(0,1fr);gap:24px;align-items:start;margin-top:38px;padding:30px 32px;border-radius:26px;background:#202d24;color:#f7f7ef}
.bug-report-icon{display:grid;place-items:center;width:82px;height:82px;border-radius:22px;background:rgba(255,255,255,.08)}
.bug-report-icon img{width:52px;height:52px;color:#d8e6b0;filter:brightness(0) invert(1);opacity:.9}
.bug-report-section .eyebrow{color:#dbe8b7}
.bug-report-section h2{font-family:Georgia,serif;font-size:31px;font-weight:500;margin:5px 0 9px;color:#fff}
.bug-report-section p,.bug-report-section li{color:rgba(255,255,255,.76);font-size:12px;line-height:1.7}
.bug-report-section ul{margin:13px 0 20px;padding-left:19px}
.bug-report-section li{margin:5px 0}
.bug-report-section .primary-button{display:inline-flex;text-decoration:none}
.bug-report-note{margin:16px 0 0!important;padding:14px 16px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.05)}
.bug-log-footnote{max-width:760px;margin:24px auto 0;text-align:center;color:var(--muted);font-size:10px;line-height:1.65}
@media(max-width:760px){
    .bug-fixes-heading{grid-template-columns:minmax(0,1fr) 70px}
    .bug-fixes-heading-icon{width:62px;height:62px}
    .bug-known-grid{grid-template-columns:1fr}
    .bug-resolution-details{grid-template-columns:1fr;gap:8px}
    .bug-report-section{grid-template-columns:68px minmax(0,1fr);padding:23px 20px}
    .bug-report-icon{width:62px;height:62px;border-radius:18px}
    .bug-report-icon img{width:39px;height:39px}
}
@media(max-width:520px){
    .bug-fixes-heading{display:block;text-align:center!important}
    .bug-fixes-heading p{margin-left:auto!important;margin-right:auto!important}
    .bug-fixes-heading-icon{display:none}
    .bug-log-heading{align-items:start;flex-direction:column;gap:7px}
    .bug-resolution-item{grid-template-columns:24px minmax(0,1fr);gap:9px}
    .bug-resolution-log:before{left:11px}
    .bug-resolution-card{padding:18px 16px}
    .bug-patch-number{width:100%;margin-left:0}
    .bug-report-section{grid-template-columns:1fr;padding:22px 18px}
}

/* Character avatars — profile integration */
.profile-character-frame{
    width:150px;
    height:150px;
    margin:0 auto 14px;
    display:grid;
    place-items:center;
    border-radius:34px;
    background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,248,231,.92));
    border:1px solid var(--line);
    box-shadow:0 18px 38px rgba(87,58,20,.10);
    overflow:hidden;
}
.profile-heading .profile-character-frame img{
    width:100%;
    height:100%;
    object-fit:contain;
    margin:0;
}
.profile-team-line{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:7px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.72);
    border:1px solid var(--line);
    font-size:12px;
    color:var(--muted);
}
.profile-team-line img{
    width:24px;
    height:24px;
    margin:0;
}
.profile-avatar-manager{
    margin:0 0 30px;
    padding:24px;
    border:1px solid var(--line);
    border-radius:22px;
    background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,250,239,.94));
}
.profile-section-heading{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:18px;
    margin-bottom:18px;
}
.profile-section-heading .subheading{margin:3px 0 0}
.profile-section-heading .page-note{margin:0;text-align:right;max-width:430px}
.profile-avatar-loading,.avatar-manager-note{
    padding:18px;
    border-radius:14px;
    background:rgba(255,255,255,.72);
    border:1px dashed var(--line);
    color:var(--muted);
    text-align:center;
}
.profile-avatar-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
}
.profile-avatar-card{
    position:relative;
    display:flex;
    flex-direction:column;
    gap:10px;
    min-width:0;
    padding:14px;
    border:1px solid var(--line);
    border-radius:18px;
    background:var(--card);
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.profile-avatar-card.is-selected{
    border-color:#c89a45;
    box-shadow:0 10px 26px rgba(171,123,44,.14);
}
.profile-avatar-card.is-locked .profile-avatar-art img{filter:saturate(.68) brightness(.96)}
.profile-avatar-art{
    aspect-ratio:1;
    border-radius:14px;
    display:grid;
    place-items:center;
    overflow:hidden;
    background:linear-gradient(180deg,#fffaf0,#f5ecd8);
}
.profile-avatar-art img{
    width:100%;
    height:100%;
    object-fit:contain;
}
.profile-avatar-copy{display:grid;gap:2px;min-width:0}
.profile-avatar-copy strong{font-size:13px;line-height:1.25}
.profile-avatar-copy span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.profile-avatar-card .primary-button,.profile-avatar-card .secondary-button{
    width:100%;
    justify-content:center;
    margin-top:auto;
    min-height:38px;
    padding:9px 10px;
    font-size:11px;
}
@media(max-width:900px){.profile-avatar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){
    .profile-character-frame{width:132px;height:132px;border-radius:28px}
    .profile-avatar-manager{padding:18px}
    .profile-section-heading{align-items:start;flex-direction:column;gap:6px}
    .profile-section-heading .page-note{text-align:left}
}
@media(max-width:420px){.profile-avatar-grid{grid-template-columns:1fr 1fr;gap:10px}.profile-avatar-card{padding:10px}}

/* Phase 4 — prominent full-body player identity */
.page-wrap.profile-page-wrap{
    max-width:1180px;
}
.profile-page-shell{
    max-width:none;
    padding:30px;
    overflow:hidden;
}
.profile-hero{
    display:grid;
    grid-template-columns:minmax(300px, .82fr) minmax(0, 1.38fr);
    gap:34px;
    align-items:stretch;
    margin-bottom:30px;
}
.profile-hero-art{
    position:relative;
    min-height:520px;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:26px;
    background:linear-gradient(180deg,#fffaf0,#f1e6ca);
    box-shadow:0 20px 45px rgba(82,58,24,.12);
}
.profile-hero-art>img{
    display:block;
    width:100%;
    height:100%;
    min-height:520px;
    object-fit:cover;
    object-position:center center;
}
.profile-avatar-name{
    position:absolute;
    left:18px;
    bottom:18px;
    max-width:calc(100% - 36px);
    padding:9px 14px;
    border:1px solid rgba(255,255,255,.78);
    border-radius:999px;
    background:rgba(255,252,244,.90);
    box-shadow:0 8px 24px rgba(47,39,22,.14);
    backdrop-filter:blur(8px);
    font-size:11px;
    font-weight:700;
    letter-spacing:.04em;
    color:#4f553f;
}
.profile-hero-details{
    display:flex;
    min-width:0;
    flex-direction:column;
    justify-content:center;
    padding:26px 10px 26px 0;
}
.profile-hero-details h1{
    margin:8px 0 13px;
    font-family:Georgia,serif;
    font-size:clamp(42px,5vw,66px);
    line-height:.98;
    letter-spacing:-2px;
    font-weight:500;
}
.profile-hero-details .profile-team-line{
    align-self:flex-start;
}
.profile-meta{
    margin:13px 0 23px;
    color:var(--muted);
    font-size:12px;
    line-height:1.65;
}
.profile-identity-stats{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
.profile-stat{
    min-width:0;
    padding:15px 16px;
    border:1px solid var(--line);
    border-radius:15px;
    background:rgba(255,255,255,.72);
}
.profile-stat span{
    display:block;
    margin-bottom:5px;
    color:var(--muted);
    font-size:10px;
    letter-spacing:.035em;
}
.profile-stat strong{
    display:block;
    overflow:hidden;
    color:#343b2e;
    font-size:20px;
    line-height:1.18;
    font-weight:650;
    text-overflow:ellipsis;
}
.profile-avatar-manager{
    margin-top:0;
}
.profile-avatar-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.profile-avatar-art{
    aspect-ratio:4/5;
}
.profile-avatar-art img{
    object-fit:cover;
    object-position:center center;
}
@media(max-width:900px){
    .profile-page-shell{padding:24px}
    .profile-hero{grid-template-columns:minmax(250px,.9fr) minmax(0,1.1fr);gap:24px}
    .profile-hero-art,.profile-hero-art>img{min-height:450px}
    .profile-hero-details{padding-right:0}
    .profile-hero-details h1{font-size:46px}
    .profile-avatar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
    .profile-page-shell{padding:18px}
    .profile-hero{grid-template-columns:1fr;gap:22px}
    .profile-hero-art{width:min(100%,520px);min-height:0;aspect-ratio:4/5;margin:0 auto}
    .profile-hero-art>img{min-height:0;aspect-ratio:4/5}
    .profile-hero-details{padding:0 2px 4px;text-align:center;align-items:center}
    .profile-hero-details h1{font-size:44px}
    .profile-hero-details .profile-team-line{align-self:center}
    .profile-meta{margin-bottom:18px}
    .profile-identity-stats{width:100%;text-align:left}
}
@media(max-width:430px){
    .profile-page-shell{padding:14px}
    .profile-hero-details h1{font-size:38px;letter-spacing:-1.4px}
    .profile-identity-stats{grid-template-columns:1fr 1fr;gap:8px}
    .profile-stat{padding:13px 12px}
    .profile-stat strong{font-size:17px}
    .profile-avatar-grid{grid-template-columns:1fr 1fr;gap:9px}
}

/* Phase 4 avatars in leaderboard, player directory and account page */
.leaderboard-row {
    grid-template-columns: 36px minmax(160px,1fr) 110px 80px;
}
.ranking-player {
    gap:12px;
}
.ranking-player-avatar {
    position:relative;
    display:grid;
    place-items:center;
    width:50px;
    min-width:50px;
    height:50px;
    border-radius:14px;
    background:#f7f5ec;
    border:1px solid var(--line);
    box-shadow:0 8px 20px rgba(71,77,57,.06);
    overflow:visible;
}
.ranking-player-avatar.is-character {
    width:68px;
    min-width:68px;
    height:68px;
    border-radius:20px;
    background:linear-gradient(180deg,#fffdf5 0%,#edf3df 100%);
}
.ranking-player-main {
    width:100%;
    height:100%;
    object-fit:contain;
}
.ranking-player-team {
    position:absolute;
    right:-7px;
    bottom:-5px;
    width:26px;
    height:26px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:#fff;
    border:1px solid rgba(145,150,122,.35);
    box-shadow:0 8px 18px rgba(71,77,57,.15);
}
.ranking-player-team img {
    width:18px;
    height:18px;
    object-fit:contain;
}
.ranking-player-copy {
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
}
.ranking-player-copy strong {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:13px;
}
.ranking-player-copy small {
    color:var(--muted);
    font-size:10px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.player-card-character {
    grid-template-columns:110px minmax(0,1fr);
    gap:20px;
}
.player-card-avatar-character {
    position:relative;
    width:104px;
    height:124px;
    border-radius:22px;
    background:linear-gradient(180deg,#fffdf5 0%,#eef4df 100%);
    border:1px solid var(--line);
    overflow:hidden;
    box-shadow:0 12px 30px rgba(71,77,57,.08);
}
.player-card-avatar-character img {
    width:100%;
    height:100%;
    object-fit:contain;
}
.player-card-team-badge {
    position:absolute;
    right:10px;
    bottom:10px;
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:#fff;
    border:1px solid rgba(145,150,122,.35);
    box-shadow:0 10px 18px rgba(71,77,57,.16);
}
.player-card-team-badge img {
    width:20px;
    height:20px;
    object-fit:contain;
}
.player-card-meta {
    font-size:10px;
    letter-spacing:.12em;
    font-weight:700;
    color:#7d846b;
    margin-bottom:6px;
}

.account-page-avatar {
    margin:0 auto 16px;
}
.account-page-avatar.ranking-player-avatar {
    width:120px;
    min-width:120px;
    height:120px;
    border-radius:28px;
}
.account-page-empty-state .ranking-player-team {
    width:30px;
    height:30px;
    right:-4px;
    bottom:-4px;
}
.account-page-empty-state .ranking-player-team img {
    width:20px;
    height:20px;
}

@media (max-width: 820px) {
    .leaderboard-row {
        grid-template-columns:32px minmax(0,1fr) 92px 62px;
        gap:10px;
    }
    .ranking-player-avatar.is-character {
        width:58px;
        min-width:58px;
        height:58px;
    }
}

@media (max-width: 640px) {
    .player-card-character {
        grid-template-columns:92px minmax(0,1fr);
        gap:16px;
    }
    .player-card-avatar-character {
        width:92px;
        height:110px;
    }
    .ranking-player-copy small {
        display:none;
    }
    .leaderboard-row {
        grid-template-columns:28px minmax(0,1fr) 84px 50px;
        gap:8px;
        padding:14px 6px;
    }
    .ranking-score {
        font-size:15px;
    }
    .ranking-fruit {
        height:34px;
    }
}

/* Profile stage — independent background + character layers */
.page-wrap.profile-page-wrap{
    max-width:1180px;
}
.profile-page-shell{
    max-width:none;
    padding:0;
    overflow:hidden;
}
.profile-stage{
    position:relative;
    width:100%;
    aspect-ratio:1600 / 700;
    min-height:430px;
    overflow:hidden;
    isolation:isolate;
    background-image:var(--profile-background);
    background-size:cover;
    background-position:center center;
    border-bottom:1px solid var(--line);
}
.profile-stage-shade{
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    background:linear-gradient(90deg,rgba(30,37,24,.18) 0%,rgba(30,37,24,.04) 42%,rgba(30,37,24,0) 70%);
}
.profile-stage-identity{
    position:absolute;
    z-index:4;
    top:28px;
    left:28px;
    max-width:min(440px,calc(100% - 56px));
    padding:18px 20px 17px;
    border:1px solid rgba(255,255,255,.42);
    border-radius:18px;
    background:rgba(37,43,31,.66);
    box-shadow:0 18px 42px rgba(26,31,22,.18);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    color:#fff;
}
.profile-stage-identity .eyebrow{
    color:rgba(255,255,255,.72);
}
.profile-stage-identity h1{
    margin:5px 0 11px;
    color:#fff;
    font-family:Georgia,serif;
    font-size:clamp(34px,4vw,54px);
    line-height:1;
    letter-spacing:-1.6px;
    font-weight:500;
    overflow-wrap:anywhere;
}
.profile-stage-identity .profile-team-line{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin:0;
    padding:7px 11px 7px 8px;
    border:1px solid rgba(255,255,255,.22);
    border-radius:999px;
    background:rgba(255,255,255,.13);
    color:#fff;
    font-size:11px;
    font-weight:700;
}
.profile-stage-identity .profile-team-line img{
    width:24px;
    height:24px;
    object-fit:contain;
}
.profile-stage-character{
    position:absolute;
    z-index:3;
    right:5%;
    bottom:-1px;
    width:min(43%,470px);
    height:94%;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    pointer-events:none;
}
.profile-stage-character>img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center bottom;
    filter:drop-shadow(0 18px 24px rgba(37,43,31,.22));
}
.profile-stage-character .profile-avatar-name{
    left:auto;
    right:-10px;
    bottom:14px;
    max-width:calc(100% - 16px);
    pointer-events:auto;
}
.profile-content-body{
    padding:30px;
}
.profile-overview{
    display:grid;
    grid-template-columns:minmax(220px,.65fr) minmax(0,1.35fr);
    gap:28px;
    align-items:center;
    margin-bottom:30px;
}
.profile-overview-copy{
    min-width:0;
}
.profile-overview-copy .profile-meta{
    margin:10px 0 0;
}
.profile-overview .profile-identity-stats{
    grid-template-columns:repeat(4,minmax(0,1fr));
}

@media(max-width:900px){
    .profile-stage{
        min-height:390px;
    }
    .profile-stage-character{
        right:1%;
        width:min(48%,430px);
        height:92%;
    }
    .profile-stage-identity{
        top:22px;
        left:22px;
        max-width:min(390px,54%);
    }
    .profile-overview{
        grid-template-columns:1fr;
        gap:18px;
    }
    .profile-overview .profile-identity-stats{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
}

@media(max-width:700px){
    .profile-stage{
        aspect-ratio:auto;
        min-height:470px;
        background-position:center center;
    }
    .profile-stage-shade{
        background:linear-gradient(180deg,rgba(30,37,24,.16) 0%,rgba(30,37,24,0) 62%);
    }
    .profile-stage-identity{
        top:16px;
        left:16px;
        right:16px;
        max-width:none;
        width:auto;
        padding:14px 15px;
    }
    .profile-stage-identity h1{
        font-size:30px;
        line-height:1.02;
        margin-bottom:9px;
    }
    .profile-stage-character{
        right:50%;
        transform:translateX(50%);
        width:min(72%,360px);
        height:76%;
    }
    .profile-stage-character .profile-avatar-name{
        right:50%;
        transform:translateX(50%);
        bottom:10px;
        white-space:nowrap;
    }
    .profile-content-body{
        padding:22px 18px;
    }
    .profile-overview{
        margin-bottom:24px;
    }
    .profile-overview-copy{
        text-align:center;
    }
    .profile-overview .profile-identity-stats{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:430px){
    .profile-stage{
        min-height:430px;
    }
    .profile-stage-identity h1{
        font-size:27px;
        line-height:1.03;
        letter-spacing:-.8px;
    }
    .profile-stage-character{
        width:min(80%,330px);
        height:73%;
    }
    .profile-content-body{
        padding:18px 14px;
    }
}

/* Leaderboard player cards — larger character avatars */
.leaderboard-row:not(.ranking-head) {
    margin:12px 0;
    padding:16px 18px;
    min-height:154px;
    border:1px solid var(--line);
    border-radius:20px;
    background:rgba(255,255,255,.78);
    box-shadow:0 10px 28px rgba(71,77,57,.06);
}
a.leaderboard-row:not(.ranking-head) {
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
a.leaderboard-row:not(.ranking-head):hover {
    transform:translateY(-2px);
    border-color:#c7c3aa;
    background:#fffef9;
    box-shadow:0 16px 34px rgba(71,77,57,.10);
}
.leaderboard-row.ranking-head {
    padding:10px 18px 8px;
    border-bottom:0;
}
.leaderboard-row:not(.ranking-head) .rank {
    align-self:center;
}
.leaderboard-row:not(.ranking-head) .ranking-player {
    gap:20px;
}
.leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-character {
    width:128px;
    min-width:128px;
    height:128px;
    border-radius:24px;
    background:linear-gradient(180deg,#fffdf5 0%,#edf3df 100%);
    box-shadow:0 12px 26px rgba(71,77,57,.09);
}
.leaderboard-row:not(.ranking-head) .ranking-player-main {
    padding:4px 2px 0;
}
.leaderboard-row:not(.ranking-head) .ranking-player-team {
    right:-9px;
    bottom:-7px;
    width:36px;
    height:36px;
    border-width:2px;
}
.leaderboard-row:not(.ranking-head) .ranking-player-team img {
    width:24px;
    height:24px;
}
.leaderboard-row:not(.ranking-head) .ranking-player-copy {
    gap:6px;
}
.leaderboard-row:not(.ranking-head) .ranking-player-copy strong {
    font-size:16px;
}
.leaderboard-row:not(.ranking-head) .ranking-player-copy small {
    font-size:11px;
}
.leaderboard-row:not(.ranking-head) .ranking-score {
    font-size:20px;
}
.leaderboard-row:not(.ranking-head) .ranking-fruit {
    height:50px;
    max-width:58px;
}

@media (max-width:820px) {
    .leaderboard-row:not(.ranking-head) {
        min-height:132px;
        padding:14px 12px;
        border-radius:18px;
    }
    .leaderboard-row:not(.ranking-head) .ranking-player {
        gap:14px;
    }
    .leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-character {
        width:104px;
        min-width:104px;
        height:104px;
        border-radius:21px;
    }
    .leaderboard-row:not(.ranking-head) .ranking-player-team {
        width:32px;
        height:32px;
        right:-7px;
        bottom:-6px;
    }
    .leaderboard-row:not(.ranking-head) .ranking-player-team img {
        width:21px;
        height:21px;
    }
}

@media (max-width:640px) {
    .leaderboard-row:not(.ranking-head) {
        min-height:116px;
        margin:10px 0;
        padding:12px 10px;
        border-radius:16px;
    }
    .leaderboard-row:not(.ranking-head) .ranking-player {
        gap:10px;
    }
    .leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-character {
        width:96px;
        min-width:96px;
        height:96px;
        border-radius:20px;
    }
    .leaderboard-row:not(.ranking-head) .ranking-player-copy strong {
        font-size:13px;
    }
    .leaderboard-row:not(.ranking-head) .ranking-player-team {
        width:30px;
        height:30px;
        right:-6px;
        bottom:-5px;
    }
    .leaderboard-row:not(.ranking-head) .ranking-player-team img {
        width:20px;
        height:20px;
    }
    .leaderboard-row:not(.ranking-head) .ranking-score {
        font-size:15px;
    }
    .leaderboard-row:not(.ranking-head) .ranking-fruit {
        height:36px;
        max-width:40px;
    }
}

@media (max-width:480px) {
    .leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-character {
        width:84px;
        min-width:84px;
        height:84px;
    }
    .leaderboard-row:not(.ranking-head) {
        min-height:104px;
        padding-left:8px;
        padding-right:8px;
    }
}

/* Leaderboard avatar rendering correction */
.leaderboard-row:not(.ranking-head) .ranking-player > .ranking-player-avatar {
    overflow:visible;
}
.leaderboard-row:not(.ranking-head) .ranking-player-avatar > .ranking-player-main {
    width:100%;
    height:100%;
    max-width:none;
    object-fit:contain;
    object-position:center bottom;
    padding:3px 4px 0;
}
.leaderboard-row:not(.ranking-head) .ranking-player-avatar > .ranking-player-team {
    overflow:visible;
    z-index:3;
}
.leaderboard-row:not(.ranking-head) .ranking-player-avatar > .ranking-player-team > img {
    width:26px;
    height:26px;
    max-width:none;
    object-fit:contain;
}
.leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-team-fallback {
    width:86px;
    min-width:86px;
    height:86px;
    border-radius:22px;
    background:linear-gradient(180deg,#fffdf5 0%,#f1f4e6 100%);
}
.leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-team-fallback > .ranking-player-main {
    width:68%;
    height:68%;
    padding:0;
    object-position:center;
}

@media (max-width:820px) {
    .leaderboard-row:not(.ranking-head) .ranking-player-avatar > .ranking-player-team > img {
        width:23px;
        height:23px;
    }
    .leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-team-fallback {
        width:74px;
        min-width:74px;
        height:74px;
        border-radius:19px;
    }
}

@media (max-width:640px) {
    .leaderboard-row:not(.ranking-head) .ranking-player-avatar > .ranking-player-team > img {
        width:21px;
        height:21px;
    }
    .leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-team-fallback {
        width:68px;
        min-width:68px;
        height:68px;
        border-radius:17px;
    }
}

/* Leaderboard avatar containment — keep full character artwork inside its frame. */
.leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-character {
    overflow:hidden;
}
.leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-character > .ranking-player-main {
    position:absolute;
    inset:3px 5px;
    width:calc(100% - 10px);
    height:calc(100% - 6px);
    max-width:none;
    object-fit:contain;
    object-position:center bottom;
    padding:0;
}
.leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-character > .ranking-player-team {
    right:5px;
    bottom:5px;
    z-index:3;
}

@media (max-width:640px) {
    .leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-character > .ranking-player-main {
        inset:3px 4px;
        width:calc(100% - 8px);
        height:calc(100% - 6px);
    }
    .leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-character > .ranking-player-team {
        right:4px;
        bottom:4px;
    }
}

/* Profile cosmetic carousels */
.profile-carousel{
    position:relative;
    display:grid;
    grid-template-columns:42px minmax(0,1fr) 42px;
    gap:10px;
    align-items:center;
}
.profile-carousel-viewport{
    min-width:0;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-behavior:smooth;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    overscroll-behavior-x:contain;
}
.profile-carousel-viewport::-webkit-scrollbar{display:none}
.profile-carousel-arrow{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border:1px solid var(--line);
    border-radius:50%;
    background:rgba(255,255,255,.94);
    box-shadow:0 8px 20px rgba(71,77,57,.08);
    color:#4f553f;
    font:600 28px/1 Georgia,serif;
    cursor:pointer;
}
.profile-carousel-arrow:hover:not(:disabled){
    transform:translateY(-1px);
    border-color:#c7c3aa;
}
.profile-carousel-arrow:disabled{
    opacity:.28;
    cursor:default;
}
.profile-avatar-grid{
    display:grid;
    width:100%;
    grid-template-rows:repeat(2,minmax(0,1fr));
    grid-auto-flow:column;
    grid-auto-columns:calc((100% - 48px) / 5);
    gap:12px;
}
.profile-avatar-card{
    scroll-snap-align:start;
    min-height:0;
    padding:10px;
    border-radius:15px;
    gap:7px;
}
.profile-avatar-art{
    width:100%;
    aspect-ratio:4/5;
    border-radius:11px;
}
.profile-avatar-art img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center center;
}
.profile-avatar-copy strong{
    font-size:12px;
    line-height:1.25;
}
.profile-avatar-copy span{
    font-size:9px;
}
.profile-avatar-card .primary-button,
.profile-avatar-card .secondary-button{
    min-height:34px;
    padding:7px 8px;
    font-size:10px;
}

.profile-background-manager{
    margin:0 0 30px;
    padding:24px;
    border:1px solid var(--line);
    border-radius:22px;
    background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,250,239,.94));
}
.profile-background-preview{
    position:relative;
    width:100%;
    aspect-ratio:1600 / 700;
    margin:0 0 16px;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:18px;
    background:#eef0e2;
    box-shadow:0 10px 26px rgba(71,77,57,.08);
}
.profile-background-preview>img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.profile-background-preview>div{
    position:absolute;
    left:14px;
    bottom:14px;
    display:grid;
    gap:2px;
    padding:8px 11px;
    border:1px solid rgba(255,255,255,.58);
    border-radius:12px;
    background:rgba(37,43,31,.68);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    color:#fff;
}
.profile-background-preview strong{
    font-size:12px;
    line-height:1.2;
}
.profile-background-preview span{
    font-size:9px;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:rgba(255,255,255,.74);
}
.profile-background-grid{
    display:grid;
    width:100%;
    grid-auto-flow:column;
    grid-auto-columns:calc((100% - 24px) / 3);
    gap:12px;
}
.profile-background-card{
    scroll-snap-align:start;
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:9px;
    padding:10px;
    border:1px solid var(--line);
    border-radius:16px;
    background:var(--card);
    outline:none;
    transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.profile-background-card:hover,
.profile-background-card:focus-within{
    transform:translateY(-1px);
    border-color:#c7c3aa;
}
.profile-background-card.is-selected{
    border-color:#c89a45;
    box-shadow:0 10px 26px rgba(171,123,44,.14);
}
.profile-background-thumb{
    display:block;
    width:100%;
    padding:0;
    overflow:hidden;
    aspect-ratio:1600 / 700;
    border:0;
    border-radius:11px;
    background:#eef0e2;
    cursor:zoom-in;
}
.profile-background-thumb img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.profile-background-card-copy{
    display:grid;
    gap:2px;
}
.profile-background-card-copy strong{
    font-size:12px;
    line-height:1.25;
}
.profile-background-card-copy span{
    color:var(--muted);
    font-size:9px;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.profile-background-card .primary-button,
.profile-background-card .secondary-button{
    width:100%;
    justify-content:center;
    min-height:34px;
    margin-top:auto;
    padding:7px 8px;
    font-size:10px;
}

/* Keep profile-stat text from clipping glyph descenders such as "Highest fruit" values. */
.profile-stat strong{
    overflow:visible;
    min-height:1.35em;
    padding-bottom:1px;
    line-height:1.35;
    text-overflow:clip;
    white-space:normal;
}

@media(max-width:900px){
    .profile-avatar-grid{
        grid-auto-columns:calc((100% - 24px) / 3);
    }
    .profile-background-grid{
        grid-auto-columns:calc((100% - 12px) / 2);
    }
}
@media(max-width:620px){
    .profile-background-manager{padding:18px}
    .profile-carousel{
        grid-template-columns:34px minmax(0,1fr) 34px;
        gap:7px;
    }
    .profile-carousel-arrow{
        width:34px;
        height:34px;
        font-size:23px;
    }
    .profile-avatar-grid{
        grid-template-rows:repeat(2,minmax(0,1fr));
        grid-auto-columns:calc((100% - 9px) / 2);
        gap:9px;
    }
    .profile-background-grid{
        grid-auto-columns:100%;
        gap:9px;
    }
    .profile-background-preview{
        border-radius:14px;
    }
    .profile-background-preview>div{
        left:10px;
        bottom:10px;
        padding:7px 9px;
    }
}

/* Avatar carousel pages: one row, 5 across on desktop, with horizontal paging after 5. */
.profile-avatar-track{
    display:flex;
    width:100%;
}
.profile-avatar-page{
    flex:0 0 100%;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:12px;
    padding:1px;
    scroll-snap-align:start;
}
.profile-avatar-grid{display:none}
@media(max-width:900px){
    .profile-avatar-page{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}
@media(max-width:620px){
    .profile-avatar-page{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:9px;
    }
}

/* Background thumbnails enlarge on pointer hover; click/tap opens a full-screen preview. */
.profile-background-thumb img{
    transition:transform .2s ease;
}
@media(hover:hover) and (pointer:fine){
    .profile-background-thumb:hover img,
    .profile-background-card:focus-within .profile-background-thumb img{
        transform:scale(1.08);
    }
}
html.has-profile-background-lightbox,
html.has-profile-background-lightbox body{
    overflow:hidden;
}
.profile-background-lightbox{
    position:fixed;
    inset:0;
    z-index:10000;
    display:grid;
    place-items:center;
    padding:clamp(18px,4vw,54px);
    background:rgba(24,29,22,.84);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    opacity:0;
    transition:opacity .18s ease;
}
.profile-background-lightbox.is-open{opacity:1}
.profile-background-lightbox-inner{
    width:min(1200px,94vw);
    max-height:90vh;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.3);
    border-radius:20px;
    background:#fff;
    box-shadow:0 30px 90px rgba(0,0,0,.36);
    transform:scale(.97);
    transition:transform .18s ease;
}
.profile-background-lightbox.is-open .profile-background-lightbox-inner{transform:scale(1)}
.profile-background-lightbox-inner>img{
    display:block;
    width:100%;
    height:auto;
    max-height:calc(90vh - 58px);
    object-fit:contain;
    background:#eef0e2;
}
.profile-background-lightbox-caption{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    min-height:58px;
    padding:12px 16px;
    color:#38402f;
}
.profile-background-lightbox-caption strong{font-size:14px}
.profile-background-lightbox-caption span{font-size:10px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
.profile-background-lightbox-close{
    position:fixed;
    top:max(14px,env(safe-area-inset-top));
    right:max(14px,env(safe-area-inset-right));
    z-index:1;
    display:grid;
    place-items:center;
    width:46px;
    height:46px;
    padding:0;
    border:1px solid rgba(255,255,255,.45);
    border-radius:50%;
    background:rgba(255,255,255,.94);
    color:#333b2d;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
    font:400 30px/1 Arial,sans-serif;
    cursor:pointer;
}
@media(max-width:620px){
    .profile-background-lightbox{padding:64px 12px 18px}
    .profile-background-lightbox-inner{width:100%;border-radius:14px}
    .profile-background-lightbox-caption{align-items:flex-start;flex-direction:column;gap:2px;min-height:54px}
}

/* Database-driven background collection states. */
.profile-background-card.is-locked .profile-background-thumb img{
    filter:saturate(.62) brightness(.9);
}
.profile-background-card.is-locked .profile-background-card-copy{
    opacity:.72;
}
.profile-background-card.is-locked .profile-background-select{
    cursor:not-allowed;
    opacity:.58;
}

/* Live database-driven shop */
.shop-live{max-width:1180px}
.shop-hero-live{background:linear-gradient(135deg,#fffdf5 0%,#f4f7e7 55%,#edf3d7 100%)}
.shop-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.shop-status-row-live .shop-status-icon{font-weight:800}
.shop-jump-nav{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.shop-jump-nav a span{display:grid;place-items:center;min-width:22px;height:22px;margin-left:7px;padding:0 6px;border-radius:999px;background:rgba(80,91,59,.08);font-size:9px}
.shop-empty-catalogue{margin:30px 0;padding:54px 28px;border:1px dashed #cbd0b8;border-radius:26px;background:#fafbf5;text-align:center}
.shop-empty-icon{font-size:46px;margin-bottom:12px}
.shop-empty-catalogue h2{font:500 32px/1.1 Georgia,serif;margin:7px 0 11px}
.shop-empty-catalogue p{max-width:650px;margin:0 auto;color:var(--muted);font-size:13px;line-height:1.7}
.shop-section-featured{padding:27px;border:1px solid rgba(151,128,82,.12);border-radius:28px;background:linear-gradient(180deg,#faf5e9,#f7f1e4)}
.shop-card-live{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.shop-card-live:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(66,74,51,.08);border-color:#c9ccb7}
.shop-bundle-grid-live{grid-template-columns:repeat(3,minmax(0,1fr))}
.shop-bundle-visual{display:grid;place-items:center;height:112px;margin:4px 0 10px}
.shop-bundle-visual img{display:block;max-width:118px;max-height:108px;object-fit:contain;filter:drop-shadow(0 10px 10px rgba(66,70,48,.12))}
.shop-bundle-gift{display:grid;place-items:center;width:90px;height:90px;border-radius:24px;background:linear-gradient(145deg,#fff4c9,#f3dda0);font-size:45px;box-shadow:inset 0 0 0 1px rgba(181,142,54,.13)}
.shop-bundle-items{margin-top:2px!important}
.shop-bundle-items li{display:flex;justify-content:space-between;gap:12px;padding:8px 0!important;border-bottom:1px solid rgba(90,96,71,.08)}
.shop-bundle-items li:last-child{border-bottom:0}
.shop-bundle-items li::before{display:none}
.shop-bundle-items li span{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.07em}
.shop-bundle-items li strong{font-size:11px;text-align:right}
.shop-price-row{display:flex;align-items:baseline;justify-content:center;gap:9px;margin-top:18px}
.shop-price-row del{color:#9a9d91;font-size:11px}
.shop-product-grid-live{grid-template-columns:repeat(4,minmax(0,1fr))}
.shop-owned-line{margin:-6px 0 13px;padding:7px 9px;border-radius:10px;background:#f2f5e9;color:#68705f;font-size:9px;text-align:center}
.shop-owned-line strong{font-size:10px}
.shop-avatar-rarity-list{display:grid;gap:28px}
.shop-avatar-rarity{display:grid;gap:13px}
.shop-rarity-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:0 2px 9px;border-bottom:1px solid var(--line)}
.shop-rarity-heading h3{margin:1px 0 0;font:600 24px/1.05 Georgia,serif;text-transform:capitalize}
.shop-rarity-eyebrow{display:block;color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.12em}
.shop-rarity-count{flex:0 0 auto;color:var(--muted);font-size:12px;font-weight:800}
.shop-avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.shop-avatar-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:13px;border:1px solid var(--line);border-radius:21px;background:#fff}
.shop-avatar-image{position:relative;display:grid;place-items:end center;overflow:hidden;width:100%;aspect-ratio:4/5;border-radius:15px;background:linear-gradient(180deg,#f6f5ec,#ecefdf)}
.shop-avatar-image img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;padding:4px 7px 0}
.shop-owned-badge{position:absolute;top:9px;right:9px;z-index:2;padding:5px 8px;border-radius:999px;background:rgba(63,89,48,.92);color:#fff;font-size:8px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;box-shadow:0 4px 12px rgba(46,65,37,.18)}
.shop-cosmetic-meta{display:flex;justify-content:space-between;gap:8px;margin-top:10px;color:var(--muted);font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.shop-avatar-card h3{margin:5px 0 13px;font:500 20px/1.1 Georgia,serif}
.shop-avatar-card .shop-product-footer{margin-top:auto}
.shop-manage-link{display:flex;align-items:center;justify-content:center;min-height:38px;padding:8px 13px;border:1px solid #cfd3c1;border-radius:999px;background:#f8f9f3;color:#536046;font-size:10px;font-weight:800;text-decoration:none}
.shop-avatar-card.is-owned,.shop-background-card.is-owned{border-color:#afbd93}
.shop-background-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.shop-background-card{overflow:hidden;border:1px solid var(--line);border-radius:21px;background:#fff}
.shop-background-image{position:relative;display:block;width:100%;padding:0;border:0;background:#e9eddf;aspect-ratio:1600/700;overflow:hidden;cursor:zoom-in}
.shop-background-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.shop-background-image:hover img{transform:scale(1.025)}
.shop-background-zoom{position:absolute;left:12px;bottom:11px;padding:6px 9px;border-radius:999px;background:rgba(32,38,28,.72);color:#fff;font-size:8px;font-weight:800;opacity:0;transform:translateY(3px);transition:.18s ease}
.shop-background-image:hover .shop-background-zoom,.shop-background-image:focus-visible .shop-background-zoom{opacity:1;transform:none}
.shop-background-copy{display:flex;align-items:end;justify-content:space-between;gap:15px;padding:14px 15px 15px}
.shop-background-copy h3{margin:4px 0 0;font:500 21px/1.15 Georgia,serif}
.shop-rarity{color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.shop-background-purchase{display:grid;gap:7px;min-width:126px;text-align:right}
.shop-background-purchase>strong{font-size:14px}
.shop-background-purchase .shop-buy-button,.shop-background-purchase .shop-manage-link{min-height:34px;padding:7px 11px}
.shop-lightbox[hidden]{display:none!important}
.shop-lightbox{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px;background:rgba(22,27,18,.82);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.shop-lightbox-panel{width:min(1180px,94vw)}
.shop-lightbox-panel img{display:block;width:100%;aspect-ratio:1600/700;object-fit:contain;border-radius:18px;background:#171b14;box-shadow:0 28px 70px rgba(0,0,0,.35)}
.shop-lightbox-panel strong{display:block;margin-top:11px;color:#fff;font:500 18px/1.3 Georgia,serif;text-align:center}
.shop-lightbox-close{position:fixed;top:20px;right:22px;z-index:2;display:grid;place-items:center;width:44px;height:44px;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font:400 31px/1 Arial,sans-serif;cursor:pointer}
html.has-overlay{overflow:hidden}
@media(max-width:980px){
    .shop-product-grid-live,.shop-avatar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .shop-bundle-grid-live{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
    .shop-section-featured{padding:20px 16px}
    .shop-bundle-grid-live{grid-template-columns:1fr}
    .shop-background-grid{grid-template-columns:1fr}
    .shop-background-copy{align-items:center}
    .shop-section-heading{align-items:start}
}
@media(max-width:560px){
    .shop-product-grid-live,.shop-avatar-grid{grid-template-columns:1fr 1fr;gap:9px}
    .shop-product-card{padding:14px}
    .shop-product-icon{width:56px;height:56px;font-size:29px}
    .shop-avatar-card{padding:9px;border-radius:17px}
    .shop-avatar-card h3{font-size:17px}
    .shop-cosmetic-meta{font-size:7px}
    .shop-background-copy{display:grid;align-items:start}
    .shop-background-purchase{grid-template-columns:auto 1fr;align-items:center;text-align:left;min-width:0}
    .shop-background-purchase .shop-buy-button,.shop-background-purchase .shop-manage-link{justify-self:end}
    .shop-lightbox{padding:10px}
    .shop-lightbox-close{top:12px;right:12px}
}
@media(max-width:400px){
    .shop-product-grid-live,.shop-avatar-grid{grid-template-columns:1fr}
}

/* PayPal checkout */
.shop-buy-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer}
.shop-buy-button:disabled{cursor:not-allowed;opacity:.58}
.shop-checkout[hidden]{display:none!important}
.shop-checkout{position:fixed;inset:0;z-index:10020;display:grid;place-items:center;padding:20px;background:rgba(22,27,18,.74);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.shop-checkout-panel{position:relative;width:min(470px,calc(100vw - 28px));max-height:calc(100vh - 32px);overflow:auto;padding:29px 27px 25px;border:1px solid rgba(255,255,255,.6);border-radius:25px;background:#fff;box-shadow:0 28px 75px rgba(25,31,20,.28)}
.shop-checkout-panel h2{margin:6px 42px 18px 0;font:500 30px/1.08 Georgia,serif;color:var(--ink)}
.shop-checkout-close{position:absolute;top:16px;right:16px;display:grid;place-items:center;width:37px;height:37px;border:1px solid #d7dacd;border-radius:50%;background:#f7f8f2;color:#58604e;font:400 25px/1 Arial,sans-serif;cursor:pointer}
.shop-checkout-close:hover{background:#eef1e5}
.shop-checkout-summary{display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin-bottom:20px;padding:14px 15px;border:1px solid #e1e4d8;border-radius:15px;background:#f8f9f4}
.shop-checkout-summary strong{font:600 15px/1.3 Georgia,serif;color:var(--ink)}
.shop-checkout-summary span{white-space:nowrap;font-size:15px;font-weight:900;color:#4e5d3f}
#shopPayPalButtons{min-height:44px}
.shop-checkout-note{margin:14px 2px 0;color:var(--muted);font-size:10px;line-height:1.55;text-align:center}
.shop-checkout-message{min-height:18px;margin-top:10px;padding:0 4px;color:#697063;font-size:10px;line-height:1.45;text-align:center}
.shop-checkout-message.is-error{padding:9px 10px;border-radius:10px;background:#fff1ef;color:#9a3f35}
.shop-checkout-message.is-success{padding:9px 10px;border-radius:10px;background:#eef7e8;color:#4d6c3e;font-weight:800}
@media(max-width:560px){
    .shop-checkout{padding:10px;align-items:end}
    .shop-checkout-panel{width:100%;max-height:88vh;padding:24px 18px 20px;border-radius:23px 23px 16px 16px}
    .shop-checkout-panel h2{font-size:26px}
}
.shop-checkout-retry{display:flex;align-items:center;justify-content:center;width:100%;min-height:40px;margin-top:10px;padding:9px 14px;border:1px solid #c7cdb9;border-radius:999px;background:#f5f7ef;color:#536046;font-size:10px;font-weight:900;cursor:pointer}
.shop-checkout-retry[hidden]{display:none!important}

@media(max-width:620px){.shop-avatar-rarity-list{gap:22px}.shop-rarity-heading{align-items:flex-start}.shop-rarity-heading h3{font-size:21px}.shop-rarity-count{font-size:11px}}

/* Bug report submission form */
.bug-report-section{display:block}
.bug-report-intro{display:grid;grid-template-columns:96px minmax(0,1fr);gap:24px;align-items:start}
.bug-device-summary{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.bug-device-summary span{display:inline-flex;padding:5px 9px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.82);font-size:9px;font-weight:800;letter-spacing:.04em}
.bug-report-form{position:relative;margin-top:24px;padding-top:24px;border-top:1px solid rgba(255,255,255,.12)}
.bug-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bug-form-grid-wide{align-items:start}
.bug-field{display:grid;gap:7px;margin-bottom:14px;min-width:0}
.bug-field label{color:#f7f7ef;font-size:10px;font-weight:850;letter-spacing:.055em;text-transform:uppercase}
.bug-field label span{color:rgba(255,255,255,.48);font-size:8px;font-weight:700;letter-spacing:.04em}
.bug-field input,.bug-field select,.bug-field textarea{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:rgba(255,255,255,.075);color:#fff;font:inherit;font-size:13px;line-height:1.45;outline:none;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.bug-field input,.bug-field select{min-height:44px;padding:10px 12px}
.bug-field textarea{padding:11px 12px;resize:vertical;min-height:96px}
.bug-field input::placeholder,.bug-field textarea::placeholder{color:rgba(255,255,255,.38)}
.bug-field select option{color:#202d24;background:#fff}
.bug-field input:focus,.bug-field select:focus,.bug-field textarea:focus{border-color:#cfe09e;background:rgba(255,255,255,.1);box-shadow:0 0 0 3px rgba(207,224,158,.12)}
.bug-form-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:5px}
.bug-form-footer p{max-width:560px;margin:0!important;color:rgba(255,255,255,.58)!important;font-size:10px!important}
.bug-form-footer .primary-button{flex:0 0 auto;border:0;cursor:pointer}
.bug-form-error{margin:0 0 16px!important;padding:12px 14px;border:1px solid rgba(255,166,145,.32);border-radius:12px;background:rgba(113,33,24,.32);color:#ffd8cf!important;font-weight:700}
.bug-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.bug-report-success{display:flex;align-items:flex-start;gap:15px;margin-top:24px;padding:20px;border:1px solid rgba(200,225,144,.24);border-radius:18px;background:rgba(218,237,175,.08)}
.bug-report-success-mark{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:#dbe9b7;color:#263424;font-size:20px;font-weight:900}
.bug-report-success h3{margin:1px 0 5px;color:#fff;font-family:Georgia,serif;font-size:22px;font-weight:500}
.bug-report-success p{margin:0 0 12px!important}
.bug-report-success strong{color:#fff;letter-spacing:.07em}
.bug-report-again{display:inline-flex;text-decoration:none;border-color:rgba(255,255,255,.2);color:#fff}
@media(max-width:760px){
    .bug-report-intro{grid-template-columns:68px minmax(0,1fr)}
    .bug-form-grid{grid-template-columns:1fr;gap:0}
    .bug-form-footer{align-items:stretch;flex-direction:column}
    .bug-form-footer .primary-button{justify-content:center;width:100%}
}
@media(max-width:520px){
    .bug-report-intro{grid-template-columns:1fr}
    .bug-report-section{padding:22px 18px}
    .bug-report-form{margin-top:20px;padding-top:20px}
}


/* Shared labelled AdSense placements */
.site-ad{width:100%;box-sizing:border-box;margin:34px auto;text-align:center;clear:both}
.site-ad-label{margin:0 0 8px;color:#8a8f80;font-size:8px;font-weight:850;letter-spacing:.18em;line-height:1;text-transform:uppercase}
.site-ad-unit{width:100%;margin:0 auto;overflow:hidden}
.site-ad-unit .adsbygoogle{width:100%}
.site-ad--horizontal{max-width:970px}
.site-ad--horizontal .site-ad-unit{min-height:90px}
.site-ad--square{max-width:380px}
.site-ad--square .site-ad-unit{min-height:250px}
.site-ad--vertical{max-width:300px}
.site-ad--vertical .site-ad-unit{min-height:420px}
.site-ad--compact{margin-top:24px;margin-bottom:24px}
.prose>.site-ad{margin-top:38px;margin-bottom:38px}
@media(max-width:720px){
    .site-ad{margin:26px auto}
    .site-ad--horizontal .site-ad-unit{min-height:70px}
    .site-ad--square,.site-ad--vertical{max-width:340px}
    .site-ad--square .site-ad-unit,.site-ad--vertical .site-ad-unit{min-height:250px}
}
/* Leaderboard — extra-small phone layout */
@media (max-width:470px) {
    body[data-page="leaderboard"] .page-wrap {
        padding-left:10px;
        padding-right:10px;
    }
    body[data-page="leaderboard"] .page-card {
        padding:10px 8px;
        border-radius:16px;
    }
    body[data-page="leaderboard"] .leaderboard-tabs {
        gap:5px;
    }
    body[data-page="leaderboard"] .leaderboard-row,
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) {
        grid-template-columns:22px minmax(0,1fr) 62px 34px;
        gap:6px;
        padding-left:6px;
        padding-right:6px;
    }
    body[data-page="leaderboard"] .leaderboard-row.ranking-head {
        padding-left:6px;
        padding-right:6px;
        font-size:6.5px;
        letter-spacing:.25px;
    }
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) {
        min-height:88px;
        margin:8px 0;
    }
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) .rank {
        font-size:18px;
    }
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) .ranking-player {
        gap:8px;
        min-width:0;
    }
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-character {
        width:66px;
        min-width:66px;
        height:66px;
        border-radius:16px;
    }
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-team-fallback {
        width:58px;
        min-width:58px;
        height:58px;
        border-radius:15px;
    }
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) .ranking-player-copy {
        min-width:0;
    }
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) .ranking-player-copy strong {
        display:block;
        width:100%;
        min-width:0;
        font-size:12px;
        line-height:1.25;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) .ranking-player-team {
        width:25px;
        height:25px;
        right:-5px;
        bottom:-4px;
    }
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) .ranking-player-avatar > .ranking-player-team > img {
        width:17px;
        height:17px;
    }
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) .ranking-score {
        font-size:13px;
        white-space:nowrap;
    }
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) .ranking-fruit {
        height:30px;
        max-width:32px;
    }
    /* Team standings use the same grid, but do not need oversized player artwork. */
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) .ranking-player > img {
        width:30px;
        height:32px;
        flex:0 0 30px;
    }
}

@media (max-width:370px) {
    body[data-page="leaderboard"] .leaderboard-row,
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) {
        grid-template-columns:20px minmax(0,1fr) 56px 30px;
        gap:4px;
    }
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) .ranking-player-avatar.is-character {
        width:58px;
        min-width:58px;
        height:58px;
    }
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) .ranking-player-copy strong {
        font-size:11px;
    }
    body[data-page="leaderboard"] .leaderboard-row:not(.ranking-head) .ranking-score {
        font-size:12px;
    }
}
