/* HEAVEN TCG - guides (vodiči) in the "Trafika" look (Stage 5, 3 Nov 2026). Used with assets/hv-tour-d.js
   on the hidden test pages only. Brown panel, gold accent, cream text, 44 px controls, 6 px corners.
   Part 2 restyles the live singles guide (#sgTour, drawn by hv-singles-u.js) without changing its markup. */

/* ---------- 1. engine: scrim, spotlight, panel ---------- */
.tdq-block{position:fixed;inset:0;z-index:2147483000;background:transparent}
.tdq-hole{position:fixed;z-index:2147483001;border-radius:6px;pointer-events:none;box-shadow:0 0 0 2px #e8a34d,0 0 0 6px rgba(232,163,77,.28),0 0 0 200vmax rgba(18,12,9,.66);transition:left .22s ease,top .22s ease,width .22s ease,height .22s ease}
.tdq-hole.tdq-none{left:50%!important;top:50%!important;width:0!important;height:0!important;box-shadow:0 0 0 200vmax rgba(18,12,9,.66)}
.tdq-panel{position:fixed;z-index:2147483002;box-sizing:border-box;width:min(400px,calc(100vw - 32px));max-height:calc(100vh - 24px);overflow:auto;padding:16px 16px 12px;background:#2a1f19;color:#f6ece0;border:2px solid #e8a34d;border-radius:6px;box-shadow:0 18px 48px rgba(0,0,0,.55);font-family:"Libre Franklin",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.5;text-align:left;transition:top .22s ease,left .22s ease}
.tdq-panel *{box-sizing:border-box}
.tdq-k{margin:0 52px 4px 0;font-family:"DM Mono",ui-monospace,Menlo,Consolas,monospace;font-size:13px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:#f1cd8a}
.tdq-t{margin:0 52px 8px 0;font-family:"Young Serif",Georgia,serif;font-size:22px;font-weight:400;line-height:1.2;color:#f6ece0}
.tdq-p{margin:0 0 12px;color:#ece0cf;font-size:16px}
.tdq-p b{color:#f6ece0;font-weight:700}
.tdq-x{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;padding:0;border:2px solid transparent;border-radius:6px;background:none;color:#f6ece0;font:400 28px/1 system-ui,sans-serif;cursor:pointer}
.tdq-x:hover{background:#3e2e24}
.tdq-dots{display:flex;flex-wrap:nowrap;justify-content:center;margin:0 0 8px;gap:0}
.tdq-dot{flex:0 1 44px;min-width:28px;height:44px;margin:0;padding:0;border:0;background:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:6px}
.tdq-dot i{display:block;width:12px;height:12px;border-radius:50%;border:2px solid #a08a78;background:transparent;transition:background .15s,border-color .15s,width .15s}
.tdq-dot.tdq-was i{background:#c17f33;border-color:#c17f33}
.tdq-dot.tdq-on i{width:24px;border-radius:6px;background:#e8a34d;border-color:#e8a34d}
.tdq-dot:hover i{border-color:#f1cd8a}
.tdq-row{display:flex;align-items:center;gap:8px}
.tdq-sp,.tdq-row .tdq-quiet{margin-right:auto}
.tdq-b{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:0 16px;border:2px solid transparent;border-radius:6px;background:none;font-family:inherit;font-size:16px;font-weight:700;line-height:1.1;cursor:pointer;white-space:nowrap}
.tdq-b:active{transform:translateY(1px)}
.tdq-pri{background:#e8a34d;border-color:#e8a34d;color:#1c1512}
.tdq-pri:hover{background:#eeb466;border-color:#eeb466}
.tdq-sec{border-color:#d8c4b0;color:#f6ece0}
.tdq-sec:hover{background:#3e2e24}
.tdq-sec[disabled]{opacity:.4;cursor:default;transform:none}
.tdq-quiet{padding:0 8px;color:#d8c4b0;font-weight:600;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
.tdq-quiet:hover{color:#f6ece0;text-decoration-color:#e8a34d}
.tdq-panel button:focus-visible{outline:3px solid #f1cd8a;outline-offset:2px}
/* phone: docked at the bottom (or the top, when the highlighted part sits low) */
@media (max-width:600px){
  .tdq-panel{left:12px!important;right:12px;bottom:12px;top:auto!important;width:auto;max-height:52vh;padding:12px 12px 8px}
  .tdq-panel.tdq-up{top:12px!important;bottom:auto}
  .tdq-t{font-size:20px}
  .tdq-p{font-size:15px;margin-bottom:8px}
  .tdq-b{padding:0 12px;font-size:15px}
  .tdq-quiet{padding:0 4px}
}
@media (max-width:359px){.tdq-row{flex-wrap:wrap}.tdq-row .tdq-quiet{flex-basis:100%;order:3}}
@media (prefers-reduced-motion:reduce){.tdq-hole,.tdq-panel,.tdq-dot i{transition:none}}

/* ---------- buttons this script adds to the pages ---------- */
.tdq-how{min-height:44px;padding:0 8px;font-size:15px}
.ocn-rate > .tdq-how{margin:-4px 0 4px -8px}
.tdq-ocnfoot{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:12px 16px 16px;border-top:1px solid #cdb9a3;font-size:15px;color:#5a4636}
.tdq-ocnfoot .tdq-how{color:#1c1512}
.tdq-vm{display:none}
@media (max-width:479px){body.acc-t .t-nav-r .tdq-vodic{display:none}body.acc-t .t-links .tdq-vm{display:inline-flex}}

/* ---------- 2. the live singles guide, restyled (pojedinacne-trafika-test.php) ---------- */
body.sgv #sgTour .sh-tour{background:#2a1f19!important;color:#f6ece0!important;border:2px solid #e8a34d!important;border-radius:6px!important;box-shadow:0 18px 48px rgba(0,0,0,.55)!important}
body.sgv #sgTour .sh-kick{color:#f1cd8a!important;font-family:"DM Mono",ui-monospace,Menlo,Consolas,monospace!important;font-size:13px!important;letter-spacing:.06em}
body.sgv #sgTour .sh-x{min-width:44px;min-height:44px;color:#f6ece0!important;background:none!important;border-radius:6px!important}
body.sgv #sgTour .sh-x:hover{background:#3e2e24!important}
body.sgv #sgSlides h3{color:#f6ece0!important;font-family:"Young Serif",Georgia,serif!important;font-weight:400!important}
body.sgv #sgSlides p{color:#ece0cf!important;font-size:16px!important}
body.sgv #sgSlides .sh-ill{background:#f6ece0!important;color:#1c1512!important;border:1px solid #c17f33!important;border-radius:6px!important}
body.sgv #sgDots i{background:transparent!important;border:2px solid #a08a78!important;width:12px!important;height:12px!important;border-radius:50%!important}
body.sgv #sgDots i.on{background:#e8a34d!important;border-color:#e8a34d!important;width:24px!important;border-radius:6px!important}
body.sgv #sgTourBack,body.sgv #sgTourNext{min-height:44px!important;border-radius:6px!important;font-size:16px!important;font-weight:700!important;padding:0 16px!important}
body.sgv #sgTourBack{background:none!important;border:2px solid #d8c4b0!important;color:#f6ece0!important}
body.sgv #sgTourBack:hover{background:#3e2e24!important}
body.sgv #sgTourNext{background:#e8a34d!important;border:2px solid #e8a34d!important;color:#1c1512!important}
body.sgv #sgTourNext:hover{background:#eeb466!important;border-color:#eeb466!important}
body.sgv #sgTourSkip{min-height:44px!important;font-size:15px!important;color:#d8c4b0!important;text-decoration-thickness:1.5px!important;text-underline-offset:4px!important}
body.sgv #sgTourSkip:hover{color:#f6ece0!important}
body.sgv #sgTour button:focus-visible{outline:3px solid #f1cd8a!important;outline-offset:2px}
