/* Club page layout only (G1). Components (tier, tier-card, progress, badge, alert, skeleton, empty) live in ../css/components.css */
.appbar .brandmark { white-space: nowrap; }
.club-hero { display: grid; gap: var(--sp-6); padding-block: var(--sp-8) var(--sp-4); align-items: start; }
@media (min-width: 900px) { .club-hero { grid-template-columns: 1fr 1.05fr; gap: var(--sp-8); padding-block-start: var(--sp-12); } }
.club-hero__intro { display: grid; gap: 12px; align-content: start; }
.club-hero__intro > .badge { justify-self: start; min-height: 28px; }
.club-hero__title { font-size: var(--fs-title-1); font-weight: 800; line-height: 1.45; margin: 0; }
@media (min-width: 768px) { .club-hero__title { font-size: 2.25rem; } }
.club-hero__sub { color: var(--text-2); font-size: var(--fs-callout); line-height: 1.9; margin: 0; max-width: 52ch; }
.club-join { display: grid; gap: 8px; justify-items: start; margin-block-start: 6px; }
/* auth state comes from the inline head script (html[data-auth]); no hidden->shown jump after boot */
html:not([data-auth="in"]) .club-me { display: none; }
html[data-auth="in"] .club-join, html[data-auth="in"] .club-art { display: none; }
.club-art { position: relative; height: 180px; overflow: clip; overflow-clip-margin: 24px; }
@media (min-width: 900px) { .club-art { height: 300px; } }
.club-art__card { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; width: min(62%, 300px); aspect-ratio: 1.6; border-radius: var(--r-xl); background: var(--img) center/cover;
  box-shadow: var(--shadow-3, var(--shadow-2)), inset 0 0 0 1px rgba(255,255,255,.5); translate: 50% -50%; display: grid; place-items: center; color: rgba(11,34,80,.75); }
.club-art__card:nth-child(1) { rotate: 9deg; translate: 18% -56%; }
.club-art__card:nth-child(2) { rotate: -5deg; translate: 78% -46%; }
.club-art__card:nth-child(3) { rotate: 2deg; translate: 48% -40%; }
.club-art__card .icon { width: 44px; height: 44px; }
@media (prefers-reduced-motion: no-preference) { .club-art__card { transition: rotate var(--dur-slow, .4s) var(--ease-smooth, ease); } .club-art:hover .club-art__card:nth-child(1) { rotate: 13deg; } .club-art:hover .club-art__card:nth-child(2) { rotate: -9deg; } }

/* "your tier" */
.club-me { display: grid; gap: 12px; }
.club-me__title { margin: 0; font-size: var(--fs-title-3); font-weight: 800; line-height: 1.5; }
.club-me__body { display: grid; gap: 12px; }
/* skeleton keeps the final height of the tier card + info card (reserved space, no shift when GET /club/me answers) */
.club-me__skel-card { min-height: 220px; } .club-me__skel-info { min-height: 150px; }
.club-me__info { min-height: 150px; align-content: start; }
.club-me .tier-card { min-height: 220px; }
.club-me__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.club-me__since { font-size: var(--fs-footnote); font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.62); }
.club-me__pts { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.club-me__msg { margin-block-start: 8px; }
.club-me__perks { display: flex; flex-wrap: wrap; gap: 8px; }
.club-me__perks .badge { white-space: normal; line-height: 1.6; min-height: 28px; }
.club-me__life { color: var(--text-2); font-size: var(--fs-footnote); }
.club-me__links { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 2px; }

/* tiers */
/* before club.js has drawn skeletons the lists are empty: reserve roughly their final height so the sections below do not jump (CLS) */
.club-tiers:empty { min-height: 760px; } #earnList:empty { min-height: 330px; } #rewardList:empty { min-height: 640px; }
@media (min-width: 768px) { .club-tiers:empty { min-height: 400px; } #earnList:empty { min-height: 170px; } #rewardList:empty { min-height: 330px; } }
@media (min-width: 1100px) { .club-tiers:empty { min-height: 280px; } #earnList:empty, #rewardList:empty { min-height: 170px; } }
.club-tiers .tier-card { justify-content: flex-start; min-height: 0; }
@media (min-width: 1100px) { .club-tiers .tier-card { min-height: 280px; } }
.club-tiers .tier-card .tier { width: max-content; }
.club-tiers .tier-card__panel { flex: 1; display: grid; align-content: start; gap: 8px; }
.tier-card.is-current { box-shadow: var(--shadow-2), 0 0 0 3px var(--brand-primary); }
.tier-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tier-card__cond { font-weight: 800; font-size: var(--fs-callout); line-height: 1.6; }
.tier-card__perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: var(--fs-footnote); font-weight: 600; line-height: 1.6; }
.tier-card__perks li { display: flex; gap: 6px; align-items: flex-start; }
.tier-card__perks .icon { width: 16px; height: 16px; flex: none; margin-block-start: 3px; }
.tier-card--plain { background: var(--_bg, var(--surface-2)); }

/* earning rules */
.earn-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .earn-grid { grid-template-columns: repeat(4, 1fr); } }
.earn { display: grid; gap: 6px; align-content: start; padding: 16px; }
.earn__icon { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-primary); }
.earn__label { font-size: var(--fs-footnote); color: var(--text-2); font-weight: 600; }
.earn__val { font-size: var(--fs-headline); font-weight: 800; line-height: 1.5; }
.earn-note { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; color: var(--text-2); font-size: var(--fs-footnote); font-weight: 600; }
.earn-note .icon { color: var(--success); width: 18px; height: 18px; }

/* rewards */
.reward-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .reward-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .reward-grid { grid-template-columns: repeat(4, 1fr); } }
.reward { display: grid; gap: 10px; align-content: start; padding: 16px; position: relative; }
.reward__top { display: flex; align-items: center; gap: 12px; }
.reward__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-accent-tint); color: var(--brand-accent); flex: none; }
.reward__name { font-weight: 800; font-size: var(--fs-callout); line-height: 1.6; }
.reward__cost { font-size: var(--fs-title-3, 1.25rem); font-weight: 800; color: var(--brand-primary); }
.reward__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.reward__meta .badge { white-space: normal; line-height: 1.5; min-height: 26px; }
.reward__note { font-size: var(--fs-footnote); color: var(--text-2); font-weight: 600; }
.reward.is-locked .reward__icon { background: var(--surface-3); color: var(--text-3); }
.reward.is-locked .reward__cost { color: var(--text-2); }
/* minimum-level badge: opaque colours, >= 4.5:1 in both themes (#6b4500 on #f8ecd4 light, #f5d38f on #3a2c12 dark) */
.badge--level { background: light-dark(#f8ecd4, #3a2c12); color: light-dark(#6b4500, #f5d38f); box-shadow: inset 0 0 0 1px light-dark(rgba(107,69,0,.18), rgba(245,211,143,.22)); }
.club-note { margin-block-start: 12px; color: var(--text-2); }
.skel-card { display: grid; gap: 10px; }
