/* goldenRRRatio – telefon / tablet (csak html.gr-vd alatt; asztali gépen hatástalan) */

/* a böngésző ne nagyítsa fel magától a szöveget a kicsinyített asztali nézetben (Chrome Android text autosizing) */
html.gr-vd, html.gr-vd body, html.gr-vd * { -webkit-text-size-adjust: none !important; text-size-adjust: none !important; }

/* ---------------------------------------------------------------- virtuális asztal: az oldalak egymás alatt, asztali arányban,
   a lap natívan görgethető (a core.css "body { overflow: hidden }" itt nem érvényes) */
html.gr-vd:not(.gr-cfs), html.gr-vd:not(.gr-cfs) body { height: auto !important; min-height: 100%; overflow-y: visible !important; }
html.gr-vd:not(.gr-cfs) body { overflow-x: clip !important; padding-top: var(--gr-mbar-pad, 330px); }
html.gr-vd:not(.gr-cfs) .bar { display: none !important; }
html.gr-vd:not(.gr-cfs).core.lc2 main { height: auto !important; overflow: visible !important; }
html.gr-vd:not(.gr-cfs) #lc { height: auto !important; overflow: visible !important; overflow-x: clip !important; scroll-snap-type: none !important; }
html.gr-vd:not(.gr-cfs) .lc-page { min-height: 0 !important; }
html.gr-vd:not(.gr-cfs) .lc-p1 { height: 860px !important; }
html.gr-vd:not(.gr-cfs) .lc-p3 { height: 600px !important; }
html.gr-vd:not(.gr-cfs) .lc-p4 { padding-top: 40px; padding-bottom: 40px; }
html.gr-vd:not(.gr-cfs) #lc-dots, html.gr-vd:not(.gr-cfs) #log-rail { display: none !important; }

