/* ============================================================================
   japanese.org — portal application skin
   Sits on top of app.css (shell, rail, views) and lacquer.css (tokens).
   ========================================================================= */

.rail__brand .pbrand__k { width: 26px; height: 26px; color: var(--kin); }
.rail { background: linear-gradient(180deg, var(--lac-2), var(--lac)); }
.navi.on { background: var(--kin); color: #1A1408; }
.navi.on .navi__k { color: #1A1408; }
.navi__k { color: var(--kin); }
.topbar { background: color-mix(in srgb, var(--lac) 88%, transparent); }

/* ---------- identity pill ------------------------------------------------ */

.idpill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .3rem .8rem .3rem .35rem;
  border: 1px solid var(--panel-bd); border-radius: 100px;
  font-family: var(--mono); font-size: .72rem; color: var(--kin);
  background: var(--kin-soft);
}
.idpill__k { width: 22px; height: 22px; color: var(--kin); flex: none; }

/* ---------- interpreter -------------------------------------------------- */

.agent { max-width: 860px; }
.agent__log { display: grid; gap: 1.1rem; margin-bottom: 1.2rem; min-height: 40vh; }

.bubble {
  border: 1px solid var(--hairline); border-radius: var(--r-l);
  padding: 1.1rem 1.25rem;
  animation: bIn .4s var(--ease-out);
}
@keyframes bIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.bubble--you {
  background: rgba(0,0,0,.3);
  border-color: var(--hairline);
  margin-left: auto; max-width: 82%;
}
.bubble--you .jp { font-family: var(--mincho); font-size: 1.1rem; line-height: 1.9; color: var(--sumi); }

.bubble--out {
  background: linear-gradient(180deg, var(--lac-3), var(--lac-2));
  border-color: var(--panel-bd);
  display: grid; gap: .9rem;
}
.bubble__who {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--kin);
}
.bubble__who i { width: 18px; height: 18px; color: var(--kin); flex: none; }
.bubble__lit { font-size: .86rem; color: var(--ink-faint); font-style: italic; line-height: 1.55; }
.bubble__real { font-size: 1rem; line-height: 1.65; color: var(--sumi-2); border-left: 2px solid var(--kin); padding-left: .9rem; }
.bubble__miss { font-size: .94rem; color: var(--ink-soft); line-height: 1.65; }

.agent__bar { display: flex; gap: .5rem; align-items: center; }
.agent__in {
  flex: 1; min-width: 0;
  padding: .72rem 1rem; border-radius: 100px;
  border: 1px solid var(--hairline); background: rgba(0,0,0,.35);
  font-family: var(--sans); font-size: .88rem; color: var(--sumi);
  transition: border-color .25s;
}
.agent__in:focus { outline: none; border-color: var(--kin); }
.agent__seeds { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .8rem; }

/* ---------- vault / campaigns in-app ------------------------------------- */

.view .vgrid { grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); }
/* Cards differ in copy length; the action still has to sit on one line. */
.view .vcard { display: flex; flex-direction: column; }
.view .vcard > div:last-child { margin-top: auto; }
.field { background: rgba(0,0,0,.35); border-color: var(--hairline); color: var(--sumi); }
.field:focus { border-color: var(--kin); }

/* ---------- crest surfaces ----------------------------------------------- */

.crestbig {
  width: min(230px, 70%); margin-inline: auto; color: var(--kin);
  filter: drop-shadow(0 0 26px rgba(217,178,95,.18));
}

.atgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px,1fr)); gap: .7rem; }
.atcell {
  aspect-ratio: 1; border: 1px solid var(--hairline); border-radius: var(--r-m);
  background: linear-gradient(160deg, var(--lac-3), var(--lac-2));
  display: grid; place-items: center; padding: 14%;
  color: var(--kin);
  transition: all .3s var(--ease-out);
}
.atcell:hover { transform: translateY(-3px); border-color: var(--kin); box-shadow: var(--shadow-2); }
.atcell.on { border-color: var(--kin); background: var(--kin-soft); }
.atcell svg { width: 100%; height: auto; }

/* ---------- credential --------------------------------------------------- */

.cred {
  display: grid; gap: .8rem;
  padding: 1.1rem; border-radius: var(--r-m);
  border: 1px dashed var(--panel-bd); background: rgba(0,0,0,.24);
}
.cred__lv { display: flex; align-items: baseline; gap: .7rem; }
.cred__lv b { font-family: var(--serif); font-size: 2rem; color: var(--kin); line-height: 1; }
.cred__lv span { font-family: var(--sans); font-size: .74rem; color: var(--ink-faint); }
.cred__bar { height: 4px; border-radius: 4px; background: rgba(217,178,95,.14); overflow: hidden; }
.cred__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--kin-lo), var(--kin)); transition: width .8s var(--ease-out); }

.kv dt { color: var(--ink-faint); }
.kv dd { color: var(--sumi); font-family: var(--mono); font-size: .78rem; }
.kv div { border-bottom-color: var(--hairline-2); }

.stamps .stamp { width: 56px; height: 56px; font-size: .66rem; }
