/* Shared styles for the Get Access flow frames */

/* ============ PAGE FRAME ============ */
.ga-page {
  min-height: calc(100vh - 62px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
}

.ga-art {
  position: relative;
  background: linear-gradient(135deg, #2e3156 0%, #1a1b2e 100%);
  border-right: 2px solid var(--line-2);
  overflow: hidden;
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}
.ga-art::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,217,102,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(78,201,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.ga-art > * { position: relative; z-index: 1; }
.ga-art h1 {
  font-family: "Press Start 2P", monospace;
  font-size: 36px; line-height: 1.35;
  text-shadow: 4px 4px 0 var(--pink);
  margin-bottom: 14px;
}
.ga-art .lede {
  font-family: "VT323", monospace;
  font-size: 22px; color: var(--dim);
  line-height: 1.45; max-width: 520px;
}

.ga-tag {
  font-family: "Press Start 2P", monospace;
  font-size: 10px; color: var(--cyan); letter-spacing: 0.12em;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border: 2px solid var(--cyan);
  background: rgba(78,201,255,0.06);
  align-self: flex-start;
  margin-bottom: 16px;
}
.ga-tag::before {
  content: ""; width: 8px; height: 8px; background: currentColor;
  box-shadow: 0 0 8px currentColor; animation: pxs-pulse 1.6s infinite;
}

/* ============ FORM SIDE ============ */
.ga-form-wrap {
  padding: 60px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg);
}
.ga-form { max-width: 460px; width: 100%; margin: 0 auto; }

.ga-step-rail {
  display: flex; gap: 0; margin-bottom: 28px;
  font-family: "Press Start 2P", monospace; font-size: 8px;
  letter-spacing: 0.12em;
}
.ga-step-rail .step {
  flex: 1; padding: 10px 8px; text-align: center;
  background: var(--bg-1); border: 2px solid var(--line-2);
  border-right: 0; color: var(--mute);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.3);
}
.ga-step-rail .step:last-child { border-right: 2px solid var(--line-2); }
.ga-step-rail .step.cur { background: var(--yellow); color: #1a1b2e; border-color: var(--yellow); box-shadow: none; }
.ga-step-rail .step.done { background: var(--green); color: #1a1b2e; border-color: var(--green); box-shadow: none; }

.ga-h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 18px; color: var(--yellow);
  text-shadow: 3px 3px 0 var(--pink);
  line-height: 1.35; margin-bottom: 10px;
}
.ga-sub {
  font-family: "VT323", monospace; font-size: 19px;
  color: var(--dim); margin-bottom: 24px; line-height: 1.4;
}

.ga-field-block { margin-bottom: 14px; }
.ga-field-block label {
  display: block; font-family: "Press Start 2P", monospace;
  font-size: 10px; color: var(--cyan); margin-bottom: 8px; letter-spacing: 0.06em;
}
.ga-input {
  width: 100%; background: var(--bg-2); border: 2px solid var(--line-2);
  color: var(--ink); padding: 14px 14px;
  font-family: "VT323", monospace; font-size: 22px; outline: 0;
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.3);
}
.ga-input:focus { border-color: var(--yellow); }
.ga-code-input {
  font-family: "Press Start 2P", monospace; font-size: 16px;
  letter-spacing: 0.18em; text-transform: uppercase;
}

.ga-cta {
  width: 100%; padding: 18px;
  font-family: "Press Start 2P", monospace; font-size: 13px;
  margin-top: 10px;
}
.ga-trust {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 14px;
  font-family: "VT323", monospace; font-size: 15px; color: var(--mute);
}
.ga-trust .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; background: var(--bg-1); border: 1px solid var(--line);
}
.ga-trust .pill::before {
  content: ""; width: 6px; height: 6px; background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.ga-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 28px 0 20px;
  font-family: "Press Start 2P", monospace; font-size: 9px;
  color: var(--mute); letter-spacing: 0.1em;
}
.ga-divider::before, .ga-divider::after {
  content: ""; flex: 1; height: 2px; background: var(--line-2);
}
.ga-oauth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ga-have-code {
  margin-top: 22px; padding-top: 22px;
  border-top: 1px dotted var(--line-2);
  font-family: "VT323", monospace; font-size: 17px; color: var(--mute);
  text-align: center;
}
.ga-have-code .toggle {
  color: var(--cyan); border-bottom: 1px dotted var(--cyan); cursor: pointer;
}

