:root{color-scheme:dark;--bg:#0c1328;--surface:#17213a;--surface2:#212d49;--text:#f0f4ff;--muted:#adbad7;--line:#384364;--a:#b6a0ff;--purple:#8858ee;--teal:#38d0c2}*{box-sizing:border-box}body{background:radial-gradient(circle at 8% 0%,#241b46,transparent 32%),var(--bg);color:var(--text);margin:0;font:15px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif}a{color:var(--a);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3{line-height:1.22}h1{font-size:clamp(1.6rem,4vw,2.6rem)}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:linear-gradient(110deg,#7750dd,#a353d9);border:0;color:#fff;padding:10px 17px;border-radius:10px;cursor:pointer;font-weight:650;text-decoration:none}button:hover,.button:hover{filter:brightness(1.12);text-decoration:none}.light,.secondary{background:var(--surface2);color:var(--text)}.danger{background:#8e2946}.small{padding:5px 9px;font-size:12px}.linkbutton{background:none;padding:0;color:var(--a);font-weight:550}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#111831e8;border-bottom:1px solid var(--line);padding:15px max(20px,calc((100vw - 1240px)/2));position:sticky;top:0;z-index:10;flex-wrap:wrap;backdrop-filter:blur(10px)}.logo{font-size:1.35rem;font-weight:900;color:#fff;white-space:nowrap}.topbar nav{display:flex;align-items:center;gap:15px;flex-wrap:wrap;font-size:.87rem}.container{max-width:1240px;padding:26px 20px 70px;margin:auto;min-height:70vh}.hero{border:1px solid #5a4591;background:linear-gradient(110deg,#33215d,#193f5d);padding:28px;border-radius:20px;margin:0 0 26px}.hero h1{margin:0 0 12px}.hero h1 span{color:#65f4de}.hero p{color:#e1e1fb}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}.toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:18px}.tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.tabs a{background:var(--surface);padding:9px 12px;border-radius:10px;border:1px solid var(--line)}.tabs .active{background:#614ab4;color:#fff}.feed{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:20px;min-width:0}.post-card{display:flex;flex-direction:column;gap:11px}.post-card h3{margin:0;font-size:1.08rem;overflow-wrap:anywhere}.post-card h3 a{color:var(--text)}.post-card .actions{margin-top:auto;font-size:.82rem;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;gap:8px}.by{display:flex;gap:10px;align-items:center}.by>div{min-width:0;flex:1}.by small,.profile small,.statgrid small{display:block;color:var(--muted);font-size:.76rem}.avatar{border-radius:50%;flex:none;object-fit:cover;vertical-align:middle}.fallback{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#9458dc,#22b5c8);color:white;font-weight:800}.pill{padding:4px 9px;background:#4b3775;color:#e4d6ff;font-size:.75rem;border-radius:20px;white-space:nowrap}.meta,small{color:var(--muted)}.post-image{width:100%;max-height:190px;border-radius:10px;object-fit:cover}.detail{max-width:800px;margin:auto}.detail-image{max-width:100%;max-height:450px;object-fit:contain;border-radius:12px}.stack{display:flex;flex-direction:column;gap:14px}.stack label{display:flex;flex-direction:column;gap:5px}.stack label:has([type=checkbox]){display:block}input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{display:block;background:#0e1730;border:1px solid #485472;border-radius:9px;color:#fff;width:100%;padding:11px;min-width:0}input[type=file]{max-width:100%}textarea{resize:vertical}.auth,.create-form,.install{max-width:630px;margin:24px auto}.install{padding:0 20px}.alert{border:1px solid #ab8a36;background:#3d3520;border-radius:10px;padding:12px 18px;margin:0 0 18px}.info{background:#263553;border-radius:10px;padding:12px}.option-list{display:grid;gap:10px}.choice{padding:13px;border:1px solid #4d5b80;border-radius:12px;display:flex;align-items:center;gap:12px;cursor:pointer}.choice:hover{border-color:#a993ff}.choice-image{height:95px;max-width:150px;object-fit:contain}.results{margin:20px 0;padding:18px;background:#111b35;border:1px solid #4e4d81;border-radius:14px}.result{margin:13px 0}.result-head{display:flex;justify-content:space-between;gap:8px}.bar{height:12px;border-radius:20px;background:#38405b;overflow:hidden;margin-top:7px}.bar span{display:block;height:100%;background:linear-gradient(90deg,#8658ed,#36d6c5);transition:width 1.2s}.slot{font-size:1.7rem;text-align:center;background:#2c2255;border:2px solid #bdb0ef;border-radius:14px;padding:18px;margin:14px 0}.slot span{display:inline-block;padding:8px 20px;background:white;color:#252041;border-radius:8px;min-width:130px;font-weight:800}.slot.spinning span{animation:reel .15s infinite alternate}@keyframes reel{0%{transform:translateY(-5px);filter:blur(2px)}100%{transform:translateY(5px);filter:blur(1px)}}.comment{display:flex;align-items:flex-start;gap:9px;padding:13px 0;border-bottom:1px solid var(--line)}.comment>span{flex:1}.comment p{margin:4px 0}.inline{display:inline-flex;align-items:center;gap:7px}.inline select{width:auto;padding:5px}.profile .by{align-items:flex-start}.profile h1,.profile p{margin:3px 0}.statgrid{display:flex;gap:20px;flex-wrap:wrap;margin:20px 0}.statgrid>div{background:var(--surface2);padding:10px 22px;border-radius:12px}.statgrid strong{font-size:1.4rem;display:block}.question{margin:15px 0}.question blockquote{background:var(--surface2);margin:12px 0;padding:14px;border-left:4px solid #9a76ef;border-radius:5px}.single{max-width:620px;margin:auto}.contact{display:flex;align-items:center;gap:12px;margin-bottom:10px;color:var(--text)}.contact small{margin-left:auto}.bubbles{min-height:230px;display:flex;flex-direction:column;gap:12px;max-height:60vh;overflow:auto;padding:15px 3px}.bubble{padding:13px;background:#32405e;max-width:85%;align-self:flex-start;border-radius:14px;overflow-wrap:anywhere}.bubble.mine{align-self:flex-end;background:#563d8d}.bubble small{display:block;font-size:10px;margin-top:5px}.rank{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:10px 0}.rank a{flex:1}.category-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid var(--line)}.category-row strong,.category-row a{flex:1}footer{text-align:center;border-top:1px solid var(--line);color:var(--muted);padding:30px} @media(max-width:950px){.feed{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.feed{grid-template-columns:1fr}.topbar{position:static}.container{padding:18px 12px 45px}.hero{padding:19px}.panel{padding:15px}.topbar nav{gap:11px}}

/* 0.1.1 — Recent poll creators sidebar (five avatar columns on desktop) */
@media (min-width: 1200px){.container{max-width:1530px}.topbar{padding-left:max(20px,calc((100vw - 1490px)/2));padding-right:max(20px,calc((100vw - 1490px)/2))}}
.home-columns{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}
.home-columns>.feed{min-width:0}
.recent-creators{position:sticky;top:100px;padding:18px 12px}
.recent-creators h2{font-size:1.04rem;margin:0 6px 4px}
.recent-creators-intro{color:var(--muted);font-size:.78rem;margin:0 6px 16px}
.creator-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));column-gap:4px;row-gap:16px}
.creator-tile{min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--text);text-decoration:none;text-align:center;padding:3px 0;border-radius:9px}
.creator-tile:hover,.creator-tile:focus-visible{background:var(--surface2);text-decoration:none;outline-offset:2px}
.creator-tile .avatar{width:44px;height:44px;max-width:100%;aspect-ratio:1/1}
.creator-name{font-size:.67rem;font-weight:650;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.creator-points{font-size:.61rem;color:var(--muted);white-space:nowrap;letter-spacing:-.02em}
.recent-creators-empty{font-size:.83rem;color:var(--muted);margin:10px 6px}
@media(max-width:1199px){.home-columns{grid-template-columns:1fr}.recent-creators{position:static}.creator-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.creator-tile .avatar{width:48px;height:48px}}
@media(max-width:600px){.creator-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.creator-tile .avatar{width:40px;height:40px}.creator-name{font-size:.65rem}.creator-points{font-size:.6rem}}

/* AskPolls 0.1.2: bright social theme and interactive This or That tiles */
:root{color-scheme:light;--bg:#f9f9fc;--surface:#ffffff;--surface2:#f3f0fa;--text:#242338;--muted:#68677c;--line:#e7e2ef;--a:#6935b8;--purple:#7043b8;--teal:#178c91}
body{background:var(--bg);color:var(--text)}
a{color:var(--a)}
.topbar{background:rgba(255,255,255,.95);box-shadow:0 2px 16px #3321480c}
.logo{color:#5a3695}
.panel{box-shadow:0 4px 24px #3321480a}
.hero{background:linear-gradient(120deg,#f4eeff,#eef9fb);border-color:#e3d6f9}
.hero p{color:#5f5a75}.hero h1 span{color:#6843a7}
.light,.secondary{background:#eee9f8;color:#553282}
.tabs a{background:#fff;color:#5a4480}.tabs .active{background:#6e43af;color:white}
.pill{background:#f1eafb;color:#6c42a9}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{background:#fff;border-color:#dcd4e9;color:#272137}
input::placeholder,textarea::placeholder{color:#918a9f}
.choice{border-color:#e1dcea}.choice:hover{border-color:#7c55c4}
.results{background:#f8f5fd;border-color:#e6dafa}.bar{background:#e6dff2}
.slot{background:linear-gradient(135deg,#2a184f,#533082);color:#fff;border-color:#d8b567;box-shadow:inset 0 0 0 4px #ffffff16,0 8px 24px #47236931}
.info{background:#f0eafb}.alert{background:#fff9e9;border-color:#efce72;color:#644b20}
.statgrid>div,.question blockquote,.bubble{background:#f1edf9}.bubble.mine{background:#e2d4ff}
.creator-tile:hover,.creator-tile:focus-visible{background:#f5f0fc}
.post-card{overflow:hidden}
.create-heading{text-align:center;margin:14px auto 20px}.create-heading h1{font-size:clamp(2.2rem,5vw,3.4rem);margin:0 0 7px;font-weight:800;color:#151322}.create-heading p{color:var(--muted);margin:0}
.create-tabs{justify-content:center;margin-bottom:22px}
.create-form{max-width:820px;margin:0 auto;padding:clamp(18px,3vw,34px)}
.this-that-form{max-width:970px}
.this-that-form>label:first-of-type{font-size:1.12rem;font-weight:700}
.choices-heading{text-align:center;margin:8px 0 0}
.helper-text{text-align:center;color:var(--muted);font-size:.88rem;max-width:650px;margin:0 auto 6px}
.this-that-editor-grid,.this-that-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2vw,28px)}
.this-that-editor{display:flex;flex-direction:column;gap:10px;min-width:0}
.this-that-choice-title{font-weight:750;text-align:center}
.this-that-choice-input{text-align:center;font-weight:600}
.this-that-upload-area{display:flex;flex-direction:column;align-items:stretch;gap:7px}
.this-that-upload-tile{display:flex;flex-direction:column;position:relative;align-items:center;justify-content:center;cursor:pointer;aspect-ratio:4/3;min-height:170px;border-radius:14px;overflow:hidden;transition:transform .15s,box-shadow .15s;border:2px dashed #ffffff9c;color:#fff}
.this-that-upload-tile:hover,.this-that-upload-tile:focus-visible{transform:translateY(-2px);box-shadow:0 7px 20px #3c275035;outline:3px solid #b99bec;outline-offset:2px}
.option-color-0{background:#7149bc}.option-color-1{background:#118eaa}
.upload-prompt{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;gap:8px;text-align:center;color:white;min-width:0}
.upload-prompt small{color:#fff;opacity:.9;font-size:.8rem}.upload-icon{font-size:2.6rem;line-height:1;opacity:.88}.tile-fallback-title{font-weight:800;font-size:clamp(1.1rem,2.3vw,1.85rem);overflow-wrap:anywhere}
.this-that-upload-tile.has-preview{background:#fff;border:1px solid #d8d1e4}.this-that-upload-tile.has-preview .upload-prompt{display:none}
.this-that-preview{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.this-that-preview[hidden]{display:none}
.upload-remove{align-self:center}.upload-remove[hidden]{display:none}
.visually-hidden-file{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);opacity:0}
.this-that-tile{display:flex;flex-direction:column;position:relative;min-width:0;overflow:hidden;border-radius:13px;text-align:center;text-decoration:none;transition:transform .15s,box-shadow .15s;aspect-ratio:4/4;justify-content:center}
.this-that-tile.has-image{aspect-ratio:auto;justify-content:flex-start;background:#f8f7fb;border:1px solid #e8e4ee}
.this-that-tile.has-image img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.this-that-tile:not(.choice-vote):is(a):hover{transform:translateY(-2px);box-shadow:0 8px 22px #44276425}
.this-that-label{background:#fff;color:#262139;display:block;font-weight:750;padding:10px 8px;overflow-wrap:anywhere}
.this-that-color-label{color:#fff;font-weight:800;font-size:clamp(1rem,2.2vw,1.8rem);padding:16px;overflow-wrap:anywhere}
.this-that-feed{gap:8px}.this-that-feed .this-that-label{font-size:.77rem;padding:7px 4px}.this-that-feed .this-that-color-label{font-size:1rem}.this-that-feed .this-that-tile{min-height:90px}
.this-that-vote-grid{margin:10px 0 20px}.this-that-vote-grid .this-that-tile{cursor:pointer;border:3px solid transparent}.this-that-vote-grid .this-that-tile.has-image{border-color:#e8e4ee}
.this-that-vote-grid .this-that-tile:has(input:checked){outline:4px solid #d0a946;outline-offset:2px;box-shadow:0 0 0 7px #e3c55b26}
.choice-vote input{position:absolute;opacity:0;top:12px;left:12px}.choice-vote:focus-within{outline:3px solid #8a6cbd;outline-offset:3px}
.choice-check{position:absolute;top:8px;right:8px;z-index:2;display:none;color:#fff;background:#6d43b2;padding:3px 9px;border-radius:100px}
.choice-vote:has(input:checked) .choice-check{display:block}
.publish-button{padding:13px 24px;font-size:1.05rem}
@media(max-width:600px){.this-that-editor-grid,.this-that-grid{grid-template-columns:1fr}.this-that-feed{grid-template-columns:repeat(2,minmax(0,1fr))}.this-that-upload-tile{min-height:200px}.create-form{padding:18px}.create-heading h1{font-size:2.1rem}.this-that-vote-grid .this-that-tile{min-height:220px}.this-that-feed .this-that-tile{min-height:110px}}
@media(prefers-reduced-motion:reduce){.this-that-tile,.this-that-upload-tile{transition:none}}
/* Keep paired choice panels symmetrical even when only one has an image. */
.this-that-grid{align-items:stretch}
.this-that-tile.has-image{aspect-ratio:1/1}
.this-that-tile.has-image img{flex:1;min-height:0;height:0;aspect-ratio:auto;object-fit:cover}
