/* Shared public community. All selectors are scoped to avoid changing Studio. */
.fan-section,.fan-hero,.fan-dialog{--fan-line:rgba(231,193,255,.15);--fan-muted:#b9a9c9;color:#ffeede;font-family:Inter,system-ui,sans-serif}
.fan-section *,.fan-dialog *{box-sizing:border-box}
.fan-section [hidden],.fan-dialog [hidden]{display:none!important}
.fan-section button,.fan-dialog button,.fan-hero button,.fan-section select{font:inherit;cursor:pointer}
.fan-section button:focus-visible,.fan-dialog :focus-visible,.fan-hero :focus-visible,.fan-section canvas:focus-visible,.fan-section select:focus-visible{outline:3px solid #25e0d8;outline-offset:4px}
.fan-hero{display:flex;align-items:center;justify-content:center;gap:18px;margin:22px auto 0;flex-wrap:wrap;position:relative;z-index:2}
.fan-reactions{display:flex;gap:7px}
.fan-reactions button{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.19);background:#230d40b8;font-size:22px;transition:transform .18s,background .18s;line-height:1}
.fan-reactions button:hover{transform:translateY(-5px) scale(1.12);background:#ff2e8855}
.fan-reactions button:active{transform:scale(.88)}
.fan-hero-link{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:650;letter-spacing:.02em;color:#ffeede;text-decoration:none}
.fan-dot{width:7px;height:7px;background:#25e0d8;border-radius:50%;box-shadow:0 0 14px #25e0d8}
.fan-section{position:relative;z-index:2;max-width:1240px;margin:auto;padding:100px 32px 110px;scroll-margin-top:65px}
.fan-heading{max-width:750px;margin-bottom:34px}
.fan-eyebrow{font-size:10px!important;font-weight:700;letter-spacing:.2em;color:#25e0d8!important;margin:0 0 14px!important}
.fan-heading h2{font-family:Anton,Impact,sans-serif;font-weight:400;font-size:clamp(36px,5.4vw,66px);letter-spacing:.005em;line-height:1.08;margin:0 0 18px;max-width:720px}
.fan-heading>p:last-child{font-size:15px;line-height:1.8;color:var(--fan-muted);max-width:600px}
.fan-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;font-size:12px}
.fan-toolbar>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#fan-account-name{font-weight:650;max-width:180px;overflow-wrap:anywhere}
#fan-connection{color:var(--fan-muted);display:flex;align-items:center;gap:8px}
#fan-connection:before{content:'';width:7px;height:7px;border-radius:50%;background:#9c8aaa}
#fan-connection[data-live=true]:before{background:#25e0d8;box-shadow:0 0 12px #25e0d8}
.fan-button{border:1px solid var(--fan-line);background:#29113e;color:#ffeede;border-radius:8px;padding:11px 15px;font-size:12px!important;font-weight:650!important;line-height:1.4;transition:background .15s}
.fan-button:hover{background:#3c1a57}
.fan-primary{background:#ff2e88;color:#fff;border-color:#ff2e88;box-shadow:0 5px 26px #ff2e881f}
.fan-primary:hover{background:#e92278}
.fan-button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.fan-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}
.fan-board-card,.fan-room{background:linear-gradient(135deg,#211034f5,#130922f5);border:1px solid var(--fan-line);border-radius:16px;overflow:hidden}
.fan-card-head{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--fan-line)}
.fan-section h3{font-size:17px;letter-spacing:-.03em;margin:0 0 8px;font-weight:650}
.fan-card-head p{font-size:11px;line-height:1.5;color:var(--fan-muted);margin:0}
.fan-grid-icon{color:#ff5fa8;font-size:36px;line-height:1}
.fan-board-top{display:flex;gap:16px;align-items:center;padding:15px 24px;font-size:11px;color:var(--fan-muted)}
.fan-board-top>span{margin-right:auto}
.fan-board-top label{display:flex;gap:7px;align-items:center}
.fan-section select{background:#28123e;color:#fff;border:1px solid var(--fan-line);border-radius:5px;padding:5px}
.fan-text-button{color:#25e0d8;font-size:11px!important;border:0;background:none;padding:5px 0}
.fan-viewport{margin:0 24px;aspect-ratio:1;overflow:auto;background:#18181b;border:1px solid #543c66;border-radius:3px;overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-color:#6a3f85 #18111f}
.fan-surface{position:relative;width:100%;aspect-ratio:1;line-height:0}
#fan-canvas{display:block;width:100%;height:auto;image-rendering:pixelated;cursor:crosshair;touch-action:pan-x pan-y}
#fan-selection{position:absolute;width:1.5625%;height:1.5625%;box-shadow:0 0 0 1px #000,0 0 0 3px #fff;pointer-events:none;z-index:1}
.fan-empty{font-size:11px;line-height:1.6;color:var(--fan-muted);margin:12px 24px 0;text-align:center}
.fan-paint-tools{padding:22px 24px 12px}
.fan-palette-label{display:flex;justify-content:space-between;font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:var(--fan-muted);margin-bottom:12px}
#fan-color-name{color:#ffeede}
.fan-palette{display:grid;grid-template-columns:repeat(16,1fr);gap:6px}
.fan-palette button{background:var(--swatch);aspect-ratio:1;min-width:0;min-height:26px;border:2px solid transparent;border-radius:5px;box-shadow:inset 0 0 0 1px #ffffff18;position:relative}
.fan-palette button[aria-pressed=true]{outline:2px solid #fff;outline-offset:3px}
.fan-palette button[aria-pressed=true]:after{content:'✓';color:#fff;position:absolute;inset:0;display:grid;place-items:center;font-size:14px;text-shadow:0 1px 3px #000,0 0 2px #000}
.fan-place-row{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:22px;min-height:58px}
.fan-place-row>div{min-width:0}
#fan-coordinates{font-size:12px;font-weight:600}
#fan-author{display:block;font-size:10px;color:var(--fan-muted);line-height:1.6;margin-top:5px;overflow-wrap:anywhere}
#fan-place{flex-shrink:0;min-width:150px}
#fan-feedback{font-size:12px;line-height:1.5;color:#25e0d8;min-height:18px;margin:10px 0 0}
#fan-feedback[data-error=true],#fan-auth-message[data-error=true]{color:#ff99af}
.fan-sidebar{display:grid;gap:18px}
.fan-room{padding:24px}
.fan-room h3{display:flex;justify-content:space-between;align-items:center}
#fan-online-count{font-size:13px;background:#25e0d818;color:#25e0d8;border-radius:5px;padding:4px 8px}
.fan-presence-note{font-size:10px;line-height:1.7;color:var(--fan-muted);margin:0 0 22px}
.fan-people{display:flex;flex-wrap:wrap;gap:8px;max-height:210px;overflow:auto}
.fan-people>p,.fan-reaction-log>p{font-size:12px;color:var(--fan-muted);line-height:1.7;margin:0}
.fan-person{display:flex;align-items:center;gap:7px;font-size:11px;padding:5px 9px 5px 5px;border:1px solid var(--fan-line);border-radius:30px;max-width:100%;overflow-wrap:anywhere}
.fan-avatar{display:grid;place-items:center;flex-shrink:0;height:25px;width:25px;border-radius:50%;background:#ff2e882b;color:#ff93be;font-size:10px;font-weight:750}
.fan-room-line{height:1px;background:var(--fan-line);margin:24px 0}
.fan-room h4{font-size:12px;margin:0 0 16px;font-weight:600}
.fan-reaction-log{display:grid;gap:12px}
.fan-reaction-item{display:flex;align-items:center;gap:10px;font-size:12px;overflow-wrap:anywhere}
.fan-reaction-item>span:first-child{font-size:22px}
.fan-note{display:flex;gap:12px;padding:4px 10px;color:var(--fan-muted)}
.fan-note>span{font-size:26px;color:#ff5fa8}
.fan-note p{font-size:11px;line-height:1.9;margin:0}
#fan-floating{position:fixed;inset:0;pointer-events:none;z-index:40;overflow:hidden}
.fan-float{position:absolute;bottom:5%;left:var(--left);font-size:38px;animation:fan-rise 3.2s ease-out both;filter:drop-shadow(0 3px 8px #12022b)}
@keyframes fan-rise{0%{opacity:0;transform:translateY(0) rotate(-10deg) scale(.6)}15%{opacity:1}80%{opacity:.9}100%{opacity:0;transform:translateY(-65vh) translateX(50px) rotate(15deg) scale(1.3)}}
.fan-dialog{position:fixed;margin:auto;border:1px solid #734369;border-radius:18px;background:#1b0c2d;color:#ffeede;padding:32px;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 20px 100px #0009}
.fan-dialog::backdrop{background:#0c031fbd;backdrop-filter:blur(9px)}
.fan-dialog h2{font-size:25px;line-height:1.2;letter-spacing:-.04em;margin:0 0 14px}
.fan-dialog>p:not(.fan-eyebrow){color:var(--fan-muted);font-size:12px;line-height:1.8}
.fan-dialog-close{position:absolute;top:10px;right:15px;font-size:27px!important;color:#d6bbeb;background:none;border:0}
.fan-auth-tabs{display:flex;gap:5px;margin:22px 0 18px;background:#0e061b;padding:4px;border-radius:8px}
.fan-auth-tabs button{border:0;background:none;color:var(--fan-muted);flex:1;border-radius:5px;padding:10px;font-size:12px}
.fan-auth-tabs button[aria-pressed=true]{background:#41204f;color:#fff}
.fan-dialog form{display:grid;gap:15px}
.fan-dialog label{display:grid;gap:7px;font-size:12px;color:#dbc9e9}
.fan-dialog input{width:100%;background:#10081e;border:1px solid #53335f;border-radius:7px;padding:11px 12px;color:#fff;font:inherit;font-size:14px}
.fan-dialog small{font-size:10px;color:var(--fan-muted);line-height:1.6}
.fan-dialog .fan-text-button{text-align:center;margin-top:12px;width:100%}
.fan-google{width:100%;margin-top:16px;background:#fff;color:#241035}
.fan-google:hover{background:#ded3e9}
.fan-auth-stack{display:grid;gap:12px;margin-top:22px}
.fan-auth-stack>p{font-size:13px;line-height:1.7;color:var(--fan-muted)}
#fan-auth-message{min-height:16px;font-size:12px;line-height:1.7;color:#25e0d8}
#fan-moderation{border-top:1px solid var(--fan-line);margin-top:15px;padding:15px 0;display:flex;flex-wrap:wrap;gap:8px;font-size:11px;align-items:center}
#fan-ban-panel summary{font-size:12px;cursor:pointer}
#fan-bans{font-size:12px;display:grid;gap:14px;margin-top:16px;overflow-wrap:anywhere}
#fan-bans>div{display:grid;gap:8px}
@media(min-width:901px){.fan-viewport{width:min(calc(100% - 48px),60svh);margin-inline:auto}}
@media(min-width:1000px){.fan-hero{margin-top:25px}.heroe:has(.fan-hero){min-height:max(850px,100svh)}}
@media(max-width:900px){.fan-layout{grid-template-columns:minmax(0,1fr) 240px;gap:16px}.fan-section{padding-inline:20px}.fan-room{padding:18px}.fan-card-head,.fan-paint-tools{padding-inline:18px}.fan-viewport{margin-inline:18px}.fan-palette{grid-template-columns:repeat(8,1fr);gap:8px}.fan-palette button{max-height:34px;aspect-ratio:auto}.fan-board-top{padding-inline:18px;gap:10px}}
@media(max-width:700px){.fan-layout{grid-template-columns:1fr}.fan-sidebar{grid-template-columns:1fr}.fan-heading{margin-bottom:26px}.fan-section{padding:70px 16px}.fan-toolbar{align-items:flex-start}.fan-toolbar>div{justify-content:flex-end}.fan-card-head{padding:18px 16px}.fan-viewport{margin-inline:12px}.fan-paint-tools{padding:18px 16px 12px}.fan-reactions button{width:38px;height:38px;font-size:21px}.fan-hero{gap:12px;margin-top:20px}.fan-hero-link{font-size:11px}.fan-heading h2{font-size:44px}.fan-place-row{gap:10px}#fan-place{min-width:125px}.fan-board-top{padding:12px}.fan-palette button{height:30px}.heroe:has(.fan-hero){padding-bottom:80px}.fan-dialog{padding:30px 24px}}
@media(prefers-reduced-motion:reduce){.fan-float{animation:none!important;display:none}.fan-reactions button{transition:none}}
