/* Collectible titles on the roster, profile preview and inventory cards. */
.ht-wheel-wrap[data-wheel="titles"] { opacity: 1; }
.ht-wheel-wrap[data-wheel="titles"] .ht-pointer { display: block; }
.ht-spin-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.ht-spin-actions #ht-spin {
  min-width: min(100%, 148px);
  margin-bottom: 0;
}
#ht-auto-spin[aria-pressed="true"] {
  background: #3d263c;
  border-color: #be8ab2;
}

.ht-collectible-title {
  --ht-title-ink: #c4d7e8;
  --ht-title-accent: #6d9ac3;
  display: inline-grid;
  position: relative;
  isolation: isolate;
  justify-items: center;
  max-inline-size: 100%;
  box-sizing: border-box;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--ht-title-accent) 55%, #24314b);
  border-radius: 7px;
  color: var(--ht-title-ink);
  background: linear-gradient(145deg, color-mix(in srgb, var(--ht-title-accent) 18%, #11152d), #0b1124 79%);
  font: 750 .77rem/1.22 "Inter", system-ui, sans-serif;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.ht-collectible-title[data-tier="uncommon"] { --ht-title-ink: #a0ecd0; --ht-title-accent: #56a682; }
.ht-collectible-title[data-tier="rare"] { --ht-title-ink: #a8dcff; --ht-title-accent: #428feb; }
.ht-collectible-title[data-tier="ultra"] { --ht-title-ink: #e4cbff; --ht-title-accent: #a578f0; }
.ht-collectible-title[data-tier="epic"] { --ht-title-ink: #ffc5ed; --ht-title-accent: #c058a8; }
.ht-collectible-title[data-tier="legendary"] { --ht-title-ink: #ffe1a4; --ht-title-accent: #e4a643; }
.ht-collectible-title[data-tier="mythic"] { --ht-title-ink: #ffb8ab; --ht-title-accent: #ef6448; }
.ht-collectible-title[data-tier="iconic"] { --ht-title-ink: #a7fbf0; --ht-title-accent: #4fd8e6; }
.ht-collectible-title[data-tier="eternal"] { --ht-title-ink: #ffe5a8; --ht-title-accent: #ffd266; }
.ht-collectible-title[data-tier="singularity"] { --ht-title-ink: #efd8ff; --ht-title-accent: #bd83ff; }
.ht-collectible-title[data-title-effect="kitten"] { --ht-title-ink: #ffd1ee; --ht-title-accent: #ff83d5; }
.ht-collectible-title[data-title-effect="terminal"] { --ht-title-ink: #b0ffbb; --ht-title-accent: #45ee82; }

.ht-collectible-title :is(.ht-title-text, .ht-terminal-line) {
  position: relative;
  z-index: 1;
}
.ht-published-title { display: block; max-inline-size: 100%; }
.ht-profile .ht-published-title { margin-block: -3px 4px; }
:is(.v22-member, .team-profile) .ht-collectible-title { margin-block: 3px; }
.ht-showcase[data-kind="title"] {
  min-height: 118px;
  padding: 16px 7px;
  background: radial-gradient(ellipse at center, #25324c, #0b1428 75%);
}
.ht-showcase[data-kind="title"] .ht-collectible-title { font-size: .88rem; }
.ht-item[data-rarity="singularity"] {
  border-color: #a97ac9;
  background: linear-gradient(147deg, #291c46, #101e35 73%);
}

.ht-collectible-title:is([data-tier="legendary"], [data-tier="mythic"], [data-tier="iconic"], [data-tier="eternal"], [data-tier="singularity"]) {
  padding: 6px 11px;
  box-shadow: 0 0 10px -3px color-mix(in srgb, var(--ht-title-accent) 65%, transparent);
}
.ht-collectible-title[data-tier="legendary"] { --ht-title-frequency: 5.6s; }
.ht-collectible-title[data-tier="mythic"] { --ht-title-frequency: 4.7s; }
.ht-collectible-title[data-tier="iconic"] { --ht-title-frequency: 4.1s; }
.ht-collectible-title[data-tier="eternal"] { --ht-title-frequency: 3.6s; }
.ht-collectible-title[data-tier="singularity"] { --ht-title-frequency: 2.9s; }
.ht-collectible-title[data-title-effect="terminal"] { font-family: "IBM Plex Mono", Consolas, monospace; }
.ht-terminal-line {
  --ht-terminal-row: 13px;
  display: grid;
  place-items: center;
  height: var(--ht-terminal-row);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--ht-title-ink);
  font: 750 11px/var(--ht-terminal-row) Consolas, monospace;
  letter-spacing: .065em;
  white-space: nowrap;
}
.ht-terminal-codes { grid-area: 1 / 1; align-self: start; }
.ht-terminal-codes i { display: block; height: var(--ht-terminal-row); font-style: normal; }

.ht-collectible-title[data-title-effect="kitten"] { padding: 6px 24px 6px 14px; }
.ht-collectible-title[data-title-effect="kitten"] .ht-title-text::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 7px;
  inset: -4px auto auto 0;
  background: #ffd6ed;
  clip-path: polygon(0 100%, 11% 0, 43% 73%, 57% 73%, 88% 0, 100% 100%, 64% 83%, 35% 83%);
}
.ht-title-paw {
  display: block;
  position: absolute;
  width: 10px;
  height: 9px;
  inset: auto 8px 6px auto;
  background:
    radial-gradient(ellipse 2.8px 2px at 50% 74%, #ffbddd 96%, transparent),
    radial-gradient(circle 1.05px at 14% 37%, #ffd6ed 95%, transparent),
    radial-gradient(circle 1.15px at 38% 17%, #ffd6ed 95%, transparent),
    radial-gradient(circle 1.15px at 64% 17%, #ffd6ed 95%, transparent),
    radial-gradient(circle 1.05px at 88% 37%, #ffd6ed 95%, transparent);
}

@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .ht-collectible-title:is([data-tier="legendary"], [data-tier="mythic"], [data-tier="iconic"], [data-tier="eternal"], [data-tier="singularity"])::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(111deg, transparent 23%, color-mix(in srgb, var(--ht-title-accent) 33%, transparent) 47%, transparent 69%);
    background-size: 300% 100%;
    animation: ht-title-sweep var(--ht-title-frequency) ease-in-out infinite;
  }
  .ht-collectible-title:is([data-tier="mythic"], [data-tier="iconic"], [data-tier="eternal"], [data-tier="singularity"]) {
    animation: ht-title-breathe calc(var(--ht-title-frequency) + .65s) ease-in-out infinite;
  }
  .ht-collectible-title[data-tier="legendary"] .ht-title-text {
    animation: ht-title-gold 5.6s ease-in-out infinite;
  }
  .ht-collectible-title[data-tier="mythic"]::before {
    background-image: linear-gradient(104deg, transparent 20%, #d83b392b 37%, #ff925b83 48%, #ffdb922a 55%, transparent 70%);
  }
  .ht-collectible-title:is([data-tier="mythic"], [data-tier="iconic"], [data-tier="eternal"], [data-tier="singularity"]) .ht-title-glints {
    position: absolute;
    inset: -3px 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 7% 29%, var(--ht-title-ink) 0 1px, transparent 1.9px),
      radial-gradient(circle at 57% 12%, var(--ht-title-accent) 0 .9px, transparent 1.9px),
      radial-gradient(circle at 94% 78%, var(--ht-title-ink) 0 1px, transparent 1.9px);
    animation: ht-title-sparks calc(var(--ht-title-frequency) * .89) ease-in-out infinite;
  }
  @supports (background-clip: text) {
    .ht-collectible-title:is([data-tier="iconic"], [data-tier="eternal"], [data-tier="singularity"]) .ht-title-text {
      background: linear-gradient(110deg, var(--ht-title-ink) 10%, #fcffff 41%, var(--ht-title-ink) 57%, var(--ht-title-accent) 88%) 0 center / 226% 100%;
      background-clip: text;
      color: transparent;
      animation: ht-title-letterlight calc(var(--ht-title-frequency) * 1.15) ease-in-out infinite alternate;
    }
    .ht-collectible-title[data-tier="singularity"] .ht-title-text {
      background-image: linear-gradient(107deg, #e3c8ff 10%, #a9f4ff 29%, #fff0fc 46%, #ffacf3 58%, #d1b7ff 78%);
    }
  }
  .ht-collectible-title:is([data-tier="eternal"], [data-tier="singularity"])::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: -2px 3px;
    border-radius: 50%;
    border-block: 1px solid var(--ht-title-accent);
    opacity: .4;
    rotate: -7deg;
    animation: ht-title-arc 3.8s ease-in-out infinite;
  }
  .ht-collectible-title[data-tier="singularity"]::after {
    border-block-color: #91dcff #fd8de0;
    animation-duration: 2.85s;
  }
  .ht-collectible-title[data-tier="singularity"] .ht-title-glints {
    background:
      radial-gradient(circle at 3% 66%, #ffc8ff 0 1px, transparent 2px),
      radial-gradient(circle at 22% 14%, #9cf5ff 0 1px, transparent 2px),
      radial-gradient(circle at 42% 86%, #c3a4ff 0 1px, transparent 2px),
      radial-gradient(circle at 67% 11%, #ecd8ff 0 .9px, transparent 1.9px),
      radial-gradient(circle at 85% 79%, #ff8cdb 0 1px, transparent 2px),
      radial-gradient(circle at 96% 33%, #9cf5ff 0 1px, transparent 2px);
    animation: ht-title-sparks 2.35s ease-in-out infinite, ht-title-drift 4.3s ease-in-out infinite;
  }
  .ht-collectible-title[data-title-effect="glitch"] .ht-title-text {
    animation: ht-title-letterlight 3.3s ease-in-out infinite alternate, ht-title-fracture 4.6s linear infinite;
  }
  .ht-collectible-title[data-title-effect="terminal"]::after {
    inset: 2px 4px;
    border: 0;
    border-top: 1px solid #92ffb1;
    border-radius: 0;
    rotate: none;
    animation: ht-terminal-scan 3.65s linear infinite;
  }
  .ht-terminal-codes {
    animation: ht-terminal-cipher .64s steps(8, end) infinite;
  }
  .ht-title-paw { animation: ht-title-pawstep 2.7s ease-in-out infinite; }

  @keyframes ht-title-sweep {
    0%, 12% { background-position: 100% 50%; }
    72%, 100% { background-position: 0 50%; }
  }
  @keyframes ht-title-breathe {
    0%, 100% { box-shadow: 0 0 8px -3px color-mix(in srgb, var(--ht-title-accent) 47%, transparent); }
    52% { box-shadow: 0 0 13px -1px color-mix(in srgb, var(--ht-title-accent) 64%, transparent); }
  }
  @keyframes ht-title-gold {
    0%, 100% { text-shadow: 0 0 3px #ffd27729; }
    56% { text-shadow: 0 0 7px #ffd27792; }
  }
  @keyframes ht-title-sparks {
    0%, 100% { opacity: .23; translate: 0 1px; }
    55% { opacity: .9; translate: 1px -2px; }
  }
  @keyframes ht-title-letterlight {
    0% { background-position: 0 50%; }
    100% { background-position: 100% 50%; }
  }
  @keyframes ht-title-arc {
    0%, 100% { transform: scale(.86,.62) rotate(-6deg); opacity: .16; }
    50% { transform: scale(1.02,.89) rotate(13deg); opacity: .64; }
  }
  @keyframes ht-title-drift {
    0%, 100% { rotate: -3deg; }
    50% { rotate: 4deg; }
  }
  @keyframes ht-title-fracture {
    0%, 77%, 91%, 100% { text-shadow: none; transform: translateX(0); }
    80% { text-shadow: -2px 0 #fc75d688, 2px 0 #87f6ff99; transform: translateX(-.7px) skewX(-6deg); }
    85% { text-shadow: 1px 0 #fc75d6aa, -2px 0 #87f6ff99; transform: translateX(.7px) skewX(4deg); }
  }
  @keyframes ht-terminal-scan {
    0% { transform: translateY(0); opacity: 0; }
    20%, 66% { opacity: .73; }
    94%, 100% { transform: translateY(calc(100% - 1px)); opacity: 0; }
  }
  @keyframes ht-terminal-cipher {
    to { transform: translateY(-100%); }
  }
  @keyframes ht-title-pawstep {
    0%, 15%, 100% { opacity: .38; transform: translate(-4px, 2px) rotate(-13deg) scale(.84); }
    44%, 66% { opacity: .98; transform: translate(2px, -2px) rotate(9deg) scale(1); }
  }
}
@media (forced-colors: active) {
  .ht-collectible-title { color: CanvasText; background: Canvas; border-color: CanvasText; box-shadow: none; }
  .ht-terminal-line { color: CanvasText; }
}

.ht-auto-spin-limit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ht-muted);
  font-size: 12px;
}
.ht-auto-spin-limit input, .ht-trade-form input {
  box-sizing: border-box;
  min-height: 44px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #396485;
  border-radius: 9px;
  background: #10243c;
  color: #eff8ff;
  font: inherit;
}
.ht-auto-spin-limit input { width: 5.25rem; }
.ht-odds-button {
  display: inline-block;
  padding: 2px 5px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #bee5ff;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ht-odds-button:hover { background: #1b3a5b; }
.ht-odds-button:focus-visible, .ht-auto-spin-limit input:focus-visible, .ht-trade-form input:focus-visible {
  outline: 2px solid #a6deff;
  outline-offset: 2px;
}
.ht-catalog-dialog {
  box-sizing: border-box;
  width: min(28rem, calc(100% - 24px));
  max-height: 76vh;
  color: var(--ht-text);
}
.ht-catalog-dialog::backdrop { background: #050b18bb; }
.ht-catalog-dialog ul { margin: 12px 0 0; padding-inline-start: 1.25em; }
.ht-catalog-dialog li + li { margin-top: 3px; }
.ht-trade-form {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(145px, 1fr) minmax(62px, .38fr) minmax(145px, 1fr) minmax(62px, .38fr);
  align-items: end;
}
.ht-trade-form label { min-width: 0; }
.ht-trade-form select { width: 100%; }
.ht-trade-form > button { justify-self: start; }
.ht-trade {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #31516b;
  border-radius: 9px;
  overflow-wrap: anywhere;
}
.ht-trade p { margin: 4px 0; }
.ht-trade-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
@media (max-width: 860px) {
  .ht-trade-form { grid-template-columns: minmax(0, 1fr) minmax(68px, .4fr); }
  .ht-trade-form label:first-child { grid-column: 1 / -1; }
}

/* The summon interface uses the existing HNRP prism artwork. */
#page-highteam-designs {
  --ht-border: #55477f;
  --ht-muted: #c9c7e2;
  --ht-text: #f5f1ff;
  background:
    radial-gradient(ellipse at 18% 3%, #2e215a 0%, transparent 42%),
    radial-gradient(ellipse at 88% 12%, #182c55 0%, transparent 39%),
    #0c1026;
}
.ht-page .ht-head {
  margin-bottom: 22px;
  padding: 18px 0 24px;
  border-bottom: 1px solid #6b579474;
}
.ht-page .ht-head h1 {
  max-width: max-content;
  color: #f6ecff;
  font-weight: 880;
  letter-spacing: -.052em;
  text-shadow: 0 0 23px #ad79ff78;
}
@supports (background-clip: text) {
  .ht-page .ht-head h1 {
    background: linear-gradient(100deg, #faf4ff 12%, #d8b3ff 58%, #96edff 89%);
    background-clip: text;
    color: transparent;
    text-shadow: none;
  }
}
.ht-page .ht-panel {
  background: linear-gradient(152deg, #211c3c, #111a35 58%, #12182f);
  border-color: #63518b;
  box-shadow: inset 0 0 0 3px #100f27, 0 13px 30px #080b1b75;
}
.ht-page .ht-panel h2 { font-weight: 820; letter-spacing: -.027em; }
.ht-page .ht-grid > .ht-panel { align-self: start; }
#ht-wheel-panel {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #161431f2 1%, #17143292 24%, #0e1430a8 55%, #11152cf8 75%),
    url("designs/background-prismenhimmel.webp") center 28% / cover no-repeat, #131534;
}
#ht-wheel-panel .ht-panel-head { text-align: left; }
#ht-timing { font-size: .78rem; font-variant-numeric: tabular-nums; }
.ht-wheel-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 5px;
  margin: 16px auto 24px;
  width: min(100%, 440px);
  padding: 5px;
  box-sizing: border-box;
  border: 1px solid #7361a8;
  border-radius: 12px;
  background: #111531ed;
}
.ht-wheel-tabs button {
  min-height: 42px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #d6d2ee;
  font: 760 .86rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.ht-wheel-tabs button[aria-pressed="true"] {
  color: #fff5ff;
  background: linear-gradient(130deg, #623faf, #345681);
  border-color: #be9eff;
  box-shadow: 0 0 13px #b57afb5c;
}
.ht-wheel-tabs button:focus-visible, .ht-gacha-controls select:focus-visible { outline: 2px solid #c1f1ff; outline-offset: 2px; }
.ht-wheel-tabs button:disabled { cursor: default; }
.ht-page .ht-wheel-wrap { width: min(100% - 25px, 342px); margin: 20px auto 26px; isolation: isolate; }
.ht-page .ht-wheel-wrap::before, .ht-page .ht-wheel-wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}
.ht-page .ht-wheel-wrap::before {
  inset: -13px;
  border: 1px solid #d7abf6aa;
  box-shadow: 0 0 24px #a96eff70, inset 0 0 25px #6adfff40;
  background: repeating-conic-gradient(from 9deg, transparent 0 16deg, #d8b8ff47 16deg 17deg, transparent 17deg 36deg);
}
.ht-page .ht-wheel-wrap::after { inset: -7px; border: 1px dashed #84daee99; }
.ht-page .ht-wheel-wrap canvas { box-shadow: 0 0 22px #74d8ff3d; }
.ht-page .ht-pointer {
  width: 25px;
  height: 30px;
  top: -8px;
  background: linear-gradient(135deg, #f9f4ff, #f5d088 61%, #c581f2);
}
.ht-gacha-controls {
  width: min(100%, 475px);
  margin: 0 auto 12px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #725b9d;
  border-radius: 13px;
  background: #131833ed;
}
.ht-gacha-controls .ht-auto-spin-limit { justify-content: center; width: 100%; margin-bottom: 9px; font-weight: 710; }
.ht-gacha-controls select {
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid #7361a8;
  border-radius: 7px;
  background: #211b40;
  color: #fcf5ff;
  font: inherit;
}
.ht-gacha-controls .ht-spin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.ht-gacha-controls .ht-spin-actions .ht-button { min-width: 0; padding-inline: 7px; }
.ht-page .ht-gacha-controls .ht-primary {
  background: linear-gradient(135deg, #764bc3, #3e59a0);
  border-color: #d5a9ff;
  box-shadow: 0 0 16px #9669eb52;
}
.ht-page .ht-gacha-controls .ht-primary:hover { background: linear-gradient(135deg, #8d61db, #526abd); }
.ht-page .ht-button:focus-visible { outline-color: #c8efff; }
.ht-milestones {
  color: #ece3ff;
  margin: 15px auto 12px;
  width: min(100%, 463px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  text-align: left;
}
.ht-milestones > p { grid-column: 1 / -1; color: var(--ht-muted); font-size: .77rem; margin: 0; }
.ht-milestone {
  --ht-bar: #f9c775;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  padding: 8px;
  border: 1px solid #674f82;
  border-radius: 9px;
  background: #161a35;
  font-size: .78rem;
}
.ht-milestone[data-tier="mythic"] { --ht-bar: #ff91b8; }
.ht-milestone strong { font-variant-numeric: tabular-nums; color: var(--ht-bar); }
.ht-milestone progress { grid-column: 1 / -1; width: 100%; height: 7px; accent-color: var(--ht-bar); }
.ht-page #ht-wheel-note { margin-inline: auto; max-width: 48ch; font-size: .75rem; }
.ht-page .ht-odds > div {
  margin-bottom: 3px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: #120e2d50;
}
.ht-page .ht-odds dd { align-self: start; padding-top: 2px; color: #f3ebff; }
.ht-page #ht-catalog-all { margin-bottom: 12px; }
.ht-page #ht-result { border-color: #a082c6; background: #181835; }
.ht-batch-tray {
  margin-top: 14px;
  border: 1px solid #745b9b;
  border-radius: 11px;
  background: #13152f;
  padding: 11px;
  text-align: start;
}
.ht-batch-tray h3 { font-size: .93rem; }
.ht-batch-items {
  display: grid;
  max-height: 280px;
  overflow: auto;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 122px), 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ht-batch-card {
  --ht-drop: #8095bd;
  display: grid;
  justify-items: start;
  align-content: center;
  overflow-wrap: anywhere;
  min-height: 48px;
  padding: 5px 7px;
  border: 1px solid var(--ht-drop);
  border-radius: 7px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--ht-drop) 19%, #12142d), #10152b 72%);
  font-size: .75rem;
  line-height: 1.3;
}
.ht-batch-card[data-rarity="uncommon"] { --ht-drop: #6fc4a3; }
.ht-batch-card[data-rarity="rare"] { --ht-drop: #66b5ec; }
.ht-batch-card[data-rarity="ultra"] { --ht-drop: #bf9ce8; }
.ht-batch-card[data-rarity="epic"] { --ht-drop: #db8bc8; }
.ht-batch-card[data-rarity="legendary"] { --ht-drop: #ffce7f; }
.ht-batch-card[data-rarity="mythic"] { --ht-drop: #ff9f92; }
.ht-batch-card[data-rarity="iconic"] { --ht-drop: #a2fff9; }
.ht-batch-card[data-rarity="eternal"] { --ht-drop: #ffd57a; }
.ht-batch-card[data-rarity="singularity"] { --ht-drop: #edb4ff; }
.ht-page .ht-item { box-shadow: inset 0 0 14px #5b449729; }
@media (prefers-reduced-motion: no-preference) {
  .ht-page .ht-wheel-wrap::after { animation: ht-sigil-rotate 38s linear infinite; }
  .ht-page .ht-wheel-wrap[data-rolling]::before { animation: ht-sigil-bright 850ms ease-out both; }
  .ht-batch-card { animation: ht-card-arrive 285ms ease-out var(--ht-card-delay) both; }
}
@keyframes ht-sigil-rotate { to { transform: rotate(1turn); } }
@keyframes ht-sigil-bright { 50% { box-shadow: 0 0 39px #b77cffbc, inset 0 0 24px #6adfff70; } }
@keyframes ht-card-arrive { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@media (max-width: 460px) {
  .ht-page .ht-wrap { width: calc(100% - 22px); }
  .ht-gacha-controls .ht-spin-actions .ht-button { font-size: 12px; }
  .ht-page .ht-wheel-wrap { width: min(100% - 30px, 280px); }
}

.ht-summon-dialog {
  box-sizing: border-box;
  width: min(680px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid #b6a3ec;
  border-radius: 22px;
  background: #101028;
  color: #fcf5ff;
  box-shadow: 0 0 70px #7b4fca66, 0 22px 90px #000b;
}
.ht-summon-dialog::backdrop { background: #060514e8; backdrop-filter: blur(6px); }
.ht-summon-stage {
  --summon: #ffcf86;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(200px, 43vw, 340px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at center, color-mix(in srgb, var(--summon) 26%, transparent), #0a0a24aa 65%),
    url("designs/background-prismenhimmel.webp") center / cover no-repeat, #191436;
}
.ht-summon-stage[data-rarity="mythic"] { --summon: #ff8c9f; }
.ht-summon-stage[data-rarity="iconic"] { --summon: #81fff5; }
.ht-summon-stage[data-rarity="eternal"] { --summon: #ffce8c; }
.ht-summon-stage[data-rarity="singularity"] { --summon: #d997ff; }
.ht-summon-energy, .ht-summon-fragments {
  position: absolute;
  pointer-events: none;
  inset: 0;
}
.ht-summon-energy {
  width: min(78%, 330px);
  aspect-ratio: 1;
  height: auto;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--summon);
  box-shadow: 0 0 30px var(--summon), inset 0 0 32px #e2bcff85;
  background: radial-gradient(circle, transparent 53%, #fff2 56%, transparent 65%),
    repeating-conic-gradient(transparent 0 18deg, #fff6 18deg 19deg, transparent 19deg 36deg);
}
.ht-summon-fragments {
  background:
    linear-gradient(31deg, transparent 46%, var(--summon) 49%, transparent 51%) 18% 33% / 28% 34% no-repeat,
    linear-gradient(141deg, transparent 46%, var(--summon) 49%, transparent 51%) 86% 62% / 28% 34% no-repeat;
  opacity: 0;
}
.ht-summon-stage .ht-showcase {
  width: min(65%, 310px);
  min-height: clamp(126px, 26vw, 205px);
  margin: 0;
  z-index: 1;
  border-color: var(--summon);
  box-shadow: 0 0 26px color-mix(in srgb, var(--summon) 55%, transparent);
}
.ht-summon-stage .ht-showcase-avatar { width: min(23%, 67px); }
.ht-wish-crystal { z-index: 1; color: #fff2ff; font-size: clamp(76px, 17vw, 132px); text-shadow: 0 0 24px #b86dff; }
.ht-summon-stage[data-rarity="eternal"] .ht-summon-energy {
  border: 4px double #fff1c4;
  background: radial-gradient(ellipse, #120b2a 12%, #2d154a 35%, #eea4598f 65%, #fff0b8 71%, transparent 72%);
}
.ht-summon-stage[data-rarity="singularity"] .ht-summon-energy {
  border-radius: 15% 85% 17% 83%;
  background: linear-gradient(122deg, #080716f0 42%, #fff4ff 49%, #b255f7 53%, #080716f0 62%);
  transform: translate(-50%, -50%) rotate(-24deg) scaleX(.68);
}
.ht-summon-copy { padding: 18px 20px 20px; text-align: center; }
.ht-summon-copy h2 { margin: 3px 0 6px; color: #fff; font-size: clamp(1.35rem, 5vw, 2.1rem); }
.ht-summon-copy p { margin: 0 0 10px; color: #cfbcec; }
.ht-summon-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.ht-summon-actions form { margin: 0; }
.ht-summon-actions .ht-primary { background: linear-gradient(125deg, #7651c8, #4359a6); border-color: #bba9ff; }
.ht-shards-panel { background: radial-gradient(ellipse at 7% 0, #38204c, transparent 80%), #19162f !important; }
#ht-shard-balance { color: #f0c6ff; font-variant-numeric: tabular-nums; }
.ht-prism-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ht-prism-form { align-items: end; padding: 10px; border-radius: 10px; background: #0e10298c; }
.ht-prism-form label { flex: 1 1 135px; min-width: 0; }
.ht-prism-form :is(select,input) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid #68548b;
  border-radius: 8px;
  background: #211b40;
  color: #f9f1ff;
  font: inherit;
}
#ht-shard-recycle-form label:nth-child(2) { flex: 0 1 76px; }
#ht-shard-recycle-preview {
  flex: 1 0 100%;
  color: #ffdbac;
  font-variant-numeric: tabular-nums;
}
#ht-shard-recycle-preview:empty { display: none; }
.ht-trade-form .ht-trade-search { grid-column: 1 / -1; }
.ht-trade-people { display: flex; flex-wrap: wrap; gap: 5px; }
.ht-trade-people:empty { display: none; }
.ht-request-board { margin-top: 20px; border-top: 1px solid #5d4e80; padding-top: 14px; }
@media (max-width: 660px) { .ht-prism-grid { grid-template-columns: minmax(0, 1fr); gap: 3px; } }
@media (prefers-reduced-motion: no-preference) {
  .ht-summon-stage .ht-showcase, .ht-wish-crystal { animation: ht-summon-arrive 760ms cubic-bezier(.17,.79,.22,1) both; }
  .ht-summon-stage .ht-summon-energy { animation: ht-summon-circle 700ms ease-out both; }
  .ht-summon-stage[data-rarity="iconic"] .ht-summon-fragments { animation: ht-summon-shatter 720ms ease-out both; }
  .ht-summon-stage[data-rarity="eternal"] .ht-summon-energy { animation: ht-summon-portal 820ms ease-out both; }
  .ht-summon-stage[data-rarity="singularity"] .ht-summon-energy { animation: ht-summon-rift 820ms ease-out both; }
}
@keyframes ht-summon-arrive { 0%, 28% { opacity: 0; transform: translateY(18px) scale(.78); } 100% { opacity: 1; transform: none; } }
@keyframes ht-summon-circle { from { opacity: .2; scale: .72; } to { opacity: 1; scale: 1; } }
@keyframes ht-summon-shatter { 0% { opacity: 0; transform: scale(.55); } 38% { opacity: .9; } 100% { opacity: 0; transform: scale(1.4) rotate(18deg); } }
@keyframes ht-summon-portal { 0% { opacity: .1; transform: translate(-50%,-50%) scale(.2,.04); } to { transform: translate(-50%,-50%) scale(1); } }
@keyframes ht-summon-rift { from { opacity: .2; transform: translate(-50%,-50%) rotate(-24deg) scaleX(.03); } to { transform: translate(-50%,-50%) rotate(-24deg) scaleX(.68); } }

.ht-summon-dialog:has([data-rarity="iconic"]) { border-color: #92fff9; }
.ht-summon-dialog:has([data-rarity="eternal"]) { border-color: #ffdca0; }
.ht-summon-dialog:has([data-rarity="singularity"]) { border-color: #d39aff; }
.ht-summon-fragments i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 36px;
  background: linear-gradient(146deg, #fff 8%, #87ffffa9 45%, #4264ad 79%);
  clip-path: polygon(56% 0, 100% 64%, 36% 100%, 0 51%);
  transform: rotate(var(--shard-angle)) translateX(var(--shard-distance)) rotate(var(--shard-turn));
}
.ht-summon-stage[data-rarity="singularity"] .ht-summon-fragments {
  background: linear-gradient(155deg, transparent 47%, #fff 49%, #c586ff 50%, transparent 53%);
}
.ht-summon-stage[data-rarity="eternal"]::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: min(82%, 360px);
  aspect-ratio: 1;
  border: 1px dashed #ffe9b7cf;
  border-radius: 50%;
  box-shadow: 0 0 12px #ffe0a780;
}
@media (prefers-reduced-motion: no-preference) {
  .ht-summon-fragments i { animation: ht-shard-scatter 720ms ease-out both; }
  .ht-summon-stage[data-rarity="singularity"] .ht-summon-fragments { animation: ht-rift-line 750ms ease-out both; }
  .ht-summon-stage[data-rarity="eternal"]::after { animation: ht-portal-turn 12s linear infinite; }
}
@keyframes ht-shard-scatter {
  0%, 25% { transform: rotate(var(--shard-angle)) translateX(12px) rotate(0deg) scale(.45); }
  100% { transform: rotate(var(--shard-angle)) translateX(var(--shard-distance)) rotate(var(--shard-turn)); }
}
@keyframes ht-rift-line {
  0%, 12% { opacity: 0; transform: scaleX(.08) skewX(-18deg); }
  42% { opacity: .82; }
  100% { opacity: 0; transform: scaleX(1.25) skewX(7deg); }
}
@keyframes ht-portal-turn { to { rotate: 1turn; } }

/* Recent rare wins and trading filters */
.ht-page .ht-head {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 365px);
  gap: clamp(16px, 3.5vw, 42px);
}
.ht-head-copy { align-self: center; }
.ht-activity[hidden] { display: none; }
.ht-activity {
  position: relative;
  border: 1px solid #7e6cbd88;
  border-radius: 15px;
  background: radial-gradient(ellipse at top right, #302451, transparent 76%), #12152e;
  box-shadow: inset 0 1px #ece2ff10, 0 12px 30px #09081862;
  min-width: 0;
  padding: 11px 12px;
}
.ht-activity h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  margin: 0 0 8px;
}
.ht-activity h2::before {
  content: "";
  width: 7px;
  height: 7px;
  rotate: 45deg;
  background: #c2a2ff;
  box-shadow: 0 0 11px #dbaeff;
}
.ht-activity ol {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 136px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #775baf transparent;
}
.ht-activity-item {
  --ht-signal: #ff9dba;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-top: 1px solid #ad9ede2a;
  padding: 4px 5px;
  font-size: .73rem;
}
.ht-activity-item[data-rarity="iconic"] { --ht-signal: #86fff1; }
.ht-activity-item[data-rarity="eternal"] { --ht-signal: #ffd597; }
.ht-activity-item[data-rarity="singularity"] { --ht-signal: #e3a4ff; }
.ht-activity-item[data-latest] { background: linear-gradient(90deg, color-mix(in srgb, var(--ht-signal) 14%, transparent), transparent); }
.ht-activity-star {
  width: 8px;
  height: 8px;
  rotate: 45deg;
  border: 1px solid var(--ht-signal);
  box-shadow: 0 0 9px var(--ht-signal);
}
.ht-activity-item div > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-activity-item div > span, .ht-activity-empty { color: #c9c1db; }
.ht-activity-empty { font-size: .78rem; line-height: 1.35; padding: 5px 0; }
.ht-activity-item .ht-rarity { font-size: .72rem; }
.ht-market-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 12px;
  margin: 0 0 13px;
  border: 1px solid #765ba76b;
  border-radius: 12px;
  background: linear-gradient(118deg, #2b21487d, #141d327d);
}
.ht-market-filters select { width: 100%; }
#ht-trade-panel optgroup { color: #cfbafb; font-weight: 800; }
#ht-trade-panel option { color: #f3ecff; font-weight: 600; }
.ht-shards-panel .ht-panel-head {
  padding-bottom: 10px;
  border-bottom: 1px solid #be8f7954;
}
#ht-shard-balance { color: #ffdbac; font-variant-numeric: tabular-nums; }
#ht-shard-draw:not(:disabled) {
  border-color: #fccb91;
  color: #23122d;
  background: linear-gradient(115deg, #fbc78c, #ffdba7 56%, #e7adf5);
  box-shadow: 0 0 24px #dfa47c49;
}

/* Forge strike followed by the existing rarity reveal */
.ht-summon-stage[data-forged] {
  --forge-gold: #ffd39c;
  background:
    radial-gradient(ellipse at 50% 83%, #f29b5057, transparent 54%),
    linear-gradient(120deg, #191126eb, #120e23a6, #171024e8),
    url("designs/background-prismenhimmel.webp") center / cover no-repeat, #171226;
}
.ht-forge-chamber {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.ht-forge-seal, .ht-forge-anvil, .ht-forge-hammer, .ht-forge-sparks { position: absolute; }
.ht-forge-seal {
  width: min(52%, 230px);
  aspect-ratio: 1;
  left: 50%;
  top: 51%;
  border: 3px double #ffc27c;
  border-radius: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, #ffb57033, transparent 57%),
    repeating-conic-gradient(transparent 0 24deg, #ffd8a751 25deg 26deg, transparent 27deg 30deg);
  box-shadow: 0 0 35px #fb956f6e, inset 0 0 21px #ffb13e42;
  opacity: .8;
}
.ht-forge-anvil {
  left: 50%;
  top: 57%;
  width: min(35%, 132px);
  aspect-ratio: 2.5;
  translate: -50% 0;
  clip-path: polygon(0 0, 100% 0, 91% 27%, 65% 48%, 61% 73%, 75% 84%, 75% 100%, 24% 100%, 24% 84%, 39% 68%, 34% 45%, 15% 25%);
  background: linear-gradient(175deg, #fff1d4, #bf8d88 22%, #493456 40%, #1c1534 81%, #d09580);
}
.ht-forge-hammer {
  width: 94px;
  height: 65px;
  left: calc(50% - 25px);
  top: calc(57% - 43px);
  transform-origin: 77% 53%;
}
.ht-forge-hammer::before, .ht-forge-hammer::after {
  content: "";
  position: absolute;
  background: linear-gradient(140deg, #fce3c2, #c37e7c 26%, #69436a 62%, #3d2b59);
}
.ht-forge-hammer::before {
  inset: 2px auto auto 1px;
  width: 40%;
  height: 64%;
  border-radius: 7px 4px 8px 7px;
  box-shadow: inset 0 0 0 2px #fff1db72, 0 0 20px #ffab7a78;
}
.ht-forge-hammer::after { inset: 31% 1px auto 37%; height: 14%; border-radius: 0 4px 4px 0; }
.ht-forge-sparks { inset: 56% auto auto 50%; }
.ht-forge-sparks i {
  position: absolute;
  width: 14px;
  height: 3px;
  border-radius: 10px;
  opacity: 0;
  background: #fff3cd;
  box-shadow: 0 0 8px #ffad52, 0 0 13px var(--summon);
}
@media (prefers-reduced-motion: no-preference) {
  .ht-activity-item[data-latest] { animation: ht-activity-in 520ms ease-out both; }
  .ht-summon-stage[data-forged] .ht-forge-chamber { animation: ht-forge-chamber 1220ms both; }
  .ht-summon-stage[data-forged] .ht-forge-seal { animation: ht-forge-seal 1s ease-out both; }
  .ht-summon-stage[data-forged] .ht-forge-hammer { animation: ht-forge-strike 1s both; }
  .ht-summon-stage[data-forged] .ht-forge-sparks i { animation: ht-forge-spark 640ms calc(485ms + var(--spark-delay)) ease-out both; }
  .ht-summon-stage[data-forged] .ht-showcase,
  .ht-summon-stage[data-forged] .ht-wish-crystal,
  .ht-summon-stage[data-forged] .ht-summon-energy,
  .ht-summon-stage[data-forged] .ht-summon-fragments,
  .ht-summon-stage[data-forged] .ht-summon-fragments i,
  .ht-summon-stage[data-forged]::after { animation-delay: 820ms; animation-fill-mode: both; }
  .ht-summon-dialog:has([data-forged]) .ht-summon-copy > :not(.ht-summon-actions) {
    animation: ht-summon-arrive 480ms 950ms ease-out both;
  }
}
@keyframes ht-activity-in { from { opacity: .35; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }
@keyframes ht-forge-chamber { 0% { opacity: 0; } 16%, 66% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ht-forge-seal { 0% { scale: .63; rotate: -38deg; opacity: 0; } 44% { scale: 1; } 53% { scale: 1.12; opacity: 1; } 100% { scale: 1.27; rotate: 22deg; opacity: 0; } }
@keyframes ht-forge-strike {
  0% { transform: translate(26px, -55px) rotate(50deg); }
  35% { transform: translate(16px, -28px) rotate(36deg); animation-timing-function: cubic-bezier(.4,0,.8,.4); }
  51% { transform: translate(0, 4px) rotate(-17deg); }
  65% { transform: translate(7px, -12px) rotate(10deg); }
  100% { transform: translate(14px, -26px) rotate(19deg); opacity: 0; }
}
@keyframes ht-forge-spark {
  0% { transform: rotate(var(--ray)) translateX(6px) scale(.5); opacity: 0; }
  14% { opacity: 1; }
  100% { transform: rotate(var(--ray)) translateX(var(--travel)) scale(.18); opacity: 0; }
}
@media (max-width: 680px) {
  .ht-page .ht-head { grid-template-columns: 1fr; }
  .ht-activity ol { max-height: 114px; }
}

/* The Gacha header, wallet and market share the same prism accents. */
.ht-page .ht-head { align-items: start; }
.ht-head-sidebar { display: grid; gap: 10px; min-width: 0; }
.ht-head-sidebar .ht-activity { border-color: #a58fe288; }
.ht-head-sidebar .ht-activity h2 {
  color: #f1e5ff;
  font-size: .96rem;
  font-weight: 800;
}
.ht-head-sidebar .ht-activity ol { max-height: 152px; }
.ht-wallet[hidden] { display: none; }
.ht-wallet {
  display: grid;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid #e4ad7764;
  border-radius: 14px;
  color: #ffe4ba;
  text-align: left;
  background: radial-gradient(ellipse at 10% 50%, #80536c51, transparent 72%), #1b1833;
  cursor: pointer;
}
.ht-wallet:focus-visible, .ht-trade-side select:focus-visible { outline: 2px solid #c6acff; outline-offset: 3px; }
.ht-wallet small, .ht-wallet strong { display: block; }
.ht-wallet small { color: #efe0ef; }
.ht-wallet strong { font-size: 1.4rem; line-height: 1.16; font-variant-numeric: tabular-nums; }
.ht-wallet-action { font-size: .74rem; color: #ead0b9; }
.ht-wallet-gem {
  width: 22px;
  height: 27px;
  background: conic-gradient(from 20deg, #ffdcaa, #f37fc6, #683fa8, #c8abff, #fff3d3);
  clip-path: polygon(50% 0, 100% 28%, 85% 72%, 50% 100%, 15% 72%, 0 28%);
}

#ht-trade-panel {
  background: radial-gradient(ellipse at 12% 0, #35284b 0, transparent 53%), #15182e;
}
#ht-trade-panel :is(.ht-trade-form,.ht-prism-form) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  align-items: start;
  gap: 15px;
  padding: 0;
  background: transparent;
}
#ht-trade-panel .ht-trade-account, #ht-trade-panel .ht-trade-search { grid-column: 1 / -1; }
#ht-trade-panel .ht-trade-form > label:nth-child(2) { grid-column: 1 / -1; }
#ht-trade-panel .ht-trade-form > button, #ht-request-send { justify-self: start; }
.ht-trade-side {
  min-width: 0;
  padding: 12px;
  border: 1px solid #9580ca6c;
  border-radius: 13px;
  background: linear-gradient(143deg, #3a2a534b, #16182d);
}
.ht-trade-side legend {
  padding: 0 7px;
  color: #f2dfff;
  font-weight: 770;
}
.ht-trade-item-filters, .ht-trade-item-choice { display: grid; gap: 9px; }
.ht-trade-item-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 9px;
}
.ht-trade-with-qty { grid-template-columns: minmax(0, 1fr) 74px; }
.ht-trade-side label { min-width: 0; font-size: .86rem; }
.ht-trade-side select, .ht-market-filters select { width: 100%; min-width: 0; }
.ht-trade-side select:disabled { opacity: .62; }
.ht-market-board h3 { margin: 24px 0 7px; }
.ht-market-board .ht-market-filters { grid-template-columns: repeat(auto-fit,minmax(min(100%,155px),1fr)); }
.ht-market-filters .ht-trade-matches {
  display: flex;
  align-items: center;
  align-self: end;
  min-height: 44px;
  gap: 6px;
  font-size: .84rem;
}
.ht-trade-matches input { accent-color: #ac87ee; }
.ht-trade-category { padding: 12px 0 10px; border-bottom: 1px solid #65568353; }
.ht-trade-category h4 { margin: 0 0 12px; font-size: 1.05rem; }
.ht-trade-category > .ht-rarity { display: inline-block; margin-top: 5px; }
.ht-trade-category .ht-trade {
  margin: 6px 0 11px;
  border-color: #7e6da761;
  border-radius: 13px;
  background: #14182e;
}
.ht-trade-exchange {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 7px;
  margin-top: 8px;
}
.ht-trade-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 9px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #292541;
}
.ht-trade-line small, .ht-trade-line strong { display: block; }
.ht-trade-line small { color: #d5c1e5; font-size: .73rem; }
.ht-trade-line strong { margin-top: 3px; font-size: .85rem; }
.ht-trade-line > .ht-rarity { font-size: .8rem; }

.ht-rift-half {
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, #66379b, #1a1337 55%, #080914 93%);
}
.ht-rift-left { clip-path: polygon(0 0, 52% 0, 45% 22%, 56% 39%, 42% 62%, 52% 81%, 46% 100%, 0 100%); }
.ht-rift-right { clip-path: polygon(52% 0, 100% 0, 100% 100%, 46% 100%, 52% 81%, 42% 62%, 56% 39%, 45% 22%); }
@media (prefers-reduced-motion: no-preference) {
  .ht-wallet { transition: border-color 180ms, background-color 180ms, translate 180ms; }
  .ht-wallet:hover { border-color: #ecb18fb2; translate: 0 -2px; }
  .ht-trade-side:focus-within { border-color: #b391e8; }
  .ht-summon-stage[data-rarity="singularity"] .ht-rift-half { animation: ht-split-stage 980ms cubic-bezier(.36,.03,.13,1) both; }
  .ht-rift-left { --ht-rift-x: -78%; --ht-rift-rotation: -12deg; }
  .ht-rift-right { --ht-rift-x: 78%; --ht-rift-rotation: 12deg; }
  .ht-summon-stage[data-rarity="singularity"][data-forged] .ht-rift-half { animation-delay: 820ms; animation-fill-mode: forwards; }
  .ht-summon-stage[data-rarity="iconic"] .ht-summon-fragments { animation-duration: 940ms; }
  .ht-summon-stage[data-rarity="eternal"] .ht-summon-energy { animation-duration: 1100ms; }
}
@keyframes ht-split-stage {
  0%, 24% { opacity: 1; transform: translateX(0); }
  40% { opacity: .9; }
  100% { opacity: 0; transform: translateX(var(--ht-rift-x)) rotate(var(--ht-rift-rotation)); }
}
@media (max-width: 640px) {
  #ht-trade-panel :is(.ht-trade-form,.ht-prism-form), .ht-trade-exchange { grid-template-columns: 1fr; }
  .ht-wallet-action { font-size: .68rem; }
}
.ht-draw-choices[hidden], .ht-gacha-controls .ht-auto-spin-limit[hidden] { display: none; }
.ht-draw-choices {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 10px;
}
.ht-draw-choices button {
  min-height: 40px;
  padding: 5px 2px;
  border: 1px solid #775fae8f;
  border-radius: 8px;
  color: #dfd2f2;
  background: #1b1934;
  font-family: inherit; font-weight: 750; font-size: .88rem; line-height: 1.1;
  cursor: pointer;
}
.ht-draw-choices button[aria-pressed="true"] {
  color: #fff0dc;
  border-color: #f2ba89;
  background: linear-gradient(140deg, #5a3c72, #47335e);
  box-shadow: inset 0 1px #ffdfb340, 0 0 15px #c689c63f;
}
.ht-draw-choices button:focus-visible { outline: 2px solid #ffd5ae; outline-offset: 2px; }
.ht-draw-choices button:disabled { cursor: default; opacity: .68; }
.ht-trade-search .ht-trade-people { margin-top: 5px; }
