/* Lobby and studio only. Deliberately NOT part of the game bundle:
   every byte here would otherwise be stored on chain inside each
   minted token, permanently, to style a builder the token never
   shows. */

/* ============ lobby ============ */

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.topbar .back { color: var(--accent); text-decoration: none; letter-spacing: .1em; text-transform: uppercase; }
.topbar .back:hover { text-decoration: underline; }
.topbar .daytag { color: var(--muted); }

.hero { margin: 40px 0 36px; }
.hero h1 { font-size: 26px; }
.hero-note {
  max-width: 60ch; margin: 14px auto 0; color: var(--muted);
  text-align: center; line-height: 1.7;
}

.daylist { display: flex; flex-direction: column; gap: 10px; }

.daycard {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--panel); color: inherit; text-decoration: none;
  transition: border-color .12s, transform .12s;
}
.daycard:hover { border-color: var(--accent); transform: translateX(2px); }
.daycard .dnum { color: var(--muted); font-size: 20px; opacity: .5; min-width: 2ch; }
.daycard .dbody { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.daycard .dname { font-size: 15px; letter-spacing: .04em; }
.daycard .dblurb { color: var(--muted); }
.daycard .dmeta { color: var(--muted); font-size: 11px; opacity: .75; }
.daycard .dgo { color: var(--accent); font-size: 12px; white-space: nowrap; }

.about { margin-top: 48px; }
.about .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.about h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; }
.about p { color: var(--muted); margin: 0; }

/* ============ the studio ============ */

.studio .stage { max-width: 720px; margin: 0 auto; padding: 30px 0 60px; }
.studio .wide-stage { max-width: 1120px; }
.studio h1 { font-size: 24px; margin-bottom: 10px; text-align: left; }
.stage-note { color: var(--muted); max-width: 62ch; line-height: 1.7; margin: 0 0 26px; }

.subject-row { display: flex; gap: 10px; margin-bottom: 26px; }
.subject-row input {
  flex: 1; padding: 14px 16px; font: inherit; font-size: 16px;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 3px;
}
.subject-row input:focus { outline: none; border-color: var(--accent); }
.subject-row button { padding: 14px 26px; }

.dials { display: grid; gap: 18px; margin-bottom: 30px; }
.dials label { display: flex; flex-direction: column; gap: 6px; }
.dials .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.dials select, .dials input[type=range] {
  font: inherit; padding: 8px; background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 3px;
}
.dials b { color: var(--muted); font-weight: 400; font-size: 12px; }

.suggestions .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
#suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.suggest {
  padding: 6px 12px; font: inherit; font-size: 12px; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 20px;
}
.suggest:hover { color: var(--accent); border-color: var(--accent); border-style: solid; }

.thinkbar { height: 2px; background: var(--line); overflow: hidden; margin-top: 30px; }
.thinkbar-fill { height: 100%; width: 30%; background: var(--accent); animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }

.draft-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.draft-actions { display: flex; gap: 8px; flex-shrink: 0; }

