/* An illustrated world, with heroes stepping beyond their rarity frames. */
#selection {
  isolation: isolate;
  background: #111c2a;
  backdrop-filter: none;
  padding: 22px 28px;
}
.selection-scenery {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #111c2a;
}
.selection-scenery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.selection-scenery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a122a55, #0b1423a6 50%, #0b1423e6);
}
#selection .selection-content {
  width: min(100%, 1100px);
  max-width: 1100px;
}
#selection .selection-nav {
  padding-bottom: 14px;
  border-color: #e9dfc826;
}
#selection .brand,
#selection .handbook-link {
  text-shadow: 0 2px 12px #000;
}
#selection .selection-heading {
  margin: 22px auto 20px;
}
#selection h1 {
  font-size: clamp(36px, 4vw, 54px);
  margin: 10px 0;
  letter-spacing: -2px;
  text-shadow: 0 3px 30px #060a16;
}
#selection h1 br {
  display: none;
}
#selection .selection-heading p {
  font-size: 13px;
  max-width: 550px;
  color: #d0d4d5;
  text-shadow: 0 2px 5px #000;
}
#selection .run-facts {
  margin-top: 10px;
}
#selection .party-heading {
  text-shadow: 0 2px 10px #000;
}
#selection .party-heading h2 {
  font-size: 22px;
}
#selection #character-cards {
  height: 580px;
  padding-top: 54px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 6px;
}
#selection .character-card {
  border: 0;
  border-radius: 17px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}
