/* Fee Vampire forest. Full-bleed stage. Colours from tokens.css. */

.fee-mount {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

.fee-stage-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  max-width: none !important;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.game-stage .stage-play:has(.fee-stage-body) {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.game-stage .stage-play-body:has(.fee-stage-body) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  max-width: none;
  width: 100%;
  min-height: 0;
  margin: 0;
}

.fee-root .harbor-tut-banner {
  top: 108px;
}

@media (max-width: 700px) {
  .fee-root .harbor-tut-banner { top: 156px; }
}

.fee-root {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--navy);
  outline: none;
}

.fee-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fee-hud {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.fee-chip,
.fee-call,
.fee-help {
  pointer-events: auto;
}

.fee-word {
  margin-right: 0.35em;
}

.fee-word:last-child {
  margin-right: 0;
}

.fee-num {
  letter-spacing: 0;
}

.fee-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid var(--border-card);
  border-radius: var(--r-pill);
  background: var(--surface-solid);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

.fee-help,
.fee-call {
  min-height: 44px;
  border: 1px solid var(--border-card);
  border-radius: var(--r-pill);
  background: var(--surface-solid);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0;
}

.fee-help {
  width: 44px;
  padding: 0;
}

.fee-dock {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 7;
  display: flex;
  justify-content: center;
}

.fee-call {
  width: min(100%, 420px);
  min-height: 44px;
  padding: 8px 16px;
}

.fee-call:disabled {
  opacity: 1;
  background: var(--surface-solid);
  color: var(--text-1);
}

.fee-story {
  position: absolute;
  top: 52px;
  left: 12px;
  z-index: 5;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0;
  overflow: hidden;
  padding: 6px 10px;
  border-radius: var(--r-12);
  background: var(--surface-solid);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
}

.fee-signs {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.fee-sign {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--surface-solid);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.fee-why {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 64px;
  z-index: 7;
  max-height: 46%;
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid var(--border-card);
  border-radius: var(--r-18);
  background: var(--surface-solid);
  color: var(--text-1);
}

.fee-why-line,
.fee-key,
.fee-note {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
}

.fee-note { color: var(--text-2); }

.fee-guide {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--scrim);
}

.fee-guide[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .fee-call,
  .fee-why { transition: none; }
}
