/* ==========================================================================
   VZR gaming layer v2 (round 2): CHARTS (home page)
   analog clock dial, one ring (Gaming Clock) and gold coin stacks (Week Heat). Markup is built by g2-charts.js.
   ========================================================================== */

/* ---------- analog clock dial ---------- */
.g2-dial-svg { display: block; width: min(100%, 420px); height: auto; overflow: visible; outline-offset: 6px; border-radius: 50%; user-select: none; -webkit-user-select: none; }
.g2-dial-svg:focus-visible { outline: 2px solid var(--g2-gold-hi); }
.g2-dial-num { font: 800 13.5px var(--g2-ui); fill: #efe0bf; letter-spacing: .02em; }
.g2-hour { cursor: pointer; }
.g2-bar { transform-box: view-box; transform-origin: 200px 200px; animation: g2-grow .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 22ms); transition: filter .15s ease, opacity .15s ease; }
@keyframes g2-grow { from { opacity: 0; transform: scale(.82); } to { transform: scale(1); } }
.g2-hour.is-peak .g2-bar { filter: drop-shadow(0 0 5px rgba(255, 240, 190, .95)); }
.g2-hour.is-prime:not(.is-peak) .g2-bar { filter: drop-shadow(0 0 3px rgba(255, 215, 130, .6)); }
.g2-hour.is-active .g2-bar { filter: brightness(1.45) drop-shadow(0 0 6px rgba(255, 255, 255, .9)); stroke: #fff; stroke-width: 1.6; opacity: 1; }
.g2-prime-arc { filter: drop-shadow(0 0 4px rgba(255, 215, 130, .8)); }
.g2-sun { filter: drop-shadow(0 0 7px rgba(255, 210, 92, .9)); }
.g2-hand { pointer-events: none; }
.g2-hand-cet { filter: drop-shadow(0 0 4px rgba(127, 232, 255, .9)) drop-shadow(0 2px 2px rgba(0, 0, 0, .7)); }
.g2-hand-et { filter: drop-shadow(0 0 3px rgba(182, 255, 92, .85)) drop-shadow(0 2px 2px rgba(0, 0, 0, .7)); }
.g2-hub-kicker { font: 800 10px var(--g2-ui); letter-spacing: .16em; fill: #e8c987; }
.g2-hub-main { font: 800 37px var(--g2-ui); fill: #fff8e8; letter-spacing: .02em; }
.g2-hub-colon { font: 700 30px var(--g2-ui); fill: #efe0bf; }
.g2-hub-zone { font: 800 11.5px var(--g2-ui); letter-spacing: .03em; fill: #bfe6ff; }
.g2-hub-sub { font: 700 12px var(--g2-ui); fill: #d9cee8; }
.g2-hub-tag { font: 800 10px var(--g2-ui); letter-spacing: .18em; fill: #cbb0ff; }
.g2-dial-svg[data-period="day"] .g2-hub-tag { fill: #ffd27a; }
.g2-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 4px 0 0; padding: 0; list-style: none;
  font: 700 11.5px/1.2 var(--g2-ui); letter-spacing: .03em; color: var(--g2-muted);
}
.g2-legend li { display: inline-flex; align-items: center; gap: 7px; }
.g2-legend li[data-g2-tip-title] { cursor: help; }
.g2-sw { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .4); display: inline-block; }
.g2-sw.is-day { background: linear-gradient(135deg, #f6c35a, #c47a1a); }
.g2-sw.is-night { background: linear-gradient(135deg, #8a5af0, #3ac6e0); }
.g2-sw.is-prime { background: #fff1c9; box-shadow: 0 0 6px rgba(255, 220, 140, .9); }
.g2-sw.is-now, .g2-sw.is-et { width: 0; height: 0; border: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid #7fe8ff; border-radius: 0; }
.g2-sw.is-et { border-top-color: #b6ff5c; }
.g2-note { margin: 2px 0 0; max-width: 100%; text-align: center; font: 13px/1.4 var(--g2-serif); color: #d6cae3; }

/* ---------- week heat: stacks of gold coins ---------- */
.g2-weekpanel .g2-chart { justify-content: flex-start; gap: 6px; }
.g2-weekpanel .g2-stacks { margin-top: 12px; }
.g2-treasury {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 14px; border: 1px solid #8a6f44; border-radius: 6px; cursor: help;
  background: linear-gradient(180deg, #2c2335, #17111f); box-shadow: inset 0 0 0 1px rgba(255, 226, 170, .07), 0 6px 14px rgba(0, 0, 0, .4);
}
.g2-treasury .g2-emb { font-size: 32px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .7)); }
.g2-treasury b { font: 800 30px/1 var(--g2-serif); color: #ffe08a; text-shadow: 0 2px 2px #000; font-variant-numeric: tabular-nums; }
.g2-treasury-text { display: flex; flex-direction: column; gap: 2px; font: 800 12px/1.2 var(--g2-ui); letter-spacing: .08em; text-transform: uppercase; color: #e9d9b8; }
.g2-treasury-text em { font: 700 12px/1.2 var(--g2-ui); font-style: normal; letter-spacing: .02em; text-transform: none; color: #bdb2c9; }
.g2-stacks {
  position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; width: 100%; margin: 0; padding: 14px 6px 0; list-style: none;
}
.g2-stacks li { display: flex; min-width: 0; }
.g2-stackbtn {
  position: relative; display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
  border-radius: 8px; transition: transform .18s ease;
}
.g2-stackbtn:hover, .g2-stackbtn:focus-visible { transform: translateY(-3px); }
.g2-stackbtn:focus-visible { outline-offset: 2px; }
.g2-st-svg { display: block; width: 100%; max-width: 104px; height: auto; overflow: visible; }
.g2-stackbtn:hover .g2-st-svg, .g2-stackbtn:focus-visible .g2-st-svg { filter: brightness(1.18) drop-shadow(0 0 8px rgba(255, 210, 100, .6)); }
.g2-stackbtn.is-peak .g2-st-svg { filter: drop-shadow(0 0 9px rgba(255, 210, 100, .7)); }
.g2-stackbtn.is-peak:hover .g2-st-svg { filter: brightness(1.2) drop-shadow(0 0 12px rgba(255, 210, 100, .9)); }
.g2-coin { opacity: 0; transform: translateY(-70px); }
.is-grown .g2-coin { opacity: 1; transform: none; transition: transform .5s cubic-bezier(.3, 1.45, .5, 1), opacity .2s ease; transition-delay: calc(var(--d, 0) * 90ms + var(--n, 0) * 55ms); }
.g2-st-crown { animation: g2-star 2.4s ease-in-out infinite; }
@keyframes g2-star { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.g2-st-value {
  min-width: 30px; padding: 4px 8px 3px; border-radius: 5px; border: 1px solid #8a6f44; background: linear-gradient(180deg, #2e2340, #140e1e); text-align: center;
  font: 800 16px/1 var(--g2-serif); color: #ffd23f; text-shadow: 0 2px 2px #000; box-shadow: inset 0 1px 0 rgba(255, 226, 170, .12), 0 3px 8px rgba(0, 0, 0, .5); font-variant-numeric: tabular-nums;
}
.g2-stackbtn.is-peak .g2-st-value { border-color: #fff1c8; background: var(--g2-gold-btn); color: #2a1706; text-shadow: 0 1px 0 rgba(255, 240, 200, .6); }
.g2-st-day { margin-top: -2px; font: 800 11.5px/1 var(--g2-ui); letter-spacing: .12em; text-transform: uppercase; color: #e9d9b8; text-shadow: 0 2px 2px #000; }
.g2-stackbtn.is-peak .g2-st-day { color: #ffe08a; }

@media (max-width: 800px) {
  .g2-stacks { gap: 3px; padding-inline: 0; }
  .g2-st-value { min-width: 24px; padding: 3px 5px 2px; font-size: 14px; }
  .g2-st-day { font-size: 10.5px; letter-spacing: .06em; }
  .g2-dial-svg { width: min(100%, 380px); }
}
@media (prefers-reduced-motion: reduce) {
  .g2-bar { animation: none; }
  .g2-coin { opacity: 1; transform: none; transition: none; }
  .g2-st-crown { animation: none; }
}
html.g2-calm .g2-bar { animation: none; }
html.g2-calm .g2-coin { opacity: 1; transform: none; transition: none; }
html.g2-calm .g2-st-crown { animation: none; }
