/* The early access page: sign in on top (or your own profile once signed in), the four badge lanes on the left,
   the rules and the board on the right. */
.early { padding-top: clamp(96px, 11vw, 128px); padding-bottom: 40px; display: grid; gap: 22px; }

/* ------------------------------------------------------------------ signed out */
.gate { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.gate-copy { display: grid; gap: 22px; justify-items: start; }
.gate-copy h1 { font-size: clamp(38px, 5.6vw, 70px); }
.gate-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-2); }
.gate-list li { padding-left: 20px; position: relative; }
.gate-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px rgba(255, 138, 36, .9); }
.terminal { padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; }
.terminal h2 { font-size: 28px; }
.terminal p { color: var(--ink-2); }
.terminal .btn { width: 100%; }
@media (max-width: 880px) { .gate { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ signed in: your profile */
.me { padding: 18px; display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 18px 20px; align-items: center; }
.me .face { width: 132px; height: 132px; box-shadow: 0 0 0 2px var(--tier, var(--line-2)), 0 0 44px -8px color-mix(in srgb, var(--tier, var(--orange)) 85%, transparent); }
.me .face.off img { filter: saturate(.25) brightness(.6); }
.me-id { display: grid; gap: 10px; min-width: 0; }
.me-name { font: 700 clamp(22px, 2.6vw, 30px)/1.1 var(--f-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.me-x { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.me-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 10px 26px; align-items: end; }
.stat { display: grid; gap: 6px; }
.stat b { font: 700 24px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.stat b[class^="t-"] { color: var(--tier); text-shadow: 0 0 18px color-mix(in srgb, var(--tier) 55%, transparent); }
.stat.big b { font-size: 44px; line-height: .95; }
/* the invite link and the friends it brought, on the profile itself */
.me-net { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--orange) 55%, transparent); background: rgba(255, 138, 36, .08); font-size: 14.5px; }
.me-net[hidden] { display: none; }
.me-net span { display: inline-flex; align-items: center; gap: 10px; }
.me-invite { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px 26px; align-items: end; border-top: 1px solid var(--line); padding-top: 14px; }
.invite-link { display: grid; gap: 8px; min-width: 0; }
.friends { display: grid; gap: 8px; min-width: 0; }
.friends-row { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.friends-row b { font: 700 26px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--cream); }
.dots { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-width: 0; }
.dots small { font: 500 11px/1 var(--f-mono); color: var(--muted); margin-left: 4px; }
.dot { --c: var(--line-2); width: 11px; height: 11px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.dot.on { background: var(--c); box-shadow: 0 0 10px -1px var(--c); }
.dot.c0 { --c: #7EE7A0; } .dot.c1 { --c: #FFB54A; } .dot.c2 { --c: #8AE3F6; } .dot.c3 { --c: #FDC23E; } .dot.c4 { --c: #D3D3DA; }
.dot.c5 { --c: #FF8466; } .dot.c6 { --c: #CF8BF7; } .dot.c7 { --c: #E9E6DF; } .dot.c8 { --c: #FFDA6E; }
.me-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.me-acts > .small { flex: 1 1 320px; min-width: 0; }
.me-btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1040px) {
  .me { grid-template-columns: 96px minmax(0, 1fr); }
  .me .face { width: 96px; height: 96px; }
  .me-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 760px) { .me-invite { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .me-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat.big b { font-size: 36px; }
}

/* ------------------------------------------------------------------ the two columns */
.e-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 22px; align-items: start; }
.col { display: grid; gap: 22px; min-width: 0; }
.col-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.side { gap: 14px; position: sticky; top: 84px; }
@media (max-width: 980px) {
  .e-grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
}

/* ------------------------------------------------------------------ lanes */
.lane-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.lane-link { display: inline-flex; align-items: baseline; gap: 9px; padding: 9px 13px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); text-decoration: none; font: 600 14px/1 var(--f-display); color: var(--ink); transition: border-color .2s, box-shadow .25s; }
.lane-link:hover { border-color: var(--orange); box-shadow: 0 0 26px -10px rgba(255, 138, 36, .7); }
.lane-link small { font: 500 11px/1 var(--f-mono); color: var(--amber); letter-spacing: .06em; }
.lane { display: grid; gap: 12px; scroll-margin-top: 84px; }
.lane-head { display: grid; gap: 8px; }
.lane-head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.lane-head p { color: var(--ink-2); font-size: 14.5px; max-width: 62ch; }
.cards { display: grid; gap: 10px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .cards.two { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ a badge */
.card { padding: 14px 16px; display: grid; gap: 12px; align-content: start; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.card-main { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.em { display: grid; gap: 7px; justify-items: center; }
.em .emblem { width: 58px; border-radius: 7px; transition: box-shadow .3s; }
/* the small number under a badge: the share of members holding it */
.share { display: grid; justify-items: center; gap: 3px; font: 700 12px/1 var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
.share small { font: 500 8.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.tx { display: grid; gap: 5px; min-width: 0; }
.tx h3 { font-size: 16.5px; }
.tx p { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
/* earned or not: what a badge is worth is never shown */
.card-main > .chip { align-self: start; }
.status.later { font: 500 9px/1.35 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); max-width: 12ch; text-align: right; }
.card.has { border-color: rgba(79, 227, 161, .38); }
.card.has .emblem { box-shadow: inset 0 0 0 1px rgba(255, 138, 36, .25), 0 10px 30px -14px rgba(255, 138, 36, .8); }
.card.soon { opacity: .66; }
.card.soon .tx h3 { color: var(--ink-2); }
.card-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card-act .grow { flex: 1 1 220px; min-width: 0; }
.field { width: 100%; padding: 10px 12px; border-radius: 7px; border: 1px solid var(--line-2); background: rgba(5, 3, 10, .7); font: 500 13.5px/1.3 var(--f-mono); color: var(--ink); }
.field::placeholder { color: var(--faint); }
.field:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.field:disabled { opacity: .55; cursor: not-allowed; }
/* a scan line sweeps across a card while X or the chain is being asked */
.card.busy::after, .tool.busy::after { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 190, 110, .22), rgba(255, 244, 214, .5), transparent); animation: scanning 1s linear infinite; pointer-events: none; }
@keyframes scanning { from { left: -30%; } to { left: 100%; } }
.card.won { animation: won .9s var(--ease); }
@keyframes won { 0% { box-shadow: 0 0 0 0 rgba(79, 227, 161, .9); } 100% { box-shadow: 0 0 0 26px rgba(79, 227, 161, 0); } }
.card.nope { animation: nope .4s; }
@keyframes nope { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.card.pop .emblem { animation: pop 1s var(--ease); }
@keyframes pop { 0% { transform: scale(.6); filter: brightness(4); } 40% { transform: scale(1.14); filter: brightness(2); } 100% { transform: none; filter: none; } }
.streak { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.streak i { height: 9px; border-radius: 2px; background: var(--line); }
.streak i.on { background: linear-gradient(180deg, var(--cream), var(--orange)); box-shadow: 0 0 10px -2px rgba(255, 138, 36, .9); }

/* ------------------------------------------------------------------ the tool above a lane */
.tool { padding: 16px 18px; display: grid; gap: 10px; overflow: hidden; }
.tool h3 { font-size: 17px; }
.tool-act { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.copyrow { display: flex; gap: 8px; align-items: stretch; }
.copyrow .field { text-overflow: ellipsis; }

/* ------------------------------------------------------------------ submitting a project */
.submit { gap: 14px; }
.submit.locked { background-image: linear-gradient(180deg, rgba(34, 21, 58, .28), rgba(12, 8, 22, .1)); }
.submit.locked .label { color: var(--faint); }
.submit-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.submit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fl { display: grid; gap: 7px; min-width: 0; }
.fl.wide { grid-column: 1 / -1; }
.fl textarea { resize: none; }
.submit .btn { justify-self: start; }
.cover-pick { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 14px; align-items: start; }
.cover-side { display: grid; gap: 8px; min-width: 0; }
.cover > .small { padding: 0 10px; text-align: center; }
@media (max-width: 560px) {
  .submit-grid, .cover-pick { grid-template-columns: minmax(0, 1fr); }
}
.mine { display: grid; gap: 8px; }
.mine h3, .verified h3 { font-size: 17px; }
.mine-row { padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.mine-name { display: grid; gap: 4px; min-width: 0; }
.mine-name b { font: 600 15px/1.2 var(--f-display); overflow-wrap: anywhere; }
.mine-name small { font: 500 11px/1.2 var(--f-mono); color: var(--muted); overflow-wrap: anywhere; }
.mine-row p { grid-column: 1 / -1; }
/* the way to the page of verified projects */
.verified-link { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; text-decoration: none; transition: border-color .2s, box-shadow .25s; }
.verified-link:hover { border-color: var(--orange); box-shadow: 0 0 30px -12px rgba(255, 138, 36, .7); }
.verified-text { display: grid; gap: 4px; min-width: 0; }
.verified-text h3 { font-size: 17px; }

/* ------------------------------------------------------------------ rules and the board */
.rules { padding: 16px; display: grid; gap: 12px; }
.rule-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.rule-list li { padding-left: 16px; position: relative; }
.rule-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px rgba(255, 138, 36, .9); }

.board { padding: 16px; display: grid; gap: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { padding: 7px 11px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); transition: border-color .2s, color .2s, background-color .2s; }
.tab:hover { border-color: var(--tier, var(--amber)); color: var(--ink); }
.tab[aria-selected="true"] { border-color: var(--tier, var(--amber)); color: var(--tier, var(--amber)); background: color-mix(in srgb, var(--tier, var(--amber)) 10%, transparent); box-shadow: 0 0 22px -10px var(--tier, var(--amber)); }
.board .rows { max-height: 520px; overflow: auto; padding-right: 2px; align-content: start; }
.you-row { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
/* beside the lanes the right column stays in view, and the list takes whatever height is left */
@media (min-width: 981px) {
  .side { max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
  .side .rules { flex: none; }
  .side .board { min-height: 0; display: flex; flex-direction: column; }
  .side .board > * { flex: none; }
  .side .board .rows { flex: 1 1 auto; min-height: 96px; max-height: none; }
}
