/* ==========================================================================
   Game — Energy Station (unit E). Prefix gm-ene-.
   ==========================================================================
   Tokens only. LiFE RPG's five rating colours (frame 71) are mapped onto the
   three hues every palette defines — critical, warning, accent — plus
   good-text, so a palette preset recolours them and their order still
   reads: red → pink (between critical and warning) → yellow → blue (a
   quieter accent) → green (good-text, with a glow). The night hero borrows
   the accent's quiet tint for its sky; nothing here is a fixed colour.     */

.gm-ene, .gm-jou { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }
.c-red    { --ene-c: var(--critical); }
.c-pink   { --ene-c: color-mix(in srgb, var(--critical) 55%, var(--warning)); }
.c-yellow { --ene-c: var(--warning); }
.c-blue   { --ene-c: color-mix(in srgb, var(--accent) 70%, var(--text-muted)); }
.c-green  { --ene-c: var(--good-text); }

.gm-ene { display: flex; flex-direction: column; gap: 16px; max-width: 980px; margin: 0 auto; }
.gm-ene .section-head { margin-top: 6px; }
.gm-ene-cols { display: grid; gap: 16px; }
.gm-ene-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 900px) { .gm-ene-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; } }

/* --- rating dots ------------------------------------------------------------ */

.gm-ene-dots { display: inline-flex; gap: 3px; align-items: center; }
.gm-ene-dots i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: background-color 0.25s ease, transform 0.25s var(--ease-out, ease-out), box-shadow 0.25s ease;
}
.gm-ene-dots i.past { background: color-mix(in srgb, var(--ene-c, var(--accent)) 30%, var(--surface-2)); box-shadow: none; }
.gm-ene-dots i.on { background: var(--ene-c, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ene-c, var(--accent)) 20%, transparent); }
.gm-ene-dots.big { gap: 5px; }
.gm-ene-dots.big i { width: 12px; height: 12px; }
.gm-ene-dots.c-green i.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ene-c) 22%, transparent), 0 0 12px color-mix(in srgb, var(--ene-c) 55%, transparent); }
.gm-ene-word { font-size: 13px; font-weight: 600; color: var(--ene-c, var(--text-secondary)); }

.gm-ene-tag {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-family: var(--s-mono); font-size: 10.5px; letter-spacing: 0.03em;
  padding: 2px 7px; border-radius: 5px; color: var(--accent); background: var(--accent-quiet);
}
.gm-ene-tag.bad { color: var(--critical); background: color-mix(in srgb, var(--critical) 14%, transparent); }

/* --- the hero: current cycle -------------------------------------------------- */

.gm-ene-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: stretch;
  padding: 18px 16px 16px;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--warning) 9%, transparent), transparent 60%),
    var(--surface-1);
  transition: background-color 0.4s ease;
}
.gm-ene-hero.night {
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%),
    color-mix(in srgb, var(--accent-quiet) 45%, var(--surface-1));
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}
.gm-ene-state { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.gm-ene-title {
  font-family: var(--s-display); font-size: 27px; font-weight: 600; line-height: 1.1;
  letter-spacing: var(--s-h-track, -0.01em);
}
.gm-ene-state .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.gm-ene-sum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gm-ene-herotags { display: flex; justify-content: center; margin-top: -6px; }

.gm-ene-stars { position: absolute; inset: 0; pointer-events: none; }
.gm-ene-stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--text-primary);
  left: calc(6% + (var(--i) * 37 % 88) * 1%); top: calc(8% + (var(--i) * 23 % 46) * 1%);
  opacity: .35; animation: gm-ene-twinkle 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.41s);
}
.gm-ene-stars i:nth-child(3n) { width: 3px; height: 3px; }
@keyframes gm-ene-twinkle { 50% { opacity: .9; transform: scale(1.3); } }

