/* Sign-in gate, members, profiles, access, view-as */

/* ---------- Hex avatar (used everywhere) ---------- */
.hexav {
  --s: 40px;
  position: relative;
  flex: none;
  width: var(--s);
  height: var(--s);
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--red-2));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hexav img { width: 100%; height: 100%; object-fit: cover; }
.hexav span { font: 700 calc(var(--s) * 0.42) / 1 var(--display); color: #fff; text-transform: uppercase; }

/* ---------- Gate (sign-in / enroll) ---------- */
.gate-body { display: grid; min-height: 100vh; }
.gate { position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; gap: 0; padding: 24px 16px 40px; min-height: 100vh; }
.gate-core.core { width: min(340px, 72vw); margin-bottom: -60px; z-index: 0; pointer-events: none; }
.gate-core .core-shield { width: 58%; }
.gate-card { position: relative; z-index: 1; width: min(440px, 100%); padding: 30px 30px 28px; }
.gate-foot { margin-top: 22px; font-size: 11px; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; }
label.check { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 13px/1.3 var(--ui); letter-spacing: normal; text-transform: none; cursor: pointer; }
label.check input { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--blue-2); box-shadow: none; }
.invite-chip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 20px; font: 13px var(--mono); color: var(--text); }
@media (max-width: 560px) {
  .gate-core.core { width: 64vw; margin-bottom: -40px; }
  .gate-card { padding: 24px 20px; }
}

