/* Animal encounters share the landing's ink, type and materials. */
body.ga-tech-demo .cb {
  --cb-accent: #c8ed73;
  --cb-accent-rgb: 200, 237, 115;
  --cb-deep: #281d34;
  --cb-dark: #17121e;
  border-radius: 2px;
  background: var(--td-surface);
  border-color: var(--td-line);
  color: var(--td-text);
}
body.ga-tech-demo .cb :is(h1, h2, h3, .cb-reward strong) {
  font-family: var(--td-font) !important;
  font-weight: 800;
  letter-spacing: -0.035em;
}
body.ga-tech-demo .cb :is(.cb-arena, .cb-reward, .cb-primary, .cb-secondary, .cb-supply-icon) {
  border-radius: 2px;
}
body.ga-tech-demo
  .cb
  :is(
    .cb-heading > p:last-child,
    .cb-player small,
    .cb-player > span > span,
    .cb-message,
    .cb-supplies small,
    .cb-reward > span > span,
    .cb-reward small
  ) {
  color: var(--td-muted);
}
body.ga-tech-demo .cb :is(.cb-back, .cb-nav-step, .cb-chapter) {
  color: var(--td-violet);
}
body.ga-tech-demo .cb-secondary {
  background: var(--td-purple);
  color: var(--td-text);
  border-color: var(--td-purple-line);
}
body.ga-tech-demo .cb-heading {
  margin-bottom: 8px;
}
.cb-personality {
  max-width: 510px;
  margin: 0 auto 10px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--td-muted);
}
.cb-boss-line {
  min-height: 24px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--td-violet);
}
.cb-guardian-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 0 #100b1840);
}
.cb-gate > .cb-guardian-art {
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
}
.cb-ability {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--td-line);
  font-size: 12px;
}
.cb-ability > strong {
  color: var(--td-violet);
  white-space: nowrap;
}
.cb-ability > span {
  color: var(--td-muted);
  line-height: 1.5;
}
.cb[data-cb-defeated='true'] .cb-guardian-art {
  opacity: 0.38;
  filter: grayscale(0.65);
}
body.ga-tech-demo .cb[data-cb-animal='owl'] .cb-arena {
  min-height: 420px;
}
.cb[data-cb-animal='owl'] .cb-player {
  bottom: 102px;
}
.cb[data-cb-animal='owl'] .cb-arena-marker {
  display: none;
}
.cb-owl-duel {
  position: absolute;
  z-index: 6;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  gap: 6px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--td-purple-line);
  background: #19131fee;
}
.cb-owl-duel > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cb-owl-duel strong {
  font-size: 12px;
  color: var(--td-violet);
}
.cb-owl-duel [data-owl-warning] {
  font-size: 11px;
  color: var(--td-text);
  line-height: 1.5;
}
.cb-owl-duel [data-owl-score] {
  grid-column: 1/-1;
  font-size: 10px;
  color: var(--td-muted);
}
.cb-owl-duel button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--td-lime);
  background: var(--td-lime);
  color: #17121e;
  font-size: 13px;
  font-weight: 750;
  touch-action: manipulation;
}
.cb-owl-duel button small {
  border: 1px solid #17121e55;
  font-size: 10px;
  padding: 2px 4px;
}
.cb-owl-duel button:disabled {
  background: var(--td-purple);
  color: var(--td-muted);
  border-color: var(--td-purple-line);
  opacity: 1;
}
.cb-arena[data-owl-phase='windup'] .cb-owl-duel {
  border-color: var(--td-lime);
}
.cb-bottle-flight {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  width: 64px;
  height: 90px;
  object-fit: contain;
  pointer-events: none;
  transform-origin: center;
}
.cb-arena[data-owl-phase='result'][data-owl-dodged='false']:after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 4;
  left: var(--owl-hit-x, 12%);
  top: var(--owl-hit-y, 58%);
  width: 90px;
  height: 90px;
  border: 3px solid var(--td-violet);
  border-radius: 50%;
  animation: cb-bottle-impact 0.4s ease-out both;
}
.v8-character-title {
  display: block;
  font-size: 10px;
  color: var(--td-violet);
  line-height: 1.5;
  margin: -3px 0 10px;
}
.v8-character-quote {
  margin: 14px 0;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--td-violet);
  color: var(--td-text);
  font-size: 12px;
  line-height: 1.5;
}
.v8-character-ability {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--td-muted);
}
.v8-character-ability > b {
  color: var(--td-violet);
}
body.ga-tech-demo .v7-map .v6-world-portrait img,
body.ga-tech-demo .v7-map .v5-map-node.is-world > .v6-location-portrait > img {
  object-fit: contain;
  mask-image: none;
  width: 100%;
  height: 100%;
}
@keyframes cb-bottle-impact {
  from {
    transform: translate(-50%, -50%) scale(0.45);
    opacity: 0.8;
  }
  to {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}
@keyframes cb-hit {
  0% {
    transform: translateX(0);
  }
  10%,
  30% {
    transform: translateX(-7px) rotate(-2deg);
  }
  100% {
    transform: translateX(0);
  }
}
@media (max-width: 600px) {
  .cb-personality {
    font-size: 11px;
  }
  .cb-boss-line {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .cb-owl-duel {
    padding: 10px;
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 4px 8px;
  }
  .cb-owl-duel [data-owl-warning] {
    font-size: 10px;
  }
  .cb-owl-duel button small {
    display: none;
  }
  .cb-ability {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cb-bottle-flight,
  .cb-arena:after {
    animation: none !important;
  }
  .cb-arena[data-owl-phase='result']:after {
    display: none;
  }
}

/* The HP label is above the fill; it must not paint over it. */
body.ga-tech-demo .raid--arcade .raid-health > span {
  background: transparent !important;
}
/* Reuse the authored GA arena instead of the legacy geometric hills. */
body.ga-tech-demo .cb-arena {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  background:
    linear-gradient(#17121e99, #17121e66),
    url('./assets/ga/raid-v8/arena.webp') center 58% / cover;
  border-color: var(--td-purple-line);
}
body.ga-tech-demo .cb-arena-mountains,
body.ga-tech-demo .cb-ground {
  display: none;
}
body.ga-tech-demo .cb-target-halo,
body.ga-tech-demo .cb-target-halo:before,
body.ga-tech-demo .cb-target-halo:after {
  border-color: #b69aed19;
}
body.ga-tech-demo .cb[data-cb-animal='owl'] .cb-player {
  bottom: 128px;
}
@media (min-width: 601px) {
  body.ga-tech-demo .cb-target {
    width: 220px;
    height: 235px;
  }
  body.ga-tech-demo .cb-target-halo {
    left: 5px;
  }
}

/* The encounter is a small theatre: enemy upstage, player on the near edge. */
body.ga-tech-demo .cb {
  padding: 18px 22px 22px;
  max-width: 1040px;
  margin-inline: auto;
}
body.ga-tech-demo .cb-heading {
  margin: 13px 0 5px;
}
body.ga-tech-demo .cb-heading h1 {
  font-size: clamp(27px, 4vw, 38px);
}
body.ga-tech-demo .cb-personality {
  max-width: 620px;
  margin-bottom: 5px;
}
body.ga-tech-demo .cb-boss-line {
  margin-bottom: 14px;
  color: var(--td-text);
  font-size: 13px;
}
body.ga-tech-demo .cb-arena,
body.ga-tech-demo .cb[data-cb-animal='owl'] .cb-arena {
  min-height: 465px;
  max-width: 880px;
  isolation: isolate;
  box-shadow: inset 0 0 70px #160f2470;
  background:
    linear-gradient(#17121e33, #17121e05 50%, #17121e66),
    url('./assets/ga/raid-v8/arena.webp') center 62% / cover;
}
body.ga-tech-demo .cb-hp {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 19px;
  transform: translateX(-50%);
  width: min(70%, 400px);
  margin: 0;
  padding: 10px 14px 11px;
  background: #21172ee8;
  border: 1px solid #af88d15c;
  box-shadow: 0 3px 0 #110a1b66;
}
body.ga-tech-demo .cb-hp-track {
  height: 7px;
  border-radius: 0;
  box-shadow: 0 0 0 1px #100a18;
}
body.ga-tech-demo .cb-hp-track > span {
  border-radius: 0;
  box-shadow: none;
}
body.ga-tech-demo .cb-hp > div:first-child {
  color: #d5c5e1;
}
.cb-hp strong {
  color: #f2ecde;
}
.cb-hp small {
  color: #bba6cc;
}
body.ga-tech-demo .cb-target {
  position: absolute;
  width: 260px;
  height: 260px;
  left: 50%;
  top: 70px;
  margin: 0;
  transform: translateX(-50%);
}
body.ga-tech-demo .cb-emblem-wrap {
  inset: 0;
  transform-origin: 50% 94%;
  filter: drop-shadow(0 8px 1px #120a2045);
}
body.ga-tech-demo .cb-target-halo {
  display: none;
}
body.ga-tech-demo .cb-target-shadow {
  bottom: 6%;
  left: 16%;
  width: 68%;
  height: 17px;
  background: #120a23b0;
  filter: blur(5px);
}
.cb-guardian-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cb-emblem-wrap > .cb-guardian-art {
  transform: scale(0.93);
}
.cb-emblem-wrap[data-guardian-ready='true'] > .cb-guardian-art {
  visibility: hidden;
}
body.ga-tech-demo .cb[data-cb-hitting='true'] .cb-emblem-wrap[data-guardian-ready='true'] {
  animation: none;
}
body.ga-tech-demo .cb-player,
body.ga-tech-demo .cb[data-cb-animal='owl'] .cb-player {
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  align-items: center;
  flex-direction: column;
  gap: 0;
}
body.ga-tech-demo .cb-player-portrait {
  width: 88px;
  height: 86px;
  transform-origin: 50% 95%;
}
body.ga-tech-demo .cb-player-portrait:after {
  width: 92px;
  left: 4px;
  height: 14px;
  background: #120a24a0;
}
body.ga-tech-demo .cb-player > span:last-child {
  padding: 5px 12px 6px;
  text-align: center;
  gap: 2px;
  min-width: 120px;
  background: #21172eef;
  border: 1px solid #af88d17a;
  box-shadow: 0 3px 0 #130c1c;
}
body.ga-tech-demo .cb-player small {
  font-size: 7px;
  color: var(--td-lime);
}
body.ga-tech-demo .cb-player strong {
  font-size: 12px;
  font-weight: 750;
}
body.ga-tech-demo .cb-player > span > span {
  display: none;
}
body.ga-tech-demo .cb-arena-marker {
  display: none;
}
body.ga-tech-demo .cb-console {
  max-width: 880px;
  margin-top: 12px;
}
body.ga-tech-demo .cb-ability {
  margin-bottom: 12px;
  padding: 8px 0;
}
body.ga-tech-demo .cb-reward {
  padding: 10px 13px;
  margin-bottom: 12px;
}
body.ga-tech-demo .cb-supplies {
  margin-bottom: 11px;
}
body.ga-tech-demo .cb[data-cb-animal='owl'] .cb-arena {
  min-height: 540px;
}
body.ga-tech-demo .cb[data-cb-animal='owl'] .cb-player {
  bottom: 108px;
}
body.ga-tech-demo .cb-owl-duel {
  bottom: 12px;
  max-width: 520px;
  margin-inline: auto;
  min-height: 71px;
}
body.ga-tech-demo .cb[data-cb-defeated='true'] .cb-guardian-canvas {
  opacity: 0.38;
  filter: grayscale(0.7);
}
body.ga-tech-demo .cb-seal {
  z-index: 5;
  bottom: 26px;
  background: #21172e;
}
@media (max-width: 600px) {
  body.ga-tech-demo .cb {
    padding: 10px 10px 16px;
  }
  body.ga-tech-demo .cb-heading {
    margin-top: 8px;
  }
  body.ga-tech-demo .cb-personality {
    font-size: 10px;
    line-height: 1.5;
    padding-inline: 8px;
  }
  body.ga-tech-demo .cb-boss-line {
    font-size: 11px;
    min-height: 19px;
    margin: 7px auto 11px;
  }
  body.ga-tech-demo .cb-arena {
    min-height: 400px;
    background-position: center 62%;
  }
  body.ga-tech-demo .cb-hp {
    top: 13px;
    width: 82%;
    padding: 8px 10px 9px;
  }
  body.ga-tech-demo .cb-target {
    width: min(68vw, 220px);
    height: min(68vw, 220px);
    top: 68px;
  }
  body.ga-tech-demo .cb-player-portrait {
    width: 77px;
    height: 74px;
  }
  body.ga-tech-demo .cb-player > span:last-child {
    min-width: 106px;
    padding: 4px 10px;
  }
  body.ga-tech-demo .cb-player strong {
    font-size: 11px;
  }
  body.ga-tech-demo .cb[data-cb-animal='owl'] .cb-arena {
    min-height: 492px;
  }
  body.ga-tech-demo .cb[data-cb-animal='owl'] .cb-player {
    bottom: 106px;
  }
  body.ga-tech-demo .cb-ability {
    flex-direction: row;
    gap: 10px;
    font-size: 10px;
    line-height: 1.5;
  }
  body.ga-tech-demo .cb-reward strong {
    font-size: 15px;
  }
}
@media (max-height: 500px) and (min-width: 650px) {
  body.ga-tech-demo .cb-arena {
    min-height: 320px;
  }
  body.ga-tech-demo .cb-target {
    width: 210px;
    height: 210px;
    top: 61px;
    left: 58%;
  }
  body.ga-tech-demo .cb-player {
    left: 29%;
    bottom: 14px;
  }
  body.ga-tech-demo .cb[data-cb-animal='owl'] .cb-arena {
    min-height: 380px;
  }
  body.ga-tech-demo .cb[data-cb-animal='owl'] .cb-player {
    left: 29%;
    bottom: 102px;
  }
}