.ga-foot {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px dotted var(--line-2);
  font-family: "VT323", monospace; font-size: 16px; color: var(--mute);
  text-align: center;
}
.ga-foot a { color: var(--cyan); border-bottom: 1px dotted var(--cyan); }

.ga-hint {
  margin-top: 8px; padding: 10px 12px;
  background: rgba(78,201,255,0.05);
  border: 1px dashed var(--line-2);
  font-family: "VT323", monospace; font-size: 16px; color: var(--dim);
  line-height: 1.35;
}
.ga-hint b {
  color: var(--cyan); font-family: "Press Start 2P", monospace;
  font-size: 9px; letter-spacing: 0.06em;
}

/* ============ LIVE SHARD WINDOW (default state) ============ */
.ga-shard {
  background: var(--bg-1); border: 2px solid var(--line-2);
  box-shadow: 5px 5px 0 #000;
}
.ga-shard-h {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: var(--bg-2); border-bottom: 2px solid var(--line-2);
  font-family: "Press Start 2P", monospace; font-size: 9px;
  color: var(--mute); letter-spacing: 0.08em;
}
.ga-shard-h .live { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.ga-shard-h .live::before {
  content: ""; width: 8px; height: 8px; background: var(--green);
  box-shadow: 0 0 8px var(--green); animation: pxs-pulse 1.6s infinite;
}
.ga-shard-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 2px solid var(--line-2);
}
.ga-shard-stats .cell {
  padding: 14px 16px;
  font-family: "VT323", monospace; font-size: 15px; color: var(--mute);
  letter-spacing: 0.06em;
  border-right: 1px dotted var(--line-2);
}
.ga-shard-stats .cell:last-child { border-right: 0; }
.ga-shard-stats .cell b {
  display: block; font-family: "Press Start 2P", monospace;
  font-size: 16px; color: var(--yellow); margin-bottom: 6px;
}
.ga-shard-feed { padding: 6px 0; }
.ga-shard-feed .row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px;
  align-items: center; padding: 8px 14px;
  font-family: "VT323", monospace; font-size: 17px; color: var(--ink);
  border-bottom: 1px dotted var(--line);
}
.ga-shard-feed .row:last-child { border-bottom: 0; }
.ga-shard-feed .av {
  width: 32px; height: 32px; display: grid; place-items: center;
  font-family: "Press Start 2P", monospace; font-size: 11px; color: #1a1b2e;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4); border: 2px solid rgba(0,0,0,0.4);
}
.ga-shard-feed .who small {
  display: block; font-family: "Press Start 2P", monospace;
  font-size: 8px; letter-spacing: 0.08em; color: var(--mute); margin-top: 4px;
}
.ga-shard-feed .verb {
  font-family: "Press Start 2P", monospace; font-size: 9px;
  color: var(--cyan); letter-spacing: 0.06em;
}
.ga-shard-feed .verb.kill { color: var(--red); }
.ga-shard-feed .verb.craft { color: var(--orange); }
.ga-shard-feed .verb.lvl { color: var(--green); }

.ga-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.ga-feat {
  padding: 12px 14px;
  background: rgba(35,37,66,0.6);
  border: 2px solid var(--line);
  font-family: "VT323", monospace; font-size: 15px; color: var(--dim);
  line-height: 1.35;
}
.ga-feat b {
  display: block; font-family: "Press Start 2P", monospace;
  font-size: 9px; color: var(--yellow); letter-spacing: 0.06em;
  margin-bottom: 6px;
}

/* ============ KEY ART (gate) ============ */
.ga-key-art {
  background: var(--bg-1); border: 2px solid var(--line-2);
  box-shadow: 5px 5px 0 #000;
  display: flex; flex-direction: column;
}
.ga-key-art-h {
  padding: 10px 14px;
  background: var(--bg-2); border-bottom: 2px solid var(--line-2);
  font-family: "Press Start 2P", monospace; font-size: 9px;
  color: var(--yellow); letter-spacing: 0.08em;
}
.ga-key-art-foot {
  padding: 10px 14px;
  background: var(--bg-2); border-top: 2px solid var(--line-2);
  font-family: "VT323", monospace; font-size: 15px; color: var(--mute);
  display: flex; justify-content: space-between;
}
.ga-key-art-foot b { color: var(--ink); }

