/* Club edition: isolated from the retired feed, camera and story layouts. */
/* Tab destinations never inherit a smooth document scroll or an old scroll anchor. */
html.auth-session-hint { scroll-behavior: auto; overflow-anchor: none; }
:root { --club-paper: #0b0d10; --club-panel: #111419; --club-line: #24282f; --club-muted: #969da8; --club-gold: #d9b667; }
body.authenticated .topbar { display: flex; justify-content: space-between; gap: 16px; }
body.authenticated .topbar-title { text-align: left; }
body.authenticated .topbar-title h1 { max-width: none; font: 600 20px/1.2 var(--font-body, Inter, sans-serif); letter-spacing: -.04em; }
body.authenticated .top-actions { margin-left: auto; }
/* The conversation owns its header; the global title must not sit over it. */
body.authenticated.chat-focus .topbar { display: none; }
body.authenticated .floating-tab-bar {
  --tab-shell-padding: 8px;
  --tab-count: 4;
  --tab-slide-duration: 180ms;
  --tab-slide-ease: cubic-bezier(.22, .8, .25, 1);
  display: grid;
  grid-template-columns: repeat(var(--tab-count), minmax(0, 1fr));
  gap: 0;
  padding: var(--tab-shell-padding);
}
/* One persistent selection moves as a unit; changing tabs never recreates it. */
body.authenticated .floating-tab-bar::before,
body.authenticated .floating-tab-bar .app-tab::after { content: none; }
.tab-selection-indicator {
  position: absolute;
  z-index: 0;
  inset: var(--tab-shell-padding) auto var(--tab-shell-padding) var(--tab-shell-padding);
  width: calc((100% - (var(--tab-shell-padding) * 2)) / var(--tab-count, 4));
  border: 1px solid rgba(230,185,63,.17);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(255,255,255,.105), rgba(230,185,63,.1));
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 7px 22px rgba(0,0,0,.15);
  transform: translate3d(var(--active-tab-offset, 0%), 0, 0);
  transition: transform var(--tab-slide-duration) var(--tab-slide-ease), width .18s ease, inset .18s ease;
  will-change: transform;
  pointer-events: none;
}
.tab-selection-indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--bb-gold);
  box-shadow: 0 0 10px rgba(230,185,63,.58);
  transform: translateX(-50%);
}
@media (hover: hover) and (pointer: fine) { body.authenticated .floating-tab-bar .app-tab:hover { transform: none; } }
.club-home, .club-calendar-page, #profileContent { width: min(100%, 1040px); margin-inline: auto; }
.club-home { padding-block: 8px 28px; }
.club-search { position: relative; margin-bottom: 28px; }
.club-search .search-hub-box { min-height: 52px; margin: 0; padding: 0 18px; border: 1px solid var(--club-line); border-radius: 18px; background: #12151a; }
.club-search input { min-width: 0; width: 100%; height: 52px; font-size: 16px; }
.club-search .search-hub-results { position: static; margin: 10px 0 0; max-height: 340px; overflow-y: auto; border-radius: 16px; }
.club-search [hidden] { display: none !important; }
.club-welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.club-welcome h2, .club-calendar-heading h2 { margin: 8px 0 0; font: 600 clamp(25px, 3vw, 38px)/1.15 var(--font-body, Inter, sans-serif); letter-spacing: -.05em; }
.club-welcome .status-pill { flex-shrink: 0; margin: 0; padding: 8px 12px; font-size: 11px; background: #12151a; }
body.authenticated #noticias { margin: 0 0 20px; padding: 0; border: 1px solid var(--club-line); border-radius: 20px; background: var(--club-panel); box-shadow: none; }
.club-news-heading { display: flex; align-items: center; gap: 14px; padding: 18px; }
.club-news-heading h3 { margin: 0; font: 600 17px/1.3 var(--font-body, Inter, sans-serif); letter-spacing: -.03em; }
.club-news-heading p { margin: 3px 0 0; color: var(--club-muted); font-size: 12px; }
.club-news-heading .news-collapse-button { width: auto; min-height: 44px; margin-left: auto; padding: 8px 12px; border: 0; background: transparent; font-size: 11px; }
#noticias .news-collapsible { padding: 0 18px 18px; }
#noticias .news-collapsible[hidden] { display: none !important; }
#noticias .news-toolbar { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--club-line); }
#noticias .news-tabs { min-width: 0; }
#noticias .news-tab { min-height: 44px; }
.club-dashboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
body.authenticated .club-dashboard > .panel { min-width: 0; margin: 0; padding: 24px; border: 1px solid var(--club-line); border-radius: 24px; background: var(--club-panel); box-shadow: none; }
.club-home .panel-heading { gap: 12px; margin-bottom: 18px; }
.club-home .panel-heading h3 { margin: 7px 0 0; font: 600 20px/1.2 var(--font-body, Inter, sans-serif); letter-spacing: -.045em; }
.club-home .eyebrow, .club-profile .eyebrow, .club-calendar-page .eyebrow { color: var(--club-gold); font-size: 9px; letter-spacing: .16em; }
.club-heading-link { display: block; min-height: 44px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .club-heading-link:hover { color: var(--interaction-strong); } }
.club-plans { display: flex; flex-direction: column; }
#upcomingEvents { flex: 1; }
.club-event { display: flex; align-items: center; gap: 13px; width: 100%; padding: 16px 0; border: 0; border-top: 1px solid var(--club-line); color: #eee; background: transparent; text-align: left; }
.club-event time { display: grid; justify-items: center; flex-shrink: 0; width: 48px; padding: 8px 0; border-radius: 12px; background: #d9b66710; color: var(--club-gold); }
.club-event time strong { font-size: 23px; line-height: 1.1; font-weight: 500; }
.club-event time small { margin-top: 4px; font-size: 10px; text-transform: uppercase; }
.club-event > span { min-width: 0; flex: 1; }
.club-event > span > strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.club-event > span > small { display: block; margin-top: 5px; color: var(--club-muted); font-size: 11px; line-height: 1.5; }
.club-calendar-link { display: flex; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin-top: 12px; padding: 13px 0 0; border: 0; border-top: 1px solid var(--club-line); background: transparent; color: var(--club-gold); text-align: left; font-size: 12px; }
.club-plans-empty { display: grid; align-content: center; justify-items: start; min-height: 190px; padding: 18px 0; }
.club-plans-empty strong { font-size: 15px; font-weight: 500; }
.club-plans-empty p, .club-placeholder { color: var(--club-muted); font-size: 12px; line-height: 1.7; }
.club-dashboard .spotify-panel .text-button { font-size: 10px; min-height: 44px; }
.club-dashboard iframe { display: block; width: 100%; border: 0; border-radius: 14px; }
.club-home .home-members-section { margin-top: 32px; }
.club-home .members-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.club-member { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--club-line); border-radius: 16px; text-align: left; background: #101317; color: #eceef1; cursor: pointer; }
.club-member-hero { position: relative; isolation: isolate; height: auto; aspect-ratio: 3 / 1; margin-bottom: 22px; }
.club-member-banner { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, #252a34, #171c22 65%, #403522); }
.club-member .club-member-hero .avatar { position: absolute; z-index: 3; left: 12px; bottom: -18px; flex: none; width: 58px; height: 58px; min-width: 58px; max-width: 58px; min-height: 58px; max-height: 58px; aspect-ratio: 1; box-sizing: border-box; overflow: hidden; border: 3px solid #101317; border-radius: 50%; outline: 1px solid #b8b8b855; box-shadow: 0 3px 10px #0005; }
.club-member .club-member-hero .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.club-member-identity { padding: 6px 14px 16px; }
.club-member:focus-visible { outline: 2px solid #b8b8b8; outline-offset: 3px; }
.club-member > span:not(.avatar) { min-width: 0; }
.club-member strong, .club-member small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-member strong { font-size: 15px; font-weight: 600; }
.club-member small { color: var(--club-muted); font-size: 11px; margin-top: 3px; }
.club-member.is-loading { pointer-events: none; cursor: default; }
.club-member.is-loading .avatar { background: #282d34; }
.club-member.is-loading .club-member-identity strong { width: 48%; border-radius: 5px; background: #282d34; }
.club-member.is-loading .club-member-identity small { width: 32%; border-radius: 4px; background: #20252c; }
body.chat-inbox-view .topbar { visibility: hidden; pointer-events: none; }
body.authenticated .chat-inbox { background: var(--club-paper); box-shadow: none; border: 0; border-radius: 0; }
.chat-inbox .private-contact { min-height: 90px; margin: 0; padding: 18px 8px; border: 0; border-bottom: 1px solid #ffffff09; border-radius: 0; box-shadow: none; background: transparent; }
@media (hover: hover) and (pointer: fine) { .chat-inbox .private-contact:hover { background: #ffffff04; transform: none; } }
.chat-inbox .private-contact .avatar, .chat-inbox .chat-group-avatar { width: 52px; height: 52px; flex: 0 0 52px; }
.chat-inbox .private-contact .avatar { color: #dbba74; background: #202329; }
.chat-unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--club-gold); flex: 0 0 7px; }
.retired-content { display: block; padding: 12px 0; color: var(--club-muted); font-size: 12px; }
.club-calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 8px 0 26px; }
.club-calendar-heading h2 { font-size: clamp(23px, 3vw, 32px); }
.club-calendar-page .calendar-toolbar { gap: 14px; margin-bottom: 20px; }
.club-calendar-page .calendar-navigation { flex: 1; justify-content: space-between; max-width: 440px; }
.club-calendar-page .calendar-navigation h3 { font: 500 18px/1.2 var(--font-body, Inter, sans-serif); text-transform: capitalize; }
.club-calendar-page .calendar-actions { gap: 8px; }
.club-calendar-page .calendar-actions button { min-height: 44px; font-size: 11px; }
.club-calendar-page .calendar-layout { grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr); gap: 24px; }
body.authenticated .club-calendar-page .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 16px; gap: 6px; border: 1px solid var(--club-line); border-radius: 22px; background: var(--club-panel); }
.club-calendar-page .calendar-day { display: grid; place-content: center; justify-items: center; gap: 7px; min-height: 64px; padding: 8px 0; border: 0; border-radius: 14px; background: transparent; }
.club-calendar-page .calendar-day > span:first-child { font-size: 15px; font-weight: 500; }
.club-calendar-page .calendar-day > span { margin: 0; }
.club-calendar-page .calendar-day > .calendar-dots { display: flex; place-items: initial; width: auto; height: 4px; background: transparent; }
.club-calendar-page .calendar-day.today > span { background: transparent; }
.club-calendar-page .calendar-day.today { background: var(--club-gold); color: #14120c; box-shadow: none; }
.club-calendar-page .calendar-day.has-events:not(.today) { background: #ffffff04; }
.calendar-dots { display: flex; gap: 3px; height: 4px; }
.calendar-dots i, .calendar-legend i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--club-gold); }
.calendar-dots .birthday, .calendar-legend .birthday { background: #9eabd9; }
.today .calendar-dots i { background: #242018; }
.calendar-legend { display: flex; gap: 18px; justify-content: center; font-size: 10px; color: var(--club-muted); }
.calendar-legend span { display: flex; align-items: center; gap: 6px; }
.club-calendar-page .event-list-panel { border: 0; padding: 16px 0; background: transparent; box-shadow: none; }
.club-calendar-page .calendar-event-card { border: 0; border-bottom: 1px solid var(--club-line); border-radius: 0; padding: 18px 0; background: transparent; }
.club-profile { padding: 30px; border: 1px solid var(--club-line); border-radius: 26px; background: radial-gradient(ellipse at 100% 0, #d9b6670b, transparent 65%), var(--club-panel); }
.club-profile-topline, .club-profile-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.club-member-number { color: var(--club-muted); font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .14em; }
.club-profile-identity { display: flex; align-items: center; gap: 22px; margin: 26px 0 22px; }
.club-profile-avatar { width: 96px; height: 96px; flex: 0 0 96px; font-size: 32px; border: 3px solid #22272f; outline: 1px solid #b8b8b844; }
.club-profile-handle { color: var(--club-muted); font-size: 12px; overflow-wrap: anywhere; }
.club-profile-identity h2 { font: 600 clamp(25px, 4vw, 38px)/1.15 var(--font-body, Inter, sans-serif); letter-spacing: -.045em; margin: 7px 0 10px; overflow-wrap: anywhere; }
.club-profile-role { color: var(--club-gold); font-size: 9px; letter-spacing: .15em; }
.club-profile-nickname { font-size: 14px; font-weight: 500; margin: 0 0 8px; }
.club-profile-bio { max-width: 620px; font-size: 13px; color: var(--club-muted); line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.club-profile .profile-tags { margin: 14px 0 24px; }
.club-profile-bottom { border-top: 1px solid var(--club-line); padding-top: 20px; }
.club-profile-earned { color: var(--club-muted); font-size: 11px; }
.club-profile-earned strong { color: var(--club-gold); font-size: 22px; font-weight: 500; margin-right: 4px; }
.club-profile-achievement-summary { display: flex; align-items: center; gap: 10px; min-width: 0; }
.achievement-challenges-trigger { position: relative; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #d9b66742; border-radius: 50%; color: var(--club-gold); background: #d9b6670a; cursor: pointer; }
.achievement-challenges-trigger svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.achievement-challenges-trigger > span { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid var(--club-panel); border-radius: 12px; color: #101216; background: var(--club-gold); font-size: 9px; font-weight: 800; line-height: 15px; font-variant-numeric: tabular-nums; }
.club-profile .profile-actions { margin: 0; display: flex; gap: 8px; }
.club-profile .profile-actions button { min-height: 44px; font-size: 12px; }
#perfil .profile-achievements { width: 100%; margin: 0; padding: 28px 0 0; border: 0; background: transparent; }
body.authenticated #perfil { padding-bottom: 110px; }
#perfil .profile-achievements .profile-feed-heading h3 { margin: 8px 0 6px; font: 600 24px/1.2 var(--font-body, Inter, sans-serif); letter-spacing: -.045em; }
#perfil .profile-achievements .profile-feed-heading .eyebrow { display: block; font-size: 9px; color: var(--club-gold); }
#perfil .achievement-showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; overflow: visible; }
#perfil .achievement-card { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; min-height: 198px; padding: 24px; border-radius: 20px; color: #f4f4f6; text-align: left; cursor: pointer; }
#perfil .profile-achievements .achievement-emblem { box-sizing: border-box; width: 64px; height: 64px; min-width: 64px; min-height: 64px; max-width: 64px; max-height: 64px; flex: 0 0 64px; aspect-ratio: 1; border: 0; background: radial-gradient(circle, var(--achievement-glow), transparent 70%); box-shadow: none; }
.achievement-emblem::after { content: none; }
.achievement-trophy img { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; pointer-events: none; }
.achievement-card-copy { display: grid; gap: 7px; width: 100%; }
.achievement-card-copy small { color: var(--achievement-metal); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.achievement-card-copy strong { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
#perfil .achievement-empty { grid-column: 1/-1; min-height: 190px; border: 1px dashed #30353d; background: transparent; }
body.achievement-detail-open { overflow: hidden; }
.achievement-detail { position: fixed; inset: 0; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: 40px 30px 30px; border: 1px solid #35373c; border-radius: 30px; color: #f4f4f6; background: #111419; box-shadow: 0 30px 90px #0009; }
.achievement-detail::backdrop { background: #030507c9; }
.achievement-detail[open] { animation: club-detail-enter .2s cubic-bezier(.2,.8,.2,1); }
.achievement-detail-close { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border: 1px solid var(--club-line); border-radius: 50%; color: #eee; background: #1b1e24; font-size: 25px; }
#achievementDetailContent { text-align: center; }
.achievement-detail-art { --achievement-metal: #b97842; --achievement-glow: #b9784229; position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 0 auto; color: var(--achievement-metal); background: radial-gradient(ellipse, var(--achievement-glow), transparent 68%); pointer-events: none; }
.achievement-detail-art.tier-silver { --achievement-metal: #bfc7d2; --achievement-glow: #bfc7d22e; }
.achievement-detail-art.tier-gold { --achievement-metal: #e2ad26; --achievement-glow: #e2ad2633; }
.achievement-detail-art.tier-platinum { --achievement-metal: #8fe1e7; --achievement-glow: #8fe1e733; }
.achievement-detail-art .achievement-trophy { position: absolute; inset: 0; width: 100%; height: 100%; }
.trophy-lottie { position: absolute; inset: 0; visibility: hidden; }
.trophy-unlock-dialog { --unlock-accent: #e2ac79; box-sizing: border-box; position: fixed; inset: 0; margin: auto; width: min(440px, calc(100% - 28px)); max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 28px); padding: 40px 26px 20px; border: 1px solid color-mix(in srgb, var(--unlock-accent) 30%, #24262e); border-radius: 30px; background: radial-gradient(ellipse at 50% 30%, #ffffff08, transparent 64%), #101217; color: #f6f4ef; text-align: center; overflow: auto; overscroll-behavior: contain; box-shadow: 0 28px 100px #000b; }
.trophy-unlock-dialog[data-tier="silver"] { --unlock-accent: #d1e5fa; }
.trophy-unlock-dialog[data-tier="gold"] { --unlock-accent: #ffdc7e; }
.trophy-unlock-dialog[data-tier="platinum"] { --unlock-accent: #aff4f4; }
.trophy-unlock-dialog::backdrop { background: #030509dc; }
.trophy-unlock-dialog[open] { animation: club-detail-enter .22s cubic-bezier(.2,.8,.2,1); }
.trophy-unlock-close { position: absolute; z-index: 2; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #b1b6c2; font-size: 26px; cursor: pointer; }
.trophy-unlock-eyebrow { display: block; color: var(--unlock-accent); font: 600 10px/1.4 var(--font-body, sans-serif); letter-spacing: .24em; }
.trophy-unlock-dialog .achievement-detail-art { width: min(100%, 300px, 37dvh); margin: 12px auto 4px; }
.trophy-unlock-dialog .achievement-trophy img { display: block; width: 100%; height: 100%; object-fit: contain; }
.trophy-unlock-rank { display: inline-block; padding: 5px 12px; border: 1px solid #ffffff18; border-radius: 20px; color: var(--unlock-accent); font: 600 11px/1.2 var(--font-body, sans-serif); letter-spacing: .12em; text-transform: uppercase; }
.trophy-unlock-dialog h2 { margin: 16px 0 10px; font: 600 clamp(24px, 6vw, 32px)/1.1 var(--font-body, sans-serif); letter-spacing: -.045em; overflow-wrap: anywhere; }
.trophy-unlock-dialog p { margin: 0 auto 24px; max-width: 32ch; color: #adb3bf; font: 400 14px/1.6 var(--font-body, sans-serif); overflow-wrap: anywhere; }
.trophy-unlock-view, .trophy-unlock-continue { display: block; width: 100%; min-height: 46px; padding: 12px; border: 0; border-radius: 14px; font: 600 14px/1.3 var(--font-body, sans-serif); cursor: pointer; }
.trophy-unlock-view { background: var(--unlock-accent); color: #101217; }
.trophy-unlock-continue { margin-top: 6px; background: transparent; color: #c4c8d0; }
.trophy-unlock-dialog button:focus-visible { outline: 2px solid var(--interaction-strong); outline-offset: 3px; }
body.trophy-unlock-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .trophy-unlock-dialog[open] { animation: none; } }
.trophy-lottie svg { display: block; width: 100%; height: 100%; }
.achievement-detail-art:is([data-motion-state="playing"], [data-motion-state="ready"]) .trophy-lottie { visibility: visible; }
.achievement-detail-art:is([data-motion-state="playing"], [data-motion-state="ready"]) .achievement-trophy img { visibility: hidden; }
.achievement-detail-art .achievement-custom-mark { z-index: 1; right: 18%; bottom: 12%; width: 30px; height: 30px; font-size: 16px; }
.trophy-replay { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 14px; margin: -4px auto 20px; border: 1px solid #ffffff12; border-radius: 24px; color: #b8bdc6; background: #ffffff04; font: 500 11px/1.2 var(--font-body, sans-serif); cursor: pointer; }
.trophy-replay svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .trophy-replay:hover { color: #f4f4f6; background: #ffffff0a; } }
.achievement-detail-close { z-index: 2; }
.achievement-detail-tier { color: var(--club-gold); text-transform: uppercase; letter-spacing: .18em; font-size: 10px; }
.achievement-detail h2 { margin: 14px 0; font: 600 28px/1.15 var(--font-body, Inter, sans-serif); letter-spacing: -.045em; overflow-wrap: anywhere; }
.achievement-detail p { font-size: 13px; line-height: 1.8; color: #aeb4bf; white-space: pre-line; overflow-wrap: anywhere; }
.achievement-rarity { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--club-line); }
.achievement-rarity > strong { display: block; color: #e6c884; font-size: 34px; font-weight: 500; font-variant-numeric: tabular-nums; }
.achievement-rarity > span { font-size: 12px; color: var(--club-muted); }
.achievement-rarity progress { display: block; appearance: none; width: 100%; height: 4px; margin: 18px 0 12px; border: 0; border-radius: 4px; overflow: hidden; background: #2b2f36; accent-color: var(--club-gold); }
.achievement-rarity progress::-webkit-progress-bar { background: #2b2f36; }
.achievement-rarity progress::-webkit-progress-value { background: var(--club-gold); }
.achievement-rarity progress::-moz-progress-bar { background: var(--club-gold); }
.achievement-rarity small { color: #9299a5; font-size: 11px; }
.achievement-private-note { color: var(--club-muted); font-size: 12px; line-height: 1.6; }
.achievement-challenges-dialog { position: fixed; inset: 0; width: min(680px,calc(100vw - 32px)); max-height: min(760px,calc(100dvh - 32px)); overflow: hidden auto; margin: auto; padding: 0; border: 1px solid #35373c; border-radius: 28px; color: #f4f4f6; background: #0d1014; box-shadow: 0 30px 90px #000b; }
.achievement-challenges-dialog::backdrop { background: #030507d6; backdrop-filter: blur(8px); }
.achievement-challenges-dialog[open] { animation: club-detail-enter .2s cubic-bezier(.2,.8,.2,1); }
.achievement-challenges-dialog > header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--club-line); background: #0d1014f2; backdrop-filter: blur(16px); }
.achievement-challenges-dialog > header > div { display: grid; gap: 5px; }
.achievement-challenges-dialog > header span { color: var(--club-gold); font-size: 8px; letter-spacing: .16em; }
.achievement-challenges-dialog > header strong { font-size: 16px; font-weight: 600; }
.achievement-challenges-dialog > header button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--club-line); border-radius: 50%; color: #eee; background: #1b1e24; font-size: 25px; cursor: pointer; }
#achievementChallengesContent { padding: 24px; }
.achievement-challenges-intro { margin-bottom: 20px; }
.achievement-challenges-intro h3 { margin: 7px 0; font-size: 24px; letter-spacing: -.04em; }
.achievement-challenges-complete { display: grid; gap: 7px; padding: 34px 20px; border: 1px dashed #30353d; border-radius: 18px; color: var(--club-muted); text-align: center; }
.achievement-challenges-complete strong { color: #f4f4f6; font-size: 16px; }
body.achievement-challenges-open { overflow: hidden; }
.achievement-challenge-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 12px; }
.achievement-challenge { display: flex; align-items: center; gap: 16px; width: 100%; min-width: 0; padding: 18px; border: 1px solid var(--club-line); border-radius: 20px; background: #111419; color: #f4f4f6; text-align: left; cursor: pointer; }
.achievement-challenge-art { flex: 0 0 66px; height: 86px; }
.achievement-challenge-copy { flex: 1; min-width: 0; }
.achievement-challenge-copy > small { display: block; margin-bottom: 6px; color: var(--club-gold); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.achievement-challenge-copy > strong { display: block; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.achievement-personal-progress { display: block; margin-top: 12px; text-align: left; }
.achievement-personal-progress > .achievement-progress-objective { display: block; color: var(--club-muted); margin: 0 0 12px; font-size: 12px; line-height: 1.6; }
.achievement-personal-progress > small { display: block; font-size: 11px; color: var(--club-muted); }
.achievement-progress-count { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 11px; font-variant-numeric: tabular-nums; }
.achievement-progress-count strong { font-weight: 500; }
.achievement-progress-count > span { color: #b9c0ca; }
.achievement-personal-progress progress { display: block; appearance: none; width: 100%; height: 5px; margin: 10px 0 0; border: 0; border-radius: 8px; overflow: hidden; background: #2b2f36; accent-color: var(--club-gold); }
.achievement-personal-progress progress::-webkit-progress-bar { background: #2b2f36; }
.achievement-personal-progress progress::-webkit-progress-value { background: var(--club-gold); }
.achievement-personal-progress progress::-moz-progress-bar { background: var(--club-gold); }
.achievement-detail .achievement-personal-progress { border: 1px solid var(--club-line); border-radius: 16px; padding: 18px; margin-top: 24px; }
.achievement-ladder { margin-top: 24px; text-align: left; }
.achievement-ladder-title { display: block; margin-bottom: 10px; color: var(--club-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; }
.achievement-ladder ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.achievement-ladder button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border: 1px solid var(--club-line); border-radius: 14px; color: #f4f4f6; background: #111419; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.achievement-ladder [aria-current="step"] button { border-color: #ffffff3d; background: #1a1d23; }
.achievement-ladder [data-state="locked"] button { color: #9299a5; }
.achievement-ladder [data-state="locked"] .achievement-ladder-icon { opacity: .35; filter: grayscale(1); }
.achievement-ladder-icon { flex: 0 0 30px; height: 40px; }
.achievement-ladder-copy { flex: 1; min-width: 0; }
.achievement-ladder-copy strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.achievement-ladder-copy small { display: block; margin-top: 2px; color: var(--club-muted); font-size: 11px; line-height: 1.4; }
.achievement-ladder-state { flex: 0 0 auto; color: var(--club-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.achievement-ladder [data-state="earned"] .achievement-ladder-state { color: #d6dae0; }
@media (hover: hover) and (pointer: fine) { .achievement-ladder button:hover { background: #191b1f; } }
.achievement-challenge:focus-visible { outline: 2px solid var(--interaction-strong); outline-offset: 3px; }
@media (max-width: 380px) { .achievement-challenge { padding: 14px 12px; gap: 10px; } .achievement-challenge-art { flex-basis: 48px; height: 72px; } }
.club-member, .club-event, #perfil .achievement-card { transition: background .15s ease, border-color .15s ease; }
@media (hover: hover) and (pointer: fine) { .club-member:hover, .club-event:hover { border-color: #b8b8b866; background: #191b1f; } }
@media (hover: hover) and (pointer: fine) { .club-event:hover { background: #ffffff03; } }
.club-home button:focus-visible, .club-home input:focus-visible, .club-calendar-page button:focus-visible, #perfil button:focus-visible, .achievement-detail button:focus-visible { outline: 2px solid var(--interaction-strong); outline-offset: 3px; }
@keyframes club-detail-enter { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  /* One scroll owner per screen. A WKWebView document fling must not carry across tabs. */
  html.auth-session-hint { height: 100%; overflow: hidden; overscroll-behavior: none; }
  body.authenticated { position: fixed; inset: 0; width: 100%; height: 100%; padding-bottom: 0; overflow: hidden; }
  body.authenticated .app {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden;
  }
  body.authenticated .app > .topbar { position: relative; flex: 0 0 auto; transform: none; pointer-events: auto; }
  body.authenticated .app > .page-section {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden auto;
    overscroll-behavior-y: contain;
    overflow-anchor: none;
    scroll-behavior: auto;
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  }
  body.authenticated .site-footer { display: none; }
  body.authenticated .app > #perfil { overflow-x: hidden; overflow-y: auto; padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  body.authenticated .floating-tab-bar,
  body.authenticated .floating-tab-bar .app-tab { touch-action: none; user-select: none; -webkit-user-select: none; }
  body.authenticated .floating-tab-bar { --tab-shell-padding: 5px; }
  body.authenticated.mobile-header-hidden:not(.chat-focus) .floating-tab-bar { --tab-shell-padding: 4px; padding: var(--tab-shell-padding); }
  .tab-selection-indicator { border-radius: 18px; }
  .club-home, .club-calendar-page, #profileContent { width: 100%; }
  .club-welcome { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .club-welcome .status-pill { font-size: 10px; padding: 6px 9px; }
  .club-search { margin-bottom: 22px; }
  .club-news-heading { gap: 10px; padding: 15px 12px; }
  .club-news-heading p { font-size: 10px; }
  .club-news-heading .news-collapse-button { padding: 8px; font-size: 10px; gap: 6px; }
  #noticias .news-collapsible { padding: 0 12px 12px; }
  .club-dashboard { gap: 14px; }
  body.authenticated .club-dashboard > .panel { padding: 18px; border-radius: 20px; }
  .club-home .members-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .club-member { gap: 0; padding: 0; }
  .club-member-hero { height: auto; aspect-ratio: 3 / 1; }
  .club-member-identity { padding-inline: 14px; }
  .club-member strong { font-size: 15px; }
  .club-member small { font-size: 12px; }
  .club-calendar-page .calendar-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .club-calendar-page .calendar-navigation { max-width: none; width: 100%; }
  .club-calendar-page .calendar-toolbar { flex-direction: column; align-items: stretch; }
  .club-calendar-page .calendar-actions { display: flex; }
  .club-calendar-page .calendar-actions button { flex: 1; padding-inline: 10px; }
  .club-calendar-heading h2 { font-size: 23px; }
  body.authenticated .club-calendar-page .calendar-grid { padding: 10px; gap: 3px; }
  .club-calendar-page .calendar-day { min-height: 49px; padding: 5px 0; border-radius: 11px; }
  .club-calendar-page .calendar-day > span:first-child { font-size: 14px; }
  .club-profile { padding: 20px; border-radius: 22px; }
  .club-profile-identity { gap: 17px; margin-top: 24px; }
  .club-profile-avatar { width: 80px; height: 80px; flex-basis: 80px; }
  .club-profile-bottom { align-items: flex-start; flex-direction: column; gap: 16px; }
  .club-profile-achievement-summary { width: 100%; justify-content: space-between; }
  .club-profile .profile-actions { width: 100%; }
  .club-profile .profile-actions button { flex: 1; }
  #perfil .achievement-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #perfil .achievement-card { padding: 18px 14px; gap: 20px; min-height: 188px; }
  .achievement-card-copy strong { font-size: 13px; }
  .achievement-detail { max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px); padding-inline: 24px; }
  .achievement-challenges-dialog { inset: auto 0 0; width: 100%; max-width: none; max-height: calc(88dvh - env(safe-area-inset-top,0px)); margin: 0; padding-bottom: env(safe-area-inset-bottom,0px); border-radius: 26px 26px 0 0; }
  #achievementChallengesContent { padding: 22px 16px; }
}
@media (max-width: 580px) { .club-dashboard { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .achievement-detail[open] { animation: none; }
  .achievement-challenges-dialog[open] { animation: none; }
  .club-member, .club-event, #perfil .achievement-card, .tab-selection-indicator { transition: none; }
}

/* Approved Figma Club Edition. Keep navigation transforms and scroll owners
   intact; only surfaces, spacing and type are changed here. */
body.authenticated .floating-tab-bar { border-color: #32353c; background: #14171cf5; box-shadow: 0 8px 28px #0003; }
.tab-selection-indicator { border-color: #4c4330; background: #28271f; box-shadow: none; }
.tab-selection-indicator::after { background: var(--club-gold); box-shadow: none; }
.club-search .search-hub-box { min-height: 48px; border-radius: 16px; background: #15181d; }
.club-search input { height: 48px; }
.club-welcome h2 { letter-spacing: -.04em; }
.club-welcome .status-pill { border: 0; background: transparent; color: var(--club-muted); }
body.authenticated .club-dashboard > .panel { border-radius: 22px; padding: 20px; }
.club-home .panel-heading h3 { font-size: 18px; }
.club-home .club-event { gap: 10px; }
.club-home .club-event > span { min-width: 0; }
.club-home .club-event strong { overflow-wrap: anywhere; }
.club-home .club-calendar-link { color: var(--club-gold); }
.club-home #spotifyPlayer iframe { display: block; width: 100%; max-width: 100%; height: 152px; border: 0; border-radius: 14px; }
.club-profile { border: 0; border-radius: 0; padding: 12px 0 28px; background: transparent; box-shadow: none; }
.club-profile-topline { color: var(--club-muted); }
.club-profile-topline .eyebrow { color: var(--club-muted); }
.club-profile-identity { flex-direction: column; text-align: center; gap: 16px; margin-top: 28px; }
.club-profile-avatar { width: 84px; height: 84px; flex-basis: 84px; border: 0; box-shadow: none; }
.club-profile-identity h2 { margin-block: 8px; font-size: 26px; letter-spacing: -.035em; }
.club-profile-handle, .club-profile-role { color: var(--club-muted); font-size: 12px; }
.club-profile-nickname, .club-profile-bio { text-align: center; margin: 12px auto; max-width: 540px; font-size: 14px; line-height: 1.6; }
.club-profile .profile-tags { justify-content: center; }
.club-profile-bottom { justify-content: center; border: 0; margin-top: 20px; padding: 0; }
.club-profile .profile-actions { justify-content: center; width: auto; }
.club-profile .profile-actions button { min-width: 180px; border: 1px solid var(--club-line); border-radius: 14px; background: #1b1f25; color: #f4f4f6; box-shadow: none; }
#perfil .profile-achievements { padding-top: 24px; border-top: 1px solid var(--club-line); }
#perfil .profile-achievements .profile-feed-heading { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 0; }
#perfil .profile-achievements .profile-feed-heading h3 { margin: 0; font-size: 23px; }
.club-profile-achievement-summary { width: auto; gap: 12px; }
.club-profile-earned { white-space: nowrap; }
.club-vitrine-caption { margin: 8px 0 22px; color: var(--club-muted); font-size: 12px; }
#perfil .achievement-card { min-height: 150px; gap: 8px; padding: 16px; border: 1px solid var(--club-line); background: var(--club-panel); box-shadow: none; }
#perfil .achievement-card .achievement-emblem { align-self: center; width: 64px; height: 64px; min-width: 64px; min-height: 64px; max-width: 64px; max-height: 64px; flex-basis: 64px; }
.achievement-card-copy { gap: 5px; }
.achievement-card-copy strong { order: -1; }
.club-calendar-heading { margin-bottom: 16px; }
.club-calendar-heading h2 { display: none; }
.club-calendar-page .calendar-navigation h3 { font-size: 26px; font-weight: 600; letter-spacing: -.04em; }
body.authenticated .club-calendar-page .calendar-grid { padding: 10px 0; border: 0; border-radius: 0; background: transparent; }
.club-calendar-page .calendar-day { min-height: 48px; border-radius: 50%; }
.club-calendar-page .calendar-day.today { position: relative; background: transparent; color: #14120c; }
.club-calendar-page .calendar-day.today::before { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; border-radius: 50%; background: var(--club-gold); transform: translate(-50%, -50%); }
.club-calendar-page .calendar-day > span { position: relative; z-index: 1; }
.club-calendar-page .calendar-day.has-events:not(.today) { background: transparent; }
.club-calendar-page .calendar-event-card { padding: 20px; margin-top: 16px; border: 1px solid var(--club-line); border-left: 3px solid var(--club-gold); border-radius: 18px; background: var(--club-panel); }
.club-calendar-page .calendar-event-card time { color: var(--club-gold); font-weight: 500; }
.club-calendar-page .calendar-event-card h4 { margin-block: 10px; font: 600 16px/1.4 var(--font-body, Inter, sans-serif); }
.club-calendar-page .calendar-event-card p { overflow-wrap: anywhere; color: var(--club-muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 760px) {
  .club-welcome { flex-direction: row; align-items: flex-end; gap: 8px; }
  .club-welcome h2 { font-size: 28px; }
  .club-welcome .status-pill { padding-inline: 0; font-size: 10px; }
  .club-news-heading { padding: 16px; }
  .club-home .club-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.authenticated .club-dashboard > .panel { padding: 16px 12px; }
  .club-home .panel-heading h3 { font-size: 16px; }
  .club-home .eyebrow { font-size: 8px; letter-spacing: .1em; }
  .club-home .club-event { align-items: flex-start; flex-direction: column; padding-block: 12px; }
  .club-home .club-event strong { font-size: 12px; }
  .club-home .club-event small { font-size: 11px; line-height: 1.5; }
  .club-home #upcomingEvents .club-event:not(:first-child) { display: none; }
  .club-home .club-event { border: 0; padding-top: 0; }
  .club-home .club-plans .panel-heading { margin-bottom: 12px; }
  .club-home .spotify-panel { display: flex; flex-direction: column; }
  .club-home .spotify-panel .panel-heading { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 10px; }
  .club-home .spotify-panel .panel-heading > div { width: 100%; }
  .club-home .spotify-panel .panel-heading h3 { margin-top: 14px; }
  .club-home #spotifyPlayer .empty-state { min-height: 115px; padding: 14px 0; border: 0; background: transparent; text-align: left; align-items: start; }
  .club-home #spotifyPlayer .empty-state strong { font-size: 13px; line-height: 1.5; }
  .club-home #spotifyPlayer .empty-state span { font-size: 11px; line-height: 1.5; }
  .club-home .club-calendar-link { margin-top: 6px; font-size: 11px; }
  .club-profile { padding: 12px 0 24px; }
  .club-profile-bottom { align-items: center; }
  .club-profile .profile-actions { width: min(100%, 350px); }
  .club-profile .profile-actions button { min-width: 0; }
  #perfil .club-profile-achievement-summary { width: auto; }
  #perfil .achievement-card { min-height: 155px; padding: 14px; gap: 8px; }
  #perfil .achievement-card .achievement-emblem { width: 56px; height: 56px; min-width: 56px; min-height: 56px; max-width: 56px; max-height: 56px; flex-basis: 56px; }
  .club-calendar-page .calendar-navigation h3 { font-size: 24px; }
  .club-calendar-page .calendar-day { min-height: 48px; }
}
@media (max-width: 359px) {
  .club-home .club-dashboard { grid-template-columns: minmax(0, 1fr); }
  .club-welcome { align-items: flex-start; flex-direction: column; }
}

/* Compact identity stays aligned with the profile header. */
.club-profile-identity{position:relative;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;text-align:left;gap:12px;margin:18px 0 10px}
.club-profile-copy{flex:1;min-width:0}
.club-profile-identity h2{margin:3px 0 5px;font-size:clamp(22px,4vw,28px)}
.club-profile-handle,.club-profile-role{font-size:11px}
.club-profile-nickname,.club-profile-bio{text-align:left;margin:5px 0;max-width:620px;font-size:13px;line-height:1.45}
.club-profile .profile-tags{justify-content:flex-start;margin:9px 0 0;gap:6px}
.club-profile-identity .profile-edit-compact{flex:none;min-width:0;min-height:34px;padding:7px 11px;font-size:11px;border-radius:10px}
.club-profile-bottom{justify-content:flex-start;margin-top:10px}
.club-profile .profile-actions{justify-content:flex-start;width:auto}
.club-profile-bottom:has(.profile-actions:empty){display:none}

/* Give the Spotify embed its full mobile width instead of a half-width tile. */
.club-home #spotifyPlayer { width:100%; min-width:0; }
@media (max-width:760px) {
  .club-home .club-dashboard { grid-template-columns:minmax(0,1fr); }
  .club-home .spotify-panel .panel-heading { align-items:center; justify-content:space-between; gap:12px; }
  .club-home .spotify-panel .panel-heading > div { width:auto; min-width:0; }
  .club-home .spotify-panel .panel-heading h3 { margin-top:7px; }
  .club-home .spotify-panel .text-button { flex:none; }
  .club-home #spotifyPlayer iframe { width:100%; max-width:100%; height:152px; }
}

/* El Chota lives inside the nearest plan; its bubble never covers event details. */
.club-event-with-tigreton { display: grid; grid-template-columns: 48px minmax(0, 1fr) 136px; gap: 12px; align-items: center; }
.club-event-with-tigreton > .tigreton-agenda { display: flex; flex-direction: column; align-items: center; align-self: end; min-width: 0; width: 136px; flex: none; }
.tigreton-bubble { position: relative; display: block; width: fit-content; max-width: 100%; padding: 6px 8px; box-sizing: border-box; border: 2px solid #292b30; border-radius: 16px 16px 6px 16px; background: #fff; color: #24262c; box-shadow: 2px 3px 0 #0003; }
.tigreton-bubble[hidden] { display: none; }
.tigreton-bubble:after { content: ""; position: absolute; bottom: -6px; right: 27px; width: 9px; height: 9px; transform: rotate(45deg); background: #fff; border-right: 2px solid #292b30; border-bottom: 2px solid #292b30; }
.tigreton-agenda > .tigreton-name { display: block; width: 100%; margin-top: 3px; font-size: 10px; font-weight: 650; line-height: 1.3; text-align: center; color: #f4ebd6; }
.tigreton-countdown { display: block; font-size: 11px; font-weight: 750; line-height: 1.35; color: #79500c; }
.tigreton-comment { display: block; margin-top: 2px; font-size: 10px; font-weight: 400; line-height: 1.35; overflow-wrap: anywhere; }
.tigreton-sprite { display: block; position: relative; width: 70px; height: 70px; margin-top: 10px; }
.tigreton-character { position: absolute; inset: 0; z-index: 1; transform-origin: 50% 92%; background: var(--chota-neutral-base, url("icons/mascot/chota-v2/chota-poses.webp")) 0 0 / 600% 400% no-repeat; image-rendering: pixelated; }
.tigreton-character.is-speaking { background-image: var(--chota-neutral-talk, url("icons/mascot/chota-v2/chota-talk.webp")); background-size: 300% 100%; }
.tigreton-sleep-mark, .tigreton-spark { position: absolute; right: -4px; top: 14px; z-index: 2; opacity: 0; pointer-events: none; font-weight: 750; line-height: 1; }
.tigreton-sleep-mark { font-size: 11px; color: #f4ebd6; }
.tigreton-spark { right: -6px; top: 27px; font-size: 14px; color: var(--club-gold); }
.tigreton-shadow { position: absolute; left: 21%; bottom: 1px; width: 58%; height: 5px; border-radius: 50%; background: #0005; opacity: .6; }
@media (max-width: 390px) { .club-event-with-tigreton { grid-template-columns: 40px minmax(0, 1fr) 112px; gap: 8px; } .club-event-with-tigreton time { width: 40px; } .club-event-with-tigreton > .tigreton-agenda { width: 112px; } .tigreton-bubble { padding: 6px 7px; } }
@media (max-width: 760px) {
  /* The plan needs a full mobile row to retain both text and the mascot. */
  .club-home .club-dashboard { grid-template-columns: minmax(0, 1fr); }
  .club-home .club-event-with-tigreton { align-items: center; }
  .club-home .tigreton-countdown { font-size: 11px; }
}

/* Keep upcoming plans compact without shrinking their tap targets. */
body.authenticated .club-dashboard > .club-plans { align-self: start; padding: 16px; }
.club-home .club-plans .panel-heading { margin-bottom: 8px; }
.club-home .club-plans #upcomingEvents { flex: none; }
.club-home .club-plans .club-event { min-height: 44px; padding-block: 10px; }
.club-home .club-plans .club-event:last-child { padding-bottom: 0; }
.club-home .club-plans-empty { min-height: 76px; padding: 8px 0; }
.club-home .club-plans-empty p { margin-bottom: 0; }
.club-home .tigreton-agenda > .tigreton-name { margin-top: 3px; font-size: 10px; line-height: 1.3; color: #f4ebd6; }
@media (max-width: 760px) {
  body.authenticated .club-dashboard > .club-plans { padding: 12px; }
  .club-home .club-plans .club-event:first-child { padding-top: 0; }
}

/* Plan and mascot are independent buttons, so opening the pet never opens the day. */
.club-event-with-tigreton { grid-template-columns: minmax(0, 1fr) 136px; }
.club-event-open { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; align-self: stretch; min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 10px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.club-event-open .club-event-details { min-width: 0; }
.club-event-open .club-event-details > strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.club-event-open .club-event-details > small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.45; color: var(--club-muted); }
button.tigreton-sprite { touch-action: pan-y; -webkit-touch-callout: none; user-select: none; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.club-event-open:focus-visible, button.tigreton-sprite:focus-visible { outline: 2px solid var(--interaction-strong); outline-offset: 4px; }
@media (max-width: 390px) {
  .club-event-with-tigreton { grid-template-columns: minmax(0, 1fr) 112px; }
  .club-event-open { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
}

.chota-viewer { box-sizing: border-box; width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; padding: max(22px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left)); overflow: auto; border: 0; border-radius: 0; background: #15181d; color: #f4f1e9; font-family: inherit; }
.chota-viewer[open] { display: flex; flex-direction: column; }
.chota-viewer::backdrop { background: #080a10; }
.chota-viewer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chota-viewer-heading small { font-size: 9px; letter-spacing: .12em; color: var(--club-gold); }
.chota-viewer-heading h2 { margin: 4px 0 0; font: 700 25px/1.2 var(--font-body, sans-serif); letter-spacing: -.03em; }
.chota-viewer-heading button { display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; padding: 0; border: 1px solid #ffffff24; border-radius: 50%; background: #ffffff08; color: #f4f1e9; font-size: 26px; cursor: pointer; }
.chota-viewer-plan { margin: 12px 0 16px; font-size: 12px; line-height: 1.45; color: #afb4bf; overflow-wrap: anywhere; }
.chota-viewer-pet { flex: 1; justify-content: center; min-height: min-content; display: flex; flex-direction: column; align-items: center; width: 100%; }
.chota-viewer-bubble-slot { flex: none; display: flex; justify-content: center; align-items: flex-end; box-sizing: border-box; width: 100%; height: 142px; padding-bottom: 10px; }
.chota-viewer-pet .tigreton-bubble { flex: none; width: fit-content; max-width: min(100%, 340px); margin: 0 0 4px; padding: 12px 15px; border-radius: 22px 22px 8px 22px; color: #24262c; font-size: 14px; line-height: 1.45; text-align: left; overflow-wrap: anywhere; }
.chota-viewer-status { box-sizing: border-box; }
.chota-viewer-comment { display: block; max-height: 100px; overflow-y: auto; }
.chota-loading-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chota-loading-dots { display: inline-flex; align-items: center; gap: 4px; height: 14px; padding: 0 2px; }
.chota-loading-dots i { display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: chota-loading-dot 1s ease-in-out infinite; }
.chota-loading-dots i:nth-child(2) { animation-delay: .15s; }
.chota-loading-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chota-loading-dot { 0%, 70%, 100% { opacity: .35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .chota-loading-dots i { animation: none; opacity: .65; } }
.chota-viewer-pet .tigreton-bubble:after { right: 35%; }
.chota-viewer-pet .tigreton-countdown { font-size: 13px; }
.chota-viewer-pet .tigreton-comment { font-size: 12px; line-height: 1.45; }
.chota-viewer-touch { display: grid; place-items: center; margin: 16px 0 0; padding: 0 20px 8px; border: 0; border-radius: 22px; background: transparent; cursor: pointer; }
.chota-viewer-touch .tigreton-sprite { width: min(70vw, 36dvh, 360px); height: auto; aspect-ratio: 1; margin-top: 0; }
.chota-viewer-touch .tigreton-sleep-mark { right: 0; top: 35px; font-size: 22px; }
.chota-viewer-touch .tigreton-spark { right: 0; top: 55px; font-size: 25px; }
.chota-viewer-status[hidden] { display: none; }
.chota-viewer-heading, .chota-viewer-plan, .chota-viewer-actions { flex: none; }
.chota-viewer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chota-viewer-actions button { min-height: 44px; padding: 10px 12px; border: 1px solid #ffffff24; border-radius: 13px; background: #ffffff08; color: #f4f1e9; font: 600 12px/1.3 var(--font-body, sans-serif); cursor: pointer; }
.chota-viewer-actions button:active { background: #b8b8b820; }
.chota-viewer button:focus-visible { outline: 2px solid var(--interaction-strong); outline-offset: 3px; }

.chota-character-row { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
.chota-viewer-pet .chota-character-row { width: fit-content; max-width: 100%; }

/* The nearest event and El Chota share one compact agenda card. */
body.authenticated .club-dashboard > .club-plans { padding: 16px; border-radius: 20px; }
.club-home .club-plans .panel-heading { margin-bottom: 10px; }
.club-home .club-plans .panel-heading h3 { margin: 0; font-size: 18px; }
.club-plans .club-heading-link { min-height: 32px; }
.club-home .club-plans .club-event-with-tigreton {
  display: grid; grid-template-columns: minmax(0, 1fr) 104px; align-items: center;
  gap: 8px 12px; padding: 12px; border: 1px solid #d9b66720; border-radius: 15px;
  background: linear-gradient(115deg, #d9b6670c, #d9b66703);
}
.club-event-with-tigreton .club-event-open { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; }
.club-event-with-tigreton time { width: 42px; padding: 9px 0; border-radius: 10px; }
.club-event-with-tigreton time strong { font-size: 22px; }
.club-event-open .club-event-details > strong { font-size: 13px; line-height: 1.35; }
.club-event-open .club-event-details > small { font-size: 10px; line-height: 1.35; margin-top: 3px; }
.club-event-open .club-event-details > .club-event-location { color: #c5c8cf; }
.club-event-countdown { display: inline-block; margin-top: 7px; color: var(--club-gold); font-size: 10px; font-weight: 650; line-height: 1.3; }
.club-event-with-tigreton > .tigreton-agenda { width: 104px; align-self: center; }
.club-event-with-tigreton > .tigreton-agenda { position: relative; }
.club-event-with-tigreton .chota-expand { position: absolute; z-index: 3; top: 0; right: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 13px; border: 0; border-radius: 12px; background: transparent; color: #d6bd83; cursor: pointer; }
.club-event-with-tigreton .chota-expand svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.club-event-with-tigreton .chota-expand:focus-visible { outline: 2px solid var(--interaction-strong); outline-offset: 2px; }
.club-event-with-tigreton .chota-character-row { justify-content: flex-start; }
.club-event-with-tigreton .tigreton-sprite { width: 74px; height: 74px; margin-top: 0; }
.club-event-with-tigreton .tigreton-name { margin-top: 1px; padding-right: 26px; font-size: 9px; color: #c8cbd1; }
.club-event-with-tigreton > .tigreton-bubble { grid-column: 1 / -1; justify-self: end; max-width: min(100%, 250px); padding: 6px 9px; border-width: 1px; border-radius: 10px; box-shadow: none; }
.club-event-with-tigreton > .tigreton-bubble:after { top: -5px; bottom: auto; right: 65px; width: 7px; height: 7px; border: 0; border-top: 1px solid #292b30; border-left: 1px solid #292b30; }
.club-event-with-tigreton .tigreton-comment { margin: 0; font-size: 11px; line-height: 1.4; }
.club-home .club-plans .club-event:last-child { padding-bottom: 12px; }
.club-plans .club-calendar-link { min-height: 36px; margin-top: 8px; padding-top: 8px; font-size: 11px; align-items: center; }
@media (max-width: 390px) {
  .club-home .club-plans .club-event-with-tigreton { grid-template-columns: minmax(0, 1fr) 90px; padding: 10px; column-gap: 8px; }
  .club-event-with-tigreton > .tigreton-agenda { width: 90px; }
  .club-event-with-tigreton .tigreton-sprite { width: 64px; height: 64px; }
  .club-event-with-tigreton .club-event-open { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
  .club-event-with-tigreton time { width: 36px; }
  .club-event-with-tigreton .club-event-details > strong { font-size: 12px; }
}

/* A reusable full-screen scene avoids making the whole mounted app inert on every hold. */
.chota-viewer { position: fixed; inset: 0; z-index: 10020; contain: layout paint; }
body.chota-viewer-open { overflow: hidden; }
body.chota-viewer-open main.app { pointer-events: none; }
body.chota-viewer-open main.app *, body.chota-viewer-open > .aurora { animation-play-state: paused !important; }
/* Pointer activation must not leave a selection frame on the mascot. */
:root[data-input-modality="pointer"] :is(button.tigreton-sprite, .chota-viewer button):focus {
  outline: none !important;
}
button.tigreton-sprite, .chota-viewer button {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.home-loading-state { min-height: 76px; display: flex; align-items: center; color: var(--club-muted); font-size: 12px; }

/* Reserve horizontal input for back navigation; vertical scrolling and pinch zoom remain available. */
.page-section[data-edge-back]{touch-action:pan-y pinch-zoom}

/* Live destination underneath the edge-swipe source, never a second active page. */
body.authenticated .app > .page-back-preview {
  position: absolute !important; display: block !important; z-index: 1 !important;
  flex: none !important; min-height: 0 !important; max-width: none !important;
  margin: 0 !important; box-sizing: border-box; pointer-events: none !important;
  background-color: var(--club-paper, #0b0c10); animation: none !important;
}
body.authenticated .app > .page-back-source {
  position: relative; z-index: 2; isolation: isolate;
  background-color: var(--club-paper, #0b0c10); will-change: transform;
}
.page-back-preview, .page-back-preview * { animation: none !important; }
.page-back-source { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.page-back-chat-preview :is(.messages-hub, .private-chat-layout) { display: block !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; }
.page-back-chat-preview :is(.chat-inbox, .private-contacts) { display: none !important; }
.page-back-chat-preview :is(.private-conversation, .group-conversation) { position: relative !important; inset: auto !important; display: flex !important; flex-direction: column !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; border-radius: 0 !important; transform: none !important; }
.page-back-chat-preview .messages { flex: 1 1 0 !important; min-height: 0 !important; max-height: none !important; overflow-y: auto !important; }
.page-back-chat-preview :is(.chat-header, .chat-channel-bar, .message-form) { flex-shrink: 0; }

body.authenticated .app > .page-back-header-preview {
  position: absolute !important; display: flex !important; z-index: 1 !important;
  flex: none !important; margin: 0 !important; box-sizing: border-box;
  transform: none !important; visibility: visible !important; pointer-events: none !important;
  animation: none !important; transition: none !important;
}
body.authenticated .app > .page-back-source-header { z-index: 2 !important; will-change: transform; }

/* Profile colour (2026-11-15): the member's chosen colour replaces the gold of
   the profile's halo and rays (app-theme.css #perfil#perfil::before/::after)
   and washes the top of the page. */
#perfil#perfil.has-profile-color::before {
  top: -120px;
  height: 680px;
  background:
    radial-gradient(55% 50% at 50% 34%, color-mix(in srgb, var(--profile-color) 62%, transparent), transparent 74%),
    linear-gradient(180deg, color-mix(in srgb, var(--profile-color) 30%, transparent), transparent 80%);
}
#perfil#perfil.has-profile-color::after {
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--profile-color) 22%, transparent) 0 6deg, transparent 6deg 18deg);
}
/* Swatches in the profile editor: a neutral ring and a tick mark the choice. */
.profile-color-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.profile-color-field legend { margin-bottom: 10px; padding: 0; font-size: 13px; font-weight: 600; color: var(--bb2-secondary, #b5b8bf); }
.profile-color-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 10px; }
.profile-color-swatch { position: relative; display: grid; justify-items: center; gap: 4px; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.profile-color-swatch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.profile-color-swatch span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px #ffffff26; }
.profile-color-swatch:first-child span { background: repeating-linear-gradient(135deg, transparent 0 5px, #ffffff1f 5px 6px); box-shadow: inset 0 0 0 1px #ffffff40; }
.profile-color-swatch b { font-size: 10px; font-weight: 500; color: var(--bb2-muted, #8e929a); white-space: nowrap; }
.profile-color-swatch input:checked + span { box-shadow: 0 0 0 2px var(--bb2-canvas, #000), 0 0 0 4px #f4f4f6; }
.profile-color-swatch input:checked + span::after { content: "✓"; color: #fff; font-size: 16px; font-weight: 800; text-shadow: 0 1px 3px #0009; }
.profile-color-swatch input:checked ~ b { color: var(--bb2-ink, #fff); }
.profile-color-swatch input:focus-visible + span { outline: 2px solid #c6c6c6; outline-offset: 5px; }

/* Simple profile (2026-11-15): one centred column — avatar, name, a single
   line of details, bio, quiet tags and one action. The rays, the Chota bubble
   and the boxed empty states are gone; the profile colour stays as a soft halo. */
#perfil#perfil::after { display: none; }
body.authenticated #perfil#perfil .profile-simple { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 22px; }
body.authenticated #perfil#perfil .profile-simple .club-profile-topline { align-self: stretch; justify-content: space-between; min-height: 38px; }
body.authenticated #perfil#perfil .profile-simple .club-member-number { color: var(--bb2-muted, #8e929a); }
body.authenticated #perfil#perfil .profile-simple .club-profile-identity { flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: center; text-align: center; gap: 14px; margin: 6px 0 0; width: 100%; }
body.authenticated #perfil#perfil .profile-simple .club-profile-avatar { flex: none; width: 108px !important; height: 108px !important; min-height: 0 !important; aspect-ratio: 1; border-radius: 50%; font-size: 40px; }
body.authenticated #perfil#perfil .profile-simple .profile-banner-hero { width: 100%; }
body.authenticated #perfil#perfil .profile-simple .club-profile-copy { flex: none; display: grid; gap: 4px; }
body.authenticated #perfil#perfil .profile-simple .club-profile-identity h2 { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -.035em; }
body.authenticated #perfil#perfil .profile-simple .club-profile-handle { font-size: 14px; color: var(--bb2-muted, #8e929a); }
body.authenticated #perfil#perfil .profile-simple .club-profile-nickname { margin: 14px 0 0; font-size: 15px; font-weight: 600; color: var(--bb2-ink, #f4f4f6); }
body.authenticated #perfil#perfil .profile-simple .club-profile-bio { max-width: 34ch; margin: 6px auto 0; font-size: 14px; line-height: 1.5; color: var(--bb2-secondary, #b5b8bf); }
body.authenticated #perfil#perfil .profile-simple .profile-tags { justify-content: center; gap: 6px; margin: 14px 0 0; }
body.authenticated #perfil#perfil .profile-simple .profile-tags span { min-height: 26px; margin: 0; padding: 0 10px; border: 0; border-radius: 999px; background: #ffffff12; font-size: 12px; color: var(--bb2-secondary, #b5b8bf); }
body.authenticated #perfil#perfil .profile-simple .club-profile-bottom { align-self: stretch; justify-content: center; margin: 20px 0 0; padding: 0; border: 0; }
body.authenticated #perfil#perfil .profile-simple .profile-actions { display: flex; gap: 8px; width: min(100%, 340px); margin: 0 auto; }
body.authenticated #perfil#perfil .profile-simple .profile-actions button { flex: 1; min-width: 0; min-height: 42px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
body.authenticated #perfil#perfil .profile-simple .profile-card-vitrine { margin: 10px 0 0; }
body.authenticated #perfil#perfil .profile-simple .profile-card-vitrine p { display: none; }
body.authenticated #perfil#perfil .profile-simple .profile-card-vitrine > button { min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12px; }
body.authenticated #perfil#perfil .profile-simple .profile-vitrine-arc { margin-top: 12px; }
body.authenticated #perfil#perfil .profile-achievements { padding: 22px 0 8px; }
body.authenticated #perfil#perfil .profile-achievements .achievement-empty { display: block; grid-column: 1 / -1; min-height: 0; margin: 4px 0 0; padding: 0; border: 0; background: none; text-align: left; font-size: 14px; color: var(--bb2-muted, #8e929a); }
body.authenticated #perfil#perfil .profile-achievements .achievement-showcase:has(> .achievement-empty) { display: block; min-height: 0; padding: 0; border: 0; background: none; }
#perfil .profile-help-link { display: block; margin: 18px auto 8px; padding: 10px 12px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--bb2-muted, #8e929a); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#perfil .profile-help-link:focus-visible { outline: 2px solid #c6c6c6; outline-offset: 2px; border-radius: 8px; }
/* With a banner the photo sits centred on its lower edge, in line with the name. */
body.authenticated #perfil#perfil .profile-simple .profile-banner-hero { margin-bottom: 40px; }
body.authenticated #perfil#perfil .profile-simple .profile-banner-hero .club-profile-avatar { left: 50%; bottom: -36px; transform: translateX(-50%); width: 92px !important; height: 92px !important; min-width: 92px; max-width: 92px; max-height: 92px; }
/* Banner at its own 3:1 shape (2026-11-15): nothing is cropped, and the member
   number, coins, shop and album float over its top edge instead of above it. */
body.authenticated #perfil#perfil .profile-simple { position: relative; }
body.authenticated #perfil#perfil .profile-simple .profile-banner-hero { height: auto; aspect-ratio: 3 / 1; }
body.authenticated #perfil#perfil .profile-simple .profile-banner-hero .profile-banner { border-radius: 18px; }
body.authenticated #perfil#perfil .profile-simple .profile-banner-hero .profile-banner :is(img, video) { width: 100%; height: 100%; object-fit: cover; }
body.authenticated #perfil#perfil .profile-simple:has(.profile-banner-hero) .club-profile-topline { position: absolute; z-index: 2; top: 14px; left: 6px; right: 6px; gap: 6px; min-height: 0; pointer-events: none; }
body.authenticated #perfil#perfil .profile-simple:has(.profile-banner-hero) .club-profile-topline > * { pointer-events: auto; }
body.authenticated #perfil#perfil .profile-simple:has(.profile-banner-hero) .club-member-number { padding: 4px 9px; border-radius: 999px; background: #0000008c; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #f4f4f6; }
body.authenticated #perfil#perfil .profile-simple:has(.profile-banner-hero) :is(.profile-coin-balance, .banner-shop-trigger, .card-album-trigger) { width: auto; min-width: 30px; height: 30px; padding-inline: 8px; border-color: #ffffff2e; background: #0000008c; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #f4f4f6; }
body.authenticated #perfil#perfil .profile-simple:has(.profile-banner-hero) .club-profile-identity { margin-top: 0; }
body.authenticated #perfil#perfil .profile-simple:has(.profile-banner-hero) :is(.profile-coin-balance, .banner-shop-trigger, .card-album-trigger) svg { width: 17px; height: 17px; }
body.authenticated #perfil#perfil .profile-simple:has(.profile-banner-hero) .club-member-number { font-size: 11px; }
/* "Cambiar cartas" sits beside "Editar perfil"; the cards themselves live behind the photo. */
body.authenticated #perfil#perfil .profile-simple .profile-actions .profile-card-vitrine:not([hidden]) { display: contents; }
body.authenticated #perfil#perfil .profile-simple .profile-actions .profile-card-vitrine > button { flex: 1; min-width: 0; min-height: 42px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
body.authenticated #perfil#perfil .profile-simple .profile-vitrine-arc { margin: 0; }
