.hub-profile-heading,.hub-ranks,.hub-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.hub-profile-heading{justify-content:space-between;font-size:1.3rem}.hub-chip{display:inline-flex;padding:5px 11px;border:1px solid #5f7984;border-radius:999px;color:#9ae6f3;background:#15272d;font-size:.85rem}.hub-player{display:grid;grid-template-columns:72px 1fr;gap:22px;margin:20px 0;padding:22px;background:#14191f;border:1px solid #303c48;border-radius:16px}.hub-player h3{margin-top:0}.hub-avatar{display:grid;grid-template-columns:repeat(8,1fr);width:72px;height:72px;box-shadow:5px 5px 0 #080c10;border-radius:5px;overflow:hidden}.hub-avatar i.skin{background:hsl(var(--avatar-hue) 32% 62%)}.hub-avatar i.hair{background:hsl(var(--avatar-hue) 22% 20%)}.hub-avatar i.eye{background:#092028}.hub-avatar i.mouth{background:#473934}.hub-ranks{margin-top:12px}.hub-muted{color:#aebac8;font-size:.88rem}.hub-player progress{accent-color:#67ddec;width:100%;height:13px}.hub-scroll{max-height:400px;overflow:auto;overscroll-behavior:contain;scrollbar-color:#63758b #151c24;scrollbar-width:thin;margin-top:16px}.hub-notice,.hub-event{padding:20px;margin:12px 0;background:#151b23;border:1px solid #34404e;border-radius:14px;overflow-wrap:anywhere}.hub-notice.is-unread{border-left:3px solid #76deef;background:linear-gradient(110deg,#162c34,#151b23)}.hub-notice p{margin:8px 0}.hub-notice small{color:#aebac8;display:block}.hub-notice a,.hub-notice button{margin:12px 12px 0 0}.hub-notice button{font-size:.82rem}.hub-event h3{margin:14px 0 8px}.hub-countdown{color:#9ae6f3;font-variant-numeric:tabular-nums}[data-hub-events]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:18px}.hub-event{display:flex;flex-direction:column;margin:0}.hub-event button,.hub-event .button{margin-top:auto}.hub-section{margin-top:28px;padding:24px;background:#13181f;border:1px solid #354150;border-radius:15px}.hub-chart{width:100%;height:auto;min-height:150px;background:#0c1117;border-radius:12px;margin-top:18px}.hub-chart text{fill:#b4c6d8;font-size:12px}.hub-chart .grid{stroke:#263442;stroke-width:1}.hub-chart .line{fill:none;stroke:#75e6f5;stroke-width:2.5}.hub-chart .range{stroke:#8c84ea;stroke-width:3;opacity:.55}.hub-chart .gap{fill:#e1a77e}.hub-stat-form,.hub-event-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin:18px 0}.hub-event-form textarea{min-height:100px}.hub-event-form .hub-wide{grid-column:1/-1}.hub-stat-form label,.hub-event-form label{display:flex;flex-direction:column;gap:8px}.hub-event-form input[type=checkbox]{width:20px;height:20px}.hub-task{display:grid;grid-template-columns:1fr auto;gap:14px;padding:18px;margin:12px 0;background:#171f28;border:1px solid #354554;border-radius:12px}.hub-task p{margin:6px 0}.hub-task button{align-self:center}.hub-task .hub-manual{color:#edc199}.hub-attendees{max-height:220px;overflow:auto}.hub-gift-controls{background:#151d24;border:1px solid #546b75;border-radius:16px;padding:18px;margin:18px 0}.hub-gift-controls form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.hub-gift-controls label{flex:1;min-width:170px}.hub-gift-controls input{display:block;width:100%;box-sizing:border-box}.hub-gift-controls p{margin:10px 0 0}@media(max-width:600px){.hub-player{grid-template-columns:1fr;padding:16px}.hub-task{grid-template-columns:1fr}.hub-section{padding:14px}.hub-chart{min-height:120px}.hub-profile-heading{font-size:1.05rem}}@media(prefers-reduced-motion:no-preference){.hub-event{transition:border-color .2s,transform .2s}.hub-event:hover{border-color:#71bccc;transform:translateY(-2px)}}
.hub-chart-wrap{position:relative}.hub-chart-tooltip{position:absolute;z-index:5;max-width:210px;padding:.5rem .65rem;border:1px solid #617989;border-radius:8px;background:#111920;color:#e9f2fa;box-shadow:0 6px 18px #0008;font-size:.82rem;line-height:1.4;pointer-events:none}.hub-chart-tooltip[hidden]{display:none}

.hub-chart-marker{fill:#75e6f5;stroke:#f4fbff;stroke-width:2;filter:drop-shadow(0 1px 4px #000)}.hub-event-media{display:block;width:100%;max-height:20rem;object-fit:cover;border-radius:12px;margin:10px 0}.hub-puzzle-answer{display:grid;gap:10px;margin:14px 0}.hub-puzzle-answer textarea{box-sizing:border-box;width:100%;min-height:90px}.hub-puzzle-items{grid-column:1/-1;min-width:0}.hub-puzzle-item-row,.hub-puzzle-answer-card{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.hub-puzzle-review{padding:16px;border:1px solid #394550;border-radius:12px}.hub-puzzle-answer-card{align-items:center;justify-content:space-between;padding:12px;border-bottom:1px solid #394550}.hub-puzzle-answer-card p{white-space:pre-wrap;overflow-wrap:anywhere}.hub-puzzle-solution{font-weight:700;color:#e6c5a5}.subscription-interval-items{grid-column:1/-1}@media(max-width:600px){.hub-puzzle-item-row,.hub-puzzle-answer-card{align-items:stretch;flex-direction:column}.hub-puzzle-answer button{width:100%}}

/* Public HDC event and challenge surfaces use the site's brown palette. */
[data-hub-events]{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));align-items:stretch}
.hub-event{position:relative;gap:.35rem;padding:1rem;background:linear-gradient(145deg,#38251a,#241915);border-color:rgba(202,158,117,.3);box-shadow:0 10px 26px rgba(0,0,0,.22)}
.hub-event h3{margin:.5rem 0;color:#f0d4b3}.hub-event .hub-chip,.hub-challenges .hub-chip{color:#f0c38e;background:rgba(139,76,42,.22);border-color:rgba(202,158,117,.42)}
.hub-event-top{display:flex;gap:.5rem;flex-wrap:wrap}.hub-event-media.is-thumb{height:clamp(140px,22vw,220px);max-height:220px;object-fit:cover;margin:.25rem 0}.hub-event-summary{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.hub-event-date,.hub-slots{color:#e6c5a5;font-variant-numeric:tabular-nums}.hub-personal-status{padding:.55rem .7rem;border-left:2px solid #d99058;background:rgba(139,76,42,.16);color:#f1d4b0;border-radius:4px 8px 8px 4px}.hub-event-detail,.hub-calendar-link{margin-top:auto;align-self:flex-start}.hub-calendar-link{display:inline-block;margin:0 0 1rem}
.hub-dialog{width:min(44rem,calc(100% - 2rem));max-height:min(88vh,54rem);padding:0;border:1px solid rgba(202,158,117,.5);border-radius:18px;background:linear-gradient(145deg,#302018,#17100d);color:#f5e9d9;box-shadow:0 24px 80px #000b;overflow:auto}.hub-dialog::backdrop{background:rgba(10,7,5,.78);backdrop-filter:blur(3px)}.hub-dialog-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;background:#251914;border-bottom:1px solid rgba(202,158,117,.3)}.hub-dialog-head h2{margin:0;font-size:1.25rem}.hub-dialog-close{flex:none}.hub-dialog-body{padding:1rem 1.25rem 1.5rem}.hub-dialog-body p{white-space:pre-wrap;overflow-wrap:anywhere}.hub-dialog-body .hub-event-media{max-height:55vh;object-fit:contain;background:#100c09}.hub-dialog-body button{margin-top:.75rem}
.hub-challenges{margin:1.25rem 0}.hub-challenge-card{margin:.8rem 0;padding:1rem;border:1px solid rgba(202,158,117,.3);border-radius:14px;background:linear-gradient(145deg,#38251a,#241915)}.hub-challenge-card h3{margin:.55rem 0}.hub-challenge-card progress{width:100%;height:12px;accent-color:#d99058}.hub-admin-challenges .hub-challenge-admin-card,.hub-ops-card{padding:1rem;border:1px solid #354150;border-radius:12px;background:#171f28;margin:.6rem 0}.hub-challenge-admin-card{display:flex;align-items:center;justify-content:space-between;gap:1rem}.hub-ops-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.75rem}.hub-ops-card p{margin:.35rem 0;overflow-wrap:anywhere}
@media(max-width:600px){.hub-dialog{width:calc(100% - 1rem);max-height:92vh;border-radius:14px}.hub-dialog-head,.hub-dialog-body{padding:.85rem}.hub-challenge-admin-card{align-items:stretch;flex-direction:column}.hub-event{padding:.85rem}}
@media(prefers-reduced-motion:reduce){.hub-event{transition:none!important;transform:none!important}.hub-dialog::backdrop{backdrop-filter:none}}

.hub-event:hover{border-color:#dca46e}

/* Event cards keep the media, live status and rewards easy to scan on every screen. */
.hub-event{gap:.55rem;padding:clamp(1rem,2.2vw,1.4rem);border-radius:18px;background:linear-gradient(150deg,#402a1d 0%,#2b1c15 62%,#211510 100%);border-color:rgba(219,167,117,.34);box-shadow:0 14px 34px #10090570,inset 0 1px #f0cba414}
.hub-event-top{align-items:center}.hub-event-top .hub-chip{font-weight:700;letter-spacing:.02em}
.hub-event h3{font-size:clamp(1.15rem,2vw,1.4rem);line-height:1.25}.hub-event-summary{color:#e8d8c6;line-height:1.55}
.hub-event-media.is-thumb{width:calc(100% + 2px);max-width:none;height:clamp(160px,24vw,240px);border:1px solid #d6aa8050;border-radius:13px;box-shadow:0 8px 18px #10090570}
.hub-event-date{padding-top:.65rem;border-top:1px solid #d6aa8024}.hub-countdown{padding:.7rem .8rem;border:1px solid #d9905850;border-radius:10px;background:linear-gradient(100deg,#713d221c,#120c081c);color:#ffd09b;font-weight:700}.hub-event-reward{padding:.7rem .8rem;border:1px solid #dbad6e66;border-radius:10px;background:linear-gradient(100deg,#82602b35,#50331922);color:#ffe2ae;font-weight:700}.hub-event-detail{min-height:2.8rem;padding-inline:1.1rem}
.hub-image-lightbox{box-sizing:border-box;width:calc(100vw - 1rem);height:calc(100dvh - 1rem);max-width:none;max-height:none;margin:auto;padding:.55rem;border:1px solid #a8794d;border-radius:15px;background:#120d09;color:#f5e9d9;overflow:hidden}.hub-image-lightbox::backdrop{background:#080503ed;backdrop-filter:blur(4px)}.hub-image-lightbox img{display:block;width:100%;height:calc(100% - 2.8rem);max-width:none;max-height:none;object-fit:contain;margin:0 auto}.hub-image-lightbox button{display:block;margin:0 0 .45rem auto}
.hub-event-media[role=button]{cursor:zoom-in;transition:filter .18s}.hub-event-media[role=button]:hover{filter:brightness(1.08)}
.hub-event-reward{color:#f5d4a0}
@media(max-width:600px){[data-hub-events]{grid-template-columns:1fr;gap:14px}.hub-event{padding:1rem}.hub-event-media.is-thumb{height:clamp(170px,58vw,250px)}.hub-image-lightbox{width:calc(100vw - .5rem);height:calc(100dvh - .5rem);padding:.35rem;border-radius:10px}.hub-image-lightbox img{height:calc(100% - 2.55rem)}}