/* ============================================================
   STARESBACK.GG — account.css (identity module)
   Every class prefixed .acc-. Leans on styles.css vars + the
   shared .btn / .troph / grid--troph classes. Dark arcade OS.
   ============================================================ */

/* ---- layout shell (mirrors .arc-main) ---- */
.acc-main { padding-top: calc(var(--hud-h) + 30px); min-height: 100vh; position: relative; z-index: 1; }
.acc-head { padding: clamp(28px, 5vh, 60px) clamp(20px, 5vw, 64px) 8px; max-width: 1180px; margin: 0 auto; }
.acc-eyebrow { font-size: 11px; letter-spacing: .22em; color: var(--amber); margin-bottom: 14px; }
.acc-title {
  font-family: var(--f-disp); font-weight: 900;
  font-size: clamp(2rem, 6vw, 4.4rem); text-transform: uppercase; line-height: 1.02;
  margin-bottom: 16px;
}
.acc-title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--acid); }
.acc-sub { color: var(--ink-dim); font-size: 15px; max-width: 680px; }
.acc-sub b { color: var(--acid); }

.acc-view { padding: 22px clamp(20px, 5vw, 64px) 70px; max-width: 1180px; margin: 0 auto; }

/* ============================================================
   LOGGED-OUT — split auth panel
   ============================================================ */
.acc-authwrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  align-items: start;
}

/* pitch column */
.acc-authpitch {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  padding: clamp(22px, 3.5vw, 38px);
  clip-path: var(--chamfer);
  position: relative; overflow: hidden;
}
.acc-authpitch::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 8%, rgba(184,255,47,.10), transparent 55%);
  pointer-events: none;
}
.acc-pitch-tag { font-size: 10px; letter-spacing: .24em; color: var(--mag); margin-bottom: 16px; }
.acc-pitch-title {
  font-family: var(--f-disp); font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); text-transform: uppercase; line-height: 1.05;
  margin-bottom: 14px;
}
.acc-pitch-title em { font-style: normal; color: var(--acid); }
.acc-pitch-body { color: var(--ink-dim); font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
.acc-pitch-body b { color: var(--ink); }
.acc-pitch-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.acc-pitch-list li {
  font-size: 11px; line-height: 1.6; letter-spacing: .03em; color: var(--ink-mute);
  display: flex; gap: 10px; align-items: flex-start;
}
.acc-pitch-list li span { color: var(--acid); flex-shrink: 0; }
.acc-pitch-list li b { color: var(--ink-dim); font-weight: 600; }

/* panel column */
.acc-authpanel {
  background: var(--panel);
  border: 1px solid var(--line-hi);
  padding: clamp(20px, 3vw, 32px);
  clip-path: var(--chamfer);
}
.acc-tabs { display: flex; gap: 0; margin-bottom: 26px; border: 1px solid var(--line-hi); }
.acc-tab {
  flex: 1; font-size: 11px; letter-spacing: .2em; font-weight: 600;
  color: var(--ink-dim); padding: 13px 8px;
  background: var(--panel-2); transition: color .2s, background .2s;
  border-right: 1px solid var(--line-hi);
}
.acc-tab:last-child { border-right: 0; }
.acc-tab:hover { color: var(--acid); }
.acc-tab.on { background: var(--acid); color: #05060A; }

.acc-form { display: flex; flex-direction: column; gap: 16px; }
.acc-form[hidden] { display: none; }
.acc-form-lead { font-size: 10px; letter-spacing: .22em; color: var(--ink-mute); }

.acc-field { display: flex; flex-direction: column; gap: 7px; }
.acc-label { font-size: 10px; letter-spacing: .2em; color: var(--ink-dim); }
.acc-label-dim { color: var(--ink-mute); letter-spacing: .12em; }

.acc-input {
  width: 100%;
  background: var(--panel-2); border: 1px solid var(--line-hi); color: var(--ink);
  font-family: var(--f-ui); font-size: 14px; letter-spacing: .02em;
  padding: 13px 14px;
  transition: border-color .2s, background .2s, box-shadow .2s;
  outline: none;
}
.acc-input.mono { font-family: var(--f-mono); letter-spacing: .04em; }
.acc-input::placeholder { color: var(--ink-mute); }
.acc-input:focus { border-color: var(--acid-dim); background: var(--panel-3); box-shadow: 0 0 0 1px var(--acid-soft); }
.acc-textarea { resize: vertical; min-height: 78px; line-height: 1.55; }

.acc-err {
  font-size: 11px; line-height: 1.55; letter-spacing: .02em;
  color: var(--mag);
  border-left: 2px solid var(--mag);
  background: var(--mag-soft);
  padding: 10px 12px;
}
.acc-err[hidden] { display: none; }

.acc-submit { width: 100%; justify-content: center; margin-top: 4px; }
.acc-submit:disabled { opacity: .55; pointer-events: none; }

.acc-fineprint { font-size: 9.5px; letter-spacing: .14em; color: var(--ink-mute); margin-top: 20px; text-align: center; }

/* ============================================================
   LOGGED-IN — profile dashboard
   ============================================================ */
.acc-profile { display: flex; flex-direction: column; gap: 20px; }

.acc-block-label {
  font-size: 10px; letter-spacing: .22em; color: var(--ink-mute);
  text-transform: uppercase; margin-bottom: 14px;
}

/* identity card */
.acc-idcard {
  display: flex; gap: clamp(18px, 3vw, 30px); align-items: center;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-hi);
  padding: clamp(20px, 3vw, 30px);
  clip-path: var(--chamfer);
  position: relative; overflow: hidden;
}
.acc-idcard::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--acid), transparent 70%);
}
.acc-avatar {
  flex-shrink: 0; width: 132px; height: 132px;
  border: 1px solid var(--line-hi); background: var(--void);
  display: grid; place-items: center;
  clip-path: var(--chamfer); --cut: 8px;
  box-shadow: 0 0 24px rgba(184,255,47,.08);
}
.acc-avatar svg { display: block; width: 116px; height: 116px; }
.acc-avatar--pop { animation: acc-pop .45s cubic-bezier(.22,1,.36,1); }
@keyframes acc-pop { 0% { transform: scale(.82) rotate(-4deg); } 60% { transform: scale(1.06); } }

