#effect-rows {
  position: fixed;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
#effect-rows.centre {
  transform: translateX(-50%);
  align-items: center;
}
#effect-rows[data-place=bars] {
  flex-direction: column-reverse;
}
#game:not([data-pvl-clean-ui=true]) #hud-left > #hud {
  margin-bottom: var(--fx-room, 0px);
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  #game:not([data-pvl-clean-ui=true]) #hud-left:has(> #skill-pins:not([hidden])) > #journey-card:not(.first-steps) {
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    width: min(240px, calc(100vw - 400px));
    max-height: min(32dvh, var(--notes-room, 32dvh));
    overflow-y: auto;
  }
}
body.first-adventure #effect-rows:not(:has(.fx[data-id=tonic], .fx[data-id^="ward:"])) {
  display: none;
}
#effect-rows.split .fx-row {
  position: absolute;
  padding-bottom: 0;
}
.fx-row {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  padding-bottom: 15px;
}
#effect-rows[data-time=false] .fx-row {
  padding-bottom: 2px;
}
.fx-row.empty {
  display: none;
}
.fx,
.fx-more {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: var(--fx-size, 36px);
  height: var(--fx-size, 36px);
  margin: 0;
  padding: 0;
  background: #2b1d0e;
  border: 2px solid #d5bc7c;
  border-radius: 5px;
  box-shadow: 0 1px 0 #120b04, 0 2px 4px rgb(0 0 0 / .45);
  pointer-events: auto;
  cursor: help;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font: inherit;
  color: inherit;
}
.fx:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.fx-pic {
  position: absolute;
  inset: 2px;
  display: block;
}
.fx-pic img,
.fx-pic svg {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.fx-pic svg {
  box-sizing: border-box;
  padding: 12%;
}
.fx-pic path {
  fill: var(--fx-mark, #fff);
}
#fx-debuffs .fx {
  border-color: #a7b4c2;
}
#fx-debuffs .fx[data-kind=fire] {
  border-color: #ff8a2a;
}
#fx-debuffs .fx[data-kind=frost] {
  border-color: #6fb8ff;
}
#fx-debuffs .fx[data-kind=physical] {
  border-color: #e0484f;
}
#fx-debuffs .fx[data-kind=poison] {
  border-color: #7ccf5a;
}
#fx-debuffs .fx[data-kind=control] {
  border-color: #ffe27a;
}
.fx-n {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 15px;
  height: 15px;
  box-sizing: border-box;
  padding: 0 3px;
  font: 800 10px/13px var(--read, system-ui, sans-serif);
  color: #fff;
  background: #120b04;
  border: 1px solid currentColor;
  border-radius: 8px;
  text-align: center;
  pointer-events: none;
}
.fx-n[hidden] {
  display: none;
}
.fx-t {
  position: absolute;
  left: -8px;
  right: -8px;
  top: 100%;
  margin-top: 2px;
  font: 700 11px/12px var(--read, system-ui, sans-serif);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: #fff6de;
  text-shadow:
    0 1px 2px #120b04,
    0 0 3px #120b04,
    0 0 2px #120b04;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
#effect-rows[data-time=false] .fx-t {
  display: none;
}
.fx-more {
  display: grid;
  place-items: center;
  font: 800 12px/1 var(--read, system-ui, sans-serif);
  color: #fff6de;
  cursor: help;
}
.fx-more[hidden] {
  display: none;
}
.fx.ending {
  animation: fx-ending .9s ease-in-out infinite;
}
.fx.ending .fx-t {
  color: #ff8170;
}
@keyframes fx-ending {
  0%, 100% {
    filter: none;
    opacity: 1;
  }
  50% {
    filter: brightness(1.7);
    opacity: .55;
  }
}
.fx.ending.calm {
  animation: none;
  outline: 2px solid #ff8170;
  outline-offset: 1px;
}
@media (prefers-reduced-motion: reduce) {
  .fx.ending {
    animation: none;
    outline: 2px solid #ff8170;
    outline-offset: 1px;
  }
}
.fx-tip {
  position: fixed;
  z-index: 40;
  display: grid;
  gap: 3px;
  width: max-content;
  max-width: min(300px, calc(100vw - 12px));
  padding: 7px 10px;
  background: var(--parchment, #f4e4bc);
  color: var(--ink, #2b1d0e);
  border: 2px solid var(--ink, #2b1d0e);
  border-radius: 6px;
  font: 12px/1.35 var(--read, system-ui, sans-serif);
  pointer-events: none;
}
.fx-tip[hidden] {
  display: none;
}
.fx-tip-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}
.fx-tip-head b {
  font-size: 13px;
}
.fx-tip-head i {
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #8a2a1e;
  white-space: nowrap;
}
.fx-tip-meta {
  color: #6a5a44;
  font-size: 11px;
}
.fx-tip-meta:empty {
  display: none;
}
:root:has(#hud-position-editor) #effect-rows .fx-row.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: var(--fx-size, 36px);
  padding: 0;
  border: 2px dashed #fff6de;
  border-radius: 5px;
  background: rgb(18 11 4 / .45);
}
:root:has(#hud-position-editor) #effect-rows .fx-row.empty::before {
  content: attr(data-sample);
  font: 700 12px/1 var(--read, system-ui, sans-serif);
  color: #fff6de;
}
#game#game#game.fx-on #hud-flags :is(.mana-shield, .guard, .stance, .haste, .dazed, .sure-footed, .brew-tonic, .brew-ward, .dragonfire-burn, .skull, .food-sick) {
  display: none !important;
}
#game#game#game.fx-on[data-fx-notes=true][data-fx-buffs=true] #hud-flags :is(.pz, .warm, .light, .boat) {
  display: none !important;
}
#game#game#game.fx-on[data-fx-notes=true][data-fx-buffs=true] #hud-flags .pvlc-effects[data-kind=buffs],
#game#game#game.fx-on #hud-flags .pvlc-effects[data-kind=debuffs] {
  display: none !important;
}