.ga-gate {
  position: relative; height: 220px;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.2) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #2e3156 0%, #1a1b2e 100%);
  display: grid; place-items: center; overflow: hidden;
}
.ga-gate::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,217,102,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(78,201,255,0.05) 1px, transparent 1px);
  background-size: 16px 16px;
}
.gate-arch {
  position: relative;
  width: 140px; height: 160px;
  background: var(--bg-2);
  border: 4px solid var(--yellow);
  border-bottom: 0;
  border-radius: 70px 70px 0 0;
  box-shadow:
    inset 0 -8px 0 rgba(0,0,0,0.4),
    8px 8px 0 #000;
}
.gate-arch::before, .gate-arch::after {
  content: ""; position: absolute; bottom: 0; width: 16px; height: 60px;
  background: var(--bg-3); border: 3px solid var(--line-2);
}
.gate-arch::before { left: -3px; }
.gate-arch::after { right: -3px; }
.gate-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 60%, rgba(255,217,102,0.35) 0%, transparent 50%);
  animation: pxs-pulse 2.2s infinite;
}
.gate-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: "Press Start 2P", monospace; font-size: 11px; color: var(--yellow);
  text-align: center; line-height: 1.6;
  text-shadow: 2px 2px 0 #000;
}
.ga-gate.idle .gate-arch { border-color: var(--mute); }
.ga-gate.idle .gate-label { color: var(--mute); }

/* ============ QUEUE (waitlisted state) ============ */
.ga-queue {
  background: var(--bg-1); border: 2px solid var(--line-2);
  box-shadow: 5px 5px 0 #000;
}
.queue-h {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: var(--bg-2); border-bottom: 2px solid var(--line-2);
  font-family: "Press Start 2P", monospace; font-size: 9px;
  color: var(--mute); letter-spacing: 0.08em;
}
.queue-h .live { color: var(--yellow); display: inline-flex; align-items: center; gap: 8px; }
.queue-h .live::before {
  content: ""; width: 8px; height: 8px; background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow); animation: pxs-pulse 1.6s infinite;
}

.queue-position {
  padding: 24px 22px 20px;
  text-align: center;
  border-bottom: 1px dotted var(--line-2);
}
.qp-num {
  font-family: "Press Start 2P", monospace;
  font-size: 56px; color: var(--yellow);
  text-shadow: 5px 5px 0 var(--pink);
  letter-spacing: 0.04em; line-height: 1;
  margin-bottom: 12px;
}
.qp-num .qp-hash { color: var(--cyan); }
.qp-num .qp-comma { color: var(--mute); }
.qp-meta {
  font-family: "Press Start 2P", monospace; font-size: 9px;
  color: var(--mute); letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.qp-bar {
  position: relative; height: 16px;
  background: var(--bg-2); border: 2px solid var(--line-2);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.3);
  overflow: hidden;
}
.qp-bar-fill {
  height: 100%; background: var(--yellow);
  background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0,0,0,0.15) 6px 12px);
  border-right: 2px solid var(--ink);
}
.qp-bar-marker {
  position: absolute; top: -4px; bottom: -4px;
  width: 4px; background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: translateX(-2px);
}
.qp-bar-labels {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-family: "VT323", monospace; font-size: 14px; color: var(--mute);
}

.queue-feed { padding: 4px 0; }
.qf-row {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 10px;
  align-items: center; padding: 10px 14px;
  font-family: "VT323", monospace; font-size: 16px; color: var(--ink);
  border-bottom: 1px dotted var(--line);
}
.qf-row:last-child { border-bottom: 0; }
.qf-row.faded { color: var(--mute); }
.qf-tick {
  font-family: "Press Start 2P", monospace; font-size: 10px;
  color: var(--green); text-align: center;
}
.qf-row.faded .qf-tick { color: var(--mute); }
.qf-time {
  font-family: "Press Start 2P", monospace; font-size: 8px;
  color: var(--mute); letter-spacing: 0.06em;
}