.acc-idmeta { flex: 1; min-width: 0; }
.acc-idrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.acc-handle {
  font-family: var(--f-disp); font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem); text-transform: uppercase; line-height: 1;
  word-break: break-word;
}
.acc-rolebadge {
  font-size: 10px; letter-spacing: .16em; font-weight: 600;
  color: var(--ink-dim); border: 1px solid var(--line-hi); background: var(--panel-2);
  padding: 5px 10px; clip-path: var(--chamfer); --cut: 5px;
}
.acc-rolebadge--admin {
  color: #05060A; background: var(--amber); border-color: var(--amber);
  box-shadow: 0 0 14px rgba(255,185,56,.4);
}
.acc-idsub { font-size: 10.5px; letter-spacing: .12em; color: var(--ink-dim); margin-bottom: 12px; }
.acc-iddim { color: var(--ink-mute); }
.acc-adminlink {
  display: inline-block; font-size: 11px; letter-spacing: .12em; color: var(--amber);
  border: 1px solid rgba(255,185,56,.45); background: var(--amber-soft);
  padding: 9px 13px; margin-bottom: 16px;
  transition: background .2s, border-color .2s;
}
.acc-adminlink:hover { background: rgba(255,185,56,.18); border-color: var(--amber); }
.acc-idnote { font-size: 10.5px; letter-spacing: .06em; color: var(--ink-mute); margin-bottom: 16px; line-height: 1.6; }