.critic { border: 1px solid var(--accent); border-radius: 3px; background: var(--accent-dim); padding: 16px 18px; margin-bottom: 22px; }
.critic-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.critic-who { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.critic-verdict { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.critic-verdict.v-ship { color: #2e7d32; }
.critic-verdict.v-tighten { color: #b26a00; }
.critic-verdict.v-rethink { color: var(--danger); }
.critic-reaction { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.cnote { display: grid; gap: 3px; padding: 9px 0; border-top: 1px solid var(--line); }
.ctarget { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cbody { line-height: 1.6; }
.cfix { color: var(--accent); border-left: 2px solid var(--accent); padding-left: 10px; margin-top: 4px; }
.cnote.s-serious .ctarget { color: var(--danger); }
.cnote.s-praise .ctarget { color: #2e7d32; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: 3px; background: var(--panel); padding: 16px 18px; }
.wide-card { grid-column: 1 / -1; }
.card h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.card-note { color: var(--muted); font-size: 12px; margin: 0 0 12px; line-height: 1.6; }
.reroll { font: inherit; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; cursor: pointer; }
.reroll:hover { color: var(--accent); border-color: var(--accent); }

.kv { display: grid; gap: 2px; }
.kvrow { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.kvrow .k { color: var(--muted); }
.release { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.release b { letter-spacing: .06em; }
.release span { color: var(--muted); line-height: 1.6; }

.headline { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.scrow { display: grid; grid-template-columns: 1fr 90px auto; gap: 10px; align-items: center; padding: 4px 0; }
.scrow .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scrow .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.scrow .bar i { display: block; height: 100%; background: var(--accent); }
.scrow .w { color: var(--muted); font-size: 11px; white-space: nowrap; }

.fork { border-top: 1px solid var(--line); padding: 12px 0; }
.fork-shape { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.fork-sides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; }
.fork-side { display: grid; gap: 4px; }
.fork-or { color: var(--muted); font-size: 11px; padding-top: 2px; }
.fdesc { color: var(--muted); font-size: 12px; }
.fmsg { font-style: italic; color: var(--muted); border-left: 2px solid var(--line); padding-left: 9px; line-height: 1.6; }

.myst { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 5px; }
.mcard { color: var(--muted); line-height: 1.6; }
.mtruth { line-height: 1.6; border-left: 2px solid var(--danger); padding-left: 10px; }
.mtruth .k { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.badge-preview { display: flex; align-items: center; gap: 14px; }
.badge-preview #dBadge { width: 56px; height: 56px; color: var(--ink); }
.badge-preview svg { width: 100%; height: 100%; }
.badge-preview span { color: var(--muted); }

.vstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 24px 0; }
.vstat { border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; background: var(--panel); }
.vstat .k { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vstat b { font-size: 16px; }
.verdict-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-block; padding: 12px 22px; text-decoration: none; border-radius: 3px; }
a.primary.button { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.deploy { border-color: var(--accent); color: var(--accent); }

.primer { margin-bottom: 26px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
.primer summary { padding: 12px 16px; cursor: pointer; color: var(--accent); font-size: 13px; }
.primer summary::marker { color: var(--muted); }
.primer-body { padding: 0 16px 14px; }
.primer-body p { color: var(--muted); line-height: 1.75; margin: 0 0 12px; }
.primer-body p:last-child { margin-bottom: 0; }
.primer-body b { color: var(--ink); font-weight: 600; }
.vstat .why { display: block; margin-top: 5px; font-size: 11px; line-height: 1.5; color: var(--muted); opacity: .8; }

/* ============ sign in ============ */

.authslot { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.authwho { color: var(--muted); font-family: inherit; }
.authlink {
  font: inherit; font-size: 12px; background: none; border: none; cursor: pointer;
  color: var(--accent); padding: 0; text-decoration: underline;
}
.authlink:hover { opacity: .75; }

.authwrap {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center;
  justify-content: center; padding: 20px; background: rgba(0,0,0,.45);
}
.authbox {
  position: relative; width: 100%; max-width: 400px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 4px; padding: 26px 24px;
}
.authbox h2 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.authclose {
  position: absolute; top: 10px; right: 12px; background: none; border: none;
  color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; padding: 4px;
}
.authnote { color: var(--muted); line-height: 1.7; margin: 0 0 18px; }
.authnote b { color: var(--ink); }
.authstep { display: grid; gap: 12px; }
.authstep label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.authstep input {
  font: inherit; font-size: 15px; padding: 11px 12px; border-radius: 3px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
}
.authstep input:focus { outline: none; border-color: var(--accent); }
.authstep .primary { padding: 11px; }
.authback {
  font: inherit; font-size: 12px; background: none; border: none; cursor: pointer;
  color: var(--muted); text-decoration: underline; padding: 0; justify-self: start;
}
.autherr { color: var(--danger); margin: 14px 0 0; line-height: 1.6; }
.authfine { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 18px 0 0; opacity: .8; }