/* ---------------------------------------------------------------- natív méretű felső sáv (mobile.js igazítja a látható területhez) */
.gr-mbar { display: none; }
html.gr-vd:not(.gr-cfs) .gr-mbar { display: block; position: fixed; left: 0; top: 0; z-index: 8000; transform-origin: 0 0; will-change: transform;
  box-sizing: border-box; padding: env(safe-area-inset-top, 0px) 0 0; font-family: var(--f-body, var(--ff-ui, system-ui, sans-serif));
  background: linear-gradient(to bottom, rgba(6, 8, 12, .97), rgba(6, 8, 12, .9)); border-bottom: 1px solid rgba(150, 205, 222, .1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.gr-mbar-row { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px; }
.gr-mbar-logo { display: flex; align-items: center; flex: none; }
.gr-mbar-logo img { display: block; height: 22px; width: auto; }
.gr-mbar-sym { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font: 600 10.5px/1 var(--ff-num, monospace); letter-spacing: .06em;
  color: #c9d6de; box-shadow: inset 0 0 0 1px rgba(150, 205, 222, .18); white-space: nowrap; }
.gr-mbar-dot { width: 6px; height: 6px; border-radius: 50%; background: #56636c; }
.gr-mbar-dot.on { background: #7ce6ff; box-shadow: 0 0 8px rgba(124, 230, 255, .7); animation: gr-mb-pulse 2.4s ease-in-out infinite; }
@keyframes gr-mb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.gr-mbar-sp { flex: 1; min-width: 4px; }
.gr-mbar-px { font: 600 14px/1 var(--ff-num, monospace); color: #f8fdff; letter-spacing: -.01em; white-space: nowrap; }
.gr-mbar-px.up { color: #1ef2a0; } .gr-mbar-px.down { color: #ff5a73; }
.gr-mbar { container-type: inline-size; }
@container (max-width: 420px) { .gr-mbar-sym { padding: 4px 7px; font-size: 0; gap: 0; } .gr-mbar-logo img { height: 20px; } .gr-mbar-row { gap: 8px; } }
.gr-mbar-chart { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(243, 210, 124, .5); background: rgba(243, 210, 124, .08); color: #f3d27c; font: 600 13px var(--f-body, system-ui, sans-serif); -webkit-tap-highlight-color: transparent; }
.gr-mbar-chart svg { width: 15px; height: 15px; }
.gr-mbar-chart:active { background: rgba(243, 210, 124, .2); }
.gr-mbar-flags { display: flex; gap: 6px; flex: none; }
.gr-mbar-flags .lang-flag { position: relative; width: 26px !important; height: 26px !important; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: none; cursor: pointer; opacity: .55; }
.gr-mbar-flags .lang-flag[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px rgba(243, 210, 124, .6); }
.gr-mbar-flags .lang-flag::after { content: ""; position: absolute; inset: -6px; }
.gr-mbar-flags .lang-flag svg { width: 100%; height: 100%; display: block; }
.gr-mbar-tabs { display: flex; gap: 4px; height: 40px; padding: 0 8px 6px; overflow-x: auto; scrollbar-width: none; }
.gr-mbar-tabs::-webkit-scrollbar { display: none; }
.gr-mbar-tabs button { flex: 1 0 auto; height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: #84949e; cursor: pointer;
  font: 500 13px var(--f-body, system-ui, sans-serif); white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.gr-mbar-tabs button.on { color: #f8fdff; background: rgba(150, 205, 222, .09); box-shadow: inset 0 -2px 0 #f3d27c; }

/* ---------------------------------------------------------------- teljes képernyős chart */
html.gr-cfs, html.gr-cfs body { overflow: hidden !important; height: 100% !important; overscroll-behavior: none; padding: 0 !important; }
html.gr-cfs .bar, html.gr-cfs .gr-mbar, html.gr-cfs #lc-dots, html.gr-cfs #log-rail, html.gr-cfs .lc-status, html.gr-cfs .lc-top, html.gr-cfs .lc-left,
html.gr-cfs .lc-right, html.gr-cfs .lc-feed, html.gr-cfs .lc-p2, html.gr-cfs .lc-p3, html.gr-cfs .lc-p4, html.gr-cfs .site-footer,
html.gr-cfs .gr-footer, html.gr-cfs #grConsent, html.gr-cfs .gb-pop, html.gr-cfs #core-debug { display: none !important; }
html.gr-cfs main, html.gr-cfs #lc, html.gr-cfs .lc-page, html.gr-cfs .lc-core { transform: none !important; filter: none !important; backdrop-filter: none !important; contain: none !important; }
html.gr-cfs #chart-wrap { position: fixed !important; inset: 0 !important; width: auto !important; height: auto !important; margin: 0 !important; z-index: 9000;
  padding: calc(env(safe-area-inset-top, 0px) + 48px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px) !important;
  border-radius: 0 !important; background: #06080c !important; box-sizing: border-box; }
html.gr-cfs #chart-wrap #chart { height: 100% !important; width: 100% !important; }
html.gr-cfs #chart-wrap .ohlc { top: calc(env(safe-area-inset-top, 0px) + 52px) !important; }

.gr-cfs-bar { display: none; }
html.gr-cfs .gr-cfs-bar { display: flex; align-items: center; gap: 8px; position: fixed; z-index: 9100; left: 0; right: 0; top: 0;
  height: calc(env(safe-area-inset-top, 0px) + 48px); padding: env(safe-area-inset-top, 0px) calc(env(safe-area-inset-right, 0px) + 8px) 0 calc(env(safe-area-inset-left, 0px) + 8px);
  box-sizing: border-box; background: linear-gradient(to bottom, rgba(6, 8, 12, .98), rgba(6, 8, 12, .92)); border-bottom: 1px solid rgba(150, 205, 222, .1); }
.gr-cfs-tfs { position: relative; flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gr-cfs-tfs::-webkit-scrollbar { display: none; }
html.gr-cfs .gr-cfs-tfs #tfs { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 2px; width: max-content; margin: 0 !important; position: static !important; transform: none !important; }
/* a gr.css érintős hit-area pszeudo-eleme a gombhoz kötve (különben az utolsó gomb (1M) letakarná az egész sávot) */
html.gr-cfs .gr-cfs-tfs #tfs button { position: relative !important; min-width: 40px; min-height: 34px; font-size: 13px; }
html.gr-cfs .gr-cfs-tfs #tfs button::after { inset: -6px -1px !important; }
html.gr-cfs .gr-cfs-tfs #tfs .gap { width: 8px; flex: none; }
.gr-cfs-btn { position: relative; flex: none; width: 40px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(150, 205, 222, .2);
  background: rgba(14, 19, 28, .9); color: #e0ebf2; font: 400 18px/1 system-ui, sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gr-cfs-btn:active { background: rgba(243, 210, 124, .14); }
.gr-cfs-x { font-size: 24px; border-color: rgba(243, 210, 124, .4); color: #f3d27c; }

/* ---------------------------------------------------------------- "Fordítsd el a készüléket" */
.gr-rot { position: fixed; inset: 0; z-index: 9200; display: grid; place-items: center; padding: 24px; background: rgba(4, 6, 9, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.gr-rot.on { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.gr-rot-in { display: grid; justify-items: center; gap: 10px; text-align: center; color: #e0ebf2; font-family: var(--f-body, system-ui, sans-serif); }
.gr-rot-in svg { width: 132px; height: 132px; color: #e0ebf2; margin-bottom: 8px; }
.gr-rot-in b { font: 300 26px/1.15 var(--f-display, system-ui, sans-serif); letter-spacing: -.02em; color: #f8fdff; }
.gr-rot-in span { font-size: 15px; color: #84949e; }
.gr-rot-ph { transform-origin: 60px 60px; transform-box: view-box; animation: gr-turn 2.8s cubic-bezier(.65, 0, .35, 1) infinite; }
.gr-rot-arc { animation: gr-arc 2.8s ease-in-out infinite; }
@keyframes gr-turn { 0%, 18% { transform: rotate(0deg); } 48%, 78% { transform: rotate(-90deg); } 100% { transform: rotate(0deg); } }
@keyframes gr-arc { 0%, 10% { opacity: 0; } 22%, 44% { opacity: 1; } 56%, 100% { opacity: 0; } }
.gr-rot-skip { margin-top: 18px; appearance: none; border: 0; background: none; color: #84949e; font: 400 14px var(--f-body, system-ui, sans-serif); text-decoration: underline; text-underline-offset: 3px; padding: 10px 14px; }
.gr-rot-x { position: fixed !important; top: calc(env(safe-area-inset-top, 0px) + 12px); right: calc(env(safe-area-inset-right, 0px) + 12px); }
@media (prefers-reduced-motion: reduce) { .gr-rot-ph, .gr-rot-arc { animation: none; } .gr-rot-ph { transform: rotate(-90deg); } }