.acc-idactions { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-minibtn {
  font-size: 10.5px; letter-spacing: .14em; color: var(--ink-dim);
  border: 1px solid var(--line-hi); background: var(--panel);
  padding: 9px 14px; transition: color .2s, border-color .2s, background .2s;
}
.acc-minibtn:hover { color: var(--acid); border-color: var(--acid-dim); background: var(--acid-soft); }
.acc-minibtn--out:hover { color: var(--mag); border-color: var(--mag); background: var(--mag-soft); }

/* live stats */
.acc-stats {
  background: var(--panel); border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 28px); clip-path: var(--chamfer);
}
.acc-xpcard {
  background: linear-gradient(160deg, var(--panel-3), var(--panel-2));
  border: 1px solid var(--line-hi);
  padding: 18px 18px 16px; margin-bottom: 18px;
}
.acc-xptop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.acc-xplv {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; color: #05060A;
  background: var(--acid); padding: 4px 11px; clip-path: var(--chamfer); --cut: 6px;
}
.acc-xpnum { font-size: 12px; letter-spacing: .08em; color: var(--ink-dim); }
.acc-xpbar {
  height: 10px; background: var(--panel); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.acc-xpbar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--acid-dim), var(--acid));
  box-shadow: 0 0 10px rgba(184,255,47,.55);
  transition: width .6s cubic-bezier(.22,1,.36,1);
}
.acc-xpbar::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(0,0,0,.35) 14px 15px);
}
.acc-xphint { font-size: 10px; letter-spacing: .06em; color: var(--ink-mute); margin-top: 10px; }

.acc-statgrid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}
.acc-stat {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  padding: 16px 16px 14px;
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.acc-stat:hover { border-color: var(--acid-dim); transform: translateY(-3px); }
.acc-stat::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--acid), transparent 70%);
  opacity: 0; transition: opacity .25s;
}
.acc-stat:hover::after { opacity: 1; }
.acc-stat-label { font-size: 9.5px; letter-spacing: .18em; color: var(--ink-mute); margin-bottom: 10px; }
.acc-stat-value {
  font-family: var(--f-disp); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1; color: var(--acid);
  text-shadow: 0 0 16px rgba(184,255,47,.3);
  font-variant-numeric: tabular-nums;
}
.acc-stat-value--sm { font-size: clamp(18px, 2vw, 24px); }
.acc-stat-of { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--ink-mute); margin-left: 4px; text-shadow: none; }
.acc-stat-hint { font-size: 9px; letter-spacing: .04em; color: var(--ink-mute); margin-top: 8px; }

/* edit profile */
.acc-edit {
  background: var(--panel); border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 28px); clip-path: var(--chamfer);
}
.acc-editform { display: flex; flex-direction: column; gap: 16px; }
.acc-editfoot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 2px; }
.acc-editfoot .acc-submit { width: auto; margin-top: 0; }
.acc-savehint { font-size: 10px; letter-spacing: .08em; color: var(--ink-mute); }

/* trophies */
.acc-trophies {
  background: var(--panel); border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 28px); clip-path: var(--chamfer);
}
.acc-trophhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.acc-trophhead .acc-block-label { margin-bottom: 0; }
.acc-trophcount {
  font-size: 10px; letter-spacing: .16em; color: var(--acid);
  border: 1px solid var(--acid-dim); background: var(--acid-soft);
  padding: 5px 10px;
}

/* ============================================================
   RESPONSIVE — collapse columns, stack, full-width buttons
   ============================================================ */
@media (max-width: 860px) {
  .acc-authwrap { grid-template-columns: 1fr; }
  .acc-statgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .acc-view { padding: 18px 16px 80px; }
  .acc-idcard { flex-direction: column; text-align: center; }
  .acc-idrow { justify-content: center; }
  .acc-idactions { justify-content: center; }
  .acc-adminlink { display: block; }
}

@media (max-width: 420px) {
  .acc-statgrid { grid-template-columns: 1fr; }
  .acc-editfoot .acc-submit { width: 100%; justify-content: center; }
  .acc-avatar { width: 116px; height: 116px; }
  .acc-avatar svg { width: 100px; height: 100px; }
  .acc-idactions { flex-direction: column; }
  .acc-minibtn { width: 100%; }
}
