/* RENDZE phase 2 — member pages (login, vote, cheer rooms, profile, transparency). Uses the tokens from style.css. */
.m-sec { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); position: relative; }
.m-narrow { max-width: 560px; margin: 0 auto; }
.m-mid { max-width: 860px; margin: 0 auto; }
.m-card {
  position: relative; padding: clamp(20px, 3vw, 28px); border-radius: 22px; margin-bottom: 20px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.m-card > h2, .m-h2 { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 2vw, 22px); letter-spacing: -.02em; margin: 0 0 14px; }
.m-card p:last-child { margin-bottom: 0; }
.m-help { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.m-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.m-sp { flex: 1; }
[hidden] { display: none !important; }

/* flash */
.flash { padding: 12px 16px; border-radius: 14px; margin: 0 0 18px; font-size: 15px; border: 1px solid; }
.flash-ok { background: rgba(198, 255, 61, .08); border-color: rgba(198, 255, 61, .4); color: #e6ffb0; }
.flash-err { background: rgba(255, 61, 138, .1); border-color: rgba(255, 61, 138, .45); color: #ffc2d9; }

/* form controls */
.m-field { display: grid; gap: 6px; margin-bottom: 14px; }
.m-field label, .m-label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.m-input, .m-select, .m-text {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(6, 7, 12, .6);
  color: var(--text); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.m-text { min-height: 110px; resize: vertical; line-height: 1.6; }
.m-input:focus, .m-select:focus, .m-text:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 255, .25); }
.m-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.m-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; cursor: pointer; }
.m-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--pink); flex: none; }
.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line2); background: rgba(255, 255, 255, .05); color: #fff; font: 700 15px/1 var(--body); text-decoration: none;
  transition: transform .25s var(--spring), border-color .2s, box-shadow .2s, background .2s;
}
.m-btn:hover { color: #fff; border-color: var(--cyan); box-shadow: 0 0 22px -6px rgba(61, 242, 255, .7); }
.m-btn:active { transform: scale(.97); }
.m-btn[disabled], .m-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; border-color: var(--line2); }
.m-btn-main { border-color: transparent; background: linear-gradient(100deg, #2F6BFF 0%, #6a4dff 50%, #FF3D8A 100%); box-shadow: 0 10px 30px -12px rgba(255, 61, 138, .8); }
.m-btn-main:hover { border-color: transparent; box-shadow: 0 12px 36px -10px rgba(255, 61, 138, 1); }
.m-btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.m-btn-danger { border-color: rgba(255, 61, 138, .5); color: #ffc2d9; }
.m-btn-danger:hover { border-color: var(--pink); box-shadow: 0 0 22px -6px rgba(255, 61, 138, .8); }
.m-link { background: none; border: 0; padding: 0; color: var(--accent2); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================ login */
.auth-btns { display: grid; gap: 12px; margin: 4px 0 18px; }
.ab { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 20px; border-radius: 16px; font: 700 16px/1.2 var(--body); text-decoration: none; border: 1.5px solid transparent; transition: transform .25s var(--spring), box-shadow .25s, filter .2s; }
.ab svg { flex: none; }
.ab span { flex: 1; }
.ab:hover { transform: translateY(-2px); }
.ab-line { background: #06C755; color: #fff; box-shadow: 0 12px 34px -14px rgba(6, 199, 85, .9); }
.ab-line:hover { color: #fff; filter: brightness(1.06); }
.ab-google { background: #fff; color: #1f1f1f; }
.ab-google:hover { color: #000; }
.ab-x { background: #000; color: #fff; border-color: rgba(255, 255, 255, .28); }
.ab-x:hover { color: #fff; border-color: #fff; }
.ab.off { opacity: .5; filter: grayscale(.6); pointer-events: none; }
.ab .soon { flex: none; font: 800 10px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--g-lc); color: #0a0b12; }
.email-alt { border-top: 1px solid var(--line); padding-top: 14px; }
.email-alt summary { cursor: pointer; color: var(--accent2); font-size: 15px; list-style: none; text-align: center; }
.email-alt summary::-webkit-details-marker { display: none; }
.email-alt summary:hover { color: #fff; }
.email-alt form { margin-top: 16px; }
.m-why { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.m-why li { display: flex; gap: 10px; align-items: flex-start; color: #c5cbdb; font-size: 15px; }
.m-why li::before { content: "✦"; color: var(--lime); flex: none; }
.m-legal { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ================================================================ avatars */
.av { --ring: var(--blue); position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s, 44px); height: var(--s, 44px); border-radius: 50%; overflow: hidden; background: var(--ring); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av b { font: 800 calc(var(--s, 44px) * .44)/1 var(--display); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.av-xl { --s: 128px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--ring), 0 0 50px -6px var(--glow, var(--ring)); }
.tchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 6px; border-radius: 999px; font: 800 10.5px/1.2 var(--display); letter-spacing: .06em; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid var(--c, var(--line2)); white-space: nowrap; text-decoration: none; }
.tchip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }

/* ================================================================ vote */
.v-status { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.v-receipt { font: 800 clamp(22px, 5vw, 34px)/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; padding: 14px 18px; border-radius: 16px; background: rgba(6, 7, 12, .7); border: 1.5px dashed rgba(198, 255, 61, .55); color: var(--lime); display: inline-block; user-select: all; margin: 6px 0 10px; overflow-wrap: anywhere; }
.v-next { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 14px; }
.v-next b { font: 800 22px/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.vgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .vgrid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .vgrid { grid-template-columns: repeat(4, 1fr); } }
.vcard { position: relative; display: block; border-radius: 20px; overflow: hidden; cursor: pointer; aspect-ratio: 3 / 4; isolation: isolate;
  background: radial-gradient(80% 60% at 50% 30%, color-mix(in srgb, var(--c) 34%, transparent), transparent 70%), #0b0e1b; border: 1.5px solid var(--line2);
  transition: transform .3s var(--spring), border-color .2s, box-shadow .25s; }
.vcard input { position: absolute; opacity: 0; pointer-events: none; }
.vcard img { position: absolute; inset: 6% 0 0; width: 100%; height: 94%; object-fit: contain; object-position: 50% 0; transition: transform .5s var(--ease), filter .3s; }
.vcard.locked img { filter: brightness(0) drop-shadow(0 0 14px var(--g)); opacity: .9; }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 7, 12, .95), rgba(6, 7, 12, .1) 52%, transparent 70%); z-index: 0; pointer-events: none; }
.vcard .vc-no { position: absolute; top: 10px; left: 12px; z-index: 1; font: 900 30px/1 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .55); }
.vcard .vc-meta { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: grid; gap: 6px; }
.vcard .vc-meta b { font: 800 15px/1.2 var(--display); letter-spacing: -.01em; }
.vcard .vc-meta small { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.vcard .vc-meta small i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--g); }
.vcard .vc-tag { position: absolute; top: 10px; right: 10px; z-index: 1; }
.vcard .vc-check { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #0a0b12; font-weight: 900; transform: scale(0); transition: transform .3s var(--spring); }
.vcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--g) 70%, transparent); }
.vcard:has(input:checked) { border-color: var(--g); box-shadow: 0 0 0 2px var(--g), 0 18px 50px -18px var(--g); transform: translateY(-4px); }
.vcard:has(input:checked) .vc-check { transform: none; }
.vcard:has(input:focus-visible) { outline: 2px solid var(--accent2); outline-offset: 3px; }
.vcard.static { cursor: default; }
.vcard.mine { border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime); }
.danger { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; font: 800 9.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; background: #ff2e55; color: #fff; box-shadow: 0 0 18px rgba(255, 46, 85, .7); animation: dz 1.6s ease-in-out infinite; }
@keyframes dz { 50% { box-shadow: 0 0 4px rgba(255, 46, 85, .4); } }
.rv { display: inline-flex; padding: 5px 9px; border-radius: 999px; font: 800 9.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; background: var(--g-lc); color: #0a0b12; }
.m-rules { margin: 0; padding-left: 0; list-style: none; counter-reset: r; display: grid; gap: 10px; }
.m-rules li { counter-increment: r; display: flex; gap: 12px; color: #c5cbdb; font-size: 15px; }
.m-rules li::before { content: counter(r, decimal-leading-zero); font: 900 13px/1.6 var(--display); color: var(--lime); flex: none; }

/* sticky action bar (vote submit, cheer compose) — mobile first, also on desktop */
.m-sticky { position: fixed; z-index: 58; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, rgba(6, 7, 12, .96) 60%, rgba(6, 7, 12, 0)); pointer-events: none; }
.m-sticky-in { max-width: 560px; margin: 0 auto; pointer-events: auto; }
.m-sticky .m-btn { width: 100%; min-height: 56px; font-size: 16px; }
.has-msticky .site-footer { padding-bottom: 96px; }

/* ================================================================ cheer */
.rooms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .rooms { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .rooms { grid-template-columns: repeat(4, 1fr); } }
.room { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; text-decoration: none; color: var(--text); background: var(--glass); border: 1.5px solid var(--line2); transition: transform .3s var(--spring), border-color .2s, box-shadow .25s; overflow: hidden; }
.room:hover { color: #fff; transform: translateY(-3px); border-color: var(--g); box-shadow: 0 16px 40px -20px var(--g); }
.room .r-img { width: 54px; height: 72px; flex: none; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 40%, transparent), #0b0e1b 70%); }
.room .r-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.room.locked .r-img img { filter: brightness(0) drop-shadow(0 0 8px var(--g)); }
.room b { display: block; font: 800 15px/1.25 var(--display); }
.room small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.room-head { display: flex; gap: 16px; align-items: center; }
.room-head .r-img { width: 64px; height: 86px; border-radius: 14px; overflow: hidden; flex: none; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 40%, transparent), #0b0e1b 70%); border: 1.5px solid var(--g); }
.room-head .r-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.room-head.locked .r-img img { filter: brightness(0) drop-shadow(0 0 8px var(--g)); }
.compose .m-text { min-height: 96px; }
.counter { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--pink); font-weight: 700; }
.tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); margin: 0 0 16px; }
.tabs a { padding: 8px 16px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; }
.tabs a[aria-current] { background: #f3f5fb; color: #0a0b12; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.post { padding: 16px 16px 12px; border-radius: 20px; background: rgba(15, 18, 32, .72); border: 1px solid var(--line2); scroll-margin-top: calc(var(--hdr) + 20px); }
.post:target { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.post-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.post-h .who { min-width: 0; display: grid; gap: 3px; }
.post-h .who a, .post-h .who span.nm { font-weight: 700; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-h .who a:hover { color: var(--lime); }
.post-h time { font-size: 12px; color: var(--muted); }
.post-b { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font-size: 16px; line-height: 1.6; }
.post-a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.post-a form { margin: 0; }
.cheer-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255, 61, 138, .5); background: rgba(255, 61, 138, .08); color: #ffd1e3; font: 800 14px/1 var(--body); cursor: pointer; transition: transform .25s var(--spring), background .2s, box-shadow .2s; }
.cheer-btn:hover { background: rgba(255, 61, 138, .2); box-shadow: 0 0 18px -6px rgba(255, 61, 138, .9); }
.cheer-btn:active { transform: scale(.94); }
.cheer-btn[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; }
.cheer-btn[disabled] { cursor: default; }
.cheer-btn .n { font-variant-numeric: tabular-nums; }
.cheer-btn.pop { animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.18); } }
.rep-btn { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 0; background: none; color: var(--muted); font: 600 13px/1 var(--body); cursor: pointer; }
.rep-btn:hover { color: #fff; }
.rep-btn[disabled] { opacity: .6; cursor: default; }
.reply { margin: 12px 0 2px; padding: 14px 16px; border-radius: 16px; position: relative;
  background: linear-gradient(rgba(10, 12, 22, .92), rgba(10, 12, 22, .92)) padding-box, linear-gradient(100deg, var(--c), #FF3D8A, #C6FF3D) border-box; border: 1.5px solid transparent;
  box-shadow: 0 0 30px -12px var(--g); }
.reply-h { display: flex; align-items: center; gap: 8px; font: 800 12px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; color: var(--lime); }
.reply p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.m-empty { text-align: center; color: var(--muted); padding: 36px 16px; border: 1px dashed var(--line2); border-radius: 18px; }

/* ================================================================ profile */
.prof-top { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.prof-top h2 { margin: 0 0 6px; font: 900 clamp(24px, 4vw, 34px)/1.1 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { padding: 14px; border-radius: 16px; background: rgba(6, 7, 12, .5); border: 1px solid var(--line); }
.stats dt { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.stats dd { margin: 4px 0 0; font: 900 24px/1.1 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.stats dd small { font: 600 12px/1.3 var(--body); color: var(--muted); display: block; margin-top: 4px; }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(6, 7, 12, .5); border: 1px solid var(--line2); }
.badges li > i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 18px; background: var(--g-bp); }
.badges li.b-streak7 > i { background: var(--g-lc); }
.badges li.b-topCheer > i { background: linear-gradient(135deg, #FDE047, #FB923C); }
.badges b { display: block; font-size: 14px; }
.badges small { color: var(--muted); font-size: 12px; }
.tpick { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 640px) { .tpick { grid-template-columns: repeat(6, 1fr); } }
.tpick label { display: grid; place-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 1.5px solid var(--line2); cursor: pointer; font: 800 13px/1 var(--display); transition: border-color .2s, box-shadow .2s; }
.tpick label i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--g); }
.tpick input { position: absolute; opacity: 0; pointer-events: none; }
.tpick label:has(input:checked) { border-color: var(--g); box-shadow: 0 0 0 2px var(--g); }
.tpick label:has(input:focus-visible) { outline: 2px solid var(--accent2); outline-offset: 2px; }
.m-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.m-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.m-table th, .m-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.m-table th { color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: .04em; background: rgba(255, 255, 255, .03); }
.m-table tr:last-child td { border-bottom: 0; }
.m-table code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.hash { display: inline-block; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.st-counted { color: var(--lime); font-weight: 700; }
.st-void { color: var(--pink); font-weight: 700; }
.idents { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.idents li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; font-weight: 700; }
.danger-zone { border-color: rgba(255, 61, 138, .35); }
.result { padding: 14px 16px; border-radius: 14px; margin-top: 14px; font-weight: 600; }
.result.counted { background: rgba(198, 255, 61, .1); color: #e6ffb0; border: 1px solid rgba(198, 255, 61, .4); }
.result.void, .result.not_found, .result.invalid { background: rgba(255, 61, 138, .1); color: #ffc2d9; border: 1px solid rgba(255, 61, 138, .4); }
@media (max-width: 640px) { .hash { max-width: 16ch; } }
/* narrow phones: stack the profile header so the name gets the full card width */
@media (max-width: 520px) { .prof-top { flex-direction: column; align-items: flex-start; gap: 14px; } .prof-top > div { width: 100%; } }
