/* Pop-up guides (assets/js/guide-modal.js) and the "Learn the levels" links
   that open them on trader/ and gex/. */
.gm-open { overflow: hidden; }
dialog.gm { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; margin: 0; }
dialog.gm::backdrop { background: rgba(3, 5, 8, .78); backdrop-filter: blur(3px); }
.gm-box { position: absolute; inset: 4vh 0 auto; margin: 0 auto; width: min(1120px, 94vw); height: 92vh; height: 92dvh;
  display: flex; flex-direction: column; background: #07090D; border: 1px solid #2C3748; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.gm-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line, #232C3A); background: var(--panel, #11161E); }
.gm-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 197, 61, .15); color: var(--sideways, #FFC53D); font: 700 13px var(--font-mono, monospace); }
.gm-title { flex: 1; min-width: 0; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text, #EEF2F7); }
.gm-ext { font-size: 13px; color: var(--muted, #A9B4C4); text-decoration: none; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.gm-ext:hover { color: var(--text, #EEF2F7); background: rgba(255, 255, 255, .04); }
.gm-close { flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line, #232C3A); background: var(--panel-2, #171E29);
  color: var(--text, #EEF2F7); font-size: 24px; line-height: 1; cursor: pointer; }
.gm-close:hover { border-color: var(--muted, #A9B4C4); }
.gm-stage { position: relative; flex: 1; min-height: 0; background: #07090D; }
.gm-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #07090D; }
.gm-frame[hidden] { display: none; }
.gm-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted, #A9B4C4); font: 600 14px var(--font-ui, sans-serif); }
.gm-loading[hidden] { display: none; }
@media (max-width: 640px) {
  .gm-box { inset: 0; width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; border: 0; }
  .gm-ext { display: none; }
}

/* "Learn the levels" strip */
.learn-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 16px; }
.learn-strip a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; text-decoration: none; color: var(--text, #EEF2F7);
  background: var(--panel, #11161E); border: 1px solid var(--line, #232C3A); min-height: 64px; transition: border-color .15s, transform .15s; }
.learn-strip a:hover { border-color: var(--up, #16D67E); transform: translateY(-1px); }
.learn-strip .ls-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2, #171E29); }
.learn-strip b { display: block; font-family: var(--font-display, sans-serif); font-size: 16px; }
.learn-strip span.ls-sub { display: block; font-size: 13px; color: var(--muted, #A9B4C4); line-height: 1.35; }
.learn-head { font: 600 12px var(--font-mono, monospace); letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #A9B4C4); margin: 4px 0 8px; }
a.guide-link { white-space: nowrap; font-weight: 600; }
.learn-inline { margin-top: 8px; font-size: 14px; color: var(--muted, #A9B4C4); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.learn-inline a { color: var(--up, #16D67E); font-weight: 600; text-decoration: none; padding: 4px 0; }
.learn-inline a:hover { text-decoration: underline; }
@media (max-width: 760px) { .learn-strip { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .learn-strip a { transition: none; } .learn-strip a:hover { transform: none; } }
.tt-head .learn-inline { grid-column: 1 / -1; }