/* The 24-hour dial. */
.gm-ene-dialwrap { display: grid; place-items: center; }
.gm-ene-dial { width: min(260px, 74vw); height: auto; display: block; overflow: visible; }
.gm-ene-track { fill: none; stroke: var(--surface-2); stroke-width: 14; }
.gm-ene-night .gm-ene-track, .gm-ene-hero.night .gm-ene-track { stroke: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); }
.gm-ene-tick { stroke: var(--axis); stroke-width: 1; }
.gm-ene-tick.major { stroke: var(--text-muted); stroke-width: 1.6; }
.gm-ene-hr { fill: var(--text-muted); font-family: var(--s-mono); font-size: 9px; }
.gm-ene-arc {
  fill: none; stroke: var(--ene-c, var(--accent)); stroke-width: 14; stroke-linecap: round;
  stroke-dasharray: 600; stroke-dashoffset: 600; animation: gm-ene-draw 0.9s var(--ease-out, ease-out) 0.1s forwards;
}
.gm-ene-dial.live .gm-ene-arc { stroke: var(--accent); animation-duration: 0.6s; }
@keyframes gm-ene-draw { to { stroke-dashoffset: 0; } }
.gm-ene-cap { fill: var(--surface-1); stroke: var(--border-strong); stroke-width: 1; }
.gm-ene-moon { fill: var(--text-secondary); }
.gm-ene-moon-cut { fill: var(--surface-1); }
.gm-ene-sun { fill: var(--warning); }
.gm-ene-now { fill: var(--accent); }
.gm-ene-ghost { fill: none; stroke: color-mix(in srgb, var(--good-text) 45%, transparent); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 2 7; }
.gm-ene-dial:not(.live) .gm-ene-ghost ~ .gm-ene-centre { fill: var(--text-secondary); }
.gm-ene-cap.pulse { animation: gm-ene-pulse 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gm-ene-pulse { 50% { stroke: var(--accent); stroke-width: 3; } }
.gm-ene-centre {
  fill: var(--text-primary); font-family: var(--s-value-f); font-weight: var(--s-value-w, 600);
  font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.gm-ene-centre-sub { fill: var(--text-muted); font-family: var(--s-mono); font-size: 9.5px; letter-spacing: 0.06em; }

/* The big buttons — the daily interaction. */
.gm-ene-big {
  appearance: none; cursor: pointer; font: inherit; width: 100%; min-height: 66px;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; text-align: left;
  padding: 9px 16px 9px 9px; border-radius: 999px; border: 0; position: relative; z-index: 1;
  color: var(--surface-1); background: var(--accent);
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform 0.14s var(--ease-out, ease-out), box-shadow 0.2s ease;
}
.gm-ene-big:active { transform: scale(0.97); }
.gm-ene-big:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }
.gm-ene-big-ico {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface-1) 22%, transparent);
}
.gm-ene-big-l { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gm-ene-big-l b { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.gm-ene-big-l span { font-size: 12.5px; opacity: .82; }
.gm-ene-big.wake {
  color: var(--surface-0); background: var(--warning);
  box-shadow: 0 10px 28px -8px color-mix(in srgb, var(--warning) 70%, transparent);
  animation: gm-ene-glow 2.8s ease-in-out infinite;
}
@keyframes gm-ene-glow { 50% { box-shadow: 0 10px 34px -6px color-mix(in srgb, var(--warning) 85%, transparent); } }
.gm-ene-big.quiet {
  min-height: 56px; color: var(--text-primary); background: var(--surface-2); box-shadow: none;
  border: 1px solid var(--border);
}
.gm-ene-big.quiet .gm-ene-big-ico { width: 40px; height: 40px; color: var(--accent); background: var(--surface-1); }
.gm-ene-big.quiet .gm-ene-big-l b { font-size: 16px; }
.gm-ene-cancel { justify-self: center; color: var(--text-muted); font-size: 12px; position: relative; z-index: 1; }
.gm-ene-log { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; border-radius: 999px; }

/* --- the low-energy banner ------------------------------------------------------ */

.gm-ene-low {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--warning) 11%, var(--surface-1));
  border: 1px solid color-mix(in srgb, var(--warning) 45%, transparent);
  animation: gm-rise 0.3s var(--ease-out, ease-out);
}
.gm-ene-low-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: var(--warning); background: color-mix(in srgb, var(--warning) 16%, transparent);
}
.gm-ene-low-text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
.gm-ene-low-text b { color: var(--text-primary); font-size: 14.5px; }
.gm-ene-low.compact { padding: 10px 12px; }