/* ============ SKIP CARDS ============ */
.skip-card {
  padding: 18px;
  background: var(--bg-1); border: 2px solid var(--line-2);
  box-shadow: 4px 4px 0 #000;
  margin-bottom: 14px;
}
.skip-card.big {
  border-color: var(--yellow);
  box-shadow: 5px 5px 0 #000, inset 0 0 0 1px rgba(255,217,102,0.2);
  background: linear-gradient(180deg, rgba(255,217,102,0.06), transparent 60%), var(--bg-1);
}
.skip-h {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-family: "Press Start 2P", monospace; font-size: 10px; color: var(--ink);
  letter-spacing: 0.06em;
}
.skip-h .num {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  background: var(--bg-2); border: 2px solid var(--line-2);
  font-size: 9px; color: var(--cyan);
  box-shadow: 2px 2px 0 #000;
}
.skip-card.big .skip-h .num {
  background: var(--yellow); color: #1a1b2e; border-color: var(--yellow);
}
.skip-h .title { flex: 1; }
.skip-h .badge {
  font-size: 8px; padding: 3px 6px;
  background: rgba(255,217,102,0.12);
  color: var(--yellow);
  border: 1px solid var(--yellow);
}
.skip-body {
  font-family: "VT323", monospace; font-size: 17px;
  color: var(--dim); line-height: 1.4; margin-bottom: 12px;
}
.ref-link-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0;
  margin-bottom: 10px;
}
.ref-link-row .ga-input {
  font-family: "Press Start 2P", monospace; font-size: 11px;
  letter-spacing: 0.04em; color: var(--cyan);
}
.ref-share {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.ref-share .pxs-btn { font-size: 9px; padding: 8px 10px; }
.ref-count {
  margin-left: auto;
  font-family: "VT323", monospace; font-size: 15px; color: var(--mute);
}

/* ============ SIGN-IN (tightened) ============ */
.signin-page {
  min-height: calc(100vh - 62px);
  display: grid; place-items: center;
  padding: 60px 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(78,201,255,0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,107,179,0.04) 0%, transparent 40%);
}
.signin-card {
  width: 100%; max-width: 460px;
  padding: 36px 36px 30px;
  background: var(--bg-1); border: 2px solid var(--line-2);
  box-shadow: 6px 6px 0 #000;
}
.signin-h {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px dotted var(--line-2);
}
.brand-mark {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--yellow); color: #1a1b2e;
  font-family: "Press Start 2P", monospace; font-size: 28px;
  border: 2px solid var(--yellow);
  box-shadow: 4px 4px 0 #000;
}
.signin-eyebrow {
  font-family: "Press Start 2P", monospace; font-size: 9px;
  color: var(--cyan); letter-spacing: 0.12em; margin-bottom: 6px;
}
.signin-foot {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px dotted var(--line-2);
}
.last-seen-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  font-family: "VT323", monospace; font-size: 15px; color: var(--dim);
}
.last-seen-row .dot {
  width: 8px; height: 8px; background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.last-seen-row b { color: var(--cyan); }

/* password strength bars */
.pwbar { flex: 1; height: 6px; background: var(--bg-2); border: 1px solid var(--line); }
.pwbar.weak { background: var(--red); border-color: var(--red); }
.pwbar.fair { background: var(--orange); border-color: var(--orange); }
.pwbar.good { background: var(--yellow); border-color: var(--yellow); }
.pwbar.strong { background: var(--green); border-color: var(--green); }

@media (max-width: 1100px) {
  .ga-page { grid-template-columns: 1fr; }
  .ga-art { padding: 40px; border-right: 0; border-bottom: 2px solid var(--line-2); }
  .ga-form-wrap { padding: 40px; }
}
@media (max-width: 640px) {
  .ga-art, .ga-form-wrap { padding: 28px 20px; }
  .ga-features { grid-template-columns: 1fr; }
  .ga-oauth-grid { grid-template-columns: 1fr; }
}
