/* ARARA fatigue and persistent voice progression. */
.energy-row {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "caption icon track value";
  align-items: center;
  gap: 8px;
}

.arara-strength-caption {
  grid-area: caption;
  display: flex;
  min-width: 86px;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.arara-strength-caption b {
  color: #f0c86b;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
}

.arara-strength-caption small {
  max-width: 100px;
  margin-top: 3px;
  color: #a79baa;
  font-size: 7px;
  line-height: 1.25;
}

.energy-icon { grid-area: icon; }
.energy-track { grid-area: track; }
.energy-row > strong { grid-area: value; }

.arara-is-fresh .tap-button__arara {
  filter: saturate(1.13) contrast(1.06) drop-shadow(0 15px 17px rgba(0, 0, 0, .58)) drop-shadow(0 0 17px rgba(126, 54, 225, .34));
}

.arara-is-tired .tap-button__arara {
  transform: translateY(5px) scale(.985) rotate(-.35deg);
  filter: saturate(.91) brightness(.92) drop-shadow(0 13px 15px rgba(0, 0, 0, .62)) drop-shadow(0 0 12px rgba(98, 45, 175, .26));
}

.arara-is-weak .tap-button__arara {
  transform: translateY(10px) scale(.965) rotate(-.8deg);
  filter: saturate(.68) brightness(.78) contrast(.98) drop-shadow(0 10px 13px rgba(0, 0, 0, .68));
  animation: arara-heavy-breath 1.2s ease-in-out infinite;
}

.arara-is-resting .tap-button__arara {
  transform: translateY(14px) scale(.94) rotate(-1.2deg);
  filter: grayscale(.36) saturate(.48) brightness(.66) drop-shadow(0 9px 12px rgba(0, 0, 0, .72));
  animation: arara-heavy-breath 1.45s ease-in-out infinite;
}

@keyframes arara-heavy-breath {
  0%, 100% { translate: -50% 0; }
  50% { translate: -50% 3px; }
}

.arara-is-tired .energy-track i { background: linear-gradient(90deg, #d99b36, #f0c75d); }
.arara-is-weak .energy-track i,
.arara-is-resting .energy-track i { background: linear-gradient(90deg, #9c382e, #e47445); }

.arara-shout-card {
  position: relative;
  overflow: hidden;
  margin: 12px 0;
  padding: 15px;
  border: 1px solid rgba(221, 163, 65, .34);
  border-radius: 16px;
  background:
    linear-gradient(130deg, rgba(13, 10, 16, .98), rgba(39, 17, 28, .97)),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.018) 14px 15px);
  box-shadow: inset 0 1px rgba(255,255,255,.055), 0 14px 30px rgba(0,0,0,.26);
}

.arara-shout-card::before {
  content: "RA";
  position: absolute;
  right: -8px;
  bottom: -26px;
  color: rgba(229, 178, 77, .055);
  font-size: 94px;
  font-weight: 1000;
  line-height: 1;
  transform: rotate(-8deg);
  pointer-events: none;
}

.arara-shout-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.arara-shout-card__head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.arara-shout-card__head span {
  color: #bf9140;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}

.arara-shout-card__head strong {
  overflow: hidden;
  margin-top: 5px;
  color: #ffe69d;
  font-size: clamp(24px, 7.2vw, 34px);
  font-weight: 1000;
  letter-spacing: -.025em;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 #4b1918, 0 0 16px rgba(232, 178, 66, .28);
  white-space: nowrap;
}

.arara-shout-card__head em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(226, 177, 72, .3);
  border-radius: 999px;
  background: rgba(9, 7, 11, .62);
  color: #d8b25e;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.arara-shout-card > p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: #aaa0aa;
  font-size: 10px;
  line-height: 1.45;
}

.arara-shout-card__next {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 10px;
  background: rgba(4, 3, 6, .42);
  color: #8e858e;
  font-size: 9px;
}

.arara-shout-card__next b { color: #e8c469; }

#arara-shout-buy {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 13px;
  border: 1px solid #e3b24c;
  border-radius: 11px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #edc55f, #a76521);
  box-shadow: inset 0 1px rgba(255,255,255,.5), 0 7px 17px rgba(0,0,0,.32);
  color: #1b0d08;
  cursor: pointer;
}

#arara-shout-buy span,
#arara-shout-buy strong {
  font-size: 10px;
  font-weight: 950;
}

#arara-shout-buy:active:not(:disabled) { transform: translateY(1px) scale(.992); }
#arara-shout-buy:disabled { cursor: not-allowed; filter: saturate(.45); opacity: .58; }

.arara-shout-card.is-unaffordable #arara-shout-buy {
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(180deg, #44383f, #241c21);
  color: #b5a9ae;
}

.arara-shout-card.is-maxed {
  border-color: rgba(126, 194, 121, .28);
}

#arara-shout-message {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 12px;
  margin-top: 7px;
  color: #a69ca4;
  font-size: 8px;
}

@media (max-width: 390px) {
  .energy-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "caption caption caption"
      "icon track value";
    row-gap: 6px;
  }

  .arara-strength-caption {
    width: 100%;
    max-width: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .arara-strength-caption small {
    max-width: none;
    margin: 0;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arara-is-weak .tap-button__arara,
  .arara-is-resting .tap-button__arara { animation: none !important; }
}