/* --- overview and performance ------------------------------------------------------ */

.gm-ene-over { display: flex; flex-direction: column; gap: 14px; }
.gm-ene-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gm-ene-stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gm-ene-stat .gm-eyebrow { font-size: 9.5px; }
.gm-ene-stat b {
  font-family: var(--s-value-f); font-weight: var(--s-value-w, 600); font-size: 18px;
  font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.15;
}
.gm-ene-buckets { display: flex; flex-direction: column; gap: 7px; padding-top: 12px; border-top: 1px solid var(--grid); }
.gm-ene-bucket { display: grid; grid-template-columns: 128px minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 12.5px; }
.gm-ene-bucket-k { color: var(--text-secondary); white-space: nowrap; }
.gm-ene-bucket-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.gm-ene-bucket-bar i {
  display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--accent);
  transform-origin: left; animation: gm-ene-grow 0.6s var(--ease-out, ease-out) both;
}
.gm-ene-bucket.bad .gm-ene-bucket-k, .gm-ene-bucket.bad .gm-ene-bucket-n { color: var(--critical); }
.gm-ene-bucket.bad .gm-ene-bucket-bar i { background: var(--critical); }
.gm-ene-bucket-n { font-family: var(--s-mono); font-size: 11px; text-align: right; color: var(--text-secondary); white-space: nowrap; }
@keyframes gm-ene-grow { from { transform: scaleX(0.02); } }

.gm-ene-perf {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px 18px; align-items: baseline;
}
.gm-ene-perf-t {
  font-family: var(--s-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); text-align: right;
}
.gm-ene-perf-k { font-size: 13px; color: var(--text-secondary); }
.gm-ene-perf > b {
  display: inline-flex; align-items: baseline; justify-content: flex-end; gap: 4px; white-space: nowrap;
  font-family: var(--s-value-f); font-weight: var(--s-value-w, 600); font-size: 15.5px; font-variant-numeric: tabular-nums;
}
.gm-ene-exp { color: var(--accent); }
.gm-ene-arrow { font-family: var(--s-body); font-size: 12px; font-weight: 700; }
.gm-ene-arrow.good { color: var(--good-text); }
.gm-ene-arrow.bad { color: var(--critical); }

/* --- the 14-night window chart ------------------------------------------------------ */

.gm-ene-wincard { padding: 12px 14px; }
.gm-ene-win { width: 100%; height: auto; display: block; }
.gm-ene-win-grid { stroke: var(--grid); stroke-width: 1; }
.gm-ene-win-ax { fill: var(--text-muted); font-family: var(--s-mono); font-size: 8.5px; }
.gm-ene-win-day { fill: var(--text-muted); font-family: var(--s-mono); font-size: 9.5px; }
.gm-ene-win-day.today { fill: var(--text-primary); font-weight: 600; }
.gm-ene-win-bar {
  fill: var(--ene-c, var(--accent));
  transform-box: fill-box; transform-origin: left; animation: gm-ene-grow 0.5s var(--ease-out, ease-out) both;
  animation-delay: calc(var(--i) * 25ms);
}
.gm-ene-win-h { fill: var(--text-secondary); font-family: var(--s-mono); font-size: 9.5px; font-variant-numeric: tabular-nums; }
.gm-ene-win-none { stroke: var(--grid); stroke-dasharray: 2 4; }

/* --- the memos month ------------------------------------------------------------------ */

