/* Jargão — styles on the Lab shell. Accent: cyan #06b6d4. */

/* Override the Lab's shared --accent so the "?" help button + modal
   pick up this toy's own color (Lab pattern). */
:root { --accent: #06b6d4; }

.jg-intro { text-align: center; margin: 0 auto 1.6rem; max-width: 720px; }
.jg-intro__title { font-family: 'Poppins', sans-serif; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0 0 .45rem; }
.jg-intro__lead { color: var(--text-muted, #94a3b8); font-size: 1.02rem; margin: 0; }
.jg-nojs { color: var(--text-muted, #94a3b8); padding: 1rem; }

.jg-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem;
  font: 600 .8rem ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted, #94a3b8); }
.jg-num b { color: #22d3ee; }

.jg-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 58px)); grid-auto-rows: 58px;
  gap: 6px; justify-content: center; margin-bottom: 1.1rem; }
.jg-cell { display: flex; align-items: center; justify-content: center; border-radius: 8px;
  border: 2px solid var(--border, rgba(148,163,184,.3)); background: transparent;
  font: 800 1.4rem 'Poppins', sans-serif; text-transform: uppercase; color: var(--text-main, #f8fafc);
  transition: background .15s, border-color .15s, transform .08s; }
.jg-cell.is-typed { border-color: #06b6d4; transform: scale(1.04); }
.jg-cell.is-g { background: #16a34a; border-color: #16a34a; color: #fff; }
.jg-cell.is-y { background: #ca8a04; border-color: #ca8a04; color: #fff; }
.jg-cell.is-x { background: var(--surface-2, #243349); border-color: var(--surface-2, #243349); color: var(--text-muted, #94a3b8); }

.jg-kb { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.jg-kbrow { display: flex; gap: 5px; justify-content: center; width: 100%; }
.jg-key { flex: 1; max-width: 44px; min-height: 52px; cursor: pointer; border-radius: 7px;
  border: 1px solid var(--border, rgba(255,255,255,.12)); background: var(--surface-2, #243349);
  color: var(--text-main, #f8fafc); font: 700 .9rem 'Inter', sans-serif; text-transform: uppercase;
  transition: background .12s; touch-action: manipulation; user-select: none; -webkit-user-select: none; padding: 0; }
.jg-key--wide { max-width: 72px; font-size: .72rem; }
.jg-key:active { background: rgba(6,182,212,.3); }
.jg-key.is-g { background: #16a34a; border-color: #16a34a; color: #fff; }
.jg-key.is-y { background: #ca8a04; border-color: #ca8a04; color: #fff; }
.jg-key.is-x { opacity: .35; }

.jg-result { text-align: center; margin-top: 1.4rem; }
.jg-result__stamp { font: 700 .68rem ui-monospace, monospace; letter-spacing: .22em; color: #22d3ee; }
.jg-result__word { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: .12em; margin: .25rem 0 .3rem; }
.jg-result__def { color: var(--text-main, #e2e8f0); max-width: 460px; margin: 0 auto .4rem; line-height: 1.6; }
.jg-result__sub { color: var(--text-muted, #94a3b8); margin: 0 0 .9rem; }
.jg-btn { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; border-radius: 999px;
  font: 700 .85rem 'Inter', sans-serif; padding: .55rem 1.2rem; border: 1px solid #06b6d4;
  background: #06b6d4; color: #05242b; transition: background .15s; }
.jg-btn:hover { background: #22d3ee; }

.jg-toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 50;
  font: 700 .8rem ui-monospace, monospace; background: var(--bg-card, #1e293b);
  border: 1px solid rgba(6,182,212,.5); border-radius: 999px; padding: .5rem 1.1rem;
  color: var(--text-main, #f8fafc); box-shadow: 0 10px 30px -12px rgba(2,6,23,.6); }

@media (max-width: 420px) {
  .jg-grid { grid-template-columns: repeat(5, minmax(0, 52px)); grid-auto-rows: 52px; }
}