/* ---------- Preview ("view as") bar ---------- */
.preview-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px;
  padding: 8px var(--gutter);
  font: 12px/1.3 var(--mono); letter-spacing: 0.04em; color: #fff;
  background: repeating-linear-gradient(-45deg, rgba(239, 14, 13, 0.85) 0 14px, rgba(174, 12, 12, 0.85) 14px 28px);
}
.preview-bar .pv-eye { animation: pulse 1.4s infinite; }
.preview-bar .btn { --btn-bg: #fff; color: var(--red-2); height: 28px; }
body.previewing .cmdbar { top: 44px; }
body.previewing .ticker { top: 108px; }

/* ---------- Account menu in the bar ---------- */
.me-menu { position: relative; }
.me-menu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.me-menu summary::-webkit-details-marker { display: none; }
.me-pop { position: absolute; right: 0; top: calc(100% + 12px); min-width: 230px; display: grid; gap: 2px; padding: 10px; z-index: 60; }
.me-pop a, .me-pop button { display: block; width: 100%; padding: 10px 12px; border: 0; background: none; color: var(--text); font: 14px var(--ui); text-align: left; cursor: pointer; }
.me-pop a:hover, .me-pop button:hover { background: rgba(9, 146, 249, 0.12); color: #fff; }

/* ---------- Profile ---------- */
.profile-hero { padding: 0; margin-bottom: 20px; }
.ph-banner { position: relative; height: 150px; overflow: hidden; background: linear-gradient(100deg, rgba(2, 71, 242, 0.55), rgba(10, 16, 40, 0.4) 45%, rgba(10, 16, 40, 0.4) 55%, rgba(174, 12, 12, 0.55)); }
.ph-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--split); }
.ph-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(180deg, #000, transparent); }
.ph-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 26px; padding: 0 32px 22px; margin-top: -84px; position: relative; }
.ph-avatar { position: relative; width: 184px; height: 184px; display: grid; place-items: center; }
.ph-ring { position: absolute; inset: 0; background: conic-gradient(from 200deg, var(--blue-2), var(--silver), var(--red), var(--silver), var(--blue-2)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); animation: spin 14s linear infinite; }
.ph-avatar .hexav { position: relative; box-shadow: 0 0 0 6px var(--panel-solid); }
.ph-tier { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); padding: 4px 12px; font: 700 12px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, var(--violet), var(--blue)); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); white-space: nowrap; }
.ph-id h1 { font-size: clamp(32px, 4vw, 56px); margin-top: 8px; }
.ph-handle { color: var(--cyan); font-size: 13px; margin-top: 6px; }
.ph-tagline { margin: 12px 0 0; font-size: 18px; color: var(--text); font-style: italic; max-width: 60ch; }
.ph-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ph-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ph-stats > div { display: grid; gap: 4px; padding: 16px 24px; }
.ph-stats > div + div { border-left: 1px solid var(--line); }
.ph-stats b { font: 700 20px/1.1 var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-stats span { font: 10px var(--mono); color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.profile-grid, .edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.soon { display: grid; gap: 12px; justify-items: start; }
.soon p { margin: 0; font-size: 14px; }
.soon-row { display: flex; flex-wrap: wrap; gap: 6px; }
.plat { padding: 6px 12px; font: 700 12px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
.kv dt { font: 600 11px/1.6 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

/* DSO AI panel */
.ai-panel { --edge: linear-gradient(250deg, var(--violet), rgba(155, 92, 255, 0.2) 40%, rgba(220, 203, 208, 0.12)); }
.ai-bubble { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: rgba(155, 92, 255, 0.08); box-shadow: inset 2px 0 0 var(--violet); }
.ai-bubble p { margin: 0; font-size: 14px; }
.ai-mark { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font: 700 13px var(--display); color: #fff; background: linear-gradient(135deg, var(--violet), var(--blue)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.ai-input { display: flex; gap: 8px; margin-top: 12px; }
.ai-input input:disabled, .ai-input .btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- People grid ---------- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.member-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; color: var(--text); border: 0; cursor: pointer; font: inherit; background: none; }
.member-card:hover { color: var(--text); }
.mc-text { display: grid; gap: 3px; min-width: 0; }
.mc-text b { font: 700 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-role { font: 11px/1.3 var(--mono); color: var(--cyan); letter-spacing: 0.06em; }
.mc-tag { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-online { position: absolute; top: 14px; right: 16px; width: 8px; height: 8px; background: var(--green); transform: rotate(45deg); box-shadow: 0 0 8px var(--green); }

/* ---------- Avatar cropper ---------- */
.cropper { display: grid; gap: 14px; justify-items: center; }
.crop-stage { position: relative; width: min(300px, 100%); aspect-ratio: 1; display: grid; place-items: center; background: rgba(3, 4, 10, 0.6); box-shadow: inset 0 0 0 1px var(--line-strong); touch-action: none; cursor: grab; overflow: hidden; }
.crop-stage.drag { box-shadow: inset 0 0 0 2px var(--cyan); }
.crop-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.crop-stage.has-img canvas { display: block; }
.crop-stage.has-img .crop-empty { display: none; }
.crop-empty { display: grid; justify-items: center; }
.crop-mask { position: absolute; inset: 0; pointer-events: none; display: none; background: rgba(3, 4, 10, 0.62); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 6%, 6% 28%, 6% 72%, 50% 94%, 94% 72%, 94% 28%, 50% 6%); }
.crop-stage.has-img .crop-mask { display: block; }
.zoom { width: min(300px, 100%); display: grid; gap: 6px; }
.zoom input { min-height: 0; padding: 0; box-shadow: none; background: none; accent-color: var(--cyan); }
.crop-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.file-btn { cursor: pointer; }
.crop-note { margin: 0; font-size: 12px; text-align: center; }
.tag-preview { display: flex; align-items: center; gap: 14px; padding: 14px; background: rgba(3, 4, 10, 0.5); box-shadow: inset 0 0 0 1px var(--line); }
.tag-preview div { display: grid; gap: 2px; min-width: 0; }
.tag-preview b { font: 700 17px/1.1 var(--display); text-transform: uppercase; }
.tag-preview span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
label .count { float: right; color: var(--dim); letter-spacing: 0; }

/* ---------- Audit ---------- */
.audit { display: grid; gap: 2px; font-size: 13px; }
.audit > div { display: grid; grid-template-columns: 130px 140px 180px 1fr; gap: 12px; padding: 8px 10px; background: rgba(220, 203, 208, 0.025); }

@media (max-width: 960px) {
  .profile-grid, .edit-grid { grid-template-columns: minmax(0, 1fr); }
  .ph-body { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; margin-top: -92px; padding: 0 20px 20px; gap: 14px; }
  .ph-id .eyebrow { justify-content: center; }
  .ph-pills, .ph-actions { justify-content: center; }
  .ph-tagline { margin-inline: auto; }
  .ph-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-stats > div:nth-child(3) { border-left: 0; }
  .ph-stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .audit > div { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ph-avatar { width: 150px; height: 150px; }
  .ph-avatar .hexav { --s: 136px !important; }
  .ph-banner { height: 120px; }
  .ph-stats > div { padding: 12px 14px; }
  .ph-stats b { font-size: 16px; }
  .member-grid { grid-template-columns: minmax(0, 1fr); }
  body.previewing .cmdbar { top: 64px; }
}
/* Dock "Me" avatar */
.dock .hexav { --s: 24px !important; }


/* ===== Boot sequence after sign-in: shield halves slam together ===== */
.boot { background: radial-gradient(circle at 50% 42%, #0a1230, #03040a 65%); animation: boot-out 600ms 2.6s cubic-bezier(.6,0,.4,1) forwards; }
.boot .halves { position: relative; width: 240px; aspect-ratio: 560 / 483; }
.boot .halves img { position: absolute; inset: 0; width: 100%; animation: none; filter: drop-shadow(0 0 30px rgba(9,146,249,.35)); }
.boot .h-l { clip-path: inset(0 50% 0 0); animation: half-l 900ms 150ms cubic-bezier(.7,0,.2,1) both !important; }
.boot .h-r { clip-path: inset(0 0 0 50%); animation: half-r 900ms 150ms cubic-bezier(.7,0,.2,1) both !important; }
@keyframes half-l { from { transform: translateX(-60vw) skewX(-12deg); opacity: 0; filter: blur(8px) drop-shadow(0 0 30px #0992f9); } 70% { opacity: 1; } }
@keyframes half-r { from { transform: translateX(60vw) skewX(12deg); opacity: 0; filter: blur(8px) drop-shadow(0 0 30px #ef0e0d); } 70% { opacity: 1; } }
.boot .flash { position: absolute; left: 50%; top: -20%; bottom: -20%; width: 4px; transform: translateX(-50%) scaleY(0); background: #fff; box-shadow: 0 0 30px 8px #fff, 0 0 80px 20px rgba(90,202,248,.6); animation: seam-flash 700ms 980ms ease-out both; }
@keyframes seam-flash { 20% { transform: translateX(-50%) scaleY(1); opacity: 1; } to { transform: translateX(-50%) scaleY(1) scaleX(30); opacity: 0; } }
.boot .beam { top: 50%; animation-delay: 1s; }
.boot-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.boot-rings i { position: absolute; width: 260px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(220,203,208,.5); opacity: 0; animation: ring-out 1.4s cubic-bezier(.2,.7,.1,1) both; }
.boot-rings i:nth-child(1) { animation-delay: 1s; border-color: rgba(9,146,249,.8); }
.boot-rings i:nth-child(2) { animation-delay: 1.15s; }
.boot-rings i:nth-child(3) { animation-delay: 1.3s; border-color: rgba(239,14,13,.8); }
@keyframes ring-out { 10% { opacity: 1; } to { transform: scale(5); opacity: 0; } }
.boot .lines span:nth-child(1) { animation-delay: 1.2s; }
.boot .lines span:nth-child(2) { animation-delay: 1.5s; }
.boot .lines span:nth-child(3) { animation-delay: 1.85s; }
.boot-bar { width: 220px; height: 2px; background: rgba(220,203,208,.12); overflow: hidden; }
.boot-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-2), #fff, var(--red)); transform-origin: left; animation: bar-fill 1.4s 1.1s cubic-bezier(.6,0,.2,1) both; }
@keyframes bar-fill { from { transform: scaleX(0); } }
/* Page content rises in after the boot */
.boot ~ .cmdbar, .boot ~ .page { animation: rise-in 800ms 2.7s cubic-bezier(.2,.7,.1,1) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { body.launching::after { display: none; } .boot ~ .cmdbar, .boot ~ .page { animation: none; } }

/* Profile fixes: block-level name; ring colours rotate inside a fixed hexagon */
.ph-id h1.glitch { display: block; width: fit-content; }
.ph-id .eyebrow { display: flex; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ph-ring { animation: ring-hue 8s linear infinite; background: conic-gradient(from var(--ang), var(--blue-2), var(--silver), var(--red), var(--silver), var(--blue-2)); }
@keyframes ring-hue { to { --ang: 360deg; } }
.ph-avatar .hexav { box-shadow: none; }
.ph-avatar::after { content: ""; position: absolute; inset: 5px; background: var(--panel-solid); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); z-index: 0; }
.ph-avatar .hexav { z-index: 1; }
.ph-tier { z-index: 2; }
@media (max-width: 960px) { .ph-id h1.glitch { margin-inline: auto; } }

/* ===== Sign-in, phase 1 "charging": card folds into the shield while HQ checks the details ===== */
body.launching .gate-card { animation: card-in 600ms cubic-bezier(.6,0,.4,1) forwards; pointer-events: none; }
body.launching .gate-core .ring.r2, body.launching .gate-core .ring.r4 { animation-duration: 1.4s; }
body.launching .gate-core .sweep { animation-duration: .7s; }
body.launching .gate-core { animation: core-charge 900ms cubic-bezier(.3,.7,.2,1) forwards; }
body.launching .gate-core .core-shield { animation: shield-pulse 900ms ease-in-out infinite; }
body.launching .gate-foot::after { content: " · verifying"; color: var(--cyan); animation: pulse 1s infinite; }
@keyframes card-in { to { opacity: 0; transform: translateY(-140px) scale(.55); filter: blur(6px); } }
@keyframes core-charge { to { transform: translateY(70px) scale(1.25); } }
@keyframes shield-pulse { 50% { filter: brightness(1.5) drop-shadow(0 0 26px #5acaf8); } }

/* ===== Phase 2a "granted": rings blow out, shield flares, screen floods white, boot takes over ===== */
body.launch-go .gate-core { animation: core-go 900ms cubic-bezier(.6,0,.4,1) forwards; }
body.launch-go .gate-core .core-shield { animation: shield-flare 900ms ease-in forwards; }
body.launch-go .gate-core .ring { animation: ring-blow 800ms cubic-bezier(.2,.7,.1,1) forwards !important; }
body.launch-go .gate-foot::after { content: " · access granted"; color: var(--green); }
body.launch-go::after { content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; background: radial-gradient(circle at 50% 45%, #fff 0, #dff4ff 25%, rgba(90,202,248,.75) 45%, rgba(3,4,10,0) 75%); animation: flood 900ms ease-in forwards; }
@keyframes core-go { from { transform: translateY(70px) scale(1.25); } to { transform: translateY(70px) scale(1.9); } }
@keyframes shield-flare { 60% { filter: brightness(2.2) drop-shadow(0 0 50px #fff); } to { filter: brightness(4) drop-shadow(0 0 90px #fff); } }
@keyframes ring-blow { to { transform: scale(2.4); opacity: 0; } }
@keyframes flood { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; } to { opacity: 1; transform: scale(3); background: #fff; } }
/* The boot screen opens on the same white and fades it out: one continuous animation across pages */
.boot::before { content: ""; position: absolute; inset: 0; background: #fff; z-index: 5; animation: unflood 650ms ease-out forwards; pointer-events: none; }
@keyframes unflood { to { opacity: 0; } }

/* ===== Phase 2b "denied": red alarm, shield shakes, card snaps back with the error ===== */
body.denied .gate-card { animation: card-back 650ms cubic-bezier(.2,.9,.3,1.2) both; --edge: linear-gradient(135deg, var(--red), rgba(239,14,13,.25) 50%, var(--red)); }
body.denied .gate-core { animation: core-shake 520ms cubic-bezier(.36,.07,.19,.97) both; }
body.denied .gate-core .core-shield { filter: drop-shadow(0 0 26px rgba(239,14,13,.9)) saturate(1.4); transition: filter .4s; }
body.denied .gate-core .ring.r1 { background: var(--red); }
body.denied .gate-core .sweep { background: conic-gradient(from 0deg, transparent 0 290deg, rgba(239,14,13,.25) 355deg, rgba(255,120,120,.9) 359.5deg, transparent 360deg); }
body.denied::after { content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at 50% 40%, rgba(239,14,13,.35), transparent 60%), repeating-linear-gradient(0deg, rgba(239,14,13,.08) 0 2px, transparent 2px 5px); animation: alarm 1.3s ease-out forwards; }
.denied-stamp { position: fixed; left: 50%; top: 28%; z-index: 3; transform: translate(-50%, -50%) rotate(-6deg); padding: 10px 26px; font: 700 clamp(30px, 6vw, 54px)/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(174,12,12,.88); box-shadow: 0 0 0 2px #fff, 0 0 40px rgba(239,14,13,.8); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); pointer-events: none; animation: stamp 1.4s cubic-bezier(.2,.9,.3,1.3) forwards; }
@keyframes card-back { from { opacity: 0; transform: translateY(-140px) scale(.55); filter: blur(6px); } 55% { opacity: 1; transform: translateY(10px) scale(1.02); filter: none; } 70% { transform: translateX(-10px); } 82% { transform: translateX(8px); } 92% { transform: translateX(-4px); } to { transform: none; } }
@keyframes core-shake { 10%, 90% { transform: translateX(-3px); } 20%, 80% { transform: translateX(6px); } 30%, 50%, 70% { transform: translateX(-10px); } 40%, 60% { transform: translateX(10px); } }
@keyframes alarm { 0% { opacity: 0; } 15% { opacity: 1; } 30% { opacity: .5; } 45% { opacity: 1; } to { opacity: 0; } }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(2.2); } 18% { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(.95); } 26% { transform: translate(-50%, -50%) rotate(-6deg) scale(1); } 80% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(1.05); } }
.gate-card .field-error { animation: err-in .4s .35s both; }
@keyframes err-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { body.launch-go::after, body.denied::after, .denied-stamp, .boot::before { display: none; } }
.unflood { position: fixed; inset: 0; z-index: 300; background: #fff; pointer-events: none; animation: unflood 700ms ease-out forwards; }

/* ---------- Profile: channels & games ---------- */
.pf-channels { display: grid; gap: 8px; }
.pf-ch { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 10px 12px; box-shadow: inset 3px 0 0 var(--pc), inset 0 0 0 1px var(--line); background: color-mix(in srgb, var(--pc) 7%, transparent); }
.pf-ch-main { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--text); text-decoration: none; min-width: 0; }
.pf-ch-main b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.pf-ch-main:hover b { color: var(--pc); }
.pf-ch-plat { font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pc); }
.pf-ch-stats { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); }
.pf-ch-stats:empty { display: none; }
.pf-ch form { grid-row: 1 / span 2; grid-column: 2; margin: 0; }
.pf-x { border: 0; background: none; color: var(--dim); font-size: 18px; line-height: 1; padding: 2px 6px; cursor: pointer; }
.pf-x:hover { color: var(--red-glow); }
.pf-add { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.pf-add select { flex: 0 0 auto; width: auto; }
.pf-add input { flex: 1 1 140px; min-width: 0; }
.pf-add-game { align-items: flex-start; }
.pf-add-game .combo-field { flex: 1 1 200px; margin: 0; }
.pf-add-game > .btn { margin-top: 24px; }
.pf-games { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-game { display: inline-flex; align-items: center; gap: 4px; padding: 7px 8px 7px 12px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(255,255,255,.03); color: var(--text); text-decoration: none; }
.pf-game a { color: inherit; text-decoration: none; }
.pf-game b { font: 700 13px var(--display); letter-spacing: .05em; text-transform: uppercase; }
.pf-game small { font-size: 11px; color: var(--muted); margin-left: 6px; }
.pf-game.team { box-shadow: inset 0 0 0 1px var(--cyan); background: rgba(9,146,249,.08); padding-right: 12px; }
.pf-game:hover b { color: var(--cyan); }
.pf-game form { margin: 0; }
