/* ============================================================
   Lunicle — "Lunamux Dark" terminal aesthetic, matching
   the marketing site (lunamux-web/styles.css) so the embedded
   iframe reads as part of the page framing it rather than as a
   pasted-in third-party widget.

   NOTE: the --green* custom-property names are historical, kept
   in step with lunamux-web — they hold the navy/cyan palette,
   not green.
   ============================================================ */

:root {
  --bg:        #04090f;   /* near-black navy ground */
  --panel:     #070f1a;   /* surface */
  --panel-2:   #0b1626;   /* raised surface */
  --green:     #4dc8f5;   /* primary text — cyan glow */
  --green-hi:  #66d9ff;   /* bright accent — vivid cyan */
  --green-dim: #5f7590;   /* secondary / comments */
  --border:    rgba(77, 200, 245, .20);
  --border-hi: rgba(77, 200, 245, .45);
  --glow:      rgba(77, 200, 245, .35);
  --red:       #ff5f57;
  --head:      #eaf3fb;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* Transparent rather than painted: inside the lunamux.dev iframe the
     surrounding page's background shows through, so the embed has no seam.
     Opened directly, the html background below supplies the ground. */
  background: transparent;
  color: var(--green);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html { background: var(--bg); }

/* Fill the frame and centre the panel in it. min-height rather than height so
   a short viewport scrolls instead of clipping the panel. */
#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.counter {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 40px 44px;
  text-align: center;
  max-width: 420px;
  width: 100%;
}

.counter-eyebrow {
  color: var(--green-dim);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.counter-value {
  color: var(--green-hi);
  text-shadow: 0 0 18px var(--glow);
  font-size: 72px;
  line-height: 1;
  font-variant-numeric: tabular-nums; /* the digits must not jitter on change */
  margin: 0 0 24px;
}

.counter-btn {
  font-family: inherit;
  font-size: 14px;
  color: var(--green-hi);
  background: var(--panel-2);
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}

.counter-btn:hover:not(:disabled) {
  background: #10203a;
  box-shadow: 0 0 14px var(--glow);
}

.counter-btn:disabled {
  opacity: .5;
  cursor: default;
}

.counter-note {
  color: var(--green-dim);
  font-size: 12px;
  margin: 22px 0 0;
}

/* Reserves no space when empty, so the panel does not jump when an error
   appears and clears. */
.counter-error {
  color: var(--red);
  font-size: 12px;
  margin: 12px 0 0;
  min-height: 1.6em;
}

/* ============================================================
   Sign-in row — Stage 2.

   Sits inside .counter, below the note, separated by a rule: the
   identity belongs to the same card as the thing it owns, and a
   second floating panel would imply the two are unrelated.
   ============================================================ */

.signin {
  border-top: 1px solid var(--border);
  margin: 24px 0 0;
  padding: 20px 0 0;
  /* Reserve the row's height before the first session fetch returns. The view
     toggles visibility rather than display for the same reason: a card that
     grows a centimetre once the server answers reads as a glitch. */
  min-height: 76px;
}

.signin-greeting {
  color: var(--head);
  font-size: 13px;
  margin: 0 0 14px;
}

.signin-btn {
  font-family: inherit;
  font-size: 13px;
  color: var(--green-hi);
  background: var(--panel-2);
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  padding: 9px 16px;
  margin: 0 4px;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}

.signin-btn:hover:not(:disabled) {
  background: #10203a;
  box-shadow: 0 0 14px var(--glow);
}

.signin-btn:disabled {
  opacity: .5;
  cursor: default;
}

/* Sign out is not a call to action — it should be findable, not inviting. */
.signin-btn-quiet {
  color: var(--green-dim);
  border-color: var(--border);
}

.signin-error {
  color: var(--red);
  font-size: 12px;
  margin: 12px 0 0;
  min-height: 1.6em;
}
