:root{--community-ink:#38281d;--community-muted:#786453;--community-paper:#f5eddf;--community-card:#fffaf0;--community-copper:#a6542f;--community-gold:#c69442;--community-line:#d9c7aa}
.hub-gift-controls{background:linear-gradient(135deg,#f5ead8,#ead6bd)!important;color:#3b2b21!important;border:1px solid #d0b18b!important;border-radius:16px!important;box-shadow:0 8px 24px #50351e17}.hub-gift-controls label{color:#5b3b27}.hub-gift-controls input,.hub-gift-controls select{background:#fffaf1!important;color:#3b2b21!important;border:1px solid #cbb08d!important;border-radius:9px;padding:10px}.hub-gift-controls button{background:linear-gradient(#b86d3e,#91482d)!important;color:#fff8eb!important;border-color:#854329!important;border-radius:10px}.content-section:has([data-hub-events]) .hub-event{background:#fff8eb;color:#3b2b21;border-color:#d6bc94;box-shadow:0 8px 22px #57371912}.content-section:has([data-hub-events]) .hub-event:hover{border-color:#b77745;box-shadow:0 12px 28px #57371920}.content-section:has([data-hub-events]) .hub-chip{background:#f5e4c9;color:#784a2c;border-color:#cfaa77}.content-section:has([data-hub-events]) .hub-countdown{color:#8b4e2c}.account-page .hub-notifications>button,.account-page .hub-notice button{background:#a45b35;color:#fff8eb;border:1px solid #84452c;border-radius:9px;padding:8px 12px}.account-page .hub-notice button:hover,.account-page .hub-notifications>button:hover,.hub-gift-controls button:hover{filter:brightness(1.08)}
.content-section:has([data-hub-events]) .hub-event button,.content-section:has([data-hub-events]) .hub-event .button{background:linear-gradient(#b86d3e,#91482d);border:1px solid #854329;color:#fff8eb;border-radius:10px;padding:10px 14px;text-decoration:none}
.account-page .account-card:has([data-hub-profile]),.account-page .hub-notifications,.account-page [data-gallery-submissions]{background:#f4eadb;color:#3b2b21;border:1px solid #d3b895;border-radius:16px}.account-page .hub-player,.account-page .hub-notice,.account-page .hub-gift-controls{background:#fff9ee;color:#3b2b21;border:1px solid #ddc5a4;border-radius:14px}.account-page .hub-chip{border-color:#c8a26d;background:#f7e8cc;color:#75451f}.account-page .hub-muted,.account-page .hub-notice small{color:#806d5b}.account-page .hub-countdown{color:#8b4e2c}.account-page .hub-player progress{accent-color:#b36d37}.account-page .hub-notice.is-unread{border-left:4px solid #bf8340;background:linear-gradient(110deg,#f3dfbd,#fff9ee)}.account-page .hub-avatar img{width:72px;height:72px;image-rendering:pixelated;object-fit:cover}.account-page .hub-notice-actions{display:flex;gap:8px;flex-wrap:wrap}.content-section:has([data-hub-events]) .hub-event{background:#fff8eb;color:#3b2b21;border-color:#d6bc94}.content-section:has([data-hub-events]) .hub-countdown{color:#8b4e2c}.community-nav{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 28px}.community-nav a{padding:9px 13px;border:1px solid #d0b58a;border-radius:999px;background:#fff8ea;color:#714426;text-decoration:none}
.community-page{max-width:1180px;margin:30px auto 60px;padding:clamp(18px,4vw,42px);background:var(--community-paper);color:var(--community-ink);border:1px solid #d5c1a1;border-radius:24px;box-shadow:0 18px 48px #21140d24}.community-page h1,.community-page h2,.community-page h3{font-family:Georgia,serif;color:#653b27}.community-hero{padding:clamp(24px,5vw,55px);border-radius:20px;background:radial-gradient(ellipse at top right,#f5d99c,#ead1ae 44%,#c99165);border:1px solid #c99b6c}.community-hero p{max-width:650px;color:#503725}.community-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:22px 0}.community-toolbar select,.community-upload input,.community-upload textarea,.gallery-mod-card input,.gallery-mod-card textarea{padding:11px;border:1px solid var(--community-line);border-radius:10px;background:#fffdf8;color:var(--community-ink)}.leaderboard-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end;margin:30px 0}.leaderboard-podium-card{position:relative;display:flex;align-items:center;flex-direction:column;text-align:center;padding:26px 14px;border:1px solid #d4b27b;border-radius:18px;background:linear-gradient(160deg,#fff9e9,#e4c899);box-shadow:0 12px 24px #613f2520}.leaderboard-podium-card.place-1{min-height:225px;order:2;background:linear-gradient(155deg,#fff4c9,#d8ae5d)}.leaderboard-podium-card.place-2{order:1}.leaderboard-podium-card.place-3{order:3}.leaderboard-podium img,.leaderboard-row img{width:54px;height:54px;object-fit:cover;image-rendering:pixelated;border:2px solid #b77a43;border-radius:12px;background:#e8dbca}.leaderboard-rank{font-family:Georgia,serif;color:var(--community-copper);font-size:1.4rem;font-weight:bold}.leaderboard-value{margin-top:8px;color:#765020;font-weight:700}.leaderboard-list{list-style:none;padding:0;display:grid;gap:8px}.leaderboard-row{display:grid;grid-template-columns:55px 50px minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 16px;border:1px solid var(--community-line);border-radius:12px;background:var(--community-card)}.leaderboard-row .leaderboard-rank{font-size:1rem}.community-page button{cursor:pointer}.community-page button:not(.gallery-frame){border:1px solid #95512f;border-radius:10px;padding:10px 15px;background:linear-gradient(#b66a3e,#91482d);color:#fff8eb;font-weight:650}.community-page button:disabled{opacity:.55;cursor:wait}.community-nav{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 28px}.community-nav a{padding:9px 13px;border:1px solid #d0b58a;border-radius:999px;background:#fff8ea;color:#714426;text-decoration:none}.gallery-grid{columns:3 250px;column-gap:18px;margin:24px 0}.gallery-card{break-inside:avoid;margin:0 0 18px;background:var(--community-card);border:1px solid var(--community-line);border-radius:14px;overflow:hidden;box-shadow:0 6px 18px #52372016}.gallery-frame{position:relative;display:block;width:100%;padding:0;border:0!important;border-radius:0!important;background:#241a14!important;color:white!important;overflow:hidden}.gallery-frame img,.gallery-frame video{display:block;width:100%;height:auto;max-height:560px;object-fit:cover}.gallery-size-1 .gallery-frame img{max-height:340px}.gallery-size-2 .gallery-frame img{max-height:460px}.gallery-size-3 .gallery-frame img{max-height:280px}.gallery-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#20160dbb;font-size:24px}.gallery-caption{padding:14px 16px}.gallery-caption h2{font-size:1.15rem;margin:0 0 7px}.gallery-caption p{margin:5px 0;color:var(--community-muted)}.gallery-caption small,.submission-card small{color:var(--community-muted)}.gallery-lightbox{width:min(94vw,1000px);max-height:92vh;padding:20px;background:var(--community-paper);border:1px solid var(--community-line);border-radius:18px;color:var(--community-ink)}.gallery-lightbox::backdrop{background:#100a06dd}.gallery-lightbox [data-gallery-dialog-content] img,.gallery-lightbox video{max-width:100%;max-height:72vh;display:block;margin:auto}.community-upload,.submission-card{padding:20px;margin:16px 0;border:1px solid var(--community-line);border-radius:16px;background:var(--community-card)}.community-upload form{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}.community-upload label{display:grid;gap:8px}.community-upload input[type=file]{grid-column:span 2}.submission-card img{max-width:180px;max-height:140px;object-fit:cover;border-radius:10px}.gallery-moderation{display:grid;gap:16px}.gallery-mod-card{display:grid;grid-template-columns:minmax(150px,260px) minmax(0,1fr);gap:12px;padding:16px;background:#171b20;border:1px solid #49515a;border-radius:12px;color:#eee}.gallery-mod-card>img,.gallery-mod-card>video{width:100%;max-height:190px;object-fit:cover;border-radius:8px}.gallery-mod-card>div{grid-column:2}.gallery-mod-card input,.gallery-mod-card textarea{grid-column:2;width:100%;box-sizing:border-box}.gallery-mod-card textarea{min-height:75px}.gallery-mod-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.gallery-mod-card .danger-button{background:#762f2a!important}.community-page .is-error{color:#a52520}@media(max-width:680px){.leaderboard-podium{grid-template-columns:1fr;align-items:stretch}.leaderboard-podium-card,.leaderboard-podium-card.place-1,.leaderboard-podium-card.place-2,.leaderboard-podium-card.place-3{order:unset;min-height:0}.leaderboard-row{grid-template-columns:40px 44px minmax(0,1fr);gap:9px}.leaderboard-row .leaderboard-value{grid-column:3}.gallery-mod-card{grid-template-columns:1fr}.gallery-mod-card>div,.gallery-mod-card input,.gallery-mod-card textarea{grid-column:1}.community-upload input[type=file]{grid-column:1}}

/* Warm bronze surfaces: public community pages share the main HDC palette. */
:root{--community-ink:#ead9c7;--community-muted:#bda990;--community-paper:#241b16;--community-card:#30231b;--community-copper:#d18b59;--community-gold:#c7a16b;--community-line:#654a34}
.community-page{background:radial-gradient(ellipse at top,#302218 0,#211914 58%,#191512 100%);color:var(--community-ink);border-color:#62462f;box-shadow:0 18px 48px #100b08a0}
.community-page h1,.community-page h2,.community-page h3{color:#e1b27c;font-family:inherit}
.community-hero{background:radial-gradient(ellipse at top right,#55351f,#39261b 48%,#2a1f18);border-color:#805838;color:#ead9c7}
.community-hero p{color:#cdb79e}
.community-hero h2{font-family:Georgia,"Times New Roman",serif}
.gallery-submission-page .community-hero h2{font-family:inherit}
.community-toolbar select,.community-upload input,.community-upload textarea{background:#1d1713;color:#f1e3d1;border-color:#715239}
.community-toolbar select:focus,.community-upload input:focus,.community-upload textarea:focus{outline:2px solid #ba8050;outline-offset:2px}
.leaderboard-podium-card{background:linear-gradient(155deg,#49301f,#30221a 72%);border-color:#87613a;box-shadow:0 12px 24px #100a0780;color:#f0e1cf}
.leaderboard-podium-card.place-1{background:linear-gradient(155deg,#654525,#3b291b 78%)}
.leaderboard-value{color:#d9ad72}
.leaderboard-row{background:linear-gradient(100deg,#33251c,#281f19);border-color:#59432f;color:#e8d8c6}
.leaderboard-podium img,.leaderboard-row img{border-color:#b77748;background:#3a2c22}
.gallery-card,.community-upload,.submission-card{background:linear-gradient(145deg,#33251c,#261e18);border-color:#614832;box-shadow:0 8px 24px #100a0760;color:#ead9c7}
.gallery-caption p,.gallery-caption small,.submission-card small{color:#bda990}
.gallery-lightbox{background:#241b16;border-color:#79583a;color:#ead9c7}
.gallery-submit-cta{display:inline-flex;align-items:center;gap:8px;margin:0 0 18px;padding:11px 16px;border:1px solid #a96e42;border-radius:10px;background:linear-gradient(#754625,#4a2e1d);color:#ffead0;text-decoration:none;font-weight:700}
.gallery-submit-cta:hover{background:linear-gradient(#87522f,#5b3923);border-color:#ca8c59}
.gallery-submit-cta[hidden]{display:none}
.gallery-submission-page .community-hero{margin-bottom:22px}
.community-page .is-error{color:#f0a08a}
.account-page .account-card:has([data-hub-profile]),.account-page .hub-notifications,.account-page .account-card,.account-page .shop-history,.account-page .danger-card{background:linear-gradient(145deg,#30231b,#241c17);color:#ead9c7;border:1px solid #624832;border-radius:16px}
.account-page .account-card h2,.account-page .shop-history h2,.account-page .account-card h3{color:#d9a16c}
.account-page .hub-player,.account-page .hub-notice,.account-page .hub-gift-controls{background:#2a211b;color:#ead9c7;border:1px solid #5d4834;border-radius:14px}
.account-page .hub-chip{border-color:#8a6341;background:#3b2b20;color:#e5bd8d}
.account-page .hub-muted,.account-page .hub-notice small{color:#bda990}
.account-page .hub-countdown{color:#e2ab70}
.account-page .hub-player progress{accent-color:#ca8956}
.account-page .hub-scroll{scrollbar-color:#98704e #211914}
.account-page .hub-notice.is-unread{border-left:4px solid #c0834e;background:linear-gradient(110deg,#3a2a1f,#2a211b)}
.account-page .hub-avatar{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));width:72px;height:72px;overflow:hidden}
.account-page .hub-avatar img{grid-column:1/-1;grid-row:1/-1;display:block;width:100%;height:100%;object-fit:contain;object-position:center;image-rendering:pixelated}
.account-page .hub-gift-controls{background:linear-gradient(135deg,#35261c,#241b16)!important;color:#ead9c7!important;border-color:#73543a!important}
.account-page .hub-gift-controls label{color:#d7b18a}
.account-page .hub-gift-controls input,.account-page .hub-gift-controls select{background:#1e1814!important;color:#f0e1d0!important;border:1px solid #73543a!important}
.account-page .hub-gift-controls button{background:linear-gradient(#a8643a,#75432a)!important;color:#fff0dd!important;border-color:#875335!important}
.account-page .hub-notifications>button,.account-page .hub-notice button{background:#965632;color:#fff0dd;border:1px solid #744329;border-radius:9px;padding:8px 12px}
.content-section:has([data-hub-events]) .hub-event{background:linear-gradient(145deg,#30231b,#241c17);color:#ead9c7;border-color:#624832;box-shadow:0 8px 24px #100a0760}
.content-section:has([data-hub-events]) .hub-event:hover{border-color:#ae7647;box-shadow:0 12px 28px #100a0780}
.content-section:has([data-hub-events]) .hub-chip{background:#3b2b20;color:#e5bd8d;border-color:#8a6341}
.content-section:has([data-hub-events]) .hub-countdown{color:#e2ab70}
.content-section:has([data-hub-events]) .hub-event button,.content-section:has([data-hub-events]) .hub-event .button{background:linear-gradient(#a8643a,#75432a);border:1px solid #875335;color:#fff0dd}
@media(max-width:680px){.community-page{margin:18px auto 36px;padding:16px;border-radius:18px}.community-hero{padding:24px 20px}}

/* Gifts also appear in the shop; keep their controls in the public palette. */
.hub-gift-controls{background:linear-gradient(135deg,#35261c,#241b16)!important;color:#ead9c7!important;border-color:#73543a!important}
.hub-gift-controls label{color:#d7b18a}
.hub-gift-controls input,.hub-gift-controls select{background:#1e1814!important;color:#f0e1d0!important;border-color:#73543a!important}
.hub-gift-controls button{background:linear-gradient(#a8643a,#75432a)!important;color:#fff0dd!important;border-color:#875335!important}
/* Moderation remains part of the charcoal/cyan administration interface. */
.gallery-mod-card input,.gallery-mod-card textarea{background:#11161c;color:#e4edf3;border-color:#495967}
.submission-card .danger-button{display:block;margin:.9rem 0 0 auto}
@media(max-width:560px){.submission-card .danger-button{width:100%;margin-left:0}}

.content-section:has([data-hub-events]) .hub-puzzle-answer{background:#fff8eb;color:#3b2b21;padding:12px;border:1px solid #d6bc94;border-radius:12px}.content-section:has([data-hub-events]) .hub-puzzle-answer textarea{background:#fffaf1;color:#3b2b21;border:1px solid #cbb08d;border-radius:8px;padding:10px}.content-section:has([data-hub-events]) .hub-event-reward{font-weight:700;color:#80502f}
.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}.shop-rank-preview{padding:1rem;border:1px solid #62462f;border-radius:10px;background:#21160f;font-size:1.15rem;font-weight:700;text-align:center}
.hub-event-media-frame{position:relative;min-width:0;margin:.25rem 0 0}
.hub-event-media-frame .hub-event-media{width:100%;max-width:100%;box-sizing:border-box;margin:.25rem 0;border:1px solid #d6aa8050;border-radius:13px;box-shadow:0 8px 18px #10090570}
.content-section:has([data-hub-events]){position:relative;isolation:isolate;overflow:hidden;border:1px solid #735238;border-radius:24px;background:radial-gradient(ellipse at 12% 0,#49301f 0,transparent 42%),linear-gradient(145deg,#241912,#17120f 76%);box-shadow:0 24px 64px #1009059c}
.content-section:has([data-hub-events])>h2{margin:0;color:#f0cb92;font-size:clamp(1.8rem,4vw,2.8rem);letter-spacing:.02em}
.content-section:has([data-hub-events])>p{color:#c9ad8f}
.content-section:has([data-hub-events]) [data-hub-events]{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:1rem}
.hub-event-board-head{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.35rem 1rem;margin:.5rem 0 .4rem;padding:clamp(1.25rem,3vw,2rem);overflow:hidden;border:1px solid #a97543;border-radius:20px;background:radial-gradient(ellipse at 88% 15%,#c18b4d62,transparent 42%),linear-gradient(115deg,#50301d,#2d2017 68%,#392418);box-shadow:inset 0 1px #f3d49a35,0 12px 32px #09060460}
.hub-event-eyebrow{grid-column:1/-1;color:#e4bd7f;font-size:.72rem;font-weight:800;letter-spacing:.18em}
.hub-event-board-title{grid-column:1;color:#fff0d5!important;font-family:Georgia,serif!important;font-size:clamp(1.4rem,3vw,2rem);line-height:1.15;margin:.1rem 0}
.hub-event-board-copy{grid-column:1;color:#ddc7a7!important;max-width:55ch;margin:0}
.hub-event-tally{grid-column:2;grid-row:2 / span 2;align-self:center;padding:.65rem .9rem;border:1px solid #ddb36f9e;border-radius:999px;background:#1b130dbb;color:#f1d49d;font-size:.86rem;font-weight:750;white-space:nowrap}
.content-section:has([data-hub-events]) .hub-event{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.7fr);grid-template-areas:'top top' 'title media' 'summary media' 'date media' 'status media' 'reward media' 'count media' 'calendar media' 'action media';align-content:start;gap:.4rem 1.3rem;padding:clamp(1rem,2.6vw,1.65rem);overflow:hidden;border:1px solid #654831;border-radius:18px;background:linear-gradient(125deg,#302117,#211914 72%);box-shadow:inset 0 1px #f1d5ac12,0 9px 24px #0b070550;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.content-section:has([data-hub-events]) .hub-event:hover{transform:translateY(-2px);border-color:#bd8953;box-shadow:0 16px 32px #0b070580}
.content-section:has([data-hub-events]) .hub-event.is-featured{border-color:#b17a46;background:radial-gradient(ellipse at 100% 0,#87582a36,transparent 45%),linear-gradient(125deg,#392618,#211914 72%)}
.content-section:has([data-hub-events]) .hub-event-top{grid-area:top;display:flex;gap:.45rem;flex-wrap:wrap}
.content-section:has([data-hub-events]) .hub-event>h3{grid-area:title;margin:.35rem 0 0;color:#f1d39f;font-family:Georgia,serif;font-size:clamp(1.35rem,2.6vw,1.9rem);line-height:1.16}
.content-section:has([data-hub-events]) .hub-event-summary{grid-area:summary;margin:.1rem 0;color:#d2bda2;line-height:1.6}
.content-section:has([data-hub-events]) .hub-event-date{grid-area:date;align-self:end;margin:.3rem 0;color:#e5c58f;font-size:.92rem;font-weight:650}
.content-section:has([data-hub-events]) .hub-event-media-frame{grid-area:media;align-self:stretch;min-height:170px;margin:0;overflow:hidden;border:1px solid #a7794e80;border-radius:14px;background:linear-gradient(135deg,#4a3020,#1e1712);box-shadow:0 10px 24px #0b070570}
.content-section:has([data-hub-events]) .hub-event-media-frame.is-thumb .hub-event-media{display:block;width:100%;height:100%;min-height:190px;max-height:300px;margin:0;border:0;border-radius:0;object-fit:cover;box-shadow:none}
.content-section:has([data-hub-events]) .hub-event-media-frame.is-thumb .hub-event-media{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none;object-fit:cover}
.content-section:has([data-hub-events]) .hub-event-media-frame::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#170e09a8,transparent 55%)}
.content-section:has([data-hub-events]) .hub-event-expand{z-index:1;right:.7rem;bottom:.7rem;border-color:#edc27c;background:#24160dd9;color:#ffedc8}
.content-section:has([data-hub-events]) .hub-slots,.content-section:has([data-hub-events]) .hub-personal-status,.content-section:has([data-hub-events]) .hub-muted{grid-column:1;margin:.15rem 0;color:#d4c1a8}
.content-section:has([data-hub-events]) .hub-event-reward{grid-area:reward;display:flex;align-items:center;gap:.5rem;margin:.2rem 0;padding:.65rem .8rem;border:1px solid #99703f;border-radius:11px;background:linear-gradient(100deg,#55391d,#372719);color:#f4d38f;font-size:.95rem}
.content-section:has([data-hub-events]) .hub-countdown{grid-area:count;margin:.15rem 0;color:#edbb72;font-weight:750}
.content-section:has([data-hub-events]) .hub-calendar-link{grid-area:calendar;justify-self:start;color:#e6bd82}
.content-section:has([data-hub-events]) .hub-event-detail{grid-area:action;justify-self:start;margin:.25rem 0 .1rem;padding:.68rem 1.15rem;border:1px solid #c19159;border-radius:11px;background:linear-gradient(145deg,#b77743,#804527);color:#fff3df;font-weight:800;box-shadow:0 6px 16px #10090566}
.content-section:has([data-hub-events]) .hub-event-detail:hover{filter:brightness(1.12);transform:translateY(-1px)}
.account-linked-player{display:inline-flex;align-items:center;margin:.2rem 0 .8rem;padding:.45rem .75rem;border:1px solid #9a704c;border-radius:999px;background:#302218;color:#edcf9e;font-weight:700}
@media(max-width:700px){.content-section:has([data-hub-events]) .hub-event{grid-template-columns:minmax(0,1fr);grid-template-areas:'top' 'title' 'media' 'summary' 'date' 'status' 'reward' 'count' 'calendar' 'action'}.content-section:has([data-hub-events]) .hub-event-media-frame{min-height:160px}.content-section:has([data-hub-events]) .hub-event-media-frame.is-thumb .hub-event-media{min-height:160px;max-height:240px}.hub-event-board-head{grid-template-columns:1fr}.hub-event-tally{grid-column:1;grid-row:auto;justify-self:start;margin-top:.45rem}}
@media(prefers-reduced-motion:reduce){.content-section:has([data-hub-events]) .hub-event,.content-section:has([data-hub-events]) .hub-event-detail{transition:none}}
.hub-event-media-frame.is-thumb .hub-event-media{height:clamp(160px,24vw,240px);object-fit:cover}
.hub-event-expand{position:absolute;right:.6rem;bottom:.8rem;min-height:2.35rem;padding:.45rem .75rem;border:1px solid #e1b583a8;border-radius:999px;background:#21150feF;color:#ffe3c4;font-weight:700;box-shadow:0 4px 14px #0009;cursor:zoom-in}
.hub-event-expand:hover{background:#52331e;color:#fff0da}
@media(max-width:600px){.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)}.hub-event-media-frame.is-thumb .hub-event-media{height:clamp(170px,58vw,250px)}.hub-event-expand{right:.45rem;bottom:.65rem}}

/* Community finish: events feel like invitations and gallery works keep their own scale. */
.hub-event-top .hub-event-type{padding:.38rem .7rem;border-radius:8px;background:#4a301e;color:#f6d39a;border-color:#a87746;font-size:.74rem;letter-spacing:.035em;text-transform:uppercase}.hub-event[data-event-type="puzzle"] .hub-event-type{background:#433122;color:#e7c18b;border-color:#8e7047}.hub-event-date{display:grid;gap:.18rem;font-variant-numeric:tabular-nums}.hub-event-reward{font-variant-numeric:tabular-nums}.hub-event.is-featured .hub-event-type{box-shadow:0 0 0 2px #d19c5930}.hub-event-detail,.gallery-submit-cta,.community-page button{min-height:44px}
.hub-profile-heading{justify-content:flex-start;gap:1rem;padding-bottom:.9rem;border-bottom:1px solid #76583c}.hub-profile-identity{display:flex;align-items:center;gap:.8rem;min-width:0}.hub-profile-avatar{display:grid;place-items:center;width:58px;height:58px;flex:none;overflow:hidden;border:2px solid #ad7443;border-radius:14px;background:linear-gradient(145deg,#604329,#2b1d14);color:#ffe4b8;font-size:1.3rem;font-weight:800}.hub-profile-avatar img{display:block;width:100%;height:100%;image-rendering:pixelated;object-fit:cover}.hub-profile-name{display:grid;gap:.1rem;min-width:0}.hub-profile-name strong{font-size:1.18rem;overflow-wrap:anywhere}.hub-profile-name span{color:#bda990;font-size:.8rem;font-weight:650}.hub-profile-heading>.hub-chip{margin-left:auto;padding:.5rem .8rem;border-color:#9f7448;background:linear-gradient(115deg,#49311f,#352419);color:#f1cd91;font-size:.95rem;font-variant-numeric:tabular-nums}.hub-profile-summary{display:flex;flex-wrap:wrap;gap:.45rem;margin:.8rem 0}.account-page .hub-profile-summary .hub-chip{padding:.35rem .65rem;font-size:.78rem}.account-page .hub-player{align-items:center;grid-template-columns:72px minmax(0,1fr);gap:1rem;margin:.7rem 0;padding:1rem}.account-page .hub-player h3{margin:.1rem 0 .45rem;color:#70452d;font-family:Georgia,serif}.account-page .hub-player progress{width:min(100%,460px);height:10px}.hub-challenge-card{position:relative;overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.hub-challenge-card:hover{transform:translateY(-2px);border-color:#a5794d;box-shadow:0 10px 24px #120a051c}.hub-challenge-card progress{width:100%;height:11px;border-radius:999px;overflow:hidden}.hub-challenge-card .hub-event-reward{width:fit-content;max-width:100%;border-radius:999px}
.gallery-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:18px;grid-auto-flow:dense;gap:1rem;margin:1.2rem 0 1.5rem}.gallery-card{grid-column:span 3;grid-row:span 19;margin:0;display:flex;flex-direction:column;border-radius:16px;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;animation:gallery-arrive .28s ease both}.gallery-card:hover{transform:translateY(-3px);border-color:#a5774d;box-shadow:0 14px 30px #09060480}.gallery-size-1{grid-column:span 4;grid-row:span 23}.gallery-size-2{grid-column:span 3;grid-row:span 17}.gallery-size-3{grid-column:span 5;grid-row:span 22}.gallery-size-4{grid-column:span 4;grid-row:span 19}.gallery-frame{flex:1;min-height:0;aspect-ratio:4/3;background:linear-gradient(145deg,#45301f,#1e1712)!important}.gallery-size-1 .gallery-frame{aspect-ratio:3/4}.gallery-size-2 .gallery-frame{aspect-ratio:16/10}.gallery-size-3 .gallery-frame{aspect-ratio:16/9}.gallery-size-4 .gallery-frame{aspect-ratio:1/1}.gallery-frame img,.gallery-frame video{width:100%;height:100%;max-height:none;object-fit:cover;transition:transform .35s ease}.gallery-frame:hover img,.gallery-frame:hover video{transform:scale(1.035)}.gallery-caption{display:grid;gap:.35rem;padding:.8rem .9rem 1rem}.gallery-caption h2{margin:0;font-size:1.06rem;line-height:1.3}.gallery-caption p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0;font-size:.9rem;line-height:1.5}.gallery-caption small{margin-top:.12rem}.gallery-kind{justify-self:start;padding:.16rem .45rem;border:1px solid #806142;border-radius:999px;background:#3d2a1c;color:#e8c18b;font-size:.68rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.gallery-kind-video{border-color:#8a6945;background:#4b311f}.gallery-empty{grid-column:1/-1;padding:2rem;border:1px dashed #765a3e;border-radius:14px;background:#2b2019;color:#d7c2a6;text-align:center}.gallery-lightbox{width:min(96vw,1280px);height:min(94dvh,940px);max-width:none;max-height:none;padding:.6rem;display:flex;flex-direction:column;overflow:hidden}.gallery-lightbox[open]{animation:viewer-arrive .18s ease both}.gallery-lightbox>form{flex:none}.gallery-lightbox [data-gallery-dialog-content]{display:flex;flex:1;min-height:0;flex-direction:column;gap:.45rem}.gallery-lightbox [data-gallery-dialog-content]>img,.gallery-lightbox [data-gallery-dialog-content]>video{flex:1;min-height:0;width:100%;height:100%;max-height:none;object-fit:contain}.gallery-viewer-caption{display:grid;grid-template-columns:1fr auto;gap:.2rem .8rem;align-items:baseline;padding:.2rem .6rem}.gallery-viewer-caption h2{grid-column:1;margin:.1rem 0;color:#e2b37e;font-family:Georgia,serif}.gallery-viewer-caption p{grid-column:1;margin:0;color:#cdb79e}.gallery-viewer-caption small{grid-column:1;color:#bda990}.gallery-viewer-count{grid-column:2;grid-row:1/4;color:#d2ab75;font-size:.8rem;font-weight:750;white-space:nowrap}.gallery-viewer-controls{display:flex;justify-content:space-between;gap:.7rem;padding:.2rem .6rem}.gallery-viewer-controls button{min-width:7.2rem}.gallery-viewer-controls button:disabled{opacity:.4;cursor:default}
.gallery-lightbox:focus-visible,.community-page button:focus-visible,.gallery-frame:focus-visible{outline:3px solid #d7ac6b;outline-offset:3px}.community-page [aria-busy="true"]{cursor:progress}.gallery-card:hover .gallery-caption h2{color:#efc58d}
.gallery-lightbox:not([open]){display:none}
.hub-challenge-card .hub-chip.is-success{border-color:#568052;background:#e1f0d8;color:#31542e}
@keyframes gallery-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes viewer-arrive{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:scale(1)}}
@media(max-width:900px){.gallery-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.gallery-card{grid-column:span 4}.gallery-size-1,.gallery-size-4{grid-column:span 4}.gallery-size-3{grid-column:span 8}}
@media(max-width:600px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:14px;gap:.7rem}.gallery-card,.gallery-size-1,.gallery-size-2,.gallery-size-3,.gallery-size-4{grid-column:span 2;grid-row:span 19}.gallery-size-1 .gallery-frame,.gallery-size-4 .gallery-frame{aspect-ratio:16/10}.gallery-size-3 .gallery-frame{aspect-ratio:4/3}.gallery-viewer-caption{grid-template-columns:1fr}.gallery-viewer-count{grid-column:1;grid-row:auto}.gallery-lightbox{width:calc(100vw - .6rem);height:calc(100dvh - .6rem);padding:.35rem}.gallery-viewer-controls button{flex:1}}
@media(prefers-reduced-motion:reduce){.gallery-card,.gallery-lightbox[open],.hub-challenge-card{animation:none;transition:none}.gallery-card:hover,.hub-challenge-card:hover{transform:none}.gallery-frame img,.gallery-frame video{transition:none}.gallery-frame:hover img,.gallery-frame:hover video{transform:none}}
.account-page .hub-challenge-card progress{appearance:none;-webkit-appearance:none;background:#3b3027;border:1px solid #74573e;border-radius:999px;overflow:hidden}.account-page .hub-challenge-card progress::-webkit-progress-bar{background:#3b3027;border-radius:999px}.account-page .hub-challenge-card progress::-webkit-progress-value{background:linear-gradient(90deg,#a85f39,#e2ae68);border-radius:999px}.account-page .hub-challenge-card progress::-moz-progress-bar{background:linear-gradient(90deg,#a85f39,#e2ae68);border-radius:999px}
