/* Hearthmist module styles: seasons */

/* The season plate sits first in the top-left corner of the map; the quests tracker goes under it. */
.seasons-hud { order: 1; position: relative; z-index: 1; }

.seasons-plate {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.12s;
}
.seasons-plate:hover { background: var(--panel-2); }
.seasons-plate .ic { width: 18px; height: 18px; color: var(--gold); vertical-align: 0; }
.seasons-name { font-family: var(--serif); font-size: var(--fs-body); font-weight: 400; line-height: 1.2; }
/* The countdown keeps its width as the digits change, so the plate does not twitch. */
.seasons-left { min-width: 46px; color: var(--muted); text-align: right; white-space: nowrap; }

/* What the season does, beside the plate while it is hovered or focused. */
.seasons-tip {
  position: absolute;
  left: calc(100% + var(--s2));
  top: 0;
  display: none;
  flex-direction: column;
  gap: 1px;
  width: max-content;
  max-width: 250px;
  padding: 7px 11px 8px;
  background: var(--panel); /* opaque: it may lie across the plate below */
  color: var(--text-2);
  pointer-events: none;
}
/* `.seasons-over` is set while a mouse is on the plate. A finger has no hover to leave, so a tap goes straight
   to the almanac instead. */
.seasons-over .seasons-tip,
.seasons-plate:focus-visible + .seasons-tip { display: flex; }
.seasons-tip b { display: none; font-family: var(--serif); font-size: var(--fs-body); font-weight: 400; color: var(--text); }

@media (max-width: 820px) {
  .seasons-plate { gap: 6px; min-height: 36px; padding: 5px 9px; }
  .seasons-name { display: none; }
  .seasons-left { min-width: 0; }
  .seasons-tip { left: 0; top: calc(100% + 6px); max-width: min(250px, calc(100vw - 32px)); }
  .seasons-tip b { display: block; }
}
