/* ============================================================
   Genealogy screen — mobile, in prototype
   ============================================================ */

.gl-screen {
  padding-top: 8px;
  padding-bottom: 16px;
}

.gl-card {
  margin: 0 14px;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: inset 0 0 0 0.5px var(--rule);
}
.gl-card-eye {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--graphite);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gl-card-eye-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.gl-card-eye-r {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--graphite-2);
  text-transform: uppercase;
}
.gl-rule {
  height: 1px;
  background: var(--rule);
  margin: 12px 0;
}

/* hero card with rings */
.gl-hero {
  margin: 12px 14px 0;
  padding: 10px 8px 14px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--bone) 100%);
  border-radius: 14px;
  box-shadow: inset 0 0 0 0.5px var(--rule);
}
.gl-rings {
  display: block;
  margin: 0 auto;
}

@keyframes gl-spin {
  to { transform: rotate(360deg); }
}
@keyframes gl-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.gl-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1px;
  margin-top: 8px;
  background: var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.gl-stat .v.sm {
  font-size: 16px;
}
.gl-stat {
  background: var(--paper);
  padding: 10px 8px;
  text-align: center;
}
.gl-stat .k {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--graphite);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gl-stat .v {
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-top: 4px;
  color: var(--ink);
}
.gl-stat .s {
  font-size: 9px;
  color: var(--graphite-2);
  margin-top: 2px;
}

/* earnings rollup */
.gl-earn-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 10px;
}
.gl-earn-num {
  font-family: var(--f-mono);
  font-size: 30px;
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
}
.gl-earn-num span {
  font-size: 11px;
  color: var(--graphite);
  margin-left: 6px;
  letter-spacing: 0.06em;
}
.gl-earn-meta {
  text-align: right;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--graphite);
}
.gl-earn-up {
  color: var(--green);
  margin-top: 2px;
  font-size: 10px;
}
.gl-earn-mini {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.gl-earn-mini > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gl-earn-mini span {
  font-size: 9px;
  color: var(--graphite);
  letter-spacing: 0.06em;
}
.gl-earn-mini b {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
}

/* upline */
.gl-upline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.gl-upline-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bone);
  border-radius: 8px;
  position: relative;
}
.gl-upline-row::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -6px;
  width: 1px;
  height: 6px;
  background: rgba(200,136,78,0.4);
}
.gl-upline-row:first-child::before { display: none; }
.gl-upline-bullet {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.2px solid var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--copper-2);
  font-weight: 500;
  flex-shrink: 0;
}
.gl-upline-mid {
  flex: 1;
  min-width: 0;
}
.gl-upline-addr {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
}
.gl-upline-meta {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--copper-2);
  margin-top: 2px;
}
.gl-upline-share {
  text-align: right;
  font-family: var(--f-mono);
}
.gl-upline-share > div:first-child {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
}
.gl-upline-share span {
  font-size: 9px;
  color: var(--graphite);
  margin-left: 1px;
}
.gl-upline-share .s {
  font-size: 8px;
  color: var(--graphite-2);
  letter-spacing: 0.08em;
  margin-top: 1px;
}

/* distribution */
.gl-dist {
  margin-top: 12px;
}
.gl-dist-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 56px;
  padding-bottom: 12px;
  position: relative;
}
.gl-dist-col {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}
.gl-dist-bar {
  width: 100%;
  background: rgba(11,11,12,0.6);
  min-height: 3px;
  border-radius: 1px 1px 0 0;
  position: relative;
  transition: all .2s;
}
.gl-dist-col.on .gl-dist-bar {
  background: var(--ink);
  box-shadow: 0 -3px 8px -2px rgba(200,136,78,0.4);
}
.gl-dist-nodes {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--copper);
  border-radius: 1px 1px 0 0;
  min-height: 2px;
}
.gl-dist-tick {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 7px;
  color: var(--graphite-2);
}
.gl-dist-col.on .gl-dist-tick { color: var(--copper); font-weight: 500; }
.gl-dist-readout {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}
.gl-dist-eye {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--graphite);
  text-transform: uppercase;
}
.gl-dist-num {
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-top: 3px;
  color: var(--ink);
}
.gl-dist-num span {
  font-size: 11px;
  color: var(--copper);
  margin-left: 1px;
}
.gl-dist-sub {
  font-size: 10px;
  color: var(--graphite-2);
  margin-top: 2px;
}

/* downline list */
.gl-empty {
  padding: 16px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--graphite);
  margin-top: 6px;
}
.gl-empty .s {
  font-size: 10px;
  color: var(--graphite-2);
  margin-top: 4px;
}
.gl-down-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}
.gl-down-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: var(--bone);
  border-radius: 8px;
}
.gl-bullet {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--copper);
  flex-shrink: 0;
}
.gl-down-addr {
  flex: 1;
  font-family: var(--f-mono);
  font-size: 11px;
}
.gl-down-gen {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--graphite);
  letter-spacing: 0.08em;
}
.gl-down-pay {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--copper-2);
}
.gl-tag-node {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--copper-2);
  background: rgba(200,136,78,0.14);
  padding: 2px 5px;
  border-radius: 4px;
}

/* gen list summary strip */
.gl-genlist-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  margin-top: 10px;
  background: var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.gl-genlist-strip > div {
  background: var(--bone);
  padding: 8px 10px;
  text-align: center;
}
.gl-genlist-k {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--graphite);
  text-transform: uppercase;
}
.gl-genlist-v {
  font-family: var(--f-mono);
  font-size: 16px;
  font-weight: 300;
  margin-top: 3px;
  color: var(--ink);
}
.gl-genlist-v span {
  font-size: 9px;
  color: var(--copper);
  margin-left: 1px;
}
.gl-down-more {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--copper-2);
  text-align: center;
  padding: 8px;
  margin-top: 2px;
  cursor: pointer;
}

/* live feed */
.gl-pulse-dot, .gl-live {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: gl-pulse 1.6s ease-in-out infinite;
}
@keyframes gl-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31,138,91,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(31,138,91,0); }
}
.gl-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gl-feed-row {
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  background: var(--bone);
  border-radius: 8px;
}
.gl-feed-gen {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--copper);
  letter-spacing: 0.06em;
  width: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}
.gl-feed-body { flex: 1; min-width: 0; }
.gl-feed-l1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.gl-feed-addr {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink);
}
.gl-feed-v {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink);
}
.gl-feed-v.plus { color: var(--green); }
.gl-feed-v.minus { color: var(--red); }
.gl-feed-v.copper { color: var(--copper-2); }
.gl-feed-l2 {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--graphite-2);
  margin-top: 2px;
  letter-spacing: 0.04em;
}