#selection .character-card::after {
  content: "";
  position: absolute;
  inset: 34px 0 0;
  z-index: -1;
  pointer-events: none;
  border: 2px solid var(--rarity);
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--accent) 15%, #18202beb),
    #15202aef 65%
  );
  box-shadow:
    0 12px 30px #0005,
    inset 0 0 25px color-mix(in srgb, var(--rarity) 6%, transparent);
  transition:
    box-shadow 0.2s,
    background 0.2s;
}
#selection .character-card:hover::after {
  box-shadow:
    0 0 24px color-mix(in srgb, var(--rarity) 28%, transparent),
    0 16px 32px #0006;
}
#selection .character-card[data-rarity="epic"]::after,
#selection .character-card[data-rarity="legendary"]::after {
  box-shadow:
    0 0 22px color-mix(in srgb, var(--rarity) 25%, transparent),
    0 12px 30px #0005;
}
#selection .portrait-stage {
  height: 280px;
  padding: 0 12px 20px;
  overflow: visible;
  background: none;
  border: 0;
}
#selection .portrait-stage::before {
  width: 210px;
  height: 210px;
  bottom: 12px;
  border-radius: 50%;
  transform: none;
  outline: none;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--accent) 22%, transparent),
    transparent 70%
  );
}
#selection .portrait {
  width: auto;
  height: calc(310px * var(--portrait-scale, 1));
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: bottom;
  image-rendering: auto;
  filter: drop-shadow(0 10px 6px #0005);
}
#selection .class-sigil {
  right: 15px;
  bottom: 35px;
  opacity: 0.08;
}
#selection .portrait-caption,
#selection .trait,
#selection .hero-stat-label {
  display: none;
}
#selection .card-info {
  padding: 0 18px 17px;
  overflow: visible;
}
#selection .card-top {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 11px;
}
#selection .hero-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  background: #0b141a88;
  border: 1px solid #ffffff1a;
  border-radius: 6px;
  color: #d4ddd7;
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 600;
  text-transform: none;
  white-space: nowrap;
  cursor: help;
}
#selection .class-label {
  color: var(--accent);
}
#selection .hero-help svg {
  width: 17px;
  height: 17px;
}
.help-dot {
  font-size: 8px;
  opacity: 0.55;
}
#selection .character-meta {
  font-size: 9px;
  color: #a8b4b7;
}
#selection .card-info h3 {
  font-size: 29px;
}
#selection .class-hook {
  margin: 7px 0 9px;
  font-size: 11px;
}
#selection .stat-strip {
  margin: 0 0 13px;
}
#selection .choose {
  margin: auto 42px 0 0;
  width: calc(100% - 42px);
  min-height: 42px;
}
#selection .hero-info {
  display: grid;
  place-items: center;
  position: absolute;
  right: 13px;
  bottom: 16px;
  width: 36px;
  height: 42px;
  border: 1px solid #ffffff30;
  border-radius: 8px;
  background: #ffffff06;
  color: #ccd4ce;
  font:
    italic 16px Georgia,
    serif;
}
#selection .hero-info::before {
  display: none;
}
#selection .selection-footer {
  margin-top: 12px;
  align-items: center;
  color: #d0d5d0;
}
#selection .selection-tip {
  font-size: 10px;
}
#hero-help-tooltip {
  position: fixed;
  z-index: 100;
  width: min(300px, calc(100vw - 20px));
  padding: 17px 18px;
  border: 1px solid color-mix(in srgb, var(--help-accent) 55%, #a8bca6);
  border-radius: 12px;
  background: #111e2bfa;
  box-shadow: 0 12px 45px #0009;
  color: #f1eedb;
  font-size: 12px;
}
#hero-help-tooltip small {
  display: block;
  color: #a7b7bc;
  font-size: 8px;
  letter-spacing: 1.3px;
  margin-bottom: 5px;
}
#hero-help-tooltip strong {
  display: block;
  font:
    600 23px "Space Grotesk",
    sans-serif;
  margin-bottom: 12px;
}
#hero-help-tooltip b {
  display: block;
  color: var(--help-accent);
  margin-bottom: 4px;
}
#hero-help-tooltip p {
  font-size: 12px;
  line-height: 1.5;
  color: #d1d9d6;
}
#hero-help-tooltip em {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  font-style: normal;
  color: #98acae;
  margin-top: 12px;
}
@media (min-width: 701px) and (max-height: 950px) {
  #selection {
    padding: 16px 28px;
  }
  #selection .selection-heading {
    margin: 13px auto 12px;
  }
  #selection h1 {
    font-size: 38px;
  }
  #selection #character-cards {
    height: 510px;
    padding-top: 50px;
  }
  #selection .portrait-stage {
    height: 228px;
  }
  #selection .portrait {
    height: calc(255px * var(--portrait-scale, 1));
  }
  #selection .card-info h3 {
    font-size: 26px;
  }
}
@media (min-width: 701px) and (max-width: 1000px) {
  #selection .portrait-stage {
    height: 220px;
  }
  #selection .portrait {
    height: calc(225px * var(--portrait-scale, 1));
  }
  #selection .card-info {
    padding: 0 12px 14px;
  }
  #selection .hero-help {
    font-size: 9px;
    padding: 4px;
    gap: 3px;
  }
  #selection .hero-help svg {
    width: 14px;
    height: 14px;
  }
  #selection .character-meta {
    display: none;
  }
  #selection .card-info h3 {
    font-size: 24px;
  }
  #selection .class-hook {
    font-size: 10px;
  }
  #selection .stat-strip b {
    font-size: 12px;
  }
  #selection .stat-strip b,
  #selection .stat-strip em {
    display: block;
  }
  #selection .choose {
    font-size: 10px;
  }
}
@media (max-width: 700px) {
  #selection {
    padding: 12px 12px 14px;
  }
  #selection .selection-content {
    max-width: 470px;
  }
  #selection .selection-nav {
    padding-bottom: 10px;
  }
  #selection .selection-heading {
    margin: 16px auto;
  }
  #selection h1 {
    font-size: 30px;
    letter-spacing: -1.2px;
    margin: 9px 0;
  }
  #selection h1 br {
    display: block;
  }
  #selection .selection-heading p {
    font-size: 11px;
    max-width: 320px;
  }
  #selection .party-heading h2 {
    font-size: 19px;
  }
  #selection #character-cards {
    height: 400px;
    padding-top: 12px;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 7px;
  }
  #selection .character-card {
    grid-template-columns: 106px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  #selection .character-card::after {
    inset: 7px 0 0;
    border-radius: 13px;
  }
  #selection .portrait-stage {
    height: 100%;
    padding: 0;
  }
  #selection .portrait-stage::before {
    width: 100px;
    height: 100px;
    bottom: 0;
  }
  #selection .portrait {
    position: absolute;
    bottom: 0;
    height: calc(130px * var(--portrait-scale, 1));
    width: auto;
    max-width: 118px;
    max-height: 134px;
  }
  #selection .class-sigil {
    right: 0;
    bottom: 15px;
  }
  #selection .class-sigil svg {
    width: 80px;
    height: 80px;
  }
  #selection .card-info {
    padding: 12px 9px 7px 2px;
    min-width: 0;
  }
  #selection .card-top {
    margin-bottom: 3px;
    gap: 3px;
  }
  #selection .hero-help {
    font-size: 9px;
    padding: 3px 4px;
    gap: 3px;
  }
  #selection .hero-help svg {
    width: 13px;
    height: 13px;
  }
  #selection .help-dot {
    display: none;
  }
  #selection .card-info h3 {
    font-size: 22px;
  }
  #selection .character-meta {
    display: none;
  }
  #selection .class-hook,
  #selection .stat-strip {
    display: none;
  }
  #selection .hero-name-row {
    margin: 3px 0 6px;
  }
  #selection .roll-badge {
    font-size: 8px;
    padding: 3px 5px;
  }
  #selection .choose {
    width: calc(100% - 35px);
    margin: 0;
    min-height: 30px;
    height: 30px;
    line-height: 14px;
    padding: 6px 7px;
    font-size: 9px;
  }
  #selection .choose span {
    font-size: 16px;
    line-height: 14px;
  }
  #selection .hero-info {
    right: 8px;
    bottom: 7px;
    width: 29px;
    height: 30px;
    font-size: 13px;
  }
  #selection .selection-footer {
    margin-top: 6px;
    gap: 6px;
    flex-wrap: nowrap;
  }
  #selection .selection-tip {
    font-size: 8px;
    max-width: 112px;
  }
}
@media (max-width: 700px) and (max-height: 650px) {
  #selection {
    padding-top: 8px;
  }
  #selection .selection-heading {
    margin: 8px 0;
  }
  #selection h1 {
    font-size: 24px;
    margin: 6px 0;
  }
  #selection #character-cards {
    height: 348px;
    padding-top: 10px;
    gap: 12px;
  }
  #selection .character-card {
    grid-template-columns: 91px minmax(0, 1fr);
  }
  #selection .portrait {
    height: calc(110px * var(--portrait-scale, 1));
    max-height: 116px;
    max-width: 101px;
  }
  #selection .card-info {
    padding-top: 10px;
  }
  #selection .card-info h3 {
    font-size: 19px;
  }
  #selection .hero-name-row {
    margin: 2px 0 4px;
  }
  #selection .hero-help {
    font-size: 8px;
    padding: 3px;
  }
  #selection .hero-help svg {
    width: 12px;
    height: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #selection .character-card::after {
    transition: none;
  }
}

