/* Troop dossiers: illustrated facts, truthful growth, one clear next action. */
.stat-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  vertical-align: middle;
}
#troops-view #troop-grid {
  grid-auto-columns: 330px;
  max-height: none;
}
.troop-dossier {
  gap: 7px;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff9e2, #f2e1af);
  box-shadow:
    inset 0 2px #fffbed,
    0 4px #8b6936;
}
.roster-identity {
  grid-template-columns: 74px minmax(0, 1fr);
}
.roster-identity h3 {
  font-size: 28px;
}
.roster-portrait {
  height: 82px;
}
.roster-state {
  font-size: 12px;
  color: #477269;
  letter-spacing: 0.03em;
}
.roster-energy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: linear-gradient(#245874, #112e49);
  border-color: #89dfe8;
  padding: 3px;
  min-width: 42px;
  font-size: 23px;
}
.roster-energy .stat-icon {
  width: 24px;
  height: 27px;
}
.roster-level {
  gap: 6px;
  flex-wrap: wrap;
}
.roster-level b {
  padding: 3px 9px;
  background: #226b68;
  color: #fff4c7;
  border-radius: 7px;
  font-size: 14px;
}
.roster-level > span {
  font-size: 12px;
}
.roster-description {
  font-size: 14px;
  line-height: 1.25;
}
.roster-stats {
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  background: #e3d8b150;
  border: 0;
  border-radius: 12px;
  padding: 6px 3px;
  gap: 3px;
  text-align: center;
}
.roster-stats dt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 12px;
}
.roster-stats dd {
  font-size: 26px;
  margin: 2px 0 0;
}
.roster-stats dd.range-value {
  font-size: 20px;
  padding-top: 3px;
}
.roster-power {
  font-size: 13px;
  line-height: 1.2;
  padding-left: 9px;
  border-left: 3px solid var(--troop-color);
}
.roster-power strong {
  font-size: 14px;
}
.roster-power p {
  margin: 3px 0;
}
.roster-power > span {
  font-size: 12px;
}
.roster-training {
  padding: 0;
  border: 0;
  margin-top: auto;
}
.roster-training > strong {
  font-size: 13px;
  color: #42645d;
}
.troop-growth {
  width: 100%;
  table-layout: fixed;
  border-spacing: 2px;
  font-size: 13px;
  text-align: center;
}
.troop-growth th:first-child {
  width: 25%;
  text-align: left;
  font-size: 11px;
}
.troop-growth th {
  color: #55756d;
  font-weight: 800;
}
.troop-growth td {
  font-weight: 900;
  color: #46646b;
}
.troop-growth .stat-icon {
  width: 17px;
  height: 17px;
  margin-right: 3px;
}
.troop-growth .current {
  background: #256f6b;
  color: #fff5cc;
  border-radius: 4px;
}
.roster-actions {
  flex-direction: column;
  gap: 5px;
}
.roster-actions button.training-action {
  width: 100%;
  display: flex;
  flex-direction: row;
  min-height: 48px;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 12px;
}
.training-action > .stat-icon {
  width: 30px;
  height: 30px;
}
.roster-actions button.training-action > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.training-action b {
  font:
    20px/1.1 'Lilita One',
    sans-serif;
}
.training-action small {
  display: flex;
  align-items: center;
  gap: 4px;
  font:
    800 12px/1.1 'Nunito',
    sans-serif;
}
.training-action small .stat-icon {
  width: 17px;
  height: 17px;
}
.training-action small i {
  height: 14px;
  border-left: 1px solid #846630;
  margin: 0 4px;
}
.roster-actions button.training-action:disabled {
  opacity: 1;
  background: linear-gradient(#dce7d5, #aebfaf);
  border: 2px solid #e9eed7;
  color: #37564f;
  box-shadow: 0 3px #7c9384;
}
.roster-actions button.training-action[data-state='maxed'] {
  background: linear-gradient(#77bfa1, #3e8c79);
  color: #fff8d2;
}
.roster-actions .roster-equip {
  min-height: 44px;
  font-size: 16px;
  background: #275c70;
  color: #fdf1ce;
}
.roster-equip .stat-icon {
  margin-right: 5px;
}
@media (max-width: 600px) {
  #troops-view #troop-grid {
    grid-auto-columns: min(330px, calc(100% - 20px));
  }
}
@media (max-height: 700px) and (max-width: 600px) {
  .troop-dossier {
    padding: 8px;
    gap: 4px;
  }
  .roster-identity {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 9px;
  }
  .roster-portrait {
    height: 59px;
  }
  .roster-identity h3 {
    font-size: 24px;
  }
  .roster-state {
    font-size: 11px;
  }
  .roster-level b {
    font-size: 12px;
    padding: 2px 6px;
  }
  .roster-level > span {
    font-size: 11px;
  }
  .roster-description,
  .roster-power {
    font-size: 12px;
  }
  .roster-power strong {
    font-size: 13px;
  }
  .roster-power > span {
    font-size: 11px;
  }
  .roster-stats {
    padding: 3px 0;
  }
  .roster-stats dd {
    font-size: 22px;
  }
  .roster-stats dt {
    font-size: 11px;
    gap: 1px;
  }
  .roster-stats .stat-icon {
    width: 18px;
    height: 18px;
  }
  .troop-growth {
    font-size: 12px;
    border-spacing: 1px;
  }
  .troop-growth th:first-child {
    font-size: 10px;
  }
  .roster-actions button.training-action {
    min-height: 44px;
  }
  .training-action b {
    font-size: 18px;
  }
}
@media (max-height: 500px) and (min-width: 601px) {
  #troops-view #troop-grid {
    grid-auto-columns: 780px;
  }
  .troop-dossier {
    grid-template-columns: 245px 215px 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 5px 12px;
    padding: 8px;
  }
  .roster-identity {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 64px 1fr;
  }
  .roster-identity h3 {
    font-size: 23px;
  }
  .roster-portrait {
    height: 72px;
  }
  .roster-description {
    grid-column: 1;
    grid-row: 2/4;
    font-size: 13px;
  }
  .roster-stats {
    grid-column: 2;
    grid-row: 1;
  }
  .roster-power {
    grid-column: 2;
    grid-row: 2/4;
  }
  .roster-training {
    grid-column: 3;
    grid-row: 1/3;
    align-self: start;
  }
  .troop-growth th:first-child {
    width: 22%;
  }
  .troop-growth th:first-child span {
    display: none;
  }
  .roster-actions {
    grid-column: 3;
    grid-row: 3;
  }
  .training-action b {
    font-size: 17px;
  }
}
/* The two destinations share geometry. Gold follows the current destination. */
.game-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.game-nav .nav.nav {
  height: 60px;
  min-height: 44px;
  background: linear-gradient(#438597, #23566c);
  border: 2px solid #78b5bb;
  color: #fff3cb;
  box-shadow:
    inset 0 2px #8bc7c8,
    0 4px #102f3d;
}
.game-nav .nav.nav.active {
  background: linear-gradient(#ffe8a0, #edb548);
  border-color: #fff2b9;
  color: #63411b;
  box-shadow:
    inset 0 3px #fff9d7,
    0 4px #92622a;
}
.game-nav .nav.nav > span {
  font-size: clamp(18px, 3.5vw, 26px);
  text-shadow: 0 2px #143e50;
}
.game-nav .nav.nav.active > span {
  text-shadow: 0 2px #fff0bc;
}
.game-nav .nav.nav > img {
  width: 32px;
  height: 32px;
}
@media (max-height: 450px) and (orientation: landscape) {
  .game-nav .nav.nav {
    height: 44px;
  }
  .game-nav .nav.nav > span {
    font-size: 22px;
  }
}
/* The arena owns its controls. Nothing separates the hand from the field. */
#battle-view .arena-wrap {
  position: relative;
  gap: 0;
}
#battle-view .map-container {
  flex: 1;
  min-height: 0;
}
#battle-view .battle-hud {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  pointer-events: none;
  z-index: 42;
}
#battle-view .battle-clock {
  align-self: start;
  background: #133b4cdb;
  border: 1px solid #93c5c288;
  border-radius: 12px;
  padding: 8px;
  font-size: 23px;
}
#battle-view #pause {
  pointer-events: auto;
  height: 44px;
  min-height: 44px;
  min-width: 88px;
  font-size: 16px;
}
#battle-view #rally {
  position: absolute;
  transform: translate(-50%, -65%);
  width: 74px;
  height: 56px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 5;
  opacity: 1;
}
#battle-view #rally::before {
  display: none;
}
.hq-boost-label {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  border: 1px solid #ebfbb7;
  border-radius: 12px;
  background: linear-gradient(#c5e67a, #75a449);
  color: #1f493e;
  box-shadow: 0 2px #1c523d;
  font:
    16px/1 'Lilita One',
    sans-serif;
  padding: 3px;
}
.hq-boost-label img {
  width: 19px;
  height: 19px;
}
#battle-view #rally:disabled .hq-boost-label {
  background: #214855df;
  border-color: #8aabaa;
  color: #d3e6de;
}
#battle-view #rally:focus-visible {
  outline: 3px solid #fff3a2;
  border-radius: 50%;
}
.field-commands {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 6;
}
.field-commands .lane-buttons {
  gap: 4px;
}
.field-commands .lane-buttons button {
  min-height: 44px;
  min-width: 64px;
  padding: 4px;
  font-size: 12px;
  background: #1c5368ed;
}
#battle-view .energy-track {
  flex: 0 0 20px;
  min-height: 20px;
  gap: 6px;
  flex-wrap: nowrap;
}
#battle-view .energy-track .energy-pips {
  flex: 1;
}
#battle-view .energy-track > span {
  font-size: 12px;
}
@media (max-width: 600px) {
  #battle-view .hand-dock {
    flex: 0 0 151px;
    height: 151px;
    padding: 3px 0 0;
    gap: 3px;
  }
  #battle-view .hand {
    flex: 0 0 125px;
    height: 125px;
  }
  .battle-mode .workspace {
    padding: 3px 5px max(3px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 600px) and (max-height: 700px) {
  #battle-view .hand-dock {
    flex-basis: 126px;
    height: 126px;
  }
  #battle-view .hand {
    flex-basis: 100px;
    height: 100px;
  }
}
.roster-identity {
  position: relative;
}
.roster-identity:has(.roster-equip) > div:last-child {
  padding-right: 35px;
}
.roster-identity .roster-equip {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  font-size: 0;
  padding: 5px;
  border-radius: 12px;
  background: #275c70;
  border: 2px solid #79aba9;
}
.roster-identity .roster-equip .stat-icon {
  width: 30px;
  height: 30px;
}
.reward-gem-flight {
  position: fixed;
  width: 30px;
  height: 34px;
  z-index: 10000;
  pointer-events: none;
  filter: drop-shadow(0 0 7px #affbff);
}
.campaign-celebration .result-stars > span {
  display: inline-block;
  animation: reward-star-arrive 0.65s cubic-bezier(0.2, 0.8, 0.3, 1.35) both;
}
.campaign-celebration .result-stars > span:nth-child(2) {
  animation-delay: 0.2s;
}
.campaign-celebration .result-stars > span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes reward-star-arrive {
  0% {
    opacity: 0;
    transform: scale(0.15) rotate(-18deg);
  }
  65% {
    opacity: 1;
    transform: scale(1.28) rotate(6deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
.journey-stop.ready-next {
  color: #266a62;
}
.ready-next .journey-medallion {
  position: relative;
  background: linear-gradient(#a6efd0, #39a89c);
  border-color: #e0ffe9;
  box-shadow:
    inset 0 3px #ecffd3,
    0 5px #276b69,
    0 0 0 5px #72d6aa55;
  color: #124d50;
  animation: journey-arrive 0.65s ease-out both;
}
.ready-next .journey-medallion img {
  position: absolute;
  right: -9px;
  bottom: -8px;
  width: 28px;
  height: 28px;
}
.ready-next .journey-caption {
  color: #267367;
}
@media (prefers-reduced-motion: reduce) {
  .campaign-celebration .result-stars > span,
  .ready-next .journey-medallion {
    animation: none;
  }
}
.card .cost {
  display: flex;
  align-items: center;
  gap: 1px;
}
.card .cost img {
  width: 19px;
  height: 23px;
}
@media (max-height: 500px) and (min-width: 601px) {
  .troop-dossier {
    grid-template-rows: 78px minmax(0, 1fr) auto;
  }
  .roster-training {
    margin-top: 0;
  }
  .roster-stats {
    align-self: start;
  }
}
@media (min-width: 601px) and (min-height: 501px) {
  .troop-dossier {
    padding: 10px;
    gap: 5px;
  }
}
#battle-view #pause {
  min-width: 100px;
  min-height: 48px;
  height: 48px;
}
#battle-view .battle-hud {
  height: 48px;
  min-height: 48px;
}
@media (max-height: 700px) and (orientation: portrait) {
  #battle-grid:has(#battle-introduction:not([hidden])) .hand-dock {
    flex-basis: 220px;
    height: 220px;
  }
  .intro-coach {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}
@media (max-height: 620px) and (max-width: 600px) {
  .shell:has(#troops-view:not([hidden])) .game-nav {
    height: calc(64px + env(safe-area-inset-bottom));
    min-height: calc(64px + env(safe-area-inset-bottom));
    flex-basis: calc(64px + env(safe-area-inset-bottom));
    padding-top: 3px;
    padding-bottom: 7px;
  }
  .shell:has(#troops-view:not([hidden])) .game-nav .nav.nav {
    height: 50px;
  }
  #troops-view #troop-grid {
    grid-auto-columns: min(330px, 100%);
  }
  .troop-dossier {
    padding: 6px;
    gap: 1px;
  }
  .roster-portrait {
    height: 52px;
  }
  .roster-identity {
    grid-template-columns: 54px minmax(0, 1fr);
  }
  .roster-stats {
    padding: 2px 0;
  }
  .roster-stats dd {
    font-size: 20px;
  }
  .roster-stats dt {
    line-height: 18px;
  }
  .roster-power p {
    margin: 2px 0;
  }
  .troop-growth {
    border-spacing: 0;
  }
}
.troop-growth {
  line-height: 1.25;
}
@media (max-height: 700px) and (orientation: portrait) {
  .intro-coach {
    bottom: calc(90px + env(safe-area-inset-bottom));
  }
  #battle-view .map-container:has(#battle-introduction:not([hidden])) .battle-hud {
    top: auto;
    bottom: 5px;
  }
}
.field-commands {
  pointer-events: none;
}
.field-commands .lane-buttons {
  pointer-events: auto;
}
#deploy-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}
.next-level-invite {
  display: grid;
  place-items: center;
  min-height: 32px;
  margin-top: 4px;
  font:
    900 13px/1.2 'Nunito',
    sans-serif;
  color: #196f61;
  letter-spacing: 0.03em;
}
@media (max-height: 700px) and (max-width: 600px) {
  .campaign-celebration .result-poster {
    flex: 0 0 155px;
    min-height: 155px;
    max-height: 155px;
  }
  .campaign-celebration .result-title {
    padding-top: 35px;
    padding-bottom: 6px;
  }
  .campaign-celebration .result-stars {
    font-size: 34px;
  }
}
.intro-frame-shadow {
  fill: none;
  stroke: #76562c;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(2px);
}
.intro-frame-gold {
  fill: none;
  stroke: url(#intro-gold);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intro-point {
  fill: none;
  stroke: #fff2b9;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: intro-point-bob 1.4s ease-in-out infinite;
}
.intro-target-glow {
  animation: intro-target-breathe 1.8s ease-in-out infinite;
}
@keyframes intro-point-bob {
  50% {
    transform: translateY(4px);
  }
}
@keyframes intro-target-breathe {
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .intro-point,
  .intro-target-glow {
    animation: none;
  }
}
/* Results occupy the play area, keeping the real shell controls available. */
#level-transition {
  bottom: auto;
}
#level-transition .campaign-celebration {
  height: 100%;
  padding-top: 0;
  position: relative;
}
.campaign-celebration .result-poster {
  flex: 0 0 190px;
  min-height: 190px;
  max-height: 190px;
}
.campaign-celebration .result-title {
  padding: 8px 15px 10px;
}
.campaign-celebration h2 {
  font-size: 32px;
  margin: 5px auto 0;
}
.campaign-celebration .result-stars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 86px;
  margin: 0;
  perspective: 600px;
}
.campaign-celebration .result-stars > .prize-star {
  position: relative;
  width: 76px;
  height: 82px;
  animation: reward-star-arrive 1s both;
  animation-delay: var(--star-delay);
  filter: drop-shadow(0 5px 3px #05162588);
}
.prize-star img {
  width: 100%;
  height: 100%;
  display: block;
}
.prize-star.unearned img {
  filter: grayscale(1) brightness(0.7);
  opacity: 0.65;
}
.prize-star.earned::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: repeating-conic-gradient(
    from 12deg,
    transparent 0deg 25deg,
    #fff2a2 27deg 30deg,
    transparent 32deg 45deg
  );
  border-radius: 50%;
  animation: star-impact 0.75s both;
  animation-delay: calc(var(--star-delay) + 0.4s);
  pointer-events: none;
}
.prize-star .star-glint {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(
    50% 8%,
    64% 34%,
    96% 39%,
    73% 61%,
    79% 92%,
    50% 78%,
    21% 92%,
    27% 61%,
    4% 39%,
    36% 34%
  );
}
.prize-star.earned .star-glint::after {
  content: '';
  position: absolute;
  inset: -25%;
  background: linear-gradient(110deg, transparent 35%, #fff 47%, #fff9 52%, transparent 65%);
  animation: star-polish 0.7s both;
  animation-delay: calc(var(--star-delay) + 0.85s);
}
@keyframes reward-star-arrive {
  0% {
    opacity: 0;
    transform: translateY(-42px) rotateY(75deg) rotate(-24deg) scale(2.4);
  }
  42% {
    opacity: 1;
    transform: translateY(4px) rotateY(-10deg) rotate(5deg) scale(0.85);
  }
  64% {
    transform: translateY(-7px) rotateY(4deg) rotate(-3deg) scale(1.13);
  }
  82% {
    transform: translateY(1px) rotate(1deg) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes star-impact {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  30% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: scale(1.65) rotate(12deg);
  }
}
@keyframes star-polish {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}
.campaign-celebration .result-content {
  padding: 5px 16px;
}
.campaign-celebration .result-actions {
  padding: 6px 16px 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.next-battle-preview {
  width: 100%;
  padding: 8px 10px;
  border-radius: 16px;
  color: #ffecc8;
  background: linear-gradient(120deg, #274859, #132f45);
  box-shadow: inset 0 1px #527987;
  text-align: left;
}
.next-battle-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.next-battle-heading span {
  font-size: 13px;
  font-weight: 900;
  color: #eac277;
  letter-spacing: 0.04em;
}
.next-battle-heading h3 {
  font:
    25px/1.05 'Lilita One',
    sans-serif;
  margin: 2px 0;
  color: #fff1c7;
}
.wave-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 15px;
}
.wave-badge img {
  width: 27px;
  height: 27px;
}
.next-battle-preview p {
  font-size: 13px;
  line-height: 1.3;
  margin: 3px 0 7px;
  color: #d0e2e6;
}
.next-enemy-lineup {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 4px 2px 2px;
}
.next-enemy-card {
  flex: 0 0 88px;
  height: 84px;
  position: relative;
  border: 2px solid #d1a550;
  border-radius: 10px;
  background: #20364c;
  box-shadow: 0 2px #875327;
  overflow: hidden;
}
.next-enemy-card > svg {
  width: 100%;
  height: 63px;
  display: block;
}
.next-enemy-card > b {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #7e382d;
  border: 1px solid #f7ce80;
  border-radius: 5px;
  padding: 1px 3px;
  font-size: 13px;
  line-height: 1.2;
  color: #fff3d2;
}
.next-enemy-card > span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #203544eb;
  color: #fff1ca;
  padding: 2px;
  min-height: 22px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}
.campaign-celebration #result-play {
  min-height: 48px;
  width: 100%;
  font-size: 24px;
  padding: 5px 14px;
}
.campaign-celebration .journey-heading h3 {
  font-size: 20px;
}
.campaign-celebration .journey-heading > strong {
  font-size: 20px;
}
.campaign-celebration .journey-stop {
  min-width: 91px;
  gap: 3px;
  justify-content: flex-start;
}
.campaign-celebration .journey-medallion {
  width: 44px;
  height: 44px;
  font-size: 23px;
}
.campaign-celebration .journey-stop .mastery-stars {
  font-size: 21px;
}
.campaign-celebration .journey-stop.ready-next {
  min-width: 110px;
}
.campaign-celebration .ready-next .journey-medallion {
  width: 58px;
  height: 58px;
  margin-top: -5px;
  color: #71480e;
  border: 3px solid #fff0b8;
  background: linear-gradient(#ffeda7, #f1ba49);
  box-shadow:
    inset 0 3px #fffbd7,
    0 4px #a56927,
    0 0 18px #f6c35388;
  font-size: 30px;
}
.ready-next .journey-caption {
  color: #926020;
  font-weight: 1000;
}
.next-level-play {
  position: relative;
  overflow: hidden;
  min-height: 32px;
  margin-top: 3px;
  padding: 4px 12px;
  border: 2px solid #ffebaa;
  border-radius: 9px;
  background: linear-gradient(#ffeaa0, #f3b632);
  color: #654216;
  font:
    18px/1 'Lilita One',
    sans-serif;
  text-shadow: 0 1px #fff4bb;
  box-shadow:
    inset 0 2px #fff8cb,
    0 3px #986027;
  white-space: nowrap;
}
.next-level-play::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: linear-gradient(110deg, transparent 35%, #fff9 46%, #fffd 50%, transparent 64%);
  animation: next-play-shine 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes next-play-shine {
  0%,
  35% {
    transform: translateX(-120%);
  }
  75%,
  100% {
    transform: translateX(120%);
  }
}
.campaign-celebration .journey-stop:not(:last-child)::after {
  top: 43px;
}
.campaign-celebration .journey-stops {
  padding-top: 4px;
  padding-bottom: 5px;
}
@media (max-height: 740px) and (max-width: 600px) {
  .campaign-celebration .result-poster {
    flex-basis: 130px;
    min-height: 130px;
    max-height: 130px;
  }
  .campaign-celebration .result-title {
    padding: 5px 8px;
  }
  .campaign-celebration h2 {
    font-size: 26px;
    margin: 3px auto 0;
  }
  .campaign-celebration .result-stars {
    height: 66px;
  }
  .campaign-celebration .result-stars > .prize-star {
    width: 60px;
    height: 65px;
  }
  .campaign-celebration .result-tabs {
    padding: 3px 8px;
  }
  .campaign-celebration .result-tabs button {
    min-height: 34px;
    padding: 3px;
    font-size: 14px;
  }
  .campaign-celebration .result-content {
    padding: 1px 10px;
  }
  .campaign-celebration .result-actions {
    padding: 4px 10px 6px;
    gap: 5px;
  }
  .next-battle-preview {
    padding: 5px 8px;
  }
  .next-battle-preview p {
    display: none;
  }
  .next-battle-heading h3 {
    font-size: 22px;
  }
  .next-enemy-card {
    flex-basis: 88px;
    height: 70px;
  }
  .next-enemy-card > svg {
    height: 58px;
  }
  .next-enemy-lineup {
    padding-top: 2px;
  }
  .campaign-celebration .journey-heading {
    display: none;
  }
}
@media (max-height: 590px) and (max-width: 600px) {
  .campaign-celebration .result-poster {
    flex-basis: 112px;
    min-height: 112px;
    max-height: 112px;
  }
  .campaign-celebration .result-title .eyebrow {
    font-size: 13px;
  }
  .campaign-celebration h2 {
    font-size: 23px;
  }
  .campaign-celebration .result-stars {
    height: 60px;
  }
  .campaign-celebration .result-stars > .prize-star {
    width: 55px;
    height: 60px;
  }
  .campaign-celebration .result-actions {
    gap: 4px;
  }
  .next-enemy-card {
    height: 59px;
  }
  .next-enemy-card > svg {
    height: 49px;
  }
  .next-battle-heading h3 {
    font-size: 20px;
  }
  .next-battle-heading span {
    font-size: 13px;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  #level-transition .campaign-celebration {
    display: grid;
    grid-template-columns: 38% 1fr;
    grid-template-rows: 50px minmax(0, 1fr) 52px;
  }
  .campaign-celebration .result-poster {
    grid-column: 1;
    grid-row: 1/4;
    min-height: 0;
    max-height: none;
    align-items: flex-start;
  }
  .campaign-celebration .result-title {
    padding: 8px;
  }
  .campaign-celebration h2 {
    font-size: 24px;
  }
  .campaign-celebration .result-stars {
    height: 65px;
  }
  .campaign-celebration .result-stars > .prize-star {
    width: 56px;
    height: 61px;
  }
  .campaign-celebration .result-content {
    grid-column: 2;
    grid-row: 2;
    padding: 2px 12px;
  }
  .campaign-celebration .result-actions {
    grid-column: 2;
    grid-row: 3;
    padding: 2px 12px;
  }
  .next-battle-preview {
    position: absolute;
    left: 8px;
    bottom: 8px;
    width: calc(38% - 16px);
    padding: 5px 6px;
    background: #17364de8;
  }
  .next-battle-preview p {
    display: none;
  }
  .next-battle-heading h3 {
    font-size: 20px;
  }
  .next-battle-heading span {
    font-size: 13px;
  }
  .wave-badge {
    font-size: 13px;
  }
  .wave-badge img {
    width: 18px;
    height: 18px;
  }
  .next-enemy-card {
    flex-basis: 88px;
    height: 60px;
  }
  .next-enemy-card > svg {
    height: 52px;
  }
  .campaign-celebration .journey-heading {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .campaign-celebration .result-stars > .prize-star {
    animation: none;
  }
  .prize-star.earned::before,
  .prize-star.earned .star-glint::after,
  .next-level-play::after {
    animation: none;
    display: none;
  }
}
@media (min-width: 601px) and (min-height: 601px) {
  .next-battle-preview {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 0 14px;
    align-items: center;
    min-height: 108px;
  }
  .next-battle-heading {
    grid-column: 1;
    align-items: flex-start;
  }
  .next-battle-heading h3 {
    font-size: 23px;
  }
  .next-battle-heading .wave-badge {
    font-size: 13px;
  }
  .next-battle-heading .wave-badge img {
    display: none;
  }
  .next-battle-preview p {
    grid-column: 1;
    margin: 3px 0;
  }
  .next-enemy-lineup {
    grid-column: 2;
    grid-row: 1/3;
  }
}
.next-enemy-card {
  flex-basis: 96px;
}
@media (max-height: 590px) and (max-width: 600px) {
  .next-battle-preview {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    min-height: 82px;
  }
  .next-battle-heading {
    display: block;
  }
  .next-battle-heading h3 {
    font-size: 20px;
  }
  .next-battle-heading .wave-badge {
    margin-top: 4px;
    font-size: 13px;
  }
  .next-battle-heading .wave-badge img {
    width: 20px;
    height: 20px;
  }
  .next-enemy-card {
    flex-basis: 90px;
    height: 68px;
  }
  .next-enemy-card > svg {
    height: 57px;
  }
  .next-level-play {
    min-height: 44px;
  }
  .campaign-celebration .result-tabs {
    flex-shrink: 0;
  }
}

.campaign-celebration #result-play {
  margin: 0;
}

/* A fixed shelf, independent of each troop's description or action state. */
#troops-view .troop-dossier {
  align-self: stretch;
  height: 100%;
  box-sizing: border-box;
}
#troops-view #troop-tabs button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 9px;
}
#troops-view .tab-art {
  width: 30px;
  height: 32px;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 1px #08233466);
}
#troops-view #troop-tabs button[aria-selected='true'] .tab-art {
  filter: drop-shadow(0 1px 2px #fff0b6);
}
.roster-stats .stat-icon {
  width: 26px;
  height: 28px;
  filter: drop-shadow(0 1px 1px #76552b33);
}
@media (max-height: 700px) and (max-width: 600px) {
  .roster-stats .stat-icon {
    width: 20px;
    height: 22px;
  }
}
@media (max-height: 620px) and (max-width: 600px) {
  #troops-view .troop-dossier {
    padding-block: 5px;
  }
  .roster-stats .stat-icon {
    height: 20px;
  }
}
