.gamer-social-links { display:grid; gap:14px; margin:18px 0; }
.gamer-social-links button {
  display:flex; align-items:center; justify-content:space-between; text-align:left; gap:12px;
  padding:14px 18px; min-height:66px; color:#fff; border:1px solid #b6ff19; border-radius:12px;
  background:repeating-linear-gradient(135deg,#111218 0 3px,#0a0b10 3px 7px);
  box-shadow:inset 0 0 12px #b6ff1924,0 0 8px #b6ff1940;
}
.gamer-social-links button + button { border-color:#cc65ff; box-shadow:inset 0 0 12px #cc65ff24,0 0 8px #cc65ff40; }
.gamer-social-links strong { display:block; font-size:1.1rem; font-style:italic; text-transform:uppercase; }
.gamer-social-links small { display:block; margin-top:4px; color:#e1dce7; }
.gamer-social-links button > span:last-child { font-size:1.7rem; }
.gamer-social-page { width:100%; min-width:0; color:#fff; color-scheme:dark; }
.gamer-social-page h1 { margin:0; font-size:clamp(1.45rem,6vw,2rem); }
.gamer-social-page [data-back] { width:44px; font-size:1.5rem; }
.gamer-social-page header { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.gamer-social-page h2, .gamer-social-page h3, .gamer-social-page p { margin:0 0 8px; overflow-wrap:anywhere; }
.gamer-social-page form, .gamer-social-filters { display:grid; gap:14px; }
.gamer-social-page label { display:block; }
.gamer-social-page small { display:block; color:#ded6e6; }
.gamer-social-page fieldset { margin:0; padding:8px 12px; min-width:0; border:1px solid #736484; border-radius:8px; }
.gamer-platforms { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.gamer-social-page input:not([type=checkbox]), .gamer-social-page textarea, .gamer-social-page select {
  box-sizing:border-box; display:block; width:100%; margin-top:4px; border:1px solid #736484;
  border-radius:8px; background:#1b1822; color:#fff; padding:10px; font:inherit;
}
.gamer-social-page input[type=checkbox] { accent-color:#b6ff19; width:17px; height:17px; vertical-align:middle; }
.gamer-social-page button {
  min-height:44px; padding:8px 12px; border:1px solid #b6ff19; border-radius:8px;
  background:#161e0e; color:#dcffad; font:inherit;
}
.gamer-social-page button:disabled { opacity:.65; }
.gamer-social-page :focus-visible, .gamer-social-links button:focus-visible { outline:2px solid #e0a0ff; outline-offset:2px; }
.gamer-social-page article { padding:12px; margin:10px 0; border:1px solid #5c426d; border-radius:8px; overflow-wrap:anywhere; }
.gamer-social-page section { margin-top:14px; }
.gamer-social-links button > svg { width:28px; height:28px; flex:none; color:#b6ff19; }
.gamer-social-label { flex:1; border-left:1px solid #ffffff59; padding-left:12px; min-width:0; }
.arena-guests + .gamer-social-links { margin:0; }
.gamer-social-preview-layout { background:transparent; }
.gamer-social-preview-layout header { margin-bottom:12px; }
.gamer-social-preview-layout [data-status]:empty { margin:0; }
.gamer-social-preview-layout details { border:1px solid #736484; border-radius:12px; background:#141218; }
.gamer-social-preview-layout details > :not(summary) { margin:0 12px 12px; }
.gamer-social-preview-layout summary { cursor:pointer; padding:12px; min-height:44px; box-sizing:border-box; font-weight:700; }
.gamer-social-preview-layout summary small { padding-left:14px; font-weight:400; }
.gamer-social-preview-layout details[open] summary { color:#d2ff59; }
.gamer-preview, .gamer-social-page article.gamer-featured {
  margin:0 0 12px; border:1px solid #d068f8; border-radius:14px; padding:14px;
  background:linear-gradient(150deg,#22152e,#100e16); box-shadow:inset 0 0 16px #c366f32e,0 0 10px #bb47e444;
}
.gamer-preview-top { display:flex; align-items:center; gap:14px; }
.gamer-avatar {
  display:grid; place-items:center; flex:none; width:44px; height:44px; border-radius:9px;
  border:1px solid #9d59c5; color:#eacfff; background:linear-gradient(145deg,#452761,#191324); font-weight:800;
}
.gamer-preview .gamer-avatar, .gamer-featured .gamer-avatar { width:60px; height:60px; }
.gamer-platform-badges { display:flex; flex-wrap:wrap; gap:5px; margin:4px 0; }
.gamer-platform-badges span { border:1px solid #a2cc34; border-radius:6px; padding:2px 6px; font-size:.76rem; color:#e8ffc0; }
.gamer-preview-ranks { display:flex; flex-wrap:wrap; gap:8px 16px; border-top:1px solid #5d416e; margin-top:12px; padding-top:10px; }
.gamer-preview-ranks small { width:100%; }
.gamer-preview-ranks strong { display:block; }
.gamer-game-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:6px; align-items:center; margin-bottom:6px; }
.gamer-social-preview-layout .gamer-game-row input { margin:0; padding:8px; }
.gamer-social-preview-layout [type=submit], .gamer-featured [data-send] { background:#b6ff19; color:#111704; font-weight:800; }
.gamer-social-page article.gamer-roster-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; }
.gamer-roster-row h3 { margin:0; font-size:1rem; }
.gamer-roster-row p { margin:4px 0 0; font-size:.85rem; }
.gamer-roster-row [data-send] { white-space:nowrap; padding:6px 8px; }
.gamer-social-page article.gamer-roster-row:not(.gamer-featured) { border-width:0 0 1px; border-radius:0; margin:0; padding:9px 2px; }

.gamer-social-preview-layout form { gap:8px; }
.gamer-social-preview-layout form summary { display:grid; grid-template-columns:28px 1fr 34px; gap:0 9px; align-items:center; list-style:none; }
.gamer-social-preview-layout summary::-webkit-details-marker { display:none; }
.gamer-social-preview-layout form summary > span { grid-row:1 / span 2; color:#b6ff19; font-size:1.35rem; }
.gamer-social-preview-layout form summary small { grid-column:2; padding:0; }
.gamer-social-preview-layout form summary::after { content:'›'; grid-column:3; grid-row:1 / span 2; display:grid; place-items:center; min-height:32px; border:1px solid #b6ff19; color:#b6ff19; border-radius:8px; }
.gamer-social-preview-layout form details[open] summary::after { content:'⌄'; }
.gamer-social-filters { grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:start; }
.gamer-social-filters .gamer-search { position:relative; }
.gamer-search > span { position:absolute; left:12px; top:9px; font-size:1.25rem; color:#e3d1ed; }
.gamer-social-page .gamer-search input { margin:0; padding-left:36px; min-height:44px; font-size:16px; }
.gamer-filter-panel { display:contents; }
.gamer-filter-panel > summary { grid-column:2; grid-row:1; list-style:none; border:1px solid #b6ff19; border-radius:9px; width:44px; text-align:center; color:#b6ff19; }
.gamer-social-preview-layout .gamer-filter-panel > label { grid-column:1 / -1; margin:0; }
.gamer-empty { border:1px solid #594568; border-radius:12px; padding:16px; color:#ddd1e5; }
.gamer-preview img.gamer-avatar { object-fit:cover; }
.gamer-social-page input:not([type=checkbox]) { font-size:16px; }

/* Match the dashboard's cut corners and carbon panels. */
.gamer-social-links, .gamer-social-page {
  --gamer-lime:#adff00;
  --gamer-trim:#392c4c;
  --gamer-purple:#a32bef;
  --gamer-carbon:repeating-linear-gradient(135deg,#0a0b0e 0 5px,#101116 5px 9px);
  --gamer-cut:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px);
}
.gamer-social-links button,
.gamer-social-page :is(.gamer-preview,details:not(.gamer-filter-panel),article.gamer-featured,.gamer-empty) {
  position:relative;
  isolation:isolate;
  border:0;
  border-radius:0;
  clip-path:var(--gamer-cut);
  background:var(--gamer-trim);
  box-shadow:none;
}
.gamer-social-links button::before,
.gamer-social-page :is(.gamer-preview,details:not(.gamer-filter-panel),article.gamer-featured,.gamer-empty)::before {
  content:'';
  position:absolute;
  z-index:-1;
  inset:1px;
  clip-path:var(--gamer-cut);
  background:var(--gamer-carbon);
  pointer-events:none;
}
.gamer-social-links button { background:var(--gamer-lime); }
.gamer-social-links button + button { background:var(--gamer-purple); box-shadow:none; }
.gamer-social-page :is(.gamer-preview,article.gamer-featured)::after {
  content:'';
  position:absolute;
  top:0;
  left:12px;
  width:58px;
  height:4px;
  background:var(--gamer-purple);
  transform:skewX(-35deg);
  pointer-events:none;
}
.gamer-social-page :is(h1,summary b) { font-weight:900; font-style:italic; text-transform:uppercase; }
.gamer-social-page :is([data-back],[data-send],[type=submit],[data-add-game]), .gamer-filter-panel > summary {
  border-radius:0;
  clip-path:polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px);
}
.gamer-social-page :is([type=submit],.gamer-featured [data-send]) {
  background:var(--gamer-lime);
  color:#101400;
  font-style:italic;
  text-transform:uppercase;
}
.gamer-social-links button:focus-visible,
.gamer-social-page :is([data-back],[data-send],[type=submit],[data-add-game]):focus-visible,
.gamer-filter-panel > summary:focus-visible {
  outline:2px solid #fff;
  outline-offset:-4px;
}