.gm-ene-mnav { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--s-mono); font-size: 11.5px; color: var(--text-secondary); }
.gm-ene-mnav .icon-btn { width: 28px; height: 28px; font-size: 17px; }
.gm-ene-mnav .icon-btn:disabled { opacity: .3; }
.gm-ene-memos { display: flex; flex-direction: column; gap: 12px; }
.gm-ene-map { display: grid; grid-template-columns: 38px repeat(7, minmax(0, 1fr)); gap: 5px; width: 100%; max-width: 380px; margin: 0 auto; }
.gm-ene-dow, .gm-ene-wk {
  display: grid; place-items: center; height: 22px; border-radius: 5px;
  font-family: var(--s-mono); font-size: 10px; color: var(--text-muted); background: var(--surface-2);
}
.gm-ene-dow:first-of-type, .gm-ene-wk:first-child { background: transparent; }
.gm-ene-cell {
  appearance: none; border: 0; padding: 0; font: inherit;
  aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center;
  background: var(--heat-0);
}
.gm-ene-cell i { width: 42%; height: 42%; border-radius: 3px; background: transparent; }
.gm-ene-cell[class*=" c-"] { background: color-mix(in srgb, var(--ene-c) 16%, var(--heat-0)); cursor: pointer; }
.gm-ene-cell[class*=" c-"] i { background: var(--ene-c); }
.gm-ene-cell.out { visibility: hidden; }
.gm-ene-cell.future { opacity: .45; }
.gm-ene-cell.today { box-shadow: inset 0 0 0 1.5px var(--text-secondary); }
button.gm-ene-cell { transition: transform 0.12s var(--ease-out, ease-out); }
button.gm-ene-cell:active { transform: scale(0.9); }
.gm-ene-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-family: var(--s-mono); font-size: 10.5px; color: var(--text-muted); }
.gm-ene-legend span { display: inline-flex; align-items: center; gap: 5px; }
.gm-ene-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--ene-c); }

/* --- nights ------------------------------------------------------------------------------ */

.gm-ene-nights { padding-top: 4px; padding-bottom: 4px; }
.gm-ene-night {
  appearance: none; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--grid);
  font: inherit; color: var(--text-primary); text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 4px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0;
}
.gm-ene-night:last-of-type { border-bottom: 0; }
.gm-ene-night-bar { align-self: stretch; border-radius: 2px; background: var(--ene-c); }
.gm-ene-night-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gm-ene-night-main b { font-size: 14px; font-weight: 600; }
.gm-ene-night-main span { font-family: var(--s-mono); font-size: 11px; color: var(--text-muted); }
.gm-ene-night-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.gm-ene-night-side b { font-family: var(--s-value-f); font-size: 15px; font-variant-numeric: tabular-nums; }
.gm-ene-more { display: block; margin: 8px auto 4px; }
.gm-ene-empty { text-align: center; padding: 18px; }

.gm-ene-intro { display: flex; flex-direction: column; gap: 12px; }
.gm-ene-intro-row { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; }
.gm-ene-intro-row b { font-size: 14px; }
.gm-ene-intro-row .sub { font-size: 13px; line-height: 1.45; }
.gm-ene-intro-ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: var(--accent); background: var(--accent-quiet);
}
.gm-ene-intro-ico.sun { color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); }

/* --- the morning result --------------------------------------------------------------------- */

.gm-ene-res {
  width: min(360px, 100%); position: relative; overflow: hidden; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 22px 20px;
  background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: 20px; box-shadow: var(--shadow);
  animation: gm-pop 0.36s cubic-bezier(0.2, 0.9, 0.3, 1.25);
}
.gm-ene-res-sky {
  width: calc(100% + 44px); height: 104px; margin: 0 -22px 2px; display: grid; place-items: end center;
  padding-bottom: 14px; overflow: hidden; border-bottom: 1px solid color-mix(in srgb, var(--warning) 25%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--warning) 22%, var(--surface-1)), var(--surface-1));
}
.gm-ene-res-sun {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--surface-0);
  background: var(--warning); box-shadow: 0 0 0 10px color-mix(in srgb, var(--warning) 18%, transparent), 0 0 44px color-mix(in srgb, var(--warning) 60%, transparent);
  animation: gm-ene-rise 0.9s var(--ease-out, ease-out) both;
}
@keyframes gm-ene-rise { from { transform: translateY(80px); } }
.gm-ene-res-dur {
  font-family: var(--s-value-f); font-weight: var(--s-value-w, 600); font-size: 44px; line-height: 1;
  font-variant-numeric: tabular-nums; margin-top: 2px;
}
.gm-ene-res-times { font-family: var(--s-mono); font-size: 12px; color: var(--text-muted); }
.gm-ene-res .gm-ene-dots.big i { width: 16px; height: 16px; }
.gm-ene-res .gm-ene-dots i.on { transform: scale(1.18); }
.gm-ene-res-word { font-size: 18px; font-weight: 700; color: var(--ene-c); }
.gm-ene-res-pay { display: flex; align-items: center; gap: 8px; }
.gm-ene-res-pay .gm-chip { font-size: 14px; padding: 4px 10px; }
.gm-ene-res-note { font-size: 13px; color: var(--warning); }
.gm-ene-res .btn { width: 100%; margin-top: 6px; }

