#ao-toasts[data-aot] {
  top: var(--aot-top, 12px);
  right: 16px;
  left: auto;
  width: 400px;
  max-width: calc(100vw - 32px);
  display: grid;
  gap: 0;
}

@media (max-width: 768px) {
  #ao-toasts[data-aot] {
    top: calc(var(--aot-top, 12px) + env(safe-area-inset-top, 0px));
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
  }
}

.aot-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.aot {
  --aot-acc: var(--mint-pop);
  --aot-gold: hsl(49, 98%, 60%);
  --aot-lifted: hsl(271, 40%, 13%);
  --aot-p80: hsla(0, 0%, 93%, 0.8);
  --aot-out: cubic-bezier(0.16, 1, 0.3, 1);
  --aot-gap: 12px;
  grid-area: 1 / 1;
  align-self: start;
  position: relative;
  width: 100%;
  pointer-events: auto;
  touch-action: pan-y;
  font-family: var(--font-body, inherit);
  filter: drop-shadow(0 10px 24px hsla(273, 46%, 3%, 0.6))
    drop-shadow(0 2px 4px hsla(273, 46%, 3%, 0.4));
}
.aot.aot-out {
  pointer-events: none;
}
.aot[data-kind="info"] {
  --aot-acc: var(--aqua-zap);
}
.aot[data-kind="error"] {
  --aot-acc: var(--cherry-top);
}
.aot[data-kind="warning"] {
  --aot-acc: var(--peach-spark);
}
.aot[data-kind="quest"] {
  --aot-acc: var(--mochi);
}
.aot[data-kind="reward"] {
  --aot-acc: var(--aot-gold);
}
.aot-card {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid var(--pebble-20);
  border-radius: 12px;
  z-index: 1;
  clip-path: inset(0 0 0 0 round 12px);
}
.aot-gold {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--aot-gold);
  opacity: 0;
  pointer-events: none;
}
.aot-stamped .aot-gold {
  opacity: 1;
}
.aot-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--aot-acc), transparent 85%);
  opacity: 0.14;
  pointer-events: none;
}
.aot-shine {
  position: absolute;
  inset: -20% auto -20% 0;
  width: 40%;
  background: linear-gradient(
    100deg,
    transparent,
    hsla(49, 98%, 70%, 0.28),
    transparent
  );
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
}
.aot-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--aot-gap);
  padding: 10px 14px 10px 10px;
  min-height: 66px;
}
.aot-av {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
}
.aot-ao {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--aot-acc);
  object-fit: cover;
  background: var(--aot-lifted);
}
.aot-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--charcoal);
  display: grid;
  place-items: center;
}
.aot-badge img {
  width: 14px;
  height: 14px;
  grid-area: 1 / 1;
}
.aot-badge .aot-stamp,
.aot-stamped .aot-badge .aot-pend {
  opacity: 0;
}
.aot-stamped .aot-badge .aot-stamp {
  opacity: 1;
}
.aot-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}
.aot-row {
  min-width: 0;
}
.aot-label {
  font-size: 13px;
  line-height: 1.35;
  color: var(--aot-p80);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aot-title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--pebble);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.aot-title.aot-one {
  -webkit-line-clamp: 1;
}
.aot-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.aot-head .aot-label {
  flex: 1;
}
.aot-stamped .aot-head .aot-label {
  color: var(--aot-gold);
}
.aot-detail {
  font-size: 13px;
  color: var(--aot-p80);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.aot-bar {
  display: flex;
  gap: 4px;
  height: 6px;
  margin-top: 5px;
}
.aot-seg {
  flex: 1;
  border-radius: 99px;
  background: var(--pebble-10);
  overflow: hidden;
}
.aot-seg i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sundrop), var(--kawaii-core));
  transform-origin: left center;
  transform: scaleX(0);
}
.aot[data-kind="reward"] .aot-seg i {
  background: linear-gradient(90deg, var(--aot-gold), var(--sundrop));
}
.aot-act {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.aot-btn {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--pebble);
  background: var(--pebble-10);
  border: 1px solid var(--pebble-15);
  border-radius: 99px;
  height: 32px;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s var(--aot-out);
}
.aot-btn.primary,
.aot-btn.gold {
  background: var(--sundrop);
  color: var(--charcoal);
  border-color: transparent;
}
.aot-btn.gold {
  background: var(--aot-gold);
}
.aot-btn:active {
  transform: scale(0.97);
}
.aot-btn:focus-visible,
.aot-x:focus-visible {
  outline: 2px solid var(--sundrop);
  outline-offset: 2px;
}
.aot-x {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--pebble-50);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition:
    color 0.2s,
    background 0.2s;
}
.aot-x svg {
  width: 14px;
  height: 14px;
}
@media (hover: hover) {
  .aot-btn:hover {
    background: var(--pebble-20);
  }
  .aot-btn.primary:hover,
  .aot-btn.gold:hover {
    background: var(--pebble);
  }
  .aot-x {
    opacity: 0;
    transition:
      opacity 0.2s,
      color 0.2s,
      background 0.2s;
  }
  .aot:hover .aot-x,
  .aot:focus-within .aot-x {
    opacity: 1;
  }
  .aot-x:hover {
    color: var(--pebble);
    background: var(--pebble-10);
  }
}
.aot-timer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--aot-acc);
  opacity: 0.7;
  transform-origin: left center;
}
.aot-paused .aot-timer {
  opacity: 0.35;
}
.aot-layers {
  position: absolute;
  inset: 0;
}
.aot-layer {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--charcoal);
  border: 1px solid var(--pebble-20);
  opacity: 0;
  pointer-events: none;
}
.aot-more {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  display: grid;
  height: 18px;
  min-width: 26px;
  box-sizing: border-box;
  padding: 0 6px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--aot-lifted);
  border: 1px solid var(--pebble-20);
  color: var(--aot-p80);
  font: 600 11px/16px var(--font-body, inherit);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}
.aot-more b {
  grid-area: 1 / 1;
  text-align: center;
  font-weight: inherit;
}

@media (max-width: 520px) {
  .aot {
    --aot-gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aot-timer {
    visibility: hidden;
  }
}
