/* ============================================================
   2075 – VÁGOD A ZÖLD JÖVŐT? — teljes képernyős 2D réteg (canvas + HUD)
   A design systemre építve (ds-chip, ds-meter, ds-panel, ds-card, ds-say); csak tokenekkel.
   ============================================================ */
#jovo { display:none; }
.jovo #jovo { display:block; position:fixed; inset:0; z-index:calc(var(--z-hud) + 1); overflow:hidden; touch-action:none; overscroll-behavior:none;
  -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.jovo, .jovo body { overscroll-behavior:none; }
.jvCity, .jvCity canvas, .jvPlay { position:absolute; inset:0; width:100%; height:100%; display:block; }
.jvCity .jvGreen { opacity:0; transition:opacity .6s ease; }
.jvPlay { touch-action:none; cursor:crosshair; }

/* HUD: élet és pont csipeszben, középen a szint, alatta a jövő-mérő */
#jvHud { position:absolute; left:0; right:0; top:0; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:6px 12px;
  padding:max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 0 calc(max(12px, env(safe-area-inset-left)) + 176px);
  pointer-events:none; }
#jvHud .jvLives small { font:600 var(--fs-xs)/1 var(--body); color:var(--ink-soft); margin-left:-2px; }
#jvHud .jvTitle { justify-self:center; display:inline-flex; align-items:center; gap:6px; font:700 var(--fs-s)/1.2 var(--body); text-align:center;
  background:rgba(255,253,246,.85); border-radius:var(--r-pill); padding:5px 12px; }
#jvHud .jvTitle .pic { width:18px; height:18px; }
#jvHud .jvMeterRow { grid-column:1 / -1; display:grid; gap:3px; }
#jvHud .jvMeterLabel { display:inline-flex; align-items:center; gap:5px; justify-self:start; font:700 var(--fs-xs)/1 var(--body);
  background:rgba(255,253,246,.85); border-radius:var(--r-pill); padding:4px 10px 4px 6px; }
#jvHud .jvMeterLabel .pic { width:16px; height:16px; }
#jvHud .jvMeter { height:14px; }

/* felvillanó szöveg: szín ÉS ikon */
#jvFlash { position:absolute; left:50%; bottom:max(22px, env(safe-area-inset-bottom)); transform:translate(-50%, 16px); width:max-content; max-width:min(560px, calc(100vw - 28px));
  display:flex; align-items:center; gap:8px; background:var(--surface); color:var(--ink); border:var(--line-w) solid var(--line); border-radius:var(--r-l);
  box-shadow:var(--soft); padding:9px 14px; font-size:15px; font-weight:700; line-height:1.35; text-align:left;
  opacity:0; transition:opacity var(--t-base), transform var(--t-base) var(--ease); pointer-events:none; }
#jvFlash .pic { width:24px; height:24px; flex:0 0 auto; }
#jvFlash.show { opacity:1; transform:translate(-50%, 0); }
#jvFlash.good { background:var(--good-bg); color:var(--good-ink); } #jvFlash.bad { background:var(--bad-bg); color:var(--bad-ink); }

/* szintindító / szünet kártya (ds-panel) */
#jvIntro { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:var(--scrim); padding:16px; overflow-y:auto; }
#jvIntro.hidden { display:none !important; }
.jvCard { width:min(460px, 100%); text-align:center; display:flex; flex-direction:column; align-items:center; gap:var(--sp-2); }
.jvSub { color:var(--ink-soft); }
.jvRules { display:grid; grid-template-columns:1fr 1fr; gap:10px; width:100%; margin:6px 0 2px; }
.jvRules .ds-card { display:flex; flex-direction:column; align-items:center; gap:2px; padding:10px 8px; }
.jvRules .pic { width:34px; height:34px; }
.jvRules b { font:400 var(--fs-l)/1.1 var(--display); padding-top:2px; }
.jvRules span { font-size:13px; line-height:1.3; }
.jvRules .jvCut { background:var(--bad-bg); } .jvRules .jvKeep { background:var(--good-bg); }
.jvTip { text-align:left; margin-top:4px; }
.jvCard .ds-btn { margin-top:8px; }
.jvCard .ds-result-bee { --size:92px; }

/* a rendszergombok a 2D rétegek közös sorában maradnak; itt a HUD balról kihagyja a helyüket */
@media (max-width:600px){
  #jvHud { grid-template-columns:auto 1fr; padding-left:max(10px, env(safe-area-inset-left)); padding-top:max(56px, env(safe-area-inset-top)); }
  #jvHud .jvTitle { grid-column:1 / -1; grid-row:1; font-size:var(--fs-xs); }
  #jvHud .jvScore { justify-self:end; }
  #jvHud .ds-chip { font-size:17px; padding:3px 10px 1px 7px; }
  #jvFlash { font-size:13px; padding:7px 10px; }
}
@media (max-height:520px) and (orientation:landscape){
  #jvHud { padding-top:6px; gap:4px 10px; } #jvHud .jvMeter { height:12px; }
  #jvHud .ds-chip { font-size:15px; padding:2px 8px 0 6px; } #jvHud .ds-chip .pic { width:17px; height:17px; }
  #jvFlash { bottom:8px; font-size:12px; padding:6px 10px; }
  .jvCard { gap:4px; } .jvRules .pic { width:24px; height:24px; } .jvTip { display:none; }
}
.reduce-motion #jvFlash, .reduce-motion .jvCity .jvGreen { transition:none; }
/* nyugodt tempó kapcsoló a szint-intrón (2026-10-03) – bekapcsolva zsálya alap, hogy látszódjon az állapot */
.jvCalmBtn { min-height:var(--tap); gap:6px; } .jvCalmBtn .pic { width:20px; height:20px; }
.jvCalmBtn[aria-pressed="true"] { background:var(--sage-bg); }
/* kör vége: „Ezt tanultad” – 3 kártya a kör matricáiból (jovo-ui.js → jvTanultMore, 2026-10-06) */
.jvTanult { display:grid; gap:var(--sp-2); padding-bottom:var(--sp-2); }
.jvTanultKartya { display:flex; gap:var(--sp-2); align-items:flex-start; padding:8px 10px; text-align:left; }
.jvTanultKartya p { margin:4px 0 0; font-size:var(--fs-s); line-height:1.35; }
.jvTanultKep { flex:0 0 44px; width:44px; height:44px; display:grid; place-items:center; }
.jvTanultKep svg, .jvTanultKep img { width:100%; height:100%; }
.jvTanultKartya .ds-chip .pic { width:16px; height:16px; }