/* --- sheets ------------------------------------------------------------------------------------ */

.gm-ene-prev {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px; margin-top: 4px;
  border-radius: var(--radius-s); background: var(--surface-2); min-height: 46px;
}
.gm-ene-prev b { font-family: var(--s-value-f); font-size: 19px; font-variant-numeric: tabular-nums; }
.gm-ene-prev-w { font-size: 13px; font-weight: 600; color: var(--ene-c); }
.gm-ene-prev-day { margin-left: auto; }
.gm-ene-bad { color: var(--critical); font-size: 13px; }

.gm-ene-set-tbl { display: flex; flex-direction: column; gap: 5px; margin: -4px 0 10px; }
.gm-ene-set-row { display: grid; grid-template-columns: 110px auto 1fr; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-secondary); }

/* --- hub card ------------------------------------------------------------------------------------ */

.gm-ene-hubwrap { display: flex; flex-direction: column; gap: 10px; }
.gm-ene-hub { display: flex; flex-direction: column; gap: 10px; }
.gm-ene-hub.night { background: color-mix(in srgb, var(--accent-quiet) 45%, var(--surface-1)); }
.gm-ene-hubrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 11px; align-items: center; cursor: pointer; }
.gm-ene-hubico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent);
}
.gm-ene-hubico.night { color: var(--accent); background: var(--accent-quiet); }
.gm-ene-hubtext { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12.5px; color: var(--text-muted); }
.gm-ene-hubtitle { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.gm-ene-hubsum { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gm-ene-hubsum b { font-family: var(--s-value-f); font-size: 14px; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.gm-ene-hubbtn {
  appearance: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 0 16px 0 12px;
  border: 0; border-radius: 999px; color: var(--surface-1); background: var(--accent);
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: transform 0.14s var(--ease-out, ease-out);
}
.gm-ene-hubbtn:active { transform: scale(0.95); }
.gm-ene-hubbtn.wake { color: var(--surface-0); background: var(--warning); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--warning) 80%, transparent); }
.gm-ene-hubbtn.quiet { color: var(--text-primary); background: var(--surface-2); box-shadow: none; border: 1px solid var(--border); font-weight: 600; }

/* Wide: state and buttons on the left, the dial on the right. */
@media (min-width: 760px) {
  .gm-ene-hero { grid-template-columns: minmax(0, 1fr) auto; column-gap: 36px; align-content: start; padding: 22px 26px; }
  .gm-ene-hero > * { grid-column: 1; }
  .gm-ene-hero > .gm-ene-dialwrap { grid-column: 2; grid-row: 1 / span 6; align-self: center; }
  .gm-ene-big, .gm-ene-log { max-width: 440px; }
  .gm-ene-herotags { justify-content: flex-start; margin-top: 0; }
  .gm-ene-cancel { justify-self: start; }
  .gm-ene-big { align-self: end; }
}

@media (max-width: 440px) {
  .gm-ene-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .gm-ene-bucket { grid-template-columns: 118px minmax(0, 1fr) 46px; gap: 8px; }
  .gm-ene-night { grid-template-columns: 4px minmax(0, 1fr) auto; }
  .gm-ene-night > .gm-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gm-ene-stars i, .gm-ene-arc, .gm-ene-big.wake, .gm-ene-cap.pulse, .gm-ene-low, .gm-ene-bucket-bar i,
  .gm-ene-win-bar, .gm-ene-res, .gm-ene-res-sun { animation: none; }
  .gm-ene-arc { stroke-dashoffset: 0; }
  .gm-ene-big, .gm-ene-hubbtn, .gm-ene-dots i, button.gm-ene-cell { transition: none; }
}
