/* "My games" page (home.html); builds on app.css */
body.home { overflow: auto; height: auto; min-height: 100%; }
.home form { display: grid; gap: 12px; }
.home .join-card label { display: grid; gap: 4px; font-size: 13px; }
.home .join-card label.check { display: flex; }
.home a { color: var(--amber-2); }

.invite-banner { background: #2a2116; border: 1px solid #5a4325; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { background: none; border: 0; padding: 7px; color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button.active { background: var(--panel-2); color: var(--amber-2); }

.dash { max-width: 1100px; margin: 0 auto; padding: 18px 20px 60px; }
.dash-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dash-head .brand { font-size: 22px; }
.grow { flex: 1; min-width: 0; }
.dash-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }
.dash-title h1 { font: 600 26px/1 var(--display); margin: 0; }
.home .new-game { display: flex; gap: 8px; }
.new-game input { width: 200px; }
.empty { padding: 40px 0; text-align: center; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.game { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.game-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 8; background: radial-gradient(ellipse at 50% 40%, #2a2116 0%, var(--bg-2) 70%); overflow: hidden; }
.game-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.game-thumb:hover img { transform: scale(1.03); }
.flame.big { width: 22px; height: 22px; box-shadow: 0 0 30px 10px #e8a33d55; }
.live { position: absolute; left: 10px; bottom: 10px; background: #0c1f0f; border: 1px solid var(--green); color: var(--green); font-size: 11px; padding: 2px 8px; border-radius: 99px; }
.game-body { padding: 14px; display: grid; gap: 8px; flex: 1; align-content: start; }
.game-top { display: flex; align-items: center; gap: 8px; }
.game-top h2 { font: 600 18px/1.2 var(--display); margin: 0; flex: 1; overflow-wrap: anywhere; }
.game p { margin: 0; }
.home .badge { font-size: 11px; padding: 1px 8px; margin: 0; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line-2); }
.home .badge.gm { background: #3a2a12; color: var(--amber-2); border-color: #5a4325; }
.chars { display: flex; flex-wrap: wrap; gap: 6px; }
.char { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 2px 10px; font-size: 12px; }
.game-actions { display: flex; gap: 8px; margin-top: 4px; }
.game-actions .btn { text-decoration: none; color: inherit; }
.game-actions .btn.primary { color: #1a1205; }

.dlg { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 14px; padding: 0 20px 18px; width: min(560px, 94vw); box-shadow: 0 30px 80px #000a; }
.dlg.wide { width: min(760px, 96vw); }
.dlg::backdrop { background: #000a; }
.dlg-head { display: flex !important; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--panel); padding: 14px 0 6px; }
.dlg-head h2 { font: 600 20px var(--display); margin: 0; }
.dlg section { margin-top: 8px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rows li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; flex-wrap: wrap; }
.rows li.muted { background: none; border: 0; padding: 4px 0; }
.home form.inline, .inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.inline input:not([type=checkbox]) { flex: 1; min-width: 140px; }
.stack label { display: grid; gap: 4px; font-size: 13px; }
.stack p { margin: 0; }

@media (max-width: 600px) {
  .new-game { width: 100%; }
  .new-game input { flex: 1; width: auto; }
}
.next-game { margin: 6px 0 0; font-size: 13px; color: var(--amber, #e8a33d); }
.blurb { margin: 6px 0 0; color: #d9d4cc; }
.server-info p { margin: 6px 0; }
.server-info .row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.server-info code { font-size: 12px; }
.new-game select { max-width: 170px; }
.others-title { margin: 30px 0 4px; font-size: 18px; }
#others-section .game { opacity: .92; }

/* the dashboard, laid out like Roll20's: games on the left, you on the right */
.dash-cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; align-items: start; }
@media (max-width: 860px) { .dash-cols { grid-template-columns: 1fr; } .profile { order: -1; } }
.dash-title { justify-content: flex-start; }
.dash-title h1 { margin-right: 10px; }
.games { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.game-thumb { aspect-ratio: 16 / 10; }
.badge.corner { position: absolute; top: 8px; right: 8px; background: #000b; border: 1px solid #fff3; }
.badge.corner-left { position: absolute; top: 8px; left: 8px; background: #123a2a; color: #9fe0bf; border: 1px solid #2f6b50; }
.game-name { font: 600 18px/1.25 var(--display); margin: 0; color: var(--amber-2, #f3c26b); overflow-wrap: anywhere; }
.game .next { font-size: 14px; }
.game-actions { align-items: center; justify-content: space-between; flex-wrap: wrap; }
.game-actions .launch { color: var(--amber, #e8a33d); font-weight: 600; text-decoration: none; }
.game-actions .launch:hover { text-decoration: underline; }
.small-btn { padding: 3px 9px; font-size: 12px; }
.profile { display: grid; gap: 14px; position: sticky; top: 14px; }
.profile-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.profile-card h3 { margin: 0; font: 600 15px var(--display); }
.profile-top { display: flex; gap: 12px; align-items: center; }
.avatar { overflow: hidden; }
.avatar.photo { color: transparent; background-size: cover; background-position: center; }
.avatar-pick { cursor: pointer; position: relative; }
.avatar-pick { border: 0; padding: 0; overflow: visible; }
.avatar-pick:hover { outline: 2px solid var(--amber, #e8a33d); outline-offset: 2px; }
.photo-links { display: flex; gap: 10px; margin-top: 3px; font-size: 12px; }
.photo-links .linkish { cursor: pointer; }
.mini-avatar { width: 22px; height: 22px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font: 600 11px var(--sans); color: #1a1205; background: var(--amber, #e8a33d) center / cover; vertical-align: middle; margin-right: 6px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 600 24px var(--display); color: #1a1205; background: radial-gradient(circle at 40% 35%, var(--amber-2, #f3c26b), var(--amber, #e8a33d)); flex: none; }
.profile-stats { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.profile-stats dt { color: var(--muted); }
.profile-stats dd { margin: 0; font-weight: 600; text-align: right; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.recent li { display: flex; justify-content: space-between; gap: 10px; }
.recent li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack { display: grid; gap: 10px; }
.tunnel-box { border: 1px solid var(--amber, #e8a33d); border-radius: 8px; padding: 8px 12px; margin: 8px 0; }
.tunnel-box p { margin: 4px 0; }

/* ---------- pages: marketplace, library, characters, looking for group ---------- */
.dash-nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: 14px; }
.dash-nav a { color: var(--muted) !important; text-decoration: none; padding: 6px 11px; border-radius: 8px; font-weight: 500; position: relative; }
.dash-nav a:hover { color: var(--text) !important; background: var(--panel); }
.dash-nav a.active { color: var(--amber-2) !important; background: var(--panel-2); }
.dash-nav .dot { position: absolute; top: 5px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.page-intro { margin: -6px 0 16px; max-width: 760px; }
.dash-title input[type=search] { width: 220px; }
.dash-title label.btn { cursor: pointer; }
.badge.corner.pub { background: #10283a; color: #9cc8ee; border-color: #2f5370; }
.badge.corner-left.hot, .badge.hot { background: #3a2a12; color: var(--amber-2); border-color: #7a5a2c; }
.badge.corner-bottom { position: absolute; left: 8px; bottom: 8px; background: #000b; border: 1px solid #fff3; }
.module { cursor: pointer; }
.module .game-actions { justify-content: flex-start; }
.stars { letter-spacing: 1px; color: #4a4550; }
.stars i { font-style: normal; }
.stars i.on { color: var(--amber); }
.stars i.half { background: linear-gradient(90deg, var(--amber) 50%, #4a4550 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip { display: inline-block; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 2px 10px; font-size: 12px; margin: 0 4px 4px 0; }
.chip.pub { border-color: #2f5370; color: #9cc8ee; }
.chip.welcome { border-color: #2f6b50; color: #9fe0bf; }
.chip.full { border-color: #6b2f2f; color: #e09f9f; }
.mod-cover { aspect-ratio: 16 / 6; border-radius: 10px; background: radial-gradient(ellipse at 50% 40%, #2a2116 0%, var(--bg-2) 70%) center / cover; margin: 4px 0 12px; }
.mod-meta { margin-bottom: 6px; }
.mod-desc { margin: 10px 0; max-height: 300px; overflow: auto; }
.mod-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.mod-actions a.btn { text-decoration: none; color: inherit; }
.mod-review { display: grid; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.reviews { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.reviews li { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.reviews p { margin: 4px 0 0; white-space: pre-wrap; }
.note { background: #2a2116; border: 1px solid #5a4325; border-radius: 8px; padding: 8px 12px; font-size: 13px; }

.vault { display: grid; gap: 10px; }
.vault-card { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.vault-card h3 { font: 600 17px var(--display); text-transform: none; letter-spacing: 0; color: var(--text); margin: 0 0 2px; }
.vault-card p { margin: 0; }
.vault-pic { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 600 22px var(--display); color: var(--amber-2); background: var(--bg-2) center / cover; border: 1px solid var(--line-2); }

.lfg-list { display: grid; gap: 16px; }
.lfg-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lfg-pic { background: radial-gradient(ellipse at 50% 40%, #2a2116 0%, var(--bg-2) 70%) center / cover; min-height: 170px; }
.lfg-text { padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.lfg-text h3 { font: 600 21px/1.2 var(--display); color: var(--amber-2); text-transform: none; letter-spacing: 0; margin: 0; }
.lfg-blurb p { margin: 0 0 6px; color: #d9d4cc; }
.lfg-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lfg-foot a.btn { text-decoration: none; color: inherit; }
.lfg-ask { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.lfg-ask label { display: grid; gap: 4px; font-size: 13px; }
.lfg-public .page-intro { font-size: 15px; }
@media (max-width: 700px) { .lfg-card { grid-template-columns: 1fr; } .lfg-pic { min-height: 140px; } }
.lfg-fields.off { opacity: .5; }
.lfg-req-title { margin: 14px 0 6px; font-size: 14px; }
.stack label.check { display: flex; gap: 8px; align-items: center; }
.lfg-fields { display: grid; gap: 10px; }
.lfg-fields .inline { margin-top: 0; align-items: end; }
.lfg-fields .inline label { display: grid; gap: 4px; }

.dice-next { margin: 4px 0 10px; }

/* notifications */
.bell { position: relative; }
.notes-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red, #d9534f); color: #fff; font: 600 11px/18px var(--sans); text-align: center; }
.avatar .notes-count { top: -2px; right: -4px; }
.notes { display: grid; gap: 6px; padding-top: 6px; max-height: 70vh; overflow: auto; }
.notes h3 { margin: 10px 0 2px; font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.note-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.note-item.unread { border-color: var(--amber, #e8a33d); }
.note-item .ico { font-size: 18px; line-height: 1.2; flex: none; width: 22px; text-align: center; }
.note-item .body { flex: 1; min-width: 0; }
.note-item .body p { margin: 0; }
.note-item .when { font-size: 12px; color: var(--muted); }
.note-item .btn { flex: none; align-self: center; }
.notes .empty { padding: 20px 4px; text-align: center; }

/* your photo, top right, and its menu */
.me-menu-wrap { position: relative; }
.head-avatar { width: 38px; height: 38px; font-size: 17px; border: 0; padding: 0; cursor: pointer; position: relative; overflow: visible; }
.head-avatar:hover, .head-avatar[aria-expanded="true"] { outline: 2px solid var(--amber, #e8a33d); outline-offset: 2px; }
.me-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 220px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 18px 50px #000a; padding: 6px; display: grid; }
.me-menu.at-profile { right: auto; left: 0; }
.me-menu-who { display: grid; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.me-menu > button, .me-menu > a, .me-menu > label { all: unset; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--text); font: 14px var(--sans); }
.me-menu > button:hover, .me-menu > a:hover, .me-menu > label:hover, .me-menu > :focus-visible { background: var(--panel-2); }
.me-menu > [hidden] { display: none; }
.me-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.menu-count { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red, #d9534f); color: #fff; font: 600 11px/18px var(--sans); text-align: center; }
.profile-card { position: relative; }

/* the account page */
.account-page { max-width: 760px; }
.acct-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.acct-card h2 { font: 600 18px var(--display); margin: 0 0 10px; }
.acct-who { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.big-avatar { width: 84px; height: 84px; font-size: 36px; }
.acct-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .acct-two { grid-template-columns: 1fr; } }
.acct-systems { border: 0; padding: 0; margin: 0; }
.acct-systems legend { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
#acct-systems, .acct-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
#acct-systems label, .acct-checks label { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.danger-zone { border-color: #6a2a2a; }
.danger-zone .btn.danger { border-color: #8a3030; color: #ff9a90; background: #2a1414; }
.danger-zone .btn.danger:hover { background: #3a1818; }
#acct-delete { display: flex; gap: 8px; flex-wrap: wrap; }
#acct-delete input { flex: 1 1 220px; }
#acct-delete .btn { flex: 0 0 auto; }

/* profiles */
a.person-link { color: inherit; text-decoration: none; }
a.person-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.profile-page { max-width: 900px; }
.pp-head { display: flex; gap: 20px; align-items: center; margin: 8px 0 18px; flex-wrap: wrap; }
.pp-head .avatar { width: 112px; height: 112px; font-size: 48px; }
.pp-head h1 { font: 600 30px var(--display); margin: 0; }
.pp-title { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; padding: 2px 10px; border-radius: 99px; background: #2a2210; border: 1px solid #6a5420; color: var(--amber-2, #f3c26b); font-size: 13px; }
.pp-bio { margin: 8px 0 0; max-width: 620px; white-space: pre-wrap; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pp-chips span { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.pp-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pp-stat b { display: block; font: 600 24px var(--display); }
.pp-stat span { font-size: 12px; color: var(--muted); }
.pp-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.pp-card h2 { font: 600 18px var(--display); margin: 0 0 10px; display: flex; align-items: baseline; gap: 10px; }
.pp-card h2 .muted { font: 13px var(--sans); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ach { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); }
.ach .ico { font-size: 22px; width: 30px; text-align: center; flex: none; }
.ach b { display: block; font-size: 14px; }
.ach small { color: var(--muted); font-size: 12px; }
.ach.locked { opacity: .45; filter: grayscale(1); }
.dice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dice-chip { display: flex; gap: 6px; align-items: center; font-size: 13px; padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); }
.dice-chip i { width: 20px; height: 20px; border-radius: 6px; transform: rotate(45deg); background: linear-gradient(135deg, var(--a), var(--b)); border: 1px solid #0006; }
.dice-chip.locked { opacity: .35; }

/* the forum */
.forum-page { max-width: 900px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 4px 0 6px; }
.crumbs a { color: var(--muted); }
.fboards h2 { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 6px; }
.frow { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 6px; color: inherit; text-decoration: none; }
.frow:hover { border-color: var(--line-2); background: var(--panel-2); }
.frow .grow { min-width: 0; }
.frow b { display: block; font-size: 15px; }
.frow .muted { font-size: 12px; }
.frow .count { text-align: right; font-size: 12px; color: var(--muted); flex: none; min-width: 90px; }
.frow .tags { margin-right: 4px; }
.fnew { display: grid; gap: 8px; margin: 10px 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.fnew[hidden] { display: none; }
.fnew textarea, .freply textarea { min-height: 110px; }
.fpost { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 8px; }
.fpost.first { border-color: var(--line-2); }
.fpost .who { width: 120px; flex: none; text-align: center; font-size: 13px; }
.fpost .who .avatar { width: 56px; height: 56px; font-size: 24px; margin: 0 auto 6px; }
.fpost .who small { display: block; color: var(--amber-2, #f3c26b); font-size: 11px; margin-top: 2px; }
.fpost .body { flex: 1; min-width: 0; }
.fpost .meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.fpost .md { overflow-wrap: anywhere; }
.fpost .md p:first-child { margin-top: 0; }
.factions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.react { border: 1px solid var(--line-2); background: var(--panel-2); color: inherit; border-radius: 99px; padding: 2px 9px; font-size: 13px; cursor: pointer; }
.react.mine { border-color: var(--amber, #e8a33d); background: #2a2210; }
.react-pick { position: relative; }
.react-pick .opts { position: absolute; bottom: 120%; left: 0; display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 10px 30px #0008; z-index: 5; }
.react-pick .opts[hidden] { display: none; }
.react-pick .opts button { border: 0; background: none; font-size: 18px; cursor: pointer; padding: 2px 4px; border-radius: 8px; }
.react-pick .opts button:hover { background: var(--panel-2); }
.linkbtn { border: 0; background: none; color: var(--muted); font: 12px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 0 2px; }
.linkbtn:hover { color: var(--text); }
.freply { display: grid; gap: 8px; margin-top: 12px; }
@media (max-width: 640px) { .fpost { flex-direction: column; } .fpost .who { width: auto; display: flex; gap: 8px; align-items: center; text-align: left; } .fpost .who .avatar { width: 32px; height: 32px; font-size: 14px; margin: 0; } }

.pp-chips.kudos span { font-size: 14px; padding: 4px 12px; background: #2a2210; border-color: #6a5420; }

/* date polls */
.poll-dates { display: grid; gap: 6px; }
.poll-dates .row input { flex: 1; }
.poll-opt { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); margin-bottom: 6px; }
.poll-opt.best { border-color: var(--amber, #e8a33d); }
.poll-opt .ans { display: flex; gap: 4px; }
.poll-opt .ans label { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line-2); cursor: pointer; font-size: 13px; }
.poll-opt .ans label:has(input:checked) { border-color: var(--amber, #e8a33d); background: #2a2210; }
.poll-opt .ans input { margin: 0; }
.poll-opt .tally { grid-column: 1 / -1; font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.poll-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.poll-bar i { display: block; height: 100%; background: var(--amber, #e8a33d); }
.poll-people { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; font-size: 12px; }
.poll-people span { padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-2); }
.poll-people span.done { border-color: #2e6b3f; color: #9fe0b0; }
.badge.poll-badge { background: #2a2210; border-color: #6a5420; color: var(--amber-2, #f3c26b); }

/* events */
.events { display: grid; gap: 10px; }
.event { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.event .date { text-align: center; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); padding: 6px 0; height: fit-content; }
.event .date b { display: block; font: 600 26px var(--display); line-height: 1.1; }
.event .date span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.event h2 { font: 600 18px var(--display); margin: 0 0 4px; }
.event .seats { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.event .seat { width: 26px; height: 26px; border-radius: 50%; border: 1px dashed var(--line-2); display: inline-grid; place-items: center; font-size: 11px; background-size: cover; background-position: center; }
.event .seat.taken { border-style: solid; border-color: var(--amber, #e8a33d); background-color: var(--amber, #e8a33d); color: #1a1205; font-weight: 600; }
.event .acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 130px; }
@media (max-width: 640px) { .event { grid-template-columns: 60px 1fr; } .event .acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } }
.pp-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pp-chips .pp-follows { background: transparent; border-color: transparent; padding-left: 2px; }
.prof-streak { color: #f2a33a; }
.designer-page .designer-box { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.designer-page .dd-preview { height: 220px; }
.designer-box form.dd-save, .designer-box form.td-save { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; }
.designer-box form.dd-save input, .designer-box form.td-save input { flex: 1; min-width: 140px; width: auto; }
.designer-box form.dd-save button, .designer-box form.td-save button { width: auto; flex: none; }

/* ---------- themes (themes.js): artwork in the space either side of the page ---------- */
body.home[data-theme]:not([data-theme="none"]) { background: var(--theme-bg, var(--bg)); }
body > .theme-flank { position: fixed; top: 0; bottom: 0; width: calc((100vw - 1140px) / 2); z-index: 0; pointer-events: none; overflow: hidden; }
body > .theme-flank svg { width: 100%; height: 100%; display: block; }
body > .theme-flank.left { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
body > .theme-flank.right { right: 0; transform: scaleX(-1); -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
@media (max-width: 1340px) { body > .theme-flank { display: none; } }
body.home .dash, body.home #gate { position: relative; z-index: 1; }

/* the picker on the Account page */
.theme-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.theme-pick button { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; font: inherit; }
.theme-pick button b { font-size: 14px; }
.theme-pick button span { font-size: 11px; color: var(--muted); }
.theme-pick button.on { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; }