/* A little gold title splash, with counts from the live roster. */
#selection .title-lockup {
  position: relative;
  display: inline-block;
  padding-left: 154px;
}
#selection .roster-splash {
  position: absolute;
  left: 0;
  top: 7px;
  width: 148px;
  color: #ffe05c;
  font:
    700 11px/1.3 "Space Grotesk",
    sans-serif;
  text-align: center;
  text-shadow:
    1px 2px 0 #332315,
    0 0 14px #000;
  transform: rotate(-11deg);
  animation: roster-splash-bob 2s ease-in-out infinite;
  pointer-events: none;
}
#selection .roster-splash span {
  display: block;
  white-space: nowrap;
}
#selection .roster-splash b {
  font-weight: 700;
}
@keyframes roster-splash-bob {
  0%,
  100% {
    transform: rotate(-11deg) scale(1);
  }
  50% {
    transform: rotate(-11deg) scale(1.035);
  }
}
@media (max-width: 700px) {
  #selection .title-lockup {
    display: block;
    padding-left: 0;
  }
  #selection .roster-splash {
    top: -1px;
    left: 1px;
    width: 110px;
    font-size: 8px;
    line-height: 1.2;
  }
  #selection .headline-first {
    display: block;
    padding-left: 108px;
  }
  #selection .title-lockup h1 br {
    display: none;
  }
  #selection .title-lockup h1 em {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  #selection .roster-splash {
    animation: none;
  }
}
#selection .selection-heading {
  max-width: 100%;
}
